/* ADS theme settings (Light / Dark / System default): header control + menu.
   Colours come from the --ads-* tokens, which the dark theme redefines, so this file needs no dark rules. */
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

.theme-wrapper{position:relative;display:inline-flex}
.ads-theme-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:3000;width:244px;padding:6px;
  background:var(--ads-card,#fff);color:var(--ads-ink,#0f172a);border:1px solid var(--ads-line,#e2e8f0);
  border-radius:10px;box-shadow:0 12px 28px -8px rgba(15,23,42,.28);font-size:12.5px}
.ads-theme-menu-title{padding:6px 8px 4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ads-muted,#64748b)}
.ads-theme-opt{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:8px;
  background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.ads-theme-opt>i:first-child{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;
  background:var(--ads-line-2,#f1f5f9);color:var(--ads-ink-2,#334155);font-size:12px;flex:none}
.ads-theme-opt-text{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.ads-theme-opt-text b{font-weight:600}
.ads-theme-opt-text small{font-size:11px;color:var(--ads-muted,#64748b)}
.ads-theme-check{visibility:hidden;color:var(--ads-green,#0e9f6e);font-size:12px}
.ads-theme-opt:hover{background:var(--ads-line-2,#f1f5f9)}
.ads-theme-opt:focus-visible{outline:2px solid var(--ads-green,#0e9f6e);outline-offset:-2px}
.ads-theme-opt.is-active{background:var(--ads-green-tint,#e7f7f0)}
.ads-theme-opt.is-active>i:first-child{background:var(--ads-green,#0e9f6e);color:#fff}
.ads-theme-opt.is-active .ads-theme-check{visibility:visible}
.ads-theme-menu-note{padding:6px 8px 4px;font-size:11px;color:var(--ads-muted,#64748b);border-top:1px solid var(--ads-line,#e2e8f0);margin-top:4px}
@media (max-width:900px){.ads-theme-menu{position:fixed;top:44px;right:8px}}
@media (prefers-reduced-motion:no-preference){.ads-theme-menu{animation:adsThemeIn .12s ease-out}}
@keyframes adsThemeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
