/* GSM Lab — light, calm, precise. The palette follows the trade journal (kötésnapló): teal up, red down, gold target,
   dark red stop, grey for what did not trade. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #f3f5f8; --panel: #ffffff; --panel-2: #f8fafc; --ink: #0f1b2d; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e7ee; --line-2: #eef2f6; --navy: #13233f; --navy-2: #1d3358; --navy-3: #2a4675;
  --teal: #13838a; --teal-2: #0f6d73; --teal-bg: #e5f3f3; --red: #c0392b; --red-bg: #fbeceb;
  --gold: #c9a227; --gold-2: #a8851a; --gold-bg: #fbf4dc; --stop: #9b1c1c; --green: #1e8e5a; --green-bg: #e6f5ee;
  --amber: #d97706; --amber-bg: #fdf2e0; --grey: #94a3b8; --grey-bg: #eef1f5; --blue: #2f6fdb; --blue-bg: #e8f0fd; --violet: #7c3aed; --violet-bg: #f1ebfe;
  --gc: #c9a227; --es: #2f6fdb; --jy: #8e44ad;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(15,27,45,.06), 0 1px 1px rgba(15,27,45,.04); --shadow-2: 0 10px 30px -12px rgba(15,27,45,.25), 0 2px 6px rgba(15,27,45,.06);
  --ease: cubic-bezier(.2,.8,.2,1);
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.45 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
.num, td.n, .kpi .v, .mono-num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; font-variant-ligatures: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.up { color: var(--teal); } .down { color: var(--red); } .pos { color: var(--green); } .neg { color: var(--red); } .goldc { color: var(--gold-2); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; } .sp { flex: 1 1 auto; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.tscroll { overflow-x: auto; }
.card select, .card input, .card textarea { max-width: 100%; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ header */
header.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, var(--navy) 0%, #172a4a 100%); color: #e8edf5;
  display: flex; align-items: center; gap: 18px; padding: 0 22px; height: 58px; box-shadow: 0 2px 12px rgba(10,20,40,.18); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 170px; cursor: pointer; white-space: nowrap; }
.brand .logo { width: 30px; height: 30px; }
.brand .t1 { font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff; }
.brand .t2 { font-size: 11px; color: #9fb0c9; margin-top: -2px; }
nav.tabs { display: flex; gap: 2px; height: 100%; }
nav.tabs a { display: flex; align-items: center; gap: 7px; padding: 0 13px; color: #b8c6dc; font-weight: 500; font-size: 13.5px; text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .15s, background .15s, border-color .2s; position: relative; }
nav.tabs a svg { width: 16px; height: 16px; opacity: .85; }
nav.tabs a:hover { color: #fff; background: rgba(255,255,255,.05); }
nav.tabs a.on { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.06); }
nav.tabs a .k { font-size: 10px; color: #7f91ad; margin-left: 2px; border: 1px solid #3a527a; border-radius: 4px; padding: 0 4px; line-height: 15px; }
header .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.clock { font-size: 12px; color: #c7d3e6; line-height: 1.2; text-align: right; white-space: nowrap; }
.clock b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hpill { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: #d9e2ef; cursor: pointer; transition: background .15s; white-space: nowrap; }
.hpill:hover { background: rgba(255,255,255,.13); }
/* narrower screens: the header keeps one line (shortcut numbers, subtitle, then the labels make room) */
@media (max-width: 1540px) { nav.tabs a .k { display: none; } nav.tabs a { padding: 0 11px; } header.top { gap: 14px; padding: 0 16px; } }
@media (max-width: 1400px) { .brand .t2 { display: none; } .brand { min-width: 0; } .hpill { padding: 5px 8px; } }
@media (max-width: 1300px) { #pillNT .ptxt { display: none; } }
@media (max-width: 1220px) { nav.tabs a .lbl { display: none; } nav.tabs a.on .lbl { display: inline; } }
@media (max-width: 1000px) { #pillData .ptxt { display: none; } .brand .t1 { display: none; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; }
.dot.ok { background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
.dot.warn { background: #fbbf24; } .dot.err { background: #f87171; } .dot.off { background: #64748b; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

main { max-width: 1480px; margin: 0 auto; padding: 22px 24px 60px; }
.page { display: none; animation: fadein .25s var(--ease); }
.page.on { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ptitle { display: flex; align-items: flex-end; gap: 14px; margin: 2px 0 16px; }
.ptitle .sub { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ cards, buttons, badges */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.card.click { cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.card.click:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #cfd8e3; }
.card h3 { margin-bottom: 10px; }
.card .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card .ch h3 { margin: 0; }
.sec { margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 13.5px Inter, sans-serif; cursor: pointer; transition: all .15s var(--ease); white-space: nowrap; user-select: none; }
.btn:hover { border-color: #c5cfdb; background: #f8fafc; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.dis { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy-2); box-shadow: 0 6px 16px -6px rgba(19,35,63,.55); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; } .btn.teal:hover { background: var(--teal-2); box-shadow: 0 6px 16px -6px rgba(19,131,138,.6); }
.btn.gold { background: linear-gradient(180deg, #d8b23a, #c29a1c); border-color: #b48f19; color: #241a00; font-weight: 600; }
.btn.gold:hover { box-shadow: 0 8px 20px -8px rgba(201,162,39,.8); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; } .btn.danger:hover { background: #a93226; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--grey-bg); }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.iconbtn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.iconbtn:hover { background: #f2f5f9; transform: translateY(-1px); }
.iconbtn svg { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.badge.lg { height: 34px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.badge.xl { height: 44px; padding: 0 22px; font-size: 18px; border-radius: 12px; letter-spacing: .04em; }
.b-long { background: var(--teal); color: #fff; } .b-short { background: var(--red); color: #fff; } .b-none { background: #b8c2cf; color: #fff; }
.b-win { background: var(--green); color: #fff; } .b-loss { background: var(--red); color: #fff; } .b-flat { background: var(--grey); color: #fff; }
.b-skip { background: var(--amber-bg); color: #9a5b04; border: 1px solid #f6d7a4; } .b-hyp { background: #e9edf2; color: #5b6b80; border: 1px dashed #b6c1ce; }
.b-sel { background: var(--teal-bg); color: var(--teal-2); border: 1px solid #b7dede; }
.b-soft { background: var(--grey-bg); color: var(--ink-2); } .b-gold { background: var(--gold-bg); color: #7a5f0f; border: 1px solid #efdca0; }
.b-blue { background: var(--blue-bg); color: #1f4fa8; } .b-violet { background: var(--violet-bg); color: #5b21b6; } .b-red { background: var(--red-bg); color: #8f1f15; }
.mk { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 11.5px; color: #fff; letter-spacing: .02em; }
.mk.GC { background: var(--gc); color: #2b2100; } .mk.ES { background: var(--es); } .mk.\36 J, .mk.J6 { background: var(--jy); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12.5px;
  cursor: pointer; user-select: none; transition: all .15s var(--ease); color: var(--ink-2); }
.chip:hover { border-color: #c4cfdc; transform: translateY(-1px); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .cnt { font-size: 11px; opacity: .75; }
.seg { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 30px; border-radius: 8px; font: 500 13px Inter, sans-serif; color: var(--ink-2); cursor: pointer; transition: all .15s; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,45,.15); font-weight: 600; }
input[type=text], input[type=date], input[type=number], input[type=password], select, textarea {
  height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 13.5px Inter, sans-serif; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 8px 10px; font-family: var(--mono); font-size: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8fb0e8; box-shadow: 0 0 0 3px rgba(47,111,219,.13); }
input[type=number] { width: 80px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; min-width: 0; }
.row > label.f { flex: 0 1 auto; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; user-select: none; }
.switch input { display: none; }
.switch .tr { width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; }
.switch .tr::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .tr { background: var(--teal); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }

/* tooltips */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: #0f1b2d; color: #fff;
  font: 500 12px/1.4 Inter, sans-serif; padding: 7px 10px; border-radius: 7px; white-space: pre-line; width: max-content; max-width: 320px; z-index: 100; pointer-events: none;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); animation: tipin .12s ease-out; text-align: left; letter-spacing: 0; text-transform: none; }
[data-tip].tip-r:hover::after { left: auto; right: 0; transform: none; }
[data-tip].tip-b:hover::after { bottom: auto; top: calc(100% + 8px); }
@keyframes tipin { from { opacity: 0; transform: translate(-50%, 3px); } }

/* ------------------------------------------------------------------ tables */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px;
  border-bottom: 1px solid var(--line); background: var(--panel-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.t td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t td.c, table.t th.c { text-align: center; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: #f5f8fc; }
table.t tbody tr.click { cursor: pointer; }
table.t tr.hl td { background: var(--gold-bg); }
table.t tr.sel td { background: #e8f0fd; }
table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.kv td:first-child { color: var(--ink-2); font-weight: 600; width: 40%; background: #f6f8fb; }
table.kv tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kpi .l { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.kpi.accent2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); }

/* ------------------------------------------------------------------ tonight */
.hero { background: radial-gradient(1200px 400px at 85% -40%, rgba(201,162,39,.20), transparent 60%), linear-gradient(135deg, #13233f 0%, #1d3a66 100%);
  color: #fff; border-radius: 16px; padding: 22px 26px; position: relative; overflow: hidden; box-shadow: var(--shadow-2); }
.hero .k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #a8bad6; font-weight: 600; }
.hero h1 { font-size: 28px; color: #fff; margin-top: 4px; }
.hero .lead { font-size: 15px; color: #d6e0ef; margin-top: 8px; max-width: 760px; }
.hero .bigpick { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.hero .pickcard { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 16px; }
.hero .pickcard .m { font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.hero .meta { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.hero .meta div { font-size: 12px; color: #a8bad6; } .hero .meta b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero .clocknote { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; max-width: 820px; padding: 10px 14px; border-radius: 12px;
  background: rgba(240,180,41,.16); border: 1px solid rgba(240,180,41,.55); color: #ffe7a8; font-size: 13.5px; line-height: 1.45; }
.hero .clocknote .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #f0b429; }
.hero .glyph { position: absolute; right: 24px; top: 18px; width: 120px; opacity: .08; pointer-events: none; }
.hero .glyph svg { width: 100%; height: auto; display: block; }
.lane { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: stretch; margin-top: 18px; }
@media (max-width: 1150px) { .lane { grid-template-columns: 1fr; } .lane .arrow { transform: rotate(90deg); height: 30px; } }
.lane .arrow { display: flex; align-items: center; justify-content: center; color: #b3bfce; }
.lane .arrow svg { width: 24px; height: 24px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; position: relative; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mcard.selected { border: 2px solid var(--teal); box-shadow: 0 0 0 4px rgba(19,131,138,.12), var(--shadow-2); }
.mcard.skipped { border-color: #f1d3a0; }
.mcard.no-trade { opacity: .96; }
.mcard .ribbon { padding: 7px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.mcard.selected .ribbon { background: var(--teal); color: #fff; }
.mcard.skipped .ribbon { background: var(--amber-bg); color: #9a5b04; }
.mcard.no-trade .ribbon, .mcard.not-reached .ribbon { background: var(--grey-bg); color: #5b6b80; }
.mcard.stale .ribbon { background: var(--red-bg); color: #8f1f15; }
.mcard.computing .ribbon, .mcard.waiting .ribbon { background: var(--blue-bg); color: #1f4fa8; }
.mcard.computing .ribbon .ic { animation: spin 1.2s linear infinite; }
.mcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mcard .mh { display: flex; align-items: center; gap: 10px; }
.mcard .mh .nm { font-weight: 700; font-size: 16px; } .mcard .mh .ct { font-size: 12px; color: var(--muted); }
.ticket { background: #f7f9fc; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ticket .k { color: var(--muted); } .ticket .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ticket .order { grid-column: 1 / -1; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.gauge { position: relative; height: 10px; border-radius: 6px; background: #e8edf3; overflow: visible; }
.gauge .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: width .6s var(--ease), left .6s var(--ease); }
.gauge .thr { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.gauge .zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #94a3b8; left: 50%; }
.ladmini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px; }
.ladbar { display: flex; flex-direction: column; gap: 2px; }
.ladbar .lv { display: flex; align-items: center; gap: 6px; height: 13px; }
.ladbar .lv .b { height: 7px; border-radius: 3px; }
.ladbar .lv .tg { font-size: 10px; color: var(--muted); width: 26px; flex: none; }
.ladbar .lv span.num { white-space: nowrap; }
.timeline { position: relative; margin-top: 20px; padding: 18px 8px 4px; }
.timeline .track { position: relative; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; }
.timeline .ev { position: absolute; top: -6px; transform: translateX(-50%); text-align: center; font-size: 11px; color: #c6d3e6; white-space: nowrap; }
.timeline .ev i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-3); margin: 0 auto 6px; }
.timeline .ev.done i { background: var(--gold); border-color: var(--gold); }
.timeline .ev b { display: block; color: #fff; font-size: 12px; }
.timeline .now { position: absolute; top: -10px; bottom: -10px; width: 2px; background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.timeline .now::before { content: 'now'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fbbf24; font-weight: 700; text-transform: uppercase; }

/* ------------------------------------------------------------------ backtest */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); }
.toolbar.sticky { position: sticky; top: 66px; z-index: 20; }
.toolbar .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding-top: 10px; width: 100%; border-top: 1px dashed var(--line); margin-top: 4px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.legend .li { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; padding: 3px 8px; border-radius: 6px; transition: background .12s, opacity .12s; }
.legend .li:hover { background: var(--grey-bg); }
.legend .li.off { opacity: .35; }
.legend .sw { width: 14px; height: 3px; border-radius: 2px; }
.chartbox { position: relative; }
.chartbox svg { display: block; width: 100%; overflow: visible; }
.chartbox .tip { position: absolute; pointer-events: none; background: rgba(15,27,45,.94); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); z-index: 5; transform: translate(-50%, -100%); margin-top: -10px; display: none; }
.chartbox .tip .r { display: flex; justify-content: space-between; gap: 14px; } .chartbox .tip .r i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.heat td { width: 7.2%; text-align: center; font-size: 11.5px; padding: 5px 2px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.heat { border-collapse: separate; border-spacing: 3px; width: 100%; }
.heat th { font-size: 11px; color: var(--muted); font-weight: 600; }
.heat td:last-child { white-space: nowrap; width: auto; padding: 5px 6px; }
svg.ic { flex: none; }
.ch svg.ic { width: 18px; height: 18px; color: var(--muted); }
.mcard .ribbon svg.ic { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ trades table (virtual) */
.vt { position: relative; height: calc(100vh - 290px); min-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.vt table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; }
.vt thead th { position: sticky; top: 0; z-index: 2; background: #f6f8fb; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 650; padding: 9px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
.vt thead th:hover { color: var(--ink); }
.vt thead th.n { text-align: right; }
.vt thead th .arr { opacity: .6; font-size: 10px; }
.vt tbody td { padding: 0 8px; height: 32px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.vt tbody td.n { text-align: right; font-variant-numeric: tabular-nums; }
.vt tbody tr { cursor: pointer; transition: background .1s; }
.vt tbody tr:hover td { background: #f3f7fc; }
.vt tbody tr.sel td { background: #e7effd; }
.vt tr.st-K td { color: #8a6a3a; } .vt tr.st-N td { color: #7b8aa0; } .vt tr.st-M td { color: #7b8aa0; }
.vt tr.st-K td.net, .vt tr.st-N td.net { font-style: italic; }
.stb { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .03em; }
.stb.T { background: var(--teal-bg); color: var(--teal-2); } .stb.K { background: var(--amber-bg); color: #9a5b04; } .stb.N { background: #edf0f4; color: #64748b; }
.stb.M { background: #f3e8ff; color: #6b21a8; } .stb.L { background: var(--gold-bg); color: #7a5f0f; } .stb.X { background: #f1f5f9; color: #94a3b8; }

/* ------------------------------------------------------------------ day page */
.daybar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dayhead { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 12px; }
.dayhead .lt .k { font-size: 12px; font-weight: 700; color: var(--gold-2); letter-spacing: .08em; text-transform: uppercase; }
.dayhead .lt h1 { font-size: 26px; margin-top: 3px; }
.dayhead .lt .w { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dayhead .rt { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tvwrap { height: 540px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; position: relative; box-shadow: var(--shadow); }
.tvwrap.tall { height: calc(100vh - 170px); min-height: 560px; }
.tvwrap .note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); text-align: center; padding: 30px; }
.daygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .daygrid { grid-template-columns: 1fr; } }
.secttl { font-weight: 700; color: var(--teal-2); font-size: 15px; margin: 2px 0 8px; display: flex; align-items: center; gap: 8px; }
.ladtbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ladtbl th { background: var(--navy); color: #fff; font-weight: 600; padding: 6px 7px; font-size: 11.5px; }
.ladtbl td { padding: 4px 7px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
.ladtbl td:first-child { text-align: left; font-weight: 700; }
.ladtbl tr.tg td { background: var(--gold-bg); }
.ladtbl td.st { background: #f6dede; }
.hit { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.hit.yu { background: var(--teal); color: #fff; } .hit.yd { background: var(--red); color: #fff; }
.casc { display: flex; gap: 10px; flex-wrap: wrap; }
.casc .ci { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.casc .ci:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.casc .ci.sent { border-color: #9fd3d3; background: var(--teal-bg); }
.casc .ci.skipped { border-color: #f1d3a0; background: var(--amber-bg); }
.cumbox { margin-top: 16px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; background: #f2f4f8; border-radius: var(--r); padding: 12px 16px; }

/* ------------------------------------------------------------------ database */
.score { position: relative; width: 74px; height: 74px; flex: none; }
.score svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.score .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 800; font-size: 20px; }
.score .lbl small { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.issue { display: flex; gap: 10px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: #fbfcfe; align-items: flex-start; }
.issue + .issue { margin-top: 8px; }
.issue .ic { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; font-size: 12px; color: #fff; }
.issue.error .ic { background: var(--red); } .issue.warn .ic { background: var(--amber); } .issue.info .ic { background: var(--blue); } .issue.ok .ic { background: var(--green); }
.daymap { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; font-size: 10.5px; color: var(--muted); }
.daymap .yr { text-align: right; line-height: 12px; }
.daymap .cells { display: flex; gap: 1px; flex-wrap: nowrap; min-width: 0; }
.daymap .cells i { flex: 0 1 3px; min-width: 1px; height: 12px; border-radius: 1px; display: block; }
.progress { height: 8px; background: #e8edf3; border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #34b3b9); border-radius: 6px; transition: width .5s var(--ease); }
.progress.ind > i { width: 35% !important; animation: indet 1.2s infinite ease-in-out; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.steps { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.steps .s { display: grid; grid-template-columns: 22px 34px 120px 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.steps .s .ico { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: var(--grey); }
.steps .s.done .ico { background: var(--green); } .steps .s.error .ico { background: var(--red); } .steps .s.warn .ico { background: var(--amber); }
.steps .s.running .ico { background: var(--blue); animation: spinp 1s infinite linear; }
@keyframes spinp { 0% { box-shadow: 0 0 0 0 rgba(47,111,219,.5); } 100% { box-shadow: 0 0 0 6px rgba(47,111,219,0); } }
.codeblk { background: #0f1b2d; color: #d6e2f5; border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; overflow: auto; max-height: 360px; white-space: pre; font-variant-ligatures: none; }
.codeblk .k { color: #8ec5ff; } .codeblk .s { color: #b7e4a4; } .codeblk .n { color: #f7c873; }

/* ------------------------------------------------------------------ modal + toasts */
.modal-bg { position: fixed; inset: 0; background: rgba(12,20,36,.45); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  padding: 50px 20px; overflow: auto; animation: bgin .2s ease-out; }
@keyframes bgin { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: min(980px, 100%); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: modin .25s var(--ease); overflow: hidden; }
.modal.narrow { width: min(560px, 100%); }
@keyframes modin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal .mh { padding: 18px 22px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); }
.modal .mb { padding: 16px 22px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; background: #fafbfd; }
.dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dest { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .15s; position: relative; background: #fff; }
.dest:hover { border-color: #b9c6d6; transform: translateY(-1px); }
.dest.on { border-color: var(--teal); background: var(--teal-bg); box-shadow: 0 0 0 3px rgba(19,131,138,.12); }
.dest.live.on { border-color: var(--red); background: #fff6f5; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.dest.off { opacity: .5; cursor: not-allowed; }
.dest .tag { position: absolute; top: 10px; right: 10px; }
.confirmbox { border: 1.5px dashed #e6b7b1; background: #fff8f7; border-radius: 12px; padding: 12px 14px; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { background: #0f1b2d; color: #fff; padding: 11px 14px; border-radius: 11px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); font-size: 13px; min-width: 260px; max-width: 420px;
  display: flex; gap: 10px; align-items: flex-start; animation: toastin .3s var(--ease); }
.toast.ok { border-left: 4px solid #34d399; } .toast.err { border-left: 4px solid #f87171; } .toast.warn { border-left: 4px solid #fbbf24; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }
.skel { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.confetti { position: fixed; pointer-events: none; z-index: 400; width: 8px; height: 12px; border-radius: 2px; }
.kbd { display: inline-block; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 0 var(--line); color: var(--ink-2); }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }
.note-box { background: #f7f9fc; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.note-box.warn { background: var(--amber-bg); border-color: #f4dcb0; color: #7c4a03; }
.note-box.err { background: var(--red-bg); border-color: #f2c4bf; color: #7f1d1d; }
.note-box.ok { background: var(--green-bg); border-color: #bfe6d2; color: #14532d; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.12); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.count-up { transition: color .3s; }

.trybox { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--violet-bg, #f3effc); border: 1px dashed rgba(124, 92, 214, .35); }
.wsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 28px auto 0; text-align: left; }
.wstep { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.wstep .wn { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1000px) { .wsteps { grid-template-columns: 1fr; } }
.datenav { display: inline-flex; align-items: center; gap: 4px; }
.datenav input[type=date] { margin: 0 2px; }

/* ------------------------------------------------------------------ sign-in (online) */
.login-body { min-height: 100vh; background: radial-gradient(1200px 600px at 20% -10%, #24406e 0%, rgba(36,64,110,0) 60%), linear-gradient(180deg, var(--navy) 0%, #0d1a30 100%); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 28px 28px 22px; box-shadow: 0 30px 80px -24px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 14px; animation: modin .3s var(--ease); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.login-brand .logo { width: 40px; height: 40px; }
.login-brand .t1 { font-weight: 700; font-size: 18px; color: var(--ink); }
.login-brand .t2 { font-size: 12px; color: var(--muted); }
.login-card h1 { font-size: 20px; margin: 4px 0 2px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.fld input { height: 40px; font-size: 15px; width: 100%; }
.login-card .btn.big { width: 100%; margin-top: 2px; }
.login-err { min-height: 18px; font-size: 13px; color: var(--red); }
.login-foot { font-size: 11.5px; color: var(--faint); text-align: center; }
#lgCode { letter-spacing: .25em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ account menu, live */
.userchip { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: #dbe4f1; font-size: 12.5px; cursor: pointer; white-space: nowrap; position: relative; }
.userchip:hover { background: rgba(255,255,255,.13); }
.userchip .av { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #241a00; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.umenu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-2); border: 1px solid var(--line);
  min-width: 250px; padding: 6px; z-index: 120; }
.umenu .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.umenu .it:hover { background: var(--grey-bg); }
.umenu .hd { padding: 8px 10px 6px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.qrbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qrbox img { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.secret { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; word-break: break-all; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.dot.live { background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 1.2s infinite; }
.livebadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #0f6d73; background: var(--teal-bg);
  border-radius: 999px; padding: 2px 8px; }
.livebadge .dot { width: 7px; height: 7px; }
.livegrid { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; font-size: 12.5px; margin-top: 8px; }

/* ------------------------------------------------------------------ uploads */
.dropzone { border: 2px dashed #c9d4e2; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); background: var(--panel-2); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.over { border-color: var(--teal); background: var(--teal-bg); color: var(--teal-2); }
.dropzone b { color: var(--ink-2); }
.uplist { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.upitem { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.upitem .row { flex-wrap: wrap; }
.upitem select, .upitem input[type=text] { height: 30px; font-size: 12.5px; }
.upbar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-top: 6px; }
.upbar i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s; }

/* ------------------------------------------------------------------ health: the bars-per-day map on a canvas */
.daymap2 { position: relative; }
.daymap2 canvas { display: block; width: 100%; image-rendering: pixelated; cursor: crosshair; }
.daymap2 .tip { position: absolute; pointer-events: none; background: #0f1b2d; color: #fff; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -130%); }
.issue.note .ic { background: #94a3b8; }
.fld select { width: 100%; height: 34px; }

/* ------------------------------------------------------------------ a phone: the header on two lines, the tabs scroll */
@media (max-width: 1000px) { .userchip .ptxt { display: none; } }
@media (max-width: 760px) {
  header.top { flex-wrap: wrap; height: auto; padding: 8px 12px 0; gap: 6px 10px; }
  .brand { order: 1; }
  header .right { order: 2; gap: 6px; }
  .clock, #pillData { display: none; }
  nav.tabs { order: 3; width: 100%; height: 42px; overflow-x: auto; scrollbar-width: none; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { flex: none; padding: 0 12px; }
  main { padding: 14px 12px 50px; }
  .timeline .ev { font-size: 0; }
  .timeline .ev b { display: none; }
  .ptitle { flex-wrap: wrap; }
  .umenu { position: fixed; right: 8px; top: 52px; }
  table.t, table.ladtbl { display: block; overflow-x: auto; }
  .dayhead, .dayhead .rt, .daybar { flex-wrap: wrap; }
  .badge.xl { height: 36px; font-size: 15px; padding: 0 14px; }
  .updcard { grid-template-columns: 1fr !important; }
  .updcard > .col { align-items: stretch !important; }
  .ch { flex-wrap: wrap; }
  .daygrid > *, .card { min-width: 0; }
  table.kv td { overflow-wrap: anywhere; }
}
