:root { --bg:#14161b; --card:#1e2128; --line:#2c3038; --text:#eef0f3; --muted:#9aa1ad; --gold:#d6b25e; --bad:#e5544b; --warn:#e0a63a; --ok:#3fb27f; --work:#5b8def; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text); font:17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; -webkit-text-size-adjust:100%; }
.top { position:sticky; top:0; z-index:5; display:flex; gap:10px; align-items:center; padding:calc(10px + env(safe-area-inset-top)) 16px 10px; background:#101217; border-bottom:1px solid var(--line); }
.top b { color:var(--gold); font-size:19px; } .top #who { flex:1; }
main { padding:14px 14px calc(30px + env(safe-area-inset-bottom)); max-width:640px; margin:0 auto; }
.muted { color:var(--muted); } .small { font-size:14px; } .lede { color:var(--muted); margin:6px 2px 12px; }
.card { display:block; width:100%; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:0 0 10px; color:var(--text); font:inherit; }
.card.unit { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:68px; }
.card h2 { margin:0 0 6px; font-size:21px; } .card h3 { margin:0 0 8px; font-size:17px; color:var(--gold); }
.chip { display:inline-block; padding:4px 10px; border-radius:999px; font-size:14px; font-weight:600; white-space:nowrap; background:#2c3038; }
.chip.ok { background:rgba(63,178,127,.18); color:#6fd4a4; } .chip.warn { background:rgba(224,166,58,.18); color:#f0c06a; }
.chip.bad { background:rgba(229,84,75,.2); color:#ff8d85; } .chip.work { background:rgba(91,141,239,.2); color:#9dbbff; }
.reason { color:var(--muted); font-size:15px; margin-top:4px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.btn { appearance:none; border:0; border-radius:12px; background:var(--gold); color:#1a1a1a; font-family:inherit; font-weight:600; font-size:16px; line-height:1.2; padding:12px 14px; }
.btn.big { min-height:60px; font-size:18px; width:100%; margin:6px 0; } .grid .btn.big { margin:0; }
.btn.small { padding:8px 12px; font-size:15px; white-space:nowrap; flex-shrink:0; } .btn.ghost { background:#2c3038; color:var(--text); }
.btn.bad { background:var(--bad); color:#fff; } .btn.ok { background:var(--ok); color:#fff; } .btn.work { background:var(--work); color:#fff; }
.link { background:none; border:0; color:var(--gold); font:inherit; padding:6px 0; }
.tabs { display:flex; gap:6px; margin:0 0 12px; } .tabs button { flex:1; padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--text); font-family:inherit; font-weight:600; font-size:16px; }
.tabs button.on { background:var(--gold); color:#1a1a1a; border-color:var(--gold); }
input, select, textarea { width:100%; font:inherit; font-size:17px; color:var(--text); background:#12141a; border:1px solid var(--line); border-radius:10px; padding:12px; margin:6px 0; }
label { display:block; color:var(--muted); font-size:14px; } .row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
label.check { display:flex; align-items:center; gap:10px; color:var(--text); font-size:18px; padding:10px 0; border-bottom:1px solid var(--line); }
label.check input { width:26px; height:26px; margin:0; }
.sheet-back { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:20; display:flex; align-items:flex-end; }
.sheet { width:100%; max-height:92vh; overflow:auto; background:#191c22; border-radius:18px 18px 0 0; padding:16px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display:flex; justify-content:space-between; align-items:center; } .sheet-head h2 { font-size:19px; margin:0; }
.x { background:none; border:0; color:var(--muted); font-size:22px; padding:6px 10px; }
.photo-prev img { max-width:100%; border-radius:10px; margin-top:6px; }
.part-line { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.cause { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-top:10px; }
.task { display:flex; justify-content:space-between; gap:10px; align-items:center; } .task.down { border-color:var(--bad); }
.row { display:flex; gap:6px; } .hidden { display:none; }
.pending { background:var(--warn); color:#1a1a1a; border-radius:999px; padding:2px 8px; font-size:13px; }
.toast { position:fixed; left:14px; right:14px; bottom:calc(18px + env(safe-area-inset-bottom)); z-index:30; background:#2a2e36; border:1px solid var(--line); border-radius:12px; padding:14px; text-align:center; }
.toast.bad { border-color:var(--bad); }
.login input { font-size:18px; }
