/**
 * Elevside for Live-avstemning (css/stem.css)
 * Bygger direkte på css/style.css for å garantere samme autentiske, skandinaviske
 * redaksjonelle formspråk, fargepalett og typografi som index.html.
 * Ingen AI-neon, ingen kalde cyberpunk-effekter – ren ro og verdighet.
 */

:root {
  --model-ansvar: #059669;
  --model-plikt: #2563eb;
  --model-konsekvens: #d97706;
  --model-dyd: #7c3aed;

  /* Valg A: Ansvarsetikk (Grønn) */
  --choice-a-bg: rgba(5, 150, 105, 0.06);
  --choice-a-border: rgba(5, 150, 105, 0.28);
  --choice-a-border-hover: rgba(5, 150, 105, 0.5);
  --choice-a-badge-bg: #059669;
  --choice-a-badge-text: #ffffff;
  --choice-a-title: #047857;
  --choice-a-text: var(--text-primary);
  --choice-a-bar: rgba(5, 150, 105, 0.18);
  --choice-a-selected-border: #059669;

  /* Valg B: Pliktetikk (Blå) */
  --choice-b-bg: rgba(37, 99, 235, 0.06);
  --choice-b-border: rgba(37, 99, 235, 0.28);
  --choice-b-border-hover: rgba(37, 99, 235, 0.5);
  --choice-b-badge-bg: #2563eb;
  --choice-b-badge-text: #ffffff;
  --choice-b-title: #1d4ed8;
  --choice-b-text: var(--text-primary);
  --choice-b-bar: rgba(37, 99, 235, 0.18);
  --choice-b-selected-border: #2563eb;

  /* Valg C: Konsekvensetikk (Oransje/Amber) */
  --choice-c-bg: rgba(217, 119, 6, 0.06);
  --choice-c-border: rgba(217, 119, 6, 0.28);
  --choice-c-border-hover: rgba(217, 119, 6, 0.5);
  --choice-c-badge-bg: #d97706;
  --choice-c-badge-text: #ffffff;
  --choice-c-title: #b45309;
  --choice-c-text: var(--text-primary);
  --choice-c-bar: rgba(217, 119, 6, 0.18);
  --choice-c-selected-border: #d97706;

  /* Valg D: Dydsetikk (Lilla) */
  --choice-d-bg: rgba(124, 58, 237, 0.06);
  --choice-d-border: rgba(124, 58, 237, 0.28);
  --choice-d-border-hover: rgba(124, 58, 237, 0.5);
  --choice-d-badge-bg: #7c3aed;
  --choice-d-badge-text: #ffffff;
  --choice-d-title: #6d28d9;
  --choice-d-text: var(--text-primary);
  --choice-d-bar: rgba(124, 58, 237, 0.18);
  --choice-d-selected-border: #7c3aed;
}

[data-theme="dark"] {
  --choice-a-bg: rgba(16, 185, 129, 0.1);
  --choice-a-border: rgba(16, 185, 129, 0.35);
  --choice-a-title: #6ee7b7;
  --choice-a-bar: rgba(16, 185, 129, 0.25);

  --choice-b-bg: rgba(59, 130, 246, 0.1);
  --choice-b-border: rgba(59, 130, 246, 0.35);
  --choice-b-title: #93c5fd;
  --choice-b-bar: rgba(59, 130, 246, 0.25);

  --choice-c-bg: rgba(245, 158, 11, 0.1);
  --choice-c-border: rgba(245, 158, 11, 0.35);
  --choice-c-title: #fcd34d;
  --choice-c-bar: rgba(245, 158, 11, 0.25);

  --choice-d-bg: rgba(167, 139, 250, 0.1);
  --choice-d-border: rgba(167, 139, 250, 0.35);
  --choice-d-title: #c4b5fd;
  --choice-d-bar: rgba(167, 139, 250, 0.25);
}

body.stem-body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.stem-app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(0.75rem, 2vh, 1.25rem) 1.1rem;
  box-sizing: border-box;
}

/* Header */
.stem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.stem-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stem-brand .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.stem-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stem-brand .brand-eyebrow {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stem-brand .brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stem-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pin-pill {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
}

.btn-disconnect {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-disconnect:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

/* Hovedkort */
.stem-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
  width: 100%;
}

.stem-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.4rem;
  position: relative;
  overflow: hidden;
  animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PIN-skjerm */
.stem-pin-card {
  text-align: center;
}

.pin-header-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.pin-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.pin-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pin-input-wrap {
  display: flex;
  justify-content: center;
}

.pin-input {
  width: 100%;
  max-width: 260px;
  height: 64px;
  background: var(--bg-surface-raised);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.3rem;
  outline: none;
  transition: all var(--transition-fast);
}

.pin-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--border-strong);
}

.pin-error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-stem-primary {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.pin-footer-info {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Skjerm 2: Lobby venteskjerm */
.stem-lobby-card {
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.lobby-ready-icon {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

.lobby-ready-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.lobby-ready-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin-bottom: 1.4rem;
}

.lobby-session-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.4rem;
}

.lobby-pin-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lobby-pin-val {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.lobby-pulse-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Skjerm 3: Aktiv avstemning */
.dilemma-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
}

.dilemma-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.dilemma-scenario {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin-bottom: 1.25rem;
}

.voting-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vote-btn {
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid;
  position: relative;
  background: transparent;
}

.vote-btn:active {
  transform: scale(0.985);
}

.vote-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-letter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-letter::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.vote-btn-a {
  background: var(--choice-a-bg);
  border-color: var(--choice-a-border);
}

.vote-btn-a .btn-letter {
  color: var(--choice-a-title);
}

.vote-btn-a .btn-letter::before {
  content: 'A';
  background: var(--choice-a-badge-bg);
  color: var(--choice-a-badge-text);
}

.vote-btn-a:hover {
  border-color: var(--choice-a-border-hover);
}

.vote-btn-a.selected {
  border-color: var(--choice-a-selected-border);
  box-shadow: 0 0 0 2px var(--choice-a-selected-border);
}

.vote-btn-b {
  background: var(--choice-b-bg);
  border-color: var(--choice-b-border);
}

.vote-btn-b .btn-letter {
  color: var(--choice-b-title);
}

.vote-btn-b .btn-letter::before {
  content: 'B';
  background: var(--choice-b-badge-bg);
  color: var(--choice-b-badge-text);
}

.vote-btn-b:hover {
  border-color: var(--choice-b-border-hover);
}

.vote-btn-b.selected {
  border-color: var(--choice-b-selected-border);
  box-shadow: 0 0 0 2px var(--choice-b-selected-border);
}

.vote-btn-c {
  background: var(--choice-c-bg);
  border-color: var(--choice-c-border);
}

.vote-btn-c .btn-letter {
  color: var(--choice-c-title);
}

.vote-btn-c .btn-letter::before {
  content: 'C';
  background: var(--choice-c-badge-bg);
  color: var(--choice-c-badge-text);
}

.vote-btn-c:hover {
  border-color: var(--choice-c-border-hover);
}

.vote-btn-c.selected {
  border-color: var(--choice-c-selected-border);
  box-shadow: 0 0 0 2px var(--choice-c-selected-border);
}

.vote-btn-d {
  background: var(--choice-d-bg);
  border-color: var(--choice-d-border);
}

.vote-btn-d .btn-letter {
  color: var(--choice-d-title);
}

.vote-btn-d .btn-letter::before {
  content: 'D';
  background: var(--choice-d-badge-bg);
  color: var(--choice-d-badge-text);
}

.vote-btn-d:hover {
  border-color: var(--choice-d-border-hover);
}

.vote-btn-d.selected {
  border-color: var(--choice-d-selected-border);
  box-shadow: 0 0 0 2px var(--choice-d-selected-border);
}

.vote-check {
  display: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-surface);
}

.vote-btn.selected .vote-check {
  display: inline-block;
}

.vote-btn-a.selected .vote-check {
  color: var(--choice-a-title);
  border: 1px solid var(--choice-a-border);
}

.vote-btn-b.selected .vote-check {
  color: var(--choice-b-title);
  border: 1px solid var(--choice-b-border);
}

.vote-btn-c.selected .vote-check {
  color: var(--choice-c-title);
  border: 1px solid var(--choice-c-border);
}

.vote-btn-d.selected .vote-check {
  color: var(--choice-d-title);
  border: 1px solid var(--choice-d-border);
}

.vote-btn.selected {
  animation: voteBtnPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes voteBtnPop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.vote-btn.dimmed {
  opacity: 0.52;
  transform: scale(0.985);
  filter: saturate(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.vote-btn-text {
  font-size: 0.94rem;
  line-height: 1.42;
  font-weight: 600;
}

.vote-btn-a .vote-btn-text { color: var(--choice-a-text); }
.vote-btn-b .vote-btn-text { color: var(--choice-b-text); }
.vote-btn-c .vote-btn-text { color: var(--choice-c-text); }
.vote-btn-d .vote-btn-text { color: var(--choice-d-text); }

/* Steg 2: Metarefleksjon («Gjett hva klassen stemte») */
.voting-guess-section {
  margin-top: 1.1rem;
  padding: 1.1rem;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeInView 0.3s ease;
}

.guess-step-header {
  margin-bottom: 0.85rem;
}

.guess-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.guess-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.guess-step-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.guess-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.guess-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
}

.guess-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.guess-btn.selected {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--text-primary);
  background: var(--bg-surface-hover);
}

.guess-btn.dimmed {
  opacity: 0.4;
  pointer-events: none;
}

.guess-btn-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.guess-btn-a .guess-btn-letter { background: var(--model-ansvar); color: #fff; }
.guess-btn-b .guess-btn-letter { background: var(--model-plikt); color: #fff; }
.guess-btn-c .guess-btn-letter { background: var(--model-konsekvens); color: #fff; }
.guess-btn-d .guess-btn-letter { background: var(--model-dyd); color: #fff; }

.guess-btn-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.guess-btn-model {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Suksessbanner */
.vote-success-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}

.success-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.success-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.success-text strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.success-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Avsløring på mobil */
.student-reveal-box {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInView 0.25s ease;
}

.reveal-header-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.reveal-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.reveal-stat-item {
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
}

.reveal-stat-item.majority {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.reveal-stat-item.item-a {
  background: var(--choice-a-bg);
  border-color: var(--choice-a-border);
}

.reveal-stat-item.item-b {
  background: var(--choice-b-bg);
  border-color: var(--choice-b-border);
}

.reveal-stat-item.item-c {
  background: var(--choice-c-bg);
  border-color: var(--choice-c-border);
}

.reveal-stat-item.item-d {
  background: var(--choice-d-bg);
  border-color: var(--choice-d-border);
}

.r-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.r-pct {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.item-a .r-pct { color: var(--choice-a-title); }
.item-b .r-pct { color: var(--choice-b-title); }
.item-c .r-pct { color: var(--choice-c-title); }
.item-d .r-pct { color: var(--choice-d-title); }

.r-model {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Personlig tilbakemelding */
.student-reflection-summary {
  margin-bottom: 0.85rem;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reflection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.reflection-label {
  color: var(--text-secondary);
}

.reflection-val {
  color: var(--text-primary);
}

.waiting-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Skjerm 4: Avslutning */
.stem-finished-card {
  text-align: center;
}

.finished-top-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.stem-finished-card .finished-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.stem-finished-card .finished-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.student-compass-box {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: left;
  margin-bottom: 1.25rem;
}

.compass-header-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.student-archetype-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.75rem;
}

.student-archetype-avatar-frame {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--border-medium);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  background: var(--bg-surface);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.student-archetype-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.archetype-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.archetype-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.archetype-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.archetype-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.archetype-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.archetype-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.student-votes-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.breakdown-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breakdown-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.student-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.student-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
}

.student-bar-track {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.student-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}

.finished-board-reminder {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Footer */
.stem-footer {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
