:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1d2327; --muted: #5d676e; --line: #e2e0d8;
  --accent: #245f73; --accent-soft: #d8e9ee; --ok: #2f7d4f; --warn: #a86b12; --bad: #a33a2c;
  --dot-on: 36, 115, 140; --dot-off: #d9d7cf;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181b; --card: #1c2226; --ink: #e8e6df; --muted: #9aa4aa; --line: #2c3439;
    --accent: #6fb3c9; --accent-soft: #1f3a44; --ok: #6cc18e; --warn: #e0a64a; --bad: #e57b6c;
    --dot-on: 111, 179, 201; --dot-off: #333b40; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14181b; --card: #1c2226; --ink: #e8e6df; --muted: #9aa4aa; --line: #2c3439;
  --accent: #6fb3c9; --accent-soft: #1f3a44; --ok: #6cc18e; --warn: #e0a64a; --bad: #e57b6c;
  --dot-on: 111, 179, 201; --dot-off: #333b40; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; font-size: 15px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.wrap { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 12px; }
h1 { font-size: 26px; margin: 2px 0 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 0; font-weight: 650; }
h3 { font-size: 13px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 600; font-size: 13px; }
.meta, .fine { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
a { color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.head { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis > *, .grid2 > * { min-width: 0; }
.sub, .fine { overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .kpis, .grid2 { grid-template-columns: 1fr; } }
.big { font-size: 44px; font-weight: 700; margin: 8px 0 0; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.sub { margin: 6px 0 0; color: var(--muted); }
.tag { font-size: 11px; font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 99px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.range { position: relative; height: 10px; background: var(--line); border-radius: 99px; margin-top: 14px; }
.range-band { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 99px; }
.range-mid { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--accent); border-radius: 2px; }
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.prob { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.prob b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.prob span { font-size: 12px; color: var(--muted); }
.alert { background: #fdf1dc; color: #6b4608; border: 1px solid #efd29c; border-radius: 10px; padding: 12px 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert { background: #3a2c12; color: #f3d9a4; border-color: #5c4519; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr 1fr; } }
.timeline li { border-left: 3px solid var(--line); padding: 4px 10px; }
.timeline li.now { border-color: var(--accent); }
.timeline li.done { opacity: .6; }
.timeline b { display: block; font-size: 13px; }
.timeline span { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
tr.old td { opacity: .55; }
tr.week-sep td { background: var(--bg); font-weight: 600; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.badge.verified { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.pending { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.conflict { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.badge.muted { background: var(--bg); color: var(--muted); }
.zone { font-weight: 650; }
.src a { color: var(--accent); margin-right: 6px; font-size: 12.5px; white-space: nowrap; display: inline-block; }
.dots { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 5px; margin-top: 8px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: rgba(var(--dot-on), calc(.12 + .88 * var(--p))); vertical-align: -2px; }
.dot.other { background: transparent; border: 1.5px solid var(--dot-off); }
.dot.me { outline: 2px solid var(--warn); outline-offset: 2px; background: var(--warn); }
.dots-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.obs, .sources, .news { list-style: none; margin: 0; padding: 0; }
.obs li, .sources li, .news li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sources li { display: flex; justify-content: space-between; gap: 10px; }
.news a { color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } .big { font-size: 38px; } .prob b { font-size: 20px; } td, th { padding: 6px 5px; } }
.form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
input, select, button { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; font-weight: 600; align-self: end; }
button:disabled { opacity: .6; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 20px; }
.rules p { margin: 0; font-size: 13.5px; }
details summary { cursor: pointer; list-style: none; }
details summary h2 { display: inline; }
details summary::after { content: " ▸"; color: var(--muted); }
details[open] summary::after { content: " ▾"; }
.assumptions { font-size: 13.5px; }
.assumptions table { margin: 6px 0 12px; max-width: 520px; }
.trend svg { width: 100%; height: 160px; display: block; }
footer.wrap { margin: 0 auto 32px; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
