/* Dashboard workspace; the personal profile keeps its independent layout. */
body.dash-shell{--bg:#090c13;--bg-card:#111722;--bg-card-2:#171e2c;--text:#eef1fa;--muted:#99a5bb;--line:#273044;--primary:#9b75ff;--primary-2:#835bf5;background:var(--bg);font-family:Inter,"Avenir Next","Segoe UI",sans-serif;font-size:14px;line-height:1.55;color:var(--text)}
.dash-shell .bg-glow,.dash-shell .bg-grid{display:none}.dash-shell [hidden]{display:none!important}.dash-shell a{color:inherit}.dash-shell h1,.dash-shell h2,.dash-shell h3,.dash-shell h4,.dash-shell p{margin-top:0}.dash-shell h1{font-size:29px;line-height:1.25;letter-spacing:-.7px;margin-bottom:8px}.dash-shell h2{font-size:21px}.dash-shell h3{font-size:19px}.dash-shell h4{font-size:15px}.dash-shell button,.dash-shell input,.dash-shell textarea,.dash-shell select{font:inherit}.dash-shell :focus-visible{outline:2px solid #a991ff;outline-offset:3px}.dash-shell .muted{color:var(--muted)}.dash-shell .tiny{font-size:12px}.dash-shell .eyebrow{display:block;font-size:10px;letter-spacing:1.9px;font-weight:700;color:#8a98b2;margin-bottom:12px}.dash-shell .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.workspace-topbar{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #20283a;padding:14px max(24px,calc((100vw - 1480px)/2));background:#0d121c;position:relative;z-index:60}.workspace-brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}.workspace-brand>span:last-child{display:flex;flex-direction:column}.workspace-brand strong{font-size:17px;letter-spacing:.3px}.workspace-brand small{font-size:11px;color:var(--muted)}.logo-mark{width:43px;height:43px;display:grid;place-items:center;position:relative;font-size:27px;font-weight:900;border-radius:13px;background:linear-gradient(135deg,#d62481,#7d4bee);box-shadow:0 4px 22px #8d29632b;color:#fff}.logo-mark>span{position:absolute;right:5px;top:0;font-size:15px}.dash-shell .top-actions{gap:8px;flex-wrap:wrap}.dash-shell .btn{background:#8d55e9;color:#fff;border:1px solid transparent;border-radius:9px;min-height:40px;padding:9px 15px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:none;text-decoration:none;transition:background .15s,border-color .15s}.dash-shell .btn:hover{background:#9c6bed;transform:none}.dash-shell .btn.secondary,.dash-shell .btn.ghost{background:#182031;border-color:#2a354b;color:#d4dced}.dash-shell .btn.ghost{background:transparent}.dash-shell .btn.secondary:hover,.dash-shell .btn.ghost:hover{background:#242e43;border-color:#4b5773}.dash-shell .btn.danger,.dash-shell .btn.danger-soft{background:#8b2946;border-color:#a93e5d}.dash-shell .btn.danger-soft{background:#542234}.dash-shell .btn:disabled{opacity:.42;cursor:not-allowed}.dash-shell .btn.small{min-height:32px;padding:5px 10px;font-size:11px}.persona-link{background:#221a35!important;border-color:#634b87!important}.dash-shell .viewer-chip{background:none;border:0;padding:0 7px;gap:9px}.dash-shell .viewer-chip img{width:30px;height:30px;border-radius:50%}.dash-shell #viewerName{font-size:12px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-shell #viewerMeta{font-size:10px}.toolbar-more{position:relative}.toolbar-more summary{list-style:none}.toolbar-more summary::-webkit-details-marker{display:none}.toolbar-menu{position:absolute;right:0;top:46px;width:210px;padding:8px;display:grid;gap:6px;background:#161f2f;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #0008}
.dash-shell .layout{max-width:1480px;margin:0 auto;padding:28px 24px 130px;grid-template-columns:250px minmax(0,1fr);gap:30px;align-items:start}.dash-shell .layout.selecting{grid-template-columns:minmax(0,1fr)}.layout.selecting .sidebar{display:none}.dash-shell .main{min-width:0;gap:20px}.dash-shell .sidebar{position:sticky;top:20px;height:calc(100vh - 125px);gap:18px;background:none;min-width:0}.sidebar-context{padding:4px 12px 18px;border-bottom:1px solid var(--line)}.sidebar-context .eyebrow{margin-bottom:10px}.selected-guild{display:flex;align-items:center;gap:10px;margin-bottom:14px}.selected-guild img,.selected-guild .guild-icon-fallback{width:36px;height:36px;border-radius:11px;flex:0 0 auto}.selected-guild strong{font-size:14px;display:block;overflow-wrap:anywhere}.selected-guild small{font-size:10px;color:var(--muted);display:block}.sidebar-context .btn{width:100%;justify-content:space-between;min-height:34px;font-size:11px}.dash-shell .page-nav{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:3px;overflow-y:auto;min-height:0}.nav-group{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#7887a0;margin:17px 12px 7px!important}.nav-group:first-child{margin-top:0!important}.dash-shell .page-tab{display:flex;align-items:center;gap:11px;min-height:42px;padding:10px 12px;text-align:left;border-radius:9px;border:1px solid transparent;background:none;color:#aab5c9;font-size:12px;font-weight:550;white-space:normal}.dash-shell .page-tab:hover{background:#171f2e;color:#fff}.dash-shell .page-tab.active{background:#251e3b;color:#c6acff;border-color:#473063;box-shadow:none}.nav-icon{width:21px;flex:0 0 21px;text-align:center;font-size:15px}.nav-active-dot{display:none;width:5px;height:5px;border-radius:50%;background:#ba91ff;margin-left:auto}.page-tab.active .nav-active-dot{display:block}.module-search{position:relative;margin:0 6px}.module-search .input{font-size:11px;padding-right:44px;min-height:38px}.module-search kbd{position:absolute;right:9px;top:10px;color:#7c8ca5;font-size:10px;pointer-events:none}.search-results{position:absolute;z-index:45;left:0;top:44px;width:min(350px,80vw);max-height:370px;overflow:auto;border:1px solid #3b4660;background:#151e2d;border-radius:12px;box-shadow:0 18px 45px #0009;padding:6px}.search-result{display:flex;flex-direction:column;text-align:left;gap:3px;width:100%;padding:10px;border:0;border-radius:7px;background:none;color:#edf1fa;cursor:pointer}.search-result:hover{background:#2a2440}.search-result small{font-size:10px;color:#9baac0}.search-empty{padding:12px;color:#9baac0}.select-filter{font-size:11px!important;min-height:32px!important;margin-bottom:5px}.search-highlight{outline:2px solid #a991ff!important;outline-offset:5px}
.guild-picker{max-width:1140px;width:100%;margin:30px auto}.picker-heading{text-align:center;margin:25px auto 32px;max-width:630px}.picker-heading .eyebrow{color:#c28ef1}.picker-heading h1{font-size:36px;letter-spacing:-1px}.picker-heading p{font-size:14px}.picker-tools{display:flex;align-items:center;gap:10px;max-width:480px;margin:0 auto 30px}.picker-tools .input{flex:1}.dash-shell .guild-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;max-height:none;margin:0;padding:0;overflow:visible}.dash-shell .guild-item{display:flex;flex-direction:column;gap:16px;min-height:165px;border:1px solid #283146;border-radius:15px;padding:23px;background:#121925;text-align:left;transition:border-color .2s,background .2s}.dash-shell .guild-item:hover{border-color:#8e61c5;background:#191e30;transform:none}.dash-shell .guild-item.active{border-color:#8159ac;background:#1c1b2d}.dash-shell .guild-item .guild-icon{width:47px;height:47px;border-radius:13px;font-size:19px}.dash-shell .guild-item .name{font-size:15px}.dash-shell .guild-item .meta{font-size:12px;margin:0}.guild-open{font-size:11px;color:#bba0f5;margin-top:auto}.picker-hint{max-width:700px;margin:32px auto;text-align:center;font-size:12px}.workspace-heading{display:flex;align-items:center;gap:16px;margin:4px 0 0}.workspace-heading .eyebrow{margin-bottom:8px}.workspace-heading h1{font-size:28px;margin-bottom:7px}.workspace-heading p:last-child{font-size:12px;margin-bottom:0}.mobile-menu-btn{display:none!important}
.dash-shell .card{background:#111824;border:1px solid #253047;box-shadow:none;border-radius:15px;padding:25px}.dash-shell .page-panel>.section-title{display:none}.dash-shell .preview-card{border:1px solid #2a3449;background:#151e2c;border-radius:11px;padding:19px;box-shadow:none}.dash-shell .preview-card h4{margin-bottom:12px}.dash-shell .section-title p{font-size:12px}.dash-shell .input{background:#0d141f;border:1px solid #303b52;border-radius:8px;color:#e4eafa;min-height:41px;padding:10px 12px;box-shadow:none}.dash-shell .input:focus{border-color:#a180dc;background:#111928;box-shadow:0 0 0 3px #9164d314}.dash-shell .input::placeholder{color:#687993}.dash-shell select.input{padding-right:28px}.dash-shell .textarea{line-height:1.65;resize:vertical}.dash-shell .field>span{font-size:12px;color:#c7d1e1;font-weight:600;display:flex;justify-content:space-between;gap:10px}.field em{font-style:normal;font-weight:400;font-size:10px;color:#7f90a9}.dash-shell .switch{font-size:12px;padding:10px 0;color:#c9d2e3;gap:10px}.dash-shell .switch input{accent-color:#a473f1;width:17px;height:17px}.dash-shell .divider{background:#2b3448;margin:25px 0}.dash-shell .manager-list{gap:10px}.dash-shell .manager-item{background:#111a28;border:1px solid #2a354b;border-radius:10px;padding:14px}.dash-shell .manager-title{font-size:12px}.dash-shell .manager-meta{font-size:11px;overflow-wrap:anywhere}.dash-shell .manager-empty{padding:18px;border:1px dashed #34405a;border-radius:10px;text-align:center;color:#8797af;font-size:12px}.settings-note{padding:13px 16px;border:1px solid #344268;border-radius:10px;background:#172139;color:#b8c9e9;font-size:12px;margin-bottom:23px}.settings-note strong{color:#e3eafa}.section-subtitle{display:flex;align-items:center;gap:10px;margin-top:28px;margin-bottom:12px}.section-subtitle h4{margin:0}.count-badge{font-size:10px;background:#32254b;padding:2px 8px;border-radius:6px;color:#c5a9ed}.module-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.module-card{border:1px solid #30384b;border-radius:11px;padding:16px;background:#151e2d;color:#edf1fa;text-align:left;cursor:pointer;min-height:123px}.module-card:hover{border-color:#8661b0}.module-card .module-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.module-card strong{display:block;font-size:12px;margin-bottom:5px}.module-card small{font-size:10px;color:#94a4be}.module-status{font-size:9px;background:#263344;color:#a3b2c9;padding:3px 7px;border-radius:5px}.module-status.on{background:#17392f;color:#6fd9ad}.dash-shell .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dash-shell .stat-card{background:#0e1521;border:1px solid #263047;border-radius:10px;padding:16px}.dash-shell .stat-card h4{font-size:17px;margin-bottom:0}.dash-shell .stat-label{font-size:10px}.dash-shell .guard-list{font-size:12px}.dash-shell .guard-list li{padding:7px 0}.dash-shell .sticky-footer{position:fixed;z-index:40;bottom:18px;left:max(305px,calc((100vw - 1480px)/2 + 305px));right:max(24px,calc((100vw - 1480px)/2 + 24px));padding:16px 20px;border-color:#715196;box-shadow:0 10px 40px #0008;background:#1c2032}.sticky-footer strong{font-size:12px}.sticky-footer p{font-size:11px;margin-bottom:0}.save-actions{gap:7px}.advanced-details{padding:15px;border:1px solid #2f3b52;border-radius:10px}.advanced-details summary{cursor:pointer;font-size:12px;color:#bdc9df}.dash-shell .payload-preview{max-height:300px;background:#0a111b;font-size:11px}.dash-shell .auth-gate,.dash-shell .empty{max-width:680px;margin:30px auto;text-align:center}.dash-shell #toast{max-width:min(580px,calc(100vw - 36px));font-size:12px;background:#202c41;border:1px solid #506487;box-shadow:0 8px 30px #0008;z-index:100}
.sticky-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:start}.discord-preview{position:sticky;top:20px;padding:20px;background:#0d131f;border:1px solid #263249;border-radius:12px}.discord-preview .eyebrow{font-size:9px;margin-bottom:20px}.discord-sender{display:flex;gap:7px;align-items:center;margin-bottom:12px;font-size:12px}.discord-sender small{color:#718099;font-size:9px}.mini-logo{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#dc287e,#7853e7);font-size:12px;font-weight:800;margin-right:3px}.app-badge{background:#5865f2;font-size:8px;line-height:13px;border-radius:3px;padding:0 3px}.discord-embed{border:1px solid #273047;border-left:4px solid #faa61a;border-radius:6px;padding:17px;background:#151d2c;overflow-wrap:anywhere}.discord-embed strong{display:block;font-size:14px;margin-bottom:10px}.discord-embed p{white-space:pre-wrap;font-size:12px;color:#c6d0e1;margin-bottom:12px;line-height:1.7}.discord-embed small{font-size:10px;color:#92a2ba}.color-input{width:100%;padding:5px!important;min-height:41px}.sticky-editor-grid .editor-fields{min-width:0}.workspace-dialogs dialog{color:#e6edf9;background:#151e2e;border:1px solid #4b436b;border-radius:16px;max-width:min(640px,calc(100vw - 32px));padding:28px;box-shadow:0 30px 90px #000a}.workspace-dialogs dialog::backdrop{background:#050912bd;backdrop-filter:blur(3px)}.workspace-dialogs dialog h2{font-size:20px}.workspace-dialogs dialog p{font-size:13px}.changes-list{max-height:55vh;overflow:auto;min-width:min(480px,70vw)}.change-item{padding:13px 0;border-bottom:1px solid #2d3850}.change-item strong{font-size:12px;display:block}.change-item small{font-size:11px;color:#a6b5cb;display:block;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1150px){.workspace-topbar{padding:14px 22px;height:auto;min-height:86px}.dash-shell .layout{grid-template-columns:222px minmax(0,1fr);gap:20px}.dash-shell .sticky-footer{left:266px}.module-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sticky-editor-grid{grid-template-columns:1fr}.discord-preview{position:static}.dash-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.workspace-topbar{align-items:flex-start;gap:12px;flex-wrap:wrap;padding:15px 16px}.workspace-brand{gap:9px}.workspace-brand strong{font-size:15px}.workspace-brand small{font-size:10px}.logo-mark{width:35px;height:35px;font-size:23px}.dash-shell .top-actions{gap:6px}.dash-shell .top-actions>.btn,.dash-shell .top-actions summary{font-size:10px;min-height:34px;padding:7px 9px}.dash-shell .layout{display:block;padding:22px 16px 150px}.dash-shell .main{gap:17px}.dash-shell .sidebar{display:none;position:fixed;z-index:55;left:12px;top:110px;bottom:16px;height:auto;width:270px;border:1px solid #4f3f6c;border-radius:14px;background:#111925;padding:17px;box-shadow:0 20px 80px #000b}.dash-shell.menu-open .layout:not(.selecting) .sidebar{display:flex}.mobile-menu-btn{display:inline-flex!important;align-self:flex-start;flex-shrink:0}.workspace-heading h1{font-size:23px}.workspace-heading .eyebrow{font-size:9px}.workspace-heading p:last-child{font-size:11px}.dash-shell .card{padding:18px;border-radius:12px}.dash-shell .sticky-footer{left:16px;right:16px;bottom:12px;padding:12px}.sticky-footer>.row{gap:10px}.sticky-footer .save-actions{flex-wrap:wrap}.sticky-footer .btn{font-size:11px;min-height:35px;padding:7px 10px}.picker-heading{margin:15px auto 24px}.picker-heading h1{font-size:29px}.picker-heading p{font-size:12px}.dash-shell .guild-list{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px}.dash-shell .guild-item{min-height:145px;padding:19px}.module-cards{gap:10px}.module-card{padding:13px}.workspace-heading{gap:10px}.dash-shell .grid.two,.dash-shell .grid.three,.dash-shell .grid.four{grid-template-columns:1fr}}
@media(max-width:440px){.workspace-topbar .top-actions{width:100%;justify-content:flex-start}.workspace-topbar #logoutBtn{margin-left:auto}.toolbar-menu{right:0}.module-cards{grid-template-columns:1fr}.dash-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-heading h1{font-size:21px}.save-actions{width:100%;justify-content:flex-end}.dash-shell .guild-list{grid-template-columns:1fr}.sticky-editor-grid{gap:17px}.discord-preview{padding:15px}.workspace-heading .eyebrow{display:none}.dash-shell .sidebar{top:138px}}
@media(prefers-reduced-motion:reduce){.dash-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.dash-shell .page-nav{flex-wrap:nowrap}.dash-shell .page-nav>*{flex-shrink:0}.dash-shell .page-tab{width:100%;transform:none}.viewer-initials{width:30px;height:30px;border-radius:50%;background:#3b2a55;color:#d3b7ff;display:grid;place-items:center;font-size:12px;font-weight:700}.page-save-hint{font-size:10px!important;color:#8d9cb4;margin-top:7px!important}.preview-mention{font-size:12px;color:#b9b7ff}.welcome-embed{border-left-color:#2ecc71}.ticket-embed{border-left-color:#5865f2}.ticket-type-list{display:grid;gap:10px;margin-top:10px}.ticket-type-card{display:grid;gap:10px;padding:12px;border:1px solid #2a354b;border-radius:10px;background:#111a28}.ticket-type-card .ticket-type-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ticket-type-card .ticket-type-head strong{font-size:12px}.ticket-type-questions{display:grid;gap:10px}.ticket-support-picker{display:flex;align-items:flex-end;gap:10px}.ticket-support-picker .field{flex:1;min-width:0}.ticket-support-picker .btn{flex-shrink:0}.ticket-preview-actions{display:grid;gap:8px}.ticket-preview-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border-radius:4px;background:#5865f2;color:#fff;font-size:12px;font-weight:600;width:fit-content}.ticket-preview-select{border:1px solid #3a445c;border-radius:6px;background:#0d141f;padding:8px 10px;font-size:12px;color:#c6d0e1}.ticket-preview-select span{display:block;padding:4px 0;border-top:1px solid #273047}.ticket-preview-select span:first-child{border-top:0;color:#8a98b2}.welcome-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.welcome-meta strong{font-size:10px;margin-bottom:4px}.welcome-meta small{font-size:9px}.template-tags{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:10px 0 16px;font-size:10px;color:#8799b4}.template-tags button{background:#26223b;border:1px solid #51426a;color:#c4b2e4;font-size:10px;border-radius:5px;padding:4px 8px;cursor:pointer}
.count-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:28px;align-items:start}.count-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px}.count-stat{background:#0e1521;border:1px solid #263047;border-radius:10px;padding:12px}.count-stat strong{display:block;font-size:20px;letter-spacing:-.4px}.count-stat span{font-size:10px;color:#99a5bb}.count-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#3b2a55;color:#d3b7ff;font-size:12px;font-weight:700}.count-embed{border-left-color:#57f287}.count-embed.is-wrong{border-left-color:#ed4245}.count-embed strong{font-size:28px;letter-spacing:-.6px;margin-bottom:6px}.count-react{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border:1px solid #2a354b;border-radius:999px;background:#0e1521;font-size:13px}.count-fails{display:grid;gap:8px;max-height:320px;overflow:auto}.count-fail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #2a354b;border-radius:10px;background:#111a28}.count-fail b{font-size:12px;overflow-wrap:anywhere}.count-fail em{font-style:normal;font-size:12px;color:#ffb4b4;background:#3a2030;border-radius:999px;padding:3px 8px;white-space:nowrap}.count-fail span{display:flex;flex-direction:column;min-width:0}.count-fail small{font-size:10px;color:#8ea0b8}
@media(max-width:800px){.count-layout{grid-template-columns:1fr}.count-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* StriX identity uses the supplied mascot logo. */
.dash-shell .logo-mark{width:48px;height:48px;object-fit:contain;border-radius:50%;background:transparent;box-shadow:none}.dash-shell .mini-logo{object-fit:contain;background:transparent;border-radius:50%}.workspace-brand strong{letter-spacing:.2px}@media(max-width:800px){.dash-shell .logo-mark{width:38px;height:38px}}

/* Quiet workspace: one surface, one accent, room to read. */
body.dash-shell{--bg:#0e0f12;--bg-card:#16171b;--bg-card-2:#1c1d22;--text:#f3f4f6;--muted:#9b9ea6;--line:#2a2c33;--primary:#f4f4f5;--primary-2:#e7e7ea;background:#0e0f12;font-family:Inter,"Avenir Next","Segoe UI",sans-serif}
.workspace-topbar{height:64px;padding:0 max(20px,calc((100vw - 1440px)/2));background:#0e0f12;border-bottom:1px solid #22242a}
.workspace-brand strong{font-size:15px;font-weight:650}.workspace-brand small{color:#8d9098}
.dash-shell .layout{max-width:1440px;padding:24px 20px 120px;grid-template-columns:252px minmax(0,1fr);gap:28px}
.dash-shell .sidebar{top:16px;height:calc(100vh - 104px);gap:14px}
.sidebar-context{padding:2px 8px 14px;border-bottom-color:#22242a}
.dash-shell .eyebrow{font-size:11px;letter-spacing:.04em;font-weight:600;text-transform:none;color:#8d9098;margin-bottom:8px}
.nav-group{font-size:11px;letter-spacing:.02em;font-weight:600;text-transform:none;color:#6f727a;margin:18px 10px 6px!important}
.dash-shell .page-nav{scrollbar-width:thin;scrollbar-color:#3a3d46 transparent}.dash-shell .page-nav::-webkit-scrollbar{width:8px}.dash-shell .page-nav::-webkit-scrollbar-thumb{background:#3a3d46;border-radius:8px}
.dash-shell .page-tab{min-height:36px;padding:7px 10px;border-radius:8px;color:#b6b8c0;font-size:13px;font-weight:500;gap:8px}
.dash-shell .page-tab:hover{background:#1a1b20;color:#fff}
.dash-shell .page-tab.active{background:#22242b;color:#fff;border-color:transparent;box-shadow:inset 2px 0 0 #f4f4f5}
.nav-icon{width:18px;flex-basis:18px;font-size:14px;opacity:.85}
.page-tab.active .nav-active-dot{display:none}
.module-search{margin:0 2px 8px}.module-search .input{min-height:36px;font-size:13px;background:#16171b;border-color:#2a2c33;padding-right:12px}.module-search kbd{display:none}
.search-results{background:#16171b;border-color:#2a2c33;border-radius:12px;box-shadow:0 16px 40px #0008}.search-result:hover{background:#22242b}
.dash-shell .card{background:#16171b;border:1px solid #26282e;border-radius:16px;padding:22px 22px 24px}
.dash-shell .preview-card,.dash-shell .manager-item,.dash-shell .stat-card,.count-stat{background:#121317;border-color:#26282e;border-radius:12px;box-shadow:none}
.dash-shell .input{background:#101114;border-color:#2c2e35;border-radius:10px;min-height:40px;color:#f3f4f6}
.dash-shell .input:focus{border-color:#8b8e98;background:#121317;box-shadow:0 0 0 3px #ffffff14}
.dash-shell .field>span{font-size:13px;font-weight:550;color:#e6e7eb}
.dash-shell .btn{background:#f4f4f5;color:#111214;border-radius:10px;min-height:36px;padding:8px 12px;font-size:13px;font-weight:600;box-shadow:none}
.dash-shell .btn:hover{background:#fff}
.dash-shell .btn.secondary,.dash-shell .btn.ghost,.dash-shell .persona-link{background:transparent!important;border:1px solid #2e3038!important;color:#e8e9ed!important}
.dash-shell .btn.secondary:hover,.dash-shell .btn.ghost:hover,.dash-shell .persona-link:hover{background:#1c1d22!important;border-color:#3a3d46!important}
.dash-shell .btn.danger{background:#3a1d24!important;border-color:#6b303c!important;color:#ffd7de!important}
.dash-shell input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin:0;flex:0 0 22px;border:1.5px solid #8b8e98;border-radius:7px;background:#101114 center/14px no-repeat;cursor:pointer;vertical-align:middle}
.dash-shell input[type="checkbox"]:checked{border-color:#f4f4f5;background-color:#f4f4f5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 6.4 11.4 12.8 4.6' fill='none' stroke='%23111214' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.dash-shell input[type="checkbox"]:focus-visible{outline:2px solid #f4f4f5;outline-offset:2px}
.dash-shell input[type="checkbox"]:disabled{opacity:.4;cursor:not-allowed}
.dash-shell .switch{align-items:center;gap:12px;border-color:#2e3038;background:#121316;border-radius:12px}
.settings-note{background:#121317;border-color:#2a2c33;color:#c6c8ce;border-radius:12px}
.module-cards{gap:10px}.module-card{background:#121317;border-color:#26282e;border-radius:14px;min-height:112px}
.module-card:hover{border-color:#4a4d57;background:#18191e}
.module-status{background:#22242b;color:#b6b8c0}.module-status.on{background:#163028;color:#8ee0b5}
.dash-shell .guild-item{background:#16171b;border-color:#26282e;border-radius:16px}
.dash-shell .guild-item:hover{border-color:#4a4d57;background:#1b1c21}
.dash-shell .guild-item.active{border-color:#d8d8dc;background:#1b1c21}
.guild-open{color:#d6d7db}
.picker-heading .eyebrow{color:#8d9098}.picker-heading h1{font-weight:640}
.workspace-heading h1{font-size:26px;font-weight:640;letter-spacing:-.4px}
.dash-shell .sticky-footer{left:max(300px,calc((100vw - 1440px)/2 + 300px));right:max(20px,calc((100vw - 1440px)/2 + 20px));background:#16171b;border:1px solid #2e3038;border-radius:14px;box-shadow:0 16px 40px #0008}
.toolbar-menu{background:#16171b;border-color:#2a2c33}
.dash-shell #toast{background:#16171b;border-color:#3a3d46}
.discord-preview{background:#101114;border-color:#26282e}
.template-tags button{background:#1c1d22;border-color:#32343c;color:#d7d8de}
.ml-tabs [aria-selected=true]{background:#f4f4f5!important;color:#111214!important;border-color:#f4f4f5!important}
.ml-option:first-child{border-color:#2e3038!important;background:#16171b!important}
.dash-shell .invite-modal-card{width:min(520px,100%);background:#16171b;border:1px solid #2a2c33;border-radius:16px;padding:22px;box-shadow:0 24px 60px #000a}
.dash-shell .invite-choices{display:grid;gap:10px;margin-top:16px}
.dash-shell .invite-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 14px 14px 16px;border:1px solid #2a2c33;border-radius:12px;background:#121316}
.dash-shell .invite-choice strong{display:block;margin-bottom:4px}
.dash-shell .invite-choice p{margin:0;font-size:12px}
.dash-shell .invite-modal-card.picking{width:min(820px,100%)}
.dash-shell .invite-sheet{display:grid;gap:14px;margin-top:16px}
.dash-shell .invite-sheet.hidden,.dash-shell .invite-choices.hidden{display:none}
.dash-shell .invite-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dash-shell .invite-mode{text-align:left;padding:14px 16px;border:1px solid #2a2c33;border-radius:12px;background:#121316;color:#f4f4f5;cursor:pointer}
.dash-shell .invite-mode strong{display:block;margin-bottom:4px}
.dash-shell .invite-mode span{display:block;color:#a1a1aa;font-size:12px}
.dash-shell .invite-mode.on{border-color:#f4f4f5;background:#1c1d22}
.dash-shell .invite-table-scroll{max-height:360px;overflow:auto;border:1px solid #2a2c33;border-radius:12px;background:#101114}
.dash-shell .invite-table{width:100%;border-collapse:collapse}
.dash-shell .invite-table th,.dash-shell .invite-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #23252b;font-size:13px}
.dash-shell .invite-table th{position:sticky;top:0;background:#16171b;color:#a1a1aa;font-weight:600}
.dash-shell .invite-table td:first-child,.dash-shell .invite-table th:first-child{width:42px}
.dash-shell .invite-table input{width:16px;height:16px;accent-color:#f4f4f5}
.dash-shell .invite-sheet .btn{justify-self:start}
.dash-shell .vpn-modal-card{display:grid;gap:14px}
.dash-shell .vpn-modal-card .invite-choices{margin-top:0}
.dash-shell .vpn-modal-card .vpn-open{justify-self:stretch;text-align:center}
.dash-shell .invite-note{margin:0;color:#a1a1aa;font-size:13px;line-height:1.45}
@media(max-width:800px){
 .dash-shell.menu-open{overflow:hidden}
 .dash-shell.menu-open .sidebar{display:flex!important;flex-direction:column;left:12px;right:12px;width:auto;top:calc(var(--dash-top, 128px) + 8px)!important;bottom:auto;height:auto!important;max-height:calc(100dvh - var(--dash-top, 128px) - 20px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:80}
 .dash-shell.menu-open .page-nav{min-height:0;overflow:visible;flex:none}
 .dash-shell.menu-open::before{content:"";position:fixed;inset:0;background:rgb(0 0 0 / .45);z-index:70}
 .dash-shell .mobile-menu-btn{position:relative;z-index:90}
}
@media(max-width:700px){.dash-shell .invite-modes{grid-template-columns:1fr}}
@media(max-width:1150px){.dash-shell .layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.dash-shell .sticky-footer{left:252px}}
@media(max-width:800px){.workspace-topbar{min-height:64px;height:auto}.dash-shell .sidebar{background:#121316;border-color:#2a2c33}.dash-shell .sticky-footer{left:12px;right:12px}}
.mobile-menu-close{display:none}
@media(max-width:800px){
 .dash-shell.menu-open .layout:not(.selecting) .sidebar{display:flex!important;position:fixed!important;inset:0!important;z-index:200!important;width:100%!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:18px 16px 40px!important;border:0!important;border-radius:0!important;background:#0e0f12!important;box-shadow:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
 .dash-shell.menu-open::before{content:none!important}
 .dash-shell.menu-open .mobile-menu-close{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0 0 14px;border:1px solid #2a2c33;border-radius:12px;background:#16171b;color:#f4f4f5;font-weight:650}
 .dash-shell.menu-open .page-nav{overflow:visible;flex:none}
 .dash-shell.menu-open .page-tab{min-height:48px}
}
html:has(body.dash-shell){background:#0e0f12;min-height:100%}
body.dash-shell{min-height:100dvh}

/* Studio theme. Keep the shared settings controls and panel behavior. */
html:has(body.dash-shell), body.dash-shell {
  color-scheme: dark;
  --bg: #070d18;
  --bg-card: #101826;
  --bg-card-2: #0c1422;
  --text: #eef3f8;
  --muted: #8ea0b5;
  --line: #1e2c40;
  --primary: #2ee6c7;
  --primary-2: #7af3de;
  --studio-ink: #04241e;
  --studio-tint: #062833;
  --studio-sidebar: #070d18;
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.studio-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.studio-icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.studio-dot { width: 6px; height: 6px; flex: none; display: inline-block; border-radius: 50%; background: currentColor; }

.dash-shell .workspace-topbar {
  min-height: 64px;
  height: auto;
  gap: 14px;
  padding: 10px max(22px, calc((100vw - 1400px) / 2));
  background: var(--studio-sidebar);
  border-color: var(--line);
  align-items: center;
}
.dash-shell .workspace-brand { gap: 10px; }
.dash-shell .workspace-brand strong { letter-spacing: -.03em; }
.dash-shell .logo-mark { width: 37px; height: 37px; object-fit: contain; background: var(--studio-tint); box-shadow: none; border-radius: 9px; }
.dash-shell .top-actions { justify-content: flex-end; gap: 7px; }
.dash-shell .top-actions .studio-icon { width: 15px; height: 15px; }
.dash-shell .top-actions .external-icon { width: 13px; height: 13px; opacity: .8; }
.dash-shell .top-actions .studio-music-link { background: var(--studio-tint); color: var(--primary); border-color: #1d5560; }
.dash-shell .top-actions .studio-music-link:hover { background: #0d3c46; }
.dash-shell .viewer-initials, .dash-shell .guild-icon-fallback { background: var(--studio-tint); color: var(--primary); }
.dash-shell .toolbar-menu { top: calc(100% + 8px); width: max-content; min-width: 184px; }
.dash-shell .toolbar-menu > * { width: 100%; justify-content: flex-start; }

.dash-shell .layout { max-width: 1440px; grid-template-columns: 218px minmax(0, 1fr); gap: 0; padding: 0 20px 120px; }
.dash-shell .layout.selecting { grid-template-columns: minmax(0, 1fr); }
.dash-shell .sidebar {
  position: sticky;
  top: 0;
  height: calc(100dvh - 10px);
  padding: 19px 13px 16px 0;
  margin: 0;
  gap: 11px;
  background: var(--studio-sidebar);
  border-right: 1px solid var(--line);
}
.dash-shell .main { padding: 22px 0 0 25px; gap: 16px; }
.dash-shell .layout.selecting .main { padding-left: 0; }
.dash-shell .sidebar-context { background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.dash-shell .sidebar-context .eyebrow { margin-bottom: 6px; }
.dash-shell .selected-guild { margin-bottom: 8px; }
.dash-shell .sidebar-context .btn { min-height: 30px; font-size: 11px; }
.dash-shell .module-search { margin: 0; }
.dash-shell .module-search .input { padding-right: 28px; font-size: 12px; }
.dash-shell .module-search kbd { display: inline; top: 10px; color: var(--muted); }
.dash-shell .nav-group { color: var(--muted); margin-top: 10px !important; }
.dash-shell .nav-group:first-child { margin-top: 0 !important; }
.dash-shell .page-tab { color: var(--muted); min-height: 35px; font-size: 12px; border-radius: 8px; }
.dash-shell .page-tab:hover { background: var(--bg-card); color: var(--text); }
.dash-shell .page-tab.active { color: var(--primary); background: var(--studio-tint); border-color: #1d5560; box-shadow: none; }
.dash-shell .page-tab .studio-icon { width: 16px; height: 16px; }
.dash-shell .page-nav { scrollbar-color: #2a4552 transparent; }
.dash-shell .page-nav::-webkit-scrollbar-thumb { background: #2a4552; }

.dash-shell .workspace-heading { margin: 0; }
.dash-shell .workspace-heading h1 { margin-bottom: 5px; font-size: clamp(27px, 3.6vw, 39px); font-weight: 770; letter-spacing: -.05em; line-height: 1.08; }
.dash-shell .eyebrow { color: var(--muted); font: 700 10px/1.35 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.dash-shell:has(#panel-overview:not([hidden])) #workspaceDescription,
.dash-shell:has(#panel-overview:not([hidden])) #pageSaveHint { display: none; }
.dash-shell .sticky-footer { left: max(263px, calc((100vw - 1440px) / 2 + 263px)); right: max(20px, calc((100vw - 1440px) / 2 + 20px)); }

.dash-shell .card, .dash-shell .guild-item, .dash-shell .toolbar-menu, .dash-shell #toast, .dash-shell .search-results,
.dash-shell .workspace-dialogs dialog { background: var(--bg-card); border-color: var(--line); }
.dash-shell .preview-card, .dash-shell .manager-item, .dash-shell .stat-card,
.dash-shell .settings-note, .dash-shell .discord-preview, .dash-shell .advanced-details,
.dash-shell .count-stat, .dash-shell .switch, .dash-shell .sticky-footer {
  background: var(--bg-card);
  border-color: var(--line);
}
.dash-shell .guild-item:hover, .dash-shell .guild-item.active, .dash-shell .search-result:hover { background: var(--bg-card-2); border-color: #2a7c78; }
.dash-shell .guild-open { color: var(--primary); }
.dash-shell .input { color: var(--text); background: #0b1220; border-color: #1e2c40; }
.dash-shell .input::placeholder { color: #8ea0b5; }
.dash-shell .input:focus { border-color: #2ee6c7; background: var(--bg); box-shadow: 0 0 0 3px #2ee6c722; }
.dash-shell :focus-visible { outline-color: var(--primary); }
.dash-shell .btn { color: var(--studio-ink); background: var(--primary); border-color: transparent; }
.dash-shell .btn:hover { background: var(--primary-2); }
.dash-shell .btn.secondary, .dash-shell .btn.ghost { color: var(--text) !important; border-color: var(--line) !important; }
.dash-shell .btn.secondary:hover, .dash-shell .btn.ghost:hover { background: var(--bg-card-2) !important; border-color: #2c4a58 !important; }
.dash-shell .count-badge { color: var(--primary); background: var(--studio-tint); }
.dash-shell .search-highlight { outline-color: var(--primary) !important; }
.dash-shell input[type="checkbox"]:checked { border-color: var(--primary); background-color: var(--primary); }

.dash-shell .studio-overview.active { display: grid; gap: 16px; min-width: 0; }
.studio-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 193px;
  overflow: hidden;
  border: 1px solid #1e4a52;
  border-radius: 14px;
  padding: 20px 24px;
  background: radial-gradient(ellipse at 79% 51%, #0c3d48, #0a2230 67%);
  color: #eef3f8;
}
.studio-signal { position: absolute; inset: 0 0 0 auto; width: 72%; height: 100%; pointer-events: none; }
.studio-hero-copy { z-index: 1; max-width: min(71%, 540px); }
.dash-shell .studio-hero .eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #b7e7df; }
.dash-shell .studio-hero h2 { margin: 0 0 5px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.055em; line-height: 1.06; overflow-wrap: anywhere; }
.dash-shell .studio-hero p { max-width: 34ch; color: #c5d5e4; margin: 0 0 13px; font-size: 13px; }
.dash-shell .studio-hero .btn { color: var(--studio-ink); }
.studio-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.studio-metric, .studio-panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-card); }
.studio-metric { padding: 12px 14px; display: grid; gap: 4px; }
.dash-shell .studio-metric p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; margin: 0; }
.studio-metric .studio-icon { width: 15px; height: 15px; color: var(--primary); }
.studio-metric strong { font-size: clamp(19px, 2.4vw, 28px); letter-spacing: -.045em; line-height: 1.13; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.studio-metric small { color: var(--muted); font-size: 11px; }
.studio-services { width: min(100%, 980px); margin: 0 auto 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.studio-service-state { display: flex; align-items: center; gap: 6px; }
.studio-service-state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.studio-metric .studio-service-state[data-state="online"] { color: var(--primary); }
.studio-metric .studio-service-state[data-state="offline"] { color: #f4a19c; }
.studio-metric .studio-service-state[data-state="total"] { color: var(--text); }
.studio-overview-columns { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(240px, 1fr); gap: 15px; align-items: start; }
.studio-panel > header { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 13px; }
.dash-shell .studio-panel > header h3 { font-size: 16px; letter-spacing: -.025em; margin: 0; }
.dash-shell .studio-panel > header .eyebrow { margin: 0 0 2px; font-size: 9px; }
.studio-panel > header .btn .studio-icon { width: 12px; height: 12px; }
.studio-module-list, #overviewActivity { margin: 0 13px 5px; }
.studio-module, .studio-event { min-height: 49px; padding: 6px 2px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.studio-module { width: 100%; color: var(--text); text-align: left; border-width: 1px 0 0; background: transparent; cursor: pointer; }
.studio-module:hover { background: var(--bg-card-2); }
.studio-glyph { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: var(--primary); background: var(--studio-tint); border-radius: 7px; }
.studio-glyph .studio-icon { width: 15px; height: 15px; }
.studio-module-copy, .studio-event-copy { min-width: 0; flex: 1; display: grid; gap: 1px; }
.studio-module-copy strong, .studio-event-copy strong { font-size: 12px; font-weight: 680; overflow-wrap: anywhere; }
.studio-module-copy small, .studio-event-copy small, .studio-event time { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.studio-event time { text-align: right; max-width: 42%; }
.studio-module-status { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--muted); font-size: 11px; }
.studio-module-status.on { color: var(--primary); }
.studio-next { width: 13px; height: 13px; color: var(--muted); }
.dash-shell .studio-empty { border-top: 1px solid var(--line); padding: 13px 2px; font-size: 12px; margin: 0; }
.studio-details summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding: 11px 14px; color: var(--muted); font-size: 12px; font-weight: 650; }
.studio-details summary::-webkit-details-marker { display: none; }
.studio-details[open] summary .studio-icon { transform: rotate(180deg); }
.studio-details-body { display: grid; gap: 13px; padding: 0 14px 14px; }
.studio-details-body .preview-card { background: var(--studio-sidebar); }
.studio-detail-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dash-shell .studio-detail-stats p { margin: 0; color: var(--muted); font-size: 12px; }
.studio-detail-stats strong { color: var(--text); margin-left: 3px; }

@media (max-width: 1040px) {
  .dash-shell .layout { grid-template-columns: 187px minmax(0, 1fr); }
  .dash-shell .main { padding-left: 17px; }
  .dash-shell .sticky-footer { left: 224px; }
}
@media (max-width: 920px) {
  .studio-overview-columns { grid-template-columns: 1fr; gap: 11px; }
}
@media (max-width: 800px) {
  .dash-shell .workspace-topbar { padding: 8px 12px; min-height: 58px; }
  .dash-shell .top-actions { width: auto; }
  .dash-shell .layout { padding: 0 12px 120px; }
  .dash-shell .main { padding: 16px 0 0; }
  .dash-shell .sticky-footer { left: 12px; right: 12px; }
  .dash-shell.menu-open .layout:not(.selecting) .sidebar { background: var(--studio-sidebar) !important; }
  .dash-shell.menu-open .mobile-menu-close { border-color: var(--line); background: var(--bg-card); }
  .dash-shell .mobile-menu-btn { min-height: 34px; }
  .dash-shell .studio-overview.active { gap: 12px; }
  .studio-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dash-shell .workspace-brand small, .dash-shell .top-actions .external-icon { display: none; }
  .dash-shell .workspace-topbar .top-actions { justify-content: flex-end; }
  .dash-shell .workspace-topbar .top-chat,
  .dash-shell .workspace-topbar .top-vpn { font-size: 0; }
  .dash-shell .workspace-topbar .top-chat .studio-icon,
  .dash-shell .workspace-topbar .top-vpn .studio-icon { width: 16px; height: 16px; }
  .dash-shell .workspace-topbar #logoutBtn { margin-left: 0; }
  .studio-hero { min-height: 167px; padding: 14px; }
  .studio-signal { opacity: .66; }
  .studio-hero-copy { max-width: 85%; }
  .studio-metrics { gap: 5px; }
  .studio-metric { padding: 8px 6px; }
  .dash-shell .studio-metric p { gap: 4px; font-size: 10px; }
  .studio-metric .studio-icon { width: 12px; height: 12px; }
  .studio-metric small { font-size: 10px; line-height: 1.3; }
  .studio-metric strong { font-size: 16px; }
}

.studio-presence { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dash-shell .module-card { background: var(--bg-card); border-color: var(--line); }
.dash-shell .module-card:hover { border-color: #2a7c78; background: var(--bg-card-2); }
.dash-shell .module-status { background: #122033; color: var(--muted); }
.dash-shell .module-status.on { background: var(--studio-tint); color: var(--primary); }
.dash-shell .sticky-footer { background: var(--bg-card); border-color: var(--line); }
.studio-presence > span { display: grid; min-width: 0; gap: 3px; }
@media (max-width: 480px) {
  .studio-presence { gap: 3px 7px; }
  .studio-presence .studio-service-state { gap: 3px; }
  .studio-presence .studio-service-state::before { width: 5px; height: 5px; }
}
.sp-above { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 12px; align-items: start; }
.sp-ping { position: relative; display: grid; gap: 6px; }
.sp-ping-box { position: relative; }
.sp-role-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 240px; overflow: auto; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); box-shadow: 0 16px 40px #0008; }
.sp-role-results.hidden { display: none; }
.sp-role-option, .sp-role-chip { font: inherit; }
.sp-role-option { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; color: var(--text); background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.sp-role-option:hover { background: var(--studio-tint); }
.sp-role-dot { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.sp-role-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 12px; }
.sp-role-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.sp-role-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text); background: var(--bg-card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.sp-role-chip:hover { border-color: var(--primary); }
.sp-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-form-actions .btn { flex: 1 1 140px; }
.manager-item.is-editing { border-color: var(--primary); }
@media (max-width: 800px) { .sp-above { grid-template-columns: 1fr; } }

.dashboard-picker { min-width: 0; }
.dashboard-picker > .input { width: 100%; }
.dashboard-picker .sp-role-option[aria-selected="true"] { font-weight: 700; }
.dashboard-picker .sp-role-option.keyboard-active { background: var(--studio-tint); outline: 1px solid var(--primary); }
#settingsForm select[hidden] { display: none !important; }
.dashboard-picker > .has-value::placeholder { color: var(--text); opacity: 1; }

.cookie-notice[hidden] { display: none; }
.cookie-notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  max-width: 54rem;
  margin: 0.75rem auto 0;
  width: calc(100% - 2rem);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-card);
}
.cookie-notice > div { flex: 1 1 18rem; min-width: 0; }
.cookie-notice h2 { margin: 0 0 0.25rem; font-size: 1rem; }
.cookie-notice p { margin: 0; color: var(--muted); }
.cookie-notice a { color: var(--text); text-decoration: underline; }

.dash-shell .viewer-chip { min-width: 0; max-width: min(13rem, 100%); }
.dash-shell .viewer-chip > div { min-width: 0; }
.dash-shell #viewerName, .dash-shell #viewerMeta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
