*{box-sizing:border-box;margin:0}body{font:14px/1.45 system-ui,sans-serif;background:#f3f5f8;color:#17202e}
.shell{display:flex;min-height:100vh}nav{width:190px;background:#10233f;color:#fff;padding:14px 8px;flex:none}nav b{display:block;padding:0 10px 14px;font-size:18px}
nav a{display:block;color:#c9d6ea;padding:10px;border-radius:8px;cursor:pointer}nav a.on,nav a:hover{background:#2563eb;color:#fff}
main{flex:1;padding:18px;min-width:0}header{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:14px}h1{font-size:20px}h3{margin:16px 0 8px}
button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 12px;cursor:pointer;font:inherit}button.alt{background:#e5eaf2;color:#17202e}button.red{background:#dc2626}
input,select{font:inherit;padding:8px;border:1px solid #cbd5e1;border-radius:8px;width:100%;background:#fff}
.grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.card{background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 2px #0001}.card strong{font-size:22px;display:block}
.room{cursor:pointer;border-left:6px solid #16a34a}.room.occ{border-color:#2563eb;background:#eff5ff}.room.dirty{border-color:#d97706;background:#fff8ec}.room.ooo{border-color:#6b7280;background:#e9ebef}.room.arr{border-color:#7c3aed;background:#f6f1ff}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.chips button{background:#fff;color:#17202e;border:1px solid #cbd5e1}.chips button.on{background:#10233f;color:#fff}
.scroll{overflow:auto;background:#fff;border-radius:12px}table{border-collapse:collapse;width:100%;white-space:nowrap}th,td{padding:8px 10px;border-bottom:1px solid #e8edf3;text-align:left}td.n,th.n{text-align:right}tr.click{cursor:pointer}tr.void{text-decoration:line-through;opacity:.5}
.tl td,.tl th{border:1px solid #e8edf3;padding:4px;min-width:62px;text-align:center}.tl td.b{background:#c4b5fd;cursor:pointer}.tl td.i{background:#93c5fd;cursor:pointer}.tl th:first-child,.tl td:first-child{position:sticky;left:0;background:#fff}
dialog{border:0;border-radius:14px;padding:18px;width:min(640px,94vw);max-height:90vh;margin:auto;box-shadow:0 20px 60px #0005}dialog::backdrop{background:#0007}
.form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form label{font-size:12px;color:#556}.row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.row>input,.row>select{width:auto;flex:1;min-width:110px}
#toast{position:fixed;right:16px;bottom:80px;max-width:90vw}#toast div{background:#10233f;color:#fff;padding:10px 14px;border-radius:8px;margin-top:6px}#toast div.e{background:#b91c1c}
.loginpage{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:24px;background:#12151c}.login{width:100%;max-width:360px;display:grid;gap:12px;padding:28px 24px;background:#1b1f29;border:1px solid #c8962855;border-radius:16px;box-shadow:0 20px 60px #0006}.login img{justify-self:center;max-width:100%;height:auto;margin-bottom:6px}.login h1{text-align:center;color:#f2e08a;font-size:18px;margin-bottom:6px}.login input{padding:11px}.login button{padding:11px;font-weight:700;color:#2a2005;background:linear-gradient(90deg,#c89628,#f6e68a,#c89628)}.loginpage footer{color:#c9b873;font-size:13px;text-align:center}.loginpage footer a{color:inherit;text-decoration:none}
.bar{height:90px;display:flex;align-items:flex-end;gap:3px}.bar i{flex:1;background:#2563eb;border-radius:3px 3px 0 0;min-height:2px}
@media(max-width:720px){.shell{display:block}nav{position:fixed;bottom:0;left:0;right:0;width:auto;display:flex;overflow:auto;padding:6px;z-index:2}nav b{display:none}nav a{white-space:nowrap;padding:8px}main{padding:12px 12px 76px}.form{grid-template-columns:1fr}.grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}
