:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1c1b18;
  --muted: #66625a;
  --line: #dedad0;
  --accent: #2b59c3;
  --good: #1f8a4c;
  --bad: #c2412d;
  --neutral: #8a8579;
  --official-bg: #e3f1e8; --official-fg: #1f6b3e;
  --reported-bg: #fbeedd; --reported-fg: #8a5a12;
  --live: #1f8a4c; --full: #2b59c3; --banked: #b7791f;
  --radius: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211; --surface: #1b1b19; --surface-2: #242421; --text: #ecebe6; --muted: #a29e94; --line: #33322e;
    --accent: #7ea2ff; --good: #4cc27f; --bad: #f07a63; --neutral: #8f8a7f;
    --official-bg: #173322; --official-fg: #8ed9a8; --reported-bg: #3a2a12; --reported-fg: #f0c27a;
    --live: #4cc27f; --full: #7ea2ff; --banked: #e0a84a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#10a37f 0 25%, #d97757 0 50%, #4f7cff 0 75%, #a3a3a3 0); box-shadow: inset 0 0 0 5px var(--bg); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--muted); }

/* hero */
.hero { padding: 48px 0 24px; max-width: 760px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 16px; }
.stamp { display: inline-flex; gap: 6px; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* sections */
.section { padding: 36px 0 12px; }
.section-head { max-width: 760px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.legend .badge + span { margin-right: 10px; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.badge.official { background: var(--official-bg); color: var(--official-fg); }
.badge.reported { background: var(--reported-bg); color: var(--reported-fg); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; flex: none; }

/* providers */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.provider { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--accent); }
.provider-head { display: flex; align-items: center; }
.provider-head .dot { width: 12px; height: 12px; }
.provider-head h3 { margin: 0; font-size: 19px; }
.vendor { margin-left: auto; font-size: 12px; color: var(--muted); }
.window { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.window strong { color: var(--text); font-weight: 600; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan { border-top: 1px solid var(--line); padding-top: 12px; }
.plan-top { display: flex; justify-content: space-between; font-weight: 600; }
.plan-price { font-variant-numeric: tabular-nums; text-align: right; }
.plan-price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.bar { position: relative; height: 22px; background: var(--surface-2); border-radius: 6px; margin: 8px 0 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; opacity: .85; transition: width .4s ease; }
.bar-label { position: absolute; left: 8px; top: 2px; font-size: 12px; font-weight: 600; color: var(--text); mix-blend-mode: normal; }
.bar-per { position: absolute; right: 8px; top: 3px; font-size: 11px; color: var(--muted); }
.plan-sum { font-size: 13px; margin: 0 0 6px; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }

/* ad slots */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 24px 0; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.ad-slot[hidden] { display: none; }
.ad-slot.sticky-foot { min-height: 60px; max-width: 1148px; margin: 24px auto 0; }

/* changes */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.change { position: relative; padding: 4px 0 18px 22px; }
.change::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--neutral); box-shadow: 0 0 0 3px var(--bg); }
.change.up::before { background: var(--good); }
.change.down::before { background: var(--bad); }
.change time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.change time em { color: var(--accent); font-style: normal; font-weight: 600; }
.change-body { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 4px; }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--text); }

/* calculator */
.calc { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.calc-inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; position: sticky; top: 72px; }
.calc-inputs label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.calc-inputs input[type=number] { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; font-variant-numeric: tabular-nums; }
.calc-inputs input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-inputs output { font-weight: 600; color: var(--text); }
.prov-filter { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prov-filter legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 4px !important; color: var(--text) !important; cursor: pointer; }
.check input { margin: 0 4px 0 0; accent-color: var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.presets button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.presets button:hover { border-color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 14px; line-height: 1.3; }
.kpi-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.models { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.models th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.models th.sorted { color: var(--text); }
.models th.sorted[data-dir=asc]::after { content: " ▲"; font-size: 9px; }
.models th.sorted[data-dir=desc]::after { content: " ▼"; font-size: 9px; }
.models td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.models tr:last-child td { border-bottom: 0; }
.models .num { text-align: right; font-variant-numeric: tabular-nums; }
.models .strong { font-weight: 700; }
.models .note { font-size: 11px; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0; max-width: 860px; }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.chart-card h3 { margin: 0 0 8px; font-size: 15px; }
#scatter svg { width: 100%; height: auto; display: block; }
#scatter .grid { stroke: var(--line); stroke-width: 1; }
#scatter .tick { fill: var(--muted); font-size: 11px; }
#scatter .axis { fill: var(--muted); font-size: 12px; }
#scatter .pt circle { stroke: var(--surface); stroke-width: 2; }
#scatter .pt-label { fill: var(--text); font-size: 11px; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.partner { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.partner:hover { text-decoration: none; border-color: var(--muted); border-left-color: var(--accent); }
.partner .dot { display: none; }
.partner-from { font-size: 13px; color: var(--muted); }
.partner-cta { font-size: 13px; color: var(--accent); font-weight: 600; }

/* sources */
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.sources li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.sources .when { margin-left: auto; color: var(--muted); }
.footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
.error { background: var(--reported-bg); color: var(--reported-fg); padding: 12px 16px; border-radius: 8px; margin-top: 16px; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { position: static; }
  .nav { display: none; }
  .lang-toggle { margin-left: auto; }
}
.calc > *, .provider-grid > *, .kpis > * { min-width: 0; }
body { overflow-x: hidden; }

/* radar */
.radar { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.radar > * { min-width: 0; }
.radar-controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.budget { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.budget input { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; font-variant-numeric: tabular-nums; }
.radar-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.radar-pick button { font: inherit; font-size: 12px; text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 5px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.radar-pick button .swatch { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.radar-pick button.on { border-color: var(--text); font-weight: 600; }
.radar-pick button:disabled { opacity: .45; cursor: not-allowed; }
.radar-pick button:focus-visible, .chip:focus-visible, .presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.radar-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.radar-chart svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.radar-chart .ring { fill: none; stroke: var(--line); }
.radar-chart .spoke { stroke: var(--line); }
.radar-chart .ax { fill: var(--text); font-size: 13px; font-weight: 600; }
.radar-chart .ring-label { fill: var(--muted); font-size: 10px; }
.radar-chart .shape { fill-opacity: .14; stroke-width: 2.2; }
.radar-chart .vertex { stroke: var(--surface); stroke-width: 1.5; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; margin-top: 4px; }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.radar-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.radar-table th { cursor: default; }
.radar-table .score { font-weight: 700; }
.radar-table .raw { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
@media (max-width: 860px) { .radar { grid-template-columns: 1fr; } }

/* community */
.sample-banner { background: var(--reported-bg); color: var(--reported-fg); border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.com-totals { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.com-totals strong { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.com-totals a { margin-left: auto; font-weight: 600; }
.com-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.com-grid > * { min-width: 0; }
.com-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.com-card h3 { margin: 0 0 2px; font-size: 16px; }
.com-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.com-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 8px; }
.com-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.com-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.com-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.com-val small, .com-table small { font-weight: 400; color: var(--muted); font-size: 11px; }
.com-table small { display: block; }
.range { position: relative; height: 10px; background: var(--surface-2); border-radius: 5px; }
.range .iqr { position: absolute; top: 0; bottom: 0; border-radius: 5px; opacity: .55; }
.range .med { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--text); }
.score-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.warn { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--bad); border: 1px solid var(--bad); border-radius: 999px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.com-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.com-table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.com-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.com-table tr:last-child td { border-bottom: 0; }
.com-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 120px; align-items: end; }
.hour { display: flex; flex-direction: column-reverse; height: 100%; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.hour i { display: block; width: 100%; }
.hour-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }

.report { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; scroll-margin-top: 72px; }
.report-head h3 { margin: 0 0 4px; font-size: 17px; }
.report-head p { margin: 0; font-size: 13px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rep-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rep-fields label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); align-content: start; }
.rep-fields input[type=text], .rep-fields input[type=number], .rep-fields input[type=datetime-local], .rep-fields select { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; min-width: 0; }
.rep-fields input[type=range] { accent-color: var(--accent); }
.rep-fields output { font-weight: 700; color: var(--text); }
.rep-fields .check-row { display: flex; align-items: center; gap: 8px; color: var(--text); padding-top: 22px; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 600; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); }
.rep-err { color: var(--bad); font-size: 13px; }
.rep-out { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; justify-items: start; font-size: 13px; }
.rep-out p { margin: 0; }
.rep-out pre { margin: 0; width: 100%; overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; }
[hidden] { display: none !important; }
.com-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#comRating .com-name { white-space: normal; }
.com-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 760px) { .com-grid { grid-template-columns: 1fr; } }

/* live strip */
.live { border-bottom: 1px solid var(--line); background: var(--surface); }
.live-inner { display: flex; gap: 22px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-block: 9px; white-space: nowrap; }
.live-inner::-webkit-scrollbar { display: none; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--live); }
.live-item { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; }
.live-label { color: var(--muted); font-size: 12px; }
.live-item strong { font-variant-numeric: tabular-nums; }
.live-item small { color: var(--muted); font-size: 11px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* reset radar */
.rs-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.rs-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.rs-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rs-clock { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.rs-last { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-status p { margin: 0; font-size: 13px; color: var(--muted); }
.rs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rs-stats .kpi { align-content: center; }
.rs-stats .kpi-val small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kind { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--surface); white-space: nowrap; }
.kind.full { background: var(--full); }
.kind.banked { background: var(--banked); }
.rs-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.months { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; }
.month { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; text-align: center; }
.mbar { display: flex; flex-direction: column-reverse; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.mbar i { display: block; width: 100%; }
.mval { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 16px; }
.mlab { font-size: 11px; color: var(--muted); }
i.full, .lg.full { background: var(--full); }
i.banked, .lg.banked { background: var(--banked); }
.ledger { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ledger li { display: grid; grid-template-columns: 150px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ledger li:last-child { border-bottom: 0; }
.ledger time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.ledger .muted { color: var(--muted); }
@media (max-width: 860px) {
  .rs-top, .rs-charts { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: auto minmax(0, 1fr); }
  .ledger li .ledger-text, .ledger li .plan-meta { grid-column: 1 / -1; }
}

/* QuotaPilot call to action */
.tool-cta { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tool-cta h3 { margin: 0 0 6px; font-size: 17px; }
.tool-cta p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.tool-points { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.tool-cmd { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.tool-cmd pre { margin: 0; width: 100%; overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.tool-cmd .c { color: var(--muted); }
@media (max-width: 760px) { .tool-cta { grid-template-columns: 1fr; } }

/* effort ladder */
#efChart svg { width: 100%; height: auto; display: block; }
#efChart .grid { stroke: var(--line); }
#efChart .tick { fill: var(--muted); font-size: 11px; }
#efChart .axis { fill: var(--muted); font-size: 12px; }
#efChart .pt-label { fill: var(--muted); font-size: 10px; }
#efChart .pt-label.strong { font-size: 12px; font-weight: 700; }
#efChart .vertex { stroke: var(--surface); stroke-width: 1.5; }
.ef-family { margin: 16px 0 10px; }
.ef-table th { cursor: default; }
.ef-table small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.ef-table small.up { color: var(--good); }
.ef-table small.down { color: var(--bad); }
.ef-table tr.best td { background: color-mix(in srgb, var(--official-bg) 45%, transparent); }
.ef-table .muted { color: var(--muted); }

/* generated article pages */
.article { max-width: 900px; padding-block: 28px 12px; }
.article h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 12px; text-wrap: balance; }
.article h2 { font-size: 21px; margin: 32px 0 10px; }
.article h3 { font-size: 16px; margin: 18px 0 4px; }
.article p { max-width: 68ch; }
.article .table-scroll { margin: 16px 0; }
.article td small { color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin: 0; }
.plain { padding-left: 18px; display: grid; gap: 8px; }
.plain time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.cta-row { margin: 28px 0; }
.footer-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
a.lang-toggle { text-decoration: none; }

.support { margin: -4px 0 12px; font-size: 12px; font-weight: 600; display: inline-block; padding: 2px 8px; border-radius: 999px; }
.support.full { background: var(--official-bg); color: var(--official-fg); }
.support.tokens, .support.limits { background: var(--surface-2); color: var(--muted); }

.subproduct { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.subproduct h4 { margin: 0 0 4px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.sub-tag { font-size: 11px; font-weight: 500; color: var(--muted); }
.sub-note { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
