/* Dashboard only. Keep playback controls outside both independently scrolling lists. */
#dashboardWorkspace .dashboard-feed-filter{flex-wrap:wrap;align-items:center}#dashboardWorkspace .dashboard-feed-filter label{display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:var(--ssp-muted);font-size:12px}#dashboardWorkspace #feed .feed-filtered{display:none!important}#dashboardWorkspace .events-console:has(#feed[data-no-matches=true]) .dashboard-filter-empty{display:block}
#dashboardWorkspace .feed-item.gift .avatar::after{content:none}
#dashboardWorkspace .feed-item:is(.gift,.like) .tag{display:inline-flex;align-items:center;gap:5px}
#dashboardWorkspace .feed-event-icon{display:inline-grid;place-items:center;flex:none;line-height:1}
#dashboardWorkspace .like .feed-event-icon{color:#ff729f;font-size:16px}
#dashboardWorkspace .gift .feed-event-icon{width:24px;height:24px;font-size:18px}
#dashboardWorkspace .feed-event-icon img{width:100%;height:100%;border:none;border-radius:0;box-shadow:none;object-fit:contain}
#dashboardWorkspace #lastGiftCard[hidden]{display:none}
#dashboardWorkspace #lastGiftCard dd{font-size:13px;line-height:1.4}#lastGiftCard dd>strong,#lastGiftCard dd>small{display:block}#lastGiftCard dd>strong{font-size:16px}#lastGiftCard small{color:var(--ssp-muted);font-weight:400}#lastGiftCard summary{cursor:pointer;color:var(--ssp-cyan);font-size:12px;padding-block:4px}#lastGiftCard form{display:flex;gap:6px;align-items:end;flex-wrap:wrap}#lastGiftCard label{display:grid;font-size:12px}#lastGiftCard input{width:8em;max-width:100%}
#dashboardWorkspace dl#liveRoomStats:has(#lastGiftCard:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}#dashboardWorkspace dl#liveRoomStats:has(#lastGiftCard:not([hidden])) :is(#lastGiftCard,#topSupporterCard){grid-column:span 2}
@media(max-width:660px){#dashboardWorkspace dl#liveRoomStats:has(#lastGiftCard:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}
#dashboardWorkspace #topSupporterCard[hidden]{display:none}
#topSupporterCard dd{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:8px}
#topSupporterCard .supporter-photo{grid-row:1/4;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--nb-ui-inset,#102947);color:var(--nb-ui-accent,#8ce6f5);font-size:16px}
#topSupporterCard img{width:100%;height:100%;object-fit:cover}#topSupporterCard [hidden]{display:none!important}
#topSupporterCard [data-supporter-name],#topSupporterCard dd>small{grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#topSupporterCard [data-supporter-name]{font-size:16px}#topSupporterCard dd>small{font-size:12px}
#dashboardWorkspace #topSupporterCard small{color:var(--ssp-muted);font-variant-numeric:tabular-nums}
@media(min-width:661px){#dashboardWorkspace #liveRoomStats:has(#topSupporterCard:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.5fr)}}
@media(max-width:660px){#dashboardWorkspace #topSupporterCard{grid-column:1/-1}}
#dashboardWorkspace .live-room-stats:not([hidden]){grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 18px;margin:-6px 0 0;padding:4px 12px;color:var(--ssp-muted);font-size:12px}
#dashboardWorkspace .live-room-stats div{display:flex;align-items:baseline;gap:5px}#dashboardWorkspace .live-room-stats dd{margin:0;color:var(--ssp-text);font-weight:700;font-variant-numeric:tabular-nums}
#dashboardWorkspace #liveRoomStats:not([hidden]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0}
#dashboardWorkspace #liveRoomStats>div{display:grid;align-content:center;gap:3px;min-width:0;padding:9px 12px;border:1px solid var(--ssp-border);border-radius:8px;background:var(--ssp-panel-raised)}
#dashboardWorkspace #liveRoomStats dt{margin:0;color:var(--ssp-muted);font-size:12px}
#dashboardWorkspace #liveRoomStats dd{font-size:clamp(18px,2vw,24px);line-height:1.2;overflow-wrap:anywhere}
@media(max-width:660px){#dashboardWorkspace #liveRoomStats:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}}
#dashboardWorkspace .dashboard-session{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:8px 12px;background:var(--ssp-panel-raised);border:1px solid var(--ssp-border);border-radius:8px;color:var(--ssp-muted);font-size:12px}
#dashboardWorkspace .dashboard-session strong{color:var(--ssp-text)}
#dashboardWorkspace .live-stage .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#dashboardWorkspace #pauseTtsBtn{background:var(--nb-ui-line,#0d3573);color:#fff;border-color:var(--nb-ui-accent,#438dff)}
#dashboardWorkspace .dashboard-more summary{color:var(--nb-ui-soft,#bdd2e9);cursor:pointer;font-size:12px;padding:6px 12px}
#dashboardWorkspace .dashboard-extra-buttons{display:flex;flex-wrap:wrap;gap:6px;padding:4px 12px 8px}#dashboardWorkspace .dashboard-extra-buttons button{min-height:36px}
#dashboardWorkspace .dashboard-action-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:4px 8px;background:var(--ssp-panel)}
#dashboardWorkspace .dashboard-rule-count{font-size:12px;color:var(--nb-ui-soft,#b7cbe1);margin-right:auto}
#dashboardWorkspace .dashboard-feed-filter{display:flex;gap:4px;padding:6px 10px}
#dashboardWorkspace .dashboard-feed-filter button{background:var(--nb-ui-raised,#081a32);border:1px solid var(--nb-ui-edge,#234369);color:var(--nb-ui-soft,#bdd2e9);padding:4px 10px;min-height:30px;border-radius:7px;cursor:pointer}
#dashboardWorkspace .dashboard-feed-filter [aria-pressed=true]{background:var(--nb-ui-line,#0d3573);color:white;border-color:var(--nb-ui-accent,#438dff)}
#dashboardWorkspace .dashboard-filter-empty{display:none;margin:8px 12px;color:var(--nb-ui-muted,#adc2db);font-size:12px}
#dashboardWorkspace #feed[data-filter=gift] .feed-item:not(.gift),#dashboardWorkspace #feed[data-filter=chat] .feed-item:not(.chat){display:none}
#dashboardWorkspace .events-console:has(#feed[data-filter=gift] .feed-item):not(:has(#feed .gift)) .dashboard-filter-empty,#dashboardWorkspace .events-console:has(#feed[data-filter=chat] .feed-item):not(:has(#feed .chat)) .dashboard-filter-empty{display:block}
#dashboardWorkspace .feed-item .avatar{position:relative}#dashboardWorkspace .feed-item .avatar::after{position:absolute;bottom:-2px;right:-3px;font:700 11px/16px system-ui;text-align:center;width:16px;border-radius:50%;background:var(--nb-ui-raised,#10243e);color:var(--nb-ui-soft,#c2d1e7)}
#dashboardWorkspace .feed-item.chat .avatar::after{content:'…'}#dashboardWorkspace .feed-item.follow .avatar::after{content:'+';color:#6de0ab}
#dashboardWorkspace .feed-item.chat .tag{color:#bfcee2;background:#15263c}
#dashboardWorkspace .stage-copy #nowSpeaking{font-size:clamp(18px,2vw,26px);color:var(--nb-ui-text,#f2f7ff);font-weight:650;font-style:normal}
#dashboardWorkspace.dashboard-audio-playing:has(#heroSpeechStatus[data-state=speaking]) .voice-orb-core{outline:2px solid #3edacc;animation:dashboardSpeak 1.4s ease-in-out infinite alternate}
@keyframes dashboardSpeak{to{box-shadow:0 0 14px #39ddf577}}
@media(prefers-reduced-motion:reduce){#dashboardWorkspace.dashboard-audio-playing .voice-orb-core{animation:none!important}}
@media(max-width:500px){#dashboardWorkspace .live-stage .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardWorkspace .dashboard-feed-filter button{min-height:40px}}
#dashboardWorkspace[hidden]{display:none!important}
#dashboardWorkspace:not([hidden]){display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);grid-template-areas:none;align-items:start;gap:12px;min-width:0}
#dashboardWorkspace .dashboard-playback-column{display:grid;gap:10px;align-content:start;min-width:0}
#dashboardWorkspace :is(.live-stage,.queue-panel,.events-console){grid-area:auto;height:auto;min-height:0;min-width:0;margin:0}
#dashboardWorkspace .quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;height:auto;padding:8px 12px}
#dashboardWorkspace .quick-control{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:6px;min-height:36px;height:auto;padding:5px;min-width:0}
#dashboardWorkspace .quick-control i{height:auto;width:auto;margin:0}#dashboardWorkspace .quick-control svg{width:17px;height:17px}
#dashboardWorkspace .quick-control.volume-control{display:grid;grid-template-columns:auto 1fr;gap:0 4px}#dashboardWorkspace .volume-control input{grid-column:1/-1;max-width:100%;margin:0}
#dashboardWorkspace .stage-content{grid-template-columns:54px minmax(0,1fr);min-height:0;height:auto;gap:10px;padding:8px 12px 12px}
#dashboardWorkspace .voice-orb{width:52px;height:52px}#dashboardWorkspace .voice-orb-core{width:40px;height:40px}#dashboardWorkspace .voice-orb-core svg{width:24px;height:24px}#dashboardWorkspace .orb-base{display:none}
#dashboardWorkspace .stage-copy{min-width:0}#dashboardWorkspace .stage-copy>strong{font-size:20px;margin:0}#dashboardWorkspace .hero-action{font-size:12px;margin:2px 0}
#dashboardWorkspace .stage-copy blockquote{font-size:16px;line-height:1.35;max-height:5.4em;overflow:auto;overflow-wrap:anywhere;margin:3px 0 0}
#dashboardWorkspace .dashboard-idle-line{display:none}
#dashboardWorkspace:not(:has(#queueCurrent:not(.empty))) .stage-content{display:none}
#dashboardWorkspace:not(:has(#queueCurrent:not(.empty))) .dashboard-idle-line{display:block;color:var(--nb-ui-soft,#b7cbe1);font-size:13px;margin:0;padding:4px 12px 10px}
#dashboardWorkspace .queue-status{display:flex;align-items:center;justify-content:flex-start;gap:6px;padding:8px 12px;margin:0;border:0;border-radius:0;min-height:0}
#dashboardWorkspace .queue-status small,#dashboardWorkspace #queueCurrent,#dashboardWorkspace #queueEmpty,#dashboardWorkspace .tts-queue-list:empty{display:none}
#dashboardWorkspace #queueTotal::before{content:'· ';color:var(--nb-ui-muted,#89a9c4)}
#dashboardWorkspace .tts-queue-list{max-height:clamp(92px,18vh,180px);overflow:auto;overscroll-behavior:contain;margin:0;padding:4px 8px}
#dashboardWorkspace .dashboard-voice-details{border-top:1px solid var(--nb-ui-line,#173652)}#dashboardWorkspace .dashboard-voice-details summary{cursor:pointer;color:var(--nb-ui-soft,#c3d8ed);padding:8px 12px;font-size:12px}
#dashboardWorkspace .status-body{height:auto;min-height:0;padding:8px 12px}#dashboardWorkspace .status-body .mic-orb{display:none}#dashboardWorkspace .status-body dl{width:100%}
#dashboardWorkspace .dashboard-action-controls{margin:0}#dashboardWorkspace .events-console .feed{height:clamp(180px,52vh,540px);overflow:auto;overscroll-behavior:contain}
@media(max-width:900px){#dashboardWorkspace:not([hidden]){grid-template-columns:minmax(0,1fr)!important}#dashboardWorkspace .quick-control{min-height:42px}#dashboardWorkspace .events-console .feed{height:240px}}

/* Reserve the same speaker space across events so buttons don't move under the pointer. */
#dashboardWorkspace .live-stage .stage-content,#dashboardWorkspace .live-stage .dashboard-idle-line{box-sizing:border-box;height:116px;margin:0;padding:12px;align-items:start}
#dashboardWorkspace .live-stage .dashboard-idle-line{align-content:center}
#dashboardWorkspace .live-stage .stage-copy{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);align-items:baseline;gap:4px 8px}
#dashboardWorkspace .stage-copy #heroName{font-size:16px;line-height:20px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashboardWorkspace .stage-copy .hero-action{margin:0;font-size:12px;color:var(--nb-ui-muted,#b4c2d7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashboardWorkspace .stage-copy .hero-action::before{content:'· ';}
#dashboardWorkspace .stage-copy #nowSpeaking{grid-column:1/-1;max-height:3.9em;margin:0;font:400 clamp(16px,1.55vw,19px)/1.3 system-ui,sans-serif;overflow:auto;overflow-wrap:anywhere}
#dashboardWorkspace .live-stage .quick-grid{grid-template-columns:auto auto auto minmax(80px,1fr) auto;align-items:center;gap:6px;border-top:1px solid var(--nb-ui-line,#173652);padding:8px 12px}
#dashboardWorkspace .live-stage #muteBtn{border-color:#844456;background:#251521;box-shadow:none}#dashboardWorkspace #muteBtn i,#dashboardWorkspace #muteBtn svg{filter:none;box-shadow:none}#dashboardWorkspace #muteBtn svg{width:12px;height:12px}
#dashboardWorkspace .speaker-more{position:relative}#dashboardWorkspace .speaker-more summary{list-style:none;cursor:pointer;text-align:center;font-size:21px;line-height:24px;padding:5px 8px;border:1px solid var(--nb-ui-edge,#28517c);border-radius:8px}#dashboardWorkspace .speaker-more summary::-webkit-details-marker{display:none}
#dashboardWorkspace .speaker-more[open] .dashboard-extra-buttons{position:absolute;bottom:calc(100% + 4px);right:0;z-index:8;display:grid;gap:4px;width:max-content;padding:6px;background:var(--nb-ui-panel,#07152c);border:1px solid var(--nb-ui-edge,#28517c);border-radius:8px}
@media(max-width:620px){#dashboardWorkspace .live-stage .quick-grid{grid-template-columns:repeat(3,minmax(0,1fr)) auto}#dashboardWorkspace .live-stage .volume-control{grid-column:1/-1;grid-row:2}#dashboardWorkspace .live-stage .speaker-more{grid-column:4;grid-row:1}#dashboardWorkspace .speaker-more summary{min-height:42px;align-content:center}}
/* Keep the two gift highlights aligned even when one viewer has no image or alias. */
#dashboardWorkspace :is(#lastGiftCard,#topSupporterCard){align-content:start;position:relative}
#dashboardWorkspace #lastGiftCard dd{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:2px 8px;margin:0}
#dashboardWorkspace #lastGiftCard .gift-art{grid-column:1;grid-row:1/4;width:36px;height:36px;display:grid;place-items:center;background:var(--nb-ui-inset,#102947);border-radius:8px}
#dashboardWorkspace #lastGiftCard .gift-art img{width:32px;height:32px;object-fit:contain}
#dashboardWorkspace #lastGiftCard [hidden]{display:none!important}
#dashboardWorkspace #lastGiftCard :is([data-last-gift],[data-last-sender],.gift-value){grid-column:2;min-width:0;overflow-wrap:anywhere;font-size:12px;color:var(--ssp-muted)}
#dashboardWorkspace #lastGiftCard [data-last-gift]{font-size:16px;color:var(--ssp-text)}
#dashboardWorkspace #lastGiftCard details{grid-column:1/-1}#dashboardWorkspace #lastGiftCard summary{position:absolute;top:6px;right:6px;list-style:none;padding:4px 7px;font-size:16px}#dashboardWorkspace #lastGiftCard summary::-webkit-details-marker{display:none}
#dashboardWorkspace #lastGiftCard form{margin:6px 0}
#dashboardWorkspace .dashboard-action-controls{display:flex;align-items:center;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;padding:5px 8px}
#dashboardWorkspace .dashboard-action-controls>header{min-height:0;padding:4px;border:0;background:none}
#dashboardWorkspace .dashboard-action-controls .engine-summary{display:block;font-size:12px;color:var(--ssp-muted)}
#dashboardWorkspace .engine-summary b{font-weight:500}#dashboardWorkspace .engine-summary [data-state=enabled]{color:#75e6b7}
#dashboardWorkspace .dashboard-action-controls .dashboard-action-buttons{padding:0;background:transparent}
