/* MSHI Watchdog. One column, big type, big buttons: made to be read at a glance on a phone. */
:root {
  --bg: #f3f1ea; --card: #ffffff; --ink: #18202c; --soft: #566070; --line: #dcd7ca; --field: #faf9f5;
  --brand: #1d3557; --brand-ink: #ffffff;
  --ok: #17734a; --ok-bg: #e3f3ea; --warn: #8f5600; --warn-bg: #fdf0d6; --red: #b3241c; --red-bg: #fde6e3; --info: #566070; --info-bg: #eceae3;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131a; --card: #171e29; --ink: #e9edf2; --soft: #9aa5b5; --line: #273142; --field: #111822;
    --brand: #9cc0f0; --brand-ink: #0e131a;
    --ok: #55c993; --ok-bg: #12301f; --warn: #f1b54a; --warn-bg: #33260c; --red: #ff7468; --red-bg: #3a1512; --info: #9aa5b5; --info-bg: #1d2532;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 620px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
.boot { color: var(--soft); text-align: center; margin-top: 30vh; }
a { color: var(--brand); }
h1 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; font-weight: 700; }
h2 { font-size: 1.02rem; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.soft { color: var(--soft); }
.small { font-size: .88rem; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.top img { width: 34px; height: 34px; border-radius: 8px; }
.top .grow { flex: 1; }

/* the big answer at the top */
.hero { border-radius: var(--radius); padding: 22px 18px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); }
.hero .word { font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.hero.ok { background: var(--ok-bg); border-color: transparent; } .hero.ok .word { color: var(--ok); }
.hero.warn { background: var(--warn-bg); border-color: transparent; } .hero.warn .word { color: var(--warn); }
.hero.red { background: var(--red-bg); border-color: var(--red); } .hero.red .word { color: var(--red); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card.alert { border-left: 6px solid var(--warn); }
.card.alert.red { border-left-color: var(--red); }
.card.alert .title { font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.card.ask { border-left: 6px solid var(--brand); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

button, .btn { font: inherit; font-weight: 650; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.plain, .btn.plain { background: transparent; color: var(--brand); }
button.quiet { background: transparent; color: var(--soft); border-color: var(--line); font-weight: 500; }
button.wide, .btn.wide { width: 100%; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

label { display: block; font-weight: 650; margin: 14px 0 6px; }
input { font: inherit; width: 100%; min-height: 50px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); }
input.code { font-size: 1.5rem; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.key { font: 600 1.1rem/1.6 ui-monospace, Consolas, monospace; letter-spacing: .08em; word-spacing: .3em; background: var(--field); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
.msg { border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.msg.good { background: var(--ok-bg); color: var(--ok); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 44px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps > li.done::before { content: "\2713"; background: var(--ok); color: var(--card); }
.steps > li.done > .what { color: var(--soft); }

/* the list of checks */
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; align-items: center; gap: 10px; font-weight: 650; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary .count { margin-left: auto; color: var(--soft); font-weight: 500; font-size: .9rem; }
.dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; background: var(--info-bg); color: var(--info); }
.dot.ok { background: var(--ok-bg); color: var(--ok); } .dot.yellow { background: var(--warn-bg); color: var(--warn); } .dot.red { background: var(--red-bg); color: var(--red); }
.check { display: flex; gap: 10px; padding: 8px 0 8px 4px; align-items: flex-start; }
.check .text { flex: 1; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 9px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .when { display: block; color: var(--soft); font-size: .84rem; }
.foot { text-align: center; color: var(--soft); font-size: .84rem; margin-top: 22px; }
.foot .row { justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .hero, .card { transition: background-color .25s, border-color .25s; } }
