:root {
  --primary: #0B57D0;
  --primary-dark: #0842A0;
  --on-surface: #1F1F1F;
  --muted: #444746;
  --outline: #C4C7C5;
  --field: #747775;
  --panel: #F0F4F9;
  --selected: #D3E3FD;
  --green: #146C2E;
  --green-bg: #C4EED0;
  --red: #B3261E;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--on-surface); font-family: Roboto, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--outline); }
.brand { font-family: 'Roboto Mono', monospace; font-weight: 500; font-size: 15px; }
.brand span { color: var(--primary); }
main { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; display: flex; flex-direction: column; gap: 24px; }
h1 { margin: 0; font-weight: 400; font-size: 32px; line-height: 1.2; }
h2 { margin: 0; font-weight: 500; font-size: 20px; }
h3 { margin: 0; font-weight: 500; font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: 'Roboto Mono', monospace; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.card { border: 1px solid var(--outline); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border-radius: 16px; padding: 16px; }
label { font-weight: 500; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
input[type=email], input[type=password], input[type=date] { font: inherit; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 4px; background: #fff; color: var(--on-surface); width: 100%; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--selected); outline-offset: 2px; }
.btn { font: inherit; font-weight: 500; min-height: 44px; padding: 10px 22px; border-radius: 100px; border: 1px solid var(--on-surface); background: #fff; color: var(--on-surface); cursor: pointer; }
.btn.primary { border: 0; background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.dark { border: 0; background: var(--on-surface); color: #fff; }
.btn.text { border: 0; color: var(--primary); padding: 10px 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { border: 2px solid var(--outline); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.tile.on { border-color: var(--primary); background: var(--selected); }
.tile.off { color: var(--muted); }
.tile b { font-weight: 500; }
.status { font-family: 'Roboto Mono', monospace; font-size: 13px; color: var(--primary); }
.status.ready { color: var(--green); }
.status.idle { color: var(--muted); }
.status.bad { color: var(--red); }
.bar { height: 8px; background: var(--selected); border-radius: 4px; overflow: hidden; }
.bar > div { height: 8px; background: var(--primary); transition: width .4s; }
.bar.ready > div { background: var(--green); }
.bar.idle > div { background: var(--field); }
.feed { background: var(--panel); border-radius: 12px; padding: 12px 14px; font-family: 'Roboto Mono', monospace; font-size: 12px; line-height: 1.7; color: var(--muted); max-height: 220px; overflow: auto; white-space: pre-wrap; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--panel); }
.notice.err { background: #F9DEDC; color: #601410; }
.notice.ok { background: var(--green-bg); color: #0A3818; }
