/* Client presentation only. The shared Exchange theme and market logic stay independent. */
.client-theme{--bg:#f8faff;--surface2:#eff5ff;--line:#d9e3f0;--text:#102846;--muted:#4c617a;--accent:#0066df;--action:#e96300;--action-text:#ffffff;--action-border:#a63f00;--brand:#b54700;background:var(--bg)}
.client-theme :is(button,a,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.client-theme button{min-height:44px;border-radius:8px;background:var(--surface);font-weight:550}
.client-theme .primary{background:var(--action);border-color:var(--action-border);color:var(--action-text);font-weight:700;box-shadow:0 2px 4px #192c430c}
.client-theme button.quiet{background:transparent}
.client-theme input,.client-theme select,.client-theme textarea{border-color:#aebdca;border-radius:7px;min-height:44px}
.client-theme h1{font-weight:750;letter-spacing:-.02em;font-size:28px;line-height:1.4}
.client-theme .eyebrow{font-size:11px;font-weight:650;letter-spacing:.13em}
.client-theme .panel{border-radius:12px;padding:20px;border-color:var(--line);box-shadow:0 2px 8px #142b4904}
.client-theme .panel-title{margin-bottom:16px}
.client-theme .panel-title h2{font-size:16px;font-weight:700}
.client-theme .market-heading{margin-bottom:22px}
.client-theme .market-heading h1 span{display:block;font-size:13px;margin:5px 0 0;letter-spacing:0}
.client-theme .site-footer{background:#fff;border-color:var(--line);font-size:12px}
.client-theme .logo,.client-theme .wordmark{color:var(--text)}
.client-theme .logo::first-letter{color:inherit}
.client-skip-link{position:fixed;top:8px;left:16px;z-index:40;transform:translateY(-160%);background:var(--surface);border:2px solid var(--accent);border-radius:6px;padding:10px 18px}
.client-skip-link:focus{transform:translateY(0)}

/* Entry: white account card and a shared-market introduction. */
.client-theme .login-wrap{background:linear-gradient(180deg,#fff 0,#f3f6fa 100%);padding-bottom:28px}
.client-theme .entry-shell{width:min(1180px,calc(100% - 64px));grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:30px 48px;margin:20px auto 32px;align-items:start}
.client-theme .entry-topline{background:#ffffffed;border-bottom:1px solid var(--line);padding:12px 0 20px;position:static}
.client-theme .entry-topline .wordmark{font-size:30px;letter-spacing:.05em}
.client-theme .entry-topline .wordmark span{font-size:10px;letter-spacing:.12em}
.client-theme .entry-value{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;padding:42px 36px 30px;background:radial-gradient(ellipse at 100% 0,#164e80 0,transparent 64%),#0b2340;color:#fff;box-shadow:0 12px 30px #142b4912}
.client-theme .entry-value .eyebrow{color:#bfd4e9;margin:0 0 20px}
.client-theme .entry-value h1{font-size:clamp(29px,3vw,40px);line-height:1.4;max-width:17ch;letter-spacing:-.025em;margin:0 0 20px;text-wrap:balance}
.client-theme .entry-value>p{font-size:15px;line-height:1.85;max-width:48ch;color:#e0eaf5;position:relative}
.client-theme .entry-value .entry-assurance{background:#ffffff0d;border:1px solid #5e7e9d;border-radius:8px;padding:12px 14px;color:#f3f7fb;font-size:13px;margin:20px 0}
.client-theme .entry-value ul{list-style:none;padding:0;display:grid;gap:12px;margin:24px 0;color:#e0eaf5;font-size:13px}
.client-theme .entry-value li{margin:0;display:flex;align-items:start;gap:10px}
.client-theme .entry-value li::before{content:'✓';color:#94ddca;font-weight:700;flex-shrink:0}
.client-theme .entry-value>.primary{margin:0;padding:12px 22px;min-height:46px}
.client-theme .entry-value>.footnote{font-size:12px;margin:16px 0 0;color:#cedceb}
.entry-globe{position:absolute;width:310px;height:310px;right:-90px;top:-100px;color:#8bc3f3;opacity:.21;z-index:-1;pointer-events:none}
.client-theme .entry-account .login-card{border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #142b4908;padding:30px}
.client-theme .entry-account h2{font-size:25px;font-weight:750;line-height:1.4}
.client-theme .login-card label{color:var(--text);font-weight:550}
.client-theme .login-card p{font-size:14px;line-height:1.75}
.client-theme .login-card button{font-size:14px}
.client-theme .login-card>button:not(.primary){background:var(--surface2);border-color:var(--line)}
.client-theme .login-card small{font-size:12px}

/* Persistent labelled navigation on desktop. */
.client-theme header.client-header{padding:8px 20px;gap:8px 18px;background:#fff;box-shadow:0 1px 4px #142b4905;min-height:64px;z-index:12}
.client-theme header.client-header>.header-right{gap:8px 14px;font-size:12px}
.client-theme .client-header .logo{font-size:27px}
.client-theme .client-header .logo span{font-size:10px;letter-spacing:.14em;margin-left:10px}
.client-theme .client-header .language-picker select{min-height:36px;margin:0;font-size:12px;padding:6px 28px 6px 9px}
.client-theme .client-header #logout{font-size:12px;min-height:36px;padding:6px 12px}
.client-theme .client-header .exchange-time{gap:4px 10px}
.client-theme .client-header #session-status{color:var(--text);font-weight:700}
.client-theme .client-header #market-phase-status{background:#f2f6fb;border:0;border-radius:20px;padding:3px 9px;color:var(--accent)}
.client-theme .client-header #user-name{max-width:16ch;overflow-wrap:anywhere}
.client-theme .client-workspace{grid-template-columns:240px minmax(0,1fr)}
.client-theme .client-navigation{padding:26px 14px 22px;gap:26px;height:calc(100dvh - var(--client-header-height,78px));border-color:var(--line);background:#fff;overscroll-behavior:contain}
.client-theme .client-nav-group{gap:5px}
.client-theme .client-nav-group h2{font-size:11px;font-weight:650;letter-spacing:.08em;padding:0 12px;margin-bottom:7px}
.client-theme .client-navigation .tab{background:transparent;gap:11px;border:1px solid transparent;padding:11px 12px;border-radius:8px;line-height:1.5;font-size:14px;color:var(--muted);font-weight:550;flex-shrink:0}
.client-theme .client-navigation .tab:hover{background:#f2f6fb;filter:none;color:var(--text)}
.client-theme .client-navigation .tab.active{background:var(--accent);border-color:#0053bd;color:#ffffff;box-shadow:inset 3px 0 #003e91;font-weight:750}
.client-nav-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.client-theme .client-navigation .badge{margin-left:auto;background:#f4e9d7;color:#78500e;border-radius:20px;line-height:1.4;font-size:11px;min-width:22px}
.client-theme .client-content main{padding:28px clamp(20px,2.5vw,40px);max-width:1480px;scroll-margin-top:110px}
.client-theme .client-content :is(h1,h2,h3,[tabindex='-1'],#company-select){scroll-margin-top:calc(var(--client-header-height,78px) + 20px)}
.client-menu-heading{display:none}
.client-theme .client-menu-backdrop{position:fixed;inset:var(--client-header-height,78px) 0 0;background:#102b4a66;z-index:14;border:0;border-radius:0;cursor:default}
.client-theme .client-menu-toggle{display:flex;align-items:center;gap:8px;min-height:44px;background:#f2f6fb;padding:8px 12px;font-size:12px}
.client-menu-toggle svg{width:18px;height:18px;flex-shrink:0}
.client-theme .toast{top:calc(var(--client-header-height,78px) + 12px);font-size:14px;max-width:min(500px,calc(100vw - 32px))}

/* The overall market clock and the selected instrument are separate server views. */
.client-account-tools{display:flex;align-items:center;gap:12px;min-width:0}
.client-theme .client-header .exchange-time{gap:4px 9px;justify-content:flex-start}
.market-scope{font-weight:700;color:#0052b4;font-size:12px}
.client-short-clock{display:none}
.client-theme .client-header #market-phase-status{background:#eaf3ff;color:#0052b4}
.client-menu-account{border-bottom:1px solid var(--line);padding-bottom:16px}

/* Trading information and execution take precedence over news and onboarding. */
.client-theme .client-content #trading-view{padding:16px 20px 24px}
.client-theme .trading-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,auto);grid-template-areas:'picker price' 'identity price' 'explanation price' 'snapshot snapshot';gap:7px 24px;padding:14px 18px;margin-bottom:12px}
.client-theme .trading-overview .instrument-picker{grid-area:picker;display:grid;grid-template-columns:minmax(110px,.45fr) minmax(180px,1fr);gap:10px;margin:0}
.client-theme .instrument-picker label{margin:0;color:var(--text);font-size:12px;font-weight:600;min-width:0}
.client-theme .instrument-picker select{margin-top:4px;min-height:40px;padding:7px 9px}
.instrument-identity{grid-area:identity;min-width:0}
.client-theme .instrument-identity h1{font-size:22px;line-height:1.4;margin:0 0 5px}
.client-theme .instrument-identity h1 span{display:inline;font-size:13px;margin:0 0 0 10px;font-weight:450;color:var(--muted)}
.instrument-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.client-theme .instrument-state .phase{padding:2px 8px;background:#edf5ff;border-color:#c6dcf8;color:#0052b4;font-size:12px;line-height:1.6}
.instrument-price{grid-area:price;align-self:center;min-width:0;text-align:right}
.price-label{font-size:12px;font-weight:600;color:var(--muted)}
.client-theme .instrument-price .quote-head{display:flex;justify-content:flex-end;align-items:baseline;gap:6px;margin-top:3px;max-width:none}
.client-theme .instrument-price .quote-head strong{font-size:30px;line-height:1.3;color:var(--text)}
.quote-timestamp{display:grid;gap:1px;font-size:12px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}
.instrument-explanation{grid-area:explanation;min-width:0}
.instrument-explanation summary{font-size:12px;color:#0052b4;cursor:pointer;width:fit-content;padding:3px 0}
.instrument-explanation p{font-size:13px;margin:6px 0 0;line-height:1.65;max-width:80ch}
.quote-snapshot{grid-area:snapshot;display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;font-size:12px;color:var(--muted);border-top:1px solid #e5ebf4;padding-top:7px}
.quote-snapshot .negative{font-weight:650}
.trade-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.trade-shortcuts a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:5px 12px;border:1px solid #b8d3f5;border-radius:7px;background:#fff;font-size:13px;color:#0052b4;font-weight:600}
.trade-shortcuts a[data-trade-focus='spot-order-heading']{background:var(--accent);color:#fff;border-color:var(--accent)}
.client-theme .trading-grid{grid-template-columns:minmax(190px,.8fr) minmax(250px,1.25fr) minmax(260px,1fr);grid-template-areas:'book chart order';gap:14px;align-items:start}
.client-theme .trading-grid>.panel{padding:16px;margin-bottom:16px}
.client-theme .book-panel{grid-area:book}.client-theme .chart-panel{grid-area:chart}.client-theme .order-panel{grid-area:order;grid-column:auto;display:block;border-top:3px solid var(--accent)}
.client-theme .trading-grid .panel-title{margin-bottom:10px}
.client-theme .book th{font-size:12px;position:sticky;top:0;background:#fff;z-index:1}
.client-theme .book td{padding-block:7px;font-size:14px}
.book-scroll{max-height:320px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.book-scroll:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.client-theme .best-ask{background:#fceff0}.client-theme .best-bid{background:#eaf5ef}
.client-theme .chart-panel canvas{height:200px}
.client-theme .chart-caption{font-size:12px;margin:7px 0 16px;gap:8px;flex-wrap:wrap}
.client-theme .trades-scroll{max-height:135px}
.client-theme .order-panel .panel-title h2{font-size:18px}
.client-theme .order-panel form{max-width:none}
.client-theme .order-panel label{margin-bottom:10px}
.client-theme .order-panel input,.client-theme .order-panel select{margin-top:4px;padding:8px}
.client-theme .order-panel .side-selector{margin-bottom:12px}
.client-theme .order-panel .side-selector label{margin:0}
.client-theme .order-panel .side-selector span{padding:8px;min-height:44px}
.order-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.order-buying-power{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;font-size:12px;margin:0 0 10px;padding:8px 10px;background:#eef5ff;border-radius:6px}
.order-buying-power strong{margin-left:auto;font-size:16px;font-variant-numeric:tabular-nums}
.client-theme .estimate{color:var(--text);padding:10px;background:#f3f7fc;border-radius:7px;margin:0 0 12px;font-size:13px;line-height:1.6}
.client-theme .order-panel .primary,.client-theme .order-review-dialog .primary{background:var(--accent);border-color:#0053bd;color:#fff}
.client-theme .order-panel form>.footnote{font-size:12px;margin:10px 0 0;line-height:1.7}
.account-details{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}
.account-details summary{cursor:pointer;color:#0052b4;font-size:12px;min-height:36px;padding-block:7px}
.client-theme .balances{gap:10px;padding-top:8px;margin-top:8px;border:0}
.client-theme .balances>div:first-child{padding:0;background:none;flex-wrap:wrap}
.client-theme .balances>div:first-child strong{font-size:13px}
.client-theme .first-order-guide{background:#eff6ff;border-color:#bdd6f7;border-radius:7px;padding:0 10px;font-size:13px;margin:8px 0 12px}
.client-theme .first-order-guide summary{color:#0052b4;font-weight:650;padding:9px 0}
.client-theme .first-order-guide button{background:#fff;font-size:12px}
.client-theme .order-feedback{border-radius:8px}
.chart-timeframes{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}.client-theme .chart-timeframes button{min-width:40px;padding:7px 9px;font-size:13px}.client-theme .chart-timeframes button[aria-pressed="true"]{background:var(--accent);color:white;border-color:var(--accent)}
.chart-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;margin-bottom:8px}.chart-legend span::before{content:"";display:inline-block;width:10px;height:9px;vertical-align:middle;margin-right:5px;border:2px solid currentColor}.chart-up,.chart-down,.chart-flat{color:var(--text)}.chart-up::before{background:#26a69a;border-color:#14746b}.chart-down::before{background:#ef5350;border-color:#bc302f}.chart-flat::before{height:3px!important;background:currentColor}
.chart-details{min-height:44px;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}.client-theme .chart-caption{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px}.client-theme .chart-caption>span:last-child{text-align:right}.chart-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px}.chart-actions button{font-size:12px;padding:7px 10px}.client-theme #chart{height:310px;display:block;width:100%;background:#131722;border-radius:6px}
@media(max-width:600px){.client-theme #chart{height:280px}.chart-legend{gap:6px 12px}.chart-timeframes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.client-theme .chart-timeframes button{padding:7px 8px}.client-theme .chart-panel>.panel-title{flex-wrap:wrap;gap:4px 8px}.client-theme .chart-panel>.panel-title>span{margin-left:auto;white-space:normal;text-align:right}.client-theme .chart-caption{grid-template-columns:1fr}.client-theme .chart-caption>span:last-child{text-align:left}}
.client-theme .session-guide{border:1px solid #c8ddf8;border-left:3px solid var(--accent);background:#fff;padding:14px 18px;margin-bottom:12px}
.client-theme .session-guide h2{font-size:17px;font-weight:700}
.client-theme .session-guide p{margin-bottom:8px;font-size:13px}
.client-theme .session-guide .notice-actions{margin-top:8px}
.client-theme .journey-entry{margin:0 0 16px;padding:10px 14px;border:1px solid #dbe5f0;background:#f3f7fd;border-radius:8px;gap:10px}
.client-theme .journey-entry button{background:#fff;border-color:#a9c9f2;color:#0052b4;font-size:13px;padding:8px 14px;min-height:44px}
.client-theme .journey-entry span{font-size:13px;color:var(--muted)}
.client-theme .market-news-panel{border-top:1px solid var(--line);padding:14px 18px;background:#fff;margin-bottom:14px}
.client-theme .market-news-panel .panel-title{margin-bottom:5px}
.client-theme .market-news-panel .panel-title h2{font-size:14px}
.client-theme .market-news-panel .panel-title>span{font-size:12px}
.client-theme .urgent-banner{padding:3px 20px;font-size:12px;gap:5px;min-height:44px}
.client-theme .urgent-banner button{min-height:36px;padding:4px 8px;background:transparent}
.client-theme .halt-banner,.client-theme .credit-risk-banner{padding:8px 20px;font-size:13px}

/* Missions: stage, next action, then supporting detail. */
.client-theme #journey-view{max-width:1120px}
.client-theme .engagement-tabs{border:0;padding:0;gap:6px;margin:18px 0 20px}
.client-theme .engagement-tabs button{background:#fff;border-color:var(--line);font-size:13px;padding:8px 15px}
.client-theme .engagement-tabs button[aria-selected='true']{background:var(--accent);border-color:var(--accent);color:#fff}
.client-theme .mission-intro{font-size:14px;margin-bottom:20px}
.client-theme .mission-stage{background:#f2f6fc;border:1px solid #dbe4ef;border-radius:12px;padding:18px;gap:10px 20px}
.client-theme .mission-stage h2{font-size:23px;font-weight:750}
.client-theme .mission-stage .eyebrow{font-size:11px;color:#244d78}
.client-theme .mission-count{font-size:25px;font-weight:750}
.client-theme .mission-stage progress{height:9px}
.client-theme .mission-next{border:1px solid #ed812d;border-left:4px solid #ed812d;padding:18px 22px;border-radius:12px;box-shadow:0 4px 14px #192c4305;margin-bottom:26px;background:#ffffff}
.client-theme .mission-next h3{font-weight:750;font-size:23px}
.client-theme .mission-next>p{font-size:14px;margin-bottom:18px}
.client-theme .mission-next>button{padding:10px 24px;min-height:44px}
.client-theme .mission-state.is-complete{background:#eaf7ef;border-color:#a4d4b8;color:#166a50}
.client-theme .mission-state.is-current{background:#fff1df;border-color:#d3a16e;color:#86440e}
.client-theme .mission-row{border-radius:10px}
.client-theme .mission-row>summary{padding:16px 18px;min-height:80px}
.client-theme .mission-row.is-complete .mission-mark{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #166a50;border-radius:50%;font-size:14px}
.client-theme .mission-profits{margin-top:8px}
.client-theme .mission-profit-card{border-radius:10px;background:#fff;padding:18px}
.client-theme .mission-profit-card h3{font-size:17px}
.client-theme .mission-explore{border-radius:12px;background:#eef5ff}
.client-theme .welcome-dialog,.client-theme .order-review-dialog{border-radius:16px;padding:30px;border-color:#dbe2eb;box-shadow:0 22px 80px #142b4933}
.client-theme .welcome-dialog h2{font-weight:750}
.client-theme .welcome-benefits{gap:12px}
.client-theme .welcome-benefits section{border:1px solid #dbe5ef;border-left:3px solid #244d78;background:#f5f8fc;border-radius:8px;padding:14px 16px}
.client-theme .welcome-benefits section:first-child{background:#edf8f2;border-left-color:#166a50}
.client-theme .welcome-dialog>.quiet{border-color:transparent;color:#244d78}

@media(min-width:900px) and (max-width:1299px){
  .client-theme .trading-grid{grid-template-columns:minmax(0,1fr) minmax(260px,1fr);grid-template-areas:'book order' 'chart chart'}
}
@media(max-width:1000px){
  .client-theme .entry-shell{width:calc(100% - 40px);gap:24px;grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}
  .client-theme .entry-value{padding:30px 24px}
  .client-theme .entry-value h1{font-size:30px}
  .client-theme .entry-account .login-card{padding:24px}
}
@media(max-width:899px){
  .client-theme .client-header .exchange-time #clock{display:none!important}
  .client-short-clock{display:inline;white-space:nowrap;font-size:12px}
  .client-theme .client-workspace{display:block}
  .client-theme header.client-header{display:grid;grid-template-areas:'logo menu' 'tools tools';grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:7px 14px;min-height:0}
  .client-theme header.client-header>.header-right{gap:4px 8px;justify-content:flex-start;display:flex}
  .client-theme .client-header .exchange-time{flex:1 0 100%;justify-content:flex-start;gap:3px 7px;font-size:12px}
  .client-theme .client-header #user-name{margin-right:auto}
  .client-theme .client-header .logo span{display:inline}
  .client-theme .client-header .language-picker>span{display:none}
  .client-theme .client-navigation{position:fixed;top:var(--client-header-height,150px);bottom:0;left:0;width:min(330px,calc(100vw - 36px));max-height:none;height:auto;z-index:15;display:flex;gap:22px;padding:18px 16px 28px;box-shadow:6px 0 24px #142b491a;border-right:1px solid var(--line);overflow-y:auto}
  .client-theme .client-nav-group:last-child{display:flex}
  .client-theme .client-nav-group h2{margin:0 0 5px;grid-column:auto}
  .client-theme .client-navigation .tab{font-size:14px;padding:11px 12px}
  .client-theme .client-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .client-menu-heading h2{font-size:15px;font-weight:700}
  .client-theme #client-menu-close{font-size:24px;line-height:1;padding:6px;min-width:44px;border-color:transparent}
  .client-menu-open{overflow:hidden}
  .client-theme .client-content main{padding:24px 20px}
  .client-menu-account .client-account-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;font-size:12px}
  .client-menu-account #user-name{justify-self:end;overflow-wrap:anywhere;max-width:18ch}
  .client-menu-account .language-picker{margin:0;display:flex;align-items:center;gap:8px}
  .client-menu-account .language-picker select{margin:0;min-height:44px}
  .client-menu-account #logout{min-height:44px;font-size:13px}
  .client-theme .client-header .logo span{display:none}

  .client-theme .trading-grid{grid-template-columns:minmax(0,1fr) minmax(260px,1fr);grid-template-areas:'book order' 'chart chart'}
  .client-theme .order-panel{grid-column:auto}
  .client-theme .client-header #logout{min-height:44px}
  .client-theme .client-header .language-picker select{min-height:44px}
}
@media(max-width:700px){
  .client-theme .entry-shell{width:calc(100% - 32px);grid-template-columns:1fr;margin:8px auto 24px;gap:20px}
  .client-theme .entry-topline{gap:10px;padding-bottom:16px}
  .client-theme .entry-topline .wordmark span{display:none}
  .client-theme .entry-topline .wordmark{font-size:26px}
  .client-theme .entry-topline .language-picker>span{display:none}
  .client-theme .entry-topline .language-picker select{min-height:44px}
  .client-theme .entry-topline #entry-login{font-size:13px;padding:8px 12px}
  .client-theme .entry-value{padding:30px 24px 24px;border-radius:14px}
  .client-theme .entry-value h1{font-size:31px;max-width:19ch}
  .client-theme .entry-value>p{font-size:14px}
  .client-theme .entry-account .login-card{padding:24px}
  .client-theme .client-content main{padding:22px 16px}
  .client-theme h1{font-size:25px}
  .client-theme .client-content #trading-view{padding:12px 14px 20px}
  .client-theme .trading-overview{grid-template-columns:minmax(0,1fr) minmax(120px,.9fr);grid-template-areas:'picker picker' 'identity price' 'explanation explanation' 'snapshot snapshot';padding:12px;gap:7px 10px}
  .client-theme .trading-overview .instrument-picker{grid-template-columns:minmax(85px,.4fr) minmax(0,1fr);gap:8px}
  .client-theme .instrument-picker select{min-height:44px;font-size:13px}
  .client-theme .instrument-identity h1{font-size:22px}
  .client-theme .instrument-identity h1 span{display:block;font-size:12px;margin:3px 0 0}
  .instrument-state{gap:4px;font-size:12px}
  .client-theme .instrument-price .quote-head strong{font-size:27px}
  .quote-timestamp{font-size:11px;line-height:1.65}
  .quote-snapshot{font-size:11px;gap:2px 5px}
  .trade-shortcuts{gap:6px;margin-bottom:12px}
  .trade-shortcuts a{flex:1;min-height:44px;font-size:12px;padding:6px}
  .client-theme .urgent-banner{padding:2px 14px}
  .client-theme .urgent-banner button{min-height:40px}
  .client-theme .halt-banner,.client-theme .credit-risk-banner{padding:8px 14px}

  .client-theme .trading-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'order' 'book' 'chart'}
  .client-theme .order-panel{grid-column:auto}
  .client-theme .market-heading{gap:12px;align-items:flex-start}
  .client-theme .quote-head{display:flex;flex-wrap:wrap;gap:4px 8px;justify-content:flex-end;max-width:50%}
  .client-theme .quote-head strong{font-size:28px}
  .client-theme .quote-head .phase{margin-top:4px}
  .client-theme .panel{padding:18px}
  .client-theme .mission-intro{font-size:13px;margin-bottom:16px}
  .client-theme .mission-stage{padding:16px;grid-template-columns:1fr;gap:8px;margin-bottom:16px}
  .client-theme .mission-stage h2{font-size:21px}
  .client-theme .mission-stage .muted{display:none}
  .client-theme .mission-count{font-size:18px}
  .client-theme .mission-next{padding:18px}
  .client-theme .mission-next h3{font-size:21px}
  .client-theme .mission-next>p{font-size:13px;margin-bottom:14px}
  .client-theme .mission-row>summary{padding:14px 12px}
  .client-theme .mission-next>button{width:100%}
  .client-theme .engagement-tabs{gap:6px;margin:14px 0 16px}
  .client-theme .engagement-tabs button{font-size:12px;padding:8px 10px;flex:1 1 auto}
  .client-theme .welcome-dialog,.client-theme .order-review-dialog{padding:24px}
}
@media(max-width:380px){
  .client-theme .client-menu-toggle{max-width:180px;padding:8px;font-size:11px}
  .client-theme .client-header .logo span{display:none}
  .client-theme .entry-value h1{font-size:28px}
}
/* White labels on vivid orange use the large, bold text contrast threshold. */
.chart-window-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.chart-window-controls button{min-height:44px;padding:7px 12px;font-size:13px}.chart-range{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0}.chart-window-controls button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.chart-stage{position:relative;min-width:0}.chart-tooltip{position:absolute;z-index:2;pointer-events:none;width:230px;max-width:calc(100% - 16px);padding:10px 12px;border:1px solid #9598a1;border-radius:6px;background:#202632;color:#f1f3f5;box-shadow:0 3px 12px #0005;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.chart-tooltip time,.chart-tooltip strong{display:block;margin-bottom:4px}.chart-tooltip dl{display:grid;grid-template-columns:1fr auto;gap:2px 12px;margin:0}.chart-tooltip dd{margin:0;text-align:right}.chart-freshness{line-height:1.7;overflow-wrap:anywhere}.chart-freshness.history-gap{padding:8px 10px;background:#fff5d9;color:#674b00;border-left:3px solid #b78812;border-radius:3px}
.client-theme button.primary{font-size:19px;line-height:1.4;font-weight:700;max-width:100%}
.client-theme .order-panel button.primary,.client-theme .order-review-dialog button.primary{font-size:15px}

.client-theme .client-navigation a.api-reference-link{display:flex;align-items:center;text-decoration:none}
.client-theme .client-navigation a.api-reference-link svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
