html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

html [data-bxt-theme-toggle] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 27%, transparent);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  vertical-align: middle;
}
html [data-bxt-theme-toggle]:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
html [data-bxt-theme-toggle]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html [data-bxt-theme-toggle] svg { display: block; width: 21px; height: 21px; pointer-events: none; }
[data-bxt-theme-slot] { display: flex; align-items: center; gap: 8px; }

html[data-bxt-theme="store"][data-theme="light"] {
  --bg: #f2f6fd;
  --surface: #fff;
  --surface2: #e6eefb;
  --line: #ccd8ea;
  --ink: #142037;
  --muted: #4b5c76;
  --brand: #38bdf8;
  --brand2: #9aa0ff;
  --ok: #087558;
}
[data-bxt-theme="store"][data-theme="light"] header { background: #f6f9fff2; }
[data-bxt-theme="store"][data-theme="light"] .hero { color: #f8fafc; }
[data-bxt-theme="store"][data-theme="light"] .hero .btn2 { color: #e2e8f0; }
[data-bxt-theme="store"][data-theme="light"] :is(.nav-links a:hover, .srv button) { color: var(--ink); }
[data-bxt-theme="store"][data-theme="light"] :is(.srv-price, .dmodal-price, .chat-links a) { color: #075985; }
[data-bxt-theme="store"][data-theme="light"] :is(.field input, .field select, .field textarea, .bank-box, .chat-in input, .dmodal-stage) { background: var(--bg); color: var(--ink); }
[data-bxt-theme="store"][data-theme="light"] :is(.chat-box, .dmodal, .bmodal) { background: var(--surface); color: var(--ink); }
[data-bxt-theme="store"][data-theme="light"] .dmodal-bar { background: var(--surface2); }
[data-bxt-theme="store"][data-theme="light"] :is(.mob, .msg.bot, .btn-ghost) { color: var(--ink); }

html[data-bxt-theme="physio"][data-theme="dark"] {
  --bg: #141b18;
  --surface: #202a25;
  --surface-alt: #2b3931;
  --ink: #f2f5ee;
  --muted: #bfcec4;
  --line: #43574c;
  --primary: #274e3d;
  --primary-soft: #344a40;
  --accent: #e99c82;
  --accent-soft: #4b322b;
}
[data-bxt-theme="physio"][data-theme="dark"] header { background: #141b18f2; }
[data-bxt-theme="physio"][data-theme="dark"] :is(.hero-badge, .field input, .field select, .gal-card) { background: var(--surface); }
[data-bxt-theme="physio"][data-theme="dark"] .body-stage { background: linear-gradient(180deg, #27382f, #1b2a24); }
[data-bxt-theme="physio"][data-theme="dark"] :is(.exercise-card, .zone-btn, .slot) { border-color: var(--line); }

html[data-bxt-theme="boutique"][data-theme="dark"] {
  --bg: #191714;
  --stone: #2a2620;
  --ink: #f7f0e6;
  --muted: #c7baaa;
  --line: #544a3d;
  --gold: #d4b77a;
}
[data-bxt-theme="boutique"][data-theme="dark"] header { background: #191714f5; }
[data-bxt-theme="boutique"][data-theme="dark"] :is(.hero-caption, .drawer, .look-card) { background: var(--stone); color: var(--ink); }
[data-bxt-theme="boutique"][data-theme="dark"] .logo svg [stroke="#111"] { stroke: currentColor; }
[data-bxt-theme="boutique"][data-theme="dark"] :is(.bag-btn, .cta-ink, .flt.active, .add-btn, .promo-row button) { color: var(--bg); }
[data-bxt-theme="boutique"][data-theme="dark"] :is(.wish-btn, .promo-row input) { background: var(--stone); color: var(--ink); }

html[data-bxt-theme="salon"][data-theme="dark"] {
  --bg: #21171b;
  --card: #302229;
  --blush: #483039;
  --ink: #fff0ed;
  --muted: #d7babe;
  --line: #60434b;
  --rose: #eea4b1;
  --gold: #dfb77d;
  --plum: #502a38;
}
[data-bxt-theme="salon"][data-theme="dark"] header { background: #21171bf2; }
[data-bxt-theme="salon"][data-theme="dark"] :is(.hero-tag, .gcard, .card) { background: var(--card); }
[data-bxt-theme="salon"][data-theme="dark"] .sms-box { border-color: var(--line); color: var(--ink); }

html[data-bxt-theme="voyager"][data-theme="dark"] {
  --bg: #1a211b;
  --card: #252f26;
  --ink: #f0f3e8;
  --muted: #c1c9b9;
  --line: #475747;
  --ochre: #f2ad57;
  --forest: #2d5947;
  --water: #8cb7fd;
}
[data-bxt-theme="voyager"][data-theme="dark"] header { background: #1a211bf2; }
[data-bxt-theme="voyager"][data-theme="dark"] :is(.lang-sw, .weather-pill, .leaflet-popup-content-wrapper, .leaflet-popup-tip) { background: var(--card); color: var(--ink); }
[data-bxt-theme="voyager"][data-theme="dark"] .plan-list button { color: #ffacaa; }

html[data-bxt-theme="golazo"][data-theme="light"] {
  --bg: #eef5ee;
  --card: #fff;
  --card2: #e2eee3;
  --line: #b9d0c0;
  --ink: #152b20;
  --muted: #466553;
  --lime: #467b13;
  --red: #be2636;
  --gold: #855c08;
}
[data-bxt-theme="golazo"][data-theme="light"] :is(.demo-bar, .hero-banner) { background: var(--card2); }
[data-bxt-theme="golazo"][data-theme="light"] :is(.demo-bar a, .preset.on) { background: #84cc16; }
[data-bxt-theme="golazo"][data-theme="light"] .score-inputs input { background: var(--card); color: var(--ink); }

html[data-bxt-theme="edgebet"][data-theme="light"] {
  --bg: #eff4fa;
  --cell: #fff;
  --cell2: #e3ebf6;
  --line: #bccbdc;
  --ink: #17253c;
  --muted: #4e607b;
  --em: #087557;
  --amb: #875614;
  --red: #b82143;
  --sky: #0c6696;
}
[data-bxt-theme="edgebet"][data-theme="light"] :is(.demo-bar, .q-3d-bar) { background: var(--cell2); }
[data-bxt-theme="edgebet"][data-theme="light"] .demo-bar a { background: #34d399; }
[data-bxt-theme="edgebet"][data-theme="light"] :is(input, select) { color: var(--ink); background: var(--cell); }

html[data-bxt-theme="edupulse"][data-theme="dark"] {
  --bg: #141626;
  --card: #20243b;
  --line: #424869;
  --ink: #f1f2ff;
  --muted: #bec5e0;
  --indigo: #6562da;
  --indigo-soft: #353461;
  --mint: #4adead;
  --amber: #fbbf60;
}
[data-bxt-theme="edupulse"][data-theme="dark"] :is(.student-pill, .add-g button) { background: var(--card); color: var(--ink); }
[data-bxt-theme="edupulse"][data-theme="dark"] .quiz-q { color: var(--ink); }

html[data-bxt-theme="aura"][data-theme="light"] {
  --bg: #eff2f6;
  --chassis: #e6ebf2;
  --panel: #fff;
  --line: #c2ccda;
  --ink: #1a283b;
  --muted: #4d5e75;
  --warm: #925710;
  --cool: #07688c;
  --ok: #147943;
}
[data-bxt-theme="aura"][data-theme="light"] :is(.demo-bar, .aura-3d-box) { background: var(--chassis); }
[data-bxt-theme="aura"][data-theme="light"] .demo-bar a { background: #fbbf24; }
[data-bxt-theme="aura"][data-theme="light"] :is(.top, .room-tab, .chip) { color: var(--ink); }

html[data-bxt-theme="home"][data-theme="light"] {
  --bg: #edf5f2;
  --card: #fff;
  --card2: #e4eee9;
  --line: #c2d5cd;
  --ink: #19342d;
  --muted: #4e6a62;
  --warm: #e7a32b;
  --cool: #66c6e7;
}
[data-bxt-theme="home"][data-theme="light"] .top { background: #eff7f3f5; }
[data-bxt-theme="home"][data-theme="light"] :is(.ic-btn, .room-tab, .log-box summary) { color: var(--ink); }
[data-bxt-theme="home"][data-theme="light"] .room-tab.active { color: #fff; background: #23634e; border-color: #23634e; }
[data-bxt-theme="home"][data-theme="light"] .live-pill { color: #087354; }
[data-bxt-theme="home"][data-theme="light"] :is(.live-pill.off, .ic-btn.out) { color: #a92945; }
[data-bxt-theme="home"][data-theme="light"] :is(a, label) { color: var(--ink); }
[data-bxt-theme="home"][data-theme="light"] input { color: var(--ink); background: var(--card); }

[data-bxt-theme="admin"][data-theme="light"] body { background: #eef4ff; color: #192942; }
[data-bxt-theme="admin"][data-theme="light"] :is(main, .card, input) { background: #fff; color: #192942; }
[data-bxt-theme="admin"][data-theme="light"] :is(.brand, label, p) { color: #3f5675; }

[data-bxt-theme="librusik-auth"] .auth-brand { margin-bottom: 0; }
[data-bxt-theme="librusik-auth"] .bxt-auth-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
[data-bxt-theme="librusik-auth"] .bxt-auth-menu [data-bxt-theme-toggle] { color: var(--auth-ink); }

html[data-bxt-theme="typer"][data-theme="light"] {
  --bg: #eef2f8;
  --glass: #fff;
  --glass2: #e4ebf5;
  --glass3: #f4f7fb;
  --hairline: #c7d2e2;
  --hairline2: #d9e1ed;
  --t1: #1c2b40;
  --t2: #455a73;
  --t3: #526680;
  --t4: #66778a;
  --gold: #89600c;
  --gold-d: #73500b;
  --green: #0c7334;
  --green-d: #07592a;
  --red-t: #b72031;
  --draw: #536271;
  --draw-d: #566779;
}
[data-bxt-theme="typer"][data-theme="light"] body {
  background: radial-gradient(1100px 540px at 70% -12%, #ffebbc, transparent 68%), var(--bg);
  color: var(--t1);
}
[data-bxt-theme="typer"][data-theme="light"] :is(.topbar, .bnav, .sheet) {
  background: var(--glass);
  color: var(--t1);
  border-color: var(--hairline);
}
[data-bxt-theme="typer"][data-theme="light"] :is(.bnav, .sheet) { box-shadow: 0 8px 30px #31476226; }

@media (max-width: 540px) {
  [data-bxt-theme="boutique"] .nav { gap: 6px; }
  [data-bxt-theme="boutique"] .logo { gap: 6px; }
  [data-bxt-theme="boutique"] .logo svg { flex-shrink: 0; }
  [data-bxt-theme="boutique"] .logo span { font-size: clamp(16px, 5vw, 21px); letter-spacing: .08em; line-height: 1.1; }
  [data-bxt-theme="boutique"] .bag-btn { padding-inline: 9px; letter-spacing: .07em; white-space: nowrap; }
  [data-bxt-theme="boutique"] [data-bxt-theme-slot] { gap: 5px; }
  [data-bxt-theme="home"] .top .shell { flex-wrap: wrap; }
  [data-bxt-theme="home"] .top-acts { flex-wrap: wrap; }
}

[data-bxt-theme="admin"][data-theme="light"] main { background: transparent; }
[data-bxt-theme="admin"][data-theme="light"] :is(.login, .app, .app:hover, .app:focus-within) { background: #fff; }
[data-bxt-theme="admin"][data-theme="light"] :is(a, .ghost, .ghost:hover, .tag, .cta) { color: #155687; }
[data-bxt-theme="admin"][data-theme="light"] :is(button.out, [role="alert"]) { color: #9a2638; }

[data-bxt-theme="home"] .top nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
[data-bxt-theme="home"][data-theme="dark"] .bxt-home-landing { background: #0b0f17; color: #f8fafc; }
[data-bxt-theme="home"][data-theme="dark"] .bxt-home-landing main a { color: #fff; }
.bxt-home-landing .bxt-home-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[data-bxt-theme="typer"] .topbar [data-bxt-theme-toggle] { margin-inline-start: 8px; }
@media (max-width: 440px) {
  [data-bxt-theme="typer"] .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 3px;
  }
  [data-bxt-theme="typer"] .topbar-sub { grid-column: 1; grid-row: 2; }
  [data-bxt-theme="typer"] .topbar [data-bxt-theme-toggle] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

html[data-bxt-theme="typer-demo"][data-theme="light"] {
  --bg: #eef3fc;
  --glass: #fff;
  --glass-2: #e4ecfb;
  --border: #bdcbe3;
  --border-hi: #6389c0;
  --text: #202f49;
  --text-2: #405675;
  --text-3: #516783;
  --blue: #2159a9;
  --cyan: #116480;
  --gold: #80510c;
  --green: #16714c;
  --red: #b62a40;
}
[data-bxt-theme="typer-demo"][data-theme="light"] :is(.app-head, .dock) { background: var(--glass); }
