:root[data-theme="dark"] {
 color-scheme:dark;
 --sb-theme-surface:#252a31;--sb-theme-control:#303640;--sb-theme-line:#46505e;
 --sb-theme-text:#e8ebef;--sb-theme-muted:#b4bcc8;--sb-theme-action:#e8ebef;
 --sb-theme-success:#83d6ab;--sb-theme-warning:#f2c17d;--sb-theme-danger:#f1a0a8;
 --sb-theme-success-surface:#203b32;--sb-theme-warning-surface:#403525;--sb-theme-danger-surface:#442b2e;
 --sb-theme-surface-rgb:37,42,49;
 --sb-color-text:#e8ebef;--sb-color-muted:#b4bcc8;--sb-color-secondary:#c3cbd6;
 --sb-color-action:#e8ebef;--sb-color-action-hover:#fff;--sb-nav-selected:#424a55;
 --sb-surface:#252a31;--sb-surface-page:#1c1f24;--sb-surface-control:#303640;--sb-surface-action:#303640;--sb-surface-focus:#3a4350;
 --sb-color-favorite:#ef7777;--sb-color-success:#83d6ab;--sb-color-warning:#f2c17d;--sb-color-danger:#f1a0a8;--sb-color-brand:#ffb45b;
}
:root[data-theme="light"]{color-scheme:light}
html[data-theme="dark"],html[data-theme="dark"] body.sb-site-layout{background:#1c1f24}
:root .app-header .theme166-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 8px;border:0;border-radius:var(--sb-radius-control,12px);background:transparent;color:var(--sb-color-action,#20242a);font:inherit;white-space:nowrap;cursor:pointer;flex-shrink:0}
:root[data-theme=dark] .app-header .theme166-toggle{color:var(--sb-color-action,#20242a);background:var(--sb-surface-control,#f1f5f9)}
.theme166-toggle svg{width:20px;height:20px;flex:none}
.theme166-toggle:focus-visible{outline:3px solid var(--sb-color-action,#1b56b5);outline-offset:3px}
:root .app-header .theme166-toggle--menu{display:none}
.theme166-wordmark{display:none;font-family:var(--sb-font-family,Arial,sans-serif);font-size:var(--sb-type-metric-size);font-weight:var(--sb-weight-heading);line-height:1;letter-spacing:-1.3px;color:#e8ebef;white-space:nowrap}
.theme166-wordmark span{color:#ffb45b}
:root[data-theme=dark] [data-sb-wordmark]{display:none}
:root[data-theme=dark] .theme166-wordmark{display:inline-block}
@media(max-width:650px){:root .app-header .theme166-toggle--header{display:none}:root .app-header .theme166-toggle--menu:not([hidden]){display:inline-flex;width:100%;justify-content:flex-start}.theme166-wordmark{font-size:var(--sb-type-metric-size)}}
:root .app-header .theme166-toggle[hidden]{display:none!important}
@media print{.theme166-toggle{display:none!important}:root[data-theme=dark]{color-scheme:light;--sb-theme-text:#0f172a;--sb-theme-muted:#475569;--sb-theme-surface:#fff;--sb-theme-control:#f1f5f9;--sb-color-text:#0f172a;--sb-color-muted:#475569;--sb-surface:#fff;--sb-surface-page:#fff}html[data-theme=dark],html[data-theme=dark] body.sb-site-layout{background:#fff}}

:root[data-theme=dark] body.sb-site-layout .sample-card__ribbon{background:rgba(37,42,49,.92)!important;color:#e8ebef!important}

/* SEARCH179: a visible shared search surface; focus glow is diffuse, never a border. */
:root[data-theme=dark] .app-header .header-search .search-box{background:var(--sb-surface-control);box-shadow:none}
:root[data-theme=dark] .app-header .header-search .search-box::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
:root[data-theme=dark] .app-header .header-search .search-box:focus-within::before{box-shadow:0 0 14px rgba(232,235,239,.14)}
