:root {
  --bg: #fcfcfd;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --text-muted: #475569;
  --border: #0f172a;
  --border-subtle: rgba(15, 23, 42, 0.14);

  /* Corner & Brand Palette: Orange, Yellow, Green, Blue */
  --corner-orange: #ff6b35;
  --corner-yellow: #fbbf24;
  --corner-green: #10b981;
  --corner-blue: #3b82f6;

  --error: #d93025;
  --error-bg: #fce8e6;
  --success: #15803d;
  --success-bg: #dcfce7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Safe Oklab / Oklch gradient interpolation tokens (modern-web-guidance: visual-effects) */
  --in-oklab: ;
  --in-oklch: ;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Four-Corner Ambient Mesh Gradients: Orange, Yellow, Green, Blue
   ========================================================================== */
body {
  position: relative;
  overflow-x: hidden;
  background-color: #fafaf9;
  background-image:
    radial-gradient(
      circle 520px at 0% 0% var(--in-oklab),
      rgba(255, 107, 53, 0.34),
      rgba(255, 107, 53, 0.1) 48%,
      transparent 75%
    ),
    radial-gradient(
      circle 520px at 100% 0% var(--in-oklab),
      rgba(251, 191, 36, 0.36),
      rgba(251, 191, 36, 0.12) 48%,
      transparent 75%
    ),
    radial-gradient(
      circle 540px at 0% 100% var(--in-oklab),
      rgba(16, 185, 129, 0.32),
      rgba(16, 185, 129, 0.1) 48%,
      transparent 75%
    ),
    radial-gradient(
      circle 560px at 100% 100% var(--in-oklab),
      rgba(59, 130, 246, 0.34),
      rgba(59, 130, 246, 0.1) 48%,
      transparent 75%
    );
  background-attachment: fixed;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 280px at 4% 6% var(--in-oklab), rgba(255, 107, 53, 0.22), transparent 70%),
    radial-gradient(circle 280px at 96% 6% var(--in-oklab), rgba(251, 191, 36, 0.25), transparent 70%);
}

body::after {
  background:
    radial-gradient(circle 300px at 4% 94% var(--in-oklab), rgba(16, 185, 129, 0.22), transparent 70%),
    radial-gradient(circle 300px at 96% 94% var(--in-oklab), rgba(59, 130, 246, 0.24), transparent 70%);
}

/* ==========================================================================
   Directional Navigation View Transitions (modern-web-guidance)
   ========================================================================== */
@keyframes slide-to-left {
  to {
    transform: translateX(-100%);
  }
}

@keyframes slide-from-right {
  from {
    transform: translateX(100%);
  }
}

@keyframes slide-to-right {
  to {
    transform: translateX(100%);
  }
}

@keyframes slide-from-left {
  from {
    transform: translateX(-100%);
  }
}

::view-transition-group(root) {
  animation: 0.32s ease-in-out both;
}

html:active-view-transition-type(forward)::view-transition-old(root) {
  animation-name: slide-to-left;
}
html:active-view-transition-type(forward)::view-transition-new(root) {
  animation-name: slide-from-right;
}

html:active-view-transition-type(backward)::view-transition-old(root) {
  animation-name: slide-to-right;
}
html:active-view-transition-type(backward)::view-transition-new(root) {
  animation-name: slide-from-left;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root) {
    animation: none !important;
  }
}

/* ==========================================================================
   App Layout
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 580px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-block-end: 1px solid rgba(15, 23, 42, 0.1);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-pill {
  background: linear-gradient(
    135deg var(--in-oklch),
    var(--corner-orange),
    var(--corner-yellow),
    var(--corner-green),
    var(--corner-blue)
  );
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.68rem;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow:
    0 2px 6px rgba(255, 107, 53, 0.25),
    0 4px 12px rgba(59, 130, 246, 0.2);
}

.brand-subtitle {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.mode-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.mode-badge:empty {
  display: none;
}

.mode-badge.live {
  background: var(--success-bg);
  color: var(--success);
  border-color: #86efac;
}

.main-container {
  flex: 1;
  padding-block: 1.5rem 2.5rem;
}

.footer {
  padding-block: 1.25rem;
  border-block-start: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Typography & Frosted Glass Hero Cards
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg var(--in-oklab),
    rgba(255, 107, 53, 0.16),
    rgba(251, 191, 36, 0.2),
    rgba(16, 185, 129, 0.16),
    rgba(59, 130, 246, 0.16)
  );
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  margin-block-end: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
  margin-block: 0 0.75rem;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-block: 0 1.5rem;
  line-height: 1.58;
}

.section-heading {
  font-size: 1.18rem;
  font-weight: 800;
  margin-block: 0 0.5rem;
}

.section-subheading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-block: 1.5rem 0.75rem;
}

.card-body-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-block: 0 1rem;
}

.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-block-end: 1.25rem;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.03),
    0 8px 20px rgba(15, 23, 42, 0.05);
}

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

.card-elevated {
  background: var(--surface-elevated);
  border: 1.5px solid rgba(15, 23, 42, 0.85);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.04),
    0 14px 32px rgba(15, 23, 42, 0.08),
    -6px -6px 24px rgba(255, 107, 53, 0.12),
    6px 6px 24px rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.card-elevated::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 5px;
  background: linear-gradient(
    90deg var(--in-oklch),
    var(--corner-orange),
    var(--corner-yellow),
    var(--corner-green),
    var(--corner-blue)
  );
}

.invite-code-caption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.invite-code-display {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-block: 0.35rem 0.75rem;
}

.share-url-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  word-break: break-all;
  margin-block-end: 1rem;
}

.stack-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Multi-Page Progress Tracker (modern-web-guidance: forms)
   ========================================================================== */
.progress-nav {
  margin-block-end: 1.25rem;
}

.progress-tracker {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.progress-tracker li {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding-block: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  transition: transform 0.18s ease, background-color 0.18s ease;
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.progress-tracker li.step-done {
  background: linear-gradient(
    135deg var(--in-oklab),
    rgba(16, 185, 129, 0.22),
    rgba(59, 130, 246, 0.22)
  );
  color: var(--text);
  border-color: var(--corner-green);
}

.progress-tracker li.step-active {
  background: linear-gradient(
    135deg var(--in-oklab),
    var(--corner-orange),
    var(--corner-blue)
  );
  color: #ffffff;
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   Forms, Radio Cards, and :user-invalid Validation (modern-web-guidance)
   ========================================================================== */
.question-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.question-legend {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-block-end: 1.25rem;
  padding: 0;
  color: var(--text);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(15, 23, 42, 0.28);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  min-height: 58px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.radio-card:hover {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.07),
    -3px -3px 12px rgba(255, 107, 53, 0.1),
    3px 3px 12px rgba(59, 130, 246, 0.1);
}

.radio-card input[type='radio'] {
  accent-color: var(--corner-blue);
  width: 1.25rem;
  height: 1.25rem;
  margin-block-start: 0.2rem;
  flex-shrink: 0;
}

.radio-card:has(input[type='radio']:checked) {
  border-color: var(--text);
  border-width: 2px;
  background: linear-gradient(
    135deg var(--in-oklab),
    rgba(255, 107, 53, 0.1),
    rgba(251, 191, 36, 0.12),
    rgba(16, 185, 129, 0.1),
    rgba(59, 130, 246, 0.12)
  );
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.08),
    0 0 0 2px rgba(59, 130, 246, 0.15);
}

.radio-card:has(input[type='radio']:focus-visible) {
  outline: 3px solid var(--corner-blue);
  outline-offset: 2px;
}

.option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.22);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.radio-card:nth-child(1) .option-badge {
  background: rgba(255, 107, 53, 0.16);
  border-color: rgba(255, 107, 53, 0.45);
}

.radio-card:nth-child(2) .option-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
}

.radio-card:nth-child(3) .option-badge {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}

.radio-card:has(input[type='radio']:checked) .option-badge {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}

.option-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Form groups & Gestalt proximity rule */
.form-group {
  margin-block-end: 1.5rem;
}

.form-group-compact {
  margin-block-end: 0.75rem;
}

.form-group label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  padding: 10px 0;
  margin: -10px 0 0.2rem 0;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-block-end: 0.35rem;
}

.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  min-height: 48px;
  border: 1.5px solid #475569;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
}

@media (pointer: coarse) {
  .text-input {
    min-height: 52px;
  }
}

.text-input:focus-visible {
  outline: 3px solid var(--corner-blue);
  outline-offset: 2px;
  border-color: var(--text);
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
  margin-block-start: 0.35rem;
}

.error-msg-visible {
  display: block;
  margin-block-end: 0.75rem;
}

.text-input:user-invalid,
.text-input.user-invalid-fallback {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.text-input:user-invalid + .error-msg,
.text-input.user-invalid-fallback + .error-msg {
  display: block;
}

.text-input:user-valid,
.text-input.user-valid-fallback {
  border-color: var(--success);
}

/* ==========================================================================
   Buttons & Invite Code Box
   ========================================================================== */
.btn-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-block-start: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    opacity 0.14s ease;
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

@media (pointer: coarse) {
  .btn {
    min-height: 54px;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg var(--in-oklab), #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #ffffff;
  width: 100%;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.2),
    -4px -2px 14px rgba(255, 107, 53, 0.22),
    4px 2px 14px rgba(59, 130, 246, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg var(--in-oklab), #10b981, #059669);
  border-color: #047857;
  color: #ffffff;
  width: 100%;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.code-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--text);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding-inline: 1rem;
  min-height: 54px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

.code-prefix {
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--corner-orange);
  margin-inline-end: 0.45rem;
  white-space: nowrap;
}

.code-input {
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  width: 100%;
  color: var(--text);
  background: transparent;
}

/* ==========================================================================
   2x2 Empathy Window Grid Driven by CSS Custom Properties (modern-web-guidance: html)
   ========================================================================== */
.window-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem 1.6rem 0.85rem;
  margin-block: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.08),
    -8px -8px 24px rgba(255, 107, 53, 0.15),
    8px -8px 24px rgba(251, 191, 36, 0.15),
    -8px 8px 24px rgba(16, 185, 129, 0.15),
    8px 8px 24px rgba(59, 130, 246, 0.15);
}

.window-top-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-inline-start: 2rem;
  margin-block-end: 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.window-inner-row {
  display: flex;
  align-items: center;
}

.window-left-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.92rem;
  font-weight: 800;
  padding-inline-end: 0.55rem;
  text-align: center;
  color: var(--text);
}

.window-grid-box {
  --open-x: 50%;
  --open-y: 50%;
  --rem-x: 50%;
  --rem-y: 50%;
  width: 228px;
  height: 228px;
  border: 2px solid var(--text);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.window-quadrant-row {
  display: flex;
  width: 100%;
}

.window-row-top {
  height: var(--open-y);
}

.window-row-bottom {
  height: var(--rem-y);
}

.window-col-left {
  width: var(--open-x);
  height: 100%;
}

.window-col-right {
  width: var(--rem-x);
  height: 100%;
}

.window-quadrant {
  border: 1px solid rgba(15, 23, 42, 0.75);
  transition:
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.window-quadrant-open {
  background: linear-gradient(
    135deg var(--in-oklch),
    var(--corner-orange) 0%,
    var(--corner-yellow) 34%,
    var(--corner-green) 68%,
    var(--corner-blue) 100%
  );
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.window-quadrant-row:first-child .window-quadrant:nth-child(2) {
  background: linear-gradient(135deg var(--in-oklab), rgba(251, 191, 36, 0.22), rgba(255, 255, 255, 0.9));
}

.window-quadrant-row:last-child .window-quadrant:nth-child(1) {
  background: linear-gradient(135deg var(--in-oklab), rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0.9));
}

.window-quadrant-row:last-child .window-quadrant:nth-child(2) {
  background: linear-gradient(135deg var(--in-oklab), rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.9));
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-block: 1.1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-block-start: 0.25rem;
}

/* Breakdown List */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: 1rem;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.05rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 0.25rem;
}

.breakdown-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.breakdown-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breakdown-item.match {
  border-inline-start: 5px solid var(--corner-green);
}

.breakdown-item.miss {
  border-inline-start: 5px solid var(--corner-orange);
}

.badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.badge-match {
  background: var(--success-bg);
  color: var(--success);
}

.badge-miss {
  background: #ffedd5;
  color: #c2410c;
}

/* Native <details> disclosure for testing / previewing friend flow */
.preview-disclosure {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-block-top: 1.25rem;
  font-size: 0.88rem;
}

.preview-disclosure summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.preview-disclosure-body {
  margin-block-start: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Forced Colors Mode Fallbacks (modern-web-guidance: color)
   ========================================================================== */
@media (forced-colors: active) {
  .card,
  .card-elevated,
  .radio-card,
  .window-card,
  .stat-box,
  .btn {
    border: 2px solid CanvasText;
  }

  .radio-card:has(input[type='radio']:checked),
  .window-quadrant-open {
    outline: 3px solid Highlight;
  }
}
