:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#e4eaf6;background:#0b1120;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top right,#172b4c,transparent 60%);min-height:100vh}main{max-width:850px;margin:auto;padding:64px 24px}header{margin-bottom:32px}.badge{font-size:12px;letter-spacing:2px;color:#73c5ff}h1{font-size:36px;letter-spacing:1px;margin:16px 0}p,footer{color:#a8b6ce;line-height:1.7}section{padding:28px;background:#121d30;border:1px solid #29374d;border-radius:16px}h2{font-size:18px;margin:0 0 20px}.heading{display:flex;justify-content:space-between;align-items:baseline}form{display:grid;gap:18px}label{display:grid;gap:10px;font-size:14px;color:#bccbe1}input,select,button{font:inherit;border-radius:8px;padding:13px 16px}input,select{width:100%;background:#0b1424;border:1px solid #35465f;color:#fff}input:focus,select:focus{outline:2px solid #61b8ff;outline-offset:2px}button{cursor:pointer;border:0;background:#55adf4;color:#071629;font-weight:600}button:disabled{opacity:.4;cursor:default}button.secondary{background:#233750;color:#d2e8ff;padding:9px 14px}input:disabled{opacity:.5}.zones{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 28px}.zone-card{padding:14px;border:1px solid #2a3b54;border-radius:8px;font-size:14px}.zone-card small{display:block;margin-top:10px;color:#9baac1;font-size:12px}.zone-card.ready small{color:#72dfb0}.zone-card.selected{border-color:#61b8ff;background:#162e49}#result{padding:20px;background:#0b1929;border-radius:10px;border:1px solid #2a5166}#resultTitle,#identifier,#number{display:block}#identifier{font-family:Consolas,monospace;font-size:24px;letter-spacing:1px;margin:16px 0;overflow-wrap:anywhere}#number{margin-top:14px;color:#a3b2c6}footer{font-size:12px;text-align:center;margin:28px}.error{color:#ffafa6}#status{min-height:28px}#loginPanel{max-width:480px;margin:auto}[hidden]{display:none!important}@media(max-width:550px){main{padding:28px 16px}h1{font-size:28px}section{padding:20px}.zones{grid-template-columns:repeat(2,1fr)}#identifier{font-size:19px}}
textarea{font:inherit;width:100%;resize:vertical;border:1px solid #35465f;border-radius:8px;padding:13px 16px;background:#0b1424;color:#fff;line-height:1.7}textarea:disabled{opacity:.5}textarea:focus{outline:2px solid #61b8ff;outline-offset:2px}button.zone-card{text-align:left;background:#101b2d;color:#e4eaf6;font-weight:400}button.zone-card.selected{border-color:#61b8ff;background:#162e49}button.zone-card:focus-visible{outline:2px solid #61b8ff;outline-offset:2px}.queue-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #29374d;padding-top:24px;margin-top:20px}.queue-heading h2{margin:0 auto 0 0}.queue-note,#nameCount,#selectionCount{font-size:13px;color:#a8b6ce}.queue-row{display:flex;gap:14px;align-items:center;padding:16px 10px;border-bottom:1px solid #29374d}.queue-row input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#55adf4}.queue-row div{min-width:0}.queue-row small,.queue-row code{display:block;margin-top:7px;overflow-wrap:anywhere}.queue-row small{color:#a8b6ce}.queue-row code{font-size:16px;color:#86d3fc}.queue-row .error{color:#ffafa6}
.send-controls{position:fixed;z-index:10;left:50%;bottom:12px;transform:translateX(-50%);width:calc(100% - 32px);max-width:802px;max-height:40vh;overflow:auto;padding:16px 20px;border:1px solid #456587;border-radius:12px;background:#14243b;box-shadow:0 8px 36px #0009}.send-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.send-controls span,#senderStatus{font-size:13px;color:#c5d5e9}#senderStatus{margin:10px 0 0;line-height:1.5;overflow-wrap:anywhere}#stopSending{border:1px solid #c88073;color:#ffd2ca}#startSending:disabled,#stopSending:disabled{opacity:.65}main{padding-bottom:190px}@media(max-width:550px){.send-controls{padding:12px 14px;bottom:8px}.send-actions{gap:10px}.send-actions span{font-size:12px}main{padding-bottom:180px}}
.staff-main{max-width:1180px}.staff-toolbar,nav#staffTabs{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.staff-toolbar strong{margin-right:auto}nav#staffTabs button{background:#213956;color:#d7eaff}.staff-form{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:22px 0}.staff-form label{flex:1;min-width:140px}.staff-form button{min-height:46px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid #2b3c55;white-space:pre-line;overflow-wrap:anywhere}td{max-width:280px}th{color:#abc2dc}td button{font-size:12px;margin:3px;padding:7px 10px!important}#generatedPanel{padding:18px;background:#0b1728;border:1px solid #385c79;border-radius:10px}#generatedKeys{font-family:Consolas,monospace;margin-bottom:12px}#staffLogin{max-width:480px;margin:auto}#staffStatus{position:sticky;bottom:8px;z-index:12;background:#12243c;border-radius:10px;padding:12px;min-height:44px}.staff-panel .heading{gap:14px;flex-wrap:wrap}.staff-panel .heading span{color:#a8b6ce;font-size:13px}a{color:#8bcaff}@media(max-width:550px){.staff-form{display:grid;grid-template-columns:1fr;width:100%}.staff-main{padding-bottom:40px}}

/* User workspace: macOS Vibrancy. Scoped so staff pages retain their layout. */
.user-page{--u-bg:#1c1c1e;--u-mid:#2c2c2e;--u-raised:#3a3a3c;--u-text:#f0f0f2;--u-muted:#b2b2b8;--u-border:rgba(255,255,255,.1);--u-blue:#0a84ff;--u-green:#30d158;--u-red:#ff6961;background:var(--u-bg);color:var(--u-text);color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;min-height:100svh}
.user-page .user-main{max-width:1200px;margin:0 auto;padding:52px 32px 28px;min-height:100svh}
.user-page section{padding:0;background:none;border:0;border-radius:0}
.user-page h1,.user-page h2,.user-page p{margin:0;letter-spacing:normal}
.user-page p{color:var(--u-muted);line-height:1.6}
.user-page button{font:inherit;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:7px;cursor:pointer;background:var(--u-blue);color:#fff;font-weight:600;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out;touch-action:manipulation}
.user-page button:hover:enabled{background:#2692ff}
.user-page button:active:enabled{background:#006bd6}
.user-page button:disabled{background:rgba(255,255,255,.08);color:rgba(255,255,255,.38);opacity:1;cursor:default}
.user-page button:focus-visible,.user-page input:focus-visible,.user-page textarea:focus-visible{outline:2px solid #69b5ff;outline-offset:3px}
.user-page .eyebrow{font-size:10px;font-weight:600;letter-spacing:.12em;color:var(--u-muted)}
.user-page .app-window{background:rgba(44,44,46,.92);border:1px solid var(--u-border);border-radius:15px;box-shadow:0 1px 2px #0003;overflow:hidden;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.user-page .window-toolbar{margin:0;min-height:96px;padding:20px 26px;display:flex;gap:20px;align-items:center;justify-content:space-between;background:rgba(58,58,60,.7);border-bottom:1px solid var(--u-border);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
.user-page .brand{display:flex;gap:12px;align-items:center;flex-shrink:0}
.user-page .brand-mark,.user-page .login-mark{display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);font-family:Georgia,"Times New Roman",serif;color:#fff}
.user-page .brand-mark{width:38px;height:38px;border-radius:10px;font-size:25px;font-style:italic}
.user-page .brand strong{display:block;font-size:16px;letter-spacing:.03em}
.user-page .brand-subtitle{display:block;margin-top:3px;font-size:9px;letter-spacing:.14em;color:var(--u-muted)}
.user-page .account-tools{display:flex;gap:26px;align-items:center;min-width:0}
.user-page .expiry-block{display:grid;grid-template-columns:auto auto;column-gap:12px;align-items:baseline}
.user-page #authLabel{font-size:10px;color:var(--u-muted);grid-column:1/-1;margin-bottom:2px}
.user-page #expiresAt{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.user-page #authInfo{font-size:11px;white-space:nowrap;color:var(--u-muted)}
.user-page #authInfo.expiring{color:#ffbf66}
.user-page .toolbar-actions{display:flex;gap:4px}
.user-page .toolbar-button{display:flex;gap:7px;align-items:center;justify-content:center;background:transparent;border-color:var(--u-border);font-size:12px;color:#dedee3;padding:8px 12px;font-weight:500}
.user-page .toolbar-button:hover:enabled{background:rgba(255,255,255,.08)}
.user-page .toolbar-button:disabled{background:transparent}
.user-page svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.user-page .workspace-layout{display:grid;grid-template-columns:196px minmax(0,1fr);min-height:468px}
.user-page .zone-sidebar{padding:26px 14px 20px;background:rgba(28,28,30,.65);border-right:1px solid var(--u-border);display:flex;flex-direction:column;backdrop-filter:blur(40px);-webkit-backdrop-filter:blur(40px)}
.user-page .sidebar-heading{padding:0 12px 18px;display:grid;gap:5px}
.user-page .sidebar-caption{font-size:11px;color:#919198}
.user-page .zones{display:grid;grid-template-columns:1fr;gap:6px;margin:0}
.user-page button.zone-card{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:9px;padding:12px 11px;min-height:52px;text-align:left;background:transparent;color:var(--u-text);border-color:transparent;font-weight:500}
.user-page .zone-icon{font-size:19px;color:#a4a4ac;line-height:1}
.user-page .zone-name{font-size:13px}
.user-page .zone-card small{font-size:10px;margin:0;color:#909098}
.user-page .zone-card.ready small{color:#a7b8aa}
.user-page button.zone-card.selected{background:rgba(10,132,255,.18);border-color:rgba(10,132,255,.12)}
.user-page .zone-card.selected .zone-icon,.user-page .zone-card.selected small{color:#70b7ff}
.user-page button.zone-card:hover:enabled{background:rgba(255,255,255,.06)}
.user-page button.zone-card.selected:hover:enabled{background:rgba(10,132,255,.23)}
.user-page .sidebar-footnote{display:flex;gap:10px;padding:20px 10px 0;margin-top:auto}
.user-page .sidebar-footnote p{font-size:11px;line-height:1.8;color:#c1c1c6}
.user-page .sidebar-footnote p span{color:#8b8b93}
.user-page .small-spark{color:#8a8a92;font-size:18px}
.user-page .workspace-content{padding:30px 30px 26px;min-width:0}
.user-page .workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}
.user-page .workspace-heading h1{font-size:27px;font-weight:500;letter-spacing:-.03em;margin:5px 0 7px;font-family:Georgia,"Songti SC","SimSun",serif;line-height:1.25}
.user-page #zoneHint{font-size:12px}
.user-page .availability{white-space:nowrap;font-size:10px;border:1px solid var(--u-border);border-radius:999px;padding:5px 9px;color:#a9a9b0;align-self:flex-start;margin-top:24px}
.user-page .availability.available{color:#88e7a0;background:rgba(48,209,88,.07);border-color:rgba(48,209,88,.14)}
.user-page .query-workspace{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:28px}
.user-page .input-pane{min-width:0}
.user-page .results-pane{min-width:0;padding-left:28px;border-left:1px solid var(--u-border)}
.user-page .pane-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin-bottom:4px}
.user-page h2{font-size:14px;font-weight:600;line-height:1.4}
.user-page #queueCount{display:inline-grid;place-items:center;margin-left:5px;font-size:10px;min-width:20px;height:20px;border-radius:5px;background:rgba(255,255,255,.06);color:var(--u-muted);font-variant-numeric:tabular-nums}
.user-page #nameCount{font-size:11px;color:var(--u-muted);font-variant-numeric:tabular-nums}
.user-page .pane-description{font-size:11px;margin-bottom:16px}
.user-page #queryForm{display:grid;gap:12px}
.user-page textarea,.user-page #licenseKey{font:inherit;background:rgba(28,28,30,.68);border:1px solid var(--u-border);border-radius:8px;color:var(--u-text);padding:13px 14px;width:100%;line-height:1.85;box-shadow:inset 0 1px 1px #0001}
.user-page textarea{min-height:204px;resize:vertical;max-height:420px;margin:0;font-size:14px}
.user-page textarea::placeholder,.user-page input::placeholder{color:#8d8d96;opacity:1}
.user-page textarea:disabled{opacity:.7}
.user-page #queryButton{width:100%;min-height:44px}
.user-page .inline-status{font-size:11px;min-height:36px;margin-top:12px;overflow-wrap:anywhere}
.user-page .text-button{background:transparent;padding:5px 0 5px 12px;min-height:34px;color:#66b3ff;font-size:12px;font-weight:500}
.user-page .text-button:hover:enabled{background:transparent;color:#9dceff}
.user-page .text-button:disabled{background:transparent;color:#81818a}
.user-page .result-list{min-height:244px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#56565c transparent}
.user-page .empty-state{display:flex;min-height:232px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:8px;padding:16px}
.user-page .empty-mark{display:grid;place-items:center;font-size:31px;width:50px;height:50px;border-radius:12px;border:1px solid var(--u-border);margin-bottom:4px;color:#82828b;background:rgba(255,255,255,.02)}
.user-page .empty-state strong{font-size:12px;font-weight:500;color:#d0d0d6}
.user-page .empty-state p{font-size:11px;color:#92929b}
.user-page .queue-row{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 9px;margin:0;border:0;border-bottom:1px solid rgba(255,255,255,.07);border-radius:6px;cursor:pointer;transition:background-color .2s ease-out}
.user-page .queue-row:hover{background:rgba(255,255,255,.04)}
.user-page .queue-row.checked{background:rgba(10,132,255,.1)}
.user-page .queue-row input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--u-blue);padding:0;border-radius:4px;cursor:pointer}
.user-page .player-name{font-size:13px;overflow-wrap:anywhere;min-width:0;flex:1;color:#e4e4e9}
.user-page .result-state{font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:5px;color:var(--u-muted)}
.user-page .result-state::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.user-page .result-state.success{color:#78e499}
.user-page .result-state.failed{color:#ff948a}
.user-page .result-state.pending{color:#d5ba80}
.user-page .results-summary{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--u-border);padding-top:12px;margin-top:8px;font-size:10px;color:#96969f}
.user-page #selectionCount{font-size:11px;color:#c6c6ce}
.user-page .send-controls{position:static;transform:none;width:100%;max-width:none;max-height:none;overflow:visible;padding:17px 30px;border:0;border-top:1px solid var(--u-border);border-radius:0;background:rgba(58,58,60,.6);box-shadow:none;display:flex;align-items:center;justify-content:space-between;gap:24px;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}
.user-page .send-summary{display:flex;gap:11px;align-items:center;min-width:0}
.user-page .sender-dot{width:7px;height:7px;background:#7b7b84;border-radius:50%;flex-shrink:0}
.user-page .sender-dot.active{background:var(--u-green)}
.user-page #senderStatus{display:block;margin:0;color:var(--u-text);font-size:12px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.user-page .send-frequency{display:block;margin-top:3px;color:#a5a5af;font-size:10px}
.user-page .send-actions{display:flex;gap:8px;flex-wrap:nowrap;flex-shrink:0}
.user-page #startSending,.user-page #stopSending{min-width:100px;min-height:42px;font-size:13px}
.user-page #stopSending{background:rgba(255,255,255,.05);color:#e5e5ea;border:1px solid rgba(255,255,255,.12)}
.user-page #stopSending:hover:enabled{background:rgba(255,69,58,.12);border-color:rgba(255,69,58,.3);color:#ffb1aa}
.user-page #stopSending:disabled{color:#777780;background:transparent;border-color:rgba(255,255,255,.06);opacity:1}
.user-page .user-footer{font-size:10px;color:#86868f;margin:22px 0 0;letter-spacing:.12em}
.user-page .login-window{width:100%;max-width:410px;margin:8vh auto 0;padding:36px 34px 24px;border:1px solid var(--u-border);border-radius:15px;background:rgba(44,44,46,.9);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.user-page .login-mark{width:52px;height:52px;font-size:33px;font-style:italic;border-radius:13px;margin-bottom:28px}
.user-page .login-window h1{font-size:30px;line-height:1.3;font-family:Georgia,"Songti SC","SimSun",serif;font-weight:500;margin:8px 0 10px}
.user-page .login-description{font-size:12px;margin-bottom:28px}
.user-page #loginForm{gap:8px}
.user-page #loginForm label{font-size:12px;color:#d7d7df;display:block}
.user-page #licenseKey{min-height:46px;margin-bottom:6px}
.user-page #loginButton{display:flex;align-items:center;justify-content:space-between}
.user-page .login-status{min-height:24px;font-size:12px;color:#ffb5ad;margin-top:12px}
.user-page .login-note{font-size:10px;color:#9999a2;padding-top:18px;border-top:1px solid var(--u-border);margin-top:12px}
.user-page .error{color:#ffaaa2!important}
.user-page .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:760px){.user-page #queryPanel[hidden]+.user-footer{margin-top:28px}}
@media(max-width:1050px) and (min-width:761px){.user-page .user-main{padding:32px 20px}.user-page .workspace-layout{grid-template-columns:160px minmax(0,1fr)}.user-page .workspace-content{padding:26px 22px}.user-page .query-workspace{gap:20px}.user-page .results-pane{padding-left:20px}.user-page .account-tools{gap:14px}.user-page .expiry-block{grid-template-columns:1fr}.user-page .toolbar-button{padding:8px 10px}}
@media(max-width:760px){
 .user-page .user-main{padding:16px 14px calc(128px + env(safe-area-inset-bottom))}
 .user-page .app-window{border-radius:13px;overflow:visible;backdrop-filter:none;-webkit-backdrop-filter:none}
 .user-page .window-toolbar{padding:16px;align-items:flex-start;gap:14px;border-radius:13px 13px 0 0;flex-wrap:wrap}
 .user-page .brand-mark{width:32px;height:32px;font-size:22px;border-radius:8px}.user-page .brand{gap:9px}.user-page .brand strong{font-size:14px}.user-page .brand-subtitle{font-size:8px}
 .user-page .account-tools{display:contents}.user-page .expiry-block{order:3;flex-basis:100%;grid-template-columns:auto 1fr;column-gap:12px;padding-top:12px;border-top:1px solid var(--u-border);width:100%}
 .user-page #authLabel{grid-column:1;font-size:10px;margin:0}.user-page #expiresAt{grid-column:2;grid-row:1;font-size:12px;text-align:right}.user-page #authInfo{grid-column:1/-1;text-align:right;font-size:10px;margin-top:3px}
 .user-page .toolbar-actions{margin-left:auto;gap:5px}.user-page .toolbar-button{min-height:44px;padding:8px 9px;font-size:11px;gap:4px}
 .user-page .workspace-layout{display:block;min-height:0}.user-page .zone-sidebar{padding:16px;border-right:0;border-bottom:1px solid var(--u-border)}
 .user-page .sidebar-heading{display:none}.user-page .sidebar-footnote{display:none}.user-page .zones{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:rgba(255,255,255,.03);padding:4px;border:1px solid rgba(255,255,255,.05);border-radius:9px}
 .user-page button.zone-card{display:flex;flex-direction:column;gap:3px;padding:9px 3px;min-height:62px;text-align:center;border-radius:6px}.user-page .zone-icon{display:none}.user-page .zone-name{font-size:13px}.user-page .zone-card small{font-size:9px}
 .user-page .workspace-content{padding:23px 18px 20px}.user-page .workspace-heading{margin-bottom:23px;gap:9px}.user-page .workspace-heading h1{font-size:26px}.user-page #zoneHint{font-size:11px}.user-page .availability{margin-top:23px;font-size:9px;padding:5px 7px}
 .user-page .query-workspace{display:block}.user-page .results-pane{margin-top:18px;padding:20px 0 0;border-left:0;border-top:1px solid var(--u-border)}
 .user-page textarea{min-height:160px;font-size:16px;line-height:1.7}.user-page #queryButton{min-height:46px}.user-page .inline-status{min-height:18px;font-size:11px;margin-top:9px}
 .user-page .pane-description{margin-bottom:12px}.user-page .result-list{min-height:120px;max-height:none;overflow:visible}.user-page .empty-state{min-height:150px;padding:15px 8px}.user-page .queue-row{min-height:56px;padding:12px 7px;gap:13px}.user-page .queue-row input[type=checkbox]{width:20px;height:20px;min-width:20px}.user-page .player-name{font-size:14px}.user-page .result-state{font-size:11px}.user-page .text-button{min-height:44px}
 .user-page .send-controls{position:fixed;z-index:20;left:0;bottom:0;transform:none;max-width:none;width:100%;padding:14px 18px calc(14px + env(safe-area-inset-bottom));gap:12px;background:rgba(44,44,46,.92);border-top:1px solid rgba(255,255,255,.12);border-radius:0;align-items:center}
 .user-page .send-summary{gap:8px;flex:1;min-width:0}.user-page #senderStatus{font-size:12px}.user-page .send-frequency{font-size:9px}.user-page .send-actions{gap:6px}.user-page #startSending,.user-page #stopSending{min-width:70px;min-height:46px;padding:10px 16px;font-size:13px}
 .user-page .user-footer{font-size:9px;margin-top:20px}.user-page .login-window{margin-top:8vh;padding:30px 24px 24px}.user-page #licenseKey{font-size:16px}
}
@media(max-width:350px){.user-page .user-main{padding-left:8px;padding-right:8px}.user-page .window-toolbar{padding:12px}.user-page .toolbar-button svg{display:none}.user-page .toolbar-button{padding:8px}.user-page .workspace-content{padding:20px 14px}.user-page .send-controls{padding-left:12px;padding-right:12px}.user-page #startSending,.user-page #stopSending{min-width:60px;padding:10px 12px}.user-page .send-frequency{font-size:8px}}
@media(prefers-reduced-motion:reduce){.user-page *{transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.user-page .app-window,.user-page .window-toolbar,.user-page .send-controls,.user-page button,.user-page .queue-row.checked{border:1px solid CanvasText}.user-page .result-state::before{forced-color-adjust:none}.user-page button.zone-card.selected{outline:1px solid Highlight}.user-page .sr-only{border:0}}

/* Staff workspace: authorization dashboard. */
.staff-page .stored-key{margin-top:22px;padding:16px;border:1px solid #ffffff16;border-radius:8px;background:#ffffff03}.staff-page .stored-key input{font:12px Consolas,monospace;margin:8px 0}.staff-page .stored-key p{font-size:10px;margin:3px 0 12px}.staff-page .stored-key .key-actions button{font-size:11px}
.staff-page{--s-border:#ffffff12;--s-muted:#a4a4af;background:#1c1c1e;color:#f0f0f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;min-height:100svh}
.staff-page .staff-main{max-width:1600px;padding:26px;margin:auto;min-height:100svh}
.staff-page section{padding:0;background:transparent;border:0;border-radius:0}
.staff-page h1,.staff-page h2,.staff-page h3,.staff-page p{margin:0;letter-spacing:normal}
.staff-page h1{font-size:28px;font-weight:600;line-height:1.3}.staff-page h2{font-size:16px;font-weight:600}.staff-page h3{font-size:14px}
.staff-page p{color:var(--s-muted);font-size:13px;line-height:1.7}.staff-page a{color:inherit;text-decoration:none}
.staff-page button{font:inherit;font-weight:500;background:#0a84ff;color:#fff;border:1px solid transparent;min-height:42px;border-radius:7px;padding:10px 16px;touch-action:manipulation;transition:background .15s}
.staff-page button:hover:enabled{background:#2692ff}.staff-page button:disabled{opacity:.4;cursor:default}.staff-page button.secondary{background:#ffffff09;color:#dbdbe0;border-color:var(--s-border);padding:9px 13px}.staff-page button.secondary:hover:enabled{background:#ffffff13}
.staff-page input,.staff-page select,.staff-page textarea{font:inherit;color:#efeff3;background:#232325;border:1px solid #ffffff1c;padding:10px 12px;border-radius:7px;min-height:43px;width:100%}
.staff-page input::placeholder{color:#7f7f8b}.staff-page label{font-size:11px;color:#b3b3be;display:grid;gap:7px}.staff-page input:focus-visible,.staff-page select:focus-visible,.staff-page textarea:focus-visible,.staff-page button:focus-visible,.staff-page .table-scroll:focus-visible{outline:2px solid #64b0ff;outline-offset:3px}
.staff-page .staff-shell{display:grid;grid-template-columns:218px minmax(0,1fr);border:1px solid var(--s-border);border-radius:14px;background:#2c2c2eea;min-height:calc(100svh - 52px);overflow:hidden}
.staff-page .staff-sidebar{padding:28px 16px;background:#252527;border-right:1px solid var(--s-border);display:flex;flex-direction:column;gap:0}
.staff-page .staff-brand{display:flex;gap:11px;align-items:center;padding:0 10px 34px;font-size:16px;font-weight:600}.staff-page .staff-brand small{display:block;font-size:8px;letter-spacing:.08em;color:#9898a4;margin-top:3px;font-weight:400}
.staff-page .access-mark{display:grid;place-items:center;width:36px;height:36px;background:#ffffff09;border:1px solid #ffffff16;border-radius:9px;font:italic 27px Georgia,serif;color:#efeff5;flex-shrink:0}
.staff-page .nav-caption{font-size:10px;color:#838390;padding:0 12px;margin:0 0 10px}.staff-page nav#staffTabs{display:grid;gap:5px;margin:0;align-items:stretch}
.staff-page nav#staffTabs button{text-align:left;display:flex;align-items:center;gap:13px;font-size:12px;background:transparent;color:#aaaab6;padding:10px 12px}.staff-page nav#staffTabs button span{font-size:17px;width:18px;text-align:center;color:#9898a5}.staff-page nav#staffTabs button:hover{background:#ffffff06;color:#fff}.staff-page nav#staffTabs button[aria-current=page]{background:#0a84ff1c;color:#6bb8ff;border-color:#0a84ff23}.staff-page nav#staffTabs button[aria-current=page] span{color:#6bb8ff}
.staff-page .sidebar-policy{padding:18px 12px 16px;border-top:1px solid var(--s-border);margin-top:auto}.staff-page .sidebar-policy strong{font-size:10px;font-weight:500}.staff-page .policy-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#30d158;margin-right:7px}.staff-page .sidebar-policy p{font-size:10px;margin-top:9px;color:#82828f}.staff-page .back-user{font-size:11px;color:#9999a6;padding:8px 12px}
.staff-page .staff-content{min-width:0;padding:0 30px 30px}.staff-page .staff-toolbar{margin:0 0 30px;padding:24px 0;border-bottom:1px solid var(--s-border);display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.staff-page .staff-toolbar strong{font-size:13px;font-weight:500;display:block;margin-top:5px}.staff-page .overline{font-size:9px;letter-spacing:.1em;color:#92929f}.staff-page .toolbar-buttons{display:flex;align-items:center;gap:8px}.staff-page #updatedAt{font-size:10px;color:#888895;margin-right:8px}.staff-page .toolbar-buttons button{font-size:11px;min-height:40px}
.staff-page .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.staff-page .panel-heading p{font-size:11px;margin-top:8px}.staff-page .security-tag{font-size:10px;white-space:nowrap;color:#75d69a;background:#30d1580b;border:1px solid #30d15822;padding:7px 10px;border-radius:6px}
.staff-page .metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:24px}.staff-page button.metric{background:#ffffff03;border:1px solid var(--s-border);padding:17px;text-align:left;display:flex;flex-direction:column;gap:12px;align-items:flex-start;min-width:0}.staff-page button.metric:hover{background:#ffffff08}.staff-page button.metric[aria-pressed=true]{border-color:#0a84ff80;background:#0a84ff08}.staff-page .metric span{font-size:11px;color:#b8b8c2;display:flex;align-items:center;gap:7px}.staff-page .metric strong{font-size:28px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums}.staff-page .metric small{font-size:9px;color:#81818f;font-weight:400}.staff-page .metric i{display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor}
.staff-page .green{--state-color:#67da94}.staff-page .blue{--state-color:#72b7ff}.staff-page .amber{--state-color:#e4bd70}.staff-page .red{--state-color:#ff9494}.staff-page .metric i{color:var(--state-color)}
.staff-page .surface{border:1px solid var(--s-border);border-radius:10px;padding:22px;background:#ffffff02;margin-bottom:20px}.staff-page .surface-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.staff-page .surface-heading>span{font-size:10px;color:#91919f}.staff-page .staff-form{margin:20px 0;gap:14px}.staff-page .staff-form label{min-width:100px}.staff-page .staff-form button{min-height:43px;font-size:12px;white-space:nowrap}.staff-page .generate-grid{display:grid;grid-template-columns:1.4fr .6fr 1.5fr auto;margin:0}.staff-page .filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:end;gap:10px;margin-bottom:22px}.staff-page .filter-grid input,.staff-page .filter-grid select{font-size:12px}.staff-page .filter-grid button{font-size:12px;min-height:43px}
.staff-page .table-scroll{overflow:auto;width:100%;border:1px solid var(--s-border);border-radius:8px;overscroll-behavior-x:contain}.staff-page table{font-size:11px;width:100%;border-collapse:collapse}.staff-page th{background:#ffffff03;color:#8d8d9c;font-size:10px;font-weight:500;white-space:nowrap;padding:13px 14px;border-bottom:1px solid var(--s-border)}.staff-page td{padding:16px 14px;border-bottom:1px solid var(--s-border);vertical-align:middle;color:#c5c5cf;max-width:280px;white-space:pre-line;overflow-wrap:anywhere}.staff-page tbody tr:last-child td{border-bottom:0}.staff-page tbody tr:hover{background:#ffffff02}.staff-page td strong{display:block;font-size:11px;font-weight:500;color:#d9d9e1}.staff-page td small{display:block;font-size:9px;color:#868694;margin-top:5px;line-height:1.5;max-width:190px}.staff-page .mono{font-family:"Cascadia Code",Consolas,monospace;font-size:10px}.staff-page .license-table{min-width:830px}.staff-page .row-actions{white-space:nowrap;min-width:105px}.staff-page .state-badge{display:inline-flex;align-items:center;gap:6px;color:var(--state-color,#bbb);font-size:10px;padding:5px 7px;border:1px solid #ffffff0c;border-radius:5px;background:#ffffff02;white-space:nowrap}.staff-page .state-badge:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%}.staff-page button.text-action{background:none;border:0;color:#7abaff;padding:8px 6px!important;margin:0;min-height:36px;font-size:11px}.staff-page button.text-action:hover{background:#ffffff06}.staff-page button.danger-text{color:#d99898}.staff-page .empty-table{text-align:center;color:#92929e;padding:40px}
.staff-page .pagination{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:18px}.staff-page .pagination label{display:flex;align-items:center;gap:8px;white-space:nowrap}.staff-page .pagination select{min-height:36px;font-size:10px;padding:7px 9px;width:75px}.staff-page #pageInfo{font-size:10px;color:#9696a4}.staff-page .pagination>div{display:flex;gap:6px}.staff-page .pagination button{font-size:10px;min-height:36px;padding:8px 11px}
.staff-page #generatedPanel{margin-top:20px;border-color:#0a84ff40;background:#0a84ff08;padding:18px}.staff-page #generatedKeys{font:12px/1.8 Consolas,monospace;resize:vertical;margin:0 0 10px}.staff-page .key-actions{display:flex;gap:8px;flex-wrap:wrap}.staff-page .key-actions button{font-size:11px}.staff-page #staffStatus{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:30;min-height:0;max-width:calc(100vw - 32px);width:max-content;white-space:pre-line;margin:0;background:#343437;border:1px solid #ffffff1c;color:#d9d9e3;box-shadow:0 6px 24px #0005;padding:11px 18px;font-size:12px;border-radius:8px}.staff-page #staffStatus:empty{display:none}.staff-page #staffStatus.error{color:#ffaaa2}
.staff-page .staff-login{width:100%;max-width:420px;margin:9vh auto 40px;padding:34px;background:#2c2c2e;border:1px solid var(--s-border);border-radius:14px}.staff-page .staff-login .access-mark{margin-bottom:28px;width:48px;height:48px;font-size:34px}.staff-page .staff-login h1{margin:8px 0 12px;font-size:29px}.staff-page .staff-login>p:not(.overline){font-size:11px}.staff-page #staffLoginForm{margin-top:26px;gap:8px}.staff-page #staffLoginForm input{margin-bottom:10px}.staff-page #staffLoginButton{text-align:left;margin-top:5px}
.staff-page dialog{color:#eeeef3;background:#2c2c2e;border:1px solid #ffffff20;border-radius:12px;width:540px;max-width:calc(100vw - 28px);max-height:calc(100svh - 40px);padding:26px;box-shadow:0 20px 80px #0007;overflow:auto}.staff-page dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}.staff-page .dialog-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.staff-page .dialog-heading h2{font:18px Consolas,monospace;margin-top:10px;overflow-wrap:anywhere}.staff-page .dialog-heading button{font-size:11px;flex-shrink:0}.staff-page dl{display:grid;grid-template-columns:95px minmax(0,1fr);font-size:11px;gap:15px;padding:22px 0;margin:22px 0 0;border-top:1px solid var(--s-border)}.staff-page dt{color:#9292a1}.staff-page dd{margin:0;overflow-wrap:anywhere;color:#d4d4df}.staff-page #resetArea{padding-top:20px;border-top:1px solid var(--s-border)}.staff-page #resetArea p{font-size:11px;margin:8px 0 18px}.staff-page #resetIpForm{gap:14px}.staff-page button.danger-button{background:#b64848;color:#fff;font-size:12px}.staff-page button.danger-button:hover{background:#c85151}.staff-page #confirmText{margin:18px 0 22px}.staff-page .dialog-actions{display:flex;justify-content:end;gap:8px}
@media(max-width:1250px){.staff-page .staff-main{padding:16px}.staff-page .staff-shell{grid-template-columns:185px minmax(0,1fr);min-height:calc(100svh - 32px)}.staff-page .staff-content{padding:0 22px 22px}.staff-page .metric-grid{gap:8px}.staff-page button.metric{padding:14px 10px}.staff-page .metric small{font-size:8px}.staff-page .filter-grid{grid-template-columns:2fr 1fr 1fr}.staff-page .search-field{grid-column:span 2}.staff-page .generate-grid{grid-template-columns:1.4fr .6fr}.staff-page .metric strong{font-size:25px}}
@media(max-width:800px){.staff-page .staff-main{padding:0 0 60px}.staff-page .staff-shell{display:block;border:0;border-radius:0;min-height:100svh}.staff-page .staff-sidebar{padding:18px 18px 12px;border-right:0;border-bottom:1px solid var(--s-border)}.staff-page .staff-brand{padding:0 0 16px;font-size:14px}.staff-page .nav-caption,.staff-page .sidebar-policy,.staff-page .back-user{display:none}.staff-page nav#staffTabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding-bottom:3px;margin:0}.staff-page nav#staffTabs button{flex-shrink:0;white-space:nowrap;font-size:11px;gap:6px;padding:8px 10px}.staff-page nav#staffTabs button span{font-size:15px;width:16px}.staff-page .staff-content{padding:0 18px 24px}.staff-page .staff-toolbar{padding:18px 0;margin-bottom:24px;gap:12px}.staff-page #updatedAt{display:none}.staff-page .toolbar-buttons button{min-height:42px}.staff-page h1{font-size:24px}.staff-page .panel-heading{align-items:flex-start;margin-bottom:20px}.staff-page .panel-heading p{max-width:230px}.staff-page .security-tag{font-size:8px;padding:6px;margin-top:4px}.staff-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.staff-page .metric:first-child{grid-column:span 2;display:grid;grid-template-columns:1fr auto;gap:4px 12px}.staff-page .metric:first-child strong{grid-column:2;grid-row:1/3;align-self:center}.staff-page button.metric{padding:15px;gap:10px}.staff-page .metric small{font-size:9px}.staff-page .surface{padding:17px;margin-bottom:16px}.staff-page .surface-heading{gap:6px;margin-bottom:16px}.staff-page .surface-heading>span{font-size:9px}.staff-page .generate-grid{gap:12px;grid-template-columns:1.4fr .6fr}.staff-page .generate-grid label:nth-child(3),.staff-page .generate-grid>button{grid-column:span 2}.staff-page .filter-grid{grid-template-columns:1fr 1fr;gap:12px}.staff-page .search-field{grid-column:span 2}.staff-page .filter-grid>button{align-self:end;min-height:43px}.staff-page .filter-grid input,.staff-page .staff-form input,.staff-page #staffLoginForm input,.staff-page #resetReason{font-size:16px}.staff-page .pagination{gap:8px;flex-wrap:wrap}.staff-page .pagination label{font-size:10px}.staff-page .pagination button{min-height:40px;padding:8px;font-size:9px}.staff-page .pagination select{width:70px}.staff-page #pageInfo{font-size:9px}.staff-page .staff-form:not(.generate-grid){display:grid;grid-template-columns:1fr;width:100%;gap:15px}.staff-page .staff-login{margin:8vh auto 30px;width:calc(100% - 32px);padding:30px 24px}.staff-page #staffStatus{bottom:calc(12px + env(safe-area-inset-bottom));font-size:11px}.staff-page dialog{padding:21px}.staff-page .dialog-heading h2{font-size:15px}.staff-page dl{grid-template-columns:76px minmax(0,1fr);gap:13px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.staff-page *{transition:none!important}}
.staff-page .filter-grid{grid-template-columns:2fr repeat(4,minmax(90px,1fr)) auto}
.staff-page .report-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1.2fr)) repeat(2,minmax(0,1fr)) auto;align-items:end;gap:12px;margin:18px 0}
.staff-page .report-presets{display:flex;flex-wrap:wrap;gap:8px}.staff-page .report-presets button{font-size:12px;min-height:38px}.staff-page .report-presets button[aria-pressed=true]{background:#0a84ff20;border-color:#0a84ff60;color:#86c4ff}.staff-page .report-metrics small{font-size:10px;color:#9494a2}
.staff-page .report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.staff-page .report-metrics>div{border:1px solid var(--s-border);border-radius:9px;padding:20px;background:#ffffff03;display:grid;gap:12px}.staff-page .report-metrics span{color:#aaaab8;font-size:12px}.staff-page .report-metrics strong{font-size:30px;font-weight:500;font-variant-numeric:tabular-nums}.staff-page #reportRange{font-size:12px;color:#aaaab8;margin:12px 0 20px}.staff-page #reportsPanel table{min-width:440px}.staff-page #reportsPanel td:not(:first-child){font-variant-numeric:tabular-nums}
@media(max-width:1250px){.staff-page .filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-page .report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-page .report-filters>button{grid-column:span 2}}
@media(max-width:800px){.staff-page .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-page .report-filters{grid-template-columns:minmax(0,1fr)}.staff-page .report-filters>button{grid-column:auto}.staff-page .report-filters input{min-width:0;max-width:100%;font-size:16px}.staff-page .report-metrics{gap:8px}.staff-page .report-metrics>div{padding:14px 10px;gap:8px}.staff-page .report-metrics span{font-size:10px}.staff-page .report-metrics strong{font-size:25px}}

.staff-page .manager-table{min-width:720px}.staff-page td.slot-cell{min-width:320px;max-width:none}.staff-page .slot-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.staff-page .slot-card{padding:12px;border:1px solid var(--s-border);border-radius:8px;background:#ffffff02;display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}.staff-page .slot-card small{grid-column:span 2;max-width:none;margin:0}.staff-page .slot-card .state-badge{font-size:9px}.staff-page .policy-form{align-items:end;display:flex;gap:14px}.staff-page .policy-form input{max-width:200px}.staff-page #policyCurrent,.staff-page #managerSummary{font-size:11px;color:#aaaab8}
@media(max-width:800px){.staff-page .policy-form input{max-width:none}.staff-page .slot-card{padding:9px}}
