/* Public dashboard: plain, readable, prints well, light and dark. */
:root { --bg: #f5f6f8; --panel: #ffffff; --ink: #18202b; --muted: #5b6676; --line: #dfe3e9; --brand: #1f4e8c; --brand-soft: #e6eef8;
  --a: #1f4e8c; --b: #c2410c; --c: #1d7a45; --d: #7c3aed; --warn: #b45309; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f141b; --panel: #171e28; --ink: #e8edf3; --muted: #9aa6b6; --line: #2a3443; --brand: #7aa7e6; --brand-soft: #1d2a3d;
  --a: #7aa7e6; --b: #f08a4b; --c: #4cc38a; --d: #b39af5; --warn: #f0b04b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; }
.pub { max-width: 1120px; margin: 0 auto; padding: 24px 16px 60px; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.pub-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; border-bottom: 3px solid var(--brand); padding-bottom: 14px; margin-bottom: 18px; }
.pub-head h1 { margin: 0; font-size: 1.9rem; } .pub-head .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand); font-weight: 700; }
.pub-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.pub-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: .9rem; }
.pub-nav a:hover { border-color: var(--brand); }
section.pub-sec { margin: 0 0 28px; scroll-margin-top: 60px; }
section.pub-sec > h2 { font-size: 1.35rem; margin: 0 0 4px; }
.lead { margin: 0 0 12px; color: var(--muted); max-width: 70ch; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.tile strong { font-size: 2rem; line-height: 1.1; color: var(--brand); } .tile span { font-size: .9rem; } .tile em { font-style: normal; color: var(--muted); font-size: .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.card h3 { margin: 0 0 10px; font-size: 1rem; }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 16px; }
.col { flex: 1; display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; font-size: .75rem; color: var(--muted); min-width: 0; }
.col .n { color: var(--ink); font-weight: 700; }
.col .plot { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.col .plot i { display: block; width: 60%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--a); min-height: 2px; }
.col .plot i.b { background: var(--b); } .col .plot i.c { background: var(--c); } .col .plot i.d { background: var(--d); }
.col .plot.multi i { width: 28%; }
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; margin-top: 8px; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; background: var(--a); vertical-align: -1px; }
.key i.b { background: var(--b); } .key i.c { background: var(--c); } .key i.d { background: var(--d); }
.hbar { display: grid; grid-template-columns: minmax(120px, 44%) 1fr 64px; gap: 8px; align-items: center; font-size: .88rem; margin: 5px 0; }
.hbar .t { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; } .hbar .t i { display: block; height: 100%; background: var(--a); }
.hbar strong { text-align: right; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; } th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 14px; font-size: .85rem; color: var(--muted); }
.foot h3 { color: var(--ink); font-size: .95rem; }
.off { padding: 40px 16px; text-align: center; }
@media print { .pub-nav { display: none; } .card, .tile { break-inside: avoid; } body { background: #fff; } }
.demo-bar { background: #fff4d6; color: #5c3b00; border: 1px solid #f0c45a; border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .demo-bar { background: #3a2c0b; color: #f6dc9a; border-color: #7a5a16; } }
.splash { min-height: 80vh; display: grid; place-items: center; }
.splash-card { max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid #f0c45a; border-radius: 16px; padding: 28px 26px; box-shadow: 0 18px 50px -30px rgba(0,0,0,.5); }
.splash-card h1 { margin: 4px 0 12px; font-size: 1.7rem; }
.splash-card .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: #b07d10; font-weight: 700; }
.splash-go { margin: 12px 0; font: inherit; font-weight: 600; padding: 12px 18px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
@media (prefers-color-scheme: dark) { .splash-go { color: #0f141b; } }
