/* ClikPlan design system: one set of tokens and parts for every page (stock workspace, ideas, markets).
   Signals are filled chips; evidence badges are outlined; price moves are plain coloured text. Numbers are always mono. */
:root {
  --ds-bg: #f7f6f2; --ds-surface: #ffffff; --ds-soft: #f3f2ee; --ds-ink: #0f1728; --ds-ink2: #3b4352; --ds-muted: #5b6472;
  --ds-line: #e4e2dc; --ds-line2: #d9d6cf; --ds-violet: #5b4bff; --ds-violet-ink: #3d2fd6; --ds-lav: #ecebff;
  --ds-up: #0f7a46; --ds-dn: #c2291f; --ds-caution: #b45309;
  --ds-buy-bg: #dcf3e6; --ds-buy: #0b6b3d; --ds-hold-bg: #fbecd2; --ds-hold: #8a5208; --ds-sell-bg: #fdecec; --ds-sell: #a3231b; --ds-none-bg: #eceae4; --ds-none: #3b4352;
  --ds-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --ds-sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif; --ds-display: "Newsreader", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  html[data-cp-auto]:not([data-theme="light"]) {
    --ds-bg: #121211; --ds-surface: #1a1a19; --ds-soft: #232321; --ds-ink: #ffffff; --ds-ink2: #deddd5; --ds-muted: #b3b2a8;
    --ds-line: #33332f; --ds-line2: #45453f; --ds-violet: #8f84ff; --ds-violet-ink: #b4abff; --ds-lav: #2a2742;
    --ds-up: #3fbf7f; --ds-dn: #f08080; --ds-caution: #e8a050;
    --ds-buy-bg: #163d2a; --ds-buy: #8fe0b4; --ds-hold-bg: #3d2f16; --ds-hold: #f0c47a; --ds-sell-bg: #42201d; --ds-sell: #f6a39c; --ds-none-bg: #2c2c29; --ds-none: #c3c2b7;
  }
}
html[data-theme="dark"] {
  --ds-bg: #121211; --ds-surface: #1a1a19; --ds-soft: #232321; --ds-ink: #ffffff; --ds-ink2: #deddd5; --ds-muted: #b3b2a8;
  --ds-line: #33332f; --ds-line2: #45453f; --ds-violet: #8f84ff; --ds-violet-ink: #b4abff; --ds-lav: #2a2742;
  --ds-up: #3fbf7f; --ds-dn: #f08080; --ds-caution: #e8a050;
  --ds-buy-bg: #163d2a; --ds-buy: #8fe0b4; --ds-hold-bg: #3d2f16; --ds-hold: #f0c47a; --ds-sell-bg: #42201d; --ds-sell: #f6a39c; --ds-none-bg: #2c2c29; --ds-none: #c3c2b7;
}

/* numbers and moves */
.ds-n { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.ds-up { color: var(--ds-up); } .ds-dn { color: var(--ds-dn); } .ds-flat { color: var(--ds-muted); }
.ds-eyebrow { font: 500 10.5px var(--ds-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ds-muted); }

/* signal chips: action, filled */
.ds-sig { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 6px; font: 800 11px/1.5 var(--ds-sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.ds-sig.buy { background: var(--ds-buy-bg); color: var(--ds-buy); }
.ds-sig.hold, .ds-sig.wait { background: var(--ds-hold-bg); color: var(--ds-hold); }
.ds-sig.sell { background: var(--ds-sell-bg); color: var(--ds-sell); }
.ds-sig.watch, .ds-sig.none { background: var(--ds-none-bg); color: var(--ds-none); }
.ds-sig.sm { padding: 0 6px; font-size: 10px; border-radius: 5px; }
.ds-sig.lg { padding: 5px 12px; font-size: 13px; border-radius: 8px; }

/* evidence badges: how that rule did in testing, outlined */
.ds-ev { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; border: 1.5px solid currentColor; font: 800 10.5px/1.5 var(--ds-sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; text-decoration: none; }
.ds-ev.edge { color: var(--ds-up); } .ds-ev.costs { color: var(--ds-caution); } .ds-ev.none { color: var(--ds-muted); } .ds-ev.worse { color: var(--ds-dn); }
a.ds-ev:hover { text-decoration: none; filter: brightness(.85); }

/* buttons: one primary (Trade), the rest outlined */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--ds-line2); background: var(--ds-surface); color: var(--ds-ink); font: 600 13px var(--ds-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ds-btn:hover { border-color: var(--ds-ink2); text-decoration: none; color: var(--ds-ink); }
.ds-btn.pri { background: var(--ds-violet); border-color: var(--ds-violet); color: #fff; font-weight: 700; }
.ds-btn.pri:hover { background: var(--ds-violet-ink); color: #fff; }
.ds-btn.on { background: var(--ds-hold-bg); border-color: transparent; color: var(--ds-hold); }
.ds-btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.ds-btn.icon { width: 30px; padding: 0; }
.ds-btn:focus-visible, .ds-tabs button:focus-visible, .ds-seg button:focus-visible { outline: 2px solid var(--ds-violet); outline-offset: 2px; }

/* section tabs inside a stock view */
.ds-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ds-line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tabs button, .ds-tabs a { flex-shrink: 0; border: 0; background: none; padding: 10px 14px; font: 600 14px var(--ds-sans); color: var(--ds-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; text-decoration: none; }
.ds-tabs button:hover, .ds-tabs a:hover { color: var(--ds-ink); text-decoration: none; }
.ds-tabs button[aria-selected="true"], .ds-tabs a.on { color: var(--ds-ink); box-shadow: inset 0 -2px 0 var(--ds-violet); }
.ds-panel[hidden] { display: none !important; }

/* segmented control (horizons, ranges) */
.ds-seg { display: inline-flex; border: 1px solid var(--ds-line2); border-radius: 10px; overflow: hidden; background: var(--ds-surface); }
.ds-seg button, .ds-seg a { border: 0; background: none; padding: 7px 14px; font: 600 13px var(--ds-sans); color: var(--ds-ink2); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ds-seg button + button, .ds-seg a + a { border-left: 1px solid var(--ds-line); }
.ds-seg .on, .ds-seg [aria-pressed="true"] { background: var(--ds-ink); color: var(--ds-surface); }
.ds-seg a:hover { text-decoration: none; }

/* stock header + key figures */
.ds-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; margin: 0 0 14px; }
.ds-head h1 { font: 600 28px/1.1 var(--ds-sans); letter-spacing: -.01em; margin: 2px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ds-ink); }
.ds-head .nm { color: var(--ds-muted); font-size: 14px; margin-top: 2px; }
.ds-head .px { text-align: right; }
.ds-head .px .v { font: 500 28px var(--ds-mono); letter-spacing: -.02em; color: var(--ds-ink); }
.ds-head .px .c { font: 500 13px var(--ds-mono); }
.ds-head .px .c .ds-flat { font-family: var(--ds-sans); }
.ds-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ds-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-surface); margin: 0 0 14px; overflow: hidden; }
.ds-kpi { padding: 10px 14px; min-width: 0; }
.ds-kpi + .ds-kpi { border-left: 1px solid var(--ds-line); }
.ds-kpi .l { font: 500 10px var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); white-space: nowrap; }
.ds-kpi .v { font: 500 15px var(--ds-mono); margin: 3px 0 2px; white-space: nowrap; color: var(--ds-ink); }
.ds-kpi .s { font-size: 11.5px; color: var(--ds-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-range { display: block; height: 5px; border-radius: 3px; background: var(--ds-lav); position: relative; margin: 6px 0 2px; }
.ds-range i { position: absolute; top: -3px; width: 3px; height: 11px; border-radius: 2px; background: var(--ds-ink); transform: translateX(-1px); }

/* stock rows (every list) */
.ds-list { display: flex; flex-direction: column; }
.ds-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--ds-line); color: var(--ds-ink); text-decoration: none; cursor: pointer; }
.ds-row:hover { background: var(--ds-soft); text-decoration: none; }
.ds-row.on, .ds-row[aria-selected="true"] { background: var(--ds-lav); box-shadow: inset 3px 0 0 var(--ds-violet); }
.ds-row .s { font: 700 13.5px var(--ds-sans); display: flex; align-items: center; gap: 6px; min-width: 0; }
.ds-row .s .held { font: 700 9.5px var(--ds-sans); letter-spacing: .04em; color: var(--ds-violet-ink); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.ds-row .nm { font-size: 11.5px; color: var(--ds-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-row .p { text-align: right; font: 500 13px var(--ds-mono); }
.ds-row .c { text-align: right; font: 500 12px var(--ds-mono); }

/* list header: tabs, search, sort */
.ds-lhead { padding: 10px 12px; border-bottom: 1px solid var(--ds-line); display: flex; flex-direction: column; gap: 8px; }
.ds-ltabs { display: flex; gap: 2px; margin: -10px -12px 0; padding: 0 6px; border-bottom: 1px solid var(--ds-line); }
.ds-ltabs a, .ds-ltabs button { flex: 1; text-align: center; border: 0; background: none; padding: 10px 4px; font: 600 13px var(--ds-sans); color: var(--ds-muted); cursor: pointer; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; }
.ds-ltabs .on { color: var(--ds-ink); box-shadow: inset 0 -2px 0 var(--ds-violet); }
.ds-ltabs a:hover, .ds-ltabs button:hover { color: var(--ds-ink); text-decoration: none; }
.ds-search { position: relative; }
.ds-search input { width: 100%; height: 34px; padding: 0 34px 0 10px; border: 1px solid var(--ds-line2); border-radius: 9px; background: var(--ds-surface); color: var(--ds-ink); font: 500 13.5px var(--ds-sans); box-sizing: border-box; }
.ds-search kbd { position: absolute; right: 8px; top: 7px; font: 500 11px var(--ds-mono); color: var(--ds-muted); border: 1px solid var(--ds-line2); border-radius: 4px; padding: 0 5px; }
.ds-lctl { display: flex; gap: 6px; }
.ds-lctl select { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border: 1px solid var(--ds-line2); border-radius: 8px; background: var(--ds-surface); color: var(--ds-ink); font: 500 12.5px var(--ds-sans); }
.ds-lcount { font-size: 11.5px; color: var(--ds-muted); }
.ds-lcols { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 5px 12px; font: 500 9.5px var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); border-bottom: 1px solid var(--ds-line); background: var(--ds-soft); }

/* data tables (ideas, track record) */
.ds-table { width: 100%; border-collapse: collapse; background: var(--ds-surface); font-size: 13.5px; }
.ds-table th { position: sticky; top: 0; background: var(--ds-soft); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ds-line); font: 500 10px var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); white-space: nowrap; }
.ds-table th button { all: unset; cursor: pointer; } .ds-table th button:hover { color: var(--ds-ink); }
.ds-table th[aria-sort="ascending"] button::after { content: " ▲"; } .ds-table th[aria-sort="descending"] button::after { content: " ▼"; }
.ds-table td { padding: 9px 10px; border-bottom: 1px solid var(--ds-line); vertical-align: middle; color: var(--ds-ink); }
.ds-table tr:hover td { background: var(--ds-soft); }
.ds-table .n, .ds-table th.n { text-align: right; font-family: var(--ds-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-table .sym b { display: block; font-size: 13.5px; } .ds-table .sym small { display: block; color: var(--ds-muted); font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-table .sym a { color: var(--ds-ink); text-decoration: none; } .ds-table .sym a:hover b { color: var(--ds-violet-ink); }
.ds-table .why { display: flex; gap: 4px; flex-wrap: wrap; }
.ds-table .why span { padding: 1px 7px; border-radius: 5px; background: var(--ds-soft); font-size: 11.5px; color: var(--ds-ink2); white-space: nowrap; }
.ds-tbox { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 14px; overflow: auto; }

/* evidence strip above any list of calls */
.ds-evstrip { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 14px; padding: 12px 16px; }
.ds-evstrip .k { font-size: 12px; color: var(--ds-muted); } .ds-evstrip .v { font: 500 16px var(--ds-mono); color: var(--ds-ink); } .ds-evstrip .s { font-size: 11.5px; color: var(--ds-muted); }
.ds-evstrip > div { flex: 1 1 120px; min-width: 0; }
.ds-evstrip .lead { display: flex; flex-direction: column; gap: 4px; flex: 0 1 260px; }

/* filter chips */
.ds-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ds-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--ds-line2); background: var(--ds-surface); color: var(--ds-ink); border-radius: 8px; font: 600 13px var(--ds-sans); cursor: pointer; }
.ds-chips button.on { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-surface); }
.ds-chips select { height: 32px; padding: 0 8px; border: 1px solid var(--ds-line2); background: var(--ds-surface); color: var(--ds-ink); border-radius: 8px; font: 600 13px var(--ds-sans); }
.ds-chips .sep { width: 1px; height: 20px; background: var(--ds-line); }

/* the "/" search palette */
.ds-pal { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,40,.35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.ds-pal[hidden] { display: none; }
.ds-pal .box { width: 100%; max-width: 560px; background: var(--ds-surface); border-radius: 14px; box-shadow: 0 30px 80px rgba(15,23,40,.25); overflow: hidden; }
.ds-pal input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--ds-line); padding: 16px 18px; font: 500 16px var(--ds-sans); background: var(--ds-surface); color: var(--ds-ink); outline: none; }
.ds-pal ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.ds-pal li a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--ds-ink); text-decoration: none; font-size: 14px; }
.ds-pal li a span:nth-child(2) { color: var(--ds-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-pal li a small { font: 500 10.5px var(--ds-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); }
.ds-pal li a.on, .ds-pal li a:hover { background: var(--ds-lav); text-decoration: none; }
.ds-pal .empty { padding: 14px 18px; color: var(--ds-muted); font-size: 13.5px; }

/* "data to …" stamp */
.ds-stamp { font: 500 11px var(--ds-mono); color: var(--ds-muted); letter-spacing: .02em; }

@media (max-width: 1100px) { .ds-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ds-kpi:nth-child(4) { border-left: 0; } .ds-kpi:nth-child(n+4) { border-top: 1px solid var(--ds-line); } }
@media (max-width: 760px) {
  .ds-head { grid-template-columns: minmax(0, 1fr); } .ds-head .px { text-align: left; }
  .ds-head h1 { font-size: 24px; } .ds-head .px .v { font-size: 24px; }
  .ds-kpi { padding: 9px 10px; } .ds-kpi .v { font-size: 13px; } .ds-kpi .l { font-size: 9.5px; }
  .ds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-kpi:nth-child(odd) { border-left: 0; } .ds-kpi:nth-child(4) { border-left: 1px solid var(--ds-line); } .ds-kpi:nth-child(n+3) { border-top: 1px solid var(--ds-line); }
  .ds-evstrip > div { flex-basis: 40%; } .ds-evstrip .lead { flex-basis: 100%; }
  .ds-tabs button, .ds-tabs a { padding: 10px 11px; font-size: 13.5px; }
  .ds-acts .ds-btn { height: 38px; }
}

/* chart hover readout */
.ds-ctip { position: absolute; top: 0; padding: 3px 8px; border-radius: 6px; background: var(--ds-ink); color: var(--ds-surface); font: 500 11.5px var(--ds-mono); white-space: nowrap; pointer-events: none; }
.ds-ctip[hidden] { display: none; }
.ds-chips select { width: auto; }
.ds-table th, .ds-table td { text-align: left; }
.ds-table th.n, .ds-table td.n { text-align: right; }
.ds-table td.act { text-align: right; }
.ds-ltabs a, .ds-ltabs button { padding: 10px 2px; font-size: 12.5px; }
.ds-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ================================================================ house style: every page
   Sharp type (Newsreader titles, JetBrains Mono numbers and labels, Hanken Grotesk text), hairline cards, room to breathe.
   Older pages (app.css) take the same tokens; the Nifty 50 page keeps its own dark-mode tokens. */
html:not([data-cp-auto]) {
  --bg: #f7f6f2; --surface: #ffffff; --surface-alt: #f3f2ee; --line: #e4e2dc; --line-strong: #d9d6cf;
  --ink: #0f1728; --muted: #5b6472; --faint: #6b7280; --violet: #5b4bff; --lavender: #ecebff; --green: #0f7a46; --red: #c2291f;
  --shadow-sm: none; --shadow: none;
}
html:not([data-cp-auto]) body { background: var(--ds-bg); }
main { padding: 40px 0 88px; }
main .wrap { max-width: 1400px; padding: 0 32px; }
html:not([data-cp-auto]) h1 { font: 500 34px/1.1 var(--ds-display); letter-spacing: -.01em; }
.num, td.num, .mono { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
html:not([data-cp-auto]) .sec { font: 500 10.5px var(--ds-mono); letter-spacing: .12em; color: var(--ds-muted); }
html:not([data-cp-auto]) .sec::before { content: none; }
html:not([data-cp-auto]) .card { border: 1px solid var(--ds-line); border-radius: 14px; padding: 26px 28px; box-shadow: none; }
html:not([data-cp-auto]) .card + .card { margin-top: 22px; }
html:not([data-cp-auto]) .grid { gap: 22px; }
html:not([data-cp-auto]) th, html:not([data-cp-auto]) td { padding: 13px 12px; }
html:not([data-cp-auto]) th { color: var(--ds-muted); font-size: 10px; letter-spacing: .1em; }
html:not([data-cp-auto]) .pill { border-radius: 6px; font-weight: 700; }

/* the shared parts, roomier */
.ds-table th { padding: 12px 16px; } .ds-table td { padding: 15px 16px; }
.ds-tbox, .ds-evstrip { border-radius: 14px; }
.ds-evstrip { padding: 18px 22px; gap: 16px 28px; }
.ds-chips { gap: 8px; }
.ds-head { margin: 4px 0 20px; gap: 12px 28px; }
.ds-kpis { margin: 0 0 22px; } .ds-kpi { padding: 14px 18px; } .ds-kpi .v { margin: 5px 0 3px; }
.ds-tabs { margin: 0 0 24px; } .ds-tabs button, .ds-tabs a { padding: 12px 16px; }
.ds-row { padding: 11px 14px; }
.ds-lhead { padding: 12px 14px; gap: 10px; } .ds-ltabs { margin: -12px -14px 0; }
.ds-lcols { padding: 7px 14px; }

/* stock workspace and its cards */
.ws-ov { gap: 22px; } .ws-pair { gap: 22px; }
.cpx .card { padding: 22px 24px; } .cpx .blk { margin-top: 22px; }
.ws-meta { margin: -6px 0 18px; }
html[data-cp-auto] main { padding: 28px 36px 64px; }
html[data-cp-auto] #detail .card { padding: 22px 24px; margin-bottom: 22px; }
html[data-cp-auto] #detail .sg { margin: 0 0 22px; }
html[data-cp-auto] #detail .sg-head { padding: 16px 20px; }

/* markets */
.mk-card { padding: 22px 24px !important; } .mk-grid3, .mk-grid2 { gap: 22px !important; margin-top: 22px !important; } .mk-tiles { gap: 14px !important; }

@media (max-width: 760px) {
  main { padding: 24px 0 72px; } main .wrap { padding: 0 16px; }
  html:not([data-cp-auto]) h1 { font-size: 28px; }
  html:not([data-cp-auto]) .card { padding: 18px; } .cpx .card { padding: 18px; }
  html[data-cp-auto] main { padding: 16px 16px 64px; }
  html[data-cp-auto] #detail .card { padding: 18px; }
  .ds-table th { padding: 10px 12px; } .ds-table td { padding: 12px; }
}
html:not([data-cp-auto]) .btn { border-radius: 9px; }

/* Ask AI */
.ds-pal .box.ask { max-width: 760px; display: flex; flex-direction: column; max-height: 82vh; }
.ask-in { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--ds-line); }
.ask-in input { border: 0 !important; padding: 16px 4px !important; flex: 1; }
.ask-spark { color: var(--ds-violet); font-size: 18px; }
.ask-clear { border: 1px solid var(--ds-line2); background: var(--ds-surface); border-radius: 7px; font: 600 12px var(--ds-sans); padding: 4px 9px; cursor: pointer; color: var(--ds-ink2); }
.ask-thread { overflow-y: auto; padding: 16px 20px 6px; display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--ds-line); flex: 1; min-height: 0; }
.ask-thread[hidden] { display: none; }
.ask-q { align-self: flex-end; background: var(--ds-lav); color: var(--ds-ink); padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: 14px; max-width: 80%; margin-left: auto; width: fit-content; }
.ask-a { font-size: 14.5px; line-height: 1.55; color: var(--ds-ink); margin-top: 8px; }
.ask-a p { margin: 0 0 6px; } .ask-a ul { margin: 4px 0 8px; padding-left: 20px; } .ask-a li { margin: 3px 0; }
.ask-wait { color: var(--ds-muted); animation: askp 1.2s ease-in-out infinite; } @keyframes askp { 50% { opacity: .45; } }
.ask-err { color: var(--ds-dn); }
.ask-meta { font: 500 10.5px var(--ds-mono); color: var(--ds-muted); margin-top: 8px; letter-spacing: .02em; }
.ask-card { border: 1px solid var(--ds-line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 4px; background: var(--ds-surface); }
.ask-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ask-ch .ds-btn { margin-left: auto; }
.ask-cb { margin-top: 8px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ask-cb p { margin: 0; flex-basis: 100%; }
.ask-card .ds-table { margin-top: 10px; } .ask-card .ds-table td, .ask-card .ds-table th { padding: 8px 10px; }
.ask-amt { font-size: 12.5px; color: var(--ds-muted); display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ask-amt input { width: 110px; height: 30px; border: 1px solid var(--ds-line2); border-radius: 8px; padding: 0 8px; font: 500 13px var(--ds-mono); background: var(--ds-surface); color: var(--ds-ink); }
.ask-amt + .ds-btn { margin-left: 0; }
.ask-note { font-size: 12px; color: var(--ds-muted); margin: 8px 0 0; }
.ds-pal li a.askrow b { color: var(--ds-violet-ink); }

/* Ask AI Phase 1: streamed steps, cards, structured answers, conversations */
.ask-hist { border: 1px solid var(--ds-line2); background: var(--ds-surface); border-radius: 7px; font: 600 12px var(--ds-sans); padding: 4px 9px; cursor: pointer; color: var(--ds-ink2); }
.ask-steps { list-style: none; margin: 0 0 6px; padding: 0; font: 500 12px var(--ds-mono); color: var(--ds-muted); }
.ask-steps li { padding: 2px 0 2px 16px; position: relative; } .ask-steps li::before { content: "✓"; position: absolute; left: 0; color: var(--ds-up); }
.ask-steps li.on::before { content: "•"; color: var(--ds-violet); animation: askp 1s ease-in-out infinite; } .ask-steps li.on { color: var(--ds-ink2); }
.ask-steps.done { opacity: .7; }
.ask-stock { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; }
.ask-stock .sym { font-size: 16px; } .ask-stock .sym a { color: var(--ds-ink); } .ask-stock .nm { font-size: 12px; color: var(--ds-muted); }
.ask-stock .px { text-align: right; } .ask-stock .px .v { font-size: 18px; }
.ask-kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ds-line); }
.ask-kv span { display: block; font: 500 9.5px var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); } .ask-kv b { font-size: 13px; font-weight: 500; }
.ask-src { font: 500 10.5px var(--ds-mono); color: var(--ds-muted); margin-top: 8px; }
.ask-tw { overflow-x: auto; } .ask-tw .ds-table td, .ask-tw .ds-table th { padding: 6px 9px; font-size: 12.5px; }
.ask-ans { margin-top: 10px; } .ask-sum { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.ask-ans ul { margin: 0 0 6px; padding-left: 20px; } .ask-ans li { margin: 4px 0; }
.ask-flag { font-size: 12px; color: var(--ds-caution); margin: 6px 0; }
.ask-fu { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ask-chip { border: 1px solid #cdc6ff; background: var(--ds-lav); color: var(--ds-violet-ink); border-radius: 999px; padding: 5px 12px; font: 600 12.5px var(--ds-sans); cursor: pointer; text-align: left; }
.ask-chip:hover { border-color: var(--ds-violet); }
.ask-fb { margin-top: 8px; display: flex; gap: 4px; } .ask-fb button { border: 1px solid var(--ds-line2); background: var(--ds-surface); border-radius: 7px; padding: 2px 8px; cursor: pointer; }
.ask-threads { display: flex; flex-direction: column; gap: 4px; } .ask-threads button { display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--ds-line); background: var(--ds-surface); border-radius: 9px; padding: 9px 12px; cursor: pointer; color: var(--ds-ink); font: 500 13.5px var(--ds-sans); }
.ask-threads button:hover { border-color: var(--ds-violet); } .ask-threads small { color: var(--ds-muted); font: 500 11px var(--ds-mono); white-space: nowrap; }
@media (max-width: 600px) { .ask-stock { grid-template-columns: minmax(0, 1fr) auto; } .ask-stock .sp { grid-column: 1 / -1; } }

/* ================================================================ section tints (Ravi, 1 Oct): flat, never blended.
   Faint purple: the top bar, the left list panel and the footer. Faint aqua green: the main content area.
   Cards and tables stay white on top. Light theme only. */
:root { --ds-band-purple: #faf8ff; --ds-band-aqua: #f3f9fc; }  /* faint purple; faint aqua leaning blue (Ravi, 1 Oct) */
html:not([data-theme="dark"]) .cp-nav { --cp-bg: var(--ds-band-purple); --cp-menu: #ffffff; background: var(--ds-band-purple); backdrop-filter: none; -webkit-backdrop-filter: none; }
html:not([data-theme="dark"]) body, html:not([data-theme="dark"]) main { background: var(--ds-band-aqua); }
html:not([data-theme="dark"]) footer { background: var(--ds-band-purple); border-top: 1px solid var(--ds-line); }
html:not([data-theme="dark"]) aside, html:not([data-theme="dark"]) .cpx .side.ws-side { background: var(--ds-band-purple); }
html:not([data-theme="dark"]) .ds-lhead, html:not([data-theme="dark"]) .ds-lcols { background: transparent; }
html:not([data-theme="dark"]) .ds-row:hover { background: var(--ds-row-hover, #f1edff); }
html:not([data-theme="dark"]) .ds-row.on, html:not([data-theme="dark"]) .ds-row[aria-selected="true"] { background: var(--ds-row-on, #ebe6ff); }
@media (prefers-color-scheme: dark) { html[data-cp-auto]:not([data-theme="light"]) body, html[data-cp-auto]:not([data-theme="light"]) main,
  html[data-cp-auto]:not([data-theme="light"]) aside, html[data-cp-auto]:not([data-theme="light"]) .cp-nav { background: var(--ds-bg); } }

/* rich chart (chartpro.js) */
.ds-chartbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--ds-line2); border-radius: 8px; background: var(--ds-surface); color: var(--ds-violet-ink); cursor: pointer; vertical-align: middle; }
.ds-chartbtn:hover { border-color: var(--ds-violet); background: var(--ds-lav); }
.ds-chartbtn.sm { width: 24px; height: 24px; border-radius: 6px; } .ds-chartbtn.sm svg { width: 13px; height: 13px; }
.ds-row .ds-chartbtn.sm { opacity: 0; margin-left: 4px; } .ds-row:hover .ds-chartbtn.sm, .ds-row.on .ds-chartbtn.sm, .ds-row:focus-within .ds-chartbtn.sm { opacity: 1; }
.cx-modal { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,40,.45); display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; }
.cx-modal[hidden] { display: none; }
.cx-box { width: 100%; max-width: 1360px; height: 96vh; background: var(--ds-surface); border-radius: 16px; box-shadow: 0 30px 80px rgba(15,23,40,.3); display: flex; flex-direction: column; overflow: hidden; }
.cx-head { display: flex; align-items: flex-end; gap: 16px; padding: 18px 22px 10px; border-bottom: 1px solid var(--ds-line); }
.cx-title { font: 600 22px var(--ds-sans); margin: 2px 0 0; } .cx-px { margin-left: auto; text-align: right; font-size: 12.5px; } .cx-last { font-size: 22px; }
.cx-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ds-muted); cursor: pointer; padding: 0 4px 6px; }
.cx-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 22px; border-bottom: 1px solid var(--ds-line); }
.cx-tools .ds-seg button { padding: 6px 11px; font-size: 12.5px; }
.cx-chips { display: flex; gap: 4px; flex-wrap: wrap; } .cx-chips button { border: 1px solid var(--ds-line2); background: var(--ds-surface); border-radius: 999px; padding: 4px 11px; font: 600 12px var(--ds-sans); color: var(--ds-ink2); cursor: pointer; }
.cx-chips button.on { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-surface); }
.cx-legend { padding: 8px 22px; font: 500 12px var(--ds-mono); color: var(--ds-muted); min-height: 32px; } .cx-legend span { color: var(--ds-ink); } .cx-legend b { color: var(--ds-ink); margin-right: 6px; }
.cx-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.cx-charts { padding: 0 8px 0 14px; overflow-y: auto; min-width: 0; } .cx-main, .cx-rsi, .cx-macd { position: relative; } .cx-rsi, .cx-macd { border-top: 1px solid var(--ds-line); margin-top: 4px; }
.cx-rsi[hidden], .cx-macd[hidden] { display: none; } .cx-pl { position: absolute; top: 4px; left: 8px; z-index: 2; font: 600 10px var(--ds-mono); color: var(--ds-muted); letter-spacing: .06em; }
.cx-side { border-left: 1px solid var(--ds-line); overflow-y: auto; padding: 12px 18px 18px; background: var(--ds-band-purple, var(--ds-soft)); }
.cx-side h3 { font: 600 14px var(--ds-sans); margin: 8px 0 8px; } .cx-side section + section { border-top: 1px solid var(--ds-line); margin-top: 12px; padding-top: 6px; }
.cx-kv { display: flex; flex-direction: column; } .cx-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--ds-line); font-size: 12.5px; }
.cx-kv span { color: var(--ds-muted); } .cx-kv b { font-weight: 500; text-align: right; }
.cx-cap { font: 500 10px var(--ds-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); margin: 14px 0 4px; } .cx-bars { width: 100%; height: auto; display: block; }
.cx-note { font-size: 11.5px; color: var(--ds-muted); margin: 8px 0 0; } .cx-foot { margin: 0; padding: 8px 22px; font-size: 11px; color: var(--ds-muted); border-top: 1px solid var(--ds-line); }
@media (max-width: 900px) { .cx-body { grid-template-columns: 1fr; overflow-y: auto; } .cx-side { border-left: 0; border-top: 1px solid var(--ds-line); } .cx-box { height: 100vh; border-radius: 0; } .cx-modal { padding: 0; } }

/* Light theme: Forest (Ravi's pick, 1 Oct 2026) is the default. Slate, indigo and blue stay as previews: ?theme=slate|indigo|blue (remembered; ?theme=off clears).
   Each replaces the purple/aqua bands with one calm page grey, white panels and a single accent. */
html:not([data-theme="dark"]) { --ds-surface: #ffffff; }
html[data-cpt="slate"]:not([data-theme="dark"]) { --ds-bg: #f6f8fa; --ds-soft: #f1f4f7; --ds-band-aqua: #f6f8fa; --ds-band-purple: #ffffff;
  --ds-ink: #0b1220; --ds-ink2: #334155; --ds-muted: #64748b; --ds-line: #e2e8f0; --ds-line2: #cbd5e1;
  --ds-violet: #0f766e; --ds-violet-ink: #115e59; --ds-lav: #e3f3f1; --ds-row-hover: #f1f5f9; --ds-row-on: #e3f3f1; }
html[data-cpt="indigo"]:not([data-theme="dark"]) { --ds-bg: #fafaf9; --ds-soft: #f5f5f4; --ds-band-aqua: #fafaf9; --ds-band-purple: #ffffff;
  --ds-ink: #111827; --ds-ink2: #374151; --ds-muted: #6b7280; --ds-line: #e7e5e4; --ds-line2: #d6d3d1;
  --ds-violet: #4f46e5; --ds-violet-ink: #3730a3; --ds-lav: #eef2ff; --ds-row-hover: #f5f5f4; --ds-row-on: #eef2ff; }
html[data-cpt="blue"]:not([data-theme="dark"]) { --ds-bg: #f4f6fb; --ds-soft: #eef2f8; --ds-band-aqua: #f4f6fb; --ds-band-purple: #ffffff;
  --ds-ink: #0f172a; --ds-ink2: #334155; --ds-muted: #64748b; --ds-line: #e3e8f0; --ds-line2: #cfd7e3;
  --ds-violet: #2563eb; --ds-violet-ink: #1d4ed8; --ds-lav: #eaf1ff; --ds-row-hover: #f1f5fb; --ds-row-on: #e6efff; }
html[data-cpt="forest"]:not([data-theme="dark"]), html:not([data-cpt]):not([data-theme="dark"]) { --ds-bg: #f7f7f4; --ds-soft: #f1f1ec; --ds-band-aqua: #f7f7f4; --ds-band-purple: #ffffff;
  --ds-ink: #14201a; --ds-ink2: #3a463f; --ds-muted: #66706a; --ds-line: #e6e5de; --ds-line2: #d6d4cb;
  --ds-violet: #1f6f4a; --ds-violet-ink: #17573a; --ds-lav: #e8f3ec; --ds-row-hover: #f2f2ed; --ds-row-on: #e8f3ec; }
html:not([data-theme="dark"]) .cp-nav, html:not([data-theme="dark"]) aside { border-color: var(--ds-line); }
html:not([data-theme="dark"]) .cp-nav { border-bottom: 1px solid var(--ds-line); }
html:not([data-theme="dark"]) .cp-strip, html:not([data-theme="dark"]) .cp-nav { --cp-violet: var(--ds-violet); --cp-blue: var(--ds-violet); }
html:not([data-theme="dark"]) .cp-cta:hover, html:not([data-theme="dark"]) .sg-btn.t:hover { background: var(--ds-violet-ink); }
html:not([data-theme="dark"]) .sg-btn.t { background: var(--ds-violet); }

/* Ask AI as the centrepiece (1 Oct 2026): a band under the header on every page, an Ask tab on phones, a full-screen chat on phones */
.cp-askbar { background: linear-gradient(180deg, var(--ds-surface), var(--ds-bg)); border-bottom: 1px solid var(--ds-line); }
.cp-askbar-in { max-width: 1100px; margin: 0 auto; padding: 14px 22px 12px; display: flex; flex-direction: column; gap: 10px; }
.cp-askbig { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 8px 8px 18px; border: 1.5px solid var(--ds-violet); border-radius: 16px; background: var(--ds-surface);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--ds-violet) 14%, transparent); cursor: text; text-align: left; font-family: var(--ds-sans); color: var(--ds-ink); transition: box-shadow .15s, transform .15s; }
.cp-askbig:hover { box-shadow: 0 10px 32px color-mix(in srgb, var(--ds-violet) 22%, transparent); transform: translateY(-1px); }
.cp-askbig .cp-ab-sp { font-size: 22px; color: var(--ds-violet); line-height: 1; }
.cp-askbig .cp-ab-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-askbig .cp-ab-t b { font-size: 16px; font-weight: 700; } .cp-askbig .cp-ab-t em { font-style: normal; color: var(--ds-muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-askbig .cp-ab-go { flex-shrink: 0; width: auto; height: auto; margin: 0; letter-spacing: 0; background: var(--ds-violet); color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 11px; padding: 11px 20px; }
.cp-askchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cp-askchips::-webkit-scrollbar { display: none; }
.cp-askchips button, .ask-try .ask-chip { flex-shrink: 0; border: 1px solid var(--ds-line2); background: var(--ds-surface); color: var(--ds-ink2); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--ds-sans); cursor: pointer; white-space: nowrap; }
.cp-askchips button:hover, .ask-try .ask-chip:hover { border-color: var(--ds-violet); color: var(--ds-violet-ink); background: var(--ds-lav); }
.ask-try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ask-try > span { font: 500 10.5px var(--ds-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); margin-right: 2px; }
/* palette header row, send and close */
.ds-pal .box.ask > .ask-top { order: -1; } .ask-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; } .ask-top .ds-eyebrow { margin-right: auto; color: var(--ds-violet-ink); }
.ask-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ds-muted); cursor: pointer; padding: 0 4px 2px; }
.ask-in { margin: 0; } .ask-send { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--ds-violet); color: #fff; font: 700 18px var(--ds-sans); cursor: pointer; }
.ask-in input::-webkit-search-cancel-button { display: none; }
/* phone tab bar: Ask AI in the middle, raised */
.tabbar .tb-ask { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font: 700 11px var(--ds-sans); color: var(--ds-violet-ink); cursor: pointer; padding: 0 2px 4px; }
.tabbar .tb-ask span { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--ds-violet); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--ds-violet) 40%, transparent); }
@media (max-width: 900px) {
  .cp-askbar-in { padding: 10px 14px; gap: 8px; }
  .cp-askbig { min-height: 52px; padding-left: 14px; gap: 10px; } .cp-askbig .cp-ab-t b { font-size: 15px; } .cp-askbig .cp-ab-t em { font-size: 12.5px; } .cp-askbig .cp-ab-go { padding: 9px 14px; }
  .cp-askchips button { font-size: 12.5px; padding: 5px 11px; }
  .cp-search.ask { display: none; }  /* the band and the Ask tab replace the small header button on phones */
}
@media (max-width: 700px) {
  .ds-pal { padding: 0; align-items: stretch; }
  .ds-pal .box.ask { max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .ds-pal .box.ask .ask-thread { padding: 12px 14px 6px; }
  .ds-pal .box.ask ul { max-height: none; flex: 1; }
  .ds-pal .box.ask .ask-in { order: 5; border-top: 1px solid var(--ds-line); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }  /* chat style: the field sits above the keyboard */
  .ds-pal .box.ask .ask-thread:not([hidden]) ~ ul { flex: 0 0 auto; }
  .ask-in input { font-size: 16px !important; }  /* 16px stops iOS zooming into the field */
}
html:not([data-theme="dark"]) .cp-search.ask { background: var(--ds-surface); border-color: var(--ds-violet); color: var(--ds-ink); }

@media (max-width: 700px) {
  /* the Ask AI screen is the whole screen: solid, nothing of the page behind it (the box follows the area above the keyboard, ds.js) */
  .ds-pal { background: var(--ds-surface); overflow: hidden; overscroll-behavior: none; }
  html.ask-open body > *:not(.ds-pal) { visibility: hidden; }
  .ds-pal .box.ask .ask-thread { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .ds-pal .box.ask .ask-top { padding-top: max(10px, env(safe-area-inset-top)); }
}

/* Section tabs stand out (1 Oct 2026): a pill track, the open tab filled with the accent */
.ds-tabs { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--ds-line2); border-radius: 12px; background: var(--ds-soft); }
.ds-tabs button, .ds-tabs a { padding: 9px 16px; border-radius: 9px; color: var(--ds-ink2); box-shadow: none; }
.ds-tabs button:hover, .ds-tabs a:hover { background: var(--ds-surface); color: var(--ds-ink); }
.ds-tabs button[aria-selected="true"], .ds-tabs a.on { background: var(--ds-violet); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--ds-violet) 30%, transparent); }
@media (max-width: 900px) { .ds-tabs { display: flex; } .ds-tabs button, .ds-tabs a { padding: 8px 12px; } }

/* Signals tab (signals.js) */
.sx { display: grid; gap: 14px; }
.sx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ds-muted); }
.sx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sx-card { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.sx-card h3 { margin: 0 0 10px; font: 600 15px var(--ds-sans); color: var(--ds-ink); }
.sx-card h3 small { font: 500 10px var(--ds-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); margin-left: 6px; }
.sx-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.sx-big.sm { margin-top: 12px; }
.sx-lab { font: 600 22px var(--ds-display); } .sx-lab.sm { font-size: 17px; }
.sx-sub { font-size: 12.5px; color: var(--ds-muted); }
.sx-note { font-size: 12px; color: var(--ds-muted); line-height: 1.5; margin: 10px 0 0; }
.sx-p { font: 500 12px var(--ds-mono); color: var(--ds-ink2); white-space: nowrap; }
.sx-tw { overflow-x: auto; margin: 0 -4px; }
.sx-t th[scope=row] { font: 600 13px var(--ds-sans); color: var(--ds-ink); text-transform: none; letter-spacing: 0; background: none; position: static; }
.sx-t td { white-space: nowrap; }
.sx-chk { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--ds-ink2); }
.sx-chk li span { display: inline-block; width: 18px; font-weight: 700; }
.sx-chk li.ok span { color: var(--ds-up); } .sx-chk li.no span { color: var(--ds-dn); } .sx-chk li.na span { color: var(--ds-muted); }
.sx-kv { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.sx-kv td, .sx-kv th { padding: 5px 4px; border-bottom: 1px solid var(--ds-line); text-align: left; color: var(--ds-ink2); }
.sx-kv th { font: 500 10px var(--ds-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); }
.sx-kv .n { text-align: right; font-family: var(--ds-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-kv td small { display: block; font-size: 11px; color: var(--ds-muted); }
.sx-more { margin-top: 8px; font-size: 12.5px; } .sx-more summary { cursor: pointer; color: var(--ds-violet-ink); }
.sx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx-tile { border: 1px solid var(--ds-line); border-radius: 10px; padding: 9px 11px; background: var(--ds-soft); }
.sx-tile .l { font: 500 10px var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }
.sx-tile .v { font: 600 15px var(--ds-sans); margin: 3px 0 2px; }
.sx-tile .s { font-size: 11.5px; color: var(--ds-muted); }
.sx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sx-ih { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sx-best { font: 600 14px var(--ds-sans); color: var(--ds-ink); padding: 8px 10px; border-radius: 8px; background: var(--ds-soft); }
.sx-best small { display: block; font: 400 12px var(--ds-sans); color: var(--ds-muted); margin-top: 2px; }
@media (max-width: 900px) { .sx-grid, .sx-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sx-tiles { grid-template-columns: minmax(0, 1fr); } .sx-card { padding: 12px; } }
