/* ============================================================================
   SOVEREIGN TECH × APPLE HIG PLAYBOOK + LIQUID GLASS + LIGHT/DARK MODES
   Palette (70/20/10):
     Dark Base:  Obsidian Slate (#0F172A) & Carbon Black (#111315)
     Light Base: Nordic Ice (#F8FAFC) & Titanium Silver (#E2E8F0)
     Divisional Accents (10%):
       - UN Charter Blue (#009EDB)
       - Baltic Cyan (#06B6D4)
       - Sovereign Amber (#D97706)
   ============================================================================ */

:root {
  color-scheme: dark;
  --obsidian: #0F172A;
  --carbon: #111315;
  --ice: #F8FAFC;
  --titanium: #E2E8F0;

  /* Fluid 360-degree Curved Optical-Lens Liquid Glass Geometry */
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --glass-lens-rim: 0.36;

  /* Dynamic Theme Tokens (Dark Default) */
  --bg-page: #0B0F17;
  --bg-surface: #0F172A;
  --bg-quiet: #152036;
  --bg-subtle: #1B2942;
  --bg-surface-rgb: 15, 23, 42;
  --bg-quiet-rgb: 21, 32, 54;
  --bg-nav-rgb: 15, 23, 42;
  --bg-input: #111B2E;
  --bg-code: #080C15;
  --text-primary: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --muted: var(--text-muted);
  --subtle: var(--text-subtle);
  --hairline: rgba(226, 232, 240, 0.12);
  --hairline-strong: rgba(226, 232, 240, 0.24);
  --btn-primary-bg: #F8FAFC;
  --btn-primary-fg: #0F172A;
  --hover-tint: rgba(248, 250, 252, 0.08);
  --specular-rgb: 255, 255, 255;

  /* Uniform Liquid Glass Dynamic Engine (controlled by JS slider 0..100) */
  --glass-level: 0.65;
  --glass-blur: 16px;
  --glass-sat: 160%;
  --glass-surface-alpha: 0.84;
  --glass-quiet-alpha: 0.76;
  --glass-elevated-alpha: 0.90;
  --glass-nav-alpha: 0.84;
  --glass-sheen: 0.14;
  --glass-ambient-opacity: 0.36;
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);

  /* Divisional Accents */
  --un-blue: #009EDB;
  --baltic-cyan: #06B6D4;
  --sovereign-amber: #D97706;
  --success: #10B981;
  --danger: #EF4444;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-treaty: 'Archivo Black', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-tech: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ---- LIGHT MODE (Nordic Ice & Titanium Silver) ---- */
[data-theme="light"] {
  color-scheme: light;
  --bg-page: #EEF2F7;
  --bg-surface: #FFFFFF;
  --bg-quiet: #F8FAFC;
  --bg-subtle: #E2E8F0;
  --bg-surface-rgb: 255, 255, 255;
  --bg-quiet-rgb: 248, 250, 252;
  --bg-nav-rgb: 255, 255, 255;
  --bg-input: #FFFFFF;
  --bg-code: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --hairline: rgba(15, 23, 42, 0.10);
  --hairline-strong: rgba(15, 23, 42, 0.20);
  --btn-primary-bg: #0F172A;
  --btn-primary-fg: #F8FAFC;
  --hover-tint: rgba(15, 23, 42, 0.05);
  --specular-rgb: 255, 255, 255;
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ---- 2026 FLUID LIQUID GLASS ATMOSPHERIC REFRACTION BACKDROP ---- */
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1); }
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.liquid-ambient {
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--glass-ambient-opacity);
  transition: opacity 0.25s ease;
  animation: meshDrift 22s ease-in-out infinite alternate;
  will-change: transform;
  background:
    radial-gradient(640px circle at 14% 12%, rgba(0, 158, 219, 0.26), transparent 64%),
    radial-gradient(560px circle at 86% 18%, rgba(6, 182, 212, 0.22), transparent 62%),
    radial-gradient(620px circle at 52% 86%, rgba(217, 119, 6, 0.17), transparent 66%);
}

[data-theme="light"] .liquid-ambient {
  background:
    radial-gradient(680px circle at 14% 10%, rgba(0, 158, 219, 0.20), transparent 62%),
    radial-gradient(600px circle at 86% 18%, rgba(6, 182, 212, 0.18), transparent 62%),
    radial-gradient(640px circle at 50% 88%, rgba(217, 119, 6, 0.14), transparent 66%);
}

.app-main > * {
  animation: pageReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .liquid-ambient, .app-main > *, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.apple-nav, .app-main {
  position: relative;
  z-index: 1;
}

a { color: var(--un-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- APPLE HIG FROSTED / LIQUID GLASS TOP BAR ---- */
.apple-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(var(--bg-nav-rgb), var(--glass-nav-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 -1px 0 rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.5));
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-brand:hover img {
  transform: scale(1.08);
}

.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sovereign-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--hairline-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  white-space: nowrap;
}

.nav-link {
  background: none;
  border: none;
  padding: 6px 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 2px;
  background: var(--baltic-cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(var(--bg-surface-rgb), calc(var(--glass-surface-alpha) * 0.6));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.6));
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--hairline-strong);
  background: var(--hover-tint);
}

.role-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 8px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-secondary);
}

/* Mobile-only nav inside drawer prevents desktop duplication */
.mobile-only-nav {
  display: none;
}

@media (max-width: 1120px) {
  .nav-brand-tag { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .role-chip { display: none !important; }
  .mobile-only-nav { display: block; }
}

/* ---- SLIDE-OVER HAMBURGER MENU (Liquid Glass Sheet) ---- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: rgba(var(--bg-surface-rgb), calc(var(--glass-surface-alpha) + 0.16));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 8px));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 8px));
  border-left: 1px solid var(--hairline-strong);
  box-shadow: inset 1px 0 0 rgba(var(--specular-rgb), var(--glass-sheen)), var(--glass-shadow);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.drawer-nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 13px 4px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
  color: var(--baltic-cyan);
  padding-left: 6px;
}

/* ---- LIQUID GLASS RANGE SLIDER ---- */
.glass-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--hairline-strong);
  outline: none;
  margin: 10px 0 4px;
  cursor: pointer;
}

.glass-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--baltic-cyan);
  border: 1px solid var(--text-primary);
  cursor: pointer;
}

.glass-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--baltic-cyan);
  border: 1px solid var(--text-primary);
  cursor: pointer;
}

/* ---- MAIN CANVAS ---- */
.app-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 24px 104px;
}

/* ---- EDITORIAL HERO & SECTION HEADINGS ---- */
.hero-stage {
  padding: 64px 0 52px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--baltic-cyan);
  margin-bottom: 18px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 74px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 22px;
  background: linear-gradient(135deg, var(--text-primary) 35%, var(--baltic-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0F172A 38%, #009EDB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bento-showcase {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- APPLE / LINEAR / STRIPE INTERACTIVE PRODUCT FRAME ---- */
.product-frame {
  margin: 44px auto 72px;
  border: 1px solid var(--hairline-strong);
  background: rgba(var(--bg-surface-rgb), calc(var(--glass-surface-alpha) + 0.08));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 4px));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 4px));
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), var(--glass-sheen)), 0 28px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  text-align: left;
}

[data-theme="light"] .product-frame {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 24px 60px rgba(15, 23, 42, 0.10);
}

.product-frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(var(--bg-quiet-rgb), 0.72);
}

.frame-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.frame-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--hairline-strong);
}

.product-frame-body {
  padding: 24px;
}

.editorial-section {
  margin-bottom: 72px;
}

.editorial-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.editorial-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 10px;
  color: var(--text-primary);
}

.editorial-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.editorial-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 64px;
  border-top: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--baltic-cyan);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .bento-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 4px 0 0;
  color: var(--text-primary);
}

.page-lead {
  color: var(--text-muted);
  font-size: 15px;
  margin: 6px 0 0;
  max-width: 620px;
}

/* ---- LIQUID GLASS BENTO SURFACES WITH SPECULAR CURSOR SHEEN ---- */
.bento-card {
  position: relative;
  overflow: hidden;
  background: rgba(var(--bg-surface-rgb), var(--glass-surface-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), var(--glass-sheen)), var(--glass-shadow);
  padding: 28px;
  transition: border-color 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(6, 182, 212, 0.11), transparent 65%);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.interactive { cursor: pointer; }
.bento-card.interactive:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}

.bento-quiet {
  background: rgba(var(--bg-quiet-rgb), var(--glass-quiet-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) * 0.75));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) * 0.75));
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.7));
  padding: 22px;
}

.accent-cyan { border-top: 2px solid var(--baltic-cyan); }
.accent-blue { border-top: 2px solid var(--un-blue); }
.accent-amber { border-top: 2px solid var(--sovereign-amber); }

/* ---- APPLE SEGMENTED CONTROL ---- */
.segmented {
  display: inline-flex;
  background: rgba(var(--bg-surface-rgb), var(--glass-surface-alpha));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--hairline-strong);
  padding: 3px;
  gap: 3px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn:hover { color: var(--text-primary); }

.seg-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
}

/* ---- GRIDS & OVERFLOW SAFETY ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.grid-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }

/* Responsive named splits (never locked by rigid inline grid-template-columns) */
.layout-os { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 20px; align-items: start; }
.layout-split-right { display: grid; grid-template-columns: minmax(0, 1.35fr) 300px; gap: 18px; align-items: start; }
.layout-split-left { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.layout-hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 22px; align-items: center; }

.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-aside > *, .grid-sidebar > *,
.layout-os > *, .layout-split-right > *, .layout-split-left > *, .layout-hero-split > *,
.bento-card, .bento-quiet {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 1120px) {
  .layout-split-right, .layout-split-left, .grid-aside { grid-template-columns: 1fr !important; }
}
@media (max-width: 960px) {
  .grid-3, .grid-sidebar, .layout-os, .layout-hero-split { grid-template-columns: 1fr !important; }
}
@media (max-width: 680px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr !important; }
  .app-main { padding: 24px 16px 96px; }
}

/* Clean Waterfall & Percentage Bars (never cut off or overflow) */
.waterfall-bar {
  display: flex;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}
.waterfall-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--hover-tint);
  border-color: var(--text-primary);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
  font-weight: 600;
}
.btn-primary:hover { opacity: 0.9; }

.btn-cyan {
  background: var(--baltic-cyan);
  color: #111315;
  border-color: var(--baltic-cyan);
  font-weight: 600;
}
.btn-cyan:hover { background: #22D3EE; }

.btn-blue {
  background: var(--un-blue);
  color: #F8FAFC;
  border-color: var(--un-blue);
  font-weight: 600;
}
.btn-blue:hover { background: #0EA5E9; }

.btn-amber {
  background: var(--sovereign-amber);
  color: #111315;
  border-color: var(--sovereign-amber);
  font-weight: 600;
}
.btn-amber:hover { background: #F59E0B; }

.btn-sm { padding: 7px 12px; font-size: 12px; }

.btn-danger { border-color: rgba(239, 68, 68, 0.55); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #F8FAFC; }

/* ---- TYPOGRAPHY HELPERS ---- */
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-subtle);
}

.muted { color: var(--text-muted); }

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  color: var(--text-primary);
}

.card-copy {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---- PILLS ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--hairline-strong);
  color: var(--text-secondary);
}

.pill-cyan { border-color: rgba(6, 182, 212, 0.6); color: var(--baltic-cyan); }
.pill-blue { border-color: rgba(0, 158, 219, 0.6); color: var(--un-blue); }
.pill-amber { border-color: rgba(217, 119, 6, 0.6); color: var(--sovereign-amber); }
.pill-green { border-color: rgba(16, 185, 129, 0.6); color: var(--success); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- FORMS ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="url"],
select, textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--hairline-strong);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus { border-color: var(--baltic-cyan); }
textarea { min-height: 92px; resize: vertical; }

/* ---- DISCLOSURE ---- */
details.apple-disclosure {
  border-top: 1px solid var(--hairline);
  padding: 14px 0;
}
details.apple-disclosure:last-child { border-bottom: 1px solid var(--hairline); }
details.apple-disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
}
details.apple-disclosure summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--baltic-cyan);
  font-size: 16px;
}
details.apple-disclosure[open] summary::after { content: '−'; }

/* ---- TABLES ---- */
.clean-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clean-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 10px 8px;
}
.clean-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

/* ---- PROGRESS & CODE ---- */
.bar-track { width: 100%; height: 6px; background: var(--hairline); overflow: hidden; }
.bar-fill { height: 100%; transition: width 0.25s ease; }

pre.code-block {
  background: var(--bg-code);
  border: 1px solid var(--hairline);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #BAE6FD;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 10px 0 0;
}

/* ---- MODAL SHEET ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: rgba(var(--bg-surface-rgb), calc(var(--glass-surface-alpha) + 0.18));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 8px));
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), var(--glass-sheen)), var(--glass-shadow);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
}

/* ---- TOASTS (Positioned cleanly above floating AI Copilot button) ---- */
.toast-stack {
  position: fixed;
  bottom: 84px;
  right: 22px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--baltic-cyan);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.toast.error { border-color: var(--danger); }
.toast.amber { border-color: var(--sovereign-amber); }

.divider { height: 1px; background: var(--hairline); margin: 24px 0; }

.kpi-num {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.hidden { display: none !important; }


/* ---- AI-NATIVE FLOATING COPILOT (SOLID OPAQUE HIGH-CONTRAST) + DRAG & DROP + FLOWCHART ---- */
.copilot-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border: 1.5px solid var(--baltic-cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}
.copilot-dot {
  width: 8px;
  height: 8px;
  background: var(--baltic-cyan);
  display: inline-block;
}
.copilot-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 28px));
  height: min(580px, calc(100vh - 88px));
  z-index: 960;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--baltic-cyan);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  opacity: 1;
}
.copilot-panel.drop-active,
.dropzone-box.drop-active {
  border: 2px dashed var(--sovereign-amber) !important;
  background: rgba(217, 119, 6, 0.16) !important;
}
.copilot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-quiet);
  border-bottom: 1px solid var(--hairline-strong);
}
.copilot-quickbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--hairline);
}
.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.copilot-msg {
  padding: 10px 12px;
  font-size: 12.5px;
  border: 1px solid var(--hairline-strong);
  overflow-wrap: anywhere;
}
.copilot-msg.user {
  align-self: flex-end;
  max-width: 88%;
  background: rgba(0, 158, 219, 0.22);
  border-color: var(--un-blue);
  color: var(--text-primary);
}
.copilot-msg.assistant {
  align-self: flex-start;
  max-width: 96%;
  background: var(--bg-quiet);
  color: var(--text-primary);
}
.copilot-drop-hint,
.copilot-attach-bar {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid var(--hairline);
  background: var(--bg-quiet);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.copilot-input-row {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--bg-quiet);
  border-top: 1px solid var(--hairline-strong);
}
.copilot-input-row input {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
}
.dropzone-box {
  border: 1.5px dashed var(--baltic-cyan);
  background: rgba(6, 182, 212, 0.05);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone-box:hover {
  background: rgba(6, 182, 212, 0.1);
}
.org-flow-stage {
  overflow: auto;
  border: 1px solid var(--hairline);
  background: var(--bg-quiet);
  padding: 16px;
  min-height: 360px;
}
.org-flow-inner {
  transform-origin: top left;
  transition: transform 0.2s ease;
}


/* ============================================================================
   UNIFORM ROUNDED APPLE LIQUID GLASS & ACCURATE DARK/LIGHT DROPDOWN SYSTEM
   ============================================================================ */

/* 1. Refined Rounded Corners Across Every Surface & Control */
.product-frame,
.modal-box,
.copilot-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.bento-card,
.org-flow-stage {
  border-radius: var(--radius-lg);
}

.drawer-panel {
  border-top-left-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
}

.bento-quiet,
.dropzone-box,
.segmented,
.toast,
.waterfall-bar,
.copilot-msg,
pre.code-block,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea,
.btn {
  border-radius: var(--radius-md);
}

.btn-sm,
.seg-btn,
.icon-btn,
.bar-track,
.bar-fill,
.drawer-nav-item {
  border-radius: var(--radius-sm);
}

.pill,
.role-chip,
.copilot-fab,
.copilot-dot,
.frame-dot,
.glass-slider,
.glass-slider::-webkit-slider-thumb,
.glass-slider::-moz-range-thumb {
  border-radius: var(--radius-pill);
}

/* 2. Uniform Liquid Glass Material Across All Cards, Overlays & Panels */
.bento-card,
.product-frame,
.segmented {
  background: rgba(var(--bg-surface-rgb), var(--glass-surface-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), var(--glass-sheen)), var(--glass-shadow);
}

.bento-quiet {
  background: rgba(var(--bg-quiet-rgb), var(--glass-quiet-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) * 0.75));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) * 0.75));
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.7));
}

.copilot-panel,
.drawer-panel,
.modal-box,
.toast {
  background: rgba(var(--bg-surface-rgb), var(--glass-elevated-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 6px));
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(calc(var(--glass-blur) + 6px));
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 1px 0 rgba(var(--specular-rgb), var(--glass-sheen)), 0 22px 56px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] .copilot-panel,
[data-theme="light"] .drawer-panel,
[data-theme="light"] .modal-box,
[data-theme="light"] .toast {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 44px rgba(15, 23, 42, 0.14);
}

.copilot-header,
.copilot-drop-hint,
.copilot-attach-bar,
.copilot-input-row {
  background: rgba(var(--bg-quiet-rgb), var(--glass-elevated-alpha));
}

.copilot-quickbar,
.copilot-messages {
  background: transparent;
}

.copilot-msg.assistant {
  background: rgba(var(--bg-quiet-rgb), var(--glass-elevated-alpha));
}

/* Smooth Accent Framing for Rounded Cards */
.accent-cyan {
  border-top: 2px solid var(--baltic-cyan);
  border-color: rgba(6, 182, 212, 0.32);
  border-top-color: var(--baltic-cyan);
}
.accent-blue {
  border-top: 2px solid var(--un-blue);
  border-color: rgba(0, 158, 219, 0.32);
  border-top-color: var(--un-blue);
}
.accent-amber {
  border-top: 2px solid var(--sovereign-amber);
  border-color: rgba(217, 119, 6, 0.34);
  border-top-color: var(--sovereign-amber);
}

/* 3. Uniform, Accurate Dropdowns (<select> & <option>) in Dark & Light Modes */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--hairline-strong);
  padding-right: 34px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 12px;
}

[data-theme="light"] select {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select:hover {
  border-color: var(--baltic-cyan);
}

select option,
select optgroup {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

[data-theme="light"] select option,
[data-theme="light"] select optgroup {
  background-color: #FFFFFF;
  color: #0F172A;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
textarea {
  background-color: var(--bg-input);
  color: var(--text-primary);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
  opacity: 0.9;
}

/* Smooth hover tint inside drawers & sidebar nav items */
.drawer-nav-item {
  padding: 10px 10px;
  border-bottom: none;
  margin-bottom: 2px;
}
.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: var(--hover-tint);
  padding-left: 12px;
}


/* ---- INTERACTIVE DRAG & DROP FLOWCHART NODES & PERSON CHIPS ---- */
.flow-dept-node {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  background: rgba(var(--bg-surface-rgb), var(--glass-surface-alpha));
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.flow-dept-node:hover {
  border-color: var(--baltic-cyan);
}
.flow-dept-node.selected {
  border: 1.5px solid var(--sovereign-amber);
  background: rgba(217, 119, 6, 0.11);
}
.flow-dept-node.sub-node {
  padding: 9px 10px;
  background: rgba(var(--bg-quiet-rgb), var(--glass-quiet-alpha));
}
.flow-dept-node.drop-active {
  border: 2px dashed var(--sovereign-amber) !important;
  background: rgba(217, 119, 6, 0.2) !important;
  transform: scale(1.01);
}
.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.12);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  cursor: grab;
  user-select: none;
}
.person-chip:active {
  cursor: grabbing;
}


/* ---- Z-INDEX FIX: HAMBURGER MENU & MODALS ALWAYS ABOVE AI COPILOT + BALANCED SYMMETRICAL FABS ---- */
.drawer-backdrop { z-index: 1050 !important; }
.modal-backdrop { z-index: 1120 !important; }
.copilot-fab { z-index: 880 !important; }
.copilot-panel {
  z-index: 890 !important;
  right: 20px !important;
  bottom: 82px !important;
}
.toast-stack { z-index: 1260 !important; }

.ticket-fab,
.copilot-fab {
  position: fixed !important;
  bottom: 20px !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  background: rgba(var(--bg-surface-rgb), var(--glass-elevated-alpha)) !important;
  backdrop-filter: saturate(var(--glass-sat)) blur(18px) !important;
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(18px) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease !important;
}
.ticket-fab {
  left: 20px !important;
  right: auto !important;
  z-index: 1220;
  border: 1.5px solid rgba(245, 158, 11, 0.65) !important;
}
.copilot-fab {
  right: 20px !important;
  left: auto !important;
  border: 1.5px solid rgba(6, 182, 212, 0.70) !important;
}
.ticket-fab:hover,
.copilot-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}
.ticket-fab:hover {
  border-color: #F59E0B !important;
}
.copilot-fab:hover {
  border-color: #38BDF8 !important;
}
.fab-icon-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.22));
}
.ticket-popover {
  position: fixed;
  left: 20px;
  bottom: 82px;
  width: min(370px, calc(100vw - 40px));
  z-index: 1230;
  border-radius: var(--radius-lg);
  background: rgba(var(--bg-surface-rgb), var(--glass-elevated-alpha));
  backdrop-filter: saturate(var(--glass-sat)) blur(22px);
  -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(22px);
  border: 1.5px solid var(--sovereign-amber);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.ticket-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(var(--bg-quiet-rgb), var(--glass-elevated-alpha));
}

/* Execution Mode Badges (⚡ Embedded / 🖥 Local-MCP / ☁ Cloud) */
.exec-badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--hairline-strong);
}
.exec-embedded { color: var(--success); border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.08); }
.exec-local { color: var(--baltic-cyan); border-color: rgba(6, 182, 212, 0.45); background: rgba(6, 182, 212, 0.08); }
.exec-cloud-off { color: var(--text-muted); border-color: var(--hairline); opacity: 0.8; }
.exec-cloud-on { color: var(--sovereign-amber); border-color: rgba(217, 119, 6, 0.5); background: rgba(217, 119, 6, 0.1); }


/* ============================================================================
   APPLE HIG FLUID SPRING + GOOGLE MATERIAL 3 MOTION + WCAG 2.2 ACCESSIBILITY
   ============================================================================ */

:root {
  --ease-apple-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-m3-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-m3-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur-med: 240ms;
  --dur-slow: 360ms;
  --focus-ring: #38BDF8;
  --a11y-font-scale: 1;
}

html {
  font-size: calc(16px * var(--a11y-font-scale));
  scroll-behavior: smooth;
}

/* Keyboard-accessible brand button styling */
button.nav-brand {
  background: transparent;
  border: none;
  padding: 4px 6px;
  margin: -4px -6px;
  color: inherit;
  font: inherit;
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-apple-spring), opacity var(--dur-fast) ease;
}
button.nav-brand:hover { opacity: 0.92; }
button.nav-brand:active { transform: scale(0.97); }

/* --- 1. SCREEN READER ONLY & SKIP-TO-MAIN-CONTENT LINK (WCAG 2.2) --- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--un-blue);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: top var(--dur-fast) var(--ease-apple-spring);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

/* --- 2. WCAG 2.2 KEYBOARD FOCUS RINGS (HIGH CONTRAST, ZERO MOUSE NOISE) --- */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.22) !important;
}
[data-theme="light"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #005FCC !important;
  box-shadow: 0 0 0 5px rgba(0, 95, 204, 0.20) !important;
}
main#appRoot:focus {
  outline: none;
}

/* --- 3. PAGE & VIEW CHOREOGRAPHY (GOOGLE MATERIAL 3 EMPHASIZED + APPLE SPRING) --- */
@keyframes m3PageEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.996);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerSlideIn {
  from {
    opacity: 0.4;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popoverSpringIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-main.page-enter {
  animation: m3PageEnter var(--dur-med) var(--ease-m3-emphasized) both;
}

/* Staggered smooth Bento card reveal */
.bento-card {
  transition:
    transform var(--dur-med) var(--ease-apple-spring),
    border-color var(--dur-fast) var(--ease-m3-standard),
    box-shadow var(--dur-med) var(--ease-apple-spring),
    background-color var(--dur-fast) ease,
    opacity var(--dur-med) var(--ease-m3-emphasized);
}
.bento-card.in-view {
  animation: m3PageEnter var(--dur-slow) var(--ease-apple-spring) both;
  animation-delay: calc(var(--stagger-i, 0) * 32ms);
}
.bento-card:hover {
  transform: translateY(-2px);
}

/* Smooth Two-Phase Slide-In & Slide-Out Hamburger Drawer (Apple Spring Sheet) */
.drawer-backdrop {
  opacity: 0;
  transition: opacity 240ms var(--ease-m3-standard);
}
.drawer-backdrop.drawer-open {
  opacity: 1;
}
.drawer-panel {
  transform: translateX(100%);
  transition: transform 320ms var(--ease-apple-spring);
  will-change: transform;
}
.drawer-backdrop.drawer-open .drawer-panel {
  transform: translateX(0);
}

.modal-backdrop {
  animation: backdropFadeIn 160ms ease-out both;
}
.modal-box {
  animation: modalPopIn 240ms var(--ease-apple-spring) both;
}
.copilot-panel,
.ticket-popover,
.ticket-studio-panel {
  transform-origin: bottom center;
  animation: popoverSpringIn 240ms var(--ease-apple-spring) both;
}
.toast {
  animation: toastSlideIn 220ms var(--ease-apple-spring) both;
}

/* Active glowing ring on corner medallions when their window is open */
.copilot-fab.is-open {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 12px 30px rgba(0, 0, 0, 0.36) !important;
}
.ticket-fab.is-open {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28), 0 12px 30px rgba(0, 0, 0, 0.36) !important;
}
.copilot-history-item.active {
  border-color: var(--baltic-cyan) !important;
  background: rgba(6, 182, 212, 0.14) !important;
}

/* Large Crystal-Clear Screenshot Review & Multi-Color Annotation Studio */
.ticket-studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1230;
  background: rgba(5, 8, 15, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: backdropFadeIn 160ms ease-out both;
}
.ticket-studio-panel {
  width: min(880px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: rgba(var(--bg-surface-rgb), 0.97);
  border: 1.5px solid var(--sovereign-amber);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.ticket-annot-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(var(--bg-quiet-rgb), 0.94);
}
.annot-swatch {
  width: 24px;
  height: 24px;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 140ms var(--ease-apple-spring), box-shadow 140ms ease;
}
.annot-swatch:hover {
  transform: scale(1.14);
}
.annot-swatch.active {
  border-color: #FFFFFF;
  transform: scale(1.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.ticket-canvas-stage {
  flex: 1;
  min-height: 240px;
  max-height: 54vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #060911;
}
.ticket-annot-canvas {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

/* --- 4. APPLE + MATERIAL 3 TACTILE BUTTON, TAB & LINK PHYSICS --- */
.btn,
.icon-btn,
.seg-btn,
.nav-link,
.drawer-item,
.footer-link,
button.pill {
  transition:
    transform var(--dur-fast) var(--ease-apple-spring),
    background-color var(--dur-fast) var(--ease-m3-standard),
    border-color var(--dur-fast) var(--ease-m3-standard),
    color var(--dur-fast) var(--ease-m3-standard),
    box-shadow var(--dur-med) var(--ease-apple-spring),
    opacity var(--dur-fast) ease !important;
  will-change: transform;
}

.btn:hover:not(:disabled),
.icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn:active:not(:disabled),
.icon-btn:active:not(:disabled),
.seg-btn:active:not(:disabled),
.nav-link:active,
.drawer-item:active,
button.pill:active {
  transform: scale(0.97) !important;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
}

.seg-btn.active,
.nav-link.active {
  box-shadow: 0 2px 10px rgba(0, 158, 219, 0.22);
}

.drawer-item:hover {
  transform: translateX(3px);
}

/* Comfortable WCAG 2.2 minimum target sizes */
.btn,
.icon-btn,
.seg-btn,
.nav-link {
  min-height: 36px;
}
.btn-sm {
  min-height: 32px;
}

/* --- 5. VISUAL ACCESSIBILITY MODES (HIGH CONTRAST • READING COMFORT • REDUCED MOTION) --- */
html[data-contrast="high"] {
  --glass-blur: 0px !important;
  --glass-surface-alpha: 1 !important;
  --glass-quiet-alpha: 1 !important;
  --glass-elevated-alpha: 1 !important;
  --glass-nav-alpha: 1 !important;
  --glass-ambient-opacity: 0 !important;
  --hairline: rgba(255, 255, 255, 0.45);
  --hairline-strong: rgba(255, 255, 255, 0.80);
  --text-primary: #FFFFFF;
  --text-secondary: #F1F5F9;
  --text-muted: #E2E8F0;
  --bg-canvas: #000000;
  --bg-surface: #0A0E17;
  --bg-quiet: #111827;
  --bg-surface-rgb: 10, 14, 23;
  --bg-quiet-rgb: 17, 24, 39;
  --focus-ring: #FACC15;
}
html[data-contrast="high"][data-theme="light"] {
  --hairline: rgba(0, 0, 0, 0.45);
  --hairline-strong: rgba(0, 0, 0, 0.85);
  --text-primary: #000000;
  --text-secondary: #111827;
  --text-muted: #1F2937;
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-quiet: #F3F4F6;
  --bg-surface-rgb: 255, 255, 255;
  --bg-quiet-rgb: 243, 244, 246;
  --focus-ring: #0044CC;
}
html[data-contrast="high"] .bento-card,
html[data-contrast="high"] .bento-quiet,
html[data-contrast="high"] .btn,
html[data-contrast="high"] .pill,
html[data-contrast="high"] select,
html[data-contrast="high"] input,
html[data-contrast="high"] textarea {
  border-width: 1.5px !important;
}

/* Real Universal Continuous Text Size Slider (85%..135% across all px & rem elements) */
html[data-font-scale] #appRoot,
html[data-font-scale] .editorial-footer {
  zoom: var(--a11y-font-scale, 1);
}
html[data-font-scale="1.12"] #appRoot,
html[data-font-scale="1.12"] .editorial-footer {
  zoom: 1.12;
}
html[data-font-scale="1.25"] #appRoot,
html[data-font-scale="1.25"] .editorial-footer {
  zoom: 1.25;
}

/* ============================================================================
   TRUE 360-DEGREE CURVED OPTICAL-LENS FLUID LIQUID GLASS ENGINE
   Omnidirectional convex Fresnel edge rim + curved specular dome + fluid sheen
   ============================================================================ */
.bento-card,
.bento-quiet,
.product-frame,
.drawer-panel,
.modal-sheet,
.copilot-panel {
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  border: 1px solid rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.48));
  box-shadow:
    inset 0 1.5px 1.5px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.95)),
    inset 1.5px 0 3px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.42)),
    inset -1.5px 0 3px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.38)),
    inset 0 -2px 5px rgba(6, 182, 212, calc(var(--glass-level) * 0.22)),
    inset 0 0 18px rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.14)),
    0 14px 36px rgba(2, 6, 23, calc(0.18 + var(--glass-level) * 0.18)),
    0 2px 6px rgba(0, 158, 219, calc(var(--glass-level) * 0.12));
  background-image:
    radial-gradient(130% 68% at 50% -18%, rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.52)), transparent 58%),
    radial-gradient(115% 58% at 50% 118%, rgba(6, 182, 212, calc(var(--glass-level) * 0.15)), transparent 54%),
    radial-gradient(55% 120% at -10% 50%, rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.22)), transparent 52%),
    radial-gradient(55% 120% at 110% 50%, rgba(0, 158, 219, calc(var(--glass-level) * 0.12)), transparent 52%);
}

.product-frame,
.modal-sheet {
  border-radius: var(--radius-xl);
}

.apple-nav {
  background-image:
    linear-gradient(180deg, rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.34)) 0%, transparent 65%),
    radial-gradient(80% 140% at 50% 110%, rgba(6, 182, 212, calc(var(--glass-level) * 0.14)), transparent 65%);
  box-shadow:
    inset 0 1px 0 rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.7)),
    inset 0 -1.5px 3px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.38)),
    0 8px 26px rgba(2, 6, 23, calc(0.12 + var(--glass-level) * 0.14));
}

.btn,
.icon-btn,
.pill {
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 1px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.68)),
    inset 0 -1px 2px rgba(6, 182, 212, calc(var(--glass-level) * 0.14));
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 20%), rgba(var(--specular-rgb), calc(var(--glass-sheen) * 0.32)), transparent 65%);
  opacity: 0.75;
  transition: opacity 0.28s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 2px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 1.1)),
    inset 2px 0 4px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.5)),
    inset -2px 0 4px rgba(var(--specular-rgb), calc(var(--glass-lens-rim) * 0.45)),
    inset 0 -2.5px 6px rgba(6, 182, 212, calc(var(--glass-level) * 0.3)),
    0 18px 44px rgba(2, 6, 23, calc(0.24 + var(--glass-level) * 0.20)),
    0 4px 12px rgba(0, 158, 219, calc(var(--glass-level) * 0.18));
}

[data-theme="light"] .bento-card,
[data-theme="light"] .bento-quiet,
[data-theme="light"] .product-frame,
[data-theme="light"] .drawer-panel,
[data-theme="light"] .modal-sheet {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, calc(var(--glass-lens-rim) * 1.05)),
    inset 2px 0 4px rgba(255, 255, 255, calc(var(--glass-lens-rim) * 0.72)),
    inset -2px 0 4px rgba(255, 255, 255, calc(var(--glass-lens-rim) * 0.65)),
    inset 0 -2px 5px rgba(0, 158, 219, calc(var(--glass-level) * 0.14)),
    0 12px 32px rgba(15, 23, 42, calc(0.06 + var(--glass-level) * 0.06));
}

/* ============================================================================
   EQUIVOKALPOLYTEK ZERO-LAG 3-FOLD SIMULTANEOUS CENTER-OUT LOGO INTRO
   100% GPU compositor-only (transform + opacity + SVG stroke-dashoffset — ZERO blur lag!)
   ============================================================================ */
body.intro-active .apple-nav,
body.intro-active .app-main,
body.intro-active .editorial-footer {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.apple-nav,
.app-main,
.editorial-footer {
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.evp-intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0F172A;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: opacity, transform;
  transition:
    display,
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.72s;
  transition-behavior: allow-discrete;
  cursor: pointer;
}

@starting-style {
  .evp-intro-splash {
    opacity: 0;
  }
}

.evp-intro-splash:where([hidden], [data-closing]) {
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(0.97);
  pointer-events: none;
}

.evp-intro-splash[hidden] {
  display: none;
}

.evp-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.evp-intro-svg {
  width: 176px;
  height: 176px;
  margin-bottom: 22px;
  overflow: visible;
}

.evp-node-box,
.evp-amber-needle {
  transform-box: fill-box;
  transform-origin: center;
}

.evp-intro-wordmark {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F8FAFC;
}

.evp-intro-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #94A3B8;
  margin-top: 8px;
}

.evp-intro-skip {
  margin-top: 26px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #CBD5E1;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  cursor: pointer;
}
.evp-intro-skip:hover {
  background: rgba(248, 250, 252, 0.16);
  color: #F8FAFC;
}

@keyframes evpDrawBranch {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
@keyframes evpDrawOrbit {
  0%   { stroke-dashoffset: 360; opacity: 0.25; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes evpNodeLockIn {
  0%   { opacity: 0; transform: scale(0.45); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes evpNeedleRise {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0) scaleY(0.5); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
}
@keyframes evpWordRise {
  0%   { opacity: 0; transform: translate3d(0, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .evp-intro-splash:not(.no-motion) .evp-branch-draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: evpDrawBranch 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
  }
  .evp-intro-splash:not(.no-motion) .evp-orbit-ring {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: evpDrawOrbit 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
  }
  .evp-intro-splash:not(.no-motion) .evp-orbit-ring-inner {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: evpDrawOrbit 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
  }
  .evp-intro-splash:not(.no-motion) .evp-amber-needle {
    animation: evpNeedleRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }
  .evp-intro-splash:not(.no-motion) .evp-node-box {
    animation: evpNodeLockIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
  }
  .evp-intro-splash:not(.no-motion) .evp-intro-wordmark {
    animation: evpWordRise 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
  }
  .evp-intro-splash:not(.no-motion) .evp-intro-sub {
    animation: evpWordRise 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.90s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evp-intro-splash,
  .apple-nav,
  .app-main,
  .editorial-footer {
    transition-duration: 0.16s;
  }
  .evp-intro-splash:where([hidden], [data-closing]) {
    transform: none;
  }
}

/* Brand Editorial Card Photos (16:9 zero-CLS, inherits Fluid Lens vs Sharp 0px geometry) */
.brand-card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  margin-bottom: 14px;
}

.bento-card.accent-emerald {
  border-top: 2px solid var(--success);
}

/* Strict Brand Book 0px Sharp 90-Degree Geometry Mode (toggled in Appearance drawer) */
html[data-geometry="sharp"] {
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --radius-pill: 0px;
}
html[data-geometry="sharp"] .bento-card,
html[data-geometry="sharp"] .bento-quiet,
html[data-geometry="sharp"] .product-frame,
html[data-geometry="sharp"] .drawer-panel,
html[data-geometry="sharp"] .modal-sheet,
html[data-geometry="sharp"] .copilot-panel,
html[data-geometry="sharp"] .btn,
html[data-geometry="sharp"] .icon-btn,
html[data-geometry="sharp"] .pill,
html[data-geometry="sharp"] input,
html[data-geometry="sharp"] select,
html[data-geometry="sharp"] textarea {
  border-radius: 0px !important;
  corner-shape: square !important;
}

/* Reading Comfort Mode (Unmistakably calm Dyslexia / ADHD / Low-Vision Typography & Spacing) */
html[data-reading="comfort"] {
  --font-body: Verdana, "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Verdana, "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-reading="comfort"] #appRoot,
html[data-reading="comfort"] .editorial-footer {
  font-family: Verdana, -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.14em !important;
  line-height: 1.85 !important;
}
html[data-reading="comfort"] #appRoot p,
html[data-reading="comfort"] #appRoot li,
html[data-reading="comfort"] #appRoot td,
html[data-reading="comfort"] #appRoot th,
html[data-reading="comfort"] #appRoot .card-copy,
html[data-reading="comfort"] #appRoot .page-lead,
html[data-reading="comfort"] #appRoot .hero-sub {
  font-family: Verdana, -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.88 !important;
  letter-spacing: 0.045em !important;
  word-spacing: 0.16em !important;
  max-width: 68ch;
}
html[data-reading="comfort"][data-theme="light"] {
  --bg-canvas: #FBF7EE;
  --bg-surface: #FFFDF8;
  --bg-quiet: #F4EFE3;
  --bg-surface-rgb: 255, 253, 248;
  --bg-quiet-rgb: 244, 239, 227;
}
html[data-reading="comfort"][data-theme="dark"] {
  --bg-canvas: #121620;
  --bg-surface: #181E2B;
  --bg-quiet: #1F2636;
  --bg-surface-rgb: 24, 30, 43;
  --bg-quiet-rgb: 31, 38, 54;
}

/* Respect OS prefers-reduced-motion AND manual Reduce Motion toggle */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *,
  html:not([data-motion="full"]) *::before,
  html:not([data-motion="full"]) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
