/* App brand; separate from independently branded OBS sources. */
body.console-ui #appShell .console-header .streamsync-brand{display:inline-flex;align-items:center;gap:9px}
body.console-ui #appShell .console-header .streamsync-mark{background:none;border:0;box-shadow:none;width:clamp(34px,3.7vw,56px);height:auto;aspect-ratio:68/72;flex:none;overflow:visible}
body.console-ui #appShell .console-header .streamsync-mark img{display:block;width:100%;height:100%;object-fit:contain;filter:none}
body.console-ui #appShell .console-header .streamsync-brand .brand-copy strong{background:none;color:#fcf8ff;-webkit-text-fill-color:currentColor;text-shadow:none;letter-spacing:-.04em;font:750 clamp(18px,1.7vw,27px)/1 Outfit,system-ui,sans-serif}
body.console-ui #appShell .console-header .streamsync-brand .brand-copy strong span{color:#c235ed;-webkit-text-fill-color:currentColor}
#appShell #dashboardWorkspace:not([hidden]){gap:15px;align-items:start;grid-template-columns:minmax(0,1.46fr) minmax(0,1fr);font-family:Outfit,system-ui,sans-serif}
#appShell #dashboardWorkspace .dashboard-playback-column{gap:15px}
#appShell #dashboardWorkspace :is(.live-stage,.queue-panel,.events-console,.dashboard-action-controls){background:linear-gradient(125deg,#21112c 0,#100b1d 38%,#130b20 90%,#24112e);border:1px solid #864694;border-radius:14px;box-shadow:inset 0 0 26px #8e2ac80e;color:#faf5ff}
#appShell #dashboardWorkspace :is(.live-stage,.queue-panel,.events-console)::after{display:none}
#appShell #dashboardWorkspace .panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(110deg,#33143f88,#130c2077);min-height:52px;height:auto;padding:9px 16px;border:0;border-bottom:1px solid #55305f}
#dashboardWorkspace .db-head-title{display:flex;align-items:center;gap:10px;min-width:0}#dashboardWorkspace .db-heading-icon{display:block;width:29px;height:29px;flex:none;color:#d266f9;filter:drop-shadow(0 0 6px #b545f366)}
#appShell #dashboardWorkspace .db-head-title :is(h1,h2){font:700 clamp(16px,1.35vw,21px)/1.15 Outfit,system-ui;text-transform:uppercase;margin:0;color:#fff3ff;letter-spacing:0}#dashboardWorkspace .db-head-title small{font-size:13px;color:#d8c9e4}
#dashboardWorkspace .db-standby{display:grid;justify-items:center;align-content:center;min-height:165px;padding:8px 12px 14px;background:radial-gradient(ellipse at center,#57137340,transparent 68%),url('/analytics-wave.svg') no-repeat right center/60% 96%,linear-gradient(125deg,#1d0b2c,#0d0817);box-sizing:border-box}
#dashboardWorkspace .db-signal{width:min(350px,72%);height:95px;object-fit:contain}
#appShell #dashboardWorkspace .live-stage .db-standby .dashboard-idle-line{display:block;height:auto;min-height:0;padding:0;margin:0;color:#fbf5ff;font:650 16px/1.3 Outfit,system-ui}
#dashboardWorkspace .db-connect-hint{color:#cebbdb;font-size:13px}#dashboardWorkspace:has(#dashboardElapsed:not([hidden])) .db-connect-hint,#dashboardWorkspace:has(#queueCurrent:not(.empty)) .db-standby{display:none}
#appShell #dashboardWorkspace .live-stage .stage-content{height:165px;align-items:center;background:linear-gradient(100deg,#130b20df,#140a22e0),url('/analytics-wave.svg') center/cover}
#appShell #dashboardWorkspace .live-stage .quick-grid{padding:10px 14px;gap:8px;background:#100b1b;border-color:#4c2a5a}
#appShell #dashboardWorkspace .live-stage :is(.quick-control,.speaker-more summary){border:1px solid #69407e;border-radius:8px;background:#21132b;color:#f6e9ff;box-shadow:none}
#appShell #dashboardWorkspace .live-stage #pauseTtsBtn{background:linear-gradient(130deg,#403aaa,#292175);border-color:#8967f3}
#appShell #dashboardWorkspace .live-stage #muteBtn{background:#331324;border-color:#824056}
#appShell #dashboardWorkspace .quick-grid .volume-control{display:flex;flex-direction:row;align-items:center;padding:5px 10px;gap:6px}#appShell #dashboardWorkspace .volume-control input{flex:1 1 40px;min-width:20px;width:0;accent-color:#d269f4}#appShell #dashboardWorkspace .volume-control output{color:#dec6ed}
#appShell #dashboardWorkspace .queue-status,#appShell #dashboardWorkspace .dashboard-voice-details{background:#140d20;border:1px solid #463051;border-radius:7px;margin:5px 12px;padding:0}
#appShell #dashboardWorkspace .queue-status{padding:8px 12px}#dashboardWorkspace .queue-status::before{content:'▸';color:#ac79d2}#dashboardWorkspace:has(#heroSpeechStatus[data-state=standby]) #queueStatus{color:#85e9a0}
#appShell #dashboardWorkspace .dashboard-action-controls{padding:13px 16px;min-height:96px;box-sizing:border-box;background:linear-gradient(90deg,#1c1128a3,#100c20a8),url('/analytics-wave.svg') no-repeat 18% bottom/50% 55%,#140c20}#appShell #dashboardWorkspace .dashboard-action-controls>header,#appShell #dashboardWorkspace .dashboard-action-buttons{background:transparent;border:0}#dashboardWorkspace .dashboard-action-controls header i{color:#dd84fc}
#appShell #dashboardWorkspace .events-console{padding:0 10px 10px;min-height:100%;box-sizing:border-box;align-self:stretch}#appShell #dashboardWorkspace .events-console>.panel-head{margin:0 -10px}#appShell #dashboardWorkspace #viewAllEvents{color:#76e6ef}
#appShell #dashboardWorkspace .dashboard-feed-filter{display:flex;gap:5px;padding:5px 2px;flex-wrap:wrap;align-items:center}#appShell #dashboardWorkspace .dashboard-feed-filter button{padding:4px 10px;border-radius:8px;background:#25152f;border-color:#573260;color:#f2e3fa}#appShell #dashboardWorkspace .dashboard-feed-filter [aria-pressed=true]{background:linear-gradient(145deg,#be40f0,#761bb0);border-color:#d48bff}
#appShell #dashboardWorkspace .events-console .feed{padding:3px 0;height:clamp(260px,44vh,480px);background:transparent}
#appShell #dashboardWorkspace #feed:not(.feed-custom-look) .feed-item{background:linear-gradient(110deg,#25142e,#160f23);border:1px solid #442952;border-inline-start:4px solid #b14bdf;border-radius:8px;margin:4px 0;padding:8px 9px;color:#f8edff;min-height:62px;box-sizing:border-box;opacity:1}
#appShell #dashboardWorkspace #feed:not(.feed-custom-look) .feed-identity strong{color:#fbf5ff;font-size:16px}#appShell #dashboardWorkspace #feed:not(.feed-custom-look) .feed-message{color:#f1e3f8;font:400 15px/1.3 Outfit,system-ui;margin-top:4px}#dashboardWorkspace .feed-actions time{color:#c7b3d3}#appShell #dashboardWorkspace .feed-actions button{background:#21132a;border-color:#63416f;color:#ecc7ff}
@media(max-width:900px){#appShell #dashboardWorkspace:not([hidden]){grid-template-columns:minmax(0,1fr)}#appShell #dashboardWorkspace .events-console{min-height:0}#appShell #dashboardWorkspace .events-console .feed{height:300px}}
@media(max-width:620px){#appShell #dashboardWorkspace .panel-head{padding:9px 11px}#appShell #dashboardWorkspace .live-stage .quick-grid{gap:5px;padding:7px}#dashboardWorkspace .db-head-title small{font-size:11px}.db-heading-icon{max-width:24px}}
#appShell #dashboardWorkspace .db-standby{background:radial-gradient(ellipse at center,#57137335,transparent 68%),url('/dashboard-ribbon.svg') center/100% 100% no-repeat,#120a1d}
body.console-ui #appShell #dashboardWorkspace .dashboard-action-controls{background:linear-gradient(90deg,#160b1f44,#0d0817aa),url('/dashboard-ribbon.svg') left bottom/75% 50% no-repeat,#170c22}
#appShell #dashboardWorkspace .dashboard-feed-filter #feedAppearanceOpen{order:1}#appShell #dashboardWorkspace .dashboard-feed-filter label{order:2}
#appShell #dashboardWorkspace #feed:not(.feed-custom-look) .feed-item{animation:none}
/* Dashboard controls and populated/expanded states. Retain event badges, alerts and custom feed styling. */
#appShell #dashboardWorkspace{--cyan:#dc9aff;--blue:#aa72ef;--db-accent:#d594ff;--db-edge:#654077;--db-raised:#25162f;--db-muted:#cdbbd9}
#appShell #dashboardWorkspace :is(.dashboard-session,#liveRoomStats>div,#dashboardSupporters:not([hidden]),.dashboard-extra-buttons,.status-body,.dashboard-action-buttons .dashboard-more summary){background:linear-gradient(135deg,#24152f,#130d20);border-color:var(--db-edge);color:#f8edff}
#appShell #dashboardWorkspace :is(#liveRoomStats dt,#topSupporterCard small,#lastGiftCard small,.dashboard-more summary,.dashboard-filter-empty,.status-body dt,.hero-action,.feed-actions time){color:var(--db-muted)}
#appShell #dashboardWorkspace :is(#topSupporterCard .supporter-photo,#lastGiftCard .gift-art,#queueTabCount,.tts-queue-item>b,.voice-orb-core:not(.has-avatar)){background:radial-gradient(circle,#49245e,#1b1029);color:var(--db-accent);border-color:#8654a3}
#appShell #dashboardWorkspace :is(.voice-orb-core,.mic-orb){border-color:#b166d7;box-shadow:0 0 12px #a248cf55}
#appShell #dashboardWorkspace .voice-orb-core svg,#appShell #dashboardWorkspace .mic-orb svg{stroke:#daa0fb;filter:drop-shadow(0 0 4px #bc56df77)}
#appShell #dashboardWorkspace .voice-orb::before{background:conic-gradient(#9e44d0,#e6b4ff,#7538a0,#9e44d0)}
#appShell #dashboardWorkspace .speaking-chip[data-state=standby]{color:#e7d5f3;background:#1c1128;border-color:#624079}
#appShell #dashboardWorkspace :is(.tts-queue-item,.dashboard-more,.dashboard-voice-details){border-color:#50325e}
#appShell #dashboardWorkspace :is(.tts-queue-item strong,.tts-queue-item>i,.dashboard-more summary,#lastGiftCard summary,#viewAllEvents,#clearQueueLink:not(:disabled)){color:var(--db-accent)}
#appShell #dashboardWorkspace :is(.tts-queue-item p,.status-body dd){color:#f6ecfc}
#appShell #dashboardWorkspace :is(.tts-queue-item small,.engine-summary,.feed-identity>small,.dashboard-action-buttons button small,.queue-status>span){color:var(--db-muted)}
#appShell #dashboardWorkspace :is(#quickActionsPause,#quickActionsManage,#quickActionsMaster,.speaker-more summary,.dashboard-extra-buttons button,#lastGiftCard summary,#lastGiftCard form button,#openSettingsBtn,.dashboard-voice-details summary,.events-console>.dashboard-more>summary){color:#edddfb;background:#21142d;border-color:var(--db-edge);box-shadow:none}
#appShell #dashboardWorkspace :is(#quickActionsPause,#quickActionsManage,#quickActionsMaster,.quick-control:not(#muteBtn),#openSettingsBtn) :is(i,svg),#appShell #dashboardWorkspace .dashboard-action-controls header i{color:var(--db-accent);filter:none}
#appShell #dashboardWorkspace #pauseTtsBtn{background:linear-gradient(130deg,#752db1,#512176);border-color:#a664d2}
#appShell #dashboardWorkspace .speaker-more[open] .dashboard-extra-buttons,#appShell #dashboardWorkspace .dashboard-action-buttons details[open] .dashboard-extra-buttons{background:#170f22;border-color:var(--db-edge)}
#appShell #dashboardWorkspace .events-console .dashboard-feed-filter label,#appShell #dashboardWorkspace .events-console .empty-state p{color:var(--db-muted)}
#appShell #dashboardWorkspace .events-console .empty-state .wave i{background:#ca70ff;box-shadow:0 0 7px #ac4cdb66}
#appShell #dashboardWorkspace #feed:not(.feed-custom-look) .avatar:not([style*="background-image"]){background-color:#372044;color:#ebccfc}
#appShell #dashboardWorkspace :is(#quickActionsPause,#openSettingsBtn,.dashboard-extra-buttons button,.dashboard-feed-filter button:not([aria-pressed=true]),#lastGiftCard form button):not(:disabled):hover{background:#372043;border-color:#ba7cda}
#appShell:has(#dashboardWorkspace:not([hidden])) .connect-console :is(label[for=username],.console-username),#appShell:has(#dashboardWorkspace:not([hidden])) .connect-console .auto-connect-control{background:#160e21;border-color:#553664;color:#f2e2fd}
#appShell:has(#dashboardWorkspace:not([hidden])) .connect-console .auto-connect-control input:checked+b{background:#783b9f;border-color:#b676cd}
/* Compact automation summary in the dashboard; no changes to the full rule editor. */
body.console-ui #appShell #dashboardWorkspace .db-auto{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding:14px 16px;min-height:0;background:linear-gradient(110deg,#281333df,#120e20eb),url('/dashboard-ribbon.svg') center bottom/100% 65% no-repeat,#150e20}
.db-auto-heading,.db-auto-summary,.db-auto-tools,.db-auto-more>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.db-auto-heading h2{font:700 19px/1.2 Outfit,system-ui;color:#fcf1ff;margin:0}.db-auto svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.db-auto-heading i{display:grid;place-items:center;width:32px;height:32px;color:#de92ff;border:1px solid #754487;border-radius:9px;background:#321b43;font:700 25px/1 system-ui}.db-auto-heading>b{margin-left:auto;padding:4px 9px;border-radius:20px;background:#312638;color:#e9deee;font:600 12px Outfit,system-ui}.db-auto-heading>b::before{content:'●';margin-right:5px;font-size:9px}.db-auto-heading>b[data-state=enabled]{color:#8aecb0;background:#132b22}.db-auto-heading>b[data-state=paused]{color:#ffd18b;background:#352514}.db-auto-heading>b[data-state=disabled]{color:#ffb1c8;background:#341b28}
.db-auto-summary{color:#d6c5e2;font:14px Outfit,system-ui;font-variant-numeric:tabular-nums}.db-auto-summary>span+span{border-left:1px solid #604167;padding-left:12px}.db-auto-summary b{color:#fff0ff}.db-auto #quickActionsLastActivity{color:#d9bfdc;font-size:12px;overflow-wrap:anywhere;margin:0}
.db-auto-tools{border-top:1px solid #472d51;padding-top:9px}.db-auto-tools button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;border:1px solid #704784;border-radius:7px;padding:6px 11px;min-height:35px}.db-auto-tools strong{font:650 13px Outfit,system-ui}.db-auto-tools small{display:block;color:#cbb7d4;font-size:10px}.db-auto-tools button:disabled{opacity:.5;cursor:not-allowed}body.console-ui #appShell #dashboardWorkspace #quickActionsManage{background:linear-gradient(115deg,#582377,#39204d);color:#fff0ff}.db-auto-tools #quickActionsPause[data-state=paused] svg{color:#ffcd83}.db-auto-more{margin-left:auto;color:#cdb4da;font:12px Outfit,system-ui}.db-auto-more summary{cursor:pointer;padding:8px 3px}.db-auto-more[open]{flex-basis:100%;margin:0}.db-auto-more>div{justify-content:space-between;background:#170e21;padding:8px 10px;border-radius:7px}
@media(max-width:540px){body.console-ui #appShell #dashboardWorkspace .db-auto{padding:12px}.db-auto-tools{gap:6px}.db-auto-more{margin-left:0}.db-auto-heading h2{font-size:17px}}
/* Playback indicator uses existing client playback state, not the microphone. */
#appShell #dashboardWorkspace .live-stage .stage-content{grid-template-columns:clamp(94px,25%,190px) minmax(0,1fr)}
#appShell #dashboardWorkspace .live-stage .stage-content .voice-orb{width:100%;height:58px;min-width:0}
#appShell #dashboardWorkspace .live-stage .stage-content .voice-orb::before{inset:auto;width:45px;height:45px;box-sizing:border-box;box-shadow:0 0 14px #b752e966}
#dashboardWorkspace .tts-speech-wave{position:absolute;inset:0;margin:auto;width:100%;height:100%;pointer-events:none;fill:#d783ff;opacity:0}
#dashboardWorkspace .tts-speech-wave rect{transform-box:fill-box;transform-origin:center}
#dashboardWorkspace.dashboard-audio-playing:has(#heroSpeechStatus[data-state="speaking"]) .tts-speech-wave{opacity:1;filter:drop-shadow(0 0 3px #b54bea80)}
@media(prefers-reduced-motion:no-preference){#dashboardWorkspace.dashboard-audio-playing:has(#heroSpeechStatus[data-state="speaking"]) .tts-speech-wave rect{animation:ttsSpeechLevel var(--beat) ease-in-out var(--phase) infinite alternate}}
@keyframes ttsSpeechLevel{0%{transform:scaleY(.24)}48%{transform:scaleY(.68)}100%{transform:scaleY(1.12)}}
@media(max-width:500px){#appShell #dashboardWorkspace .live-stage .stage-content{grid-template-columns:94px minmax(0,1fr)}}
