/* Layout-only terminal shell. All live controls retain their existing behavior. */
#tokenTerminal.combined-terminal .terminal-workspace-shell {
  --terminal-trade-width: 290px;
  min-width: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080c12;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader.token-market-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  margin: 0;
  padding: 16px 18px 14px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 7px 12px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-avatar-wrap {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .creator-burn-image-badge {
  position: relative;
  inset: auto;
  transform: none;
  width: max-content;
  max-width: none;
  justify-content: center;
  gap: 3px;
  margin: -8px 0 0;
  padding: 3px 5px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .creator-burn-image-badge .fraksha-burn-icon {
  width: 12px;
  height: 15px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-avatar-wrap > .token-image {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 23px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-identity {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px 9px;
  min-width: 0;
  line-height: 1.2;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row h2 {
  min-width: 0;
  max-width: 100%;
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row > span {
  font-size: 12px;
  overflow-wrap: anywhere;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-metadata {
  display: block;
  margin-top: 4px;
  min-width: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-address-row {
  gap: 5px;
  min-width: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketAddress {
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .copy-address {
  width: 25px;
  height: 25px;
  min-height: 25px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .creator-launch-record {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  max-width: 560px;
  margin: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price {
  min-width: 0;
  max-width: 360px;
  text-align: right;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price .chart-price-metrics {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 5px 9px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price #chartPrice,
#tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader > .header-market-cap {
  display: none;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #terminalPrice {
  color: var(--ink);
  font: 600 clamp(21px, 2.1vw, 28px)/1.15 var(--font-geist-mono), monospace;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #terminalPrice sub {
  font-size: .55em;
  line-height: 0;
  letter-spacing: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-price-change {
  font: 500 11px/1.4 var(--font-geist-mono), monospace;
  white-space: nowrap;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-price-change small {
  font: 10px/1.4 var(--font-geist-sans), sans-serif;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-supply-reduction {
  align-items: baseline;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 5px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-supply-reduction > span {
  font-size: 11px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-supply-reduction small {
  font-size: 9px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 10px 18px;
  border-block: 1px solid var(--line);
  background: #090d14;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > * {
  min-width: 0;
  padding-inline: 14px;
  border-right: 1px solid var(--line);
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :first-child {
  padding-left: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :last-child {
  padding-right: 0;
  border-right: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  line-height: 1.25;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip strong {
  display: block;
  font: 500 13px/1.4 var(--font-geist-mono), monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .market-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--terminal-trade-width);
  gap: 0;
  align-items: stretch;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .market-page-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 0 14px 0 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #priceChart.reference-chart {
  margin: 0;
  padding: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #priceChart .chart-price-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 0 8px 12px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-controls,
#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls {
  gap: 7px;
  max-width: 100%;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls > div {
  gap: 1px;
  padding: 2px;
  border-radius: 7px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls button {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls button.selected {
  border-color: rgba(0, 229, 255, .16);
  background: rgba(0, 229, 255, .08);
  color: var(--green);
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #ohlcLegend {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 3px 0 7px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  font-size: 9px;
  line-height: 1.4;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #ohlcLegend > * {
  flex: none;
  white-space: nowrap;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #priceChart > .chart-workspace:not(:fullscreen) #chartCanvas {
  height: 420px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-range-toolbar {
  margin-left: 10px;
  padding-block: 2px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell .chart-range-toolbar button {
  min-width: 36px;
  min-height: 32px;
  padding-inline: 7px;
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade.trade-terminal {
  position: static;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 15px 14px 18px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 0 12px;
  background: #0b1017;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .order-heading {
  margin-bottom: 11px;
  font-size: 11px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-tabs {
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-tabs button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-layout {
  margin-top: 14px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .terminal-asset {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .terminal-asset label {
  margin-bottom: 6px;
  font-size: 11px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .asset-input {
  min-width: 0;
  gap: 8px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .asset-input input {
  min-width: 0;
  font-size: 23px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .asset-input strong {
  flex-shrink: 0;
  max-width: 45%;
  font-size: 10px;
  overflow-wrap: anywhere;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade #payBalance {
  margin: 7px 0;
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .quick-amounts button {
  min-width: 0;
  min-height: 29px;
  padding: 4px;
  border-radius: 5px;
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .terminal-asset:last-child {
  margin-top: 15px;
  padding: 0;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .terminal-asset:last-child .asset-input input {
  font-size: 19px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .receive-estimate {
  margin-top: 3px;
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-details {
  margin-top: 16px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-details > summary {
  min-height: 28px;
  font-size: 10px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-details .trade-meta {
  gap: 8px;
  margin-top: 8px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade .terminal-cta {
  min-height: 42px;
  height: auto;
  margin-top: 15px;
  padding-block: 10px;
  border-radius: 7px;
}

#tokenTerminal.combined-terminal .terminal-workspace-shell #trade #tradeStatus {
  font-size: 10px;
}

@media (min-width: 801px) {
  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) var(--terminal-trade-width);
    padding-inline: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > * {
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :first-child {
    padding-left: 18px;
    border-left: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :last-child {
    padding-right: 18px;
  }
}

@media (max-width: 1000px) and (min-width: 801px) {
  #tokenTerminal.combined-terminal .terminal-workspace-shell {
    --terminal-trade-width: 270px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader.token-market-header {
    gap: 12px;
    padding-inline: 14px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price {
    max-width: 280px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #terminalPrice {
    font-size: 22px;
  }
}

@media (max-width: 800px) {
  #tokenTerminal.combined-terminal .terminal-workspace-shell {
    border-radius: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader.token-market-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-heading {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-avatar-wrap > .token-image {
    width: 42px;
    height: 42px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row {
    grid-column: auto;
    grid-row: auto;
    gap: 5px 8px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row h2 {
    font-size: 21px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row > span {
    font-size: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-metadata {
    margin-top: 2px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-header-price .chart-price-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1px 7px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #terminalPrice {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(20px, 4.5vw, 25px);
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-price-change {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-supply-reduction {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 5px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-supply-reduction small {
    font-size: 8px;
    white-space: nowrap;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip {
    padding: 9px 12px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > * {
    padding-inline: 8px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :first-child {
    padding-left: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :last-child {
    padding-right: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip small {
    font-size: 9px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip strong {
    font-size: 11px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .market-page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .market-page-left {
    padding-right: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #priceChart .chart-price-toolbar {
    padding: 7px 9px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-controls,
  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls {
    gap: 5px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls button {
    padding-inline: 8px;
    font-size: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #ohlcLegend {
    padding: 2px 9px 6px;
    font-size: 9px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #priceChart > .chart-workspace:not(:fullscreen) #chartCanvas {
    height: clamp(350px, calc(100svh - 360px), 480px);
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-range-toolbar {
    margin-inline: 8px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #trade.trade-terminal {
    grid-column: 1;
    grid-row: 2;
    padding: 13px 12px 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0 10px 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #trade .trade-layout {
    margin-top: 12px;
  }
}

@media (max-width: 380px) {
  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader.token-market-header {
    padding-inline: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell #marketHeader .token-name-row h2 {
    font-size: 19px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip {
    padding-inline: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > * {
    padding-inline: 5px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :first-child {
    padding-left: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip > :last-child {
    padding-right: 0;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .terminal-market-strip strong {
    font-size: 10px;
  }

  #tokenTerminal.combined-terminal .terminal-workspace-shell .chart-view-controls button {
    padding-inline: 6px;
  }
}
