:root{color:#e6f3ff;background:#08111f;font-family:Inter,Noto Sans TC,system-ui,-apple-system,sans-serif;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page{background:radial-gradient(circle at 20% 20%,#173b73 0,#091527 42%,#050914 100%);place-items:center;min-height:100vh;padding:24px;display:grid;position:relative;overflow:hidden}.grid-bg{background-image:linear-gradient(#00d2ff1f 1px,#0000 1px),linear-gradient(90deg,#00d2ff1f 1px,#0000 1px);background-size:56px 56px;animation:14s linear infinite gridMove;position:absolute;inset:-50%;transform:perspective(600px)rotateX(60deg)}.orb{filter:blur(12px);opacity:.65;border-radius:999px;animation:7s ease-in-out infinite float;position:absolute}.orb-a{background:#19d3ff;width:260px;height:260px;top:18%;left:8%}.orb-b{background:#755cff;width:320px;height:320px;animation-delay:-2s;bottom:12%;right:6%}.login-card{z-index:1;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);background:linear-gradient(160deg,#0d1b32db,#080d1db3);border:1px solid #87daff47;border-radius:28px;width:min(430px,100%);padding:34px;position:relative;box-shadow:0 28px 80px #00000080,inset 0 1px #ffffff1a}.brand-mark{background:linear-gradient(135deg,#19d3ff,#6d5cff);border-radius:18px;place-items:center;width:58px;height:58px;margin-bottom:18px;display:grid;box-shadow:0 0 35px #19d3ff80}.brand-mark.small{border-radius:14px;width:42px;height:42px;margin:0}.brand-mark svg{width:26px}.eyebrow{color:#6fe6ff;letter-spacing:.16em;text-transform:uppercase;margin:0 0 4px;font-size:12px;font-weight:700}.login-card h1{margin:0;font-size:32px}.muted,.page-head p{color:#8fa8c7}.login-card label,.field{color:#cfe2f7;gap:8px;margin-top:16px;font-weight:650;display:grid}.login-card input,.field input,.field select,.field textarea,.search input{color:#eff8ff;background:#030a179e;border:1px solid #8fa8c742;border-radius:14px;outline:none;width:100%;padding:12px 14px}.login-card input:focus,.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{border-color:#38d7ff;box-shadow:0 0 0 4px #38d7ff1f}.primary,.ghost,.actions button{border:0;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:11px 16px;font-weight:800;display:inline-flex}.primary{color:#03111d;background:linear-gradient(135deg,#56e4ff,#8b7bff);box-shadow:0 10px 24px #19d3ff38}.full{width:100%;margin-top:22px}.ghost{color:#d9edff;background:#8fa8c71f;border:1px solid #8fa8c72e}.fit{width:max-content}.error,.field em{color:#ff9b9b}.login-card small{text-align:center;color:#8fa8c7;margin-top:14px;display:block}@keyframes gridMove{to{transform:perspective(600px)rotateX(60deg)translateY(56px)}}@keyframes float{50%{transform:translate(24px,-22px)scale(1.05)}}.app-shell{color:#eaf6ff;background:#07111f;grid-template-columns:280px 1fr;min-height:100vh;display:grid}aside{z-index:5;background:linear-gradient(#0d1f36,#08101d);border-right:1px solid #8fa8c724;height:100vh;padding:22px;position:sticky;top:0}.aside-brand{align-items:center;gap:12px;margin-bottom:24px;display:flex}.aside-brand strong{font-size:18px;display:block}.aside-brand span{color:#8fa8c7;font-size:12px;display:block}nav{gap:7px;display:grid}nav button{color:#a9bdd8;text-align:left;background:0 0;border:0;border-radius:14px;align-items:center;gap:10px;padding:12px;display:flex}nav button:hover,nav button.active{color:#fff;background:#43d0ff21}main{min-width:0}header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:4;background:#07111fb8;border-bottom:1px solid #8fa8c71f;align-items:center;gap:12px;height:72px;padding:0 26px;display:flex;position:sticky;top:0}.crumb,.user-pill{background:#8fa8c714;border:1px solid #8fa8c724;border-radius:999px;align-items:center;gap:8px;padding:9px 12px;display:flex}.user-pill{color:#bcd1e8;margin-left:auto}.icon-btn{color:#e6f3ff;background:#8fa8c71f;border:0;border-radius:12px;place-items:center;width:42px;height:42px;display:grid}.mobile{display:none}.page{gap:20px;padding:28px;display:grid}.page-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.page-head h2{margin:0;font-size:30px}.stat-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;display:grid}.stat-card,.panel,.table-wrap,.toolbar{background:linear-gradient(#11243ed6,#0a1424d6);border:1px solid #8fa8c724;border-radius:22px;box-shadow:0 18px 45px #0000002e}.stat-card{gap:8px;padding:18px;display:grid}.stat-card svg{color:#62e3ff}.stat-card strong{font-size:30px}.panel{padding:20px}.wide{max-width:820px}.panel-title{align-items:center;gap:8px;margin-bottom:12px;font-weight:900;display:flex}.capacity{background:#8fa8c729;border-radius:999px;height:14px;overflow:hidden}.capacity div{background:linear-gradient(90deg,#28d7ff,#8a76ff);height:100%}.mini-list{color:#bfd5ef;gap:9px;display:grid}.toolbar{align-items:center;gap:12px;padding:14px;display:flex}.search{background:#030a176b;border-radius:16px;flex:1;align-items:center;gap:10px;padding-left:12px;display:flex}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #8fa8c71a;padding:14px 16px}th{color:#8feeff;letter-spacing:.03em;background:#050e1b5c;font-size:13px}td{color:#d9e8fb}.actions{white-space:nowrap;gap:8px;display:flex}.actions button{color:#d9edff;background:#8fa8c71f;padding:8px 10px}.badge{color:#a7efff;background:#56e4ff1f;border-radius:999px;padding:4px 9px;font-weight:750;display:inline-flex}.password-mask{letter-spacing:.18em;color:#9db4d0}.empty{text-align:center;color:#8fa8c7;padding:34px}.modal-backdrop{z-index:10;background:#0000009e;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#0c1a2d;border:1px solid #8fa8c733;border-radius:24px;width:min(760px,100%);max-height:92vh;padding:22px;overflow:auto;box-shadow:0 24px 90px #0000008c}.modal-head{justify-content:space-between;align-items:center;display:flex}.modal-head h3{margin:0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 16px;display:grid}.field span b{color:#ff9b9b;margin-left:4px}.check{align-items:center;gap:8px;padding:11px 0;display:flex!important}.check input{width:auto}.modal-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.shade{display:none}@media (width<=1100px){.stat-grid{grid-template-columns:repeat(3,1fr)}.app-shell{grid-template-columns:240px 1fr}aside{padding:16px}}@media (width<=820px){.app-shell{display:block}aside{width:280px;transition:all .2s;position:fixed;top:0;bottom:0;left:0;transform:translate(-105%)}aside.open{transform:translate(0)}.shade{z-index:3;background:#0000007a;display:block;position:fixed;inset:0}.mobile{display:grid}header{padding:0 14px}.crumb{display:none}.user-pill{margin-left:0;font-size:13px}.page{padding:18px}.page-head{display:grid}.stat-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.toolbar{display:grid}.login-card h1{font-size:26px}}@media (width<=520px){.stat-grid{grid-template-columns:1fr}.page-head h2{font-size:24px}header .ghost{padding:10px;font-size:0}header .ghost svg{margin:0}.login-page{padding:14px}.login-card{border-radius:22px;padding:24px}.modal{padding:16px}.actions{display:grid}table{min-width:680px}}.login-page{background:radial-gradient(circle at 20% 20%,#06b6d440,#0000 28%),radial-gradient(circle at 80% 30%,#3b82f638,#0000 30%),linear-gradient(135deg,#020617 0%,#0f172a 50%,#111827 100%);grid-template-columns:minmax(260px,55%) minmax(320px,430px);justify-content:center;gap:42px}.login-copy{z-index:1;max-width:640px;position:relative}.login-copy h2{color:#f8fafc;margin:8px 0;font-size:clamp(36px,5vw,64px);line-height:1.05}.login-copy p:not(.eyebrow){color:#cbd5e1;max-width:520px;font-size:18px}.scan-frame{z-index:0;background:linear-gradient(135deg,#0f172a73,#02061733);border:1px solid #06b6d473;border-radius:26px;width:180px;height:180px;position:absolute;bottom:12%;left:8%;overflow:hidden;box-shadow:0 0 50px #06b6d429}.scan-frame:before{content:"";opacity:.25;background:repeating-linear-gradient(90deg,#94a3b861 0 8px,#0000 8px 14px),repeating-linear-gradient(0deg,#94a3b838 0 8px,#0000 8px 14px);position:absolute;inset:22px}.scan-line{background:#22d3ee;height:3px;animation:3.2s ease-in-out infinite scan;position:absolute;top:0;left:12px;right:12px;box-shadow:0 0 24px #22d3ee}@keyframes scan{0%,to{opacity:0;transform:translateY(-120%)}15%,85%{opacity:1}50%{transform:translateY(180px)}}.app-shell{color:#0f172a;background:#f8fafc}main{background:#f8fafc}.page-head h2{color:#0f172a}.page-head p,.muted{color:#64748b}.stat-card,.panel,.table-wrap,.toolbar{background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 2px #0f172a0a}.stat-card span{color:#64748b}.stat-card strong,.panel-title,td{color:#0f172a}.toolbar .search{background:#f8fafc;border:1px solid #e2e8f0}.search input,.field input,.field select,.field textarea{color:#0f172a;background:#fff;border-color:#e2e8f0}.search input{background:0 0;border:0}th{color:#0891b2;background:#f8fafc;border-bottom-color:#e2e8f0}td,th{border-bottom-color:#e2e8f0}.actions button{color:#0f172a;background:#f1f5f9}.actions .danger{color:#be123c;background:#fff1f2}.ghost,.modal{color:#0f172a;background:#fff;border-color:#e2e8f0}.modal .ghost{background:#f8fafc}.icon-btn{color:#0f172a;background:#f1f5f9}.crumb,.user-pill{color:#334155;background:#fff;border-color:#e2e8f0}header{background:#f8fafcdb;border-bottom-color:#e2e8f0}.badge{color:#0891b2;background:#ecfeff}.badge.ok{color:#059669;background:#ecfdf5}.badge.staff{color:#c2410c;background:#fff7ed}.badge.off{color:#d97706;background:#fffbeb}.empty,.password-mask{color:#64748b}.capacity{background:#e2e8f0}.check{color:#0f172a}.field{color:#334155}.field em{color:#e11d48}@media (width<=820px){.login-page{grid-template-columns:1fr;display:grid}.login-copy{display:none}.scan-frame{opacity:.55;width:140px;height:140px;bottom:16px;left:auto;right:16px}.table-wrap{box-shadow:none;background:0 0;border:0}table{border-collapse:separate;border-spacing:0 12px;min-width:0}thead{display:none}tbody,tr,td{display:block}tr{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:10px;box-shadow:0 1px 2px #0f172a0a}td{border:0;padding:8px 10px}td:not(.actions):before{content:attr(data-label);color:#64748b;font-size:12px;font-weight:800;display:block}.actions{justify-content:flex-end;display:flex}.shade{z-index:4}aside{z-index:6}}.qr-scan{background:radial-gradient(circle,#22d3ee2e,#020617b8);border-color:#22d3eea6;place-items:center;padding:18px;display:grid}.qr-scan:before{content:"";opacity:.9;z-index:1;background:linear-gradient(90deg,#22d3ee 22px,#0000 22px calc(100% - 22px),#22d3ee calc(100% - 22px)) top/100% 3px no-repeat,linear-gradient(90deg,#22d3ee 22px,#0000 22px calc(100% - 22px),#22d3ee calc(100% - 22px)) bottom/100% 3px no-repeat,linear-gradient(#22d3ee 22px,#0000 22px calc(100% - 22px),#22d3ee calc(100% - 22px)) 0/3px 100% no-repeat,linear-gradient(#22d3ee 22px,#0000 22px calc(100% - 22px),#22d3ee calc(100% - 22px)) 100%/3px 100% no-repeat;border:2px solid #22d3ee2e;border-radius:20px;position:absolute;inset:10px}.qr-scan img{z-index:1;width:116px;height:116px;image-rendering:pixelated;background:#fff;border-radius:12px;padding:8px;position:relative;box-shadow:0 0 28px #22d3ee73}.qr-scan span{color:#67e8f9;letter-spacing:.22em;z-index:2;font-size:11px;font-weight:900;position:absolute;bottom:12px}.qr-scan .scan-line{z-index:3;background:linear-gradient(90deg,#0000,#67e8f9,#0000);height:4px;left:18px;right:18px}.device-picker{align-items:end}.device-picker .field{min-width:min(460px,100%);margin:0}.selected-device{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.selected-device small{color:#0891b2;font-weight:800}.primary:disabled,.ghost:disabled,.actions button:disabled{opacity:.55;cursor:not-allowed}@media (width<=820px){.device-picker{display:grid}.device-picker .field{min-width:0}.qr-scan img{width:86px;height:86px}.qr-scan span{display:none}}.toggle-switch{color:#64748b;background:#e2e8f0;border:0;border-radius:999px;justify-content:flex-end;align-items:center;gap:6px;min-width:72px;height:34px;padding:3px 10px 3px 4px;font-size:12px;font-weight:900;transition:all .18s;display:inline-flex;box-shadow:inset 0 1px 3px #0f172a2e}.toggle-switch span{background:#fff;border-radius:999px;order:0;width:26px;height:26px;transition:all .18s;transform:translate(0);box-shadow:0 2px 8px #0f172a3d}.toggle-switch.on{color:#042f2e;background:linear-gradient(135deg,#34d399,#22d3ee);justify-content:flex-start;padding:3px 4px 3px 10px}.toggle-switch.on span{order:2}@media (prefers-color-scheme:dark){.toggle-switch{color:#cbd5e1;background:#334155}.toggle-switch span{background:#f8fafc}}.toggle-switch.maintenance{color:#431407;background:linear-gradient(135deg,#fb923c,#f97316)}.toggle-switch.maintenance span{order:2}nav .nav-group{color:#e6f3ff;background:#43d0ff14;justify-content:space-between;font-weight:900}nav .nav-group span{flex:1}.nav-sub{border-left:1px solid #8fa8c738;gap:5px;margin:0 0 4px 12px;padding-left:10px;display:grid}.nav-sub button{border-radius:12px;padding:10px 12px;font-size:14px}.app-shell nav .nav-group{color:#0f172a;background:#f1f5f9}.app-shell .nav-sub{border-left-color:#e2e8f0}.sort-head{width:100%;color:inherit;text-align:left;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:6px;padding:0;font-size:13px;font-weight:900;display:inline-flex}.sort-head span{color:#0f766e;font-size:11px}.page-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.print-tips{color:#0f172a;background:#f0f9ff;border:1px solid #bae6fd;border-radius:16px;padding:14px 16px;font-weight:800}.print-tips strong{color:#075985;margin-bottom:6px;display:block}.print-tips ol{gap:4px;margin:0;padding-left:1.35em;display:grid}.print-tips li{padding-left:2px}.print-tips.compact{margin-top:6px;font-size:14px}.qr-builder{grid-template-columns:minmax(340px,1fr) minmax(360px,520px);align-items:start;gap:20px;display:grid}.qr-form{gap:14px;display:grid}.qr-form .panel-title{margin-top:8px;margin-bottom:0}.upload-field input[type=file],.problem-icon-row input[type=file]{background:#f8fafc;padding:10px}.upload-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:10px;padding:10px;display:flex}.upload-preview img{object-fit:contain;background:#fff;border-radius:8px;width:76px;height:42px}.qr-preview{background:#eef3f8;place-items:center;display:grid;position:sticky;top:92px}.qr-preview .muted{margin:10px 0 0;font-weight:800}.qr-poster-svg{filter:drop-shadow(0 14px 28px #0f172a2e);width:min(100%,420px);height:auto;display:block}.problem-icon-editor{gap:10px;display:grid}.problem-icon-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;grid-template-columns:minmax(120px,1fr) minmax(130px,160px) minmax(180px,1fr) minmax(96px,auto);align-items:center;gap:8px;padding:10px;display:grid}.problem-icon-row .ghost{white-space:nowrap;padding:10px 12px}.problem-icon-row strong{color:#0f172a;overflow-wrap:anywhere;min-width:0}.field input[type=color]{height:44px;padding:5px}.field input:disabled{color:#64748b;cursor:not-allowed;background:#f1f5f9}.type-first{background:#f0f9ff;border:1px solid #bae6fd;border-radius:16px;margin-top:0;padding:14px}.type-first small{color:#0369a1;font-weight:800}.qr-output-page textarea{resize:vertical}.qr-print-source{width:1px;height:1px;position:absolute;top:0;left:-100000px;overflow:hidden}.qr-print-svg{background:#fff;width:297mm;height:auto}.status-select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;min-width:112px;padding:8px 10px;font-weight:800}.dispatcher-select{min-width:136px}.danger-action{color:#fff;background:#dc2626;border:0;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:11px 16px;font-weight:800;display:inline-flex}.danger-action:disabled{opacity:.55;cursor:not-allowed}.log-message,.scope-cell{white-space:pre-wrap;overflow-wrap:anywhere;max-width:520px;display:block}.field select[multiple]{min-height:132px;padding:8px}.relation-warning{color:#dc2626;background:#fff1f2;border:1px solid #fecaca;border-radius:14px;padding:12px 14px;font-weight:900}.needs-selection{color:#dc2626;font-weight:900}.tenant-logo-thumb{object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:120px;max-height:36px;padding:4px;display:block}@media (width<=1180px){.qr-builder{grid-template-columns:1fr}.qr-preview{position:static}.problem-icon-row{grid-template-columns:1fr 1fr}.problem-icon-row input[type=file]{grid-column:1/-1}}@media (width<=620px){.page-actions{justify-content:stretch}.page-actions .ghost,.page-actions .primary{width:100%}.problem-icon-row{grid-template-columns:1fr}.qr-preview{padding:10px}.qr-poster-svg{max-width:100%}}.pure-qr-print-svg{background:#fff;width:297mm;height:auto}.pure-qr-modal{max-width:1180px}.pure-qr-modal .modal-head{align-items:flex-start}.pure-qr-modal .modal-head p{margin:4px 0 0}.pure-qr-toolbar{justify-content:space-between;align-items:center;gap:12px;margin:18px 0;display:flex}.pure-qr-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:min(34vh,340px);padding:2px;display:grid;overflow:auto}.pure-qr-choice{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:12px;padding:12px;display:flex}.pure-qr-choice input{flex:none;width:18px;height:18px}.pure-qr-choice span{gap:2px;min-width:0;display:grid}.pure-qr-choice strong,.pure-qr-choice small{overflow-wrap:anywhere}.pure-qr-choice small{color:#64748b;font-weight:750}.pure-layout-editor{grid-template-columns:minmax(320px,1fr) minmax(280px,360px);gap:16px;margin-top:16px;display:grid}.pure-layout-stage{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;place-items:center;min-height:420px;padding:14px;display:grid;overflow:auto}.pure-layout-preview{touch-action:none;background:#fff;width:min(100%,520px);max-height:58vh;box-shadow:0 10px 30px #0f172a24}.pure-layout-element{cursor:move;-webkit-user-select:none;user-select:none}.pure-layout-element.active text,.pure-layout-element.active{filter:drop-shadow(0 0 6px #22d3ee61)}.pure-layout-controls{align-content:start;gap:10px;display:grid}.form-grid.compact{gap:0 10px}.form-grid.compact .field{margin-top:8px}.pure-layout-controls .check{margin-top:4px}.print-device-modal{max-width:920px}.print-device-modal .modal-head{align-items:flex-start}.print-device-modal .modal-head p{margin:4px 0 0}.print-device-toolbar{color:#0f172a;background:#f0f9ff;border:1px solid #bae6fd;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;padding:12px 14px;display:flex}.print-device-toolbar strong{color:#075985}.print-device-tree{gap:12px;max-height:min(58vh,560px);padding:2px;display:grid;overflow:auto}.print-device-group{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}.group-check{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 14px;margin:0!important}.group-check span{font-weight:900}.group-check small{color:#64748b;margin-left:auto;font-weight:800}.print-device-children{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;display:grid}.device-check{background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:flex-start;padding:10px;margin:0!important}.device-check span{gap:2px;min-width:0;display:grid}.device-check strong,.device-check small{overflow-wrap:anywhere}.device-check small{color:#64748b;font-weight:750}.qr-custom-type-row{max-width:520px}.qr-custom-type-row .type-first{margin:0}.custom-format-panel{grid-template-columns:minmax(300px,420px) minmax(300px,1fr);align-items:start;gap:20px;display:grid}.custom-format-controls{align-content:start;gap:10px;display:grid}.custom-format-controls .field{margin-top:4px}.custom-print-options{grid-template-columns:1fr 1fr;gap:10px;display:grid}.custom-format-actions{flex-wrap:wrap;gap:10px;margin-top:4px;display:flex}.custom-format-actions .ghost,.custom-format-actions .primary{min-height:44px}.custom-format-preview{background:#eef3f8;border:1px solid #e2e8f0;border-radius:18px;place-items:center;min-height:420px;padding:18px;display:grid}.custom-format-preview .muted{margin:12px 0 0;font-weight:800}.custom-format-svg{filter:drop-shadow(0 16px 30px #0f172a33);width:min(100%,330px);height:auto;display:block}.custom-qr-print-svg,.custom-pure-qr-svg{background:#fff;width:297mm;height:auto}@media (width<=820px){.pure-layout-editor{grid-template-columns:1fr}.pure-layout-stage{min-height:320px}.pure-layout-preview{max-height:52vh}}@media (width<=900px){.custom-format-panel{grid-template-columns:1fr}.custom-format-preview{min-height:340px}.custom-format-svg{width:min(100%,280px)}}@media (width<=620px){.pure-qr-list,.print-device-children{grid-template-columns:1fr}.pure-qr-toolbar,.print-device-toolbar{display:grid}.pure-qr-toolbar .ghost,.pure-qr-toolbar .primary{width:100%}.custom-print-options{grid-template-columns:1fr}.custom-format-actions{display:grid}.custom-format-actions .ghost,.custom-format-actions .primary{width:100%}}.app-shell{grid-template-columns:280px minmax(0,1fr);height:100vh;min-height:0;overflow:hidden}aside{overscroll-behavior:contain;height:100vh;min-height:0;position:relative;overflow-y:auto}main{overscroll-behavior:contain;min-width:0;height:100vh;overflow-y:auto}.page,.panel,.toolbar,.table-wrap{min-width:0}@media (width<=1100px){.app-shell{grid-template-columns:240px minmax(0,1fr)}}@media (width<=820px){.app-shell{height:100vh;overflow:hidden}main{height:100vh;overflow-y:auto}aside{overscroll-behavior:contain;height:auto;position:fixed;overflow-y:auto}}.qr-builder{grid-template-columns:minmax(0,1fr) minmax(300px,min(42vw,520px))}.qr-preview{max-height:calc(100vh - 120px);overflow:auto}.qr-poster-svg{max-height:calc(100vh - 180px)}.problem-icon-row{grid-template-columns:minmax(110px,1fr) minmax(120px,160px) minmax(96px,auto)}.problem-icon-row input[type=file]{grid-column:1/-1;width:100%;min-width:0;max-width:100%;overflow:hidden}.problem-icon-row .ghost{grid-area:1/3;justify-self:start}@media (width<=1600px){.qr-builder{grid-template-columns:minmax(0,1fr) minmax(280px,420px)}.problem-icon-row{grid-template-columns:minmax(120px,1fr) minmax(130px,160px) minmax(96px,auto)}}@media (width<=1180px){.qr-builder{grid-template-columns:1fr}.qr-preview{max-height:none;overflow:visible}.qr-poster-svg{max-height:none}.problem-icon-row{grid-template-columns:1fr 1fr}.problem-icon-row input[type=file]{grid-column:1/-1}.problem-icon-row .ghost{grid-area:auto}}@media (width<=620px){.problem-icon-row{grid-template-columns:1fr}.problem-icon-row input[type=file]{grid-column:auto}}.profile-modal{max-width:560px}.profile-summary{grid-template-columns:120px minmax(0,1fr);align-items:center;gap:12px 16px;margin-top:18px;display:grid}.profile-summary span{color:#64748b;font-weight:900}.profile-summary strong{overflow-wrap:anywhere;color:#0f172a;min-width:0}.profile-summary input{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:100%;padding:10px 12px}.user-pill{text-overflow:ellipsis;white-space:nowrap;max-width:min(280px,34vw);overflow:hidden}.user-pill svg{flex:none}@media (width<=620px){.profile-summary{grid-template-columns:1fr}.profile-summary span{margin-top:6px}.user-pill{max-width:42vw}}body>.modal-backdrop{place-content:center;place-items:center;width:100vw;height:100dvh;display:grid;position:fixed;inset:0}.dashboard-page{align-content:start}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.chart-panel{min-width:0}.pie-layout{grid-template-columns:160px minmax(0,1fr);align-items:center;gap:18px;display:grid}.pie-chart{width:150px;height:150px;transform:rotate(-90deg)}.pie-chart text{transform-origin:60px 60px;fill:#0f172a;font-weight:900;transform:rotate(90deg)}.pie-chart text:first-of-type{font-size:24px}.pie-chart text:last-of-type{fill:#64748b;font-size:12px}.chart-legend{gap:9px;display:grid}.chart-legend span{color:#334155;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:8px;font-weight:800;display:grid}.chart-legend i{border-radius:999px;width:12px;height:12px}.chart-legend b{color:#0f172a}.bar-chart{gap:12px;display:grid}.bar-row{color:#334155;grid-template-columns:minmax(84px,130px) minmax(0,1fr) 42px;align-items:center;gap:12px;font-weight:800;display:grid}.bar-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bar-row div{background:#e2e8f0;border-radius:999px;height:13px;overflow:hidden}.bar-row i{border-radius:999px;height:100%;display:block}.bar-row b{text-align:right;color:#0f172a}.line-chart{width:100%;height:240px}.line-chart text{fill:#64748b;font-size:12px;font-weight:800}.line-panel{grid-column:span 1}.dashboard-page .mini-list{margin-top:16px}.dashboard-page .mini-list span{color:#334155;background:#f8fafc;border-radius:12px;padding:8px 10px}.space-management-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;display:grid}.space-panel{gap:14px;display:grid}.space-panel-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.space-panel-head h3{margin:0;font-size:20px}.space-panel-head p{margin:4px 0 0}.space-panel .table-wrap table{min-width:420px}.building-page{align-content:start}.campus-accordion{gap:14px;display:grid}.campus-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.campus-row{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.campus-title{color:#0f172a;text-align:left;background:0 0;border:0;align-items:center;gap:8px;min-width:0;font-size:16px;font-weight:950;display:inline-flex}.campus-title span{overflow-wrap:anywhere}.campus-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.campus-actions>button:not(.ghost):not(.danger){color:#0f172a;background:#f1f5f9;border:0;border-radius:12px;padding:9px 12px;font-weight:800}.campus-actions .danger{color:#be123c;background:#fff1f2;border:0;border-radius:12px;align-items:center;gap:6px;padding:9px 12px;font-weight:800;display:inline-flex}.campus-panel .table-wrap{box-shadow:none;border:0;border-radius:0}.campus-panel table{min-width:660px}.campus-empty{background:#fff;border:1px solid #e2e8f0;border-radius:14px}.confirm-modal{max-width:560px}.confirm-body{white-space:pre-line;color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px;font-weight:750;line-height:1.7}.field select:disabled{color:#64748b;appearance:none;background:#f1f5f9;border-color:#cbd5e1}.campus-panel table{table-layout:fixed}.campus-panel th:first-child,.campus-panel td:first-child{width:24%}.campus-panel th:nth-child(2),.campus-panel td:nth-child(2){width:18%}.campus-panel th:nth-child(3),.campus-panel td:nth-child(3){overflow-wrap:anywhere;width:26%}.campus-panel th:nth-child(4),.campus-panel td:nth-child(4),.campus-panel th:nth-child(5),.campus-panel td:nth-child(5){width:16%}@media (prefers-color-scheme:dark){.campus-panel{background:#0c1a2d;border-color:#8fa8c72e}.campus-row{background:#8fa8c714;border-bottom-color:#8fa8c724}.campus-title,.campus-actions>button:not(.ghost):not(.danger){color:#eaf6ff}.campus-actions>button:not(.ghost):not(.danger){background:#8fa8c71f}.campus-empty{background:#0c1a2d;border-color:#8fa8c72e}.confirm-body{color:#eaf6ff;background:#8fa8c714;border-color:#8fa8c72e}}@media (width<=820px){.campus-row{align-items:flex-start;display:grid}.campus-actions{justify-content:flex-start}.campus-panel .table-wrap{background:0 0}}@media (width<=960px){.space-management-grid{grid-template-columns:1fr}.space-panel-head{display:grid}.space-panel-head .primary{width:max-content}}@media (width<=1100px){.dashboard-grid{grid-template-columns:1fr}.pie-layout{grid-template-columns:140px minmax(0,1fr)}}@media (width<=620px){.pie-layout{grid-template-columns:1fr}.pie-chart{justify-self:center}.bar-row{grid-template-columns:1fr}.bar-row b{text-align:left}.line-chart{height:210px}}
.campus-actions .toggle-switch.on{color:#064e3b!important;background:linear-gradient(135deg,#86efac,#5eead4)!important;justify-content:flex-start;padding:3px 4px 3px 10px}.campus-actions .toggle-switch.on span{order:2}.campus-actions .toggle-switch:not(.on){color:#64748b!important;background:#e2e8f0!important}
.aside-brand strong{color:#fff!important}
.force-password-page{width:100vw;height:100dvh;background:#fff;place-items:center;padding:18px;display:grid}.force-password-modal{width:min(520px,100%);max-height:calc(100dvh - 36px);background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:28px;box-shadow:0 24px 80px #0f172a24}.force-password-modal h1{color:#0f172a;margin:0 0 10px;font-size:26px}.force-password-note{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;margin:0 0 18px;padding:13px 14px;font-weight:750;line-height:1.7}.force-password-field{color:#334155;gap:8px;margin-top:14px;font-weight:900;display:grid}.password-eye-wrap{position:relative}.password-eye-wrap input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:14px;width:100%;padding:12px 48px 12px 14px}.password-eye-wrap input:focus{border-color:#0891b2;outline:0;box-shadow:0 0 0 4px #06b6d41f}.password-eye{position:absolute;right:6px;top:50%;width:36px;height:36px;border:0;border-radius:12px;background:#f1f5f9;display:grid;place-items:center;transform:translateY(-50%)}.password-eye span{width:18px;height:12px;border:2px solid #475569;border-radius:999px;position:relative;display:block}.password-eye span:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;border-radius:50%;background:#475569;transform:translate(-50%,-50%)}.success{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:14px;margin-top:14px;padding:11px 13px;font-weight:900}@media (width<=520px){.force-password-modal{padding:22px}.force-password-modal h1{font-size:22px}.force-password-page .modal-actions{display:grid}.force-password-page .modal-actions .ghost,.force-password-page .modal-actions .primary{width:100%}}

.device-import-tools{background:#fff;border:1px solid #e2e8f0;border-radius:18px;display:grid;gap:10px;padding:14px;box-shadow:0 1px 2px #0f172a0a}.device-import-actions{display:flex;flex-wrap:wrap;gap:10px}.device-import-file{display:none}.device-import-help{position:relative;width:max-content;max-width:100%}.device-import-help>button{color:#0891b2;background:transparent;border:0;padding:0;font-weight:900;text-decoration:underline;text-underline-offset:3px}.device-import-popover{z-index:8;color:#0f172a;background:#fff;border:1px solid #bae6fd;border-radius:16px;width:min(680px,calc(100vw - 56px));padding:14px 16px;position:absolute;top:30px;left:0;box-shadow:0 18px 45px #0f172a24}.device-import-popover:before{content:"";border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #bae6fd;position:absolute;top:-8px;left:18px}.device-import-popover ol{margin:0;padding-left:1.3em;display:grid;gap:6px}.device-import-popover li{line-height:1.65}@media (prefers-color-scheme:dark){.device-import-tools{background:#0c1a2d;border-color:#8fa8c72e}.device-import-popover{color:#eaf6ff;background:#0c1a2d;border-color:#8fa8c72e}.device-import-popover:before{border-bottom-color:#8fa8c72e}}@media (width<=620px){.device-import-actions .ghost{width:100%}.device-import-help{width:100%}.device-import-popover{position:relative;top:8px;width:100%;max-width:none}}
.campus-action-menu{position:relative;display:inline-flex;align-items:center}.campus-menu-trigger{color:#0f172a!important;background:#f1f5f9!important;border:0;border-radius:12px;min-width:42px;height:38px;padding:0 12px!important;font-size:24px;font-weight:900;line-height:1}.campus-menu-list{z-index:8;position:absolute;top:calc(100% + 6px);right:0;min-width:132px;display:grid;gap:4px;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 14px 30px #0f172a24;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease}.campus-action-menu:hover .campus-menu-list,.campus-action-menu:focus-within .campus-menu-list{opacity:1;visibility:visible;transform:translateY(0)}.campus-menu-list button{width:100%;text-align:left;color:#0f172a;background:transparent;border:0;border-radius:8px;padding:9px 10px;font-weight:850}.campus-menu-list button:hover{background:#f1f5f9}.campus-menu-list button.danger{color:#be123c}.campus-menu-list button.danger:hover{background:#fff1f2}.campus-panel th:first-child,.campus-panel td:first-child{width:34%}.campus-panel th:nth-child(2),.campus-panel td:nth-child(2){width:22%}.campus-panel th:nth-child(3),.campus-panel td:nth-child(3){width:22%}.campus-panel th:nth-child(4),.campus-panel td:nth-child(4){width:22%}@media (prefers-color-scheme:dark){.campus-menu-trigger{color:#eaf6ff!important;background:#8fa8c71f!important}.campus-menu-list{background:#0c1a2d;border-color:#8fa8c72e;box-shadow:0 14px 30px #00000059}.campus-menu-list button{color:#eaf6ff}.campus-menu-list button:hover{background:#8fa8c71f}.campus-menu-list button.danger{color:#fecdd3}.campus-menu-list button.danger:hover{background:#7f1d1d66}}
@media (width>820px){.table-wrap table tbody tr{height:auto}.table-wrap th,.table-wrap td{vertical-align:middle}.table-wrap td.actions{display:table-cell!important;white-space:nowrap;vertical-align:middle;text-align:left}.table-wrap td.actions>button{display:inline-flex;vertical-align:middle;margin-right:8px;margin-bottom:0}.table-wrap td.actions>button:last-child{margin-right:0}.table-wrap td .toggle-switch{vertical-align:middle}.table-wrap .row-actions{display:flex;align-items:center;gap:8px;min-height:38px}.table-wrap .row-actions button{flex:none}.table-wrap .campus-actions{align-items:center}.table-wrap .campus-action-menu{vertical-align:middle}.table-wrap .campus-menu-trigger{display:inline-flex;align-items:center;justify-content:center}.table-wrap td:last-child{vertical-align:middle}.table-wrap td:last-child>.actions,.table-wrap td:last-child>.row-actions{align-items:center}}
@media (width<=820px){td.actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}td.actions>button{margin:0}.table-wrap .row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}}
.repair-saving-overlay{z-index:20;position:fixed;inset:0;background:#0f172a26;display:grid;place-items:center;pointer-events:all}.repair-spinner{width:48px;height:48px;border-radius:999px;border:5px solid #bae6fd;border-top-color:#0891b2;animation:repairSpin .8s linear infinite;box-shadow:0 10px 28px #0f172a33}@keyframes repairSpin{to{transform:rotate(360deg)}}.status-select:disabled{color:#64748b;background:#f1f5f9;border-color:#cbd5e1;cursor:not-allowed}
