:root{--red: #b91c1c;--ink: #111827;--muted: #6b7280;--line: #e5e7eb;--bg: #f9fafb;--ok: #15803d;--warn: #b45309;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}h1,h2,h3,h4{margin:.6em 0 .4em}a{color:var(--red)}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--red);color:#fff}.topbar .brand{color:#fff;font-weight:700;text-decoration:none}.topbar select{max-width:55%}.dept{font-size:.9rem;opacity:.9}main{flex:1;width:100%;max-width:720px;margin:0 auto;padding:12px 16px 96px}.bottomnav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;flex-wrap:wrap;gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.bottomnav a,.bottomnav .link{font-size:.9rem;text-decoration:none;padding:6px}.center{min-height:60vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px}.narrow{max-width:420px;margin:0 auto;width:100%}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;gap:8px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--red)}.ok{color:var(--ok)}.code{font-family:ui-monospace,monospace;letter-spacing:.08em}label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}label.checkbox{flex-direction:row;align-items:center;gap:8px}input,select,textarea{font:inherit;padding:10px;border:1px solid #d1d5db;border-radius:8px;background:#fff;min-height:44px}input[type=checkbox]{min-height:0;width:20px;height:20px}button{font:inherit;padding:10px 16px;min-height:44px;border-radius:8px;border:none;background:var(--red);color:#fff;cursor:pointer}button:disabled{opacity:.5}button.secondary{background:#fff;color:var(--ink);border:1px solid #d1d5db}button.danger{background:#7f1d1d}button.link{background:none;color:var(--red);padding:4px 0;min-height:0}.danger-text{color:#7f1d1d!important}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}.cards{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.card{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;color:inherit;text-decoration:none}.badge{font-size:.75rem;font-weight:600;padding:4px 8px;border-radius:999px;background:#e5e7eb;white-space:nowrap}.badge.ok{background:#dcfce7;color:var(--ok)}.badge.due{background:#fef3c7;color:var(--warn)}.badge.overdue,.badge.critical{background:#fee2e2;color:var(--red)}.items{list-style:none;padding:0;margin:8px 0}.items li{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}.items li>span:first-child{flex:1}.items li.inactive{opacity:.45;text-decoration:line-through}.additem{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.additem input:first-child{flex:1 1 180px}.additem .qty{width:80px}fieldset.routing{border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:8px 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px}fieldset.routing legend{font-weight:600;padding:0 4px}.startcheck{display:block;margin:8px 0 4px}.startcheck button{width:100%;font-size:1.05rem}.progress{height:6px;background:var(--line);border-radius:999px;overflow:hidden}.progress>div{height:100%;background:var(--red);transition:width .2s}.seg{display:flex;flex-wrap:wrap;gap:6px}.seg button{background:#fff;color:var(--ink);border:1px solid #d1d5db;padding:8px 12px;min-height:44px}.seg button.on{background:var(--ink);color:#fff;border-color:var(--ink)}.seg button.on.ok{background:var(--ok);border-color:var(--ok)}.seg button.on.bad{background:var(--red);border-color:var(--red)}.seg .reading{width:120px}.checklist{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:8px}.checklist li{background:#fff;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:10px;padding:10px}.checklist li.marked{border-left-color:var(--ok)}.checklist li.problem{border-left-color:var(--red)}.itemname{font-weight:600;margin-bottom:6px}.problemnote{margin-top:8px;gap:6px}.stepnav{position:sticky;bottom:64px;background:var(--bg);padding:10px 0;margin-top:12px}.stepnav button{min-width:120px}button.small{padding:6px 10px;min-height:36px;font-size:.85rem}.photobtn{flex-direction:row;align-items:center;justify-content:center;gap:6px;border:1px dashed #9ca3af;border-radius:8px;padding:10px;min-height:44px;cursor:pointer;color:var(--ink);font-size:.9rem}.photobtn input{display:none}.thumb{width:96px;height:72px;object-fit:cover;border-radius:6px;border:1px solid var(--line);display:block}.thumb.small{width:48px;height:36px}.thumb.placeholder{display:inline-block;width:48px;height:36px;background:var(--line);border-radius:6px}.items li>span:not(.badge):not(.row){flex:1}.tabs{margin:8px 0 12px}.issuecard{display:flex;gap:10px;align-items:flex-start}.grow{flex:1;min-width:0}.stagebar{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px}.stagebar li{font-size:.75rem;padding:4px 8px;border-radius:999px;background:var(--line);color:var(--muted)}.stagebar li.done{background:#dcfce7;color:var(--ok)}.stagebar li.now{background:var(--ink);color:#fff;font-weight:600}details.panel summary{cursor:pointer;font-weight:600}.cards li{display:flex;flex-direction:column}.quickcheck{align-self:flex-end;margin-top:6px;background:var(--red);color:#fff;text-decoration:none;padding:8px 12px;border-radius:8px;font-size:.85rem;font-weight:600}
