.positions-ticket-shell {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  border-t: 1px solid #2a2a2a;
  background: #121212;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  animation: positions-ticket-slide-up 160ms ease-out;
}

@keyframes positions-ticket-slide-up {
  from {
    transform: translateY(12px);
    opacity: 0.85;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.positions-ticket-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid #252525;
  background: #161616;
}

.positions-ticket-chrome-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.positions-ticket-chain-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid #3a4a5c;
  border-radius: 3px;
  background: #1a2430;
  color: #9ecbff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.positions-ticket-chain-btn:hover {
  background: #223044;
  border-color: #5a8fd4;
  color: #c5e0ff;
}

.positions-ticket-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.positions-ticket-dismiss:hover {
  background: var(--desk-control);
  color: var(--desk-text);
}

.positions-ticket-shell .ticket-bar {
  border-top: 0;
  box-shadow: none;
}

/* Bottom order ticket — flat desk chrome + purple primary (design system §5) */
.ticket-bar {
  background: var(--desk-panel);
  border-color: var(--desk-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.28);
}

.ticket-head {
  height: 22px;
  background: #141414;
}

.ticket-head-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--desk-text-soft);
}

.ticket-head-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px 1px 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--desk-text-muted);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ticket-head-link:hover {
  color: var(--wt-info);
  background: rgba(119, 167, 255, 0.08);
}

.ticket-head-link--muted {
  padding: 1px 5px;
  font-weight: 700;
}

.ticket-head-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: #1e1e1e;
  color: #c8c8c8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.ticket-head-action:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: #282828;
}

.ticket-head-action.is-on {
  border-color: rgba(255, 255, 255, 0.28);
  background: #333;
  color: #fff;
}

.ticket-head-action--danger {
  color: #e88;
}

.ticket-head-action--danger:hover {
  color: #ff9aaf;
  border-color: rgba(255, 123, 147, 0.35);
  background: rgba(58, 21, 21, 0.5);
}

.ticket-head-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.ticket-head-dismiss:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-trade-row {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-leg-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  gap: 3px;
  width: min(380px, 40vw);
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
  padding: 4px 12px 4px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  overflow: hidden;
}

.ticket-leg-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  padding-right: 2px;
  line-height: 1;
}

.ticket-leg-col-label {
  font-size: 10px;
  font-weight: 500;
  color: #8a8a8a;
  letter-spacing: 0.01em;
}

.ticket-leg-col-symbol {
  flex-shrink: 0;
  min-width: 44px;
  font-size: 10px;
  font-weight: 600;
  color: #9a9a9a;
  text-align: right;
  letter-spacing: 0.02em;
}

.ticket-leg-rows {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}

.ticket-leg-row {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  gap: 6px;
  height: 24px;
  min-height: 0;
  font-size: 11px;
  line-height: 1.1;
  color: #e8e8e8;
}

/* 4+ legs: equal flex rows inside fixed ticket — scale type/padding down */
.ticket-leg-col[data-leg-count='4'] .ticket-leg-rows,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-rows,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-rows {
  gap: 1px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-row,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-row,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-row {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-row {
  font-size: 10px;
  gap: 4px;
}

.ticket-leg-col[data-leg-count='5'] .ticket-leg-row {
  font-size: 9.5px;
  gap: 3px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-row {
  font-size: 9px;
  gap: 2px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-seg,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-seg {
  padding: 1px 5px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-seg {
  padding: 0 4px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-seg--qty,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-seg--qty {
  min-width: 22px;
  padding: 0 4px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-seg--qty {
  min-width: 20px;
  padding: 0 3px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-dte,
.ticket-leg-col[data-leg-count='4'] .ticket-leg-right,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-dte,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-right {
  font-size: 9px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-dte,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-right {
  font-size: 8px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-tag,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-tag {
  min-width: 28px;
  padding: 1px 4px;
  font-size: 8px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-tag {
  min-width: 26px;
  padding: 0 3px;
  font-size: 7.5px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-price,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-price {
  font-size: 10px;
}

.ticket-leg-col[data-leg-count='6'] .ticket-leg-price {
  font-size: 9px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-price-wrap,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-price-wrap,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-price-wrap {
  width: 42px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-col-head,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-col-head,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-col-head {
  margin-bottom: 1px;
}

.ticket-leg-col[data-leg-count='4'] .ticket-leg-col-label,
.ticket-leg-col[data-leg-count='4'] .ticket-leg-col-symbol,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-col-label,
.ticket-leg-col[data-leg-count='5'] .ticket-leg-col-symbol,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-col-label,
.ticket-leg-col[data-leg-count='6'] .ticket-leg-col-symbol {
  font-size: 9px;
}

.ticket-leg-body {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 3px;
  border-radius: 3px;
  min-height: 0;
}

.ticket-leg-qty-control {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 20px;
  min-width: 63px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: #242424;
}

.ticket-leg-qty-control.is-buy {
  border-color: rgba(54, 190, 123, 0.34);
}

.ticket-leg-qty-control.is-sell {
  border-color: rgba(231, 88, 93, 0.36);
}

.ticket-leg-qty-sign {
  width: 10px;
  color: #aaa;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.ticket-leg-qty-control.is-buy .ticket-leg-qty-sign {
  color: #47c98d;
}

.ticket-leg-qty-control.is-sell .ticket-leg-qty-sign {
  color: #ee6b70;
}

.ticket-leg-qty-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a7a7a7;
  cursor: pointer;
}

.ticket-leg-qty-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ticket-leg-qty-step:disabled {
  color: #4e4e4e;
  cursor: not-allowed;
}

.ticket-leg-qty-input {
  width: 23px;
  height: 18px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f0f0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ticket-leg-qty-input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.ticket-leg-qty-input::-webkit-outer-spin-button,
.ticket-leg-qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.ticket-leg-qty-input[type='number'] {
  appearance: textfield;
}

.ticket-leg-seg {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  background: #2a2a2a;
  white-space: nowrap;
}

.ticket-leg-seg--qty {
  justify-content: center;
  min-width: 26px;
  padding: 0 6px;
  font-weight: 700;
  color: #f0f0f0;
  background: #242424;
}

.ticket-leg-seg--exp {
  gap: 5px;
  min-width: 0;
  background: #303030;
}

.ticket-leg-seg--strike {
  gap: 4px;
  background: #242424;
}

.ticket-leg-exp {
  font-weight: 700;
  color: #f2f2f2;
}

.ticket-leg-dte {
  font-size: 10px;
  font-weight: 500;
  color: #8a8a8a;
}

.ticket-leg-strike {
  font-weight: 700;
  color: #fff;
}

.ticket-leg-right {
  font-size: 10px;
  font-weight: 600;
  color: #9a9a9a;
}

.ticket-leg-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  overflow: visible;
  white-space: nowrap;
}

.ticket-leg-tag.is-buy {
  background: #1b5e40;
  color: #fff;
}

.ticket-leg-tag.is-sell {
  background: #8b2e2e;
  color: #fff;
}

.ticket-leg-price-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 48px;
  padding-top: 1px;
}

.ticket-leg-price {
  font-size: 11px;
  font-weight: 600;
  color: #d8d8d8;
}

.ticket-leg-remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.ticket-leg-row:hover .ticket-leg-remove {
  opacity: 1;
}

.ticket-leg-remove:hover {
  color: #fff;
}

.ticket-price-col {
  min-width: 0;
}

.ticket-limit-label {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--desk-text-soft);
}

.ticket-upper-band {
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 26px;
  padding: 3px 16px;
}

.ticket-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 2px;
  width: 100%;
  min-width: 0;
}

.ticket-stat {
  display: inline-flex;
  flex: 1 1 0;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticket-stat-oc {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -1px;
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #d4ad2a;
}

.ticket-stat-label {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  color: #8f8f8f;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.1;
  cursor: default;
}

.ticket-stat-value-line {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1.1;
  min-width: 0;
}

.ticket-stat-value {
  font-size: 11px;
  font-weight: 700;
  color: #f4f4f4;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.ticket-stat-suffix {
  font-size: 11px;
  font-weight: 700;
  color: #c8c8c8;
  white-space: nowrap;
}

.ticket-stat-value.is-up,
.ticket-stat-suffix.is-up {
  color: #5fd47a;
}

.ticket-stat-value.is-down,
.ticket-stat-suffix.is-down {
  color: #f06a6a;
}

.ticket-stats-expand {
  display: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: transparent;
  color: var(--desk-text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ticket-stats-expand:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1280px) {
  .ticket-stats-expand {
    display: inline-flex;
  }

  .ticket-stat.ticket-stat--extra {
    display: none;
  }

  .ticket-upper-band.is-expanded .ticket-stat.ticket-stat--extra {
    display: inline-flex;
  }

  .ticket-upper-band.is-expanded .ticket-stats-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 6px;
  }

  .ticket-upper-band.is-expanded .ticket-stat {
    flex: 0 1 auto;
    min-width: 72px;
  }

  .ticket-upper-band.is-expanded .ticket-stats {
    min-height: 26px;
  }
}

.ticket-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--desk-text-muted);
  cursor: pointer;
}

.ticket-clear-btn:hover {
  color: var(--desk-down, #ff7b93);
  background: rgba(255, 123, 147, 0.08);
}

.ticket-legs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

.ticket-leg-chip {
  min-width: 0;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: #141414;
}

.ticket-limit-hint {
  margin-left: auto;
  white-space: nowrap;
  opacity: 0.75;
}

.ticket-adv {
  flex-shrink: 0;
  height: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  border-bottom: 0;
  background: #2a2a2a;
  overflow: visible;
}

/* Right of ORDER, directly above price / order-type (no separate full-width row) */
.ticket-adv--above-price {
  border-bottom-color: var(--desk-border);
}

/* TOS: equal-width cells, label top, buttons fill cell width at compact height */
.ticket-adv-row {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.ticket-tool-group {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  background: #323232;
}

.ticket-tool-group:last-child {
  border-right: none;
}

/* Strikes — lighter cell; twin chevrons share one matte strip (no per-button chrome) */
.ticket-tool-group.is-highlight {
  background: #3f3f3f;
}

.ticket-tool-btns {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  gap: 0;
  padding: 2px 4px;
}

.ticket-tool-btns.is-merged {
  gap: 0;
  border: 1px solid #555555;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ticket-tool-label {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 12px;
  padding: 0 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #a3a3a3;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
  background: #222;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-adv-legcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 34px;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #8a8a8a;
  border-left: 1px solid rgba(0, 0, 0, 0.28);
  background: #323232;
}

.ticket-tool-label--spacer {
  visibility: hidden;
}

.ticket-tool-btn {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: #b8b8b8;
  cursor: pointer;
  line-height: 1;
}

.ticket-tool-btn.is-flat {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 3px;
}

.ticket-tool-btn.is-flat + .ticket-tool-btn.is-flat {
  border-left: 1px solid #555555;
}

.ticket-tool-btn.is-flat:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: #555555;
}

.ticket-tool-btn.is-wide {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
}

.ticket-exp-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticket-exp-sign {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
}

.ticket-tool-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-tool-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.ticket-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ticket-tool-btn.is-danger {
  color: #e44;
  border-color: #404040;
  background: #353535;
}

.ticket-tool-btn.is-danger:hover:not(:disabled) {
  color: #ff5555;
  background: #404040;
  border-color: #585858;
}

.ticket-limit-box {
  display: flex;
  align-items: stretch;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: visible;
}

.ticket-limit-side {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #b0b0b0;
  cursor: pointer;
}

.ticket-limit-chevs {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-limit-chev {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #b0b0b0;
  cursor: pointer;
}

.ticket-limit-chev + .ticket-limit-chev {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-limit-chev:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ticket-limit-chev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ticket-limit-side:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ticket-limit-side:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ticket-limit-value {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 8px;
}

.ticket-limit-value .desk-picker {
  position: relative;
}

.ticket-limit-value .desk-picker-trigger {
  width: auto !important;
  min-width: 3ch;
  max-width: 10ch;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  padding: 0 !important;
}

.ticket-limit-box .desk-price-wand,
.ticket-price-picker .desk-price-wand {
  position: fixed;
  left: auto;
  right: 168px;
  bottom: 118px;
  transform: none;
  z-index: 500;
}

.ticket-limit-input {
  width: auto;
  min-width: 3ch;
  max-width: 10ch;
  flex: 0 1 auto;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}

.ticket-limit-suffix {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #b8b8b8;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ticket-limit-input::placeholder {
  color: #555;
  font-weight: 600;
}

.ticket-limit-input:disabled {
  opacity: 0.45;
}

.ticket-limit-box input[type='number']::-webkit-outer-spin-button,
.ticket-limit-box input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ticket-slider-wrap {
  position: relative;
}

.ticket-slider-labels {
  position: relative;
  z-index: 2; /* above range hit-area so bid/mid/ask clicks never hit the slider */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  align-items: center;
}

.ticket-slider-labels > :first-child {
  text-align: left;
  justify-self: start;
}

.ticket-slider-labels > :last-child {
  text-align: right;
  justify-self: end;
}

/* Clickable bid / mid / ask — one-shot populate limit price */
.ticket-mkt-snap {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: 0;
  background: transparent;
  padding: 1px 4px;
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: 1.1;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.ticket-mkt-snap:hover:not(:disabled) {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.06);
}

.ticket-mkt-snap:active:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ticket-mkt-snap:disabled {
  cursor: default;
  opacity: 0.55;
}

.ticket-mkt-snap--bid:hover:not(:disabled) {
  color: #7dcea0;
}

.ticket-mkt-snap--ask:hover:not(:disabled) {
  color: #f1948a;
}

.ticket-mkt-snap--mid:hover:not(:disabled) {
  color: #c8a84b;
}

.ticket-mkt-snap-main {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticket-mkt-snap-sub {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.ticket-mkt-snap--mid:not(:disabled) {
  color: #c8c8c8;
}

.ticket-mkt-snap--mid.is-credit:not(:disabled) {
  color: #e87878;
}

.ticket-mkt-snap.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.ticket-mkt-snap--bid.is-active {
  color: var(--desk-up, #3dd68c) !important;
}

.ticket-mkt-snap--ask.is-active {
  color: var(--desk-down, #ff7b93) !important;
}

.ticket-mkt-snap--mid.is-active {
  color: #fff !important;
}

.ticket-mkt-snap--mid.is-credit.is-active {
  color: #ff8a8a !important;
}

/* Value row: only MID tints red on credit — bid/ask stay neutral like TT */
.ticket-slider-wrap > .ticket-slider-labels:last-of-type .ticket-mkt-snap--bid.is-active,
.ticket-slider-wrap > .ticket-slider-labels:last-of-type .ticket-mkt-snap--ask.is-active {
  color: #d8d8d8 !important;
  background: transparent;
  font-weight: 700;
}

.ticket-slider-wrap > .ticket-slider-labels:last-of-type .ticket-mkt-snap--mid.is-credit {
  color: #e07070 !important;
}

.ticket-slider-track {
  position: relative;
  z-index: 1;
  /* Clip oversized range hitbox so it cannot cover bid/mid/ask rows */
  overflow: hidden;
  height: 4px;
  background: #2e2e2e;
  border-radius: 2px;
}

.ticket-slider-fill {
  background: rgba(255, 255, 255, 0.22);
}

.ticket-slider-input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  /* Keep hit target on the track only — do not overflow into mid buttons */
  height: 5px;
  margin: 0;
  cursor: pointer;
}

.ticket-slider-input:disabled {
  cursor: not-allowed;
}

.ticket-slider-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.ticket-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid #888;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ticket-slider-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}

.ticket-slider-input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid #666;
}

.ticket-exec {
  background: transparent;
}

.ticket-field-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #777;
  line-height: 1;
}

.ticket-select {
  height: 26px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: #161616;
  box-shadow: none;
  color: #f1f1f1;
  font-size: 10px;
  font-weight: 600;
  padding: 0 6px;
  text-transform: none;
  cursor: pointer;
}

.ticket-select:focus {
  outline: none;
  border-color: #555;
}

/* Primary send — Tastytrade-style orange CTA */
.ticket-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border: 1px solid #b85a00;
  border-radius: 2px;
  background: #e86f00;
  box-shadow: none;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
}

.ticket-send-btn:hover:not(:disabled) {
  background: #ff7a12;
  border-color: #d06000;
  color: #111;
}

.ticket-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Instant path — info edge so it reads as “live fire” vs normal send */
.ticket-send-btn.is-instant {
  border-color: var(--wt-info);
  background: #245b72;
  box-shadow: none;
}

.ticket-instant-toggle.is-off {
  display: none;
}

.ticket-instant-toggle {
  height: 18px;
  padding: 0 6px;
  border: 1px solid #333;
  border-radius: 2px;
  background: #1a1a1a;
  color: #666;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.ticket-instant-toggle:hover {
  border-color: #555;
  color: #aaa;
}

.ticket-instant-toggle.is-on {
  border-color: #ff9a3a;
  background: #3a2208;
  color: #ffb35c;
}

/* Review / Preview popup */
.ticket-shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.ticket-shortcuts-modal {
  width: min(400px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #161616;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  color: #ddd;
}

.ticket-shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.ticket-shortcuts-head strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
}

.ticket-shortcuts-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.ticket-shortcuts-close:hover {
  color: #fff;
  background: #333;
}

.ticket-shortcuts-body {
  padding: 12px;
  overflow: auto;
}

.ticket-shortcuts-lead {
  margin: 0 0 10px;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.ticket-shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ticket-shortcuts-table th {
  width: 38%;
  padding: 5px 8px 5px 0;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #c8c8c8;
  vertical-align: top;
  white-space: nowrap;
}

.ticket-shortcuts-table td {
  padding: 5px 0;
  color: #aaa;
  vertical-align: top;
}

.ticket-shortcuts-table tr + tr th,
.ticket-shortcuts-table tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.ticket-review-modal {
  display: flex;
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #161616;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  color: #ddd;
}

.ticket-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.ticket-review-head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
}

.ticket-review-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.ticket-review-close:hover {
  color: #fff;
  background: #333;
}

.ticket-review-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px;
}

.ticket-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  color: #999;
}

.ticket-review-symbol {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ticket-review-limit {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ticket-review-legs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #2e2e2e;
  border-radius: 2px;
  background: #121212;
  overflow: hidden;
}

.ticket-review-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #1e1e1e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #bbb;
}

.ticket-review-leg:last-child {
  border-bottom: 0;
}

.ticket-review-leg .is-buy {
  color: #7dffc9;
}

.ticket-review-leg .is-sell {
  color: #ff9aaf;
}

.ticket-review-tag {
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 700;
}

.ticket-review-tag.is-buy {
  background: #0b3d2e;
  color: #9dffd0;
}

.ticket-review-tag.is-sell {
  background: #3a1515;
  color: #ffb0b0;
}

.ticket-review-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #2e2e2e;
  border-radius: 2px;
  background: #161616;
}

.ticket-review-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.ticket-review-k {
  color: #888;
}

.ticket-review-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #f0f0f0;
}

.ticket-review-fill-pnl {
  padding-bottom: 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid #2a2a2a;
}

.ticket-review-fill-pnl .ticket-review-k {
  color: #bbb;
  font-weight: 600;
}

.ticket-review-pnl.is-up {
  color: #3dd68c;
}

.ticket-review-pnl.is-dn {
  color: #ff7b93;
}

.ticket-review-muted {
  font-size: 12px;
  color: #777;
}

.ticket-review-error {
  font-size: 12px;
  color: #ff9aaf;
}

.ticket-review-warn {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 11px;
  color: #e8c547;
}

.ticket-review-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.ticket-review-secondary {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  background: #2a2a2a;
  color: #ccc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.ticket-review-secondary:hover:not(:disabled) {
  background: #333;
  color: #fff;
}

.ticket-review-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ticket-review-confirm {
  margin-left: auto;
  width: auto;
  min-width: 140px;
  height: 36px;
  padding: 0 14px;
}


/* ========== Invest module — design system metal + purple (Workstream G) ========== */
