:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #090b10; color: #edf0f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% -10%, #222b50 0, transparent 38%), #090b10; }
header, .dashboard { width: min(900px, calc(100% - 32px)); margin-inline: auto; }
header { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h1 { margin: 2px 0 0; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.055em; }
h2 { margin: 8px 0 12px; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.eyebrow { margin: 0; color: #8fa8ff; font-weight: 800; font-size: .78rem; letter-spacing: .16em; }
.dashboard { display: grid; gap: 18px; padding-bottom: 48px; }
.panel, .status, .notice { border: 1px solid #252a38; background: rgba(18, 21, 29, .92); border-radius: 16px; }
.panel { padding: clamp(22px, 5vw, 40px); box-shadow: 0 22px 70px rgba(0,0,0,.26); }
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 24px; }
.status > div { display: grid; gap: 6px; align-content: center; }
.status small { color: #8c93a5; font-weight: 700; letter-spacing: .08em; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #45d693; margin-right: 10px; box-shadow: 0 0 16px #45d693; }
.status.paused .status-dot { background: #ffb45f; box-shadow: 0 0 16px #ffb45f; }
.settings-form { display: grid; gap: 24px; }
label { display: grid; gap: 9px; color: #cbd0dc; font-size: .9rem; font-weight: 650; }
label small { color: #8c93a5; font-weight: 500; line-height: 1.45; }
input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #363d4e; border-radius: 9px; color: #fff; background: #0d1017; font: inherit; }
input:focus { outline: 3px solid rgba(103, 132, 255, .25); border-color: #718cff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.toggle { display: flex; align-items: center; gap: 11px; }
.toggle input { width: 20px; min-height: 20px; accent-color: #718cff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; color: #edf0f7; background: none; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.primary { color: #071029; background: #8fa8ff; }
.button.quiet { border-color: #353b4b; }
.notice { margin: 0; padding: 14px 18px; }
.notice.success { border-color: #275a47; color: #8ee2bd; }
.notice.error { border-color: #673638; color: #ffaaaa; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .panel { width: min(480px, 100%); }
.login p:not(.eyebrow) { color: #adb3c2; line-height: 1.6; margin: 18px 0 28px; }
.setup-panel > p:not(.eyebrow), .muted { color: #adb3c2; line-height: 1.6; }
.diagnostics { display: grid; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid #292f3d; border-radius: 10px; }
.diagnostics div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; background: #0d1017; }
.diagnostics dt { color: #8c93a5; font-weight: 700; }
.diagnostics dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code { color: #b8c6ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > small { color: #7f8799; white-space: nowrap; }
.history-list { display: grid; gap: 10px; }
.history-item { display: grid; gap: 13px; padding: 16px; border: 1px solid #292f3d; border-radius: 11px; background: #0d1017; }
.history-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-summary time { color: #aab1c0; font-size: .9rem; }
.history-totals { display: flex; align-items: center; gap: 10px; }
.adjustment { padding: 4px 8px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.adjustment.later { color: #8ee2bd; background: rgba(69, 214, 147, .12); }
.adjustment.earlier { color: #ffc285; background: rgba(255, 180, 95, .12); }
.reactor-list { display: flex; flex-wrap: wrap; gap: 8px; }
.reactor { padding: 6px 9px; border: 1px solid #303747; border-radius: 8px; color: #ccd2df; font-size: .86rem; }
.empty-history { margin: 0; color: #8c93a5; }
@media (max-width: 650px) { header { min-height: 130px; align-items: flex-start; padding-top: 28px; } .status { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; } }
