/* MR sign-off - mobile first, NOTHING scrolls (Paul's rule): every view is one screen, long lists are paged, the form is a 4-step wizard. */
:root { --red: #c8102e; --ink: #1f2933; --muted: #5f6b76; --line: #dfe3e6; --soft: #f4f6f8; --ok: #1a7f37; --bad: #b42318; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font: 15px/1.35 system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--soft); display: flex; flex-direction: column; }
header { background: var(--red); color: #fff; flex: none; padding-top: env(safe-area-inset-top); }
header .in { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; max-width: 720px; margin: 0 auto; width: 100%; }
header b { font-size: 16px; } header span { font-size: 13px; opacity: .9; flex: 1; }
.lnk { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-size: 13px; padding: 4px; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 720px; margin: 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
h1 { font-size: 19px; margin: 2px 0 0; } h2 { font-size: 16px; margin: 0 0 4px; }
p { margin: 0; } .muted { color: var(--muted); font-size: 13px; } .err { color: var(--bad); font-size: 14px; } .ok { color: var(--ok); }
label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 9px 10px; border: 1px solid #c3cad1; border-radius: 8px; background: #fff; width: 100%; min-height: 42px; }
input[type=file] { padding: 7px; font-size: 14px; }
button.big { background: var(--red); color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 600; padding: 12px 16px; min-height: 46px; }
button.big.ghost { background: #fff; color: var(--ink); border: 1px solid #c3cad1; }
button.big:disabled { opacity: .5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bar { display: flex; gap: 8px; flex: none; } .bar button { flex: 1; }
.job { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; color: var(--ink); }
.job b { color: var(--red); } .job .s { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { display: flex; gap: 5px; flex: none; } .steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--red); }
canvas.sig { width: 100%; height: 150px; border: 1px dashed #8a949d; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); } .chk input { width: 22px; min-height: 22px; margin-top: 1px; }
.ph { display: flex; gap: 6px; } .ph img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 2px 8px; font-size: 14px; } .kv div:nth-child(odd) { color: var(--muted); } .kv div { overflow: hidden; text-overflow: ellipsis; }
.center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; flex: 1; }
@media (max-height: 560px) { main { gap: 5px; } .card { padding: 7px 10px; } canvas.sig { height: 110px; } }
