/* KIWIL Theme Studio | Additive stylesheet, active only after admin enables a preset. */
html.ki-theme-on { color-scheme: dark; }
html.ki-theme-on.ki-theme-light { color-scheme: light; }
html.ki-theme-on body { font-family: var(--ki-font); color:var(--base); background-color:var(--ki-bg); }
html.ki-theme-on #header,
html.ki-theme-on .header-fixed {background:var(--ki-header)!important; border-bottom:1px solid var(--ki-border); box-shadow:0 5px 24px rgba(0,0,0,.16);}
html.ki-theme-on .sidebar {background:var(--ki-sidebar)!important; color:var(--base)!important; border-left:1px solid var(--ki-border);}
html.ki-theme-on .sidebar a, html.ki-theme-on .sidebar button { color:var(--base); }
html.ki-theme-on footer.bg-background-secondary {background:var(--secondaryBackground)!important; border-top:1px solid var(--ki-border);}
html.ki-theme-on body > section.fixed.bottom-0.border-t-2,
html.ki-theme-on footer ~ section.fixed.bottom-0.border-t-2 {background:var(--ki-nav)!important; border-top:1px solid var(--ki-border)!important; backdrop-filter:blur(8px);}
html.ki-theme-on .bg-primary {background-color:var(--ki-button);}
html.ki-theme-on button.bg-primary, html.ki-theme-on a.bg-primary,
html.ki-theme-on input[type=submit].bg-primary {color:var(--ki-button-text);}
html.ki-theme-on .border-primary,html.ki-theme-on .focus\:border-primary:focus {border-color:var(--primary);}
html.ki-theme-on input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
html.ki-theme-on select, html.ki-theme-on textarea {color:var(--base); caret-color:var(--primary);}
html.ki-theme-on input::placeholder,html.ki-theme-on textarea::placeholder {color:var(--caption);opacity:.85;}
html.ki-theme-on input:focus-visible, html.ki-theme-on select:focus-visible,
html.ki-theme-on textarea:focus-visible {outline-color:var(--primary);}
html.ki-theme-on .rounded-lg,html.ki-theme-on .rounded-xl,
html.ki-theme-on .rounded-2xl {border-radius:var(--ki-radius);}
html.ki-theme-on [class*="border-separator"], html.ki-theme-on .border-caption {border-color:var(--ki-border);}
html.ki-theme-on .text-primary {color:var(--primary);}
html.ki-theme-on .text-caption {color:var(--caption);}
/* Existing components inherit shared surface variables. Avoid overriding game images or layouts. */
html.ki-theme-on.ki-look-soft .bg-background-secondary,
html.ki-theme-on.ki-look-soft .bg-background-tertiary {box-shadow:0 5px 16px rgba(0,0,0,.13);}
html.ki-theme-on.ki-look-glass .bg-background-secondary,
html.ki-theme-on.ki-look-glass .bg-background-tertiary,
html.ki-theme-on.ki-look-glass #header,
html.ki-theme-on.ki-look-glass .sidebar {backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
html.ki-theme-on.ki-look-glass .rounded-xl,
html.ki-theme-on.ki-look-glass .rounded-2xl {box-shadow:0 8px 24px rgba(0,0,0,.10);}
@media (prefers-reduced-motion:reduce) {html.ki-theme-on *,html.ki-theme-on *::before,html.ki-theme-on *::after{scroll-behavior:auto;}}

/* Catalogue sections previously used a fixed navy background. Make them follow the selected theme. */
html.ki-theme-on .bg-\[\#000134\] {background-color:var(--background)!important;}
