:root {
  --live-border: rgba(11, 58, 92, 0.16);
  --live-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 252, 0.98));
  --live-ink: #0f2d3d;
  --live-muted: #5d7484;
  --live-accent: #0b5c86;
  --live-accent-soft: rgba(11, 92, 134, 0.12);
  --live-success: #157347;
  --live-danger: #c0392b;
  --live-warning: #9a6700;
}

body[data-epso-theme="civic-premium"] .epso-live-page {
  display: flex;
  flex-direction: column;
  gap: clamp(4.4rem, 4.8vw, 7.2rem);
}

body[data-epso-theme="civic-premium"] .epso-live-landing-hero .epso-hero-inner {
  grid-template-columns: minmax(0, 0.48fr) minmax(36rem, 0.52fr);
  gap: clamp(2rem, 2.8vw, 4rem);
}

body[data-epso-theme="civic-premium"] .epso-live-landing-hero .epso-hero-copy {
  gap: 1.6rem;
  max-width: 61rem;
}

body[data-epso-theme="civic-premium"] .epso-live-landing-hero .epso-hero-title {
  max-width: 9.5ch;
}

body[data-epso-theme="civic-premium"] .epso-live-landing-hero .epso-hero-text {
  max-width: 34rem;
  font-size: clamp(1.85rem, 1.3vw, 2.2rem);
  color: rgba(248, 245, 239, 0.74);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-pain {
  margin: 0;
  color: rgba(255, 232, 158, 0.92);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-visual {
  display: grid;
  align-items: center;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.8rem, 2vw, 2.4rem);
  border: 0.1rem solid rgba(248, 245, 239, 0.12);
  border-radius: 3.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top right, rgba(209, 162, 65, 0.16), transparent 32%);
  backdrop-filter: blur(1.8rem);
  box-shadow: 0 3.2rem 7rem rgba(5, 12, 24, 0.26);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage-minimal {
  justify-items: start;
  align-content: center;
  min-height: 28rem;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage-head,
body[data-epso-theme="civic-premium"] .epso-live-hero-stage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage-status {
  justify-content: flex-start;
  color: rgba(248, 245, 239, 0.84);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #ff5f5f;
  box-shadow: 0 0 1.4rem rgba(255, 95, 95, 0.4);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-chip,
body[data-epso-theme="civic-premium"] .epso-live-final-chip {
  display: inline-flex;
  align-items: center;
  min-height: 3.8rem;
  padding: 0 1.3rem;
  border: 0.1rem solid rgba(248, 245, 239, 0.14);
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.08);
  color: rgba(248, 245, 239, 0.88);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.8fr);
  gap: 1.4rem;
  align-items: stretch;
}

body[data-epso-theme="civic-premium"] .epso-live-board-hero {
  min-height: 100%;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-side {
  display: grid;
  gap: 1.4rem;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-card,
body[data-epso-theme="civic-premium"] .epso-live-final-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 0.1rem solid rgba(248, 245, 239, 0.12);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.72), rgba(18, 31, 53, 0.88));
  box-shadow: 0 2rem 4rem rgba(9, 16, 29, 0.18);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-card > strong,
body[data-epso-theme="civic-premium"] .epso-live-flow-step > strong,
body[data-epso-theme="civic-premium"] .epso-live-benefit-card > strong,
body[data-epso-theme="civic-premium"] .epso-live-final-card > strong {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-card p,
body[data-epso-theme="civic-premium"] .epso-live-final-note {
  margin: 0;
  color: rgba(248, 245, 239, 0.7);
  font-size: 1.4rem;
  line-height: 1.6;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-card-label,
body[data-epso-theme="civic-premium"] .epso-live-final-kicker,
body[data-epso-theme="civic-premium"] .epso-live-benefit-kicker,
body[data-epso-theme="civic-premium"] .epso-live-flow-label {
  color: rgba(209, 162, 65, 0.94);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-progress {
  width: 100%;
  height: 0.95rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.08);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe89e 0%, #d1a241 45%, #8fb3d9 100%);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-feed {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-feed li {
  display: grid;
  gap: 0.22rem;
  padding-top: 0.9rem;
  border-top: 0.1rem solid rgba(248, 245, 239, 0.1);
}

body[data-epso-theme="civic-premium"] .epso-live-hero-feed li:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-feed span {
  color: rgba(248, 245, 239, 0.68);
  font-size: 1.28rem;
  line-height: 1.5;
}

body[data-epso-theme="civic-premium"] .epso-live-hero-feed strong {
  color: #f8f5ef;
  font-size: 1.38rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body[data-epso-theme="civic-premium"] .epso-live-benefits {
  display: grid;
  gap: 2.4rem;
}

body[data-epso-theme="civic-premium"] .epso-live-signal-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

body[data-epso-theme="civic-premium"] .epso-live-signal-card {
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.6rem 1.8rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.1);
  border-radius: 2.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(143, 179, 217, 0.16), transparent 38%);
  box-shadow: var(--hub-shadow-soft);
  text-align: center;
}

body[data-epso-theme="civic-premium"] .epso-live-signal-label {
  color: rgba(209, 162, 65, 0.94);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-signal-card strong {
  margin: 0;
  color: var(--hub-ink);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

body[data-epso-theme="civic-premium"] .epso-live-signal-card p {
  margin: 0;
  color: rgba(40, 60, 89, 0.7);
  font-size: clamp(1.8rem, 1.6vw, 2.2rem);
  line-height: 1.3;
  font-weight: 700;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-shell {
  display: grid;
  gap: 2rem;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-copy {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-board {
  display: grid;
  gap: 1.6rem;
  padding: clamp(2rem, 2.5vw, 2.8rem);
  border-radius: 3rem;
  background:
    radial-gradient(circle at top right, rgba(209, 162, 65, 0.14) 0%, rgba(209, 162, 65, 0) 26%),
    linear-gradient(135deg, #10203a 0%, #193153 42%, #244166 100%);
  box-shadow: var(--hub-shadow-strong);
}

body[data-epso-theme="civic-premium"] .epso-live-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-metric {
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem 1.4rem;
  border: 0.1rem solid rgba(248, 245, 239, 0.12);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.07);
}

body[data-epso-theme="civic-premium"] .epso-live-preview-metric span {
  color: rgba(248, 245, 239, 0.62);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-metric strong {
  color: #f8f5ef;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

body[data-epso-theme="civic-premium"] .epso-live-preview-note {
  margin: 0;
  color: #f8f5ef;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.2rem, 2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

body[data-epso-theme="civic-premium"] .epso-live-benefit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4rem;
}

body[data-epso-theme="civic-premium"] .epso-live-benefit-card {
  grid-column: span 6;
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
  padding: 2rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.1);
  border-radius: 2.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(209, 162, 65, 0.1), transparent 34%);
  box-shadow: var(--hub-shadow-soft);
}

body[data-epso-theme="civic-premium"] .epso-live-benefit-card p {
  margin: 0;
  color: rgba(40, 60, 89, 0.72);
  font-size: 1.54rem;
  line-height: 1.55;
}

body[data-epso-theme="civic-premium"] .epso-live-showcase-upgraded .epso-live-inner {
  gap: 3rem;
}

body[data-epso-theme="civic-premium"] .epso-live-ecosystem-visual {
  display: grid;
}

body[data-epso-theme="civic-premium"] .epso-live-flow-card {
  display: grid;
  gap: 1.2rem;
  padding: 2.2rem;
  border: 0.1rem solid rgba(248, 245, 239, 0.12);
  border-radius: 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(1.4rem);
}

body[data-epso-theme="civic-premium"] .epso-live-flow-step {
  display: grid;
  gap: 0.8rem;
  padding: 1.6rem;
  border: 0.1rem solid rgba(248, 245, 239, 0.1);
  border-radius: 2.2rem;
  background: rgba(8, 17, 39, 0.28);
}

body[data-epso-theme="civic-premium"] .epso-live-flow-step.is-live {
  background:
    radial-gradient(circle at top right, rgba(209, 162, 65, 0.18), transparent 42%),
    rgba(8, 17, 39, 0.42);
  border-color: rgba(209, 162, 65, 0.28);
}

body[data-epso-theme="civic-premium"] .epso-live-flow-step p {
  margin: 0;
  color: rgba(248, 245, 239, 0.72);
  font-size: 1.45rem;
  line-height: 1.58;
}

body[data-epso-theme="civic-premium"] .epso-live-flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(209, 162, 65, 0.84);
  font-size: 2rem;
  font-weight: 800;
}

body[data-epso-theme="civic-premium"] .epso-live-journey-grid {
  margin-top: 2.4rem;
}

body[data-epso-theme="civic-premium"] .epso-live-flow-section {
  display: grid;
  gap: 2.2rem;
}

body[data-epso-theme="civic-premium"] .epso-live-system-section {
  display: grid;
}

body[data-epso-theme="civic-premium"] .epso-live-system-shell {
  display: grid;
  gap: 1.8rem;
  padding: 2.4rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.1);
  border-radius: 2.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(209, 162, 65, 0.12), transparent 34%);
  box-shadow: var(--hub-shadow-soft);
}

body[data-epso-theme="civic-premium"] .epso-live-system-copy {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
}

body[data-epso-theme="civic-premium"] .epso-live-journey-card {
  min-height: 28rem;
}

body[data-epso-theme="civic-premium"] .epso-live-journey-card-featured {
  background:
    linear-gradient(180deg, rgba(28, 56, 115, 0.96), rgba(11, 24, 55, 0.96)),
    radial-gradient(circle at top, rgba(209, 162, 65, 0.24), transparent 55%);
}

body[data-epso-theme="civic-premium"] .epso-live-system-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(40, 60, 89, 0.64);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .epso-live-final-cta {
  margin-bottom: -7.6rem;
}

body[data-epso-theme="civic-premium"] .epso-live-final-card {
  max-width: 56rem;
  justify-self: end;
  align-self: stretch;
}

body[data-epso-theme="civic-premium"] .epso-live-final-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .epso-live-final-actions {
  display: grid;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-primary,
body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-secondary,
body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-ghost {
  width: 100%;
}

.hub-profile-card,
.hub-live-card {
  border: 1px solid var(--live-border);
  background: var(--live-surface);
}

.hub-profile-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hub-profile-head {
  display: grid;
  gap: 0.45rem;
}

.hub-profile-head h3,
.hub-live-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--live-ink);
}

.hub-profile-head p,
.hub-live-card p,
.hub-live-status {
  margin: 0;
  color: var(--live-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hub-profile-form {
  display: grid;
  gap: 0.75rem;
}

.hub-profile-form input {
  width: 100%;
  min-height: 2.9rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 58, 92, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--live-ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.hub-profile-form input:focus-visible {
  outline: 2px solid rgba(11, 92, 134, 0.18);
  border-color: rgba(11, 92, 134, 0.5);
}

.hub-profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-profile-metric {
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(11, 58, 92, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hub-profile-metric span {
  display: block;
  font-size: 0.78rem;
  color: var(--live-muted);
}

.hub-profile-metric strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--live-ink);
  font-size: 1.08rem;
}

.hub-ranking-preview {
  display: grid;
  gap: 0.7rem;
}

.hub-ranking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(11, 58, 92, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.hub-ranking-rank {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  color: var(--live-accent);
}

.hub-ranking-copy {
  display: grid;
  gap: 0.15rem;
}

.hub-ranking-copy strong {
  color: var(--live-ink);
  font-size: 0.96rem;
}

.hub-ranking-copy span {
  color: var(--live-muted);
  font-size: 0.8rem;
}

.hub-ranking-score {
  color: var(--live-ink);
  font-weight: 700;
}

.hub-info-card.hub-live-card {
  padding: 1.1rem 1rem;
  gap: 0.8rem;
}

.hub-live-card .hub-info-card-title {
  display: block;
  margin: 0;
  color: var(--live-ink);
  font-size: 1rem;
}

.hub-live-card .primary-action,
.hub-live-card .secondary-action {
  width: fit-content;
}

.hub-live-status.is-offline,
.live-server-status.is-offline {
  color: var(--live-danger);
}

.hub-live-status.is-online,
.live-server-status.is-online {
  color: var(--live-success);
}

.live-classroom-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(16, 130, 186, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(9, 87, 126, 0.14), transparent 28%),
    linear-gradient(180deg, #f4f8fb, #edf3f7);
  color: var(--live-ink);
}

.live-classroom-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1.2rem;
}

.live-classroom-topbar,
.live-panel,
.live-room-stage-card,
.live-question-card,
.live-scoreboard-card,
.live-participants-card,
.live-answer-card {
  border-radius: 28px;
  border: 1px solid var(--live-border);
  background: var(--live-surface);
  box-shadow: 0 18px 50px rgba(10, 42, 60, 0.08);
}

.live-classroom-topbar {
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.live-classroom-topbar h1,
.live-panel h2,
.live-room-stage-card h2,
.live-question-card h2,
.live-scoreboard-card h2,
.live-participants-card h2,
.live-answer-card h2,
.live-activity-card h3 {
  margin: 0;
  color: var(--live-ink);
}

.live-classroom-topbar p,
.live-panel p,
.live-question-meta,
.live-empty-state,
.live-answer-meta,
.live-room-meta,
.live-scoreboard-meta {
  margin: 0;
  color: var(--live-muted);
  line-height: 1.5;
}

.live-classroom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1.2rem;
}

.live-control-drawer {
  border-radius: 24px;
  border: 1px solid var(--live-border);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(10, 42, 60, 0.06);
  overflow: hidden;
}

.live-control-drawer > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  color: var(--live-ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.live-control-drawer > summary::-webkit-details-marker {
  display: none;
}

.live-control-drawer > summary::after {
  content: "+";
  float: right;
  color: var(--live-accent);
  font-size: 1.1rem;
}

.live-control-drawer[open] > summary {
  border-bottom: 1px solid rgba(11, 58, 92, 0.08);
}

.live-control-drawer[open] > summary::after {
  content: "-";
}

.live-control-drawer > .live-classroom-grid {
  padding: 1.2rem;
}

.live-sidebar,
.live-main {
  display: grid;
  gap: 1.2rem;
}

.live-panel {
  padding: 1.1rem 1.15rem;
  display: grid;
  gap: 0.95rem;
}

.live-panel form {
  display: grid;
  gap: 0.8rem;
}

.live-field {
  display: grid;
  gap: 0.4rem;
}

.live-field label,
.live-field legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--live-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-field input,
.live-field select {
  min-height: 2.85rem;
  border-radius: 15px;
  border: 1px solid rgba(11, 58, 92, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--live-ink);
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.live-field input:focus-visible,
.live-field select:focus-visible {
  outline: 2px solid rgba(11, 92, 134, 0.18);
  border-color: rgba(11, 92, 134, 0.48);
}

.live-source-grid {
  display: grid;
  gap: 0.55rem;
  max-height: 13rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.live-source-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 58, 92, 0.08);
}

.live-source-option span:last-child {
  color: var(--live-muted);
  font-size: 0.82rem;
}

.live-form-actions,
.live-room-actions,
.live-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.live-room-badge-row,
.live-question-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.live-badge,
.live-answer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: var(--live-accent-soft);
  color: var(--live-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.live-question-card,
.live-scoreboard-card,
.live-participants-card,
.live-answer-card {
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.live-room-stage-card {
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.live-room-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.live-room-stage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(11, 92, 134, 0.08);
  color: var(--live-accent);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-room-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.live-room-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  min-height: 12rem;
}

.live-stage-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-guest-request-panel {
  margin-top: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(11, 92, 134, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 161, 214, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.live-guest-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.live-guest-request-head h3 {
  margin: 0;
  color: var(--live-ink);
  font-size: 1rem;
}

.live-guest-request-list {
  display: grid;
  gap: 0.75rem;
}

.live-guest-request-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border-radius: 20px;
  padding: 0.85rem 0.9rem;
  background: rgba(248, 252, 255, 0.9);
  border: 1px solid rgba(11, 58, 92, 0.08);
}

.live-guest-request-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.live-guest-request-copy strong {
  color: var(--live-ink);
  font-size: 0.98rem;
}

.live-guest-request-copy span {
  color: var(--live-muted);
  font-size: 0.84rem;
}

.live-guest-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.live-stage-seat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border-radius: 22px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 58, 92, 0.1);
  background:
    radial-gradient(circle at top right, rgba(34, 161, 214, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.live-stage-seat.is-connected {
  border-color: rgba(11, 92, 134, 0.15);
}

.live-stage-seat.is-away {
  opacity: 0.72;
}

.live-stage-seat.is-self {
  border-color: rgba(11, 92, 134, 0.34);
  box-shadow: inset 0 0 0 1px rgba(11, 92, 134, 0.14);
}

.live-stage-seat.is-recent {
  animation: live-stage-flash 3.2s ease;
}

.live-stage-avatar {
  --live-avatar-bg: #0d6dcc;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--live-avatar-bg);
  color: #fff;
  box-shadow: 0 10px 18px rgba(13, 109, 204, 0.22);
}

.live-stage-avatar svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.live-stage-avatar.is-wave svg {
  width: 1.58rem;
}

.live-stage-avatar.is-icon-only {
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  box-shadow: none;
  color: var(--live-ink);
}

.live-stage-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.live-stage-copy strong {
  color: var(--live-ink);
  font-size: 0.95rem;
}

.live-stage-copy span {
  color: var(--live-muted);
  font-size: 0.82rem;
}

.live-stage-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(11, 92, 134, 0.08);
  color: var(--live-accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-stage-pill.is-host,
.live-stage-pill.is-lobby {
  background: rgba(11, 92, 134, 0.1);
  color: var(--live-accent);
}

.live-stage-pill.is-question {
  background: rgba(154, 103, 0, 0.12);
  color: var(--live-warning);
}

.live-stage-pill.is-ready {
  background: rgba(21, 115, 71, 0.12);
  color: var(--live-success);
}

.live-stage-pill.is-locked,
.live-stage-pill.is-revealed,
.live-stage-pill.is-finished {
  background: rgba(15, 45, 61, 0.1);
  color: var(--live-ink);
}

.live-stage-pill.is-offline {
  background: rgba(192, 57, 43, 0.12);
  color: var(--live-danger);
}

.live-activity-card {
  min-height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(11, 58, 92, 0.1);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.live-activity-head {
  display: grid;
  gap: 0.25rem;
}

.live-activity-feed {
  display: grid;
  gap: 0.65rem;
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.live-activity-item {
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(11, 58, 92, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.live-activity-item.is-join {
  border-color: rgba(21, 115, 71, 0.18);
  background: rgba(21, 115, 71, 0.06);
}

.live-activity-item.is-leave {
  border-color: rgba(192, 57, 43, 0.16);
  background: rgba(192, 57, 43, 0.05);
}

.live-activity-item.is-info {
  border-color: rgba(11, 92, 134, 0.16);
  background: rgba(11, 92, 134, 0.04);
}

.live-activity-copy {
  display: grid;
  gap: 0.24rem;
}

.live-activity-copy strong {
  color: var(--live-ink);
  font-size: 0.92rem;
}

.live-activity-copy span {
  color: var(--live-muted);
  font-size: 0.79rem;
}

.live-question-head {
  display: grid;
  gap: 0.65rem;
}

.live-question-passage {
  margin: 0;
  white-space: pre-wrap;
  color: var(--live-ink);
  line-height: 1.62;
}

#live-question-media {
  display: grid;
  gap: 0.7rem;
}

.live-question-image-frame {
  border-radius: 24px;
  padding: 0.85rem;
  border: 1px solid rgba(11, 58, 92, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.live-question-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.live-question-options {
  display: grid;
  gap: 0.75rem;
}

.live-question-option {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(11, 58, 92, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--live-ink);
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  cursor: pointer;
}

.live-question-option strong {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(11, 92, 134, 0.11);
  color: var(--live-accent);
}

.live-question-option.is-selected {
  border-color: rgba(11, 92, 134, 0.48);
  box-shadow: inset 0 0 0 1px rgba(11, 92, 134, 0.18);
}

.live-question-option.is-correct {
  border-color: rgba(21, 115, 71, 0.42);
  background: rgba(21, 115, 71, 0.08);
}

.live-question-option.is-incorrect {
  border-color: rgba(192, 57, 43, 0.42);
  background: rgba(192, 57, 43, 0.08);
}

.live-timer {
  display: grid;
  gap: 0.35rem;
}

.live-timer strong {
  font-size: 1.35rem;
  color: var(--live-ink);
}

.live-timer-track {
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 58, 92, 0.08);
}

.live-timer-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b5c86, #22a1d6);
}

.live-participant-list,
.live-scoreboard-list,
.live-answer-list {
  display: grid;
  gap: 0.6rem;
}

.live-participant-item,
.live-scoreboard-item,
.live-answer-item {
  display: grid;
  gap: 0.3rem;
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(11, 58, 92, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.live-scoreboard-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.live-scoreboard-rank {
  width: 2rem;
  text-align: center;
  color: var(--live-accent);
  font-weight: 800;
}

.live-scoreboard-copy {
  display: grid;
  gap: 0.18rem;
}

.live-scoreboard-copy strong,
.live-answer-item strong,
.live-participant-item strong {
  color: var(--live-ink);
}

.live-scoreboard-copy span,
.live-answer-item span,
.live-participant-item span {
  color: var(--live-muted);
  font-size: 0.85rem;
}

.live-scoreboard-points {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--live-ink);
}

.live-answer-item {
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

.live-answer-item.is-correct {
  border-color: rgba(21, 115, 71, 0.2);
}

.live-answer-item.is-incorrect {
  border-color: rgba(192, 57, 43, 0.2);
}

.live-answer-result {
  min-width: 6rem;
  text-align: right;
  font-weight: 700;
}

.live-answer-result.is-correct {
  color: var(--live-success);
}

.live-answer-result.is-incorrect {
  color: var(--live-danger);
}

.live-answer-points {
  min-width: 4.5rem;
  text-align: right;
  font-weight: 700;
  color: var(--live-ink);
}

.live-room-code {
  font-size: 2rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--live-accent);
}

.live-empty-state {
  padding: 1rem 0;
}

.live-toast {
  min-height: 1.2rem;
  color: var(--live-muted);
  font-size: 0.88rem;
}

.live-toast.is-error {
  color: var(--live-danger);
}

.live-toast.is-success {
  color: var(--live-success);
}

.live-hidden {
  display: none !important;
}

.live-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 28, 43, 0.42);
  backdrop-filter: blur(8px);
}

.live-entry-overlay.is-approval-pending {
  background: rgba(8, 28, 43, 0.92);
  backdrop-filter: blur(14px);
}

.live-entry-card {
  width: min(460px, 100%);
  max-height: min(92vh, 760px);
  border-radius: 28px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    radial-gradient(circle at top right, rgba(95, 208, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
  box-shadow: 0 32px 80px rgba(9, 31, 46, 0.24);
  padding: 1.8rem;
  overflow: hidden;
}

.live-entry-form {
  display: grid;
  gap: 1rem;
  min-height: 0;
}

.live-entry-form h2 {
  margin: 0;
  color: var(--live-ink);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.live-entry-waiting {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.live-entry-waiting strong {
  color: var(--live-ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.live-entry-spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 3px solid rgba(11, 92, 134, 0.14);
  border-top-color: rgba(11, 92, 134, 0.88);
  animation: live-entry-spin 780ms linear infinite;
}

@keyframes live-entry-spin {
  to {
    transform: rotate(360deg);
  }
}

.live-entry-field {
  display: grid;
  gap: 0.45rem;
}

.live-entry-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--live-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-entry-field input {
  min-height: 3.2rem;
  border-radius: 18px;
  border: 1px solid rgba(11, 92, 134, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--live-ink);
  padding: 0.9rem 1rem;
  font: inherit;
}

.live-entry-field input:focus-visible {
  outline: 2px solid rgba(11, 92, 134, 0.14);
  border-color: rgba(11, 92, 134, 0.45);
}

.live-entry-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  max-height: min(36vh, 19rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.2rem;
  align-content: start;
}

.live-entry-icon-button {
  display: grid;
  justify-items: center;
  padding: 0.62rem;
  border-radius: 22px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94));
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.live-entry-icon-button:hover,
.live-entry-icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11, 92, 134, 0.28);
  box-shadow: 0 16px 28px rgba(15, 45, 61, 0.1);
}

.live-entry-icon-button:focus-visible {
  outline: none;
}

.live-entry-icon-button.is-selected {
  border-color: rgba(11, 92, 134, 0.38);
  background:
    radial-gradient(circle at top, rgba(95, 208, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 255, 0.96));
  box-shadow: 0 20px 34px rgba(15, 45, 61, 0.12);
}

.live-entry-icon-button .live-stage-avatar {
  width: 2.55rem;
  height: 2.55rem;
}

.live-entry-icon-button .live-stage-avatar svg {
  width: 1.72rem;
  height: 1.72rem;
}

.live-entry-icon-button.is-selected .live-stage-avatar {
  color: var(--live-accent);
}

.live-entry-color-input {
  width: 100%;
  min-height: 3.2rem;
  border-radius: 18px;
  border: 1px solid rgba(11, 92, 134, 0.16);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  padding: 0.32rem;
}

.live-entry-status {
  min-height: 1rem;
  margin: 0;
  color: var(--live-muted);
  font-size: 0.82rem;
}

.live-entry-status.is-error {
  color: var(--live-danger);
}

.live-entry-status.is-success {
  color: var(--live-success);
}

.live-classroom-page.is-guest-approval-pending .live-classroom-shell {
  visibility: hidden;
}

.live-classroom-page {
  background:
    radial-gradient(circle at top left, rgba(44, 155, 219, 0.2), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(7, 49, 84, 0.18), transparent 20%),
    linear-gradient(180deg, #edf4fb 0%, #f7fbff 44%, #eef3f8 100%);
}

.live-classroom-shell {
  width: min(1380px, calc(100% - 2.8rem));
  padding: 2.4rem 0 4.4rem;
}

.live-classroom-page .primary-action,
.live-classroom-page .secondary-action {
  min-height: 3.2rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.live-classroom-page .primary-action {
  background: linear-gradient(135deg, #0b5c86, #1289c5);
  color: #fff;
  box-shadow: 0 16px 26px rgba(11, 92, 134, 0.2);
}

.live-classroom-page .primary-action:hover,
.live-classroom-page .primary-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(11, 92, 134, 0.26);
}

.live-classroom-page .secondary-action {
  background: rgba(255, 255, 255, 0.8);
  color: #0b5c86;
  border-color: rgba(11, 92, 134, 0.18);
  box-shadow: 0 10px 24px rgba(10, 42, 60, 0.08);
}

.live-classroom-page .secondary-action:hover,
.live-classroom-page .secondary-action:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 92, 134, 0.3);
}

.live-classroom-topbar {
  position: relative;
  overflow: hidden;
  padding: 1.85rem 2rem;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(95, 208, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0d2740, #123f67 54%, #156f9f);
  box-shadow: 0 28px 60px rgba(11, 42, 63, 0.18);
}

.live-classroom-topbar::before,
.live-classroom-topbar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.live-classroom-topbar::before {
  inset: auto auto -40px -30px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
}

.live-classroom-topbar::after {
  inset: -30px 20% auto auto;
  width: 220px;
  height: 220px;
  background: rgba(95, 208, 255, 0.1);
}

.live-classroom-topbar > * {
  position: relative;
  z-index: 1;
}

.live-classroom-topbar .hero-kicker {
  margin-bottom: 0.9rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d8eeff;
}

.live-classroom-topbar h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.live-classroom-topbar p {
  max-width: 54rem;
  color: rgba(234, 244, 255, 0.8);
}

.live-classroom-topbar .secondary-action {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.live-classroom-topbar .secondary-action:hover,
.live-classroom-topbar .secondary-action:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
}

.live-room-stage-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.8rem;
  border: 1px solid rgba(11, 58, 92, 0.08);
  background:
    radial-gradient(circle at top left, rgba(95, 208, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  box-shadow: 0 24px 60px rgba(15, 45, 61, 0.1);
}

.live-room-stage-card::before,
.live-room-stage-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.live-room-stage-card::before {
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  background: rgba(32, 162, 214, 0.1);
}

.live-room-stage-card::after {
  width: 180px;
  height: 180px;
  left: -30px;
  bottom: -90px;
  background: rgba(13, 39, 64, 0.06);
}

.live-room-stage-card > * {
  position: relative;
  z-index: 1;
}

.live-room-stage-card h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.live-room-stage-card .live-room-meta {
  max-width: 48rem;
  color: #4a6778;
}

.live-room-stage-count {
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(10, 42, 60, 0.08);
}

.live-room-stage {
  padding: 1rem;
  border-radius: 30px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    radial-gradient(circle at top right, rgba(95, 208, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-height: 15rem;
}

.live-stage-seat {
  border-radius: 24px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.92));
  box-shadow: 0 16px 26px rgba(15, 45, 61, 0.08);
}

.live-stage-seat:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(15, 45, 61, 0.12);
}

.live-stage-avatar {
  box-shadow: 0 14px 24px var(--live-avatar-shadow);
}

.live-stage-copy strong {
  font-size: 0.98rem;
}

.live-stage-copy span {
  color: #5c7687;
}

.live-stage-pill {
  background: rgba(11, 92, 134, 0.08);
}

.live-activity-card {
  padding: 1.1rem;
  border-radius: 28px;
  border: 1px solid rgba(11, 92, 134, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 255, 0.94));
  box-shadow: 0 24px 40px rgba(15, 45, 61, 0.08);
}

.live-activity-head h3 {
  font-size: 1.05rem;
}

.live-activity-item {
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(15, 45, 61, 0.06);
}

.live-control-drawer {
  border: 1px solid rgba(11, 92, 134, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 40px rgba(15, 45, 61, 0.06);
}

.live-control-drawer > summary {
  padding: 1.05rem 1.3rem;
  color: #123f67;
}

.live-control-drawer > summary::after {
  font-weight: 800;
}

@keyframes live-stage-flash {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(34, 161, 214, 0);
  }

  20% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(34, 161, 214, 0.14);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(34, 161, 214, 0);
  }
}

@media (max-width: 1180px) {
  .live-room-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .live-classroom-grid {
    grid-template-columns: 1fr;
  }

  .hub-profile-metrics {
    grid-template-columns: 1fr;
  }

  .live-room-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-stage-seat {
    grid-template-columns: auto 1fr;
  }

  .live-stage-pill {
    justify-self: start;
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .live-entry-card {
    max-height: 94vh;
    padding: 1.2rem;
  }

  .live-entry-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(40vh, 15.5rem);
    gap: 0.62rem;
  }
}

.live-stage-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  align-items: center;
}

.live-stage-seat.is-leader {
  border-color: rgba(242, 157, 32, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(242, 157, 32, 0.12),
    0 18px 32px rgba(242, 157, 32, 0.12);
}

.live-session-shell {
  display: grid;
  gap: 1rem;
}

.live-classroom-page.is-live-exam-mode .live-classroom-topbar,
.live-classroom-page.is-live-exam-mode .live-room-stage-card,
.live-classroom-page.is-live-exam-mode .live-vote-card {
  display: none;
}

.live-classroom-page.is-live-exam-mode .live-classroom-shell {
  width: min(1080px, calc(100vw - 2rem));
  padding-top: 1.4rem;
}

.live-classroom-page.is-live-exam-mode .live-session-shell {
  gap: 1.2rem;
}

.live-classroom-page.is-live-exam-mode .live-session-head {
  gap: 0.9rem;
}

.live-classroom-page.is-live-exam-mode .live-question-card,
.live-classroom-page.is-live-exam-mode .live-answer-card {
  padding: 1.3rem 1.35rem;
  border-radius: 30px;
}

.live-session-head {
  display: grid;
  gap: 0.72rem;
}

.live-room-overview {
  margin: 0;
  color: #123f67;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-question-heading {
  margin: 0;
  color: var(--live-ink);
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.28;
}

.live-answer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.live-vote-card {
  padding: 1.15rem 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    radial-gradient(circle at top right, rgba(95, 208, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94));
  box-shadow: 0 24px 40px rgba(15, 45, 61, 0.08);
  display: grid;
  gap: 1rem;
}

.live-vote-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.live-vote-head h2 {
  margin: 0;
  color: var(--live-ink);
}

.live-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.live-vote-option {
  display: grid;
  gap: 0.72rem;
  padding: 0.95rem;
  text-align: left;
  border-radius: 24px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  color: inherit;
  box-shadow: 0 14px 28px rgba(15, 45, 61, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button.live-vote-option {
  cursor: pointer;
}

.live-vote-option:hover,
.live-vote-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(11, 92, 134, 0.28);
  box-shadow: 0 18px 32px rgba(15, 45, 61, 0.12);
}

.live-vote-option.is-selected {
  border-color: rgba(11, 92, 134, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(11, 92, 134, 0.14),
    0 18px 32px rgba(15, 45, 61, 0.12);
}

.live-vote-option.is-leader {
  border-color: rgba(242, 157, 32, 0.3);
  background:
    radial-gradient(circle at top, rgba(242, 199, 86, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 225, 0.94));
}

.live-vote-option .live-stage-avatar {
  width: 3.3rem;
  height: 3.3rem;
}

.live-vote-option-copy {
  display: grid;
  gap: 0.22rem;
}

.live-vote-option-copy strong {
  color: var(--live-ink);
  font-size: 1rem;
}

.live-vote-option-copy span {
  color: #4a6778;
  font-size: 0.84rem;
}

.live-vote-option-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.live-vote-option-voters span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: rgba(11, 92, 134, 0.08);
  color: #4a6778;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-vote-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(5, 18, 29, 0.54);
  backdrop-filter: blur(10px);
}

.live-vote-result-card {
  width: min(520px, 100%);
  padding: 2rem 1.9rem 1.6rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 199, 94, 0.28);
  background:
    radial-gradient(circle at top, rgba(255, 215, 120, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(18, 47, 73, 0.98), rgba(10, 31, 48, 0.98));
  color: #fff;
  box-shadow: 0 36px 90px rgba(4, 15, 26, 0.42);
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  text-align: center;
}

.live-vote-result-avatar .live-stage-avatar {
  width: 5.4rem;
  height: 5.4rem;
  box-shadow: 0 18px 36px rgba(95, 208, 255, 0.2);
}

.live-vote-result-avatar .live-stage-avatar svg {
  width: 2.2rem;
  height: 2.2rem;
}

.live-vote-result-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(221, 241, 255, 0.82);
}

.live-vote-result-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.04em;
}

.live-vote-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.live-response-stat {
  display: grid;
  gap: 0.72rem;
  padding: 0.92rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(11, 92, 134, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.94));
}

.live-response-stat.is-correct {
  border-color: rgba(21, 115, 71, 0.32);
  background:
    radial-gradient(circle at top right, rgba(21, 115, 71, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(249, 255, 251, 0.98), rgba(236, 249, 241, 0.95));
}

.live-response-stat-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.live-response-stat-head strong {
  color: var(--live-ink);
  font-size: 1rem;
}

.live-response-stat-head span {
  color: #4a6778;
  font-size: 0.84rem;
}

.live-response-stat-track {
  width: 100%;
  height: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 92, 134, 0.08);
}

.live-response-stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d6dcc, #42c4ff);
}

.live-response-stat.is-correct .live-response-stat-fill {
  background: linear-gradient(90deg, #0d8a59, #4bc57f);
}

.live-response-stat-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.live-response-stat-voters span {
  display: inline-flex;
  align-items: center;
  min-height: 1.84rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: rgba(11, 92, 134, 0.08);
  color: #4a6778;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .live-stage-head-actions,
  .live-vote-head,
  .live-answer-head {
    justify-content: flex-start;
  }
}

.live-room-stage-card {
  border: 2px solid #121212;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: 0 16px 34px rgba(18, 18, 18, 0.09);
}

.live-room-stage-card::before,
.live-room-stage-card::after {
  display: none;
}

.live-room-stage-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  align-items: stretch;
}

.live-stage-side {
  min-height: 100%;
  display: grid;
  gap: 1rem;
}

.live-room-stage,
.live-activity-card,
.live-chat-card {
  border: 2px solid #121212;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.08);
}

.live-room-stage {
  min-height: 16rem;
}

.live-stage-seat {
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(18, 18, 18, 0.05);
}

.live-stage-seat:hover {
  transform: translateY(-1px);
}

.live-activity-card {
  padding: 1rem;
}

.live-activity-feed {
  max-height: 16.8rem;
}

.live-chat-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.live-chat-head {
  display: grid;
  gap: 0.2rem;
}

.live-chat-head h3 {
  margin: 0;
  color: var(--live-ink);
  font-size: 1.05rem;
}

.live-chat-feed {
  display: grid;
  gap: 0.55rem;
  min-height: 12.5rem;
  max-height: 18.2rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.live-chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  border-radius: 14px;
  border: 1px solid rgba(18, 18, 18, 0.15);
  background: #ffffff;
  padding: 0.64rem 0.7rem;
}

.live-chat-message.is-self {
  border-color: rgba(0, 109, 204, 0.42);
  background: #e9f4ff;
}

.live-chat-avatar-wrap .live-stage-avatar {
  width: 2rem;
  height: 2rem;
  box-shadow: none;
}

.live-chat-avatar-wrap .live-stage-avatar svg {
  width: 1rem;
  height: 1rem;
}

.live-chat-message-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.live-chat-message-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem;
}

.live-chat-message-head strong {
  color: var(--live-ink);
  font-size: 0.83rem;
}

.live-chat-message-head span {
  color: var(--live-muted);
  font-size: 0.73rem;
}

.live-chat-message-copy p {
  margin: 0;
  color: var(--live-ink);
  font-size: 0.88rem;
  line-height: 1.36;
  word-break: break-word;
}

.live-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.live-chat-form input {
  min-height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 18, 18, 0.25);
  background: #ffffff;
  color: var(--live-ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.live-chat-form input:focus-visible {
  outline: 2px solid rgba(0, 109, 204, 0.2);
  border-color: #006dcc;
}

.live-chat-form .primary-action {
  min-height: 3rem;
  padding: 0.7rem 1.05rem;
}

.live-chat-form input:disabled,
.live-chat-form button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.live-activity-bubbles {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 90;
  width: min(24rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.55rem;
  pointer-events: none;
}

.live-activity-bubble {
  display: grid;
  gap: 0.12rem;
  padding: 0.72rem 0.86rem 0.78rem;
  border-radius: 14px;
  border: 2px solid #121212;
  border-left-width: 0.44rem;
  background: #ffffff;
  box-shadow: 0 16px 24px rgba(18, 18, 18, 0.14);
  transform: translateY(-10px) scale(0.985);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.live-activity-bubble strong {
  color: var(--live-ink);
  font-size: 0.88rem;
  line-height: 1.28;
}

.live-activity-bubble span {
  color: var(--live-muted);
  font-size: 0.73rem;
}

.live-activity-bubble.is-join {
  border-left-color: #157347;
}

.live-activity-bubble.is-leave {
  border-left-color: #c0392b;
}

.live-activity-bubble.is-info {
  border-left-color: #006dcc;
}

.live-activity-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.live-activity-bubble.is-leaving {
  opacity: 0;
  transform: translateX(12px) scale(0.985);
}

@media (max-width: 1180px) {
  .live-room-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .live-chat-feed {
    max-height: 15rem;
  }

  .live-chat-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .live-activity-bubbles {
    top: 0.75rem;
    right: 0.75rem;
    width: min(19rem, calc(100vw - 1.5rem));
  }
}

/* Modern Classroom Refresh */
.live-classroom-page {
  --room-surface: #ffffff;
  --room-surface-soft: #f2f7ff;
  --room-surface-strong: #0e2843;
  --room-ink-strong: #0f2238;
  --room-ink-muted: #546b80;
  --room-border-soft: rgba(15, 46, 74, 0.16);
  --room-border-strong: rgba(10, 30, 51, 0.72);
  --room-accent: #0c74b7;
  --room-accent-strong: #0a5d94;
  --room-shadow: 0 24px 44px rgba(8, 31, 54, 0.12);
  position: relative;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--room-ink-strong);
  background:
    radial-gradient(circle at 8% 6%, rgba(22, 118, 182, 0.18), transparent 28%),
    radial-gradient(circle at 88% -4%, rgba(8, 52, 88, 0.2), transparent 24%),
    linear-gradient(180deg, #edf5ff 0%, #f6f9ff 38%, #eef4fc 100%);
}

.live-classroom-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(12, 116, 183, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(12, 116, 183, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
  z-index: -1;
}

.live-classroom-shell {
  width: min(1560px, calc(100% - 2.5rem));
  padding: 1.45rem 0 3rem;
  gap: 1.25rem;
}

.live-classroom-topbar {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(167, 219, 255, 0.26);
  background:
    radial-gradient(circle at 92% -10%, rgba(103, 205, 255, 0.34), transparent 36%),
    linear-gradient(130deg, #0f2842 0%, #154872 55%, #1a7eb3 100%);
  box-shadow: 0 28px 52px rgba(10, 35, 58, 0.22);
}

.live-classroom-topbar::before {
  content: "";
  position: absolute;
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
  right: -3.2rem;
  top: -5.8rem;
  background: rgba(165, 225, 255, 0.24);
  pointer-events: none;
}

.live-topbar-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 0.38rem;
}

.live-topbar-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 246, 255, 0.26);
  background: rgba(226, 246, 255, 0.14);
  color: rgba(236, 247, 255, 0.94);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.live-classroom-topbar h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.live-topbar-subtitle {
  margin: 0;
  max-width: 58rem;
  color: rgba(225, 239, 251, 0.9);
  font-size: 0.95rem;
  line-height: 1.48;
}

.live-room-stage-card,
.live-vote-card,
.live-session-shell .live-question-card,
.live-session-shell .live-answer-card {
  border: 1px solid var(--room-border-soft);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.94));
  box-shadow: var(--room-shadow);
}

.live-room-stage-card {
  padding: 1.3rem;
}

.live-room-stage-card h2,
.live-vote-card h2,
.live-question-card h2,
.live-answer-card h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: var(--room-ink-strong);
}

.live-room-stage-head {
  margin-bottom: 0.35rem;
}

.live-room-stage-meta {
  color: var(--room-ink-muted);
}

.live-room-stage-count {
  min-height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 116, 183, 0.22);
  background: rgba(12, 116, 183, 0.08);
  color: var(--room-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-room-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  align-items: start;
  gap: 1rem;
}

.live-stage-main {
  min-width: 0;
  display: grid;
  gap: 0.95rem;
}

.live-room-stage {
  padding: 0.9rem;
  min-height: 17rem;
  border-radius: 24px;
  border: 1px solid rgba(12, 116, 183, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 211, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 0.72rem;
}

.live-stage-seat {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(14, 53, 86, 0.15);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 31, 54, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.live-stage-seat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(111, 211, 255, 0.22);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.live-stage-seat:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 26px rgba(8, 31, 54, 0.12);
}

.live-stage-seat:hover::before,
.live-stage-seat.is-self::before {
  opacity: 1;
}

.live-stage-seat.is-self {
  border-color: rgba(12, 116, 183, 0.34);
}

.live-stage-seat.is-leader {
  border-color: rgba(243, 160, 38, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(243, 160, 38, 0.2),
    0 13px 24px rgba(243, 160, 38, 0.14);
}

.live-stage-avatar {
  box-shadow: 0 10px 18px rgba(12, 116, 183, 0.28);
}

.live-stage-copy strong {
  font-size: 0.92rem;
  color: var(--room-ink-strong);
}

.live-stage-copy span {
  color: var(--room-ink-muted);
}

.live-stage-pill {
  border: 1px solid rgba(12, 116, 183, 0.15);
  background: rgba(12, 116, 183, 0.1);
  color: var(--room-accent-strong);
  font-size: 0.73rem;
}

.live-stage-actions {
  margin-top: 0;
}

.live-stage-actions .primary-action,
.live-stage-actions .secondary-action,
.live-vote-result-actions .primary-action,
.live-vote-result-actions .secondary-action,
.live-chat-form .primary-action,
.live-guest-request-actions .primary-action,
.live-guest-request-actions .secondary-action {
  min-height: 2.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  padding: 0.72rem 1.02rem;
}

.live-classroom-page .primary-action {
  background: linear-gradient(135deg, #0a5f97 0%, #1184c4 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(12, 116, 183, 0.24);
}

.live-classroom-page .primary-action:hover,
.live-classroom-page .primary-action:focus-visible {
  background: linear-gradient(135deg, #0a5a8f 0%, #107cb8 100%);
}

.live-classroom-page .secondary-action {
  border: 1px solid rgba(14, 53, 86, 0.2);
  background: #ffffff;
  color: #123454;
  box-shadow: 0 10px 18px rgba(8, 31, 54, 0.08);
}

.live-guest-request-panel,
.live-activity-panel {
  border-radius: 24px;
  border: 1px solid rgba(12, 116, 183, 0.18);
  background:
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  box-shadow: 0 16px 28px rgba(8, 31, 54, 0.08);
}

.live-guest-request-panel {
  margin-top: 0;
}

.live-activity-panel {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.live-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.live-activity-head h3 {
  font-size: 0.96rem;
  margin: 0;
  color: var(--room-ink-strong);
}

.live-activity-feed {
  max-height: 12.5rem;
  min-height: 6rem;
  display: grid;
  gap: 0.52rem;
}

.live-activity-item {
  border-radius: 14px;
  border: 1px solid rgba(14, 53, 86, 0.13);
  background: #ffffff;
  padding: 0.68rem 0.74rem;
  box-shadow: 0 8px 16px rgba(8, 31, 54, 0.05);
}

.live-activity-item.is-join {
  border-color: rgba(21, 115, 71, 0.28);
  background: rgba(21, 115, 71, 0.07);
}

.live-activity-item.is-leave {
  border-color: rgba(192, 57, 43, 0.27);
  background: rgba(192, 57, 43, 0.06);
}

.live-activity-copy strong {
  font-size: 0.83rem;
}

.live-activity-copy span {
  font-size: 0.73rem;
}

.live-chat-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  min-height: 0;
  z-index: 20;
}

.live-chat-card {
  border-radius: 24px;
  border: 1px solid rgba(14, 53, 86, 0.16);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 20px 34px rgba(8, 31, 54, 0.11);
  min-height: min(34rem, calc(100vh - 2.8rem));
  max-height: calc(100vh - 2.8rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 1rem;
}

.live-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.live-chat-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.02rem;
}

.live-chat-close {
  display: none;
  min-height: 2.3rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 53, 86, 0.16);
  background: #ffffff;
  color: #163a5c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
}

.live-chat-feed {
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.54rem;
  padding-right: 0.15rem;
}

.live-chat-message {
  border-radius: 14px;
  border: 1px solid rgba(14, 53, 86, 0.13);
  background: #ffffff;
  padding: 0.56rem 0.62rem;
  transition: border-color 140ms ease, background 140ms ease;
}

.live-chat-message.is-self {
  border-color: rgba(12, 116, 183, 0.32);
  background: rgba(12, 116, 183, 0.07);
}

.live-chat-avatar-wrap .live-stage-avatar {
  width: 1.9rem;
  height: 1.9rem;
  box-shadow: none;
}

.live-chat-avatar-wrap .live-stage-avatar svg {
  width: 0.98rem;
  height: 0.98rem;
}

.live-chat-message-head strong {
  font-size: 0.8rem;
}

.live-chat-message-head span {
  font-size: 0.7rem;
}

.live-chat-message-copy p {
  font-size: 0.84rem;
}

.live-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.live-chat-form input {
  min-height: 2.9rem;
  border-radius: 11px;
  border: 1px solid rgba(14, 53, 86, 0.2);
  background: #ffffff;
  color: var(--room-ink-strong);
  padding: 0.62rem 0.72rem;
  font-size: 0.86rem;
}

.live-chat-form input:focus-visible {
  outline: 2px solid rgba(12, 116, 183, 0.2);
  border-color: rgba(12, 116, 183, 0.6);
}

.live-chat-toggle {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 0.44rem;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 1px solid rgba(225, 241, 255, 0.35);
  background: rgba(225, 241, 255, 0.16);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.56rem 0.82rem;
  cursor: pointer;
}

.live-chat-toggle:hover,
.live-chat-toggle:focus-visible {
  background: rgba(225, 241, 255, 0.26);
}

.live-chat-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ff5a57;
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}

.live-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 28, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 110;
}

.live-activity-bubbles {
  top: 1rem;
  right: 1rem;
  z-index: 130;
  width: min(24rem, calc(100vw - 1.5rem));
}

.live-activity-bubble {
  border: 1px solid rgba(152, 219, 255, 0.32);
  border-left: 4px solid #26b0ff;
  border-radius: 12px;
  background: rgba(12, 39, 63, 0.96);
  box-shadow: 0 18px 36px rgba(2, 12, 22, 0.42);
  transform: translateY(-8px) translateX(8px);
  opacity: 0;
  backdrop-filter: blur(8px);
}

.live-activity-bubble strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.live-activity-bubble span {
  color: rgba(220, 236, 248, 0.84);
  font-size: 0.7rem;
}

.live-activity-bubble.is-join {
  border-left-color: #39bb6b;
}

.live-activity-bubble.is-leave {
  border-left-color: #ff6058;
}

.live-activity-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.live-activity-bubble.is-leaving {
  opacity: 0;
  transform: translateY(-8px) translateX(16px);
}

.live-vote-card {
  padding: 1rem 1.05rem;
}

.live-vote-grid {
  gap: 0.68rem;
}

.live-vote-option {
  border-radius: 18px;
  border: 1px solid rgba(14, 53, 86, 0.14);
  box-shadow: 0 12px 24px rgba(8, 31, 54, 0.08);
}

.live-vote-option-copy strong {
  font-size: 0.9rem;
}

.live-session-shell {
  gap: 0.9rem;
}

.live-session-head {
  border-radius: 20px;
  border: 1px solid rgba(14, 53, 86, 0.15);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 22px rgba(8, 31, 54, 0.08);
  padding: 0.95rem 1rem;
}

.live-room-overview {
  color: #123454;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.live-answer-card,
.live-question-card {
  padding: 1rem 1.05rem;
}

.live-response-stat {
  border-radius: 16px;
}

@media (max-width: 1320px) {
  .live-room-stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 338px);
  }

  .live-room-stage {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 1080px) {
  .live-classroom-shell {
    width: min(1500px, calc(100% - 1.8rem));
    padding-top: 1rem;
  }

  .live-room-stage-grid {
    grid-template-columns: 1fr;
  }

  .live-chat-toggle {
    display: inline-flex;
  }

  .live-chat-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    max-width: 100%;
    padding-left: 0.5rem;
    transform: translateX(103%);
    transition: transform 260ms ease;
    z-index: 125;
    pointer-events: none;
  }

  .live-classroom-page.is-chat-open .live-chat-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  .live-classroom-page.is-chat-open .live-chat-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .live-chat-card {
    min-height: 100%;
    max-height: 100%;
    border-radius: 20px 0 0 20px;
    border-right: 0;
  }

  .live-chat-close {
    display: inline-flex;
  }

  .live-activity-feed {
    max-height: 14.5rem;
  }
}

@media (max-width: 760px) {
  .live-classroom-topbar {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .live-topbar-subtitle {
    font-size: 0.82rem;
  }

  .live-room-stage-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .live-room-stage-head h2 {
    font-size: 1.55rem;
  }

  .live-room-stage {
    padding: 0.72rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
  }

  .live-stage-seat {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 14px;
    padding: 0.72rem;
  }

  .live-stage-pill {
    grid-column: 2;
    justify-self: start;
  }

  .live-chat-sidebar {
    width: min(420px, 96vw);
  }

  .live-chat-form {
    grid-template-columns: 1fr;
  }

  .live-activity-bubbles {
    top: 0.7rem;
    right: 0.7rem;
    width: min(18.5rem, calc(100vw - 1.3rem));
  }
}

.live-classroom-page.is-live-exam-mode .live-chat-toggle,
.live-classroom-page.is-live-exam-mode .live-chat-backdrop,
.live-classroom-page.is-live-exam-mode .live-chat-sidebar {
  display: none;
}

.data-visual-frame {
  display: grid;
  gap: 0.9rem;
}

.data-visual-table-card,
.data-visual-chart-card {
  border-radius: 16px;
  border: 1px solid rgba(14, 62, 97, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
}

.data-visual-title {
  margin: 0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
  text-align: center;
  color: #4f4f4f;
}

.data-visual-subtitle {
  margin: 0.35rem 0 0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
  color: #666666;
}

.data-visual-table-wrap {
  margin-top: 0.65rem;
  overflow-x: auto;
}

.data-visual-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.data-visual-table th,
.data-visual-table td {
  border: 1px solid #9f9f9f;
  padding: 0.34rem 0.45rem;
}

.data-visual-table thead th {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #565656;
  background: #f2f2f2;
  text-align: center;
}

.data-visual-table thead th:first-child {
  text-align: left;
}

.data-visual-table tbody th {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #565656;
  background: #f7f7f7;
  text-align: left;
  white-space: nowrap;
}

.data-visual-table tbody td {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.18rem;
  color: #555555;
  text-align: center;
}

.data-visual-chart-title {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
  text-align: center;
  color: #4f4f4f;
}

.data-visual-chart-shell {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
}

.data-visual-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1.5rem;
}

.data-visual-chart-yaxis span {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  color: #666666;
}

.data-visual-chart-plot {
  position: relative;
  min-height: 13.2rem;
  border-left: 2px solid #8a8a8a;
  border-bottom: 2px solid #8a8a8a;
  padding: 0.2rem 0.5rem 1.5rem;
}

.data-visual-chart-grid {
  position: absolute;
  inset: 0 0 1.5rem 0;
}

.data-visual-chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #b8b8b8;
}

.data-visual-chart-bars {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
}

.data-visual-chart-bar-group {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 0.25rem;
  min-height: 100%;
}

.data-visual-chart-bar-value {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  color: #555555;
  font-weight: 700;
}

.data-visual-chart-bar-track {
  width: min(100%, 40px);
  height: 8.5rem;
  display: flex;
  align-items: flex-end;
}

.data-visual-chart-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #6f6f6f 0%, #8a8a8a 100%);
}

.data-visual-chart-bar-label {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #565656;
  text-transform: uppercase;
  text-align: center;
}

.data-visual-chart-unit {
  margin: 0.4rem 0 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  color: #676767;
  text-align: right;
}

.data-visual-table-note,
.data-visual-chart-note {
  margin: 0.5rem 0 0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
  color: #666666;
  line-height: 1.35;
}

.data-visual-chart-note {
  text-align: right;
}

.data-visual-pie-shell {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr;
  gap: 0.75rem;
  align-items: center;
}

.data-visual-pie-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-visual-pie {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #8d8d8d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.data-visual-pie-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.data-visual-pie-legend li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.42rem;
  align-items: center;
  color: #5f5f5f;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.2;
}

.data-visual-pie-swatch {
  display: block;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 3px;
  border: 1px solid rgba(60, 60, 60, 0.35);
}

@media (max-width: 1180px) {
  body[data-epso-theme="civic-premium"] .epso-live-landing-hero .epso-hero-inner,
  body[data-epso-theme="civic-premium"] .epso-live-final-cta .epso-final-challenge-layout {
    grid-template-columns: 1fr;
  }

  body[data-epso-theme="civic-premium"] .epso-live-signal-strip {
    grid-template-columns: 1fr;
  }

  body[data-epso-theme="civic-premium"] .epso-live-benefit-card {
    grid-column: span 12;
  }

  body[data-epso-theme="civic-premium"] .epso-live-preview-metrics {
    grid-template-columns: 1fr;
  }

  body[data-epso-theme="civic-premium"] .epso-live-final-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 960px) {
  body[data-epso-theme="civic-premium"] .epso-live-hero-stage-head,
  body[data-epso-theme="civic-premium"] .epso-live-final-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-epso-theme="civic-premium"] .epso-live-flow-card {
    padding: 1.6rem;
  }

  body[data-epso-theme="civic-premium"] .epso-live-flow-arrow {
    transform: rotate(90deg);
  }

  body[data-epso-theme="civic-premium"] .epso-live-journey-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body[data-epso-theme="civic-premium"] .epso-live-page {
    gap: 4rem;
  }

  body[data-epso-theme="civic-premium"] .epso-live-hero-stage,
  body[data-epso-theme="civic-premium"] .epso-live-benefit-card,
  body[data-epso-theme="civic-premium"] .epso-live-hero-card,
  body[data-epso-theme="civic-premium"] .epso-live-final-card {
    padding: 1.5rem;
    border-radius: 2rem;
  }

  body[data-epso-theme="civic-premium"] .epso-live-board,
  body[data-epso-theme="civic-premium"] .epso-live-preview-board {
    padding: 1.4rem;
    border-radius: 2.2rem;
  }

  body[data-epso-theme="civic-premium"] .epso-live-hero-card > strong,
  body[data-epso-theme="civic-premium"] .epso-live-flow-step > strong,
  body[data-epso-theme="civic-premium"] .epso-live-benefit-card > strong,
  body[data-epso-theme="civic-premium"] .epso-live-final-card > strong {
    font-size: 1.9rem;
  }

  body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-primary,
  body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-secondary,
  body[data-epso-theme="civic-premium"] .epso-live-final-actions .epso-cta-ghost {
    min-height: 5.2rem;
  }
}
