.platform[data-page="terminal"] .workspace { max-width: none; padding: 20px 24px 32px; }
.platform[data-page="terminal"] .workspace-top { margin-bottom: 20px; padding-bottom: 16px; }
.platform[data-page="terminal"] .page-heading { margin-bottom: 14px; }
.platform[data-page="terminal"] .page-heading .eyebrow { display: none; }
.platform[data-page="terminal"] .page-heading h1 { font-size: clamp(24px, 2.3vw, 30px); }
.platform[data-page="terminal"] .demo-note { padding-top: 9px; padding-bottom: 9px; margin-bottom: 18px; }
.terminal { --terminal-up: var(--green, #4DFF91); }
.terminal [hidden] { display: none !important; }
.terminal .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.terminal .instrument-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-right: 18px; }
.terminal .instrument-nav .instrument-tabs { border: 0; padding-right: 0; }
.terminal .asset-launch { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-raised); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 11px; white-space: nowrap; }
.terminal .asset-launch:hover { border-color: var(--accent); }
.terminal .asset-launch > span { color: var(--accent); }
.terminal .asset-dialog { box-sizing: border-box; width: min(890px, calc(100vw - 36px)); max-width: none; max-height: min(850px, calc(100dvh - 48px)); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 120px #0008; overflow: hidden; }
.terminal .asset-dialog[open] { display: flex; flex-direction: column; }
.terminal .asset-dialog .dialog-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
.terminal .asset-dialog .dialog-close:hover { color: var(--text); background: var(--panel-raised); }
.terminal .asset-dialog::backdrop { background: #050505bb; backdrop-filter: blur(6px); }
.terminal .asset-dialog-head { padding: 26px 28px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex: 0 0 auto; }
.terminal .asset-eyebrow { font-size: 9px; letter-spacing: .17em; color: var(--accent); margin-bottom: 9px; }
.terminal .asset-dialog-head h2 { font-size: 27px; letter-spacing: -.045em; margin: 0 0 5px; font-weight: 500; }
.terminal .asset-dialog-head p { color: var(--muted); font-size: 11px; margin: 0; }
.terminal .asset-search { display: flex; align-items: center; gap: 12px; margin: 0 28px 16px; padding: 0 14px; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--bg); flex: 0 0 auto; }
.terminal .asset-search:focus-within { border-color: var(--accent); }
.terminal .asset-search input { width: 100%; min-width: 0; color: var(--text); background: none; border: 0; outline: 0; padding: 12px 0; font: inherit; font-size: 12px; }
.terminal .asset-search kbd { border: 1px solid var(--line); border-radius: 4px; font-size: 9px; font-family: inherit; padding: 3px 5px; }
.terminal .asset-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 0 28px 12px; }
.terminal .asset-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.terminal .asset-segments { display: flex; gap: 12px; padding: 0 28px 12px; flex-wrap: wrap; }
.terminal .asset-segments label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.terminal .asset-segments select { min-height: 36px; max-width: 190px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); padding: 6px 8px; font: inherit; }
.terminal .asset-summary { padding: 0 28px 10px; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.terminal .asset-open:disabled { opacity: .55; cursor: not-allowed; }
.terminal .asset-filters button { border: 1px solid transparent; color: var(--muted); background: transparent; border-radius: 7px; padding: 8px 11px; font-size: 11px; white-space: nowrap; }
.terminal .asset-filters button[aria-pressed="true"] { color: var(--accent); background: var(--panel-raised); border-color: var(--line); }
.terminal .asset-sort select { max-width: 155px; padding: 7px 9px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.terminal .asset-status { min-height: 22px; padding: 0 28px 10px; font-size: 9px; color: var(--muted); }
.terminal .asset-status[data-stale="true"] { color: var(--warning); }
.terminal .asset-table-wrap { overflow: auto; overscroll-behavior: contain; min-height: 80px; flex: 1 1 auto; border-top: 1px solid var(--line); scrollbar-gutter: stable; }
.terminal .asset-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.terminal .asset-table th { position: sticky; top: 0; background: var(--panel); color: var(--muted); text-align: right; font-weight: 400; font-size: 9px; padding: 12px; border-bottom: 1px solid var(--line); z-index: 1; white-space: nowrap; }
.terminal .asset-table th:nth-child(2) { text-align: left; }
.terminal .asset-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; height: 63px; }
.terminal .asset-table th:first-child, .terminal .asset-table td:first-child { padding-left: 20px; padding-right: 0; width: 30px; }
.terminal .asset-table td:last-child { text-align: right; }
.terminal .asset-table tr[data-selected="true"] { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.terminal .asset-table tbody tr:hover { background: var(--panel-raised); }
.terminal .asset-star { color: var(--muted); background: transparent; border: 0; width: 30px; height: 38px; padding: 0; font-size: 21px; }
.terminal .asset-star[aria-pressed="true"] { color: #dcad62; }
.terminal .asset-open { display: flex; gap: 11px; align-items: center; border: 0; background: transparent; color: var(--text); text-align: left; padding: 4px 0; width: 100%; min-height: 42px; }
.terminal .asset-open strong { display: block; font-size: 12px; font-weight: 500; }
.terminal .asset-open strong small { display: inline; font-size: 10px; color: var(--muted); font-weight: 400; }
.terminal .asset-open em { display: block; color: var(--muted); font-size: 9px; font-style: normal; margin-top: 4px; }
.terminal .asset-token { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; color: var(--text); background: var(--panel-raised); border: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.terminal .asset-token[data-token="BTC"] { color: #ebbd7c; background: #c3933914; }
.terminal .asset-token[data-token="ETH"] { color: #94a6f5; background: #8899ee14; }
.terminal .asset-token[data-token="SOL"] { color: #89d5ba; background: #67b89c14; }
.terminal .asset-token[data-token="BNB"] { color: #dbc274; background: #ddbd6214; }
.terminal .asset-numeric { text-align: right; font-variant-numeric: tabular-nums; }
.terminal .asset-numeric > small { display: block; color: var(--muted); font-size: 8px; margin-top: 5px; }
.terminal .asset-mode { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; color: var(--muted); font-size: 9px; }
.terminal .asset-mode-demo { color: var(--accent); }
.terminal .asset-empty { padding: 50px 25px; text-align: center; color: var(--muted); font-size: 12px; }
.terminal .asset-more { display: block; width: calc(100% - 40px); margin: 16px 20px; padding: 12px; background: var(--panel-raised); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.terminal .asset-dialog-foot { padding: 14px 28px 18px; border-top: 1px solid var(--line); flex: 0 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--muted); }
.terminal .asset-dialog-foot button { background: none; border: 0; padding: 0; font-size: 10px; }
.terminal .asset-dialog-foot p { flex-basis: 100%; margin: 0; line-height: 1.6; font-size: 9px; }
.terminal .instrument-price small { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.terminal .asset-preview > p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 14px 0 20px; }
.terminal .asset-preview-badge { border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; font-size: 10px; color: var(--accent); }
.terminal .asset-preview dl { margin: 0 0 20px; }
.terminal .asset-preview dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.terminal .asset-preview dt { color: var(--muted); }
.terminal .asset-preview dd { text-align: right; margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.terminal .asset-preview-note { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: 20px; }
.terminal .asset-preview-note strong { font-size: 11px; font-weight: 500; }
.terminal .asset-preview-note p { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
@media (max-width: 680px) {
  .terminal .asset-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .terminal .asset-dialog-head { padding: 20px 16px 16px; }
  .terminal .asset-dialog-head h2 { font-size: 24px; }
  .terminal .asset-search { margin: 0 16px 12px; }
  .terminal .asset-tools { padding: 0 16px 10px; flex-wrap: wrap; gap: 7px; }
  .terminal .asset-filters button { font-size: 10px; padding: 7px 9px; }
  .terminal .asset-status { padding: 0 16px 10px; }
  .terminal .asset-table th:nth-child(5), .terminal .asset-table td:nth-child(5), .terminal .asset-table th:nth-child(6), .terminal .asset-table td:nth-child(6) { display: none; }
  .terminal .asset-table td { padding: 7px; font-size: 10px; }
  .terminal .asset-table th { padding: 10px 7px; }
  .terminal .asset-table td:first-child, .terminal .asset-table th:first-child { padding-left: 7px; width: 23px; }
  .terminal .asset-star { width: 23px; }
  .terminal .asset-open { gap: 6px; }
  .terminal .asset-token { display: grid; width: 26px; height: 26px; }
  .terminal .asset-open strong { font-size: 11px; }
  .terminal .asset-open strong small { font-size: 8px; }
  .terminal .asset-dialog-foot { padding: 12px 16px; }
  .terminal .instrument-nav { padding-right: 10px; }
  .terminal .instrument-nav .instrument-tabs { padding-left: 7px; gap: 0; }
  .terminal .instrument-nav .instrument-tabs button { padding: 15px 8px; font-size: 10px; }
  .terminal .instrument-nav .instrument-tabs button span { display: none; }
  .terminal .asset-launch { padding: 8px; font-size: 10px; }
}
.terminal .terminal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 11px; color: var(--muted); }
.terminal .feed-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.terminal .feed-state::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
.terminal .terminal-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 18px; }
.terminal .terminal-metric { padding: 19px 23px; min-width: 0; border-right: 1px solid var(--line); }
.terminal .terminal-metric:last-child { border: 0; }
.terminal .terminal-metric small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.terminal .terminal-metric strong { display: block; font-size: clamp(19px, 2vw, 27px); letter-spacing: -.045em; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.terminal .terminal-metric span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.terminal .terminal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.terminal .terminal-grid .panel { margin: 0; }
.terminal .market-panel { padding: 0; overflow: hidden; }
.terminal .instrument-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 5px; padding: 0 20px; }
.terminal .instrument-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 18px 12px; color: var(--muted); background: none; font-size: 12px; min-height: 52px; }
.terminal .instrument-tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.terminal .instrument-tabs button span { color: var(--muted); font-size: 9px; margin-left: 7px; }
.terminal .instrument-heading { padding: 23px 25px 0; display: flex; justify-content: space-between; gap: 20px; }
.terminal .instrument-title { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.terminal .coin-mark { height: 31px; width: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; color: var(--accent); }
.terminal .instrument-price { font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.05em; line-height: 1.3; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.terminal .instrument-subtitle { color: var(--muted); font-size: 10px; }
.terminal .price-change { color: var(--terminal-up); font-size: 11px; text-align: right; margin-top: 7px; font-variant-numeric: tabular-nums; }
.terminal .quote-chart { padding: 17px 18px 0; min-height: 245px; }
.terminal .quote-chart svg { width: 100%; height: 235px; display: block; }
.terminal .quote-chart .chart-wait { min-height: 235px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; }
.terminal .chart-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; padding: 4px 25px 19px; }
.terminal .quote-book { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; }
.terminal .quote-book > div { padding: 15px 22px; border-right: 1px solid var(--line); }
.terminal .quote-book > div:last-child { border: 0; }
.terminal .quote-book small { color: var(--muted); font-size: 9px; display: block; margin-bottom: 5px; }
.terminal .quote-book strong { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.terminal .order-panel { padding: 22px; }
.terminal .order-panel h2 { font-size: 16px; margin-bottom: 6px; }
.terminal .order-panel > p { color: var(--muted); font-size: 10px; margin-bottom: 20px; }
.terminal .side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 4px; margin: 18px 0 20px; }
.terminal .side-switch button { min-height: 39px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; background: none; color: var(--muted); }
.terminal .side-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--panel-raised); }
.terminal .side-switch button[data-side="short"][aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.terminal .order-fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.terminal .order-fieldset .form-field { margin-bottom: 15px; }
.terminal .protective-orders { padding: 5px 0 0; margin: 0 0 16px; border: 0; }
.terminal .protective-orders summary { cursor: pointer; color: var(--muted); font-size: 11px; padding: 3px 0 14px; }
.terminal .order-estimate { margin-bottom: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.terminal .estimate-row { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: 10px; color: var(--muted); }
.terminal .estimate-row strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.terminal .order-estimate p { margin: 10px 0 0; font-size: 9px; color: var(--muted); }
.terminal .order-caption { font-size: 9px; color: var(--muted); text-align: center; margin: 11px 0 0; }
.terminal .order-type-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); gap: 4px; }
.terminal .order-type-switch button { min-height: 34px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; }
.terminal .order-type-switch button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.terminal .order-type-hint { min-height: 28px; margin: 10px 0 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
.terminal .risk-sizing { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; }
.terminal .risk-sizing summary { cursor: pointer; font-size: 10px; color: var(--muted); }
.terminal .risk-sizing[open] summary { margin-bottom: 12px; }
.terminal .risk-sizing p { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.terminal .risk-sizing p:empty { display: none; }
.terminal .risk-estimate { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.terminal .risk-estimate-title { display: block; color: var(--text); font-size: 11px; font-weight: 500; margin-bottom: 10px; }
.terminal .risk-estimate p { line-height: 1.6; }
.terminal .risk-estimate .risk-estimate-warning { color: var(--warning); padding: 8px; background: var(--panel-raised); border-radius: 5px; }
.terminal .estimate-row strong.loss { color: var(--danger); }
.terminal .estimate-row strong.profit { color: var(--terminal-up); }
.terminal .position-protection-button { margin-right: 6px; }
.terminal .order-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; }
.terminal .order-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.terminal .order-state[data-state="pending"]::before { background: var(--warning); }
.terminal .order-state[data-state="filled"]::before { background: var(--terminal-up); }
.terminal .order-state[data-state="rejected"]::before { background: var(--danger); }
.terminal .order-reason { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.terminal #management-recovery:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.terminal .protection-dialog { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 30px); overflow: auto; box-shadow: 0 24px 100px #0008; }
.terminal .protection-dialog::backdrop { background: #050505cc; backdrop-filter: blur(4px); }
.terminal .protection-dialog h2 { font-size: 18px; margin: 0; }
.terminal .protection-dialog .panel-header { margin-bottom: 12px; }
.terminal .protection-dialog #protection-position { font-size: 12px; color: var(--accent); margin-bottom: 9px; }
.terminal .protection-current { font-size: 11px; color: var(--muted); padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.terminal .protection-dialog .dialog-close { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; font-size: 22px; width: 34px; height: 34px; cursor: pointer; }
.terminal .protection-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (min-width: 1001px) { .terminal .order-panel { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 600px) { .terminal .protection-dialog { padding: 18px; } .terminal .protection-actions { flex-wrap: wrap; } .terminal .protection-actions button { flex: 1; } .terminal #management-recovery:not([hidden]) { align-items: flex-start; flex-direction: column; } }
.terminal .terminal-message { margin: 18px 0 0; font-size: 11px; }
.terminal .terminal-message:empty { display: none; }
.terminal .risk-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.terminal .risk-card { padding: 19px 22px; }
.terminal .risk-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 11px; }
.terminal .risk-title span { color: var(--muted); }
.terminal .risk-title strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.terminal .risk-track { height: 4px; border-radius: 4px; background: var(--panel-raised); margin: 14px 0 11px; overflow: hidden; }
.terminal .risk-track span { display: block; height: 100%; background: var(--terminal-up); border-radius: 4px; transition: width .3s ease; }
.terminal .risk-card[data-low="true"] .risk-track span { background: var(--danger); }
.terminal .risk-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.terminal .positions-panel { margin-top: 18px; }
.terminal .positions-panel h2 { font-size: 16px; }
.terminal .position-count { color: var(--muted); font-size: 11px; margin-left: 8px; }
.terminal .position-side { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.terminal .position-empty { padding: 32px 10px; text-align: center; }
.terminal .position-empty strong { font-weight: 500; font-size: 13px; }
.terminal .position-empty p { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.terminal .terminal-notice { border: 1px solid var(--line); border-left: 2px solid var(--warning); padding: 15px 18px; border-radius: 8px; font-size: 11px; line-height: 1.8; margin-bottom: 18px; background: var(--panel); }
.terminal .terminal-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.terminal .terminal-footer { color: var(--muted); font-size: 10px; margin: 19px 0 0; line-height: 1.9; }
.terminal .terminal-footer a { color: var(--accent); }
.platform .rules-document { width: min(880px, calc(100% - 40px)); margin: 40px auto 80px; }
.platform .rules-document .rules-intro { font-size: 14px; color: var(--muted); max-width: 630px; }
.platform .rules-document section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.platform .rules-document section h2 { font-size: 20px; margin-bottom: 15px; }
.platform .rules-document section > div, .platform .rules-document section p, .platform .rules-document section li { font-size: 13px; color: var(--muted); }
.platform .rules-document section strong { color: var(--text); font-weight: 550; }
.platform .rules-document .formula { font-size: 13px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--accent); margin: 16px 0; }
@media (max-width: 1240px) {
  .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
  .terminal .terminal-metric { padding: 17px; }
  .terminal .order-panel { padding: 18px; }
}
@media (max-width: 1040px) and (min-width: 781px) {
  .terminal .terminal-grid { grid-template-columns: 1fr; }
  .terminal .order-panel { max-width: none; }
}
@media (max-width: 680px) {
  .terminal .terminal-grid { grid-template-columns: 1fr; }
  .terminal .terminal-overview { grid-template-columns: 1fr 1fr; }
  .terminal .terminal-metric:nth-child(2) { border-right: 0; }
  .terminal .terminal-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .terminal .terminal-metric strong { font-size: 23px; }
  .terminal .terminal-bar { align-items: flex-start; font-size: 10px; }
  .terminal .terminal-bar > span:last-child { text-align: right; }
  .terminal .instrument-heading { padding: 20px 19px 0; }
  .terminal .instrument-tabs { padding: 0 12px; }
  .terminal .instrument-tabs button { padding: 15px 10px; }
  .terminal .instrument-tabs button span { display: none; }
  .terminal .quote-chart { padding: 10px 8px 0; min-height: 205px; }
  .terminal .quote-chart svg { height: 200px; }
  .terminal .quote-book > div { padding: 12px 14px; }
  .terminal .quote-book strong { font-size: 12px; }
  .terminal .risk-strip { grid-template-columns: 1fr; gap: 12px; }
  .terminal .risk-card { padding: 17px 19px; }
  .terminal .chart-caption { padding: 4px 19px 17px; }
}

/* GoCrypto analysis workspace: the chart receives most of the usable surface. */
.terminal { min-width: 0; }
.terminal .terminal-bar { gap: 12px; margin: 0 0 12px; min-height: 40px; flex-wrap: wrap; }
.terminal .terminal-identity, .terminal .terminal-view-controls { display: flex; align-items: center; gap: 18px; min-width: 0; flex-wrap: wrap; }
.terminal .terminal-view-controls { margin-left: auto; gap: 12px; }
.terminal .terminal-wordmark { font: 600 11px/1.4 Consolas, monospace; letter-spacing: 1.5px; color: var(--text); white-space: nowrap; }
.terminal .terminal-wordmark > span { color: var(--accent); }
.terminal .terminal-account-label { font-variant-numeric: tabular-nums; }
.terminal .terminal-view-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; min-height: 36px; padding: 7px 11px; font: inherit; cursor: pointer; }
.terminal .terminal-view-button > span:first-child { font-size: 20px; line-height: 1; }
.terminal .terminal-view-button:hover, .terminal .terminal-view-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.terminal button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.terminal .terminal-overview { border-radius: 8px; margin-bottom: 12px; }
.terminal .terminal-metric { padding: 13px 18px; }
.terminal .terminal-metric strong { font-size: clamp(19px, 1.8vw, 25px); }
.terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 286px; gap: 12px; }
.terminal .terminal-grid > div { min-width: 0; }
.terminal .panel { border-radius: 8px; }
.terminal .instrument-tabs { padding: 0 12px; }
.terminal .instrument-tabs button { min-height: 45px; padding: 12px; }
.terminal .instrument-heading { padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.terminal .instrument-heading > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.terminal .instrument-title { width: 100%; font-size: 11px; }
.terminal .coin-mark { width: 23px; height: 23px; font-size: 15px; }
.terminal .instrument-price { font-size: 27px; margin: 0; }
.terminal .instrument-subtitle { font-size: 9px; }
.terminal .price-change { margin: 0; }
.terminal .quote-book > div { padding: 10px 18px; }
.terminal .quote-book strong { font-size: 12px; }
.terminal .order-panel { padding: 19px; }
.terminal .order-panel .form-field input { font-variant-numeric: tabular-nums; }
.terminal .side-switch { margin: 15px 0; }
.terminal .risk-strip { margin-top: 12px; gap: 12px; }
.terminal .risk-card { padding: 14px 17px; }
.terminal .risk-track { margin: 10px 0; }
.terminal .positions-panel { margin-top: 12px; padding: 19px; }
.terminal .position-empty { padding: 22px 10px; }
.terminal .terminal-footer { font-size: 10px; line-height: 1.8; margin-bottom: 0; }
.terminal .chart-unavailable { min-height: 350px; padding: 40px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.terminal:fullscreen, .terminal.terminal-expanded { --gc-chart-height: clamp(320px, calc(100dvh - 500px), 850px); background: var(--bg); width: 100%; height: 100%; padding: 16px 20px; overflow: auto; box-sizing: border-box; }
.terminal.terminal-expanded { position: fixed; inset: 0; z-index: 1000; }
body.terminal-expanded-page { overflow: hidden; }
.platform.terminal-expanded-page .content-enter { animation: none; transform: none; }
.terminal:fullscreen .terminal-bar, .terminal.terminal-expanded .terminal-bar { position: sticky; top: -16px; background: var(--bg); z-index: 20; padding-block: 5px; }
@media (min-width: 1550px) {
  .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .terminal .order-panel { padding: 22px; }
}
@media (max-width: 1180px) {
  .platform[data-page="terminal"] .workspace { padding-inline: 18px; }
  .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 256px; }
  .terminal .order-panel { padding: 15px; }
  .terminal .terminal-account-label { display: none; }
  .terminal .terminal-identity { gap: 12px; }
}
@media (max-width: 1000px) {
  .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr); }
  .terminal .order-panel { padding: 20px; }
  .terminal .order-panel form { max-width: none; }
}
@media (max-width: 680px) {
  .platform[data-page="terminal"] .workspace { padding-inline: 12px; }
  .terminal { --gc-chart-height: 360px; }
  .terminal .terminal-bar { align-items: center; }
  .terminal .terminal-identity { gap: 7px; flex-direction: column; align-items: flex-start; }
  .terminal .feed-state { font-size: 9px; }
  .terminal .terminal-view-controls { flex-wrap: nowrap; }
  .terminal .terminal-view-button { font-size: 10px; padding-inline: 8px; }
  .terminal .terminal-metric { padding: 12px; }
  .terminal .terminal-metric strong { font-size: 22px; }
  .terminal .instrument-heading { padding: 13px; gap: 12px; }
  .terminal .instrument-price { font-size: 24px; }
  .terminal .instrument-heading > div:first-child > .instrument-subtitle { display: none; }
  .terminal .quote-book > div { padding-inline: 12px; }
  .terminal .risk-strip { grid-template-columns: 1fr; }
  .terminal:fullscreen, .terminal.terminal-expanded { padding: 10px; --gc-chart-height: 390px; }
  .terminal:fullscreen .terminal-bar, .terminal.terminal-expanded .terminal-bar { top: -10px; }
}
@media (prefers-reduced-motion: reduce) { .terminal *, .terminal *::before, .terminal *::after { scroll-behavior: auto; transition: none; animation: none; } }

@media (min-width: 1001px) {
  .terminal:fullscreen .terminal-metric span, .terminal.terminal-expanded .terminal-metric span { display: none; }
  .terminal:fullscreen .instrument-title, .terminal.terminal-expanded .instrument-title { width: auto; }
  .terminal:fullscreen .instrument-heading, .terminal.terminal-expanded .instrument-heading { padding-block: 12px; }
}
.terminal-tools { border:1px solid var(--line); border-radius:12px; margin:12px 0; background:var(--panel); }
.terminal-tools > summary { padding:14px 16px; cursor:pointer; font-size:13px; font-weight:600; }
.terminal-tools-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:0 16px 18px; }
.terminal-tools-grid section { min-width:0; }
.terminal-tools-grid h3 { font-size:14px; margin:8px 0 12px; }
.terminal-tools-grid label { display:block; margin:10px 0; font-size:12px; color:var(--muted); }
.terminal-tools-grid input:not([type=checkbox]),.terminal-tools-grid select { display:block; width:100%; padding:9px 10px; margin-top:6px; border:1px solid var(--line); border-radius:7px; background:var(--panel); color:var(--text); }
.terminal-tools-grid button { padding:8px 12px; border:1px solid var(--line); border-radius:7px; background:var(--panel); color:var(--text); cursor:pointer; margin:3px 3px 3px 0; }
.terminal-tools-grid p,.terminal-tools-grid small { font-size:11px; line-height:1.6; color:var(--muted); }
.workspace-saved { display:flex; align-items:center; gap:8px; font-size:12px; margin:7px 0; }
.workspace-saved > :first-child { flex:1; text-align:left; }
.terminal-alert { background:var(--panel); border-left:3px solid var(--accent); padding:10px 14px; font-size:12px; }
[data-workspace-status]:empty { display:none; }
.positions-panel td:last-child .button { margin:3px; font-size:11px; }
@media(max-width:650px) { .terminal-tools-grid { grid-template-columns:1fr; } }
.terminal-tools-grid textarea { display:block; box-sizing:border-box; width:100%; resize:vertical; min-height:120px; padding:10px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:8px; font:inherit; }

.sizing-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sizing-controls select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);color-scheme:dark}#size-slider{width:100%;accent-color:#b9f6d2;cursor:pointer}#size-summary{line-height:1.6;margin:4px 0 16px}

/* Compact GoCrypto order ticket */
.order-panel-brand{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:14px}.order-panel-brand span{color:#9cebc1;background:rgba(156,235,193,.09);padding:4px 7px;border-radius:5px}
.order-panel .order-type-switch{border-bottom:1px solid rgba(140,160,150,.2);padding-bottom:8px}.order-available{font-size:12px;color:#9badab;margin:12px 0}.order-panel .form-field{margin-bottom:10px}.order-panel input[name=quantity]{font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}.size-stops{display:flex;justify-content:space-between;margin:-5px 0 14px}.size-stops button{border:0;background:none;color:#9badab;padding:8px 3px;cursor:pointer;font-size:11px}.size-stops button:hover,.size-stops button:focus-visible{color:#b9f6d2}.trade-preview-grid,.trade-action-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.trade-preview-grid{padding:15px 0;border-top:1px solid rgba(140,160,150,.2);margin-top:12px}.trade-preview-grid>div{display:flex;flex-direction:column;gap:5px;font-variant-numeric:tabular-nums}.trade-preview-grid>div:last-child{text-align:right}.trade-preview-grid small{font-size:11px;color:#99aaa5}.trade-preview-grid strong{font-size:14px;margin-bottom:7px}.trade-preview-grid span{font-size:12px}.trade-action-grid button{border:0;border-radius:24px;padding:13px 8px;font-weight:750;font-size:14px;cursor:pointer}.trade-long{background:#b9f6d2;color:#09261c}.trade-short{background:#f16a81;color:#230c13}.trade-action-grid button:disabled{opacity:.4;cursor:not-allowed}.trade-action-grid button:focus-visible{outline:2px solid currentColor;outline-offset:3px}.trade-calculations{margin-top:16px;border-top:1px solid rgba(140,160,150,.2);padding-top:12px}.trade-calculations summary{font-size:12px;cursor:pointer}.order-sizing-note{font-size:11px;line-height:1.5;color:#99aaa5;margin:14px 0 8px}.order-panel .side-switch{margin:10px 0}.order-panel .side-switch button{padding:7px;font-size:12px}
/* Order details: quiet hierarchy, consistent touch targets. */
.order-panel #order-title{margin-bottom:4px}.order-panel #order-subtitle{margin-top:0;margin-bottom:14px;font-size:12px}.order-help{margin:8px 0;color:#99aaa5;font-size:11px}.order-help summary,.terminal-footer summary{cursor:pointer;width:fit-content}.order-help p{line-height:1.5;margin:8px 0}.order-panel .sizing-controls{gap:8px}.order-panel .sizing-controls select{min-height:40px}.order-panel .protective-orders,.order-panel .risk-sizing{border-top:1px solid rgba(140,160,150,.15);padding:10px 0;margin:0}.order-panel .protective-orders summary,.order-panel .risk-sizing summary{font-size:12px;cursor:pointer}.order-panel details[open]>summary{margin-bottom:10px}.order-panel .trade-calculations .order-sizing-note{margin-bottom:0}.terminal-footer{padding:12px 0}.terminal-footer>p{line-height:1.65;max-width:100ch}.order-panel input[type=range]{min-height:28px}.order-panel .size-stops button{min-height:32px;min-width:38px}.order-panel .trade-action-grid{gap:10px}.order-panel button:focus-visible,.order-panel select:focus-visible,.order-panel summary:focus-visible{outline:2px solid #88cfa9;outline-offset:3px}

.platform[data-theme="light"] .sizing-controls select{color-scheme:light}
.sizing-controls select option{background-color:var(--panel);color:var(--text)}
@media(max-width:1040px){.terminal .terminal-grid{grid-template-columns:minmax(0,1fr)}.terminal .order-panel{width:100%;max-width:none;box-sizing:border-box}.terminal .trade-action-grid button{min-height:44px}}
@media(max-width:600px){.terminal .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.terminal .positions-panel{padding:14px}.terminal .positions-panel .panel-header{flex-wrap:wrap;gap:10px}.terminal .positions-panel button{min-height:40px}.terminal .protection-dialog{box-sizing:border-box;padding:18px;width:calc(100vw - 24px)}.terminal .trade-preview-grid strong{font-size:13px;overflow-wrap:anywhere}.terminal .sizing-controls select{min-height:44px}.terminal #close-all-positions{margin-bottom:12px}.terminal .protection-actions{display:flex;flex-wrap:wrap;gap:8px}}
@media(max-width:1040px){.terminal .order-panel{position:static;max-height:none;overflow:visible}}

/* Execution surfaces: restrained motion, clear hierarchy, semantic trade colors. */
.platform[data-page="terminal"] .workspace-top { margin-bottom: 18px; }
.platform[data-page="terminal"] .page-heading h1 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.045em; }
.terminal { font-variant-numeric: tabular-nums; }
.terminal :is(.panel, .terminal-overview, .terminal-tools) { border-radius: 14px; box-shadow: none; }
.terminal :is(.panel, .button):hover { transform: none; }
.terminal .panel:hover { border-color: var(--line); }
.terminal :is(button, input, select, summary, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.terminal :is(button, input, select) { transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.terminal :is(.profit, .badge-positive) { color: var(--terminal-up); }
.terminal .loss { color: var(--danger); }
.terminal .terminal-bar { min-height: 42px; margin-bottom: 14px; }
.terminal .terminal-wordmark { font-family: inherit; font-size: 11px; font-weight: 650; letter-spacing: .14em; }
.terminal .terminal-wordmark > span { color: var(--muted); }
.terminal .terminal-account-label { color: var(--muted); font-size: 11px; }
.terminal .feed-state { font-size: 10px; }
.terminal .terminal-view-button { border-radius: 9px; background: var(--panel); min-height: 36px; }
.terminal .terminal-view-button:hover { background: var(--panel-raised); border-color: color-mix(in srgb, var(--text) 22%, transparent); color: var(--text); }
.terminal .terminal-view-button[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.terminal .terminal-overview { overflow: hidden; margin-bottom: 14px; background: var(--panel); }
.terminal .terminal-metric { padding: 17px 20px; }
.terminal .terminal-metric small { font-size: 10px; letter-spacing: .035em; margin-bottom: 9px; }
.terminal .terminal-metric strong { font-size: clamp(21px, 2vw, 29px); font-weight: 550; line-height: 1.2; letter-spacing: -.04em; }
.terminal .terminal-metric span { font-size: 10px; margin-top: 8px; }
.terminal .terminal-grid { gap: 14px; }
.terminal .market-panel { padding: 0; }
.terminal .instrument-nav { background: var(--bg); gap: 10px; padding-right: 14px; }
.terminal .instrument-nav .instrument-tabs { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.terminal .instrument-tabs button { flex: 0 0 auto; min-height: 48px; padding: 13px 12px; font-size: 11px; }
.terminal .instrument-tabs button[aria-pressed="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 3%, transparent); border-bottom-color: var(--accent); }
.terminal .instrument-tabs button:hover { color: var(--text); background: var(--panel-raised); }
.terminal .asset-launch { flex: 0 0 auto; min-height: 34px; border-radius: 8px; background: var(--panel); }
.terminal .asset-launch > span { color: var(--muted); }
.terminal .asset-launch:hover { border-color: color-mix(in srgb, var(--text) 25%, transparent); background: var(--panel-raised); }
.terminal .instrument-heading { padding: 18px 20px; }
.terminal .instrument-title { color: var(--text); font-size: 12px; font-weight: 550; }
.terminal .coin-mark { width: 26px; height: 26px; color: var(--text); background: var(--panel-raised); }
.terminal .instrument-price { font-size: 30px; font-weight: 550; letter-spacing: -.04em; }
.terminal .instrument-subtitle { font-size: 10px; line-height: 1.6; }
.terminal .price-change { font-size: 12px; line-height: 1.5; }
.terminal .price-change.loss { color: var(--danger); }
.terminal .quote-book { background: var(--bg); }
.terminal .quote-book > div { padding: 12px 18px; }
.terminal .quote-book small { font-size: 10px; }
.terminal .quote-book strong { font-size: 13px; font-weight: 550; }
.terminal .order-panel { padding: 20px; scrollbar-color: var(--line) transparent; }
.terminal .order-panel-brand { font-size: 10px; letter-spacing: .14em; font-weight: 650; color: var(--muted); }
.terminal .order-panel-brand span { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 5px; }
.terminal .order-panel h2 { font-size: 18px; letter-spacing: -.025em; font-weight: 550; }
.terminal .order-panel #order-subtitle { color: var(--muted); font-size: 11px; line-height: 1.6; }
.terminal .order-panel .order-type-switch { border-bottom-color: var(--line); padding-bottom: 0; gap: 8px; }
.terminal .order-type-switch button { min-height: 41px; padding: 7px 0; font-size: 11px; }
.terminal .order-type-switch button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 550; }
.terminal .order-type-switch button:hover { color: var(--text); }
.terminal :is(.order-available, .order-help, .order-sizing-note, .trade-preview-grid small, .size-stops button) { color: var(--muted); }
.terminal .order-available { font-size: 11px; margin: 15px 0; }
.terminal .side-switch { padding: 3px; gap: 4px; border-radius: 10px; background: var(--bg); border-color: var(--line); }
.terminal .side-switch button { border-radius: 7px; min-height: 37px; font-size: 11px; }
.terminal .side-switch button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--terminal-up) 30%, transparent); color: var(--terminal-up); background: color-mix(in srgb, var(--terminal-up) 9%, var(--panel)); }
.terminal .side-switch button[data-side="short"][aria-pressed="true"] { border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--panel)); }
.terminal .order-panel .form-field { margin-bottom: 14px; font-size: 11px; }
.terminal .order-panel .form-field > span { margin-bottom: 7px; color: var(--muted); }
.terminal .order-panel :is(input:not([type="range"]):not([type="checkbox"]), select) { min-height: 44px; background: var(--bg); border-color: var(--line); border-radius: 9px; font-size: 12px; }
.terminal .order-panel input[name="quantity"] { font-size: 22px; font-weight: 550; letter-spacing: -.02em; }
.terminal .order-panel :is(input, select):focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.terminal .sizing-controls { gap: 9px; }
.terminal .sizing-controls select { color-scheme: inherit; }
.terminal #size-slider { accent-color: var(--accent); }
.terminal .size-stops { margin: -3px 0 12px; }
.terminal .size-stops button { border-radius: 6px; }
.terminal .size-stops button:hover { color: var(--text); background: var(--panel-raised); }
.terminal .order-panel :is(.protective-orders, .risk-sizing) { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 13px 0; margin: 0; }
.terminal .order-panel :is(.protective-orders, .risk-sizing) summary { font-size: 11px; color: var(--text); padding-bottom: 0; }
.terminal .trade-preview-grid { gap: 10px; border-top-color: var(--line); padding: 15px 0 8px; }
.terminal .trade-preview-grid small { font-size: 10px; line-height: 1.5; }
.terminal .trade-preview-grid strong { font-size: 14px; font-weight: 550; letter-spacing: -.01em; }
.terminal .trade-preview-grid span { font-size: 11px; }
.terminal .trade-action-grid { gap: 8px; }
.terminal .trade-action-grid button { min-height: 46px; border: 1px solid transparent; border-radius: 10px; padding: 12px 7px; font-size: 12px; font-weight: 650; }
.terminal .trade-long { background: var(--terminal-up); color: var(--gc-on-success, #05130A); }
.terminal .trade-short { background: var(--danger); color: var(--gc-on-danger, #190508); }
.platform[data-theme="light"] .terminal { --gc-on-success: #ffffff; --gc-on-danger: #ffffff; }
.terminal .trade-action-grid button:hover:not(:disabled) { filter: brightness(1.08); transform: none; }
.terminal .trade-action-grid button:disabled { opacity: .45; }
.terminal .trade-calculations { border-top-color: var(--line); }
.terminal .trade-calculations summary { font-size: 11px; color: var(--muted); }
.terminal .risk-estimate { border-top-color: var(--line); }
.terminal .risk-estimate-title { font-size: 11px; font-weight: 550; }
.terminal .estimate-row { font-size: 11px; line-height: 1.6; margin: 9px 0; }
.terminal .risk-estimate .risk-estimate-warning { background: color-mix(in srgb, var(--warning) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warning) 20%, transparent); border-radius: 8px; padding: 10px; }
.terminal .risk-strip { gap: 14px; margin-top: 14px; }
.terminal .risk-card { padding: 17px 18px; }
.terminal .risk-title { font-size: 11px; flex-wrap: wrap; gap: 6px 10px; }
.terminal .risk-title strong { font-weight: 550; }
.terminal .risk-title > span:last-child:not(:first-child) { margin-left: auto; font-size: 10px; }
.terminal .risk-track { height: 5px; margin: 13px 0 11px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.terminal .risk-track span { opacity: .8; }
.terminal .risk-card[data-low="true"] { border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.terminal .risk-card[data-low="true"] .risk-title strong { color: var(--danger); }
.terminal .risk-card > p[role="status"] { color: var(--warning); margin: 9px 0 0; font-size: 11px; line-height: 1.6; }
.terminal .risk-foot { font-size: 10px; line-height: 1.5; flex-wrap: wrap; }
.terminal .positions-panel { margin-top: 14px; padding: 20px; }
.terminal .positions-panel .panel-header { margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.terminal .positions-panel h2 { font-size: 16px; letter-spacing: -.02em; font-weight: 550; }
.terminal .position-count { display: inline-block; padding: 1px 6px; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; vertical-align: middle; }
.terminal .positions-panel table { font-size: 12px; }
.terminal .positions-panel th { background: var(--bg); font-size: 9px; font-weight: 500; letter-spacing: .045em; color: var(--muted); padding-block: 12px; }
.terminal .positions-panel td { padding-block: 15px; font-size: 11px; }
.terminal .positions-panel tbody tr:hover { background: color-mix(in srgb, var(--text) 2%, transparent); }
.terminal .positions-panel td:last-child .button { border-radius: 7px; font-size: 10px; min-height: 32px; padding: 6px 9px; }
.terminal .position-side { display: inline-flex; padding: 3px 6px; border: 1px solid currentColor; border-radius: 5px; font-size: 9px; line-height: 1.3; }
.terminal .order-state { padding: 3px 7px; border: 1px solid var(--line); background: var(--bg); border-radius: 5px; font-size: 10px; }
.terminal .order-reason { max-width: 260px; white-space: normal; line-height: 1.5; font-size: 10px; }
.terminal .position-empty { padding: 32px 14px; }
.terminal .position-empty strong { font-size: 13px; font-weight: 550; }
.terminal .position-empty p { font-size: 11px; line-height: 1.6; }
.terminal .terminal-tools { background: var(--panel); }
.terminal .terminal-tools > summary { padding: 15px 18px; font-size: 12px; font-weight: 500; color: var(--muted); }
.terminal .terminal-tools[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.terminal .terminal-tools-grid :is(input:not([type="checkbox"]), select, textarea) { background: var(--bg); border-radius: 9px; }
.terminal .terminal-tools-grid button { border-radius: 8px; }
.terminal .terminal-tools-grid button:hover { background: var(--panel-raised); }
.terminal .terminal-alert { border-radius: 0 8px 8px 0; line-height: 1.6; }
.terminal .terminal-footer { font-size: 10px; line-height: 1.7; padding: 8px 0; }
.terminal .asset-dialog { border-radius: 18px; }
.terminal .asset-dialog-head { background: var(--panel); }
.terminal .asset-dialog-head h2 { font-size: 28px; font-weight: 550; }
.terminal .asset-eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.terminal .asset-search { border-radius: 10px; min-height: 46px; }
.terminal .asset-filters button { border-radius: 7px; }
.terminal .asset-filters button[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--text) 15%, transparent); }
.terminal .asset-table th { background: var(--bg); font-size: 9px; letter-spacing: .035em; }
.terminal .asset-table td { height: 66px; }
.terminal .asset-table tr[data-selected="true"] { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.terminal .asset-table tr[data-selected="true"] td:nth-child(2) { box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
.terminal .asset-open strong { font-weight: 550; }
.terminal .asset-mode-demo { color: var(--muted); background: var(--panel-raised); }
.terminal .asset-dialog-foot { background: var(--bg); line-height: 1.5; }
.terminal .protection-dialog { border-radius: 16px; }
.terminal .protection-dialog h2 { font-size: 20px; letter-spacing: -.025em; }
.terminal .protection-dialog #protection-position { color: var(--text); font-weight: 550; }
@media (min-width: 1181px) { .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (min-width: 1550px) { .terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1180px) and (min-width: 1041px) { .terminal .order-panel { padding: 15px; } }
@media (max-width: 780px) { .platform[data-page="terminal"] .workspace { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 680px) {
  .terminal .terminal-metric { padding: 14px; }
  .terminal .terminal-metric strong { font-size: clamp(19px, 5.5vw, 24px); }
  .terminal .terminal-metric small, .terminal .terminal-metric span { font-size: 9px; }
  .terminal .instrument-nav { padding-right: 9px; gap: 3px; }
  .terminal .instrument-heading { padding: 15px 13px; gap: 10px; }
  .terminal .instrument-price { font-size: 25px; }
  .terminal .price-change { font-size: 11px; }
  .terminal .terminal-view-button { min-height: 40px; }
  .terminal .quote-book > div { padding: 12px; }
  .terminal .risk-strip { gap: 12px; }
  .terminal .risk-card { padding: 16px; }
  .terminal .positions-panel { padding: 16px; }
  .terminal .positions-panel .button, .terminal .positions-panel td:last-child .button { min-height: 40px; }
  .terminal .order-panel { padding: 19px; }
  .terminal .asset-table tr[data-selected="true"] td:nth-child(2) { padding-left: 8px; }
  .terminal .asset-dialog-head h2 { font-size: 24px; }
}
@media (pointer: coarse) {
  .terminal :is(.asset-launch, .asset-star, .asset-filters button, .order-type-switch button, .size-stops button, .terminal-tools-grid button) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .terminal *, .terminal *::before, .terminal *::after { transition: none; animation: none; } }

/* Shared token artwork is clipped consistently in both themes and at mobile sizes. */
.terminal .asset-logo { display: inline-grid; place-items: center; overflow: hidden; flex-shrink: 0; padding: 0; border: 0; background: transparent; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.terminal .asset-logo svg { display: block; width: 100%; height: 100%; }
.terminal .asset-open > span:last-child { min-width: 0; }

.terminal .asset-token.asset-logo { width: 24px; height: 24px; min-width: 24px; min-height: 24px; flex: 0 0 24px; }
.terminal .asset-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.terminal .asset-open { gap: 8px; }
@media (max-width: 680px) {
  .terminal :is(.asset-segments, .asset-summary) { padding-left: 16px; padding-right: 16px; }
}

/* Exchange workspace: compact chrome, full-height chart and independent panels. */
html body.platform .terminal.gc-desk.gc-exchange {
  --gc-desk-book: 260px;
  --gc-desk-order: 300px;
  --panel: #0d1012;
  --panel-raised: #171b1f;
  --bg: #090b0d;
  --line: #20252a;
  --muted: #87929f;
  --green: #12d997;
  --danger: #f34e70;
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] body.platform .terminal.gc-exchange {
  --panel: #fff; --panel-raised: #eef2ed; --bg: #f8faf7; --line: #dce3dc;
  --muted: #5e6c61; --green: #00865a; --danger: #cd3052;
}
html body.platform .terminal.gc-exchange .terminal-bar { min-height:50px; padding:7px 16px; gap:18px; }
html body.platform .terminal.gc-exchange .terminal-wordmark { display:none; }
html body.platform .terminal.gc-exchange .gc-desk-home { gap:8px; }
html body.platform .terminal.gc-exchange .gc-desk-home strong { font-size:18px; letter-spacing:-.7px; }
html body.platform .terminal.gc-exchange .gc-desk-home img { width:28px; height:28px; }
html body.platform .terminal.gc-exchange .terminal-identity { flex-direction:row-reverse; gap:18px; }
html body.platform .terminal.gc-exchange .terminal-account-label { font-size:11px; color:var(--text); }
html body.platform .terminal.gc-exchange .feed-state { font-size:10px; color:var(--muted); }
.gc-exchange-mode { position:relative; flex-shrink:0; z-index:10; }
.gc-exchange-mode > summary { list-style:none; font-size:10px; font-weight:650; color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,transparent); border:1px solid color-mix(in srgb,var(--accent) 22%,transparent); padding:4px 8px; border-radius:5px; cursor:pointer; }
.gc-exchange-mode > p { position:absolute; top:100%; left:0; width:250px; max-width:80vw; padding:14px; background:var(--panel-raised); border:1px solid var(--line); border-radius:8px; box-shadow:0 12px 35px #0006; font-size:12px; line-height:1.7; color:var(--text); }
html body.platform .terminal.gc-exchange .gc-desk-marketbar { min-height:72px; padding:10px 16px; gap:20px; }
html body.platform .terminal.gc-exchange .gc-desk-marketbar .instrument-nav { order:1; }
html body.platform .terminal.gc-exchange .instrument-heading { order:0; gap:12px; }
html body.platform .terminal.gc-exchange .instrument-tabs { display:none; }
html body.platform .terminal.gc-exchange .asset-launch { min-height:32px; padding:6px 12px; background:transparent; }
html body.platform .terminal.gc-exchange .instrument-title { font-size:13px; font-weight:650; }
html body.platform .terminal.gc-exchange .instrument-price { font-size:22px; color:var(--green); }
html body.platform .terminal.gc-exchange .instrument-subtitle { font-size:9px; }
html body.platform .terminal.gc-exchange .gc-market-summary { order:2; gap:25px; padding-left:22px; }
html body.platform .terminal.gc-exchange .gc-market-summary [data-pro-metric] { font-size:12px; }
html body.platform .terminal.gc-exchange .gc-market-source { min-width:100px; }
html body.platform .terminal.gc-exchange .gc-chart-toolbar { min-height:40px; padding:4px 9px; flex-wrap:nowrap; gap:6px; }
html body.platform .terminal.gc-exchange .gc-desk-frames { gap:1px; }
html body.platform .terminal.gc-exchange .gc-desk-frames button { min-width:28px; min-height:28px; font-size:10px; padding:4px; border-radius:4px; }
html body.platform .terminal.gc-exchange .gc-desk-frames button[aria-pressed=true] { background:color-mix(in srgb,var(--accent) 10%,transparent); color:var(--accent); }
html body.platform .terminal.gc-exchange .gc-timeframe-menu > summary { font-size:0; min-height:28px; padding:5px 8px; }
html body.platform .terminal.gc-exchange .gc-timeframe-menu > summary::after { content:'···'; font-size:14px; letter-spacing:2px; }
html body.platform .terminal.gc-exchange .gc-chart-actions { margin-left:auto; flex:0 1 auto; gap:6px; }
html body.platform .terminal.gc-exchange .gc-chart-actions :is(select,summary) { min-height:28px; padding:4px 8px; font-size:11px; }
html body.platform .terminal.gc-exchange .gc-chart-type select { width:93px; }
html body.platform .terminal.gc-exchange .gc-library-popover { max-height:min(480px,55dvh); overflow:auto; }
html body.platform .terminal.gc-exchange .gc-chart-legend { padding:6px 12px 2px 48px; min-height:27px; gap:9px; background:var(--panel); }
html body.platform .terminal.gc-exchange .gc-chart-legend > strong { font-size:11px; }
html body.platform .terminal.gc-exchange .gc-polish-indicator-row { min-height:25px; padding:1px 9px 3px 46px; gap:6px; background:var(--panel); }
html body.platform .terminal.gc-exchange .gc-polish-indicator-row :is(button,.gc-polish-icon) { min-height:22px; height:22px; font-size:10px; padding-block:2px; }
html body.platform .terminal.gc-exchange .gc-polish-clean { opacity:.7; }
html body.platform .terminal.gc-exchange .gc-chart-navigation { min-height:22px; padding:2px 10px; font-size:9px; }
html body.platform .terminal.gc-exchange :is(.gc-desk-chart,.gc-chart-body,.gc-chart-scene) { overflow:hidden; }
html body.platform .terminal.gc-exchange .gc-drawing-toolbar { flex-basis:40px; width:40px; padding:6px 3px; gap:5px; background:var(--bg); }
html body.platform .terminal.gc-exchange .gc-drawing-toolbar > button { max-height:36px; min-height:24px; flex:1 1 32px; border-radius:5px; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-settings { display:flex; justify-content:center; align-items:center; flex-shrink:0; width:30px; height:28px; padding:5px; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:5px; cursor:pointer; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-settings:hover { color:var(--text); background:var(--panel-raised); }
.gc-exchange-chart-settings svg { width:20px; height:20px; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-dialog { width:min(620px,calc(100vw - 24px)); max-width:none; max-height:85dvh; overflow:auto; padding:22px; background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:14px; }
.gc-exchange-chart-dialog::backdrop { background:#0009; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-dialog .gc-pro-chart-bar { margin:18px 0; padding:12px 0; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-dialog .gc-desk-drawing-controls { padding:10px 0; }
html body.platform .terminal.gc-exchange .gc-exchange-chart-dialog .gc-drawing-manager { border:0; padding:10px 0; }
html body.platform .terminal.gc-exchange .gc-market-panel { padding:0 10px 8px; background:var(--bg); }
html body.platform .terminal.gc-exchange .gc-market-tabs { min-height:40px; gap:18px; margin:0 -10px 8px; padding:0 12px; border-bottom:1px solid var(--line); }
html body.platform .terminal.gc-exchange .gc-market-tabs > button { font-size:11px; min-height:40px; padding:9px 0; }
html body.platform .terminal.gc-exchange .gc-book-toolbar { gap:8px; margin-bottom:3px; }
html body.platform .terminal.gc-exchange .gc-book-toolbar label { font-size:9px; }
html body.platform .terminal.gc-exchange .gc-book-toolbar select { min-height:26px; padding:3px 6px; border-radius:4px; font-size:10px; }
html body.platform .terminal.gc-exchange .gc-book-columns { font-size:10px; padding:6px 3px; }
html body.platform .terminal.gc-exchange .gc-depth-row { font-family:var(--gc-font-mono); font-size:10px; padding-inline:4px; font-weight:500; }
html body.platform .terminal.gc-exchange .gc-book-spread { min-height:44px; padding:7px 4px; }
html body.platform .terminal.gc-exchange .gc-book-spread strong { color:var(--text); font-size:20px; }
html body.platform .terminal.gc-exchange .gc-book-balance { margin-top:8px; }
html body.platform .terminal.gc-exchange .order-panel { padding:14px 16px; background:var(--bg); }
html body.platform .terminal.gc-exchange .order-panel h2 { font-size:13px; margin-bottom:2px; }
html body.platform .terminal.gc-exchange #order-subtitle { font-size:10px; margin-bottom:10px; }
html body.platform .terminal.gc-exchange .order-type-switch { border-bottom:1px solid var(--line); margin-bottom:12px; }
html body.platform .terminal.gc-exchange .order-type-switch button { min-height:33px; padding:7px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font-size:11px; color:var(--muted); }
html body.platform .terminal.gc-exchange .order-type-switch button[aria-pressed=true] { color:var(--text); border-bottom-color:var(--accent); background:transparent; }
html body.platform .terminal.gc-exchange .order-panel .form-field { margin-bottom:10px; }
html body.platform .terminal.gc-exchange .order-panel input:not([type=checkbox]):not([type=range]),html body.platform .terminal.gc-exchange .order-panel select { min-height:36px; padding:7px 9px; background:var(--panel); border:1px solid var(--line); }
html body.platform .terminal.gc-exchange .trade-action-grid { gap:8px; margin:14px 0 10px; }
html body.platform .terminal.gc-exchange .trade-action-grid button { min-height:40px; font-size:12px; border-radius:20px; }
html body.platform .terminal.gc-exchange .gc-desk-account { margin-top:14px; padding-top:14px; }
html body.platform .terminal.gc-exchange .gc-desk-account h3 { font-size:12px; margin-bottom:8px; }
html body.platform .terminal.gc-exchange .terminal-metric { padding:5px 0; }
html body.platform .terminal.gc-exchange .gc-desk-activity { background:var(--bg); }
html body.platform .terminal.gc-exchange .gc-desk-activity-head { padding:0 12px; background:var(--panel); }
html body.platform .terminal.gc-exchange .gc-desk-tabs { gap:21px; }
html body.platform .terminal.gc-exchange .gc-desk-tabs button { font-size:11px; min-height:40px; }
html body.platform .terminal.gc-exchange .gc-desk-activity td { padding:9px 12px; }
html body.platform .terminal.gc-exchange .gc-desk-activity th { padding:10px 12px; background:var(--bg); position:sticky; top:0; z-index:1; }
@media(min-width:1180px) and (min-height:680px) {
 html body.platform .terminal.gc-desk.gc-exchange { height:100dvh; min-height:0; }
 html body.platform .terminal.gc-exchange .terminal-grid.gc-desk-grid { grid-template-rows:minmax(240px,1fr) var(--gc-desk-history-height); }
 html body.platform .terminal.gc-exchange .gc-charts-layout { height:100%; }
 html body.platform .terminal.gc-exchange .gc-chart-body { flex:1; min-height:150px; }
}
@media(min-width:1180px) and (max-width:1439px) {
 html body.platform .terminal.gc-desk.gc-exchange { --gc-desk-book:226px; --gc-desk-order:276px; }
 html body.platform .terminal.gc-exchange .feed-state { max-width:120px; overflow:hidden; text-overflow:ellipsis; }
 html body.platform .terminal.gc-exchange .gc-market-summary { gap:16px; }
 html body.platform .terminal.gc-exchange .gc-desk-tabs { gap:12px; }
}
@media(max-width:1179px) {
 html body.platform .terminal.gc-exchange .terminal-bar { gap:10px; }
 html body.platform .terminal.gc-exchange .gc-chart-toolbar { flex-wrap:wrap; }
 html body.platform .terminal.gc-exchange .gc-desk-chart { min-height:540px; }
 html body.platform .terminal.gc-exchange .gc-market-summary { padding-left:0; }
 html body.platform .terminal.gc-exchange .gc-desk-marketbar { gap:14px; }
}
@media(max-width:767px) {
 html body.platform .terminal.gc-exchange .terminal-bar { display:flex; flex-wrap:wrap; padding:8px 10px; }
 html body.platform .terminal.gc-exchange .gc-desk-home strong { font-size:16px; }
 html body.platform .terminal.gc-exchange .gc-desk-header-controls { margin-left:auto; }
 html body.platform .terminal.gc-exchange .terminal-identity { order:4; width:100%; justify-content:space-between; }
 html body.platform .terminal.gc-exchange .terminal-account-label { display:block; flex-basis:auto; max-width:none; text-align:left; order:0; font-size:10px; }
 html body.platform .terminal.gc-exchange .terminal-view-controls { order:3; width:100%; justify-content:flex-end; }
 html body.platform .terminal.gc-exchange .gc-desk-marketbar { padding:10px; }
 html body.platform .terminal.gc-exchange .gc-market-summary { gap:18px; }
 html body.platform .terminal.gc-exchange .instrument-heading { min-width:0; }
 html body.platform .terminal.gc-exchange .gc-chart-toolbar { gap:5px; }
 html body.platform .terminal.gc-exchange .gc-chart-actions { flex:1; }
 html body.platform .terminal.gc-exchange .gc-polish-indicator-row { display:block; }
 html body.platform .terminal.gc-exchange .gc-active-indicators { display:flex; flex-wrap:nowrap; overflow-x:auto; padding-top:3px; }
 html body.platform .terminal.gc-exchange .gc-active-indicators button { flex-shrink:0; white-space:nowrap; }
 html body.platform .terminal.gc-exchange .gc-desk-frames { flex:1; justify-content:space-between; }
 html body.platform .terminal.gc-exchange .gc-desk-chart { min-height:530px; }
 html body.platform .terminal.gc-exchange .gc-chart-body { min-height:370px; }
 html body.platform .terminal.gc-exchange .gc-market-panel { min-height:500px; max-height:640px; }
 html body.platform .terminal.gc-exchange .gc-desk-tabs { gap:16px; }
 html body.platform .terminal.gc-exchange .gc-desk-activity-head { padding:0 10px; }
 html body.platform .terminal.gc-exchange .gc-desk-tabs button { min-height:44px; }
 html body.platform .terminal.gc-exchange .gc-exchange-chart-settings { min-width:36px; min-height:36px; }
 html body.platform .terminal.gc-exchange .gc-drawing-toolbar > button { min-height:30px; }
}
html body.platform .terminal.gc-exchange .gc-charts-layout.gc-dual-charts { gap:1px; overflow:auto; grid-auto-rows:minmax(440px,1fr); background:var(--line); }
html body.platform .terminal.gc-exchange .gc-dual-charts .chart-workspace { min-height:440px; background:var(--panel); }
html body.platform .terminal.gc-exchange .gc-dual-charts .gc-chart-toolbar { flex-wrap:wrap; }
html body.platform .terminal.gc-exchange .gc-dual-charts .gc-active-indicators { display:flex; flex-wrap:nowrap; overflow-x:auto; }
html body.platform .terminal.gc-exchange .gc-dual-charts .gc-active-indicators button { flex-shrink:0; white-space:nowrap; }
@media(max-width:1439px) { html body.platform .terminal.gc-exchange .gc-charts-layout.gc-dual-charts { grid-template-columns:minmax(0,1fr); } }
