:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#16263b;background:#f1f5f9;font-size:15px}*{box-sizing:border-box}body{margin:0}.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}aside{padding:35px 25px;background:#0b1c31;color:#fff}aside img{max-width:190px;width:100%}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#db1880;margin-top:35px}aside h1{font-size:25px}aside p{line-height:1.6;color:#b8c7dc}aside nav{display:grid;gap:20px;margin:45px 0}a{color:inherit;text-decoration:none}.version,.badge{font-size:12px;background:#dfeaf7;border-radius:30px;padding:6px 10px;color:#263c55}.note{font-size:12px;border-top:1px solid #314258;padding-top:20px}main{padding:32px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}header h2{font-size:30px;margin:8px 0}header .eyebrow{margin-top:0}header p{color:#64748b}h3{font-size:18px;margin:0 0 15px}.card{background:white;border:1px solid #e1e7ef;border-radius:16px;padding:24px;margin-bottom:22px;box-shadow:0 4px 18px #16304a04}.narrow{max-width:480px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar h3{margin:0;flex:1}.toolbar label{min-width:230px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0}.metric{background:#fff;border:1px solid #e1e7ef;padding:20px;border-radius:14px}.metric strong{display:block;font-size:32px;margin-top:10px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}label{display:grid;gap:7px;margin:12px 0;color:#526174;font-size:13px}input,select,textarea{padding:12px;border:1px solid #ced8e4;border-radius:8px;font:inherit;width:100%;background:white;color:#16263b}button{padding:11px 15px;border:1px solid #dce4ec;background:#f8fafc;border-radius:9px;font-weight:600;cursor:pointer;color:#17314f}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}.primary{background:#d7157c;color:white;border-color:#d7157c}.yellow{background:#ffd544;border-color:#ffd544}.danger{color:#bd1648}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;margin-top:20px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#64748b;background:#f8fafc}th,td{padding:12px 10px;border-bottom:1px solid #edf1f6;vertical-align:top}td small{display:block;margin-top:5px;color:#64748b}td button{margin:3px;font-size:11px;padding:7px}.row{padding:14px 0;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;align-items:center;gap:12px}.row p{margin:6px 0;font-size:12px;color:#64748b}.error,#message.error{background:#ffe8ee;color:#9c1742}#message:empty{display:none}#message{padding:15px;border-radius:10px;margin-bottom:20px;background:#e6f3ed;color:#1c6747}#updated{font-size:11px;color:#64748b}.empty{color:#718096;padding:20px 0}.alert{border-left:4px solid #d7157c;padding-left:15px}dialog{border:none;border-radius:16px;max-width:620px;width:calc(100% - 30px);padding:25px;color:#16263b}dialog::backdrop{background:#081b32aa}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head button{font-size:22px;padding:3px 12px}.code{font-family:monospace;font-size:23px;letter-spacing:1px;overflow-wrap:anywhere;background:#eff4f9;padding:22px;text-align:center}.hint{font-size:13px;line-height:1.6;color:#64748b}footer{font-size:12px;color:#8291a5;margin-top:30px}[hidden]{display:none!important}@media(max-width:1000px){.columns{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.layout{grid-template-columns:190px 1fr}main{padding:22px}aside{padding:25px 18px}}@media(max-width:650px){.layout{display:block}aside{padding:18px 22px}aside img{width:155px}aside h1,aside>p,aside .version,aside nav,aside .note{display:none}main{padding:20px 14px}header h2{font-size:24px}.card{padding:18px}.metrics{gap:10px}.metric{padding:15px}.metric strong{font-size:26px}}

.sim-slot{border:1px solid #d9e2ed;border-radius:10px;padding:14px;margin:16px 0}.sim-slot legend{font-weight:700;padding:0 6px}.event-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:14px 0}.event-filters label{flex:1 1 150px}.event-filters input,.event-filters select{min-width:0;width:100%}.event-pages{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}

#device-map{height:440px;width:100%;border:1px solid #dce5ef;border-radius:12px;background:#e8eef4;z-index:0}.map-toolbar{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.map-toolbar label{min-width:220px;max-width:450px;flex:1}.map-toolbar p{flex:2}.map-legend{display:flex;gap:18px;flex-wrap:wrap;margin:8px 0 16px;color:#526174;font-size:12px}.map-legend>span{display:flex;gap:6px;align-items:center}.map-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#168763}.map-dot--stale{background:#b97a08}.map-dot--offline{background:#64748b}.ghost-map-marker{background:none;border:none}.ghost-pin{display:grid;place-items:center;width:34px;height:34px;border:3px solid white;border-radius:50%;background:#168763;color:#fff;font-size:11px;font-weight:800;box-shadow:0 2px 7px #0b1c3166}.ghost-pin--stale{background:#b97a08}.ghost-pin--offline{background:#64748b}.ghost-map-marker:focus{outline:3px solid #d7157c;outline-offset:3px;border-radius:50%}.ghost-map-tooltip{white-space:normal;min-width:260px;max-width:340px;padding:14px}.ghost-map-details{font-family:Inter,Segoe UI,Arial,sans-serif;min-width:220px;max-width:320px;color:#16263b;overflow-wrap:anywhere}.ghost-map-details>strong{display:block;font-size:15px;margin-bottom:10px}.ghost-map-details dl{display:grid;grid-template-columns:105px minmax(100px,1fr);gap:7px 10px;margin:0;font-size:12px;line-height:1.4}.ghost-map-details dt{color:#64748b}.ghost-map-details dd{margin:0}.map-footnote{font-size:12px}.map-footnote a{text-decoration:underline}.map-tile-error{padding:12px;border-radius:8px}.leaflet-control-attribution{font-size:11px}.leaflet-control-attribution a{color:#17638c;text-decoration:underline}@media(max-width:650px){#device-map{height:350px}.map-toolbar{gap:0}.map-toolbar label{max-width:none}.ghost-map-tooltip{min-width:220px;max-width:280px}.ghost-map-details dl{grid-template-columns:90px minmax(90px,1fr)}}

.central-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.central-form label:nth-child(3),.central-form .central-sender{grid-column:1/-1}.central-form textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;padding:10px;border:1px solid #c8d5e4;border-radius:8px}.central-history td{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.central-form{grid-template-columns:1fr}}

/* STAFFARMOR COMM 0.2.5 C - Ghost Control Center integration */
.comm-admin{border-left:4px solid #d7157c}
.comm-admin .comm-admin-status{margin:14px 0}
.comm-admin .comm-admin-status.is-error{color:#9c1742}
.comm-admin .comm-admin-status.is-success{color:#176747}
.comm-admin .comm-device-revoked{color:#a42847}
.comm-admin .comm-code{display:block;max-width:100%;font-family:Consolas,monospace;background:#eff4f9;border:1px solid #dce5ef;border-radius:8px;padding:12px;overflow-wrap:anywhere;user-select:all;font-size:13px}
.comm-admin .comm-hint-strong{font-weight:700;color:#a02854}
.comm-admin button[data-comm-revoke]{color:#a42847}
.comm-admin td{overflow-wrap:anywhere}
@media(max-width:650px){.comm-admin .toolbar button{width:100%}}

/* COMM 0.2.6A - first live channel label management */
.comm-channel-box{padding:16px 18px;margin:17px 0;background:#f5f9fd;border:1px solid #dbe7f0;border-radius:12px}
.comm-channel-box h4{font-size:15px;margin:0;flex:1}
.comm-channel-box .comm-channel-name{font-size:20px;font-weight:750;margin:12px 0 8px;color:#12334d;overflow-wrap:anywhere}
.comm-channel-box [data-comm-channel-status].is-error{color:#a52847}
.comm-channel-box [data-comm-channel-status].is-success{color:#176747}

/* STAFFARMOR COMM 0.2.7B - enterprise LiveKit channel management */
.comm-extra-box{padding:16px 18px;margin:17px 0;background:#fcfdff;border:1px solid #dbe7f0;border-radius:12px}
.comm-extra-box h4,.comm-client-title{font-size:15px;margin:0 0 12px;color:#12334d}
.comm-extra-box .toolbar h4{flex:1;margin:0}
.comm-extra-box [data-comm-extras-status].is-error{color:#a52847}
.comm-extra-box [data-comm-extras-status].is-success{color:#176747}
.comm-extra-box table{margin-top:10px}
.comm-admin .comm-main-label{display:inline-block;border-radius:7px;background:#e5eef6;padding:5px 9px;font-size:12px;color:#153a54}
.comm-admin .comm-permission-count{font-size:12px;color:#62768c}
.comm-admin .comm-channel-archive{color:#a42847}
.comm-admin .comm-access-checks{border:1px solid #dbe7f0;padding:12px;border-radius:10px;max-height:280px;overflow:auto}
.comm-admin .comm-access-checks label{display:flex;align-items:center;gap:12px;margin:7px 0;color:#18354f}
.comm-admin .comm-access-checks input{width:auto;flex:none}
.comm-admin .comm-client-title{margin-top:20px}
@media(max-width:650px){.comm-extra-box .toolbar button{width:100%}}


/* STAFFARMOR GHOST CONSOLE 0.2.8A - navigation-only layout; brand palette preserved */
.ghost-sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto;overscroll-behavior:contain;padding:26px 18px;scrollbar-color:#53657b #0b1c31;z-index:30}
.ghost-sidebar-brand img{width:100%;max-width:190px}
.ghost-sidebar h1{font-size:22px;margin:12px 0 4px}
.ghost-sidebar .ghost-sidebar-eyebrow{margin:24px 0 12px}
.ghost-sidebar .ghost-sidebar-caption{font-size:12px;margin:6px 0 14px}
.ghost-sidebar .version{display:inline-block;margin-bottom:18px}
.ghost-sidebar .ghost-side-nav{display:grid;gap:17px;margin:12px 0 20px}
.ghost-nav-group{padding:0 0 13px;border-bottom:1px solid #2b4058}
.ghost-nav-group-title{margin:0 0 8px!important;padding:0 12px;font-size:10px;letter-spacing:1.5px;font-weight:750;color:#89a5c3!important}
.ghost-side-nav [data-ghost-view]{display:block;width:100%;border:0;border-left:3px solid transparent;background:transparent;color:#d9e6f5;text-align:left;font:600 13px/1.3 Inter,Segoe UI,Arial,sans-serif;padding:11px 10px;border-radius:6px;cursor:pointer;margin:2px 0;transition:background .15s,border-color .15s}
.ghost-side-nav [data-ghost-view]:hover{background:#1a334e;color:#fff;filter:none}
.ghost-side-nav [data-ghost-view].is-active{background:#253a52;border-left-color:#df1680;color:#fff}
.ghost-side-nav [data-ghost-view]:focus-visible{outline:2px solid #f6c0db;outline-offset:1px}
.ghost-nav-legacy{font-size:10px;border:1px solid #6d7b8b;border-radius:5px;color:#c1cfdf;padding:2px 5px;margin-left:5px;white-space:nowrap}
.ghost-sidebar .ghost-external-links{display:grid;gap:10px;margin:16px 0 10px}
.ghost-external-links a{font-size:12px;color:#aebfd4}
.ghost-external-links a:hover{color:#fff;text-decoration:underline}
.ghost-sidebar .note{line-height:1.5;margin-bottom:12px;color:#91a7c2}
.ghost-mobile-menu{display:none}
.ghost-global-bar{position:relative}
.ghost-view-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:3px 3px 19px;margin:0 0 3px}
.ghost-view-heading h3{font-size:25px;color:#102c47;line-height:1.2;margin:2px 0}
.ghost-view-heading .hint{margin:6px 0 0}
.ghost-view-kicker{font-size:10px;letter-spacing:1.7px;color:#c71573;font-weight:750;margin:0}
.ghost-view-version{font-size:10px;color:#8a9cb1;white-space:nowrap}
[data-ghost-pane]:not(.ghost-view-active),[data-ghost-comm-pane]:not(.ghost-comm-active){display:none!important}
.ghost-nav-inactive{display:none!important}
.ghost-dashboard .metrics{margin:0 0 18px}
.ghost-dashboard-actions{border-left:4px solid #d7157c}
.ghost-quick-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ghost-quick-links button{padding:13px 17px;background:#f4f7fb;border-color:#d8e1ec}
.ghost-comm-pane{min-width:0}
.ghost-info-block{padding:16px 18px;border:1px solid #dbe7f0;border-radius:12px;background:#f5f9fd;margin:14px 0 16px}
.ghost-info-block h4{margin:0 0 6px;color:#12334d;font-size:15px}
.ghost-info-block p{font-size:13px;color:#61738a;line-height:1.6;margin:0}
.comm-admin.ghost-hide-invite [data-comm-invite]{display:none!important}
.ghost-platform-shortcuts{padding:12px 18px}
.ghost-platform-shortcuts h3{font-size:14px}
.ghost-platform-shortcuts .hint{display:none}
@media (min-width:651px){.layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1000px) and (min-width:651px){.layout{grid-template-columns:226px minmax(0,1fr)}.ghost-sidebar{padding:22px 12px}}
@media(max-width:650px){
 .layout{display:block}
 .ghost-sidebar{height:auto;max-height:none;overflow:visible;position:sticky;top:0;padding:11px 14px;background:#0b1c31;box-shadow:0 3px 14px #0b1c3130}
 .ghost-sidebar-brand{display:flex;align-items:center;justify-content:space-between;gap:15px}
 .ghost-sidebar-brand img{max-width:160px}
 .ghost-mobile-menu{display:inline-flex;color:white;background:#203b55;border-color:#38546d;padding:9px 12px;font-size:13px}
 .ghost-sidebar h1,.ghost-sidebar .ghost-sidebar-caption,.ghost-sidebar .ghost-sidebar-eyebrow,.ghost-sidebar .version,.ghost-sidebar .note,.ghost-sidebar .ghost-external-links{display:none!important}
 .ghost-sidebar .ghost-side-nav{display:none;max-height:min(66vh,570px);overflow:auto;overscroll-behavior:contain;margin:10px 0 0;padding:8px 3px 4px;gap:6px}
 body.ghost-nav-open .ghost-sidebar .ghost-side-nav:not([hidden]){display:grid}
 .ghost-nav-group{padding-bottom:7px}
 .ghost-nav-group-title{margin-bottom:3px!important}
 .ghost-side-nav [data-ghost-view]{padding:12px}
 .ghost-view-heading{align-items:flex-start;margin:0;padding:6px 2px 13px}
 .ghost-view-heading h3{font-size:21px}
 .ghost-view-version{font-size:9px}
 .ghost-global-bar{padding:12px}
 .ghost-global-bar .toolbar{align-items:flex-end}
 .ghost-global-bar .toolbar label{width:100%;min-width:0}
 .ghost-dashboard .metrics{grid-template-columns:1fr 1fr}
 .ghost-dashboard .metric{padding:12px}
 .ghost-quick-links button{width:100%}
}
@media(prefers-reduced-motion:reduce){.ghost-side-nav [data-ghost-view]{transition:none}}
