/* Candidate journey theme; existing layout and behavior are preserved. */
@layer theme {
  .simulation-session-page {
    .session-loading .loading-spinner {
      border-color: var(--session-border);
      border-block-start-color: var(--accent-warm);
    }
    .session-error .cta-button {
      background: var(--session-button-fill);
      color: #fff;
      box-shadow: none;
    }
    .welcome-card::before,
    .consent-card::before,
    .device-check-card::before {
      background: none;
    }
    .session-welcome-overlay,
    .session-consent-overlay,
    .session-countdown-overlay {
      background: var(--bg-primary);
      backdrop-filter: none;
    }
    .welcome-card,
    .consent-card,
    .device-check-card {
      background: var(--surface-elevated);
      border-color: var(--session-border);
      color: var(--text-primary);
      box-shadow: none;
      backdrop-filter: none;
    }
    .welcome-icon,
    .consent-icon,
    .device-check-icon,
    .welcome-check-icon:is(.speaker, .mic, .clock, .chat, .headphones) {
      background: var(--surface-sunken);
      border-color: var(--session-border);
      color: var(--text-secondary);
      box-shadow: none;
    }
    .welcome-card h2,
    .consent-card h2,
    .device-check-card h2 {
      color: var(--text-primary);
    }
    .welcome-check-item,
    .consent-details,
    .consent-input-label {
      color: var(--text-primary);
    }
    .welcome-subtitle,
    .consent-subtitle,
    .device-check-subtitle,
    .countdown-text {
      color: var(--text-secondary);
    }
    .consent-input {
      background: var(--surface-elevated);
      color: var(--text-primary);
      border-color: var(--session-border);
    }
    .welcome-start-btn,
    .consent-proceed-btn,
    .device-check-continue-btn {
      background: var(--session-button-fill);
      color: #fff;
      border-color: transparent;
      box-shadow: none;
    }
    .welcome-start-btn:hover,
    .consent-proceed-btn:hover,
    .device-check-continue-btn:hover {
      background: var(--session-button-hover);
      box-shadow: none;
    }
    .consent-proceed-btn:disabled,
    .device-check-continue-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .device-check-retry-btn {
      background: var(--surface-sunken);
      color: var(--text-primary);
      border-color: var(--session-border);
      box-shadow: none;
    }
    .consent-cancel-link,
    .welcome-text-link,
    .device-check-cancel-link {
      color: var(--text-secondary);
    }
    .device-check-card::backdrop {
      background: light-dark(#faf7f0e6, #0b0c0ee6);
      backdrop-filter: none;
    }
    .device-check-actions {
      border-color: var(--session-border);
    }
    .countdown-number {
      color: var(--text-primary);
      text-shadow: none;
    }
    .consent-error,
    .device-check-error {
      color: light-dark(#a32e24, #ffaba1);
    }
    :is(.welcome-card, .consent-card, .device-check-card) :is(button, input, a):focus-visible {
      outline: 2px solid var(--accent-warm);
      outline-offset: 3px;
    }
  }
}
