:root {
  /* Neutral dark chrome, ember strictly as an accent (active nav, primary button, brand, P&L numbers).
     Everything structural - panels, borders, rules, labels, axes - is neutral grey.
     P&L by amber (up) vs crimson (down). No other hue families. */
  --bg: #0e0e0f;
  --card: #161618;
  --card-2: #1c1c1f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededf0;
  --text-2: #9a9aa2;
  --muted: #6e6e76;
  --orange: #ff7a12;        /* accent ONLY */
  --orange-2: #ff9a2e;
  --ember: #ff7a12;
  --gold: #e0a645;
  --rust: #b45a2a;
  --apricot: #d99464;
  --mint: #f0a830;          /* semantic "up" - kept under the old name so nothing breaks */
  --mint-d: #c07e12;
  --red: #d8505f;           /* semantic "down" */
  --violet: #ff7a12;
  --pill: #26262a;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
.glow { display: none; }   /* no ambient colour washes */
.num, .mono, td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 13px; height: 13px; }
a { color: var(--orange); text-decoration: none; }
.pos { color: var(--mint); } .neg { color: var(--red); } .mut { color: var(--muted); } .org { color: var(--orange); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 22px; height: 64px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; flex: none; }
.logo img.logo-full { height: 40px; width: auto; display: block; }
.logo img.logo-mark { height: 30px; width: auto; display: none; }
.links { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.links button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-2); font: 500 14px var(--sans);
  padding: 8px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.links button svg { color: var(--orange); width: 14px; height: 14px; }
.links button:hover { color: var(--text); }
.links button.on { color: var(--text); background: var(--pill); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav-eq { font: 600 15px var(--mono); padding: 0 6px; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: none; font: 500 12.5px var(--sans); color: var(--text-2);
  letter-spacing: .01em; white-space: nowrap; transition: color .2s; }
.live .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.live .ms { color: var(--text-2); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.live.on { color: var(--text); }
.live.on .dot { background: var(--orange); }
.live.on .dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--orange); animation: ping 2.2s ease-out infinite; }
.live.off { color: var(--muted); }
@keyframes ping { 0% { transform: scale(.7); opacity: .7; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }

.ibtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--text-2); cursor: pointer; }
.ibtn:hover { color: var(--text); }
.ibtn.menu { display: none; }
.ibtn.on { color: var(--orange); }

/* ticker */
.ticker { position: relative; z-index: 2; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); height: 36px; }
.tk-track { display: flex; gap: 34px; white-space: nowrap; padding: 8px 0; animation: tk 70s linear infinite; width: max-content; font: 500 12.5px var(--mono); }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-track span b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }

main { position: relative; z-index: 1; max-width: 1560px; margin: 0 auto; padding: 22px 28px 40px; }

/* ---------- hero stats ---------- */
.hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 18px; }
.hero > div { padding: 18px 22px; border-right: 1px solid var(--line); min-width: 0; }
.hero > div:last-child { border-right: 0; }
.hero small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.hero b { display: block; font: 500 30px/1.15 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hero span { font-size: 12px; color: var(--muted); }
.hero.sm b { font-size: 24px; }
.hero.h4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.ch { display: flex; align-items: center; gap: 10px; padding: 14px 18px; min-height: 54px; flex-wrap: wrap; }
.ch h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ch .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cb { padding: 4px 18px 18px; }
.cb.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.main-side { grid-template-columns: minmax(0, 1fr) 380px; }
.section-t { font-size: 16px; font-weight: 600; margin: 26px 2px 12px; display: flex; align-items: center; gap: 10px; }
.section-t span { font-size: 12.5px; color: var(--muted); font-weight: 400; }

.pills { display: inline-flex; gap: 4px; }
.pills button { border: 0; background: transparent; color: var(--text-2); padding: 6px 12px; border-radius: 8px; font: 500 13px var(--sans); cursor: pointer; }
.pills button.on { background: var(--pill); color: var(--text); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: none; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 7px; font: 600 12px var(--sans); cursor: pointer; }
.seg button.on { background: var(--pill); color: var(--text); }
.seg button:hover { color: var(--text-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 8px; border: 1px solid var(--line-2);
  background: none; color: var(--text); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .26); }
.btn.mint { background: var(--orange); border-color: var(--orange); color: #16100a; }
.btn.mint:hover { background: var(--orange-2); }
.btn.red { background: none; border-color: rgba(216, 80, 95, .4); color: var(--red); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn.on { background: var(--orange); color: #16100a; border-color: var(--orange); }

/* desk cards (copy-trading style) */
.dcard { padding: 18px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.dcard:hover { border-color: var(--line-2); background: var(--card-2); }
.dcard .hd { display: flex; align-items: center; gap: 11px; position: relative; }
.av { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; flex: none; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av b { font: 500 12px var(--sans); color: var(--text-2); }
.dcard .av { width: 36px; height: 36px; }
.ch .av { width: 28px; height: 28px; border-radius: 7px; }
.dcard .hd b { font-size: 15px; display: block; line-height: 1.2; }
.dcard .hd small { color: var(--muted); font-size: 12px; }
.dcard .hd .st { margin-left: auto; }
.dcard .mid { display: flex; align-items: flex-end; gap: 10px; margin: 18px 0 14px; position: relative; }
.dcard .big { font: 500 26px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dcard .roi { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dcard .spark { margin-left: auto; width: 46%; height: 52px; }
.dcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.dcard .stats small { display: block; font-size: 11.5px; color: var(--muted); }
.dcard .stats span { font: 500 13px var(--mono); }
.dcard .act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: relative; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 5px; font: 500 12px var(--sans); letter-spacing: 0;
  border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.long, .tag.good { border-color: rgba(240, 168, 48, .4); color: var(--mint); }
.tag.short, .tag.crit { border-color: rgba(216, 80, 95, .42); color: var(--red); }
.tag.warn, .tag.org { border-color: rgba(255, 122, 18, .42); color: var(--orange); }
.tag.vio { border-color: rgba(224, 166, 69, .36); color: var(--gold); }
.sd-t { font: 600 13px var(--sans); white-space: nowrap; }
th.sd, td.sd { width: 60px; padding-right: 4px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 11px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font: 500 12px var(--sans); color: var(--muted); }
td { font-size: 13px; }
td.n, th.n { text-align: right; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr.op { cursor: pointer; }
tbody tr.op:hover { background: var(--card-2); }
tbody tr.op:focus-visible { outline: 1px solid var(--orange); outline-offset: -1px; }
tr.sel { background: var(--card-2) !important; }
tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--orange); }
.sym { font-weight: 600; }
.aibar { display: inline-flex; width: 58px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); vertical-align: middle; }
.aibar i { display: block; height: 100%; }

/* ---------- data tables: fit the block, never scroll sideways ----------
   Every table lives in a .tw, which is the query container. Columns carry a priority class
   (p2 = least important ... p5 = nice to have) and are dropped as the *block* gets narrower,
   not as the window does - the Market list sits in a 380px column at 1440px. Under 600px the
   table folds into one labelled card per row (labels come from each cell's data-l). */
.tw { container-type: inline-size; min-width: 0; overflow-x: clip; }
.tw .n, .tw td.n, .tw th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cut { display: inline-block; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.cut.w { max-width: 22ch; }
td.wrap { white-space: normal; min-width: 148px; line-height: 1.35; }
.sub { display: block; font: 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.more { padding: 11px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
@container (max-width: 1179px) { .p5 { display: none; } }
@container (max-width: 979px)  { .p4 { display: none; } }
@container (max-width: 819px)  { .p3 { display: none; } }
@container (max-width: 659px)  { .p2 { display: none; } }
@container (max-width: 599px) {
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; }
  table.rt thead { display: none; }
  .rt tbody tr { border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 9px 13px 11px; margin-bottom: 9px; }
  .rt tbody tr:hover { background: var(--card-2); }
  .rt tr.sel td:first-child { box-shadow: none; }
  .rt td, .rt td.p2, .rt td.p3, .rt td.p4, .rt td.p5 { display: block; border: 0; padding: 3px 0; text-align: right; overflow: hidden; }
  .rt td::before { content: attr(data-l); float: left; margin-right: 14px; max-width: 46%; color: var(--muted);
    font: 500 11.5px/1.7 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt td.hd { text-align: left; padding: 1px 0 8px; margin-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .rt td.hd::before { display: none; }
  .rt td.hd .sub { display: inline; margin-left: 8px; }   /* the close time must survive the fold */
  .rt td:empty { display: none; }
  .rt .cut, .rt .cut.w { max-width: 100%; }
  .rt td.wrap { min-width: 0; text-align: right; }
  .rt td.sd, .rt th.sd { width: auto; padding-right: 0; }
  .rt .sub { display: inline; margin-left: 7px; }
}

/* market watch - a list, so it cannot run out of horizontal room */
.wl { display: grid; }
.wr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "s p" "a c"; gap: 1px 12px; align-items: center;
  width: 100%; padding: 8px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.wr:hover { background: rgba(255, 255, 255, .025); }
.wr.sel { background: var(--card-2); box-shadow: inset 2px 0 0 var(--orange); }
.wr .s { grid-area: s; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr .p { grid-area: p; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr .a { grid-area: a; display: flex; align-items: center; gap: 8px; min-width: 0; font: 12px var(--sans); color: var(--muted); }
.wr .c { grid-area: c; font: 11.5px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* strategy blocks + economic calendar: long prose, so lists instead of table cells */
.srow { padding: 13px 18px; border-top: 1px solid var(--line); }
.srow .t { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.srow .t b { font-size: 13.5px; }
.srow .g { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px 12px; margin: 10px 0 0; }
.srow .g div { min-width: 0; }
.srow .g small { display: block; font-size: 11px; color: var(--muted); }
.srow .g span { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.srow p { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.filt { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 0 18px 15px; }
.filt label.f { min-width: 0; }
.filt label.f.grow { flex: 1 1 220px; }
.filt input, .filt select { width: 100%; }
th.so { cursor: pointer; user-select: none; }
th.so:hover { color: var(--text-2); }
th.so::after { content: ""; color: var(--orange); }
th.so.on::after { content: " \2193"; }
th.so.on.up::after { content: " \2191"; }
.tl { padding: 9px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 12.8px; }
.tl time { color: var(--muted); font: 11.5px var(--mono); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl b { font-weight: 500; }
.tl span { display: block; color: var(--muted); font-size: 12px; }
.cal { padding: 10px 18px; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: 12.5px; }
.cal .m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 12.5px var(--sans); color: var(--muted); }
.cal .m time { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* activity - a live stream, so it keeps a bounded height, but never a sideways scrollbar */
.feed { overflow-y: auto; overflow-x: clip; overscroll-behavior: contain; font-size: 12.8px; }
.ev { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 18px; border-top: 1px solid var(--line); }
.ev > div { overflow-wrap: anywhere; }
.ev time { color: var(--muted); font: 11.5px var(--mono); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ev .k { display: inline-block; font: 500 12px var(--sans); letter-spacing: 0; margin-right: 7px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--text-2); }
.ev .d { color: var(--muted); }
.ev.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(255, 122, 18, .1); } to { background: transparent; } }
.k-open { color: var(--orange) !important; } .k-close { color: var(--text) !important; } .k-partial { color: var(--mint) !important; }
.k-modify { color: var(--gold) !important; } .k-reject, .k-liquidation, .k-risk { color: var(--red) !important; } .k-veto { color: var(--gold) !important; }
.k-news { color: var(--text-2) !important; } .k-funding, .k-system, .k-feed, .k-admin, .k-order, .k-cancel { color: var(--muted) !important; }

.chart { height: 460px; position: relative; min-width: 0; }
.chart-legend { position: absolute; left: 18px; top: 6px; z-index: 3; font: 12.5px var(--sans); color: var(--muted); pointer-events: none; display: flex; gap: 14px; flex-wrap: wrap; }
.chart-legend b { color: var(--text); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- open positions: a carousel, one chart at a time ---------- */
.po { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.po:focus-visible { outline: 1px solid var(--orange); outline-offset: -1px; }
.po .ch { gap: 8px 10px; border-bottom: 1px solid var(--line); }
.po .ch .t { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; min-width: 0; margin-right: auto; }
.po .ch .t b { font-size: 15px; }
.po .ch .t small { color: var(--muted); font-size: 12px; }
.po .ch .t .pl { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.po .ch .t .pl small { display: block; font-family: var(--mono); font-size: 11.5px; }
.po-ix { font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.po-dots { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.po-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer; }
.po-dots button.on { background: var(--orange); }
.po .po-wrap, .po .po-f { transition: opacity .16s ease; }
.po.swap .po-wrap, .po.swap .po-f { opacity: .22; }
.rot-l { transform: rotate(-90deg); }
.rot-r { transform: rotate(90deg); }
.po-wrap { position: relative; min-width: 0; }
.po-leg { position: absolute; left: 14px; top: 5px; z-index: 3; display: flex; gap: 11px; flex-wrap: wrap; pointer-events: none; font: 12px var(--sans); }
.po-leg i { font-style: normal; }
.po-f { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid var(--line); font: 12.5px var(--sans); color: var(--muted); }
.po-f span b { color: var(--text-2); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.po-none { grid-column: 1 / -1; display: grid; justify-items: center; gap: 9px; padding: 58px 22px; text-align: center; }
.po-none svg { width: 26px; height: 26px; color: var(--orange); }
.po-none b { font-size: 15px; }
.po-note { grid-column: 1 / -1; }

.g-low { grid-template-columns: minmax(0, 1fr) 380px; }
.g-bt { grid-template-columns: 360px minmax(0, 1fr); }
.g-tr { grid-template-columns: minmax(0, 1fr) 320px; }
.tstat { display: grid; gap: 0; }
.tstat > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tstat > div > span:first-child { min-width: 0; }
.tstat > div:first-child { border-top: 0; }
.tstat b { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; color: var(--text);
  white-space: nowrap; flex: none; }
/* the result is laid out as a visible calculation: heading, the lines that add up, then the total */
.tstat .calc-h { display: block; padding: 14px 18px 7px; border-top: 1px solid var(--line-2);
  font: 600 12.5px var(--sans); color: var(--text-2); }
.tstat .calc-sum { border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); }
.tstat .calc-sum b { font-size: 17px; font-weight: 600; }
.tstat .calc-note { display: block; padding: 12px 18px 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.tstat .calc-note b { display: inline; font: 600 12.5px var(--sans); color: var(--text-2); }
.tsplit { display: flex; height: 8px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); margin: 2px 18px 12px; }
.tsplit i { display: block; height: 100%; }
.tsplit:empty { display: none; }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.note b { color: var(--text); font-weight: 600; }
.bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 2px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--muted); }
.kv span:last-child { color: var(--text); font-family: var(--mono); }
.kv.dots { background: linear-gradient(90deg, transparent, transparent) ; }
.side-big { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.side-big > div { padding: 16px 18px; }
.side-big > div + div { border-left: 1px solid var(--line); }
.side-big small { display: block; color: var(--muted); font-size: 12.5px; }
.side-big b { font: 500 22px var(--sans); font-variant-numeric: tabular-nums; }
.imp { display: grid; grid-template-columns: 120px 1fr 54px; gap: 10px; align-items: center; font-size: 12.5px; margin: 7px 0; color: var(--text-2); }
.gauge { font: 500 48px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hl { padding: 12px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; }
.hl a { color: var(--text); font-weight: 500; } .hl a:hover { color: var(--orange); }
.hl .m { font-size: 12px; color: var(--muted); grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select, input { height: 36px; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 0 10px; font: 13px var(--sans); }
select:focus, input:focus { outline: none; border-color: var(--orange); }
select option { background: var(--card-2); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

.modal { position: fixed; inset: 0; background: rgba(8, 8, 9, .78); display: grid; place-items: center; z-index: 80; }
.modal[hidden] { display: none; }
.mbox { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; width: min(420px, 92vw); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.mbox h3 { margin: 0 0 8px; }
.mbox .row { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--card-2); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 10px; z-index: 90; font-size: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.foot { position: relative; z-index: 1; max-width: 1560px; margin: 0 auto; padding: 22px 28px 40px; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; }
.foot div:first-child { display: flex; align-items: center; gap: 7px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.banner svg { color: var(--orange); margin-top: 2px; }
.banner .av { width: 38px; height: 38px; }
.ctrl { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; }
details[open] summary::after { content: " -"; }
@media (max-width: 1340px) {
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero > div:nth-child(3n) { border-right: 0; }
  .hero > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .main-side, .g-low, .g-tr { grid-template-columns: minmax(0, 1fr); }
  .hero.h4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.h4 > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero.h4 > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; overflow: visible;
    background: rgba(10, 8, 6, .97); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
  .links button { padding: 12px; font-size: 15px; }
  .ibtn.menu { display: grid; }
}
@media (max-width: 1100px) {
  .g-bt { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { padding: 0 14px; gap: 12px; }
  .nav-eq { display: none; }
  .logo img.logo-full { height: 32px; }
  main { padding: 14px 12px 30px; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero > div { padding: 14px 16px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .hero > div:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .hero b { font-size: 22px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .chart { height: 340px; }
  .ch { padding: 12px 14px; }
  .cb { padding: 4px 14px 14px; }
  th, td { padding: 9px 10px; }
  .foot { padding: 18px 14px 30px; }
  .imp { grid-template-columns: 100px minmax(0, 1fr) 46px; }
  .ev { grid-template-columns: 54px minmax(0, 1fr); padding: 9px 14px; }
  .srow, .cal, .wr, .tl, .filt { padding-left: 14px; padding-right: 14px; }
  .tl { grid-template-columns: 58px minmax(0, 1fr); }
  .po-f, .po-dots { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dcard:hover { transform: none; }
}
