/* Wisdomverse Visual Evolution, phase 1: additive and regression-friendly. */
:root {
  --wv-radius-xs: 7px;
  --wv-radius-sm: 10px;
  --wv-radius-card: 16px;
  --wv-radius-panel: 20px;
  --wv-space-1: 4px;
  --wv-space-2: 8px;
  --wv-space-3: 12px;
  --wv-space-4: 16px;
  --wv-space-5: 20px;
  --wv-space-6: 24px;
  --wv-space-8: 32px;
  --wv-focus-ring: 0 0 0 3px var(--wv-accent-soft);
  --wv-card-hover-border: color-mix(in srgb, var(--wv-accent) 36%, var(--wv-border));
}
/* Explicitly not resetting controls. Bootstrap modals, editor controls and selectors
   retain their existing component-level overrides. */
html { scroll-padding-top: 24px; }
:where(a, button, input, textarea, select, summary, [role="tab"], [tabindex="0"]):focus-visible {
  outline: 2px solid var(--wv-accent);
  outline-offset: 3px;
}
:where(.app-main, .main-content, main) { min-width: 0; }
:where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) {
  overflow-wrap: break-word;
}
:where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) :where(img, video) {
  max-width: 100%;
}
:where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}
.app-sidebar .app-nav-link:focus-visible,
.sidebar-create:focus-visible,
.sidebar-create-item:focus-visible {
  outline: 2px solid var(--wv-accent);
  outline-offset: 2px;
}
.sidebar-create-panel { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
  :where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) *,
  :where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) *::before,
  :where(.home-v2, .feed-shell, .wv-library, .wv-notebooks, .wv-path) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
