:root { --bg:#f4f7f6; --card:#fff; --ink:#1f2933; --muted:#6b7780; --brand:#0f766e; --ok:#15803d; --warn:#b45309; --bad:#b91c1c; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f1514; --card:#18211f; --ink:#e6ecea; --muted:#94a3a0; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
  padding-bottom: env(safe-area-inset-bottom); }
.top { display:flex; justify-content:space-between; align-items:center; gap:8px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background:var(--brand); color:#fff; }
.top a { color:#fff; text-decoration:none; font-weight:700; }
.code { font-size:14px; opacity:.9; }
main { max-width:560px; margin:0 auto; padding:16px; }
.card { background:var(--card); border-radius:14px; padding:16px; margin:0 0 16px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
h1 { font-size:22px; margin:0 0 12px; } h2 { font-size:18px; margin:0 0 10px; }
label { display:block; margin:10px 0; }
input, select, button { font:inherit; }
input, select { width:100%; padding:10px; border:1px solid #c7d0cd; border-radius:10px; background:var(--card); color:var(--ink); }
button { padding:10px 16px; border:0; border-radius:10px; background:#e2e8e6; color:#1f2933; cursor:pointer; }
button.primary { background:var(--brand); color:#fff; width:100%; margin-top:8px; }
button.link { background:none; color:var(--muted); text-decoration:underline; padding:4px 0; }
.row { display:flex; gap:8px; } .row input { flex:1; }
.big { display:block; width:100%; padding:44px 16px; font-size:28px; font-weight:800; background:var(--brand); color:#fff;
  border-radius:20px; margin:8px 0 12px; box-shadow:0 6px 18px rgba(15,118,110,.35); }
.big:active { transform:scale(.98); } .big:disabled { opacity:.6; }
.status { text-align:center; font-size:18px; font-weight:600; margin:0 0 12px; }
.s-ok { color:var(--ok); } .s-late, .s-pending { color:var(--warn); } .s-alerted { color:var(--bad); } .s-off, .s-tomorrow { color:var(--muted); }
.muted { color:var(--muted); font-size:14px; }
.err { color:var(--bad); font-weight:600; }
.sentence p { line-height:2.4; }
.sentence p input, .sentence p select { display:inline-block; width:auto; padding:4px 8px; }
.sentence p input[name=button_label] { width:12em; }
.days { border:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 12px; }
.days legend { width:100%; margin-bottom:4px; font-weight:600; }
.days label, .check { display:inline-flex; align-items:center; gap:6px; margin:0; }
.days input, .check input { width:auto; }
.foot { text-align:center; } .foot a { color:var(--brand); }
