@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  /* Canvas & Surfaces */
  --background: #F5F5F5;
  --foreground: #242424;
  --card: #FFFFFF;
  --card-foreground: #242424;
  --popover: #FFFFFF;
  --popover-foreground: #242424;

  /* Brand — Microsoft Blue (Fluent 2) */
  --primary: #0078D4;
  --primary-hover: #005A9E;
  --primary-foreground: #FFFFFF;
  --primary-light: #C7E0F4;
  --primary-xlight: #EFF6FC;

  /* Secondary / Muted */
  --secondary: #EFF6FC;
  --secondary-hover: #D4E9F7;
  --secondary-foreground: #242424;
  --muted: #F5F5F5;
  --muted-foreground: #616161;
  --accent: #EFF6FC;
  --accent-foreground: #242424;

  /* Semantic */
  --destructive: #A4262C;
  --destructive-foreground: #FFFFFF;
  --success: #107C10;
  --success-bg: #DFF6DD;
  --warning: #C19C00;
  --warning-bg: #FFF4CE;

  /* UI */
  --border: #D1D1D1;
  --border-subtle: #E8E8E8;
  --input: #D1D1D1;
  --ring: #0078D4;
  --ring-focus: rgba(0, 120, 212, 0.2);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Code", "Consolas", monospace;
}

/* ── Dark mode ── */
[data-theme="dark"] {
  /* Canvas & Surfaces */
  --background: #1A1A1A;
  --foreground: #E0E0E0;
  --card: #2A2A2A;
  --card-foreground: #E0E0E0;
  --popover: #2A2A2A;
  --popover-foreground: #E0E0E0;

  /* Brand — slightly desaturated for dark backgrounds */
  --primary: #2899F5;
  --primary-hover: #60B3F7;
  --primary-foreground: #FFFFFF;
  --primary-light: #1A3A5C;
  --primary-xlight: #162D47;

  /* Secondary / Muted */
  --secondary: #162D47;
  --secondary-hover: #1A3A5C;
  --secondary-foreground: #E0E0E0;
  --muted: #333333;
  --muted-foreground: #A0A0A0;
  --accent: #162D47;
  --accent-foreground: #E0E0E0;

  /* Semantic */
  --destructive: #E74856;
  --destructive-foreground: #FFFFFF;
  --success: #4CAF50;
  --success-bg: #1A3A1A;
  --warning: #E5B800;
  --warning-bg: #3A3200;

  /* UI */
  --border: #3D3D3D;
  --border-subtle: #333333;
  --input: #3D3D3D;
  --ring: #2899F5;
  --ring-focus: rgba(40, 153, 245, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  --gradient-start: #F0F6FF;
  --gradient-mid: #F5F5F5;
  --gradient-end: #FAF5FF;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 60%, var(--gradient-end) 100%);
  background-attachment: fixed;
  color: var(--foreground);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] body {
  --gradient-start: #0F1B2D;
  --gradient-mid: #1A1A1A;
  --gradient-end: #1A1525;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--accent);
  border-color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Header action buttons group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav menu (hamburger) */
.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.nav-menu-toggle:hover {
  background-color: var(--accent);
  border-color: var(--primary);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.nav-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 4px;
  z-index: 100;
}

.nav-menu.open .nav-menu-dropdown {
  display: block;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.1s;
}

.nav-menu-item:hover {
  background-color: var(--accent);
}

.nav-menu-item svg {
  flex-shrink: 0;
  color: var(--muted-foreground);
}

[data-theme="dark"] .nav-menu-dropdown {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40), 0 2px 6px rgba(0, 0, 0, 0.30);
}

/* Dark mode shadow adjustments */
[data-theme="dark"] .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .option-card:hover {
  box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .sc-panel {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.20);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
}

.logo-text:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 24px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 12px 24px;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background-color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring-focus);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.card-content {
  padding: 32px;
}

.card-content--centered {
  text-align: center;
  padding: 48px 32px;
}

/* Main container spacing */
.main-container {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Loading / Error states */
.status-section {
  text-align: center;
  padding: 80px 0;
}

.status-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.status-text {
  color: var(--muted-foreground);
}

.error-content {
  text-align: center;
  padding: 48px;
}

.error-heading {
  margin-bottom: 12px;
}

.error-message {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* Welcome hero */
.welcome-icon-wrapper {
  width: 72px;
  height: 72px;
  background: var(--primary-xlight);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.welcome-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.welcome-description {
  color: var(--muted-foreground);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.platform-preview-img {
  width: 32px;
  height: 32px;
}

/* Prescreen */
.prescreen-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prescreen-description {
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

/* Prescreen option cards */
.prescreen-option {
  border-left: 3px solid transparent;
  padding: 20px;
  align-items: center;
}

.prescreen-option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prescreen-option-icon--builtin {
  background: var(--primary-xlight);
  color: var(--primary);
}
.prescreen-option--builtin {
  border-left-color: var(--primary);
}

.prescreen-option-icon--custom {
  background: #DFF6DD;
  color: var(--success);
}
.prescreen-option--custom {
  border-left-color: var(--success);
}

.prescreen-option-icon--explore {
  background: #FFF4CE;
  color: #8A6914;
}
.prescreen-option--explore {
  border-left-color: var(--warning);
}

[data-theme="dark"] .prescreen-option-icon--custom {
  background: rgba(16, 124, 16, 0.15);
}
[data-theme="dark"] .prescreen-option-icon--explore {
  background: rgba(193, 156, 0, 0.15);
  color: #E8C839;
}

/* Assessment navigation */
.question-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.assessment-nav {
  margin-top: 32px;
  gap: 12px;
}

/* Recommendation actions */
.rec-actions {
  margin-top: 24px;
  gap: 12px;
}

.fasttrack-prompt {
  margin-top: 16px;
  text-align: center;
}

.fasttrack-text {
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.platform-preview {
  background-color: var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.platform-preview-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.platform-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-foreground);
  margin-bottom: 4px;
}

/* Question Styles */
.question-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 8px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.option-card {
  background-color: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.2);
}

.option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-xlight);
}

.option-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring-focus);
}

.option-radio-indicator {
  flex-shrink: 0;
  margin-top: 2px;
}

.option-radio-outer {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.option-card.selected .option-radio-outer {
  border-color: var(--primary);
  background: var(--primary);
}

.option-radio-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card);
}

.option-card:hover .option-radio-outer {
  border-color: var(--primary);
}

.option-content {
  flex: 1;
}

.option-label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.option-description {
  font-size: 14px;
  color: var(--muted-foreground);
}

.question-counter {
  font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.benefits-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.benefits-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--success);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

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

/* Reasoning Section */
.reasoning-section {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 24px;
}

.reasoning-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reasoning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.reasoning-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reasoning-text {
  color: var(--muted-foreground);
}

.next-steps-card {
  background-color: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 16px;
}

.next-steps-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Guided Exploration */
.exploration-back {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 24px;
  padding: 8px 0;
  min-height: 44px;
}

.exploration-back:hover {
  color: var(--primary);
}

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.exploration-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.exploration-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.exploration-card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 12px;
}

.exploration-card-summary {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0 0 16px;
}

.exploration-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  min-height: 44px;
  padding: 12px 0;
}

.exploration-card-link:hover {
  text-decoration: underline;
}

.exploration-cta {
  text-align: center;
  padding-top: 8px;
}

.exploration-cta-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 16px;
}

/* Why not? explainer */
.why-not-sentence {
  font-size: 12px;
  color: var(--muted-foreground);
  max-width: 480px;
  margin: 8px auto 0;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.footer a {
  display: inline-block;
  padding: 8px 4px;
  min-height: 44px;
  line-height: 28px;
  color: var(--primary);
  text-decoration-color: var(--primary-light);
}
/* Separator */
.separator {
  height: 1px;
  background-color: var(--border);
  margin: 32px 0;
}

/* Center content */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Utilities */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.text-center {
  text-align: center;
}

/* Icons (using Unicode symbols) */
.icon {
  display: inline-block;
  font-style: normal;
}

.icon-chevron-right::before {
  content: "▶";
}
.icon-chevron-left::before {
  content: "◀";
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo-text {
    font-size: 16px;
  }

  .progress-bar {
    font-size: 11px;
    gap: 4px;
  }

  .progress-connector {
    width: 16px;
  }

  .question-title {
    font-size: 24px;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exploration-grid {
    grid-template-columns: 1fr;
  }

  .exploration-card-title {
    font-size: 20px;
  }

  .card-content {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }

  .option-card:hover {
    transform: none;
  }

  .btn,
  .option-card,
  .option-radio-outer {
    transition: none;
  }
}

/* Accordion (details/summary) */
.rec-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.rec-accordion[open] {
  border-color: var(--border);
}
.rec-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rec-accordion-trigger::-webkit-details-marker {
  display: none;
}
.rec-accordion-trigger .rec-section-title {
  margin-bottom: 0;
}
.rec-accordion-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.rec-accordion-chevron {
  margin-left: auto;
  color: var(--muted-foreground);
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}
.rec-accordion[open] .rec-accordion-chevron {
  transform: rotate(180deg);
}
.rec-accordion .rec-list {
  padding: 0 16px 16px;
  margin-bottom: 0;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Progress bar steps — overrides the v1 .progress-step rule above */
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-weight: 500;
}
.progress-step.active {
  color: var(--primary);
}
.progress-step.complete {
  color: var(--muted-foreground);
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.progress-step.active .progress-dot {
  background: var(--primary);
}
.progress-step.complete .progress-dot {
  background: var(--muted-foreground);
}
.progress-connector {
  width: 32px;
  height: 2px;
  background: var(--border);
}

/* Recommendation Screen */
.rec-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
  background: var(--card);
}
.rec-card.primary {
  border-color: var(--primary);
}
.rec-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.rec-platform-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.rec-platform-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
}
.rec-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}
.badge-strong   { background: var(--success-bg); color: var(--success); }
.badge-good     { background: var(--primary-xlight); color: var(--primary); }
.badge-possible { background: var(--warning-bg); color: var(--warning); }
.badge-not      { background: var(--muted); color: var(--muted-foreground); }
.rec-description {
  font-size: 15px;
  color: var(--foreground);
  margin-bottom: 8px;
  line-height: 1.5;
  font-weight: 500;
}

.rec-summary {
  color: var(--muted-foreground);
  margin-bottom: 20px;
  line-height: 1.6;
}
.rec-resources-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
}
.rec-resources-link:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.25);
  text-decoration: none;
  color: #fff;
}
.rec-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.rec-list li::before { content: "• "; color: var(--primary); }
.rec-list li { font-size: 14px; color: var(--foreground); }
.pair-banner {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--accent-foreground);
  text-align: center;
}

/* ── Cross-question contradiction notes ── */
.cross-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cross-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
}
.second-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.rec-card.secondary {
  border-color: var(--border-subtle);
  background: var(--muted);
}
.rec-card.secondary .rec-platform-name { font-size: 20px; }

/* ── Score comparison panel ── */
.score-toggle {
  margin: 16px auto;
  font-size: 16px;
  gap: 6px;
}
.score-toggle-chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.score-comparison {
  margin-bottom: 8px;
}
.sc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
}
.sc-heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.sc-row {
  margin-bottom: 20px;
}
.sc-row:last-child {
  margin-bottom: 0;
}
.sc-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sc-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.sc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}
.sc-bar-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.sc-bar-track {
  flex: 1;
  height: 8px;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}
.sc-bar-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-bar-fill.animate {
  width: var(--bar-pct);
}
.sc-score {
  font-family: 'Geist Mono', 'Cascadia Code', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
  min-width: 42px;
}
.sc-badge {
  font-size: 11px;
  padding: 2px 8px;
  white-space: nowrap;
}
.sc-reason {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* ── Per-question fit grid ── */
.sc-grid-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.sc-grid-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}
.pq-grid {
  width: 100%;
  border-collapse: collapse;
}
.pq-grid th,
.pq-grid td {
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
}
.pq-label-header {
  width: 100px;
}
.pq-platform-header {
  width: auto;
}
.pq-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.pq-label {
  text-align: left;
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
  padding-right: 12px;
  white-space: nowrap;
}
.pq-cell {
  text-align: center;
}
.pq-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}
.pq-dot.pq-strong {
  background: var(--primary);
}
.pq-dot.pq-moderate {
  background: var(--primary);
  opacity: 0.55;
}
.pq-dot.pq-weak {
  background: var(--primary);
  opacity: 0.25;
}
.pq-dot.pq-none {
  background: var(--muted);
  border: 1px solid var(--border);
  width: 10px;
  height: 10px;
}
.pq-dot.pq-zeroed {
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.pq-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.pq-legend .pq-dot {
  width: 8px;
  height: 8px;
  margin-right: 2px;
}
.pq-legend .pq-dot.pq-none {
  width: 6px;
  height: 6px;
}
.pq-legend .pq-dot.pq-zeroed {
  width: auto;
  height: auto;
  font-size: 10px;
  margin-right: 0;
}

/* ── Close-score callout ── */
.sc-close-callout {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--foreground);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .sc-panel {
    padding: 16px;
  }
  .sc-bar-area {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sc-bar-track {
    flex-basis: 100%;
    order: 3;
  }
  .sc-badge {
    font-size: 10px;
  }
  .pq-grid th,
  .pq-grid td {
    padding: 4px 6px;
  }
  .pq-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
  .exploration-cta .btn {
    width: 100%;
  }
  .why-not-sentence {
    max-width: none;
  }
}

/* ── Maturity guidance ── */

/* Developer context note on recommendation card */
.rec-dev-note {
  background: var(--primary-xlight);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground);
}
.rec-dev-note a {
  color: var(--primary);
  font-weight: 500;
}

/* Recommendation section navigation */
.rec-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.rec-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.rec-nav a:hover {
  text-decoration: underline;
}
.rec-nav-sep {
  font-size: 13px;
  color: var(--border);
}

/* =============================================
   DECISION CARD
   ============================================= */
/* Share button inside rec card */
.rec-card-share {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Decision card metadata section (no longer a card) */
.decision-card-meta-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.decision-card-context {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 16px;
  line-height: 1.5;
}
.decision-card-context a {
  color: var(--primary);
  text-decoration: none;
}
.decision-card-context a:hover {
  text-decoration: underline;
}

.decision-card-banner {
  background: var(--primary-xlight);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
}
.decision-card-banner a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.decision-card-banner a:hover {
  text-decoration: underline;
}


.btn-decision {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 100ms, border-color 100ms, color 100ms;
  border: 1px solid;
  background: transparent;
}
.btn-decision:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-decision:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-decision-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-decision-primary:hover:not(:disabled) {
  background: var(--primary-xlight);
}

.btn-decision-secondary {
  border-color: var(--border);
  color: var(--foreground);
}
.btn-decision-secondary:hover:not(:disabled) {
  background: var(--muted);
}

.decision-card-drift {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Decision card copied feedback */
.btn-decision-copied {
  border-color: var(--success) !important;
  color: var(--success) !important;
}
.btn-decision-error {
  border-color: var(--destructive) !important;
  color: var(--destructive) !important;
}

/* Responsive: mobile stacking */
@media (max-width: 480px) {
  .btn-decision {
    width: 100%;
    justify-content: center;
  }
}
