:root { --bg:#f6f7f8; --panel:#fff; --ink:#1c2126; --muted:#5d6872; --line:#d9dee3; --accent:#17603f; --accent-ink:#fff; --bad:#a32020; --warn:#8a5a00; --ok:#17603f; color-scheme:light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#14181b; --panel:#1d2226; --ink:#e7eaec; --muted:#9aa5ae; --line:#333b42; --accent:#4cb587; --accent-ink:#08150f; --bad:#ef8585; --warn:#e0b050; --ok:#4cb587; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.top { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; padding:10px 20px; background:var(--panel); border-bottom:1px solid var(--line); }
.brand { font-weight:700; color:var(--ink); text-decoration:none; }
.top nav { display:flex; flex-wrap:wrap; gap:4px 14px; flex:1; }
.logout { display:flex; gap:10px; align-items:center; font-size:14px; }
main { max-width:1080px; margin:0 auto; padding:20px 16px 60px; }
h1 { font-size:24px; margin:0 0 12px; } h2 { font-size:18px; margin:0 0 10px; }
a { color:var(--accent); }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:18px; margin:14px 0; }
.narrow { max-width:440px; margin:40px auto; }
.stack { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.stack label { display:flex; flex-direction:column; gap:4px; width:100%; font-weight:500; }
.stack label.check { flex-direction:row; gap:8px; font-weight:400; align-items:center; }
input,select,textarea { font:inherit; color:inherit; padding:8px 10px; background:var(--bg); border:1px solid var(--line); border-radius:6px; max-width:100%; }
.stack input:not([type=checkbox]):not([type=radio]),.stack select,.stack textarea { width:100%; }
textarea { min-height:200px; }
button,.button { font:inherit; padding:8px 14px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); cursor:pointer; text-decoration:none; display:inline-block; }
.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.danger { color:var(--bad); border-color:var(--bad); }
button.link { background:none; border:0; padding:0; color:var(--accent); text-decoration:underline; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
th,td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top; font-size:15px; }
th { color:var(--muted); font-weight:600; font-size:13px; }
.muted { color:var(--muted); } .error { color:var(--bad); } .warn { color:var(--warn); } .ok { color:var(--ok); }
.row { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.tile { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:14px; color:var(--muted); }
.big { display:block; font-size:26px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.badge { display:inline-block; padding:1px 8px; border:1px solid var(--line); border-radius:99px; font-size:13px; }
.badge.risk { color:var(--bad); border-color:var(--bad); }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:14px; }
.quote { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--bg); padding:10px 12px; border-radius:6px; font-size:15px; }
code { overflow-wrap:anywhere; font-size:14px; }
.banner { padding:10px 14px; border:1px solid var(--warn); color:var(--warn); border-radius:6px; margin:10px 0; }
.inline { display:inline-flex; gap:8px; align-items:center; flex-wrap:wrap; }
a.tile { text-decoration:none; }
.next { border-color:var(--accent); }
.next h2 { margin-top:0; }
.checklist { list-style:none; margin:0; padding:0; }
.step { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.step:last-child { border-bottom:0; }
.step p { margin:2px 0 0; color:var(--muted); }
.mark { flex:none; width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; border:1px solid var(--line); }
.step.ok .mark { color:var(--ok); border-color:var(--ok); }
.step.todo .mark { color:var(--muted); }
.step.problem .mark { color:var(--bad); border-color:var(--bad); }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.draft-only { border-color:var(--accent); color:var(--ink); }
fieldset { border:0; margin:0; padding:0; }
legend { font-weight:600; margin-bottom:6px; }
.step strong { color:var(--ink); }
