/* Responde / official product tokens. Palette extracted from the approved premium home. */
:root {
  --r-font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-font-heading: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-text-display: clamp(2.25rem, 4vw, 3.5rem);
  --r-text-heading: clamp(1.75rem, 2.6vw, 2.25rem);
  --r-text-section: 1.375rem;
  --r-text-card: 1.125rem;
  --r-text-body: 1rem;
  --r-text-label: .875rem;
  --r-text-caption: .75rem;
  --r-line-body: 1.65;
  --r-line-heading: 1.2;
  --r-space-1: 4px; --r-space-2: 8px; --r-space-3: 12px; --r-space-4: 16px;
  --r-space-5: 20px; --r-space-6: 24px; --r-space-8: 32px; --r-space-10: 40px;
  --r-space-12: 48px; --r-space-16: 64px;
  --r-radius-control: 8px; --r-radius-card: 14px; --r-radius-dialog: 18px; --r-radius-pill: 999px;
  --r-control-height: 48px; --r-icon-size: 20px; --r-content-width: 1180px; --r-form-width: 520px;
  --r-duration: 160ms; --r-duration-slow: 240ms; --r-ease: cubic-bezier(.2,.7,.3,1);
  --r-coral: #ff806e; --r-coral-hover: #ff9d8f; --r-coral-active: #ed6e5b; --r-action-ink: #211613;
  --r-focus: #ffb6a8;
}
:root, :root[data-theme='dark'] {
  color-scheme: dark;
  --r-bg: #101112; --r-bg-secondary: #151617;
  --r-surface: #191a1b; --r-surface-elevated: #232527; --r-surface-hover: #2b2e30;
  --r-border: #35393c; --r-border-subtle: #282b2d; --r-control-border: #686e73;
  --r-text: #f5f1e9; --r-text-secondary: #bfb7ac; --r-text-disabled: #8d8d87;
  --r-accent-text: #ffac9c; --r-accent-surface: #34231f; --r-accent-border: #9f5b4e; --r-selection: #ff806e;
  --r-success: #a4d8b5; --r-success-bg: #183528; --r-success-border: #48765a;
  --r-warning: #ebc888; --r-warning-bg: #392e1d; --r-warning-border: #8a7045;
  --r-error: #ffb2a9; --r-error-bg: #3d2527; --r-error-border: #a05e5b;
  --r-info: #bad8f2; --r-info-bg: #203242; --r-info-border: #557d9d;
  --r-overlay: #060708b8; --r-shadow-sm: 0 2px 8px #00000018; --r-shadow: 0 16px 44px #00000026;
  --r-shadow-dialog: 0 30px 90px #00000080;
}
/* The optional light theme is a semantic variant of the same system, not another identity. */
:root[data-theme='light'] {
  color-scheme: light;
  --r-bg: #f8f6f2; --r-bg-secondary: #f0ece6;
  --r-surface: #ffffff; --r-surface-elevated: #ffffff; --r-surface-hover: #eee8df;
  --r-border: #d0c8bc; --r-border-subtle: #e6dfd6; --r-control-border: #7e7972;
  --r-focus: #a63d2c;
  --r-text: #282826; --r-text-secondary: #605b54; --r-text-disabled: #817c73;
  --r-accent-text: #a63d2c; --r-accent-surface: #ffebe5; --r-accent-border: #bf6854; --r-selection: #ac4631;
  --r-success: #285d3b; --r-success-bg: #e7f3eb; --r-success-border: #8bb69a;
  --r-warning: #745012; --r-warning-bg: #fff1d6; --r-warning-border: #b3934c;
  --r-error: #a4312b; --r-error-bg: #fce9e7; --r-error-border: #c0827c;
  --r-info: #305d82; --r-info-bg: #e7eff9; --r-info-border: #91aec9;
  --r-overlay: #11131580; --r-shadow-sm: 0 2px 8px #28221a08; --r-shadow: 0 16px 44px #28221a12;
  --r-shadow-dialog: 0 30px 90px #28221a38;
}
/* Compatibility aliases keep existing components and their data contracts intact. */
:root[data-theme], :root {
  --bg: var(--r-bg); --paper: var(--r-bg); --white: var(--r-surface); --surface: var(--r-surface);
  --surface-2: var(--r-surface-elevated); --soft: var(--r-bg-secondary); --sand: var(--r-bg-secondary);
  --ink: var(--r-text); --muted: var(--r-text-secondary); --line: var(--r-border-subtle); --line-strong: var(--r-border);
  --coral: var(--r-coral); --coral-ink: var(--r-accent-text); --coral-light: var(--r-accent-surface);
  --green: var(--r-success); --green-light: var(--r-success-bg); --success: var(--r-success);
  --panel-action: var(--r-coral); --panel-action-hover: var(--r-coral-hover);
  --panel-active: var(--r-accent-surface); --panel-active-ink: var(--r-accent-text);
  --sans: var(--r-font-body); --display: var(--r-font-heading); --radius: var(--r-radius-card);
  --shadow-sm: var(--r-shadow-sm); --shadow-md: var(--r-shadow); --shadow-lg: var(--r-shadow-dialog);
}
