:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b1020; color: #f6f7fb; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 15% 0%, #1d3a73 0, transparent 36rem), #0b1020; }
button, input, select { font: inherit; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.brand { color: #fff; font-size: 20px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar a, select { color: #cbd5e1; background: transparent; border: 0; text-decoration: none; }
select { cursor: pointer; }
.auth-card { width: min(560px, 100%); margin: clamp(52px, 14vh, 150px) auto 0; padding: 36px; border: 1px solid #2d3f61; border-radius: 20px; background: rgba(14, 23, 43, .84); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.eyebrow { display: block; color: #7db5ff; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 12px; font-size: clamp(29px, 5vw, 42px); letter-spacing: -.045em; }
h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.03em; }
.auth-card > p { color: #afbdd2; line-height: 1.55; }
form { margin-top: 28px; }
label, .stat-card span { color: #cbd5e1; font-size: 13px; font-weight: 650; }
.key-row { display: flex; margin-top: 8px; border: 1px solid #415577; border-radius: 11px; background: #0b1327; overflow: hidden; }
input { width: 100%; min-width: 0; padding: 13px 14px; color: #fff; border: 0; outline: 0; background: transparent; }
.show-key { padding: 0 14px; color: #a9c9ff; border: 0; background: transparent; cursor: pointer; }
.hint, .empty, #updated-at { color: #91a2bd; font-size: 13px; line-height: 1.5; }
.error { min-height: 20px; margin: 14px 0 0; color: #ff9a9a; font-size: 14px; }
button { border-radius: 10px; cursor: pointer; }
.primary { width: 100%; margin-top: 10px; padding: 13px 16px; color: #07121f; font-weight: 800; border: 0; background: #75afff; }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: .62; }
.dashboard { margin-top: 66px; }
.dashboard-head, .usage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.header-actions, .ranges { display: flex; gap: 8px; }
.secondary, .ranges button { padding: 9px 12px; color: #d6e4f7; border: 1px solid #3a4d6d; background: #14203a; }
.danger { color: #ffc1c1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat-card, .usage-card { border: 1px solid #2d3f61; border-radius: 16px; background: rgba(14, 23, 43, .78); }
.stat-card { padding: 20px; }
.stat-card strong { display: block; margin-top: 9px; font-size: 22px; letter-spacing: -.03em; }
.usage-card { margin-top: 16px; padding: 24px; }
.ranges button { min-width: 42px; padding: 7px 9px; }
.ranges button.active { color: #081524; border-color: #8bbcff; background: #8bbcff; font-weight: 800; }
.usage-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.usage-item { padding: 14px; border-radius: 12px; background: #101b31; }
.usage-item span { display: block; color: #92a6c5; font-size: 12px; }
.usage-item strong { display: block; margin-top: 7px; font-size: 19px; }
.hidden { display: none; }
@media (max-width: 700px) { .auth-card { padding: 26px 20px; } .dashboard-head, .usage-head { flex-direction: column; } .stats, .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .header-actions { width: 100%; } .header-actions button { flex: 1; } }
@media (max-width: 390px) { .shell { width: min(100% - 24px, 1040px); } .stats, .usage-stats { grid-template-columns: 1fr; } }
