/* Design System Foundation Phase 1: shared semantic contract.
 * This file is loaded before existing workspace CSS and is not an override layer. */
:root {
  --ds-color-workspace: #f5f5f7;
  --ds-color-surface: #fff;
  --ds-color-surface-secondary: #f2f2f4;
  --ds-color-surface-elevated: #fff;
  --ds-color-text-primary: #1d1d1f;
  --ds-color-text-secondary: #6e6e73;
  --ds-color-text-tertiary: #86868b;
  --ds-color-text-disabled: #aeaeb2;
  --ds-color-separator: rgba(0, 0, 0, .08);
  --ds-color-border-control: rgba(0, 0, 0, .10);
  --ds-color-border-card: rgba(0, 0, 0, .08);
  --ds-color-border-strong: rgba(0, 0, 0, .14);
  --ds-color-focus-ring: rgba(201, 169, 93, .38);
  --ds-color-accent: #c9a95d;
  --ds-color-accent-hover: #d7ad62;
  --ds-color-accent-pressed: #b58a2a;
  --ds-color-accent-tint: rgba(201, 169, 93, .12);
  --ds-color-accent-border: rgba(201, 169, 93, .30);
  --ds-color-success: #248a3d;
  --ds-color-warning: #b36b00;
  --ds-color-danger: #d70015;
  --ds-color-info: #0071e3;
  --ds-color-overlay: rgba(0, 0, 0, .32);
  --ds-color-hover-neutral: rgba(0, 0, 0, .04);
  --ds-color-pressed-neutral: rgba(0, 0, 0, .07);

  --ds-dark-workspace: #1c1c1e;
  --ds-dark-viewer: #0e0e10;
  --ds-dark-timeline: #1c1c1e;
  --ds-dark-inspector: #262628;
  --ds-dark-surface: #2c2c2e;
  --ds-dark-surface-elevated: #3a3a3c;
  --ds-dark-separator: rgba(255, 255, 255, .10);
  --ds-dark-text-primary: #f5f5f7;
  --ds-dark-text-secondary: #aeaeb2;

  --ds-space-1: 4px;
  --ds-space-2: 6px;
  --ds-space-3: 8px;
  --ds-space-4: 10px;
  --ds-space-5: 12px;
  --ds-space-6: 14px;
  --ds-space-7: 16px;
  --ds-space-8: 20px;
  --ds-space-9: 24px;
  --ds-space-10: 32px;

  --ds-radius-control: 9px;
  --ds-radius-card: 16px;
  --ds-radius-card-large: 18px;
  --ds-radius-floating: 16px;
  --ds-radius-modal: 20px;
  --ds-radius-pill: 999px;

  --ds-border-separator: 1px solid var(--ds-color-separator);
  --ds-border-control: 1px solid var(--ds-color-border-control);
  --ds-border-card: 1px solid var(--ds-color-border-card);
  --ds-border-strong: 1px solid var(--ds-color-border-strong);
  --ds-focus-ring: 0 0 0 3px var(--ds-color-focus-ring);

  --ds-shadow-control: 0 1px 2px rgba(0, 0, 0, .05);
  --ds-shadow-card: 0 4px 16px rgba(0, 0, 0, .07);
  --ds-shadow-floating: 0 12px 32px rgba(0, 0, 0, .14);
  --ds-shadow-overlay: 0 24px 64px rgba(0, 0, 0, .22);

  --ds-control-height-compact: 30px;
  --ds-control-height-normal: 34px;
  --ds-control-height-prominent: 38px;
  --ds-control-icon-hit-area: 34px;
  --ds-control-padding-x: 12px;
  --ds-control-padding-prominent-x: 16px;
  --ds-control-textarea-min-height: 88px;

  /* Presentation typography: Product Home only. Workspace pages keep their existing type scale. */
  --ds-type-display-xl-size: clamp(48px, 4.35vw, 64px);
  --ds-type-display-xl-line-height: 1.06;
  --ds-type-display-lg-size: clamp(38px, 3.4vw, 52px);
  --ds-type-display-lg-line-height: 1.1;
  --ds-type-display-md-size: clamp(30px, 2.5vw, 40px);
  --ds-type-display-md-line-height: 1.14;
  --ds-type-lead-size: clamp(17px, 1.3vw, 21px);
  --ds-type-lead-line-height: 1.55;

  --motion-duration-instant: 0ms;
  --motion-duration-micro: 120ms;
  --motion-duration-control: 150ms;
  --motion-duration-navigation: 160ms;
  --motion-duration-popover: 180ms;
  --motion-duration-popover-exit: 150ms;
  --motion-duration-toast: 180ms;
  --motion-duration-toast-exit: 150ms;
  --motion-duration-modal: 200ms;
  --motion-duration-modal-exit: 160ms;
  --motion-duration-drawer-enter: 220ms;
  --motion-duration-drawer-exit: 180ms;
  --motion-duration-backdrop-enter: 180ms;
  --motion-duration-backdrop-exit: 150ms;
  --motion-duration-progress: 200ms;
  --motion-duration-loading-cycle: 1000ms;
  --motion-ease-standard: ease;
  --motion-ease-enter: ease-out;
  --motion-ease-exit: ease-in;
  --motion-ease-linear: linear;
  --motion-distance-popover: -4px;
  --motion-distance-drawer: 16px;
  --motion-distance-toast: -6px;
  --motion-scale-modal: .985;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration-micro: 0ms;
    --motion-duration-control: 0ms;
    --motion-duration-navigation: 0ms;
    --motion-duration-popover: 0ms;
    --motion-duration-popover-exit: 0ms;
    --motion-duration-toast: 0ms;
    --motion-duration-toast-exit: 0ms;
    --motion-duration-modal: 0ms;
    --motion-duration-modal-exit: 0ms;
    --motion-duration-drawer-enter: 0ms;
    --motion-duration-drawer-exit: 0ms;
    --motion-duration-backdrop-enter: 0ms;
    --motion-duration-backdrop-exit: 0ms;
    --motion-duration-progress: 0ms;
    --motion-distance-popover: 0px;
    --motion-distance-drawer: 0px;
    --motion-distance-toast: 0px;
    --motion-scale-modal: 1;
  }
}
