/* PersonalOS Global UI Redesign — Phase 2: semantic design-token contract.
   This layer is additive: it does not replace legacy variables or restyle modules yet. */
:root {
  --pos20-color-canvas: var(--app-bg, #f4f7fb);
  --pos20-color-surface: var(--surface, #ffffff);
  --pos20-color-surface-raised: var(--surface-2, #f8fafc);
  --pos20-color-text: var(--text, #172033);
  --pos20-color-muted: var(--muted, #68758a);
  --pos20-color-border: var(--border, #e4e9f1);
  --pos20-color-border-strong: var(--border-strong, var(--border, #d2d9e5));
  --pos20-color-accent: var(--primary, #5267d8);
  --pos20-color-accent-hover: var(--primary-hover, #4055c4);
  --pos20-color-accent-soft: var(--primary-soft, #eef1ff);
  --pos20-color-success: var(--success, #23845d);
  --pos20-color-warning: var(--warning, #a66a13);
  --pos20-color-danger: var(--danger, #c34848);
  --pos20-radius-xs: 6px;
  --pos20-radius-sm: var(--radius-sm, 9px);
  --pos20-radius-md: var(--radius-md, 13px);
  --pos20-radius-lg: var(--radius-lg, 18px);
  --pos20-radius-xl: 26px;
  --pos20-border-width: 1px;
  --pos20-elevation-1: var(--shadow, 0 4px 14px rgba(25,40,70,.06));
  --pos20-elevation-2: var(--shadow-pop, 0 16px 40px rgba(25,40,70,.13));
  --pos20-space-1: 4px; --pos20-space-2: 8px; --pos20-space-3: 12px;
  --pos20-space-4: 16px; --pos20-space-5: 20px; --pos20-space-6: 24px;
  --pos20-space-8: 32px; --pos20-space-10: 40px; --pos20-space-12: 48px;
  --pos20-control-height-sm: 32px; --pos20-control-height-md: 40px; --pos20-control-height-lg: 48px;
  --pos20-motion-fast: 120ms; --pos20-motion-normal: 200ms; --pos20-motion-slow: 320ms;
  --pos20-motion-ease: cubic-bezier(.2,.7,.2,1);
  --pos20-focus-ring: 0 0 0 3px color-mix(in srgb, var(--pos20-color-accent) 25%, transparent);
  --pos20-material: solid;
  --pos20-geometry: rounded;
  --pos20-depth: soft;
  --pos20-type-display: inherit;
}
html[data-p20-theme="bento-minimal"] { --pos20-material: matte; --pos20-geometry: modular; --pos20-depth: subtle; --pos20-radius-md: 15px; --pos20-radius-lg: 21px; --pos20-elevation-1: 0 8px 26px rgba(31,48,82,.055); }
html[data-p20-theme="liquid-glass"] { --pos20-material: glass; --pos20-geometry: fluid; --pos20-depth: refractive; --pos20-radius-md: 17px; --pos20-radius-lg: 23px; --pos20-elevation-1: 0 12px 34px rgba(46,73,116,.10); --pos20-elevation-2: 0 24px 70px rgba(40,62,100,.20); }
html[data-p20-theme="dark-luxe"] { --pos20-material: satin-metal; --pos20-geometry: refined; --pos20-depth: layered; --pos20-radius-md: 12px; --pos20-radius-lg: 17px; --pos20-color-accent: #c7a46a; --pos20-color-accent-hover: #d8b77f; }
html[data-p20-theme="neo-brutalism"] { --pos20-material: opaque; --pos20-geometry: hard-edge; --pos20-depth: hard-shadow; --pos20-radius-sm: 3px; --pos20-radius-md: 5px; --pos20-radius-lg: 7px; --pos20-border-width: 2px; --pos20-elevation-1: 5px 5px 0 rgba(20,25,35,.95); --pos20-elevation-2: 8px 8px 0 rgba(20,25,35,.95); }
html[data-p20-theme="editorial"] { --pos20-material: paper; --pos20-geometry: editorial; --pos20-depth: print; --pos20-radius-sm: 2px; --pos20-radius-md: 4px; --pos20-radius-lg: 6px; --pos20-type-display: Georgia, 'Times New Roman', serif; }
html[data-p20-theme="soft-tactile"] { --pos20-material: tactile; --pos20-geometry: pillowed; --pos20-depth: raised-inset; --pos20-radius-md: 18px; --pos20-radius-lg: 24px; }
html[data-p20-theme="spatial-3d"] { --pos20-material: spatial; --pos20-geometry: floating; --pos20-depth: volumetric; --pos20-radius-md: 16px; --pos20-radius-lg: 22px; --pos20-elevation-1: 0 14px 34px rgba(4,12,35,.28); --pos20-elevation-2: 0 26px 64px rgba(4,12,35,.38); }
html[data-p20-theme="retro-futurism"] { --pos20-material: glossy; --pos20-geometry: aero; --pos20-depth: reflective; --pos20-radius-md: 17px; --pos20-radius-lg: 24px; }
html[data-p20-theme="biophilic"] { --pos20-material: organic-matte; --pos20-geometry: organic; --pos20-depth: natural; --pos20-radius-md: 17px; --pos20-radius-lg: 25px; }
html[data-p20-theme="kinetic"] { --pos20-material: graphic; --pos20-geometry: typographic; --pos20-depth: high-contrast; --pos20-radius-md: 8px; --pos20-radius-lg: 12px; --pos20-motion-fast: 90ms; --pos20-motion-normal: 150ms; }
html[data-p20-reduced-motion="true"] *, html[data-p20-reduced-motion="true"] *::before, html[data-p20-reduced-motion="true"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { html:not([data-p20-reduced-motion="false"]) *, html:not([data-p20-reduced-motion="false"]) *::before, html:not([data-p20-reduced-motion="false"]) *::after { scroll-behavior: auto; animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; } }
