:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202b29; background: #f8faf9; font-size: 14px; font-variant-numeric: tabular-nums; --accent: #0f766e; --muted: #616d68; --line: #dce3df; --negative: #a13e42; }
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
.sidebar { width: 206px; position: fixed; inset: 0 auto 0 0; background: #eff3f0; border-right: 1px solid var(--line); padding: 28px 18px; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 650; }
.account-label { margin: 35px 10px 24px; font-weight: 600; }
.account-label span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; }
nav { display: grid; gap: 5px; }
nav a { padding: 12px; border-radius: 4px; font-size: 13px; color: #53615b; transition: background 160ms ease, color 160ms ease; }
nav a:hover { background: #e5ebe7; color: #202b29; }
nav a.active { background: #dfeae3; color: #145d52; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding: 24px 10px 0; }
.sidebar-bottom p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
body.signed-in .workspace { margin-left: 206px; }
header { height: 65px; padding: 0 36px; display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: #35443d; }
.breadcrumb span { color: #86918a; margin: 0 10px; }
.mobile-brand { display: none; font-size: 18px; font-weight: 650; }
.brand img, .mobile-brand img { display: block; flex-shrink: 0; }
body:not(.signed-in) .mobile-brand { display: inline-flex; align-items: center; gap: 9px; }
.badge { display: inline-flex; font-size: 11px; font-weight: 600; color: #7b571b; background: #f7eedb; padding: 4px 8px; border-radius: 4px; }
.header-end { margin-left: auto; color: var(--muted); font-size: 12px; }
#logout { width: 34px; min-height: 34px; padding: 7px; border-color: transparent; }
main { max-width: 1560px; margin: auto; padding: 34px 36px 12px; }
h1 { font-size: 28px; font-weight: 600; margin: 0; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
p { line-height: 1.5; }
.muted, dt { color: var(--muted); }
.title-row, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#freshness { font-size: 12px; margin: 9px 0 0; }
.controls, .segments { display: flex; gap: 7px; flex-shrink: 0; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid #cbd5cf; background: #fff; color: #35433e; border-radius: 4px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; touch-action: manipulation; transition: background 160ms ease, border-color 160ms ease; }
button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button:hover:not(:disabled) { background: #eef3f0; border-color: #a4b7ab; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #0c625c; border-color: #0c625c; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notice { font-size: 12px; color: #285e4b; background: #edf5ef; padding: 11px 14px; margin: 24px 0 0; border-radius: 4px; }
.notice.warning { color: #795314; background: #fbf2df; }
[role="alert"] { color: var(--negative); font-size: 13px; overflow-wrap: anywhere; }
[role="alert"]:empty { display: none; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 28px 0 30px; gap: 24px; }
.metrics > div { border-right: 1px solid var(--line); padding-right: 18px; }
.metrics > div:last-child { border: 0; }
dt { font-size: 12px; }
dt span { font-size: 10px; margin-left: 5px; color: #65796d; }
dd { margin: 9px 0 0; }
.metrics dd { font-size: 28px; font-weight: 550; line-height: 1.3; overflow-wrap: anywhere; }
.metrics small { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }
#dashboard > section { border-top: 1px solid var(--line); padding: 26px 0 30px; scroll-margin-top: 24px; }
.performance-layout { display: grid; grid-template-columns: minmax(0, 1fr) 192px; gap: 28px; }
.chart-section { min-width: 0; }
.segments { background: #edf1ee; padding: 3px; border-radius: 4px; gap: 2px; }
.segments button { border: 0; min-height: 28px; padding: 5px 9px; font-size: 11px; background: transparent; }
.segments [aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px #15291d14; }
.chart-wrap { margin-top: 26px; }
#chart { width: 100%; height: 280px; display: block; touch-action: pan-y; }
#chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
#chart-detail { min-height: 18px; margin: 12px 0 0; font-size: 11px; }
.risk-panel { padding: 5px 0 0 24px; border-left: 1px solid var(--line); }
.risk-panel dl { margin: 20px 0 0; }
.risk-panel dl > div { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 23px; align-items: baseline; }
.risk-panel dd { margin: 0; font-size: 13px; font-weight: 600; }
.risk-panel dt { font-size: 11px; }
.risk-panel p { font-size: 11px; color: var(--muted); margin: 24px 0 0; }
.section-meta { font-size: 11px; color: var(--muted); }
.table-scroll { overflow: auto; margin-top: 20px; scrollbar-color: #b1c0b6 #eef2ef; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 11px; font-weight: 500; color: var(--muted); padding: 11px 14px; background: #f0f4f1; }
td { padding: 15px 14px; border-bottom: 1px solid #e7ece8; font-size: 12px; }
th:first-child, td:first-child { padding-left: 12px; }
tbody tr:hover { background: #f0f5f1; }
td.empty { color: var(--muted); white-space: normal; padding: 30px 12px; text-align: center; }
.positive { color: var(--accent); }
.negative { color: var(--negative); }
details summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; margin: 24px 0 0; }
.health dd { font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; }
#login { max-width: 380px; margin: 60px auto 90px; }
#login h1 { font-size: 25px; }
#login form { margin-top: 30px; }
label { display: block; font-size: 12px; margin: 18px 0 8px; color: #35433e; }
input { width: 100%; min-height: 44px; border: 1px solid #c6d3ca; border-radius: 4px; background: #fff; color: #202b29; padding: 10px 12px; font: inherit; font-size: 16px; caret-color: var(--accent); }
#sign-in, #restart { width: 100%; margin-top: 24px; min-height: 42px; }
#restart { margin-top: 12px; }
#setup-key { display: block; font-family: monospace; overflow-wrap: anywhere; padding: 16px 0; color: var(--accent); }
footer { max-width: 1560px; margin: auto; border-top: 1px solid var(--line); padding: 18px 36px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
::selection { background: #cce5dc; color: #153c30; }
@media (max-width: 760px) { .workspace header .mobile-brand { display: inline-flex; align-items: center; gap: 8px; } header { gap: 10px; } }
@media (max-width: 1100px) { .sidebar { width: 180px; } body.signed-in .workspace { margin-left: 180px; } main, header { padding-left: 24px; padding-right: 24px; } .performance-layout { grid-template-columns: minmax(0, 1fr); } .risk-panel { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; } .risk-panel dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .risk-panel dl > div { display: block; margin: 0; } .risk-panel dd { margin-top: 7px; } .risk-panel p { margin-top: 16px; } .metrics dd { font-size: 24px; } }
@media (max-width: 760px) { html { scroll-padding-top: 20px; } .sidebar { position: static; width: 100%; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar .brand, .account-label, .sidebar-bottom { display: none; } nav { display: flex; overflow: auto; gap: 4px; } nav a { white-space: nowrap; padding: 10px; font-size: 12px; } body.signed-in .workspace { margin-left: 0; } header { height: 58px; padding: 0 16px; gap: 12px; } .mobile-brand { display: inline; } .breadcrumb { display: none; } main { padding: 24px 16px 8px; } h1 { font-size: 25px; } .title-row { align-items: flex-start; flex-wrap: wrap; } .controls { margin-top: 4px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .metrics > div:nth-child(2) { border: 0; } .metrics dd { font-size: 25px; } .section-title { flex-wrap: wrap; gap: 12px; } .risk-panel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } #chart { height: 230px; } .health { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } footer { padding: 18px 16px; } #login { margin-top: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
