:root{--bg:#f4f7fc;--card:#fff;--text:#18283e;--muted:#62738b;--border:#dce5f0;--blue:#265bd6;--blue-dark:#1b449d;--teal:#137d71;--red:#b42d3c;--amber:#a66b12;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}header{height:64px;background:var(--card);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:12;display:flex;justify-content:space-between;align-items:center;padding:0 max(15px,calc((100vw - 1160px)/2));gap:10px}header b{font-size:17px;letter-spacing:-.3px}header a{font-size:13px;color:var(--muted);text-decoration:none;font-weight:700}main{width:min(1120px,100%);padding:24px 16px 100px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:18px;flex-wrap:wrap}h1{font-size:27px;line-height:1.17;letter-spacing:-.65px;margin:2px 0 4px}h2{font-size:18px;margin:0 0 8px}h3{font-size:15px;margin:0 0 8px}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{text-transform:uppercase;font-weight:800;letter-spacing:1.3px;color:var(--blue);font-size:10px}.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:14px;box-shadow:0 3px 18px rgba(28,56,94,.025)}.stack{display:grid;gap:13px}.filters{display:grid;grid-template-columns:1fr 1.65fr auto;gap:12px;align-items:end}.field{display:grid;gap:5px;min-width:0}.field label{font-size:12px;font-weight:800;color:#42566f}.field select,.field input,.field textarea{width:100%;border:1px solid #cbd7e6;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);min-height:45px;outline-offset:2px}.field textarea{min-height:80px;resize:vertical}.btn{background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:10px;padding:11px 14px;min-height:43px;font-size:13px;font-weight:780;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{filter:brightness(.96)}.btn.secondary{color:#284a83;background:#fff;border-color:#cbd9ef}.btn.danger{background:#fff;border-color:#ebcad0;color:var(--red)}.btn.ghost{background:#eef4ff;color:#2752a5;border-color:#e0e8fa}.btn:disabled{opacity:.52;cursor:not-allowed}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.badge{border-radius:99px;padding:5px 10px;display:inline-flex;align-items:center;font-size:11px;font-weight:800;background:#e9f0fc;color:#2c579e}.badge.ok{background:#e1f3e9;color:#08724f}.badge.warn{background:#fff1d9;color:#92600d}.badge.bad{background:#fbe9eb;color:#a83242}.segmented{display:flex;gap:4px;background:#eaf0f8;border-radius:11px;padding:4px}.segmented button{border:0;border-radius:8px;background:transparent;color:#506682;min-height:38px;flex:1;padding:5px 15px;font-weight:750}.segmented button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px #ccdbef}.notice{background:#eef5ff;border:1px solid #cce0ff;color:#355779;border-radius:11px;padding:12px;font-size:12px;line-height:1.55}.notice.warn{background:#fff9eb;border-color:#f6e6c7;color:#785a2a}.notice.error{background:#fff0f1;border-color:#f2cbd1;color:#a32f3a}.wall{border:1px solid #d9e3f0;background:linear-gradient(180deg,#f8faff,#f0f4f9);border-radius:13px;padding:14px 11px}.wall-caption{font-size:11px;color:#667892;display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.slot{position:relative;border:1.5px solid #d0dbeb;background:#fff;border-radius:11px;padding:11px 5px;min-height:120px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;text-align:center}.slot.selected{border-color:var(--blue);background:#edf4ff;box-shadow:0 0 0 2px #dce9ff}.slot .screen{width:55%;height:35px;border:3px solid #51657c;border-radius:3px;background:linear-gradient(130deg,#c3d7ec,#edf5fb);position:relative}.slot .screen:after{content:'';position:absolute;left:48%;bottom:-8px;width:2px;height:6px;background:#51657c}.slot.soundbar .screen{height:9px;border-width:1px;border-radius:8px;background:#475b72}.slot.soundbar .screen:after{display:none}.slot b{font-size:11px;overflow-wrap:anywhere;line-height:1.2}.slot small{font-size:9px}.slot .slot-id{position:absolute;top:6px;left:8px;font-size:9px;font-weight:800;color:#7e8fa7}.slot.empty{border-style:dashed}.two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:15px}.divider{height:1px;background:var(--border);margin:14px 0}.requests{display:grid;gap:10px}.request{border:1px solid var(--border);border-radius:12px;padding:13px;display:flex;justify-content:space-between;align-items:start;gap:12px}.request strong{display:block;font-size:13px}.request p{font-size:12px;margin:4px 0;color:var(--muted)}.dialog-bg{position:fixed;inset:0;background:#11223a82;display:flex;justify-content:flex-end;z-index:30}.dialog-bg[hidden],section[hidden],div[hidden]{display:none!important}.drawer{height:100%;width:min(520px,100%);background:#fff;display:flex;flex-direction:column}.drawer-head{padding:18px 20px;border-bottom:1px solid var(--border)}.drawer-main{padding:19px 20px;overflow:auto;flex:1}.drawer-actions{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--border);display:flex;gap:8px}.drawer-actions>.btn:last-child{flex:1}.close{border:0;background:none;color:#6f7f93;font-size:24px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pair>div{padding:15px;background:#f5f8fc;border-radius:12px;font-size:13px}.pair strong{display:block;overflow-wrap:anywhere}.switcher{display:flex;gap:10px;margin-bottom:14px}.switcher label{flex:1;background:#f4f7fc;border:1px solid var(--border);border-radius:11px;padding:12px;cursor:pointer;font-size:13px;font-weight:700}.switcher input{accent-color:var(--blue)}.hidden{display:none!important}.toolbar{display:flex;gap:9px;flex-wrap:wrap;justify-content:space-between;align-items:center}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:12px;min-width:520px}th,td{text-align:left;border-bottom:1px solid var(--border);padding:11px 10px}th{background:#f5f8fd;color:#536984;font-size:11px}tr:last-child td{border-bottom:0}.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kpi{background:#f6f9fd;padding:15px;border-radius:12px}.kpi b{font-size:25px;display:block}.kpi small{display:block}.tabs{display:flex;gap:7px;margin-bottom:14px;overflow:auto}.tabs button{border:1px solid var(--border);background:#fff;border-radius:10px;padding:11px 14px;white-space:nowrap;font-size:12px;font-weight:800;color:#62738a}.tabs button.active{background:#e9f0ff;border-color:#9fbbec;color:var(--blue)}.bottom{font-size:11px;color:#8697aa;margin-top:20px}.screen-only{}@media(max-width:750px){header{padding:0 13px;height:58px}header b{font-size:14px}main{padding:15px 11px 95px}h1{font-size:23px}.panel{padding:14px}.filters{grid-template-columns:1fr 1fr}.filters .field:nth-child(2){grid-column:1/-1;grid-row:2}.filters .field:nth-child(3){grid-column:2;grid-row:1}.two{grid-template-columns:1fr}.slot-grid{gap:7px}.slot{min-height:105px;padding:8px 3px}.slot .screen{height:28px}.slot b{font-size:10px}.slot small{font-size:9px}.kpis{grid-template-columns:repeat(2,1fr)}.toolbar>.btn{flex:1}.drawer-head,.drawer-main{padding:16px}.drawer-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}}@media(max-width:340px){.slot-grid{grid-template-columns:repeat(2,1fr)}}
/* Keep area toggle inside the mobile store selector at all viewport widths. */
@media(max-width:750px){.filters{grid-template-columns:minmax(0,1fr) minmax(0,1.14fr)}.filters .segmented{width:100%;min-width:0}.filters .segmented button{min-width:0;padding:6px 3px;font-size:12px}.filters>.field{min-width:0}}
