:root{
  --deep:#07150f;--deep-2:#0a2117;--dark:#143225;--dark-2:#1b432d;--green:#408242;--green-bright:#58a65d;
  --gold:#fdc838;--red:#e2443d;--blue:#1f6389;--purple:#8063a8;--surface:#121a16;--surface-2:#19231e;
  --surface-3:#202d26;--line:#32433a;--text:#f6f8f6;--muted:#b7c6bd;--soft:#d9e2dc;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--deep)
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{min-height:100%;max-width:100%;overflow-x:hidden}
body{margin:0;display:grid;grid-template-columns:286px minmax(0,1fr);background:radial-gradient(circle at 76% -15%,#214b33 0,#0d2519 27%,#07150f 67%);color:var(--text)}
button,input,select,textarea{font:inherit}button{touch-action:manipulation}img{max-width:100%}

.sidebar{height:100vh;position:sticky;top:0;z-index:40;padding:22px 18px 18px;background:linear-gradient(180deg,#123b27 0,#082117 52%,#06150f 100%);border-right:1px solid #31513f;box-shadow:18px 0 44px #0003;display:flex;flex-direction:column}
.sidebar-top{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 6px 12px #0007)}.brand small,.mobile-brand small{display:block;color:var(--gold);font-size:9px;letter-spacing:.12em;font-weight:950}.brand b{display:block;font-size:19px;margin-top:3px;white-space:nowrap}.menu-close{display:none;border:0;background:transparent;color:#fff;font-size:32px;line-height:1;cursor:pointer}
nav{display:grid;gap:6px;margin-top:28px}nav button{border:1px solid transparent;background:transparent;color:#c6d5cc;padding:12px 14px;text-align:left;border-radius:11px;cursor:pointer;font-weight:720;transition:.18s ease}nav button:hover{background:#ffffff0b;color:#fff}nav button.active{background:linear-gradient(90deg,#2f5c41,#244d35);color:#fff;border-color:#426d52;box-shadow:inset 4px 0 0 var(--gold)}nav button.attention-link:not(.active){color:#ffd2cf}
.side-footer{margin-top:auto;padding:18px 8px 0;border-top:1px solid #31533d;display:grid;gap:4px;font-size:10px;letter-spacing:.12em}.side-footer strong{color:var(--gold)}.side-footer small{color:#8fa89a}
.mobile-topbar{display:none}.drawer-backdrop{display:none}

main{min-width:0;padding:32px clamp(20px,3vw,52px);overflow:auto}
.auth-card{position:relative;width:min(100%,480px);margin:clamp(32px,8vh,90px) auto;background:linear-gradient(155deg,#1b2b22,#101914);border:1px solid #3c5546;border-top:4px solid var(--green);border-radius:24px;padding:32px;box-shadow:0 28px 80px #0009,0 0 0 1px #ffffff05}
.auth-card h1{font-size:clamp(30px,4vw,42px);margin:8px 0 8px;line-height:1.05}.auth-copy{color:var(--muted);line-height:1.55;margin:0 0 22px}.auth-card label{display:grid;gap:7px;font-size:13px;font-weight:850;margin:14px 0;color:var(--soft)}.auth-card input{width:100%;padding:14px 15px;border:1px solid #44594d;border-radius:11px;background:#0c1510;color:#fff}.auth-card input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{outline:3px solid #fdc83833;border-color:var(--gold)}.build{display:inline-block;padding:5px 9px;border-radius:999px;background:#2b4d37;color:#dbe9df;font-size:10px;font-weight:900;letter-spacing:.08em}.security-note{color:#88a091;font-size:12px;margin-top:18px;border-top:1px solid #314139;padding-top:16px}.error{color:#ff908a;font-weight:800;min-height:20px}.primary-action{width:100%;padding:14px 18px;border:0;border-radius:11px;background:linear-gradient(180deg,#4f9b54,#397c40);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 10px 22px #1e5d2a55}.primary-action:hover{filter:brightness(1.08)}.primary-action:disabled{opacity:.55;cursor:not-allowed}
.eyebrow,.panel-kicker{color:var(--gold);font-weight:950;letter-spacing:.13em;font-size:11px;margin:0;text-transform:uppercase}

.workspace-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.workspace-header h1{margin:5px 0 5px;font-size:clamp(28px,3vw,42px);line-height:1.08}.workspace-header p:last-child{margin:0;color:var(--muted)}.userbox{display:flex;align-items:center;gap:12px;padding:8px 9px 8px 14px;border:1px solid #33483d;border-radius:999px;background:#102119}.userbox span{font-size:12px;color:#d8e2dc;max-width:300px}.logout{border:1px solid #4e6659;background:transparent;color:#fff;padding:9px 13px;border-radius:999px;cursor:pointer;font-weight:800}.logout:hover{background:#ffffff0d}
.brand-stripe{display:grid;grid-template-columns:2.2fr 3fr 1.2fr 1.2fr;height:5px;gap:4px;margin:21px 0 24px}.brand-stripe i:nth-child(1){background:var(--gold)}.brand-stripe i:nth-child(2){background:var(--green)}.brand-stripe i:nth-child(3){background:var(--red)}.brand-stripe i:nth-child(4){background:var(--blue)}
.flash{padding:13px 16px;border-radius:12px;margin-bottom:18px;font-weight:800}.flash.ok{background:#183c25;color:#c9f1d2;border-left:5px solid var(--green-bright)}.flash.bad{background:#49201f;color:#ffd2cf;border-left:5px solid var(--red)}

.stats{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:14px;margin-bottom:22px}.stats article{position:relative;overflow:hidden;background:linear-gradient(160deg,#1a2820,#111a15);border:1px solid #33483d;border-radius:17px;padding:18px;box-shadow:0 14px 34px #0004}.stats article::after{content:"";position:absolute;right:-28px;top:-32px;width:84px;height:84px;border-radius:50%;background:currentColor;opacity:.08}.stats small{display:block;color:var(--muted)}.stats strong{display:block;font-size:32px;margin-top:8px}.stat-blue{border-top:4px solid var(--blue)!important;color:#7fc0e7}.stat-green{border-top:4px solid var(--green)!important;color:#82ce87}.stat-gold{border-top:4px solid var(--gold)!important;color:#ffe06e}.stat-red{border-top:4px solid var(--red)!important;color:#ff8c86}.stat-purple{border-top:4px solid var(--purple)!important;color:#bd9de6}
.panel{background:linear-gradient(155deg,#17231d,#101713);border:1px solid #33453b;border-radius:18px;box-shadow:0 14px 38px #0004;overflow:hidden}.panelhead{padding:18px 20px;border-bottom:1px solid #2f4037;display:flex;justify-content:space-between;align-items:center;gap:12px}.panelhead h2{margin:3px 0 0;font-size:20px}.panelhead>span{color:#94a79b;font-size:12px}.tablewrap{overflow:auto;max-width:100%;scrollbar-color:#42604f #111a15}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid #2b3a32;vertical-align:top}th{font-size:10px;color:#91a399;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;background:#0f1813}td{font-size:13px;color:#edf2ef}td small{color:#9aaba1}tbody tr:hover{background:#ffffff04}
.pill{display:inline-block;padding:6px 9px;border-radius:999px;font-weight:900;font-size:10px;text-transform:uppercase;white-space:nowrap}.pill.on,.pill.accepted,.pill.on_duty{background:#1e4b2e;color:#bceac7}.pill.wait,.pill.assigned,.pill.awaiting_incoming{background:#4e4016;color:#ffdf65}.pill.completed{background:#313b35;color:#c4cec7}.pill.accepted_with_concerns{background:#553116;color:#ffc691}.pill.uncovered,.pill.critical{background:#592321;color:#ffb2ad}
.split{display:grid;grid-template-columns:minmax(340px,.8fr) minmax(520px,1.35fr);gap:18px}.dual-forms{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.form-panel{align-self:start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px}.form-grid label{display:grid;gap:7px;font-size:12px;font-weight:850;color:#d6e0da}.form-grid .full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{padding:12px 13px;border:1px solid #42574b;border-radius:10px;width:100%;background:#0b1510;color:#f6f8f6}.form-grid select option{background:#102018;color:#fff}.form-grid small{font-weight:500;color:#94a79b}.mini{border:1px solid #4a6254;background:#17271e;color:#e6eee9;padding:8px 11px;border-radius:9px;cursor:pointer}.mini:hover{border-color:var(--gold);color:var(--gold)}
.coming{background:linear-gradient(145deg,#18261e,#101713);border:1px solid #35483d;border-left:5px solid var(--gold);border-radius:18px;padding:30px;box-shadow:0 14px 38px #0004}.coming.attention{border-left-color:var(--red)}.coming.attention .panel-kicker{color:#ff918b}.coming h2{margin:5px 0 10px}.coming p:last-child{color:var(--muted);line-height:1.6}

@media(max-width:1240px){.stats{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1fr}.dual-forms{grid-template-columns:1fr}}
@media(max-width:900px){
  body{display:block;padding-top:72px}.mobile-topbar{position:fixed;inset:0 0 auto 0;height:72px;z-index:60;display:flex;align-items:center;justify-content:space-between;padding:10px 15px;background:linear-gradient(90deg,#103522,#082318);border-bottom:1px solid #385441;box-shadow:0 8px 24px #0007}.mobile-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.mobile-brand img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 4px 8px #0008)}.mobile-brand strong{display:block;font-size:16px;margin-top:2px}.menu-btn{width:46px;height:46px;border:1px solid #496553;border-radius:12px;background:#ffffff08;display:grid;place-content:center;gap:5px;cursor:pointer}.menu-btn span{display:block;width:22px;height:2px;background:#fff;border-radius:3px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(86vw,330px);height:100dvh;z-index:80;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 45px #000a}.sidebar.open{transform:translateX(0)}.menu-close{display:block}.drawer-backdrop{position:fixed;inset:0;z-index:70;border:0;background:#000a}.drawer-backdrop:not([hidden]){display:block}.brand img{width:52px;height:52px}main{padding:22px 16px}.auth-card{margin:22px auto}.workspace-header{padding-top:4px}.stats{grid-template-columns:repeat(2,1fr)}.userbox span{display:none}.userbox{padding:6px}.logout{padding:9px 12px}
}
@media(max-width:560px){main{padding:18px 12px}.auth-card{padding:24px 20px;border-radius:20px}.auth-card h1{font-size:31px}.workspace-header{display:block}.userbox{width:max-content;margin-top:14px}.stats{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;padding:16px}.form-grid .full{grid-column:auto}.panelhead{align-items:flex-start}.panelhead h2{font-size:18px}.brand-stripe{margin:16px 0 18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.manual-bar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.manual-link{display:inline-block;background:#143225;color:white;border:1px solid #d8b450;border-radius:9px;padding:10px 14px;font-weight:700;font-size:13px;text-decoration:none}.manual-link:focus{outline:3px solid #e9b928}.report-item{border:1px solid #cfdbd1;border-left:5px solid #418044;padding:18px;border-radius:10px;margin:12px 0;background:#fff;color:#172b20;overflow-wrap:anywhere}.report-item.emergency{border-left-color:#b42226;background:#fff6f5}.report-item pre{font-family:inherit;white-space:pre-wrap;margin:10px 0;line-height:1.6}.report-note{padding:0 20px;line-height:1.6}.report-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.report-actions textarea{min-height:65px;flex:1 1 200px}.report-actions select{min-width:150px}.evidence-button{margin:5px;padding:8px 12px;width:auto}.mobile-nav{display:flex;overflow-x:auto;gap:4px}.mobile-nav button{min-width:70px}.manual-bar a{white-space:normal}#reportForm label{display:grid;gap:7px;margin:14px 0}#reportForm input,#reportForm textarea,#reportForm select{width:100%;padding:12px;border:1px solid #bfcebf;border-radius:8px;font:inherit}.report-item h3{margin:0 0 8px}.report-item small{line-height:1.7}
