:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19343d;background:#f4f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}aside{position:fixed;inset:0 auto 0 0;width:242px;background:#102b35;color:#c0d1d5;padding:36px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:14px;color:#7ce4ca;font-size:34px;font-weight:800;text-decoration:none;align-items:center}.brand span{font-size:23px;color:white}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#98b9c0;margin-top:5px}nav{display:grid;gap:8px;margin-top:52px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:12px 17px;font-weight:650;background:#e9f0ed;color:#183c3a}nav button{background:transparent;color:#b7cbcf;text-align:left;padding:15px 18px;font-weight:550}nav button:hover,nav button.selected{background:#20454d;color:#a4f1da}.side-note{margin-top:auto;font-size:12px;line-height:1.8}.side-note a{color:#9ae7d3}.side-note p{color:#91adb3}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#70dbb2;margin-right:5px}main{margin-left:242px;padding:42px 44px;width:calc(100% - 242px);max-width:1700px}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:32px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#538075;margin:0 0 12px}h1{font-size:32px;letter-spacing:-1px;font-weight:650;margin:0}h2{font-size:22px;font-weight:650;letter-spacing:-.5px;margin:0 0 18px}p{line-height:1.7;color:#63777b;font-size:14px}.header-tools{display:flex;gap:9px;align-items:center}.badge,.pill{display:inline-block;border-radius:50px;padding:6px 11px;font-size:11px;font-weight:700;background:#e4ece8;color:#42685b}.primary{background:#087f78;color:white}.primary:hover{background:#056c66}.subtle{background:transparent;border:1px solid #d7e2de;font-size:12px}.danger{background:#f8e4df;color:#a14531}.card{background:#fff;border:1px solid #e0e7e3;border-radius:15px;padding:26px;margin-bottom:22px;box-shadow:0 3px 12px #16322903}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.feature{background:#e4f1eb;border-color:#d3e7dd}.feature h2{font-size:29px;line-height:1.4}.flow{display:flex;gap:10px;align-items:center;margin-top:28px;font-size:11px;color:#457566}.flow span{background:#ffffffa8;padding:10px;border-radius:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid #e0e7e3;border-radius:13px;padding:23px}.stat strong{display:block;font-size:34px;font-weight:600;margin-top:12px}.stat span{font-size:12px;color:#748785}.section-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-top h2{margin:0}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#81928e;font-weight:600;padding:13px 12px;border-bottom:1px solid #e4eae7}td{padding:15px 12px;border-bottom:1px solid #edf1ee;vertical-align:middle}td:first-child{font-weight:650}.table-wrap{overflow-x:auto}.muted{color:#81918e;font-size:12px}.empty{text-align:center;padding:30px;color:#8b9994;font-size:13px}.in,.accepted,.approved{background:#e1f4e9;color:#22794d}.out{background:#e8eef7;color:#446287}.review,.pending{background:#fff0d9;color:#92641f}.revoked,.rejected{background:#fce5e0;color:#a84a36}label{display:block;font-size:12px;font-weight:650;margin:15px 0}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #cfddd6;border-radius:8px;padding:11px;background:#fff;color:#19343d}input:focus,textarea:focus,select:focus{outline:2px solid #77cbbb;outline-offset:1px}.login{max-width:540px;margin:70px auto}.login .primary{width:100%;margin-top:10px}li{font-size:13px;color:#63777b;padding:6px 0;line-height:1.5}footer{font-size:11px;color:#83978e;padding:20px 0}.error{padding:14px 18px;background:#fbe8e1;border-radius:9px;color:#934d3c;margin-bottom:20px;font-size:13px}.success{padding:14px 18px;background:#dff4e6;border-radius:9px;color:#2c6a48;margin-bottom:20px;font-size:13px}.actions{display:flex;gap:7px;align-items:center}.actions select{min-width:150px;margin:0}.actions button{font-size:11px;padding:9px 12px}[hidden]{display:none!important}@media(max-width:1100px){main{padding:28px}header{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){body{display:block}aside{position:static;width:auto;padding:20px}.brand{font-size:26px}.brand span{font-size:19px}nav{display:flex;overflow:auto;margin:20px 0 0;gap:4px}nav button{white-space:nowrap;font-size:12px;padding:10px}.side-note{display:none}main{margin:0;width:auto;padding:20px}h1{font-size:26px}.card{padding:20px}.header-tools{flex-wrap:wrap}.stats{gap:12px}.stat{padding:17px}.section-top{align-items:flex-start;flex-direction:column}}
.qr-panel{display:grid;grid-template-columns:minmax(220px,384px) minmax(0,1fr);align-items:center;gap:28px}.qr-panel img{display:block;width:100%;height:auto;max-width:384px;image-rendering:pixelated;background:white}.qr-panel p{font-size:15px}.qr-panel #qr-expiry{font-weight:650;color:#087f78}.actions{flex-wrap:wrap}.actions select{max-width:190px}button:disabled{opacity:.6;cursor:wait}@media(max-width:800px){.qr-panel{grid-template-columns:minmax(0,1fr)}.qr-panel img{justify-self:center}}
.device-approval{min-width:250px;max-width:450px}.device-approval label{margin:0 0 6px}.approval-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.approval-controls select{flex:1 1 190px;margin:0;min-width:180px;max-width:280px}.approval-controls button,.device-tools button{font-size:12px}.device-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.zone-help{font-size:13px;line-height:1.6;color:#566f73}button:disabled,select:disabled{cursor:not-allowed;opacity:.65}select:disabled{background:#f0f3f1}.device-approval .secondary{font-size:12px;background:#e4f1eb;color:#087f78}
@media(max-width:700px){#device-list .table-wrap{overflow:visible}#device-list table,#device-list tbody,#device-list tr,#device-list td{display:block;width:100%}#device-list thead{display:none}#device-list tr{padding:8px 0 18px;border-bottom:1px solid #edf1ee}#device-list tr:last-child{border-bottom:0;padding-bottom:0}#device-list td{padding:8px 0;border:0}#device-list td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#81928e;margin-bottom:5px}#device-list td:last-child::before{display:none}#device-list .device-approval{min-width:0;max-width:none}#device-list .approval-controls select{width:100%;max-width:none;min-width:0;flex-basis:100%}}
.enrollment-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.enrollment-controls label{flex:1;max-width:380px;min-width:200px;margin:0}.enrollment-controls button{margin-bottom:1px}#qr-instructions{white-space:pre-line}@media(max-width:700px){.enrollment-controls{align-items:stretch;flex-direction:column}.enrollment-controls label{max-width:none;min-width:0}}

dialog{border:1px solid #cfddd6;border-radius:16px;padding:28px;width:min(480px,calc(100% - 32px));color:#19343d}dialog::backdrop{background:#102b3599}#pin-error{color:#a14531}
.zone-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:24px;align-items:start}.zone-map{height:430px;width:100%;border:1px solid #d2e0d8;border-radius:12px;margin-top:20px;background:#e6ece8;z-index:0}.zone-card h2{overflow-wrap:anywhere}.filter-bar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:24px}.filter-bar label{margin:0}.filter-bar button{margin-bottom:1px}input[type=checkbox]{display:inline-block;width:auto;vertical-align:middle;margin:0 7px 0 0}input[type=range]{accent-color:#087f78;padding:0}.form-error{color:#a14531;font-size:14px}.narrow{max-width:600px}#people-search{max-width:300px;margin:0}#audit-list td:last-child{min-width:220px;max-width:480px;overflow-wrap:anywhere}output{font-weight:400;margin-left:10px}dialog .actions{margin-top:24px;justify-content:flex-end}.tablet-editor{display:block}.tablet-editor main{margin:0;width:100%;max-width:1000px;padding:20px}.tablet-editor .zone-map{height:45vh;min-height:280px}.tablet-editor header{margin-bottom:16px}.tablet-editor .card{padding:20px}nav{margin-top:28px;gap:3px}nav button{padding:12px 16px}aside{overflow-y:auto}.side-note{padding-top:20px}.table-wrap td{overflow-wrap:anywhere}.section-top p{margin-bottom:0}
@media(max-width:1050px){.zone-layout{grid-template-columns:minmax(0,1fr)}#zone-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.zone-card{margin-bottom:0}}
@media(max-width:700px){.zone-map{height:360px}.filter-bar label{flex:1;min-width:120px}.filter-bar button{flex:1}.flow{flex-wrap:wrap;gap:7px}.tablet-editor main{padding:14px}.tablet-editor .card{padding:16px}#zone-list{display:block}.zone-card{margin-bottom:16px}}

/* Tablet station workspace */
.tablet-editor{background:#f4f7f5;color:#102b35}.tablet-editor main{max-width:900px;margin:auto;padding:24px}.tablet-editor header{display:flex;align-items:center;justify-content:space-between;gap:16px}.tablet-editor h1{margin:0;font-size:30px}.tablet-editor .card{border:1px solid #dae4df;box-shadow:none}.tablet-editor .zone-map{height:40vh;min-height:280px}.map-legend{display:flex;gap:24px;font-size:13px;color:#087f78;margin:12px 0}.device-dot{color:#287ce5}.station-readiness{padding:16px;border-radius:12px;background:#eef2f0;line-height:1.6;font-weight:600}.station-readiness.inside{background:#e1f4e9;color:#225e49}.station-readiness.outside{background:#fff0d9;color:#755213}.tablet-editor #save{width:100%;min-height:52px;margin-top:18px}.tablet-editor button{min-height:48px}.tablet-editor .eyebrow{color:#087f78}

.tablet-editor header{flex-direction:row;align-items:center;text-align:left;margin-bottom:18px}.tablet-editor #assigned-zone{margin:0 0 10px}.station-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.station-fields label{margin:8px 0 14px}.tablet-editor .zone-map{height:32vh;min-height:260px;max-height:360px}.tablet-editor .actions{flex-wrap:wrap}.tablet-editor #slider{margin-top:22px}.tablet-editor #save{margin-top:6px}@media(max-width:500px){.station-fields{grid-template-columns:1fr;gap:0}.tablet-editor header{align-items:flex-start}.tablet-editor h1{font-size:25px}}

/* Presence mobile system: matches PresenceUi.kt on native Android screens. */
.tablet-editor{background:#fff;color:#102b35;font-family:Roboto,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.45}
.tablet-editor .mobile-brand{display:flex;align-items:center;gap:12px;padding:14px 22px;border-bottom:1px solid #dae2e8;font-size:21px;font-weight:600;background:#fff}
.tablet-editor .mobile-brand span{font-size:9px;color:#687787;border:1px solid #dae2e8;border-radius:4px;padding:3px 7px;background:#f1f4f7;letter-spacing:.2px}
.tablet-editor main{max-width:760px;padding:10px 22px 24px;margin:0 auto;width:100%;box-sizing:border-box}
.tablet-editor .mobile-back{display:block;background:none;border:0;box-shadow:none;padding:8px 0;color:#087f78;font-size:13px;min-height:42px;text-align:left}
.tablet-editor header{margin:0 0 16px;display:block}.tablet-editor h1{font-size:28px;letter-spacing:-.5px;line-height:1.2;font-weight:600;margin:6px 0}
.tablet-editor .muted{color:#687787;font-size:13px}.tablet-editor #station-name{font-size:14px;margin:6px 0}
.tablet-editor .card{padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;margin:0}
.tablet-editor label{font-size:13px;color:#102b35;font-weight:500;margin:8px 0 12px}
.tablet-editor input:not([type=checkbox]):not([type=range]),.tablet-editor select{border:1px solid #dae2e8;border-radius:7px;min-height:48px;font:inherit;color:#102b35;background:#fff;padding:10px 12px;box-sizing:border-box;width:100%}
.tablet-editor .station-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.tablet-editor button{font:500 14px Roboto,"Segoe UI",Arial,sans-serif;border-radius:7px;min-height:48px;box-shadow:none;background:#087f78;border:1px solid #087f78;padding:10px 16px;color:#fff}
.tablet-editor button.subtle{background:#fff;border-color:#dae2e8;color:#087f78}
.tablet-editor .actions{gap:10px;margin:0 0 12px}.tablet-editor .actions button{font-size:12px;min-height:40px;padding:8px 12px}
.tablet-editor .zone-map{height:32vh;min-height:230px;max-height:350px;border:1px solid #dae2e8;border-radius:8px;margin:0}
.tablet-editor .map-legend{font-size:12px;gap:22px;margin:10px 0}.tablet-editor #map-status{font-size:12px;color:#687787;margin:8px 0}
.tablet-editor .station-readiness{border-radius:8px;padding:14px 16px;font-size:13px;font-weight:500;background:#f1f4f7;color:#102b35}
.tablet-editor .station-readiness.inside{background:#e9f7f1;color:#087f78}.tablet-editor .station-readiness.outside{background:#fff0d3;color:#735423}
.tablet-editor .station-save{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#fff;padding:10px 0;position:sticky;bottom:0;z-index:500}
.tablet-editor #save{margin:0;min-height:48px}.tablet-editor #slider{margin-top:18px;width:100%;accent-color:#087f78}.tablet-editor #assigned-zone{font-size:13px;background:#f1f4f7;border-radius:7px;padding:10px 12px;color:#687787}
.tablet-editor #notice:empty{display:none}.tablet-editor #notice:not(:empty){padding:14px 16px;border-radius:8px;margin-bottom:14px;font-size:14px}
@media(max-width:360px){.tablet-editor main{padding-left:16px;padding-right:16px}.tablet-editor .station-fields,.tablet-editor .station-save{grid-template-columns:1fr}.tablet-editor .mobile-brand{padding-left:16px}}
/* Reuse the Android launcher artwork across web branding. */
.presence-mark{display:block;flex-shrink:0;object-fit:contain;border-radius:8px}
.brand{gap:10px}.brand .presence-mark{width:44px;height:44px}
.auth-brand{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.auth-brand .presence-mark{width:56px;height:56px;border-radius:10px}
.auth-brand .eyebrow{margin:0 0 7px}.auth-brand h2{margin:0}
.tablet-editor .mobile-brand .presence-mark{width:32px;height:32px;border-radius:6px}
@media(max-width:700px){.brand .presence-mark{width:40px;height:40px}}
/* Preserve semantic visibility even on grid and flex containers. */
[hidden]{display:none!important}
