/* Only explicitly owned Studio roots receive tokens or native control styling. */
[data-wn-theme-root] {
  --wn-canvas:#ffffff; --wn-surface:#ffffff; --wn-raised:#ffffff;
  --wn-text:#92278f; --wn-secondary:#92278f; --wn-brand:#92278f;
  --wn-link:#92278f; --wn-focus:#92278f; --wn-divider:#92278f;
  --wn-control-border:#92278f; --wn-success:#176b50; --wn-warning:#795000; --wn-error:#b32424;
}
@media screen {
  [data-wn-theme-root][data-wn-theme="dark"] {
    --wn-canvas:#0e0e11; --wn-surface:#17171c; --wn-raised:#202026;
    --wn-text:#eee9ee; --wn-secondary:#c9c1c9; --wn-brand:#92278f;
    --wn-link:#d38dd0; --wn-focus:#e8afe5; --wn-divider:#482147;
    --wn-control-border:#827387; --wn-success:#84d4b6; --wn-warning:#f1cc7b; --wn-error:#ffaaa8;
    color-scheme:dark;
  }
  [data-wn-theme-root][data-wn-theme="light"] { color-scheme:light; }
}
[data-wn-theme-root] .wn-theme-switch {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:10px; min-width:44px; min-height:44px; padding:8px 4px;
  font-family:"Times New Roman",Times,serif; font-size:16px; font-weight:400; line-height:1.4;
  color:var(--wn-text); background:transparent; border:0; border-radius:4px;
  cursor:pointer; white-space:nowrap; flex-shrink:0; box-shadow:none; text-shadow:none;
}
[data-wn-theme-root] .wn-theme-switch .wn-theme-track {
  display:inline-block; position:relative; width:38px; height:22px; box-sizing:border-box;
  background:var(--wn-raised); border:1px solid var(--wn-control-border); border-radius:12px;
}
[data-wn-theme-root] .wn-theme-track::after {
  content:""; position:absolute; top:3px; left:3px; width:14px; height:14px;
  border-radius:50%; background:var(--wn-brand); transition:transform .12s ease;
}
[data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track { background:var(--wn-brand); border-color:var(--wn-link); }
[data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track::after { background:#eee9ee; transform:translateX(16px); }
[data-wn-theme-root] .wn-theme-switch:focus-visible { outline:2px solid var(--wn-focus) !important; outline-offset:3px; }
[data-wn-theme-root] .wn-theme-switch:hover { color:var(--wn-link); }
@media (prefers-reduced-motion:reduce) { [data-wn-theme-root] .wn-theme-track::after { transition:none; } }
@media (forced-colors:active) {
  [data-wn-theme-root] .wn-theme-switch { color:ButtonText; }
  [data-wn-theme-root] .wn-theme-switch .wn-theme-track { background:Canvas; border:1px solid ButtonText; }
  [data-wn-theme-root] .wn-theme-switch .wn-theme-track::after { background:ButtonText; }
  [data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track { background:Highlight; border-color:Highlight; }
  [data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track::after { background:HighlightText; }
  [data-wn-theme-root] .wn-theme-switch:focus-visible { outline-color:Highlight !important; }
}
@media print { [data-wn-theme-root] .wn-theme-switch { display:none !important; } }
