* { box-sizing: border-box; }
[hidden] { display: none !important; }
.pulse, .editorial, .terminal { --font: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; --width: 1320px; }
.pulse { --bg: #f8fafc; --surface: #fff; --ink: #152238; --muted: #6b7c8c; --line: #dfe7ee; --accent: #1eaa80; --accent-soft: #e6f7f0; --subtle: #e9eff3; --alert-bg: #fff1e9; --alert-ink: #9a4d30; --warn: #b98122; --danger: #bd4e40; }
.editorial { --bg: #f7f4ee; --surface: #fffdf8; --ink: #211b17; --muted: #82766b; --line: #d6cec3; --accent: #b45b3b; --accent-soft: #f0dfd4; --subtle: #e7e0d7; --alert-bg: #eee0d7; --alert-ink: #8f4935; --warn: #a87b25; --danger: #aa493d; }
.terminal { --bg: #0a0e10; --surface: #11191a; --ink: #dce9e2; --muted: #819489; --line: #293a32; --accent: #72d6a4; --accent-soft: #153126; --subtle: #27352f; --alert-bg: #2a1d19; --alert-ink: #e2a07c; --warn: #e8b07a; --danger: #e07a6a; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-variant-numeric: tabular-nums; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:hover:not(:disabled), a:hover { opacity: .75; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--width); margin: auto; padding: 22px 40px 50px; }
.hero-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px 0 18px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 14px; }
.mark { color: var(--accent); font-size: 24px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .16em; }
h1 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 14px; letter-spacing: -.025em; }
.hero-head-right { display: flex; align-items: center; gap: 20px; }
.fetched { text-align: right; color: var(--muted); font-size: 11px; }
.fetched strong { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; font-weight: 500; }
.speed-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
button, .theme-switch { border: 1px solid var(--line); background: transparent; color: var(--ink); }
button { padding: 9px 12px; border-radius: 8px; font-size: 12px; }
.speed-mode { padding: 7px 11px; border-radius: 99px; }
.speed-mode[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--subtle); white-space: nowrap; }
.theme-switch button { min-width: 48px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 5px #0002; font-weight: 700; }
.banner { display: none; margin: 14px 0; padding: 11px 15px; background: var(--alert-bg); color: var(--alert-ink); font-size: 12px; line-height: 1.5; }
.banner.show { display: block; }
.banner.info { background: var(--accent-soft); color: var(--accent); }
.speed-mode-feedback { padding: 9px 15px; margin: 10px 0; color: var(--accent); background: var(--accent-soft); font-size: 12px; }
.speed-mode-feedback.error { color: var(--alert-ink); background: var(--alert-bg); }
.dashboard { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 28px; }
.hero-main { grid-column: 1 / -1; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.meter { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.section-label { color: var(--muted); font-size: 12px; }
#remaining { margin: 15px 0 12px; color: var(--accent); font-size: 94px; font-weight: 700; line-height: 1; letter-spacing: -.095em; }
.meter-foot { color: var(--muted); font-size: 12px; }
.meter-foot strong { margin-left: 5px; color: var(--ink); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 16px; align-content: center; }
.fact { min-width: 0; }
.fact.time { grid-column: span 2; }
.fact label, .forecast-item label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.fact b { display: block; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.fact small, .forecast-item small, .reset-news-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.usage-panel { grid-column: 1; min-width: 0; padding-top: 25px; }
.minute-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.minute-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 13px; }
.minute-heading h2 { font-size: 17px; }
.minute-synced { color: var(--muted); font-size: 11px; }
.minute-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.minute-bar label { color: var(--muted); font-size: 11px; }
.minute-bar input { max-width: 190px; padding: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 12px; }
.sync-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sync-progress progress { width: 72px; height: 4px; accent-color: var(--accent); }
.sync-progress-detail { font-size: 10px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 11px; font-weight: 500; }
td.num, th.num { text-align: right; }
tfoot td { color: var(--accent); font-weight: 700; }
.empty-row { padding: 28px 8px; color: var(--muted); text-align: center; }
.quota-name { width: 28%; font-weight: 700; }
.quota { width: 72%; }
.quota-line { display: flex; align-items: center; gap: 15px; }
.quota-bar { display: block; flex: 1; min-width: 0; max-width: 520px; height: 8px; overflow: hidden; border-radius: 99px; background: var(--subtle); }
.quota-fill { display: block; width: 0; max-width: 100%; height: 100%; border-radius: inherit; background: var(--accent); }
.quota-pct { min-width: 48px; color: var(--ink); text-align: right; font-size: 14px; font-weight: 700; white-space: nowrap; }
.quota-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.quota.warn .quota-pct { color: var(--warn); }
.quota.warn .quota-fill { background: var(--warn); }
.quota.over .quota-pct { color: var(--danger); }
.quota.over .quota-fill { background: var(--danger); }
.quota.none .quota-pct { color: var(--muted); }
.status-pill { margin-left: 9px; padding: 3px 7px; color: var(--muted); background: var(--subtle); font-size: 10px; white-space: nowrap; }
.status-pill.on { color: var(--accent); background: var(--accent-soft); }
.status-pill.off { color: var(--alert-ink); background: var(--alert-bg); }
.status-text { margin-left: 6px; color: var(--muted); font-size: 11px; }
.context-row { grid-column: 2; min-width: 0; padding: 25px 0 0 26px; border-left: 1px solid var(--line); }
.forecast-head { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.forecast-badge { padding: 4px 7px; color: var(--accent); background: var(--accent-soft); font-size: 10px; }
.forecast-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.forecast-item { min-width: 0; }
.forecast-item b { display: block; margin-bottom: 7px; font-size: 22px; font-weight: 650; letter-spacing: -.04em; overflow-wrap: anywhere; }
.reset-news { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.reset-news-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.reset-news-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--accent); font-size: 11px; }
.reset-news > b { display: block; margin-bottom: 8px; font-size: 13px; }
.reset-news-meta { overflow-wrap: anywhere; }
#extras { color: var(--muted); font-size: 11px; }
.speed-confirm { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 60px #0005; }
.speed-confirm::backdrop { background: #000a; }
.speed-confirm h2 { margin-bottom: 16px; font-size: 18px; }
.speed-confirm p { margin: 0 0 14px; font-size: 14px; line-height: 1.75; }
.speed-confirm-note { color: var(--muted); font-size: 13px !important; }
.speed-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
@media (max-width: 1100px) { .hero-head { flex-wrap: wrap; } .hero-head-right { width: 100%; justify-content: space-between; } .dashboard { display: block; } .usage-panel { padding-top: 30px; } .context-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 35px; padding: 25px 8px 28px; border-left: 0; border-bottom: 1px solid var(--line); } .reset-news { margin: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); } }
@media (max-width: 850px) { .wrap { padding: 18px 22px 50px; } .hero-main { grid-template-columns: 1fr; gap: 23px; } .meter { padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line); } #remaining { font-size: 80px; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact.time { grid-column: span 1; } .context-row { grid-template-columns: 1fr; gap: 25px; } .reset-news { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .wrap { padding: 14px 16px 45px; } .hero-head { position: relative; align-items: flex-start; } .identity { gap: 9px; max-width: calc(100% - 150px); } .mark { display: none; } h1 { font-size: 25px; } .hero-head-right { justify-content: flex-start; flex-wrap: wrap; gap: 9px; padding-top: 35px; } .theme-switch { position: absolute; top: 6px; right: 0; } .theme-switch button { min-width: 42px; padding: 6px 7px; } .fetched { margin-right: auto; text-align: left; } .fetched strong { font-size: 11px; } .speed-control { gap: 5px; } .speed-mode { padding: 6px 9px; } .hero-main { padding: 20px; } #remaining { font-size: 72px; } .facts { gap: 17px 12px; } .fact b { font-size: 12px; } .forecast-values { grid-template-columns: 1fr; gap: 18px; } .minute-heading { display: block; } .minute-synced { display: block; margin-top: 5px; } .quota-name { width: 37%; } .quota-line { gap: 7px; } .quota-pct { min-width: 37px; font-size: 12px; } .quota-meta { font-size: 10px; } .status-pill { display: block; width: max-content; margin: 5px 0 0; } .sync-progress { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
