@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Reset & base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0F0F0F;
  --surface:     #1A1A1A;
  --surface-2:   #222222;
  --border:      #2C2C2C;
  --border-2:    #3A3A3A;
  --primary:     #F97316;
  --primary-dk:  #EA6100;
  --text:        #F5F5F5;
  --text-muted:  #B8B8B8;
  --text-light:  #444444;
  --red:         #EF4444;
  --green:       #22C55E;
  --shadow-s:    0 1px 4px rgba(0,0,0,.5);
  --shadow-m:    0 6px 24px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.4);
  --r:           12px;
  --r-sm:        8px;
}

html { color-scheme: dark; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

h1, h2 { font-family: 'Space Grotesk', -apple-system, sans-serif; }

.hidden { display: none !important; }

/* ── Screens ─────────────────────────────────────────── */
.screen { min-height: 100vh; }

/* ── Container ───────────────────────────────────────── */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

/* ── Page header ─────────────────────────────────────── */
.page-header { margin-bottom: 24px; }

.lesson-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.65;
}
.card p:last-child { margin-bottom: 0; }

.card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.tip {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.muted { color: var(--text-muted); font-size: 14px; }

/* ── Question list ───────────────────────────────────── */
.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.question-list li {
  padding: 11px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* ── Intro/scenario card variant ─────────────────────── */
.card-intro, .card-scenario {
  background: #190E00;
  border-color: #3A2200;
}

.intro-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-intro h2, .card-scenario h2 { margin-bottom: 10px; }
.card-intro p,  .card-scenario p  { font-size: 14px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-sm);
  font-family: 'Space Grotesk', inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #0F0F0F;
  font-size: 16px;
  padding: 15px 28px;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dk); }

.btn-block {
  width: 100%;
  border-radius: var(--r);
  margin-top: 6px;
}

.btn-end {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}
.btn-end:hover { background: var(--surface-2); color: var(--text); }

/* ── Login screen ────────────────────────────────────── */
.screen-login {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  width: 100%;
  max-width: 360px;
  padding: 0 20px;
  text-align: center;
}

.login-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.login-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-form { text-align: left; }

.login-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.login-input::placeholder { color: #9A9A9A; }
.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.login-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
  margin-top: 4px;
}

.login-privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
  margin-top: -4px;
}

.login-error {
  text-align: center;
  font-size: 14px;
  color: var(--red);
  margin-top: 10px;
}

/* ── Section label ───────────────────────────────────── */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── Character selector ──────────────────────────────── */
.character-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.char-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.character-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 20px 14px 16px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.character-card:hover { border-color: var(--primary); }
.character-card:active { transform: scale(.98); }
.character-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(249,115,22,.25);
}

/* Circular portrait avatar */
.char-portrait-circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid var(--border-2);
  background: var(--surface-2);
  flex-shrink: 0;
}

.character-card.selected .char-portrait-circle {
  border-color: var(--primary);
}

.char-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.char-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2D1500;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.char-card-body { }

.char-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.char-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.char-difficulty {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.diff-beginner     { color: var(--green); }
.diff-intermediate { color: #FBBF24; }
.diff-hard         { color: var(--primary); }

/* ── Back link ───────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 22px;
  transition: color .15s;
}
.back-link:hover { color: var(--text); }

/* ── Stage selection list ────────────────────────────── */
.stage-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stage-list-loading {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.stage-item:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(249,115,22,.12);
}
.stage-item:active:not(:disabled) { transform: scale(.99); }
.stage-item:disabled { opacity: .35; cursor: default; }

.stage-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #0F0F0F;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-item--locked .stage-num,
.stage-item:disabled .stage-num {
  background: var(--border-2);
  color: var(--text-light);
}

.stage-name {
  flex: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.stage-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.stage-item--locked .stage-cta,
.stage-item:disabled .stage-cta { color: var(--text-light); }

/* ── Roleplay layout ─────────────────────────────────── */
.roleplay-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

/* ── Chat header ─────────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.journey-tally {
  display: flex;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.persona {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2D1500;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Avatar with portrait image */
.avatar--has-image {
  padding: 0;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  border-radius: 50%;
}

.persona-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.persona-role  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── Stage bar ───────────────────────────────────────── */
.stage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #141414;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stage-bar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  flex-shrink: 0;
}

.stage-objective-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-timer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

.stage-timer.timer--warning { color: #FBBF24; }
.stage-timer.timer--danger  { color: var(--red); animation: pulse-timer 1s ease-in-out infinite; }

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ── Transcript ──────────────────────────────────────── */
.transcript {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.transcript-hint {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 24px;
  font-style: italic;
}

/* Chat bubbles */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  gap: 4px;
}

.msg-you  { align-self: flex-end;  align-items: flex-end; }
.msg-dana { align-self: flex-start; align-items: flex-start; }

.msg-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 4px;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.55;
}

.msg-you .msg-bubble {
  background: var(--primary);
  color: #0F0F0F;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.msg-dana .msg-bubble {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-bottom-left-radius: 4px;
}

/* ── Controls ────────────────────────────────────────── */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 26px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.status-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  min-height: 20px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .01em;
}

/* Mic button */
.speak-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #0F0F0F;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(249,115,22,.4);
}
.speak-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(249,115,22,.55);
}
.speak-btn:active:not(:disabled) { transform: scale(.93); }
.speak-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.speak-btn.listening {
  background: var(--red);
  box-shadow: 0 4px 18px rgba(239,68,68,.45);
}

.icon-mic  { width: 28px; height: 28px; }
.icon-stop { width: 20px; height: 20px; }

.pulse-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,.45);
  animation: ripple 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ripple {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ── Stage overlays ──────────────────────────────────── */
.stage-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.overlay-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 28px 24px 22px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-m);
}

.overlay-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.overlay-badge--pass { background: rgba(34,197,94,.12); color: var(--green); }
.overlay-badge--fail { background: rgba(239,68,68,.12);  color: var(--red); }

.overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.overlay-meta {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.overlay-reason {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.overlay-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Carousel overlay ────────────────────────────────── */
.overlay-card--carousel { padding: 18px 18px 16px; }

.overlay-compact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.overlay-badge-inline {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.overlay-title-inline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.01em;
}

.feedback-carousel { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.carousel-panel {
  min-width: 100%;
  box-sizing: border-box;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.panel-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 7px;
}

.panel-label--pass    { color: var(--green); }
.panel-label--improve { color: var(--primary); }

.panel-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.panel-text--loading { color: var(--text-light); font-style: italic; }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 12px;
}

.carousel-arrow {
  background: none;
  border: 1.5px solid var(--border-2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.carousel-arrow:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.carousel-arrow:disabled { opacity: .25; cursor: default; }

.carousel-dots { display: flex; gap: 7px; align-items: center; }

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border-2);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }

/* ── Overlay stars ───────────────────────────────────── */
.overlay-stars {
  font-size: 30px;
  letter-spacing: 5px;
  margin: 2px 0 10px;
  line-height: 1;
}

.overlay-stars .star-filled { color: var(--primary); }
.overlay-stars .star-empty  { color: var(--border-2); }

/* ── Feedback screen ─────────────────────────────────── */
.center { text-align: center; padding: 32px 20px; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  margin: 0 auto 16px;
}

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

.feedback-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

/* ── Scorecard screen ────────────────────────────────── */
.scorecard-rank-card {
  background: var(--primary);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 14px;
}

.sc-rank-emoji {
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1;
}

.sc-rank-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0F0F0F;
  margin-bottom: 6px;
}

.sc-rank-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(15,15,15,.7);
}

.scorecard-breakdown { padding: 6px 20px; }

.sc-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.sc-stage-row:last-child { border-bottom: none; }
.sc-stage-row--incomplete .sc-stage-name { color: var(--text-light); }

.sc-stage-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}

.sc-stage-stars {
  font-size: 17px;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: 3px;
  line-height: 1;
}

.sc-star-empty { color: var(--border-2); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 400px) {
  .page-header h1 { font-size: 26px; }
  .speak-btn { width: 64px; height: 64px; }
  .pulse-ring { width: 64px; height: 64px; }
}

/* ── Score overlay ───────────────────────────────────── */
.overlay-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.overlay-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}
.overlay-score-denom {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
}
.overlay-components {
  margin: 8px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.overlay-component-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  font-size: 13px;
}
.comp-name  { font-weight: 600; grid-column: 1; grid-row: 1; }
.comp-score { font-weight: 700; grid-column: 2; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.comp-note  { font-size: 11px; color: var(--text-muted); grid-column: 1 / -1; grid-row: 2; }
