/* Plain, phone-first layout for round 2. Restyled once a theme is approved. */
*{box-sizing:border-box}
body{margin:0;font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1d1d1f;background:#f6f6f4}
header{background:#1d1d1f;color:#fff;padding:.7rem 1rem;font-size:1.05rem;letter-spacing:.02em}
nav{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;padding:.6rem 1rem;background:#fff;border-bottom:1px solid #ddd}
nav a,button.link{color:#1d4ed8;text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer;min-height:auto;width:auto;margin:0}
.who{margin:.4rem 1rem 0;color:#555;font-size:.9rem}
main{max-width:40rem;margin:0 auto;padding:1rem}
h1{font-size:1.4rem;margin:.4rem 0 1rem}
h2{font-size:1.1rem;margin:1.6rem 0 .5rem}
label{display:block;margin:.9rem 0 .3rem;font-weight:600}
label.tick{font-weight:400;display:flex;gap:.5rem;align-items:center}
input,select{width:100%;padding:.7rem;font:inherit;border:1px solid #bbb;border-radius:8px;background:#fff}
input[type=checkbox]{width:1.3rem;height:1.3rem}
button,.button{display:inline-block;margin-top:1rem;min-height:48px;padding:.7rem 1.1rem;font:inherit;font-weight:600;color:#fff;
  background:#1d4ed8;border:0;border-radius:8px;cursor:pointer;text-decoration:none;width:100%;text-align:center}
button.small{min-height:36px;padding:.3rem .7rem;margin:0 0 0 .5rem;width:auto;font-weight:400;background:#555}
button.danger{background:#b42318}
form.inline{display:inline}
.flash{padding:.7rem;border-radius:8px}
.flash.ok{background:#e7f6ec;color:#14532d}
.flash.error{background:#fdecea;color:#7f1d1d}
.hint{color:#555;font-size:.9rem}
.tag{display:inline-block;font-size:.75rem;padding:.05rem .4rem;border-radius:4px;background:#eee;color:#333}
ul.people,ul.grants,ul.menu{list-style:none;padding:0}
ul.people li,ul.grants li,ul.menu li{background:#fff;border:1px solid #e3e3e3;border-radius:8px;padding:.7rem;margin:.4rem 0}
.linkbox{background:#fff8e1;border:1px solid #f0d58a;border-radius:8px;padding:.8rem;margin:1rem 0}
code{word-break:break-all}
input.link{font-family:ui-monospace,monospace;font-size:.85rem}
/* Doing the checks (B5): large touch targets for the shop tablet. */
textarea{width:100%;padding:.7rem;font:inherit;border:1px solid #bbb;border-radius:8px;background:#fff}
fieldset{border:1px solid #ddd;border-radius:8px;background:#fff;padding:.6rem .8rem .9rem;margin:.8rem 0}
fieldset.has-error{border-color:#b42318}
legend{font-weight:600;padding:0 .3rem}
.choices{display:grid;gap:.5rem;margin:.4rem 0}
label.choice{display:flex;align-items:center;gap:.7rem;min-height:56px;padding:.6rem .9rem;margin:0;border:2px solid #bbb;border-radius:10px;background:#fff;font-weight:600;cursor:pointer}
label.choice.bad{border-color:#e0a09a}
label.choice input[type=radio]{width:1.5rem;height:1.5rem;flex:none}
label.choice:has(input:checked){border-color:#1d4ed8;background:#eef3ff}
label.choice.bad:has(input:checked){border-color:#b42318;background:#fdecea}
details{margin:.6rem 0}
summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#1d4ed8}
a.button.secondary{background:#fff;color:#1d4ed8;border:2px solid #1d4ed8;margin-top:.5rem}
ul.checks .button{margin-top:.6rem}
.status{font-weight:600}
.status.missed{color:#b42318}
.status.done,.status.done_late{color:#14532d}
a.small{display:inline-block;padding:.5rem 0;color:#1d4ed8}
li.answered{background:#f3f8f4}
/* Home, alerts and compliance (B7). Alerts are red and on screen only. */
.alertbox{background:#fdecea;border:2px solid #b42318;border-radius:10px;padding:.2rem .9rem .8rem;margin:1rem 0;color:#5f1209}
.alertbox h2{margin-top:.8rem;color:#7f1d1d}
.alertbox h3{font-size:1rem;margin:1rem 0 .3rem;color:#555}
ul.alerts{list-style:none;padding:0}
ul.alerts li.alert{background:#fff;border:1px solid #e0a09a;border-left:6px solid #b42318;border-radius:8px;padding:.6rem;margin:.4rem 0;color:#1d1d1f}
ul.alerts li.alert.seen{background:#f1f1f1;border-color:#ccc;border-left-color:#999;color:#666}
.tag.sev-critical,.tag.sev-missed{background:#b42318;color:#fff}
.tag.sev-serious,.tag.sev-overdue{background:#f5c2bd;color:#5f1209}
.tag.sev-routine,.tag.sev-signoff{background:#eee;color:#333}
section.today{margin:1rem 0}
table.figures{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e3e3e3;border-radius:8px}
table.figures th,table.figures td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #eee;font-weight:400;vertical-align:top}
table.figures td{text-align:right;font-weight:600}
table.figures thead th{font-weight:600;background:#f6f6f4}
div.problem{margin:.4rem 0}
