/* Shared foundation for YKS surfaces that host ODP linked chrome. */
:root {
  color-scheme: light;
  --odp-z-base: 0;
  --odp-z-raised: 10;
  --odp-z-sticky: 100;
  --odp-z-overlay: 800;
  --odp-z-dialog: 1400;
  --odp-z-toast: 1500;
  --odp-z-global-frame: 1200;
  --odp-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.24), 0 0 0 6px rgba(255, 255, 255, 0.9);
  --odp-safe-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

:root[data-theme-resolved="dark"] {
  color-scheme: dark;
  --bg: #07131f;
  --surface: #0c1d2e;
  --card: #102337;
  --border: rgba(184, 207, 226, 0.22);
  --text: #edf6ff;
  --text-muted: #a7b8c9;
  --panel-bg: rgba(16, 35, 55, 0.95);
}

body.odp-linked,
body[data-odp-linked="1"] {
  padding-bottom: var(--odp-safe-bottom);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--odp-focus-ring);
}

.odp-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 1px solid var(--border, rgba(15, 30, 51, 0.16));
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--text, #0f1e33);
  box-shadow: 0 8px 24px rgba(15, 30, 51, 0.08);
  cursor: pointer;
}

.odp-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
