/* adaptivealpha.ai: one dark theme, tokens on :root */
:root {
  --bg: #04070d;
  --bg2: #070c16;
  --panel: rgba(13, 20, 34, .72);
  --panel-solid: #0b1220;
  --line: rgba(148, 163, 184, .12);
  --line2: rgba(148, 163, 184, .22);
  --text: #e6edf7;
  --muted: #8a97ad;
  --faint: #556179;
  --accent: #5cc8ff;
  --accent2: #22d3a6;
  --pos: #22d3a6;
  --neg: #fb7185;
  --warn: #f59e0b;
  --bt: #94a3b8;
  --r: 14px;
  --nav-h: 58px;
  --f-ui: 'Inter', system-ui, sans-serif;
  --f-head: 'Space Grotesk', 'Inter', sans-serif;
  --f-num: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--f-ui); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(92, 200, 255, .09), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 166, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body.is-admin {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245, 158, 11, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(92, 200, 255, .05), transparent 60%),
    var(--bg);
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- brand */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; position: relative; flex: none;
  background: conic-gradient(from 210deg, #5cc8ff, #22d3a6, #3b82f6, #5cc8ff);
  box-shadow: 0 0 18px rgba(92, 200, 255, .45);
}
.brand-mark::after { content: ''; position: absolute; inset: 5px; border-radius: 4px; background: var(--bg); }
.brand-mark.big { width: 46px; height: 46px; border-radius: 13px; }
.brand-mark.big::after { inset: 10px; border-radius: 7px; }
.brand-word { font: 500 17px var(--f-head); letter-spacing: .01em; }
.brand-word b { font-weight: 700; background: linear-gradient(90deg, #5cc8ff, #22d3a6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 22px;
  background: rgba(4, 7, 13, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.menu { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.menu a {
  color: var(--muted); padding: 8px 13px; border-radius: 9px; white-space: nowrap; cursor: pointer;
  font-weight: 500; transition: color .2s, background .2s; position: relative;
}
.menu a:hover { color: var(--text); background: rgba(148, 163, 184, .07); }
.menu a.on { color: var(--text); background: rgba(92, 200, 255, .1); }
.is-admin .menu a.on { background: rgba(245, 158, 11, .12); }
.menu a.soon { opacity: .45; }
.menu a.soon::after { content: 'next'; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; color: var(--faint); }
.who { display: flex; align-items: center; gap: 14px; color: var(--muted); white-space: nowrap; }
.who-out { color: var(--muted); font-size: 12.5px; }
.tier-switch { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); font-weight: 500; font-size: 13px; }
.tier-switch.admin { border-color: rgba(245, 158, 11, .5); color: #fbbf24; box-shadow: 0 0 14px rgba(245, 158, 11, .15) inset; }

/* ---------------------------------------------------------------- loading window */
.loading {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(4, 7, 13, .82); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.loading.show { opacity: 1; }
.spinner { width: 64px; height: 64px; position: relative; }
.spinner::before, .spinner::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(92, 200, 255, .15) 22%, var(--accent) 50%, rgba(92, 200, 255, .15) 78%, transparent);
  filter: blur(1.6px); animation: spin 1.15s cubic-bezier(.6, .1, .4, .9) infinite;
}
.spinner::after { width: 40px; background: linear-gradient(90deg, transparent, rgba(34, 211, 166, .2) 25%, var(--accent2) 50%, rgba(34, 211, 166, .2) 75%, transparent); animation-duration: 1.7s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-t { color: var(--muted); font: 500 13px var(--f-ui); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .spinner::before, .spinner::after { animation: none; } }

/* ---------------------------------------------------------------- layout */
.view { max-width: 2000px; margin: 0 auto; padding: 22px clamp(16px, 2vw, 32px) 80px; }
.page { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 18px; flex-wrap: wrap; }
.head h1 { font-size: 30px; }
.head .sub { color: var(--muted); margin-top: 4px; max-width: 760px; }
.eyebrow { font: 600 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.is-admin .eyebrow { color: #fbbf24; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; position: relative; backdrop-filter: blur(8px);
}
.card h2 { font-size: 17px; margin-bottom: 2px; }
.card .cap { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt { margin-top: 16px; }
@media (max-width: 980px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- stats ribbon */
.ribbon { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ribbon > div { background: var(--panel-solid); padding: 14px 16px; }
.ribbon .k { color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.ribbon .v { font: 500 24px var(--f-num); margin-top: 2px; }
.ribbon .v.big { font-size: 28px; background: linear-gradient(90deg, #5cc8ff, #22d3a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 980px) { .ribbon { grid-template-columns: repeat(3, 1fr); } .ribbon .v { font-size: 19px; } }

/* ---------------------------------------------------------------- controls */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(148, 163, 184, .04); color: var(--muted);
  cursor: pointer; font: 500 13px var(--f-ui); transition: all .2s; user-select: none;
}
.pill:hover { color: var(--text); border-color: rgba(148, 163, 184, .4); }
.pill.on { color: var(--text); border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.pill.dash .dot { background: transparent; border: 1.5px dotted var(--c); box-shadow: none; }
.pill.big { padding: 9px 16px; font-size: 13.5px; }
.pill.action { border-color: rgba(92, 200, 255, .55); color: var(--text); background: linear-gradient(90deg, rgba(92, 200, 255, .14), rgba(34, 211, 166, .1)); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); padding: 6px 11px; cursor: pointer; font: 500 12.5px var(--f-ui); }
.seg button.on { background: rgba(92, 200, 255, .14); color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2); color: var(--text); background: none; cursor: pointer; font: 600 14px var(--f-ui); }
.btn.primary { background: linear-gradient(90deg, #2aa8e6, #17b391); border: 0; color: #031018; }
.btn.wide { width: 100%; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.axis text { fill: var(--faint); font: 11px var(--f-num); }
.axis path, .axis line { stroke: var(--line); }
.gridline line { stroke: rgba(148, 163, 184, .07); }
.gridline path { display: none; }
.xhair { stroke: rgba(230, 237, 247, .25); stroke-dasharray: 3 3; }
.lbl { font: 600 11px var(--f-ui); }
.tip {
  position: fixed; z-index: 2000; pointer-events: none; min-width: 170px;
  background: rgba(7, 12, 22, .94); border: 1px solid var(--line2); border-radius: 10px;
  padding: 9px 11px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.tip .t { color: var(--muted); font: 11px var(--f-num); margin-bottom: 5px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .r .n { display: flex; align-items: center; gap: 7px; }
.tip .r .n i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tip .r b { font: 500 12px var(--f-num); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.note { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.delta { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; padding: 10px 13px; background: rgba(7, 12, 22, .6); min-width: 210px; flex: 1; animation: rise .35s ease both; }
.delta .t { font-size: 12px; color: var(--muted); }
.delta .v { font: 500 14px var(--f-num); margin-top: 3px; }

/* ---------------------------------------------------------------- sleeve cards */
.scard { cursor: pointer; transition: transform .2s, border-color .2s; overflow: hidden; }
.scard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.scard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent); }
.scard .nm { display: flex; justify-content: space-between; align-items: baseline; }
.scard .nm h3 { font-size: 16px; }
.scard .tag { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); padding: 2px 7px; border-radius: 999px; }
.scard .tag.live { color: var(--pos); border-color: rgba(34, 211, 166, .45); }
.scard p { color: var(--muted); font-size: 12.5px; margin: 6px 0 8px; min-height: 36px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.kv div { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kv b { display: block; font: 500 15px var(--f-num); color: var(--text); text-transform: none; letter-spacing: 0; }

/* ---------------------------------------------------------------- drawer */
.drawer-bg { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(2, 4, 8, .55); z-index: 850; opacity: 0; transition: opacity .25s; }
.drawer-bg.show { opacity: 1; }
.drawer { position: fixed; top: calc(var(--nav-h) + 14px); right: 14px; bottom: 14px; width: min(980px, calc(100vw - 28px)); z-index: 860; overflow-y: auto; transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); background: rgba(8, 13, 24, .97); }
.drawer.show { transform: none; }
.drawer .x { position: absolute; top: 12px; right: 14px; cursor: pointer; color: var(--muted); font-size: 20px; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { position: sticky; top: 0; background: #0a1120; color: var(--muted); font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line2); cursor: pointer; white-space: nowrap; user-select: none; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:hover td { background: rgba(92, 200, 255, .04); }
.tbl td.sym { font: 500 12.5px var(--f-num); color: var(--text); }
.search { background: rgba(148, 163, 184, .05); border: 1px solid var(--line2); color: var(--text); border-radius: 9px; padding: 7px 11px; font: 13px var(--f-ui); min-width: 220px; }

/* ---------------------------------------------------------------- admin */
.statusline { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.badge { padding: 3px 9px; border-radius: 999px; font: 600 11px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.badge.ok { background: rgba(34, 211, 166, .12); color: var(--pos); }
.badge.stale { background: rgba(251, 113, 133, .14); color: var(--neg); }
.badge.asof { background: rgba(245, 158, 11, .12); color: #fbbf24; font-family: var(--f-num); letter-spacing: 0; text-transform: none; font-size: 13px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.acc { padding: 12px 14px; }
.acc .a { font: 500 12px var(--f-num); color: var(--muted); }
.acc .l { font-size: 12px; color: var(--muted); min-height: 32px; }
.acc .e { font: 500 19px var(--f-num); margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.donuts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .donuts { grid-template-columns: 1fr; } }
.donut { display: flex; flex-direction: column; align-items: center; }
.donut .center-k { font: 500 12px var(--f-ui); fill: var(--muted); }
.donut .center-v { font: 600 24px var(--f-num); fill: var(--text); }
.donut .center-s { font: 500 12px var(--f-num); fill: var(--muted); }
.soon-page { text-align: center; padding: 80px 20px; color: var(--muted); }
.soon-page h2 { color: var(--text); margin-bottom: 8px; }

/* ---------------------------------------------------------------- gate */
body.gate { display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
#gate-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.gate-card { position: relative; z-index: 1; width: min(460px, 100%); background: rgba(9, 14, 26, .82); border: 1px solid var(--line2); border-radius: 18px; padding: 30px 30px 22px; backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.gate-card h1 { font-size: 26px; margin: 22px 0 8px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.gate-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.gate-form input:not([type=checkbox]) { width: 100%; min-width: 0; box-sizing: border-box; background: rgba(148, 163, 184, .06); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; color: var(--text); font: 14px var(--f-ui); }
.gate-form input:focus { outline: none; border-color: var(--accent); }
.gate-form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.gate-form .alt { font-size: 13px; color: var(--muted); text-align: center; margin: 2px 0 0; }
.gate-form .alt a { color: var(--accent); }
.gate-form .check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); font-size: 13px; }
.gate-form .check input { margin-top: 3px; accent-color: var(--accent2); }
.form-err { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35); color: #fecdd3; border-radius: 9px; padding: 9px 12px; margin-top: 12px; font-size: 13px; }
.fine { color: var(--faint); font-size: 11px; text-align: center; margin: 4px 0 0; }

@media (max-width: 720px) {
  .nav { gap: 12px; padding: 0 12px; }
  .brand-word, .who-name { display: none; }
  .view { padding: 18px 16px 60px; }
  .head h1 { font-size: 24px; }
}
.mnote p { font-size: 15px; line-height: 1.6; margin-top: 6px; max-width: 900px; }
.mnote.held { border-style: dashed; opacity: .85; }

/* ---- strategy tree (Main) ---- */
.tree-nav { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tree-nav .crumb { color: var(--muted); cursor: pointer; }
.tree-nav a.crumb:hover { color: var(--text); }
.tree-nav .crumb.on { color: var(--text); font-weight: 600; cursor: default; }
.tree-nav .sep { opacity: .5; }
.btn.ghost { padding: 6px 12px; font-size: 13px; font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent); }
.tree-nav .back { margin-right: 6px; }
.head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.head .sub { transition: opacity .3s; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2);
  cursor: pointer; color: var(--muted); font-size: 12.5px; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--c); }
.chip.on { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.chip i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.chip i.dash { height: 4px; border-radius: 0; background: radial-gradient(circle, var(--c) 1.6px, transparent 1.9px) 0 50% / 6px 100% repeat-x; }
.chip b { color: var(--c); }
.legend .key { gap: 6px; margin-left: 6px; }
.legend .key i { width: 14px; height: 2px; background: #94a3b8; border-radius: 1px; }
.legend .key i.dash { height: 4px; border-radius: 0; background: radial-gradient(circle, #94a3b8 1.6px, transparent 1.9px) 0 50% / 6px 100% repeat-x; }
.hint { margin-top: 8px; font-size: 12px; color: var(--accent); opacity: .85; }
.tbl tr.on td { background: rgba(92, 200, 255, .08); }
.tbl tbody tr { cursor: pointer; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.tbl.mo td, .tbl.mo th { padding: 5px 6px; text-align: center; font-size: 12px; }
.tbl.mo td.bt { outline: 1.5px dotted rgba(148, 163, 184, .35); outline-offset: -3px; }
@media (max-width: 720px) { .head-r { align-items: flex-start; } }

/* stats table: fits the page, no inner scroll window (owner 2026-10-26) */
.tbl-wrap.fit { overflow: visible; max-height: none; }
table.tbl.stats th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
table.tbl.stats th, table.tbl.stats td { padding-left: 8px; padding-right: 8px; }
table.tbl.stats td:first-child { white-space: normal; min-width: 150px; }
@media (max-width: 1100px) { .tbl-wrap.fit { overflow-x: auto; } }

/* robustness: two-test explainer + backtest tag */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.explain > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.explain b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }
@media (max-width: 720px) { .explain { grid-template-columns: 1fr; } }
h2 .tag.bt, h3 .tag.bt { font: 600 10px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; border: 1px dashed rgba(245,158,11,.6); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }

.gate-form input.ro { color: var(--muted); background: transparent; border-style: dashed; }

/* sleeve on/off box inside a legend chip */
.chip b.vis { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--c); display: inline-block; flex: none; }
.chip b.vis.on { background: var(--c); box-shadow: inset 0 0 0 2px #0b1220; }
.chip.off { opacity: .55; }

/* R&D: research path + ML set-up (owner's diagrams, 2026-10-26) */
.rd-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.rd-step { position: relative; animation: rise .45s ease both; }
.rd-node { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rd-node span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 13px var(--f-num); color: #031018; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.rd-node::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c), transparent); opacity: .6; }
.rd-step:last-child .rd-node::after { display: none; }
.rd-body h3 { font-size: 15px; margin-bottom: 4px; }
.rd-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rd-stop { margin-top: 10px; border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .07); border-radius: 9px; padding: 7px 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rd-stop b { display: inline-block; margin-right: 6px; font: 700 10px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #ef4444; border-radius: 999px; padding: 2px 7px; }
.rd-link { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.rd-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rd-keys > div { border-left: 3px solid var(--c); padding: 4px 12px; font-size: 13px; color: var(--muted); }
.rd-keys b { display: block; color: var(--c); font-size: 14px; margin-bottom: 2px; }
.rd-h3 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.rd-phase { border-top: 3px solid var(--c); }
.rd-tagline { font: 600 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.rd-phase h3 { font-size: 14.5px; margin: 12px 0 3px; }
.rd-phase p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 1300px) { .rd-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rd-path, .rd-keys { grid-template-columns: 1fr; } }
.rd-p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 820px; }
.rd-scale { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rd-scale > div { border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--muted); }
.rd-scale b { display: block; color: var(--text); font-size: 13.5px; }
.rd-scale i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent2), var(--accent)); min-width: 20px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rd-chips span { border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; }
.rd-ens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: center; }
.rd-colh { font: 600 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.rd-scr { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.45; }
.rd-scr:last-child { border-bottom: 0; }
.rd-scr span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--f-num); color: var(--accent); border: 1px solid rgba(92, 200, 255, .5); }
.rd-scr b { display: block; color: var(--text); font-size: 13.5px; }
.rd-loop { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.rd-loop > div { border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-left: 3px solid var(--c); border-radius: 10px; padding: 9px 14px; background: color-mix(in srgb, var(--c) 6%, transparent); animation: rise .45s ease both; }
.rd-loop b { color: var(--c); margin-right: 8px; }
.rd-loop span { color: var(--muted); font-size: 13px; }
.rd-loop em { font-style: normal; color: var(--faint); text-align: center; transform: rotate(90deg); line-height: 1; }
@media (max-width: 980px) { .rd-ens { grid-template-columns: 1fr; } }

/* logo (owner 2026-10-27): mark in the nav, loading window and login; a blurred, faint mark behind every page */
.brand-logo { height: 26px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(92, 200, 255, .35)); }
.load-logo { width: 96px; height: auto; animation: logo-pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(92, 200, 255, .45)); }
@keyframes logo-pulse { 50% { transform: scale(1.06); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .load-logo { animation: none; } }
.gate-logo { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 auto 4px; }
body { background-image: url('../img/aa_mark_bg.png'), radial-gradient(1200px 600px at 75% -10%, rgba(92, 200, 255, .09), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 166, .05), transparent 60%); background-repeat: no-repeat; background-position: 50% 45%, 0 0, 0 0; background-size: min(80vw, 1150px) auto, auto, auto; background-attachment: fixed; }
body.gate { background-position: 50% 50%, 0 0, 0 0; background-size: min(110vw, 1100px) auto, auto, auto; }
body.is-admin { background-image: url('../img/aa_mark_bg.png'), radial-gradient(1200px 600px at 80% -10%, rgba(245, 158, 11, .07), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(92, 200, 255, .05), transparent 60%); }

/* brand colour from the logo (owner 2026-10-27): cyan → blue → violet; text tint readable on the dark theme */
:root { --brand-a: #00b8ff; --brand-b: #2b6bff; --brand-c: #7046ff; --brand-text: #7d8dff;
  --brand-grad: linear-gradient(90deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c)); }
.brand-word b, .ribbon .v.big { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow, .rd-colh { color: var(--brand-text); }
.menu a.on { background: linear-gradient(90deg, rgba(0, 184, 255, .13), rgba(112, 70, 255, .16)); box-shadow: inset 0 -2px 0 rgba(112, 70, 255, .7); }
.btn.primary { background: var(--brand-grad); color: #fff; }
.card > h2::before { content: ''; display: inline-block; width: 4px; height: .9em; margin-right: 9px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-a), var(--brand-c)); vertical-align: -1px; }
.head h1 { background: linear-gradient(90deg, var(--text) 55%, #b9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-scr span { color: var(--brand-text); border-color: rgba(112, 70, 255, .55); }
.nav { box-shadow: inset 0 -1px 0 rgba(112, 70, 255, .18); }
.is-admin .menu a.on { box-shadow: inset 0 -2px 0 rgba(245, 158, 11, .7); }
.brand-lockup { height: 38px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(43, 107, 255, .3)); }
@media (max-width: 720px) { .brand-lockup { height: 26px; } }

/* smooth scrolling (owner 2026-10-27): the background lives on its own fixed, composited layer instead of
   background-attachment: fixed (repainted every scroll step), and cards no longer blur what is behind them */
html { background: var(--bg); }
body, body.is-admin, body.gate { background: transparent; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background-color: var(--bg);
  background-image: url('../img/aa_mark_bg.png'), radial-gradient(1200px 600px at 75% -10%, rgba(92, 200, 255, .09), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 166, .05), transparent 60%);
  background-repeat: no-repeat; background-position: 50% 45%, 0 0, 0 0; background-size: min(80vw, 1150px) auto, auto, auto;
}
body.is-admin::before { background-image: url('../img/aa_mark_bg.png'), radial-gradient(1200px 600px at 80% -10%, rgba(245, 158, 11, .07), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(92, 200, 255, .05), transparent 60%); }
body.gate::before { background-position: 50% 50%, 0 0, 0 0; background-size: min(110vw, 1100px) auto, auto, auto; }
.card { backdrop-filter: none; background: rgba(13, 20, 34, .78); }
.nav { backdrop-filter: blur(10px); }
.rd-nest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rd-nest > div { border: 1px solid var(--line); border-left: 3px solid var(--brand-b); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rd-nest b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }
@media (max-width: 720px) { .rd-nest { grid-template-columns: 1fr; } }

/* R&D: effort, feature universe, modelling examples, labels, validation (owner notes 2026-10-27) */
.rd-effbar { display: flex; gap: 4px; margin: 14px 0 16px; }
.rd-effbar > div { min-width: 0; border-radius: 9px; padding: 10px 12px; background: color-mix(in srgb, var(--c) 16%, transparent); border-top: 3px solid var(--c); animation: rise .45s ease both; }
.rd-effbar b { display: block; font: 600 22px var(--f-num); color: var(--c); }
.rd-effbar span { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rd-effgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1300px) { .rd-effgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.rd-effgrid > div { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; padding: 9px 12px; }
.rd-effh { display: flex; justify-content: space-between; font: 600 10.5px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.rd-effh b { font: 600 12px var(--f-num); }
.rd-effgrid h3, .rd-earn b { font-size: 14px; margin: 4px 0 3px; display: block; color: var(--text); }
.rd-effgrid p, .rd-idea p, .rd-labels p, .rd-earn p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rd-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.rd-group { border-top: 3px solid var(--c); padding-top: 8px; }
.rd-grouph { font: 600 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.rd-idea { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rd-idea:last-child { border-bottom: 0; }
.rd-idea b { font-size: 13.5px; color: var(--text); }
.rd-mxwrap { overflow-x: auto; margin-top: 14px; }
.rd-mx { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12.5px; min-width: 760px; }
.rd-mx th { font: 600 10.5px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--muted)); text-align: center; padding: 4px; vertical-align: bottom; }
.rd-mx th:first-child { text-align: left; }
.rd-mx td { text-align: center; padding: 6px 4px; border-radius: 6px; font-family: var(--f-num); }
.rd-mx td[style] { background: color-mix(in srgb, var(--c) var(--a), transparent); color: #fff; }
.rd-mx td em { font-style: normal; margin-left: 4px; }
.rd-mx td:first-child { text-align: left; font-family: var(--f-ui); color: var(--text); white-space: nowrap; padding-left: 10px; border-left: 3px solid transparent; }
.rd-mx tbody tr { cursor: pointer; }
.rd-mx tbody tr:hover td:first-child { color: var(--brand-text); }
.rd-mx tbody tr.on td:first-child { border-left-color: var(--brand-b); color: var(--brand-text); background: rgba(43, 107, 255, .1); }
.rd-mx .nil { color: var(--faint); }
.rd-mx .rd-ctx { text-align: left; color: var(--muted); white-space: nowrap; }
.rd-ctx i { display: inline-block; height: 8px; border-radius: 4px; background: var(--brand-grad); margin-right: 6px; vertical-align: middle; }
.rd-mxkey { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.rd-prof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; }
.rd-prof > .cap { grid-column: 1 / -1; margin: 0; }
.rd-profh h3 { font-size: 16px; margin: 0 0 6px; color: var(--brand-text); }
.rd-profh p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.rd-sparks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rd-sparkh { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.rd-sparkh i { width: 10px; height: 10px; border-radius: 3px; }
.rd-sparkh span { margin-left: auto; color: var(--muted); font-size: 12px; }
.rd-find { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rd-find > div { border-left: 3px solid var(--brand-c); padding: 4px 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rd-find b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }
.rd-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rd-labels > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rd-labels span { font: 600 12px var(--f-num); color: var(--brand-text); margin-right: 8px; }
.rd-labels b { font-size: 13.5px; color: var(--text); }
.rd-labels p { margin-top: 4px; }
.rd-earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rd-earn > div { border-left: 3px solid var(--pos); padding: 4px 12px; }
@media (max-width: 1100px) { .rd-groups, .rd-find { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-labels, .rd-earn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rd-groups, .rd-find, .rd-labels, .rd-earn, .rd-prof, .rd-sparks { grid-template-columns: 1fr; }
  .rd-effbar { flex-direction: column; } .rd-effbar > div { flex: none !important; } }

.rd-lab { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; }
.rd-lab > em { font-style: normal; align-self: center; color: var(--faint); font-size: 20px; }
.rd-labstep { flex: 1; min-width: 0; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-top: 3px solid var(--c); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--c) 6%, transparent); animation: rise .45s ease both; }
.rd-labn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--f-num); color: #031018; background: var(--c); }
.rd-labstep h3 { font-size: 17px; margin: 8px 0 2px; color: var(--c); }
.rd-labq { font-size: 13px; color: var(--text); font-style: italic; margin-bottom: 8px; }
.rd-labstep ul { list-style: none; margin: 0; padding: 0; }
.rd-labstep li { font-size: 13px; color: var(--muted); padding: 4px 0 4px 18px; position: relative; cursor: help; }
.rd-labstep li::before { content: '✓'; position: absolute; left: 0; color: var(--c); font-weight: 700; }
.rd-labstep li:hover { color: var(--text); }
.rd-seam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rd-seam p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 980px) { .rd-lab { flex-direction: column; } .rd-lab > em { transform: rotate(90deg); } .rd-seam { grid-template-columns: 1fr; } }

/* phone: the menu gets its own scrollable row under the logo (review 2026-10-27) */
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; height: auto; padding: 8px 12px 0; row-gap: 4px; }
  .nav .brand { order: 1; }
  .nav .who { order: 2; margin-left: auto; gap: 10px; }
  .nav .menu { order: 3; flex: 0 0 100%; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .menu a { padding: 7px 10px; }
  .tier-switch { padding: 4px 9px; font-size: 12px; }
}
.grid > * { min-width: 0; }
.ribbon .kt { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line2); border-radius: 999px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 720px) { :root { --nav-h: 96px; } }
.pgrp { font: 600 10px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 2px 0 8px; align-self: center; }
.pgrp:first-child { margin-left: 0; }
.namemap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: stretch; margin-top: 10px; }
.namemap .nm-root { flex: 0 0 100%; font: 600 15px var(--f-head); color: var(--text); }
.namemap .nm-root.sep { border-top: 1px solid var(--line); padding-top: 10px; }
.namemap em { font: 400 12.5px var(--f-ui); color: var(--muted); font-style: normal; margin-left: 8px; }
.namemap .nm-sys { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.namemap .nm-sys > b { color: var(--c); font-size: 14px; display: block; margin-bottom: 6px; }
.namemap .nm-sys span { display: inline-block; font-size: 12.5px; color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px; padding: 2px 9px; margin: 0 5px 5px 0; }
.namemap .nm-test { font-size: 12px; color: var(--muted); margin-top: 2px; }
.namemap .nm-test span { opacity: .75; }

.rd-mx th.rd-ctxh, .rd-mx td.rd-ctx { border-left: 2px dashed var(--line2); padding-left: 12px; }
.rd-mx th.rd-ctxh small { display: block; font: 400 10px var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--faint); margin-top: 2px; }
/* portfolio tool */
.pf-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.pf-top .k { font: 600 10.5px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pf-cap .v { font: 600 26px var(--f-num); color: var(--brand-text); margin-bottom: 6px; }
.pf-cap input, .pf-w input { width: 100%; accent-color: var(--brand-b); }
.pf-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
#presets { flex-wrap: wrap; gap: 6px; }
.pf-tbl td, .pf-tbl th { white-space: nowrap; }
.pf-tbl .pf-w { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.pf-tbl .pf-w input { flex: 1; }
.pf-tbl .pf-w .num { width: 38px; text-align: right; }
.pf-tbl tr.pf-g td { font: 600 10.5px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); padding-top: 14px; background: none; }
.pf-tbl tr.closed td { opacity: .45; }
.pf-note { font-size: 12px; color: var(--muted); }
.pf-note.warn { color: var(--warn); }
.pf-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pf-sum b { color: var(--text); font-family: var(--f-num); }
.pf-err { color: var(--neg); flex: 0 0 100%; }
.pf-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
@media (max-width: 980px) { .pf-top { grid-template-columns: 1fr; } }
.pf-tbl tr.pf-g .pf-kind { margin-left: 10px; font: 400 11px var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pf-tbl tr.pf-g .pf-gnote { margin-top: 4px; max-width: 70ch; font: 400 12px/1.45 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pf-tbl tr.pf-sub td { font: 500 11px var(--f-ui); color: var(--muted); padding: 8px 0 2px 12px; background: none; }
.namemap .nm-sys > b em { font: 400 11.5px var(--f-ui); color: var(--muted); margin-left: 6px; font-style: normal; }
#st tr.st-in { animation: st-in .5s ease both; }
@keyframes st-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #st tr.st-in { animation: none; } }

/* intraday systems: run on the same capital (owner 2026-10-28) */
.head .ttl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.itag { font: 600 11px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  color: #fbbf24; border: 1px solid color-mix(in srgb, #fbbf24 45%, transparent); background: color-mix(in srgb, #fbbf24 10%, transparent); white-space: nowrap; cursor: help; }

/* footnote right under a table (owner 2026-10-28: the stressed * is explained where it is seen) */
.card .foot { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.card .foot:empty { display: none; }
.card .foot b { color: var(--text); }
@media (max-width: 1100px) { .rd-nest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rd-nest { grid-template-columns: 1fr; } }
.rd-group .rd-idea b { font-weight: 500; }
/* donut tooltip: symbol + company first, bold and larger (owner 2026-10-28) */
.tip .tip-h { font: 700 16px var(--f-num); color: var(--text); }
.tip .tip-n { font: 600 13px var(--f-ui); color: var(--text); margin-bottom: 6px; max-width: 260px; }

/* ---------------------------------------------------------------- admin · Today / Health */
.ad-light { flex-shrink: 0; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #64748b; vertical-align: middle; }
.ad-light.ok { background: #22d3a6; box-shadow: 0 0 6px rgba(34, 211, 166, .6); }
.ad-light.late { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, .6); }
.ad-light.stale { background: #ff4d4d; box-shadow: 0 0 6px rgba(255, 77, 77, .7); }
.ad-light.info { background: #5cc8ff; }
.ad-acc { font-size: 11.5px; margin-top: 2px; }
.ad-wrap { max-height: none; }
.tbl tr.ad-g td { background: #0a1120; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; cursor: default; }
.ad-since { font-size: 11px; margin-top: 1px; }
.ad-heat { display: flex; gap: 2px; }
.ad-heat i { width: 7px; height: 18px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .06); }
.ad-sec { margin: 12px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ad-chk { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.ad-chk .muted { font-size: 11.5px; }
.ad-alert { border-color: rgba(255, 77, 77, .45); }
.tbl.ad-flat tbody tr { cursor: default; }
.ad-day { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.ad-day b { color: var(--text); font-weight: 600; }
.ad-other { cursor: pointer; }
.ad-other u { text-decoration: none; color: #5cc8ff; }
tr.muted td { color: var(--muted); }

/* admin: amber values (a reading to watch) */
.tbl .warn, .ad-acc .warn { color: var(--warn); }
/* admin · fund: sub-client rows, scrolling booking list */
.tbl tr.ad-sub td:first-child { padding-left: 22px; }
.ad-tx { max-height: 640px; overflow-y: auto; }
/* admin · trade search controls */
.is-admin .bar select, .is-admin .bar input { background: rgba(15, 23, 42, .8); color: var(--text); border: 1px solid var(--line2);
  border-radius: 8px; padding: 6px 9px; font: 500 12.5px var(--f-ui); }
/* line-chart key (lineChart opts.legend) */
.lc-legend { margin: 0 0 8px; }
.lc-legend .key { margin-left: 0; }
.lc-legend .key i { height: 3px; }
/* owner 2026-11-01: what a sleeve does, under the results table */
.about p, .about li { color: var(--text); font-size: 14px; line-height: 1.6; max-width: 980px; }
.about p { margin: 8px 0 0; }
.about ul { margin: 8px 0 0; padding-left: 20px; }
.about li { margin: 6px 0; }
.about li b { color: var(--text); }
.about h2 + p, .about h2 + ul { margin-top: 10px; }
/* owner 2026-11-01: a system name in the statistics table opens it, like a click on its line */
#st td.st-name.opens { cursor: pointer; }
#st td.st-name.opens:hover { color: var(--accent, #5eead4); text-decoration: underline; text-underline-offset: 3px; }
#st .st-go { opacity: .55; font-size: .9em; }

/* owner 2026-11-04: Auctions · Month by month: the chart first, the table in a short scroll box (its header stays in view: .tbl th is sticky) */
.ad-mtab { max-height: 340px; overflow: auto; }

/* R&D: stacking models (owner 2026-11-20, revised 2026-11-21: fan of outcomes, no model names) */
.sk { margin-top: 12px; }
.sk-layers { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 12px 0 16px; }
.sk-l { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; font-size: 11px; color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, .25); cursor: pointer; opacity: .35; transition: opacity .35s, background .35s, border-color .35s; }
.sk-l b { font: 600 12.5px var(--f-ui); color: var(--muted); }
.sk-l.on { opacity: 1; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-top: 3px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 85%); }
.sk-l.on b { color: var(--c); }
.sk-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.sk-ctl .seg button { min-width: 28px; padding: 5px 7px; }
.sk-play { background: none; border: 1px solid var(--line2, var(--line)); color: var(--text); border-radius: 8px; padding: 5px 10px; cursor: pointer; font: 500 12px var(--f-ui); }
.sk-ch { font: 600 13px var(--f-head); color: var(--text); margin-bottom: 4px; }
.sk-ch em { display: block; font: 400 11.5px var(--f-ui); color: var(--muted); font-style: normal; margin-top: 2px; min-height: 1.3em; }
.sk-right .tick text { fill: var(--muted); font-size: 10.5px; }
.sk-right .domain, .sk-right .tick line { stroke: rgba(148, 163, 184, .25); }
.sk-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sk-key i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sk-k1 { background: linear-gradient(90deg, rgba(92, 200, 255, .45), rgba(92, 200, 255, .18)); }
.sk-k2 { border: 1px dashed var(--muted); }
.sk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sk-t { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; transition: border-color .4s, background .4s; }
.sk-t span { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sk-t b { display: block; font: 600 22px var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }
.sk-t em { display: block; font: 400 11px var(--f-ui); font-style: normal; color: var(--muted); margin-top: 1px; }
.sk-t.good { border-color: rgba(34, 211, 166, .45); background: rgba(34, 211, 166, .06); }
.sk-t.good b { color: #22d3a6; }
.sk-t.dip b { color: #fbbf24; }
@media (max-width: 980px) { .sk-layers { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* admin Reports (owner 2026-11-21): a download page; summary tiles, one chart */
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rp-kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.rp-kpis span { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rp-kpis b { display: block; font: 600 19px var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rp-kpis em { display: block; font: 400 11px var(--f-ui); font-style: normal; color: var(--muted); }
.rp-kpis b.pos, .rp-sum td.pos { color: #22d3a6; } .rp-kpis b.neg, .rp-sum td.neg { color: #ff6b6b; }
.rp-sum td, .rp-sum th { font-size: 13px; }
.rp-mon td, .rp-mon th { font-size: 11.5px; padding: 4px 5px; }
.rp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.rp-sum td.pos, .rp-mon b.pos { color: #22d3a6; } .rp-sum td.neg, .rp-mon b.neg { color: #ff6b6b; }
.rp-one { display: block; width: 100%; max-width: 1100px; height: auto; margin: 4px auto 0; border-radius: 10px; border: 1px solid var(--line); }
.rp-btn { font: 500 12.5px var(--f-ui); color: #04070d; background: #5cc8ff; border-radius: 8px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.rp-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 24px; }
.rp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rp-row a, .rp-tbl a { color: #5cc8ff; text-decoration: none; white-space: nowrap; }
.rp-tbl { table-layout: fixed; width: 100%; }
.rp-tbl td { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.rp-tbl td:nth-child(1) { width: 24%; } .rp-tbl td:nth-child(2) { width: 30%; } .rp-tbl td:nth-child(3) { width: 18%; }
.rp-tbl td:nth-child(4) { width: 10%; } .rp-tbl td:nth-child(5) { width: 18%; }
.rp-int td b { color: #ff7a7a; }
@media (max-width: 720px) {
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-tbl td:nth-child(3), .rp-tbl td:nth-child(4) { display: none; }
  .rp-tbl td:nth-child(1) { width: 34%; } .rp-tbl td:nth-child(2) { width: 36%; } .rp-tbl td:nth-child(5) { width: 30%; }
}
