:root {
  --console-bg: #020611;
  --panel: #071024;
  --panel-deep: #030916;
  --line: #1b3763;
  --muted: #7d8ba6;
  --text: #edf6ff;
  --cyan: #00dcff;
  --blue: #3987ff;
  --purple: #ad54ff;
  --pink: #ff2d99;
  --green: #29efa2;
  --amber: #ffb628;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.console-ui {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 71, 174, .17), transparent 27rem),
    radial-gradient(circle at 88% 94%, rgba(103, 27, 175, .12), transparent 28rem),
    linear-gradient(145deg, #01030a 0%, var(--console-bg) 48%, #030817 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.toast-region { position: fixed; z-index: 1000; top: 18px; right: 18px; display: grid; width: min(390px,calc(100vw - 28px)); pointer-events: none; }
.connection-toast { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; align-items: center; overflow: hidden; padding: 13px 14px; border: 1px solid rgba(255,77,119,.66); border-radius: 11px; opacity: 0; color: #f4f7fb; background: linear-gradient(135deg,rgba(59,8,29,.97),rgba(14,8,25,.98)); box-shadow: 0 18px 50px rgba(0,0,0,.55),0 0 25px rgba(255,45,99,.15); transform: translateY(-12px) scale(.98); transition: opacity .24s ease,transform .24s ease; }
.connection-toast.visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-error-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #ff6688; border-radius: 50%; color: #fff; background: rgba(255,45,99,.2); box-shadow: 0 0 13px rgba(255,45,99,.25); font: 800 17px/1 "DM Mono",monospace; }
.connection-toast strong { display: block; color: #ff91a9; font-size: 12px; }
.connection-toast p { margin: 3px 0 0; color: #c8b4c0; font-size: 10px; line-height: 1.4; }
.connection-toast > i { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg,#ff416d,#ff8ca5); transform-origin: left; animation: connectionToastTimer 4.2s linear forwards; }
@keyframes connectionToastTimer { to { transform: scaleX(0); } }

.console-shell {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  grid-template-areas: "navigation header" "navigation dashboard" "navigation settings" "navigation footer";
  column-gap: 12px;
  width: min(1720px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.app-navigation { grid-area: navigation; position: sticky; top: 14px; align-self: start; display: flex; flex-direction: column; gap: 7px; min-height: calc(100vh - 28px); padding: 13px 9px; border: 1px solid rgba(29,57,102,.72); border-radius: 15px; background: linear-gradient(180deg,rgba(5,13,31,.96),rgba(3,8,20,.9)); box-shadow: inset 0 1px rgba(255,255,255,.03), 0 18px 60px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.app-navigation-heading { display: grid; gap: 2px; padding: 5px 8px 11px; border-bottom: 1px solid rgba(36,61,96,.65); }
.app-navigation-heading span { color: #576984; font: 500 8px "DM Mono",monospace; letter-spacing: .16em; text-transform: uppercase; }
.app-navigation-heading strong { color: #dceaff; font-size: 14px; }
.app-navigation-item { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: center; width: 100%; min-height: 52px; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; color: #7e8fa9; background: transparent; text-align: left; transition: border-color .2s ease,color .2s ease,background .2s ease,box-shadow .2s ease; }
.app-navigation-item svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-navigation-item > span { display: grid; min-width: 0; gap: 2px; }
.app-navigation-item strong { overflow: hidden; color: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.app-navigation-item small { color: #52617a; font-size: 8px; white-space: nowrap; }
.app-navigation-item.active { border-color: rgba(0,220,255,.48); color: #58eaff; background: linear-gradient(135deg,rgba(0,155,203,.18),rgba(73,64,190,.13)); box-shadow: inset 3px 0 #25dfff,0 0 18px rgba(0,220,255,.08); }
.app-navigation-item.active small { color: #7ca7bb; }
.app-navigation-item.placeholder { opacity: .67; cursor: default; }
.app-navigation-item.placeholder b { position: absolute; top: 5px; right: 5px; padding: 2px 4px; border: 1px solid #273c5c; border-radius: 5px; color: #647590; background: #07101f; font: 500 6px "DM Mono",monospace; letter-spacing: .08em; text-transform: uppercase; }
.app-navigation-foot { display: flex; gap: 7px; align-items: center; margin-top: auto; padding: 10px 8px 2px; color: #52617a; font: 500 8px "DM Mono",monospace; letter-spacing: .08em; text-transform: uppercase; }
.app-navigation-foot i { width: 6px; height: 6px; border-radius: 50%; background: #ffb628; box-shadow: 0 0 9px rgba(255,182,40,.5); }

.console-header {
  grid-area: header;
  display: grid;
  grid-template-columns: auto minmax(360px, 700px) auto;
  gap: 24px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(29, 57, 102, .7);
  border-radius: 15px;
  background: rgba(4, 10, 24, .82);
  box-shadow: inset 0 1px rgba(255,255,255,.03), 0 18px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.console-brand, .console-header > .brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 220, 255, .65);
  border-radius: 50%;
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 220, 255, .28), inset 0 0 13px rgba(173, 84, 255, .18);
}
.brand-mark::after { content: "◖"; font-size: 20px; transform: rotate(22deg); }
.console-brand strong { display: block; letter-spacing: .03em; }
.console-brand small { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.console-header > .brand b { color: var(--cyan); }
.console-header > .brand .brand-mark { flex: 0 0 auto; }
.console-header > .brand .brand-mark i { display: none; }
.streamsync-brand { min-width: 206px; gap: 8px !important; }
.streamsync-brand .streamsync-mark {
  width: 43px;
  height: 43px;
  overflow: visible;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
.streamsync-brand .streamsync-mark::after { display: none; }
.streamsync-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; align-items: center; white-space: nowrap; }
.brand-copy strong {
  color: transparent;
  background: linear-gradient(92deg,#38e7ff 0%,#35bcff 28%,#5685ff 57%,#bd4eff 78%,#ff38cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(56,170,255,.16);
  -webkit-text-fill-color: transparent;
}

.connect-inline, .connect-console { display: grid; grid-template-columns: auto minmax(150px, 1fr) auto auto; gap: 8px; align-items: center; }
.connect-console > label { align-self: center; color: #8492aa; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.console-username { display: flex; align-items: center; height: 38px; border: 1px solid #223754; border-radius: 9px; background: #080e1c; }
.console-username span { padding-left: 11px; color: #77859c; }
.connect-inline input, .console-username input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  outline: none;
}
.connect-inline input:focus, .console-username input:focus { box-shadow: none; }
.console-username:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,220,255,.09); }
.connect-inline .primary, .connect-console .primary {
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(0,220,255,.55);
  border-radius: 9px;
  padding: 0 12px;
  gap: 8px;
  color: #05111c;
  font-weight: 800;
  background: linear-gradient(135deg, #00efff, #4ca1ff);
  box-shadow: 0 0 20px rgba(0,220,255,.18);
}
.connect-inline .primary svg, .connect-console .primary svg { width: 16px; height: 16px; }
.auto-connect-control { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 9px; border: 1px solid #223754; border-radius: 9px; color: #91a1b9; background: #080e1c; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.auto-connect-control input { position: absolute; opacity: 0; pointer-events: none; }
.auto-connect-control b { position: relative; width: 28px; height: 16px; border-radius: 20px; background: #303b50; transition: .2s ease; }
.auto-connect-control b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #9ba8ba; transition: .2s ease; }
.auto-connect-control input:checked + b { background: rgba(39,196,184,.42); box-shadow: inset 0 0 0 1px rgba(55,224,209,.38), 0 0 12px rgba(39,196,184,.13); }
.auto-connect-control input:checked + b::after { left: 15px; background: #62e8dc; }
.auto-connect-control:focus-within { border-color: #34cfc4; }

.status-cluster, .header-status { justify-self: end; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #667086; box-shadow: 0 0 8px currentColor; }
.status-dot.connected { color: var(--green); background: currentColor; }
.status-dot.connecting { color: var(--amber); background: currentColor; }
#statusText, #statusMessage { max-width: 190px; overflow: hidden; margin: 0; color: #aebbd1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.viewer-pill { padding: 6px 9px; border: 1px solid #223754; border-radius: 999px; color: #9db0cb; font-size: 11px; }

.console-grid {
  grid-area: dashboard;
  display: grid;
  grid-template-columns: .92fr 1.17fr 1.32fr;
  grid-template-areas:
    "live live events"
    "status quick queue";
  gap: 14px;
  align-items: stretch;
}

.console-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(33, 65, 113, .82);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(9, 22, 48, .92), rgba(3, 9, 22, .98) 70%),
    var(--panel);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.32);
  animation: cardGlowOrbit 8s ease-in-out infinite;
}
.console-grid .console-card:nth-child(2) { animation-delay: -1.6s; }
.console-grid .console-card:nth-child(3) { animation-delay: -3.2s; }
.console-grid .console-card:nth-child(4) { animation-delay: -4.8s; }
.console-grid .console-card:nth-child(5) { animation-delay: -6.4s; }

@keyframes cardGlowOrbit {
  0%, 100% {
    box-shadow: inset 0 1px rgba(255,255,255,.035), -7px -5px 19px rgba(0,220,255,.17), 0 18px 48px rgba(0,0,0,.32);
    border-color: rgba(25,112,170,.88);
  }
  25% {
    box-shadow: inset 0 1px rgba(255,255,255,.035), 8px -5px 20px rgba(68,123,255,.2), 0 18px 48px rgba(0,0,0,.32);
    border-color: rgba(55,100,202,.9);
  }
  50% {
    box-shadow: inset 0 1px rgba(255,255,255,.035), 8px 7px 21px rgba(174,70,255,.19), 0 18px 48px rgba(0,0,0,.32);
    border-color: rgba(128,70,208,.88);
  }
  75% {
    box-shadow: inset 0 1px rgba(255,255,255,.035), -7px 7px 20px rgba(255,45,153,.16), 0 18px 48px rgba(0,0,0,.32);
    border-color: rgba(174,55,145,.84);
  }
}
.console-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(0,220,255,.035), transparent 35%, rgba(173,84,255,.025));
}
.console-card, .quick-control, .settings-launch, .text-action { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.console-card:hover { border-color: rgba(45, 85, 142, .9); }
.card-head, .panel-head { position: relative; z-index: 1; display: flex; height: 39px; min-height: 39px; justify-content: space-between; align-items: center; padding: 0 14px; border-bottom: 1px solid rgba(31,55,94,.7); }
.card-head h2, .panel-head h1, .panel-head h2 { margin: 0; color: #dbe5f6; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.text-action { padding: 4px; border: 0; color: var(--cyan); background: transparent; font-size: 12px; }

.live-stage { grid-area: live; height: 330px; }
.events-console { grid-area: events; height: 330px; }
.voice-status-console { grid-area: status; min-height: 205px; }
.quick-console { grid-area: quick; min-height: 205px; }
.queue-console { grid-area: queue; min-height: 205px; }

.speaking-badge, .speaking-chip { display: flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid rgba(41,239,162,.2); border-radius: 9px; color: var(--green); background: rgba(5,48,42,.6); font-size: 11px; font-weight: 800; }
.speaking-chip[data-state="standby"] { color: #9aabc1; border-color: #263a58; background: #091224; }
.speaking-chip i { width: 12px; height: 12px; background: repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px); filter: drop-shadow(0 0 4px currentColor); }
.mini-bars { display: inline-flex; align-items: center; gap: 2px; height: 13px; }
.mini-bars i { width: 2px; height: 5px; border-radius: 2px; background: currentColor; animation: meter .7s ease-in-out infinite alternate; }
.mini-bars i:nth-child(2) { height: 11px; animation-delay: -.2s; }
.mini-bars i:nth-child(3) { height: 8px; animation-delay: -.4s; }
.mini-bars i:nth-child(4) { height: 12px; animation-delay: -.1s; }
@keyframes meter { to { transform: scaleY(.35); opacity: .55; } }

.live-stage-body, .stage-content { position: relative; z-index: 1; display: grid; grid-template-columns: 215px 1fr; align-items: center; height: 225px; padding: 4px 28px 0; }
.voice-figure { position: relative; display: grid; place-items: center; width: 172px; height: 172px; margin: 0 auto; }
.voice-figure::before, .voice-figure::after { content: ""; position: absolute; border-radius: 50%; }
.voice-figure::before { inset: 5px; border: 4px solid transparent; background: linear-gradient(#061125,#061125) padding-box, conic-gradient(from 30deg,var(--cyan),var(--blue),var(--purple),var(--pink),var(--cyan)) border-box; box-shadow: 0 0 21px rgba(0,220,255,.6), 0 0 29px rgba(173,84,255,.32), inset 0 0 20px rgba(36,116,255,.22); }
.voice-figure::after { inset: 29px; border: 2px solid rgba(81,145,255,.75); box-shadow: 0 0 12px rgba(173,84,255,.5); }
.voice-figure svg { position: relative; z-index: 2; width: 104px; height: 104px; color: #2999ff; filter: drop-shadow(0 0 6px rgba(0,220,255,.7)); }
.voice-pedestal { position: absolute; bottom: -17px; width: 150px; height: 25px; border: 2px solid rgba(56,130,255,.62); border-radius: 50%; background: radial-gradient(ellipse,rgba(173,84,255,.6),rgba(0,220,255,.12) 50%,transparent 72%); box-shadow: 0 0 16px rgba(0,220,255,.4), 0 8px 22px #000; }
.voice-pedestal::after { content: ""; position: absolute; inset: 8px 18px -10px; border-bottom: 2px solid var(--purple); border-radius: 50%; }

.voice-orb { position: relative; display: grid; place-items: center; width: 172px; height: 172px; margin: 0 auto; }
.voice-orb::before { content: ""; position: absolute; inset: 5px; border: 4px solid transparent; border-radius: 50%; background: linear-gradient(#061125,#061125) padding-box, conic-gradient(from 30deg,var(--cyan),var(--blue),var(--purple),var(--pink),var(--cyan)) border-box; box-shadow: 0 0 21px rgba(0,220,255,.6), 0 0 29px rgba(173,84,255,.32), inset 0 0 20px rgba(36,116,255,.22); }
.voice-orb-core { position: relative; z-index: 2; display: grid; place-items: center; width: 118px; height: 118px; border: 2px solid rgba(81,145,255,.75); border-radius: 50%; background: radial-gradient(circle,rgba(11,34,77,.55),#050b18 72%); background-position: center; background-size: cover; box-shadow: 0 0 12px rgba(173,84,255,.5); }
.voice-orb-core svg { width: 92px; height: 92px; fill: none; stroke: #2999ff; stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(0,220,255,.7)); }
.voice-orb-core[style*="background-image"] svg { opacity: .15; }
.orb-base { position: absolute; z-index: 1; bottom: -17px; width: 150px; height: 25px; border: 2px solid rgba(56,130,255,.62); border-radius: 50%; background: radial-gradient(ellipse,rgba(173,84,255,.6),rgba(0,220,255,.12) 50%,transparent 72%); box-shadow: 0 0 16px rgba(0,220,255,.4), 0 8px 22px #000; }

.live-copy, .stage-copy { min-width: 0; padding-left: 12px; }
.stage-copy > strong { display: block; overflow: hidden; margin: 0 0 6px; background: linear-gradient(90deg,var(--cyan),#4b91ff 55%,#a677ff); -webkit-background-clip: text; background-clip: text; font-size: clamp(32px,4.1vw,52px); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px rgba(35,120,255,.22)); }
.stage-copy .hero-action { margin: 12px 0 13px; color: #d8e1ef; font-size: clamp(16px,1.55vw,22px); }
.stage-copy .hero-action b { margin-left: 12px; color: var(--pink); font-size: 1.18em; }
.stage-copy blockquote { max-width: 580px; margin: 0; color: var(--cyan); font-size: clamp(15px,1.65vw,23px); font-style: italic; line-height: 1.45; }
.live-person { overflow: hidden; margin: 0 0 6px; color: var(--blue); background: linear-gradient(90deg,var(--cyan),#4b91ff 55%,#a677ff); -webkit-background-clip: text; background-clip: text; font-size: clamp(32px,4.1vw,52px); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px rgba(35,120,255,.22)); }
.live-action { margin: 12px 0 13px; color: #d8e1ef; font-size: clamp(16px,1.55vw,22px); }
.live-count { margin-left: 12px; color: var(--pink); font-size: 1.18em; font-weight: 750; }
.live-quote { max-width: 580px; margin: 0; color: var(--cyan); font-size: clamp(15px,1.65vw,23px); font-style: italic; line-height: 1.45; }

.neon-wave { position: absolute; z-index: 1; right: 28px; bottom: 8px; left: 28px; display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-bottom: 1px solid rgba(61,103,214,.18); filter: drop-shadow(0 0 7px rgba(49,131,255,.64)); }
.neon-wave::before { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 25px; background: radial-gradient(ellipse,rgba(53,44,210,.22),transparent 65%); }
.neon-wave i { width: 3px; height: 8px; border-radius: 4px; background: linear-gradient(var(--cyan),#4993ff); animation: wave 1.1s ease-in-out infinite alternate; }
.neon-wave i:nth-child(4n+1) { height: 17px; background: linear-gradient(var(--purple),var(--pink)); animation-delay: -.7s; }
.neon-wave i:nth-child(6n+2) { height: 25px; background: linear-gradient(var(--cyan),var(--blue)); animation-delay: -.3s; }
.neon-wave i:nth-child(9n+3) { height: 31px; background: linear-gradient(var(--pink),var(--purple)); animation-delay: -.9s; }
@keyframes wave { to { transform: scaleY(.38); opacity: .65; } }

.events-console .card-head, .events-console .panel-head { padding-right: 14px; }
.events-console .panel-head button, .queue-console .panel-head button { padding: 4px; border: 0; color: var(--cyan); background: transparent; font-size: 12px; }
.viewer-line { position: absolute; z-index: 3; top: 13px; right: 72px; color: #8798b0; font-size: 10px; }
.viewer-line span { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--pink); }
.events-console .viewer-pill { margin-left: auto; margin-right: 10px; }
.events-console .feed { position: relative; z-index: 1; height: 284px; max-height: none; overflow: auto; padding: 0 15px; border: 0; background: transparent; scrollbar-width: thin; scrollbar-color: #405274 transparent; }
.events-console .feed-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 56px; margin: 0; padding: 8px 2px; border: 0; border-bottom: 1px solid rgba(31,52,87,.68); border-radius: 0; background: transparent; }
.events-console .feed-item:nth-child(n+6) { display: none; }
.events-console .feed.expanded .feed-item:nth-child(n+6) { display: grid; }
.events-console .feed-item img, .events-console .event-avatar { width: 35px; height: 35px; border: 1px solid #254264; border-radius: 50%; object-fit: cover; box-shadow: 0 0 11px rgba(0,220,255,.12); }
.events-console .feed-item > div { min-width: 0; }
.events-console .feed-item strong { color: var(--cyan); font-size: 12px; }
.events-console .feed-item p, .events-console .feed-item small { overflow: hidden; margin: 3px 0 0; color: #8190a9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.events-console .feed-item button { align-self: center; padding: 4px 6px; border: 1px solid #263650; border-radius: 5px; color: #8190a9; background: #09101e; font-size: 9px; }
.events-console .empty-state { display: flex; height: 235px; margin: 0 20px; flex-direction: column; align-items: center; justify-content: center; color: #65738d; text-align: center; }
.events-console .empty-state .wave { height: 28px; margin-bottom: 7px; }
.events-console .empty-state h3 { margin: 7px 0 3px; color: #a9b7cb; font-size: 12px; }
.events-console .empty-state p { margin: 0; color: #62718a; font-size: 10px; }

.voice-status-body, .status-body { position: relative; z-index: 1; display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 16px 7px; }
.mic-orb { display: grid; place-items: center; width: 84px; height: 84px; margin: auto; border: 3px solid transparent; border-radius: 50%; color: var(--cyan); background: linear-gradient(#071329,#071329) padding-box, conic-gradient(var(--cyan),var(--blue),var(--purple),var(--pink),var(--cyan)) border-box; box-shadow: 0 0 17px rgba(0,220,255,.43), inset 0 0 17px rgba(44,75,205,.34); }
.mic-orb svg { width: 47px; height: 47px; filter: drop-shadow(0 0 6px currentColor); }
.status-details, .status-body dl { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: 10px; }
.status-body dl > div { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 7px; align-items: baseline; }
.status-body dl dt { color: #71809a; }
.status-body dl dd { overflow: hidden; margin: 0; color: #dce7f5; text-overflow: ellipsis; white-space: nowrap; }
.status-body dl .status-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 2px; }
.status-body dl .status-pair > span { display: block; min-width: 0; }
.status-body dl .status-pair dt { margin-bottom: 2px; }
.status-body dl .status-pair dd { color: #bcd0e8; }
.status-details dt { color: #75819a; }
.status-details dd { overflow: hidden; margin: 0; color: #dce7f5; text-overflow: ellipsis; white-space: nowrap; }
.status-details .active-state { color: var(--green); font-weight: 800; }
.settings-launch { position: relative; z-index: 1; width: calc(100% - 32px); margin: 0 16px 12px; padding: 7px 12px; border: 1px solid #0d6da7; border-radius: 7px; color: var(--cyan); background: rgba(0,104,169,.14); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.settings-launch:hover { border-color: var(--cyan); background: rgba(0,153,204,.2); box-shadow: 0 0 16px rgba(0,220,255,.12); }

.quick-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 12px; }
.quick-control { position: relative; display: flex; min-width: 0; min-height: 69px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 7px; border: 1px solid #16427d; border-radius: 10px; color: #dbe8f5; background: linear-gradient(145deg,rgba(8,31,66,.95),rgba(5,14,30,.96)); box-shadow: inset 0 1px rgba(255,255,255,.03); font-size: 10px; }
.quick-control:hover { border-color: var(--cyan); transform: translateY(-1px); }
.quick-control:disabled { opacity: .42; cursor: default; transform: none; }
.quick-icon, .quick-control > i { color: var(--cyan); font-size: 23px; font-style: normal; line-height: 1; text-shadow: 0 0 10px currentColor; }
.quick-control.purple { border-color: #493071; background: linear-gradient(145deg,rgba(42,18,74,.82),rgba(8,12,28,.96)); }
.quick-control.purple .quick-icon, .quick-control.purple > i { color: var(--purple); }
.quick-control.red, .quick-control.pink { border-color: #70243e; background: linear-gradient(145deg,rgba(67,18,39,.72),rgba(12,12,27,.97)); }
.quick-control.red .quick-icon, .quick-control.pink > i { color: #ff557c; }
.quick-control.pink.muted {
  border-color: #38b991;
  color: #e7fff6;
  background: linear-gradient(145deg,rgba(8,104,78,.94),rgba(4,53,44,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 0 15px rgba(43,195,148,.24);
  animation: stoppedControlPulse 1.45s ease-in-out infinite alternate;
}
.quick-control.pink.muted > i { color: #d8fff0; text-shadow: 0 0 8px rgba(126,232,193,.72); }
.quick-control.pink.muted .control-label { font-weight: 800; }

.quick-control.cyan.paused {
  border-color: #32eaff;
  color: #f1fdff;
  background: linear-gradient(145deg,rgba(7,103,145,.96),rgba(4,42,77,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 18px rgba(0,220,255,.32);
  animation: pauseControlPulse 1.25s ease-in-out infinite alternate;
}
.quick-control.cyan.paused > i { color: #fff; text-shadow: 0 0 11px rgba(111,240,255,.92); }
.quick-control.cyan.paused .control-label { font-weight: 800; }

.speaking-chip[data-state="stopped"] { border-color: rgba(255,85,124,.46); color: #ff6d8d; background: rgba(89,9,37,.72); box-shadow: 0 0 13px rgba(255,45,99,.16); }
#voiceStatusState[data-state="stopped"] { color: #ff6d8d; font-weight: 800; text-shadow: 0 0 8px rgba(255,45,99,.34); }

@keyframes stoppedControlPulse {
  from { box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 8px rgba(43,195,148,.16), 0 0 0 0 rgba(43,195,148,.2); }
  to { box-shadow: inset 0 1px rgba(255,255,255,.11), 0 0 17px rgba(43,195,148,.34), 0 0 0 3px rgba(43,195,148,.05); }
}

@keyframes pauseControlPulse {
  from { box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 10px rgba(0,220,255,.2), 0 0 0 0 rgba(0,220,255,.34); }
  to { box-shadow: inset 0 1px rgba(255,255,255,.15), 0 0 24px rgba(0,220,255,.55), 0 0 0 4px rgba(0,220,255,.08); }
}
.quick-control.amber { border-color: #624321; background: linear-gradient(145deg,rgba(55,35,15,.66),rgba(10,14,25,.97)); }
.quick-control.amber .quick-icon, .quick-control.amber > i { color: var(--amber); }
.volume-control input { width: 78%; height: 4px; accent-color: var(--cyan); }
.volume-control output { position: absolute; top: 5px; right: 7px; color: #73839e; font-size: 8px; }

.queue-console.queue-panel { gap: 0; }
.queue-console .card-head, .queue-console .panel-head { border-bottom-color: rgba(36,76,127,.72); }
.queue-summary, .queue-status { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; color: #73829d; font-size: 9px; }
.queue-console .queue-status { border-color: #23436f; background: linear-gradient(135deg,rgba(6,27,57,.9),rgba(17,12,42,.84)); }
.queue-status > div { display: grid; }
.queue-summary strong, .queue-status strong { color: #b4c6dd; }
.queue-current { position: relative; z-index: 1; margin: 0 14px 7px; padding: 8px 12px; border: 1px solid #23436f; border-radius: 9px; background: linear-gradient(135deg,rgba(7,27,58,.88),rgba(18,12,43,.82)); box-shadow: inset 0 1px rgba(87,174,255,.04); }
.queue-console .queue-current.empty { border-color: #23436f; background: linear-gradient(135deg,rgba(7,27,58,.82),rgba(18,12,43,.76)); }
.queue-current small { color: #697a96; font-size: 8px; letter-spacing: .1em; }
.queue-current p { overflow: hidden; margin: 4px 0 0; color: #cbd8e8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-console .tts-queue-list { position: relative; z-index: 1; display: grid; gap: 0; max-height: 148px; overflow: auto; padding: 0 14px 10px; scrollbar-width: thin; scrollbar-color: #405274 transparent; }
.queue-console .tts-queue-item { display: grid; grid-template-columns: 26px 27px minmax(0,1fr) 24px; gap: 8px; align-items: center; min-height: 36px; padding: 4px 0; border: 0; border-bottom: 1px solid rgba(31,52,87,.58); border-radius: 0; background: transparent; }
.queue-console .tts-queue-item b { display: grid; place-items: center; width: 25px; height: 23px; border-radius: 6px; color: #91a0b6; background: #111c32; font-size: 10px; }
.queue-console .tts-queue-item > i { color: var(--cyan); font-size: 16px; font-style: normal; text-align: center; }
.queue-console .tts-queue-item div { min-width: 0; }
.queue-console .tts-queue-item strong { display: block; overflow: hidden; color: var(--cyan); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-console .tts-queue-item small { display: block; overflow: hidden; margin-top: 2px; color: #74829b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.queue-console .tts-queue-item button { width: 22px; height: 22px; padding: 0; border: 0; color: #687895; background: transparent; }
.queue-console .queue-empty { margin: 0 14px 10px; padding: 18px 16px; border: 1px dashed rgba(49,94,151,.7); border-radius: 9px; color: #7186a5; background: rgba(5,19,42,.42); font-size: 10px; text-align: center; }
.queue-console #queueTabCount { min-width: 19px; padding: 2px 6px; border-radius: 6px; background: #12203a; color: #aac0dc; font-size: 10px; text-align: center; }

.settings-drawer { grid-area: settings; margin-top: 14px; overflow: visible; }
.settings-drawer .card-head, .settings-drawer .drawer-head { position: sticky; z-index: 8; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 8px 18px; border-bottom: 1px solid #213654; border-radius: 15px 15px 0 0; background: rgba(5,12,28,.96); backdrop-filter: blur(18px); }
.drawer-head p { margin: 0 0 3px; color: var(--cyan); font-size: 8px; letter-spacing: .15em; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-head button { padding: 6px 10px; border: 1px solid #2a3a54; border-radius: 7px; color: #9eb0ca; background: #09111f; }
.settings-drawer .tts-tabs { position: relative; z-index: 1; display: flex; gap: 7px; margin: 0 0 14px; padding: 6px; border: 1px solid #213b61; border-radius: 10px; background: linear-gradient(135deg,rgba(6,24,51,.9),rgba(13,10,34,.88)); }
.settings-drawer .tts-tab, .settings-drawer .tts-tabs button { padding: 8px 13px; border: 1px solid #253956; border-radius: 8px; color: #8190aa; background: #07101f; font-size: 11px; }
.settings-drawer .tts-tab.active, .settings-drawer .tts-tabs button.active { border-color: rgba(0,220,255,.58); color: var(--cyan); background: rgba(0,117,166,.14); box-shadow: 0 0 15px rgba(0,220,255,.08); }
.settings-drawer .controls { position: relative; z-index: 1; width: auto; margin: 0; padding: 16px; border: 0; border-radius: 0 0 15px 15px; background: transparent; }
.settings-drawer .voice-selectors { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(260px,1.3fr); gap: 12px; }
.settings-drawer .voice-selectors label { display: grid; gap: 7px; color: #8795aa; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.settings-drawer .controls h2, .settings-drawer .controls h3 { color: #dce6f4; }
.settings-drawer .control-section { border-color: #1e3251; background: rgba(4,10,22,.5); }
.settings-drawer input, .settings-drawer select, .settings-drawer textarea { border-color: #283c5a; color: #e3edf8; background-color: #070e1b; }
.close-settings { padding: 6px 10px; border: 1px solid #2a3a54; border-radius: 7px; color: #9eb0ca; background: #09111f; }

.settings-drawer .toggles,
.settings-drawer .audience-permissions,
.settings-drawer .selected-user-manager,
.settings-drawer .anti-spam-settings,
.settings-drawer .voice-equalizer,
.settings-drawer .voice-directory,
.settings-drawer .voice-lock-settings,
.settings-drawer .assigned-voices {
  border-color: #213b61;
  background: linear-gradient(145deg,rgba(6,22,47,.84),rgba(5,10,25,.9));
  box-shadow: inset 0 1px rgba(76,153,255,.035);
}

.settings-drawer .toggles label,
.settings-drawer .permission-row,
.settings-drawer .permission-head,
.settings-drawer .assigned-user { border-color: rgba(35,62,99,.78); }

.settings-drawer .gift-picker-button,
.settings-drawer .gift-picker-panel,
.settings-drawer .assigned-user button,
.settings-drawer .test-box {
  border-color: #28456f;
  background: #07152d;
}

.settings-drawer .gift-picker-button:hover,
.settings-drawer .gift-picker-button[aria-expanded="true"] { border-color: #357db2; }

.settings-drawer .gift-result:hover,
.settings-drawer .gift-result.selected { background: rgba(19,70,116,.48); }

.settings-drawer .assigned-user select { border-color: #285a91; background-color: #06152d; }

.console-footer, .console-shell > footer { grid-area: footer; display: flex; justify-content: space-between; align-items: center; gap: 20px; height: auto; padding: 13px 4px 2px; border-top: 0; color: #53617a; font-size: 10px; }

@media (max-width: 1100px) {
  .console-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "live live" "events events" "status quick" "queue queue"; }
  .events-console { height: 285px; }
  .events-console .feed { height: 239px; }
}

@media (max-width: 760px) {
  .console-shell { display: block; padding: 8px; }
  .app-navigation { position: sticky; z-index: 20; top: 0; flex-direction: row; min-height: 0; margin-bottom: 9px; padding: 7px; overflow-x: auto; border-radius: 12px; scrollbar-width: none; }
  .app-navigation::-webkit-scrollbar { display: none; }
  .app-navigation-heading, .app-navigation-foot { display: none; }
  .app-navigation-item { flex: 0 0 auto; grid-template-columns: 22px auto; width: auto; min-height: 43px; padding: 6px 10px; }
  .app-navigation-item svg { width: 18px; }
  .app-navigation-item small, .app-navigation-item.placeholder b { display: none; }
  .console-header { grid-template-columns: minmax(0,1fr); height: auto; gap: 9px; padding: 10px; }
  .console-header > .brand { grid-column: 1; grid-row: 1; }
  .connect-inline, .connect-console { grid-column: 1; grid-row: 3; grid-template-columns: minmax(0,1fr) auto; }
  .connect-console > label:first-child { display: none; }
  .connect-console .auto-connect-control { grid-column: 1 / -1; justify-content: center; }
  .status-cluster, .header-status { grid-column: 1; grid-row: 2; justify-self: stretch; flex-wrap: wrap; }
  .viewer-pill { display: none; }
  .console-grid { grid-template-columns: 1fr; grid-template-areas: "live" "quick" "queue" "events" "status"; }
  .live-stage { height: auto; min-height: 390px; }
  .live-stage-body, .stage-content { grid-template-columns: 1fr; height: 300px; padding: 4px 18px 0; text-align: center; }
  .voice-figure { width: 126px; height: 126px; }
  .voice-figure svg { width: 78px; height: 78px; }
  .voice-pedestal { width: 112px; }
  .live-copy { padding: 13px 0 0; }
  .live-person { font-size: 30px; }
  .live-action { margin: 6px 0; font-size: 15px; }
  .live-quote { font-size: 14px; }
  .neon-wave { bottom: 10px; gap: 2px; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .voice-status-console, .quick-console, .queue-console { min-height: 225px; }
  .settings-drawer .tts-tabs { overflow-x: auto; }
  .settings-drawer .voice-selectors { grid-template-columns: 1fr; }
  .console-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .console-card, .quick-control.pink, .quick-control.cyan.paused { animation: none; }
}
