:root{--bg: #f6f7fb;--card: #fff;--line: #e6e8ef;--text: #111827;--muted: #6b7280;--brand: #1e3a8a;--brand-2: #2541b2;--accent: #7c3aed;--danger: #b91c1c;--ok: #047857;--r: 10px;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1{font-size:22px;margin:0 0 4px}h2{font-size:17px;margin:0}h3{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:22px 0 8px}.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center}.nowrap{white-space:nowrap}.center.muted{padding:80px}code{background:#f1f3f8;padding:1px 6px;border-radius:4px;font-size:12px}.shell{display:flex;min-height:100vh}.side{width:240px;background:#0f172a;color:#cbd5e1;padding:18px 14px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;font-size:16px}.brand small{color:#94a3b8;font-weight:500}.brand.big{color:var(--text);font-size:20px}.logo{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;display:grid;place-items:center;font-weight:800}.side nav{display:flex;flex-direction:column;gap:2px}.nav-h{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin:0 8px 6px}.side a{color:#cbd5e1;text-decoration:none;padding:8px 10px;border-radius:8px}.side a:hover{background:#1e293b}.side a.active{background:#1e3a8a;color:#fff}.tenant-pick{margin:0 0 6px;background:#1e293b;color:#fff;border:1px solid #334155}.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:2px;color:#fff}.link{background:none;border:0;color:#93c5fd;padding:0;text-align:left;cursor:pointer;margin-top:6px}.main{flex:1;padding:26px 32px 90px;min-width:0}.page-h{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}.row{display:flex;gap:10px;align-items:center}.row.between{justify-content:space-between}.grow{flex:1;min-width:0}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r)}.pad{padding:20px}input,select{font:inherit;padding:8px 10px;border:1px solid #d5d9e2;border-radius:8px;background:#fff;width:100%}input[type=color]{padding:2px;height:38px}input[type=checkbox]{width:auto}label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#374151;font-weight:500}.btn{font:inherit;font-weight:600;padding:8px 14px;border-radius:8px;border:1px solid #d5d9e2;background:#fff;cursor:pointer;white-space:nowrap}.btn:hover{border-color:#9aa3b5}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-2)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:var(--danger);border-color:#fecaca}.btn.sm{padding:5px 10px;font-size:12px}.error{color:var(--danger);font-size:13px}.search{width:240px}.login{min-height:100vh;display:grid;place-items:center}.login-card{width:360px;padding:28px;display:flex;flex-direction:column;gap:14px}.matrix-wrap{overflow:auto;max-height:calc(100vh - 210px)}.matrix{border-collapse:separate;border-spacing:0;width:100%}.matrix th{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:14px 10px;font-weight:600;min-width:112px;text-align:center;vertical-align:top}.matrix th.perm-col{text-align:left;font-weight:500}.matrix td{border-bottom:1px solid #eef0f5;padding:12px 10px}.perm-col{position:sticky;left:0;background:#fff;z-index:1;min-width:300px;border-right:1px solid var(--line)}.matrix th.perm-col{z-index:3}.role-name{display:flex;justify-content:center;align-items:center;gap:4px}.role-count{color:var(--muted);font-size:12px;font-weight:400;margin:6px 0 8px}.pill{font:inherit;font-size:12px;font-weight:500;color:var(--brand);background:#fff;border:1px solid #d5d9e2;border-radius:999px;padding:4px 12px;cursor:pointer}.pill:hover{border-color:var(--brand)}.x{border:0;background:none;color:var(--muted);cursor:pointer;font-size:16px;line-height:1}.group-row td{background:#f4f6fa;cursor:pointer;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#4b5563;padding:10px}.group-row td:first-child{position:sticky;left:0;z-index:1;background:#f4f6fa}.chev{display:inline-block;margin-right:8px;transition:transform .15s}.chev.closed{transform:rotate(-90deg)}.badge{background:#e2e6f0;color:#4b5563;border-radius:999px;font-size:11px;padding:1px 8px;margin-left:8px;letter-spacing:0}.module-row td{font-size:12px;color:var(--muted);padding:8px 10px 4px;border-bottom:0;position:sticky;left:0}.perm-name{font-weight:600}.perm-desc{color:var(--muted);font-size:12px;margin-top:2px}.cell{text-align:center;white-space:nowrap}.switch{position:relative;width:38px;height:22px;border-radius:999px;border:0;background:#cfd5e1;cursor:pointer;vertical-align:middle;transition:background .15s}.switch:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:left .15s}.switch.on{background:#2541b2}.switch.on:after{left:19px}.switch:disabled{opacity:.55;cursor:not-allowed}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:6px;vertical-align:middle;background:transparent}.dot.show{background:var(--accent)}.savebar{position:fixed;bottom:18px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;border-radius:12px;padding:10px 12px 10px 18px;display:flex;gap:10px;align-items:center;box-shadow:0 10px 30px #0004;z-index:10}.savebar .btn.ghost{color:#cbd5e1}.inline-form{display:flex;gap:12px;align-items:flex-end;padding:14px;margin-bottom:14px;flex-wrap:wrap}.inline-form label{min-width:160px}.split{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:18px;align-items:start}.list{overflow:hidden}.tenant-item{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef0f5;padding:12px 14px;cursor:pointer;font:inherit}.tenant-item:hover{background:#f8f9fc}.tenant-item.sel{background:#eef2ff}.tenant-item small{display:block}.swatch{width:32px;height:32px;border-radius:9px;color:#fff;display:grid;place-items:center;font-weight:700;flex:none}.swatch.lg{width:44px;height:44px;font-size:18px}.status{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px}.status.active{background:#d1fae5;color:var(--ok)}.status.suspended{background:#fee2e2;color:var(--danger)}.form-grid{display:flex;flex-direction:column;gap:12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-weight:500;cursor:pointer}.chip.disabled{opacity:.5;cursor:not-allowed}.chip em{color:#b45309;font-style:normal}table.simple{width:100%;border-collapse:collapse}table.simple th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:10px 14px;border-bottom:1px solid var(--line)}table.simple td{padding:10px 14px;border-bottom:1px solid #eef0f5;vertical-align:middle}table.simple select{width:auto}.details{color:var(--muted);font-size:12px;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag{font-size:11px;font-weight:600;border-radius:6px;padding:2px 7px}.tag.hold{background:#fef3c7;color:#b45309}.tag.off{background:#f1f5f9;color:#475569}.tag.core{background:#e0e7ff;color:#3730a3}.mod-section{margin-bottom:14px;overflow:hidden}.group-title{background:#f4f6fa;padding:10px 16px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#4b5563}.mod-row{display:flex;gap:16px;align-items:center;padding:14px 16px;border-top:1px solid #eef0f5}.perm-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.mod-meta{width:90px;text-align:right}.phone{width:300px;height:560px;border:10px solid #0f172a;border-radius:36px;overflow:hidden;background:#f8fafc;justify-self:center}.phone-bar{color:#fff;padding:22px 16px 14px;display:flex;align-items:center;gap:10px}.phone-bar img{width:32px;height:32px;border-radius:8px;background:#fff;object-fit:contain}.phone-body{padding:14px;display:flex;flex-direction:column;gap:12px}.hero{color:#fff;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 10px;text-align:center;font-weight:600;font-size:13px}.toast{position:fixed;top:18px;right:18px;background:#0f172a;color:#fff;padding:10px 16px;border-radius:10px;z-index:20;box-shadow:0 8px 24px #0003}.toast.err{background:var(--danger)}.pad.muted{padding:16px}.nav-h.sub{margin-top:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{padding:14px 16px;display:flex;flex-direction:column;gap:4px}.stat b{font-size:26px}.stat.warn{border-color:#fcd34d;background:#fffbeb}.split.even{grid-template-columns:1fr 1fr}tr.breach td{background:#fff7ed}.seg{display:flex;border:1px solid #d5d9e2;border-radius:9px;overflow:hidden}.seg button{font:inherit;border:0;background:#fff;padding:8px 14px;cursor:pointer}.seg button.on{background:var(--brand);color:#fff}.banner-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.banner-card{overflow:hidden}.banner-card img{width:100%;aspect-ratio:3 / 1;object-fit:cover;background:#eef2f7;display:block}.pad-s{padding:10px 12px;display:flex;flex-direction:column;gap:4px}.danger-link{color:var(--danger);margin-top:4px}.big-rating{font-size:44px;font-weight:800}.big-rating small{font-size:16px;color:var(--muted);font-weight:500}.dist{display:grid;grid-template-columns:30px 1fr 30px;gap:8px;align-items:center;margin:6px 0;font-size:13px}.dist .bar{background:#eef2f7;height:8px;border-radius:4px;overflow:hidden}.dist .bar i{display:block;height:100%;background:#f59e0b}.stars{color:#f59e0b;letter-spacing:1px}.mini{display:inline-flex;flex-direction:row;align-items:center;gap:4px;margin-right:10px;font-weight:400}table.simple input[type=time]{width:110px}
