:root{--navy:#14213d;--blue:#2563eb;--bg:#f4f6fa;--card:#fff;--line:#e3e7ef;--muted:#6b7280;--ok:#16a34a;--warn:#d97706;--bad:#dc2626;--idle:#cbd5e1}
*{box-sizing:border-box}
body{margin:0;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:#1f2937}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
.topbar{position:fixed;top:0;left:0;right:0;height:52px;background:var(--navy);color:#fff;display:flex;align-items:center;padding:0 16px;gap:12px;z-index:20}
.brand{color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;gap:8px}.brand:hover{text-decoration:none}
.brand .dot{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.25)}
.who{margin-left:auto;font-size:13px;opacity:.9}.who a{color:#cfe0ff}
.navtoggle{display:none;background:none;border:0;color:#fff;font-size:20px;cursor:pointer}
.side{position:fixed;top:52px;bottom:0;left:0;width:200px;background:#fff;border-right:1px solid var(--line);padding:12px 0;z-index:10}
.side a{display:block;padding:10px 20px;color:#374151;font-weight:500}.side a:hover{background:#f1f5f9;text-decoration:none}
.side a.on{color:var(--blue);background:#eef4ff;border-left:3px solid var(--blue);padding-left:17px}
main{margin:52px 0 0 200px;padding:22px 26px 60px;max-width:1400px}
h1{font-size:22px;margin:0 0 18px}h2{font-size:16px;margin:0 0 12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:18px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.stat .v{font-size:22px;font-weight:700}.stat .l{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
table{width:100%;border-collapse:collapse}th,td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-weight:600;background:#fafbfd}
tr:hover td{background:#fafcff}.tablewrap{overflow-x:auto}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:20px;background:#f1f5f9;color:#475569;white-space:nowrap}
.badge.ok{background:#dcfce7;color:#166534}.badge.bad{background:#fee2e2;color:#991b1b}.badge.warn{background:#fef3c7;color:#92400e}
.badge i{width:7px;height:7px;border-radius:50%;background:currentColor}
.bar{height:8px;background:#eef2f7;border-radius:6px;overflow:hidden;min-width:80px}.bar span{display:block;height:100%;background:var(--blue)}
.muted{color:var(--muted)}.small{font-size:12px}.nowrap{white-space:nowrap}.trunc{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
form.inline{display:inline}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=time],input[type=url],select{padding:8px 10px;border:1px solid #cfd6e2;border-radius:7px;font:inherit;background:#fff;max-width:100%}
.btn{display:inline-block;padding:8px 14px;border-radius:7px;border:1px solid var(--blue);background:var(--blue);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.btn:hover{filter:brightness(1.07);text-decoration:none}.btn.sec{background:#fff;color:var(--blue)}.btn.danger{background:#fff;color:var(--bad);border-color:#f3b4b4}.btn.sm{padding:4px 10px;font-size:12px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.field{margin-bottom:14px}.field label{display:block;font-weight:600;margin-bottom:5px}.field .help{color:var(--muted);font-size:12px;margin-top:4px}
.checks label{display:inline-flex;align-items:center;gap:5px;margin-right:12px;font-weight:400}
.flash{padding:10px 14px;border-radius:8px;margin-bottom:14px;background:#dcfce7;color:#14532d}.flash.err{background:#fee2e2;color:#7f1d1d}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
code,.key{font-family:ui-monospace,Consolas,monospace;background:#f1f5f9;padding:2px 6px;border-radius:5px;word-break:break-all}
.hours{display:flex;align-items:flex-end;gap:3px;height:120px;padding-top:6px}
.hours .h{flex:1;display:flex;flex-direction:column-reverse;height:100%;position:relative}
.hours .h .a{background:var(--blue);border-radius:2px 2px 0 0}.hours .h .i{background:var(--idle)}
.hourlbl{display:flex;gap:3px;font-size:10px;color:var(--muted)}.hourlbl span{flex:1;text-align:center}
.legend{font-size:12px;color:var(--muted)}.legend b{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 4px 0 10px;vertical-align:-1px}
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.shot{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;cursor:zoom-in}
.shot img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e5e7eb}.shot div{padding:5px 8px;font-size:12px;color:var(--muted)}
#lb{position:fixed;inset:0;background:rgba(10,15,30,.92);display:none;align-items:center;justify-content:center;z-index:50;flex-direction:column}
#lb.open{display:flex}#lb img{max-width:96vw;max-height:86vh;border-radius:4px}#lb .cap{color:#e5e7eb;margin-top:10px}
#lb button{position:absolute;top:50%;background:rgba(255,255,255,.12);border:0;color:#fff;font-size:30px;width:50px;height:70px;cursor:pointer;border-radius:6px}
#lb .prev{left:14px}#lb .next{right:14px}#lb .close{top:14px;right:14px;height:44px;width:44px;font-size:22px}
.login{max-width:380px;margin:12vh auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px}
.login h1{text-align:center}.login .btn{width:100%}
details summary{cursor:pointer;font-weight:600}
@media (max-width:820px){.side{transform:translateX(-100%);transition:.2s}.navopen .side{transform:none}.navtoggle{display:block}main{margin-left:0;padding:16px}.who{font-size:12px}}
