/* ==========================================================================
   Kelbrix LUXURY COLOUR GRADE  (v5.28)  —  "Obsidian & Champagne"
   One file, loaded LAST on every app page, the login and the website.
   It re-grades colour only (palette, surfaces, depth, gold accents).
   Layout, JS and data are untouched.  Remove the <link> to switch it off.

   Palette
     Obsidian  #0c0a07 / #17120b      Champagne  #f6e7b0
     Ivory     #fcfaf5 / #fffdf8      Gold       #d4af37 → #b8902a → #8a6a16
     Line      #eee5cd (gold hairline)
   ========================================================================== */

/* ---------- 1. TOKENS : every light theme gets the luxury grade ---------- */
html[data-theme="luxury"] {
  color-scheme: light;
  --kx-bg:#fcfaf5; --kx-s0:#fffdf8; --kx-s1:#fffdf8; --kx-s2:#f8f3e6;
  --kx-line:#eee5cd; --kx-dim:#a8996f; --kx-muted:#7d6e4c; --kx-soft:#473d28; --kx-ink:#17120a;
  --kx-brand:#b8902a; --kx-brand2:#8a6a16; --kx-accent:#d4af37; --kx-on-brand:#1a1204;
  --kx-glow:rgba(212,175,55,.10); --kx-glow2:rgba(246,231,176,.28);
  --kx-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 10px 30px rgba(60,42,8,.08);
  --kx-shadow-lg:0 26px 60px rgba(60,42,8,.16);
  --kx-bg-rgb:248,244,234; --kx-brand-rgb:184,144,42;
  --kx-top:rgba(255,253,248,.92); --kx-side:#fffdf8;
  --kx-hero:linear-gradient(135deg,#fffdf8 0%,#f8f1dd 55%,#f1e5c2 100%);
  --kx-ok:#2f7d5b; --kx-bad:#a63a2a;
  /* shared tokens used by the older shells */
  --kc-bg:#fcfaf5; --kc-card:#fffdf8; --kc-line:#eee5cd; --kc-ink:#17120a; --kc-ink2:#5b4f35;
  --kc-acc:#9a7416; --kc-acc-soft:#f6ecce;
  --ink:#17120a; --ink2:#5b4f35; --line:#eee5cd;
  --kb-gold-1:#f6e7b0; --kb-gold-2:#d4af37; --kb-gold-3:#8a6a16; --kb-gold:#b8902a;
  --kx47-gold:#b8902a; --kx47-gold-soft:rgba(184,144,42,.34); --kx47-gold-strong:rgba(184,144,42,.8);
  --kx4-g1:#f6e7b0; --kx4-g2:#d4af37; --kx4-g3:#8a6a16;
}
/* dark themes keep their ink but get the same gold */
html[data-theme="midnight"],html[data-theme="obsidian"],html[data-theme="aurora"],html[data-theme="cobalt"]{
  --kx-brand:#d9b84c; --kx-brand2:#b8902a; --kx-accent:#f0d070; --kx-on-brand:#16110a;
  --kx-bg:#0b0906; --kx-s0:#14100a; --kx-s1:#14100a; --kx-s2:#1d170e; --kx-line:#3a2f18;
  --kx-ink:#f7efd9; --kx-soft:#e4d8b8; --kx-muted:#b9a97c; --kx-dim:#8a7c58;
  --kx-brand-rgb:217,184,76;
}

/* gold gradient helpers */
:root{
  --kg-gold:linear-gradient(135deg,#f6e7b0 0%,#e3c566 28%,#c9a227 55%,#9a7416 100%);
  --kg-gold-soft:linear-gradient(135deg,#fbf3d6,#f1e0a3);
  --kg-obs:linear-gradient(135deg,var(--kx-accent,#3b82f6) 0%,var(--kx-brand,#1d4ed8) 100%);
  --kg-hair:rgba(184,144,42,.26);
  --kg-ease:cubic-bezier(.22,.8,.3,1);
}

/* ---------- 2. PAGE CANVAS : ivory with warm light ---------- */
html[data-theme="luxury"] body{
  background:
    radial-gradient(1100px 520px at 88% -8%,rgba(212,175,55,.10),transparent 62%),
    radial-gradient(900px 480px at -6% 4%,rgba(246,231,176,.34),transparent 60%),
    linear-gradient(180deg,#fdfbf7 0%,#fbf8ef 100%) fixed !important;
  color:var(--kx-ink);
}
html body ::selection{background:#e9d48a;color:#1a1204}
html{scrollbar-color:#cdb36a transparent}
html body ::-webkit-scrollbar-thumb{background:linear-gradient(#e3c566,#b8902a);border-radius:99px}

/* ---------- 3. TYPE : serif display + quiet gold eyebrows ---------- */
html:root body :is(h1,h2,.hero h1,.hero #h1,.wel h3,.page-head h1,.module-hero h1){
  font-family:'Playfair Display','Cormorant Garamond',Georgia,serif !important;
  color:var(--kx-ink) !important;-webkit-text-fill-color:var(--kx-ink) !important;
  letter-spacing:-.012em !important;font-weight:600 !important;
}
html:root body .hero h1,html:root body .hero #h1{
  font-size:clamp(30px,3.4vw,42px) !important;
  background:linear-gradient(100deg,#17120a 0%,#17120a 55%,#8a6a16 100%) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}
html:root body .top .tag,html:root body :is(.eyebrow,.crumb,.grp){
  color:#8a6a16 !important;letter-spacing:.2em !important;font-weight:700 !important;
}
html:root body .hero .ln{height:2px;width:72px;border-radius:2px;background:var(--kg-gold);opacity:1}
html:root body .mod span,html:root body .sgl{
  font-family:'Playfair Display',Georgia,serif !important;font-weight:600 !important;
  font-size:15px !important;letter-spacing:.01em !important;color:var(--kx-ink) !important;
}

/* ---------- 4. SURFACES : ivory cards, gold hairline, warm depth ---------- */
html:root body :is(.hero,.sc,.wel,.pill,.mod,.card,.panel,.metric,.kpi,.kpi-card,.stat,.stat-card,.box,.kx-card,.kx-box,.jv-card,.kxv-card,.table-wrap,.hrp-sec){
  background:linear-gradient(180deg,#fffefb 0%,#fefcf6 100%) !important;
  border:1px solid var(--kg-hair) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 12px 32px rgba(60,42,8,.07) !important;
  border-radius:18px;
}
html:root body .hero{
  background:
    radial-gradient(520px 220px at 100% 0%,rgba(212,175,55,.20),transparent 70%),
    linear-gradient(135deg,#fffefb 0%,#fbf5e2 100%) !important;
  border-color:rgba(184,144,42,.5) !important;
  box-shadow:0 1px 0 #fff inset,0 22px 54px rgba(60,42,8,.10) !important;
  position:relative;
}
html:root body .hero::before{content:"";position:absolute;left:24px;right:24px;top:0;height:2px;border-radius:0 0 3px 3px;background:var(--kg-gold);display:block !important}

/* module tiles: obsidian icon well + gold glyph */
html:root body .mod{padding-top:22px !important}
html:root body .mod .emb{
  background:var(--kg-obs) !important;
  border-radius:18px !important;width:60px !important;height:60px !important;
  box-shadow:0 0 0 1px rgba(212,175,55,.55),0 8px 18px rgba(12,10,7,.28),inset 0 1px 0 rgba(246,231,176,.25) !important;
}
html:root body .mod .emb svg,html:root body .mod .ico{width:30px !important;height:30px !important;color:#e3c566}
html:root body .mod .emb svg *{stroke:#e8cd78 !important}
html:root body .mod .emb svg [fill]:not([fill="none"]),
html:root body .mod .emb svg rect{fill:rgba(232,205,120,.16) !important}
html:root body .mod:hover{
  transform:translateY(-6px) !important;border-color:rgba(184,144,42,.8) !important;
  box-shadow:0 1px 0 #fff inset,0 4px 10px rgba(60,42,8,.08),0 26px 48px rgba(184,144,42,.26) !important;
}
html:root body .mod:hover .emb{background:var(--kg-gold) !important}
html:root body .mod:hover .emb svg *{stroke:#1a1204 !important}
html:root body .mod:hover .emb svg rect{fill:rgba(26,18,4,.18) !important}
html:root body .mod i.kc-spot,html:root body .sc i.kc-spot{
  background:radial-gradient(200px circle at var(--mx,50%) var(--my,50%),rgba(212,175,55,.20),transparent 70%) !important}
html:root body .sc:hover,html:root body .card:hover{border-color:rgba(184,144,42,.8) !important;
  box-shadow:0 1px 0 #fff inset,0 18px 40px rgba(184,144,42,.2) !important}
/* suggestion-card icon chips */
html:root body .sc .ic{background:var(--kg-gold-soft) !important;border:1px solid var(--kg-hair);border-radius:14px}

/* quick pills */
html:root body .pill{color:var(--kx-ink) !important;font-weight:600;letter-spacing:.01em;border-radius:999px !important}
html:root body .pill:hover{background:var(--kg-gold-soft) !important;border-color:rgba(184,144,42,.85) !important;
  box-shadow:0 8px 18px rgba(184,144,42,.22) !important}

/* ---------- 5. NAVIGATION ---------- */
/* top pill bar → obsidian glass with a gold indicator */
html:root body .kx-topnav{
  background:linear-gradient(180deg,rgba(28,22,12,.96),rgba(12,10,7,.96)) !important;
  border:1px solid rgba(212,175,55,.5) !important;
  box-shadow:0 14px 36px rgba(12,10,7,.30),inset 0 1px 0 rgba(246,231,176,.18) !important;
}
html:root body .kx-topnav a{color:#d9ccaa !important}
html:root body .kx-topnav a svg{stroke:currentColor}
html:root body .kx-topnav a:hover{color:#f6e7b0 !important}
html:root body .kx-topnav a.on{color:#17110a !important}
html:root body .kx-topnav .kc-ind{background:var(--kg-gold) !important;box-shadow:0 4px 14px rgba(212,175,55,.45)}

/* left rail (home) + sidebar (inner pages): champagne ivory, gold-lit active item */
html:root body :is(.rail,#kxr){
  background:linear-gradient(180deg,#fffdf6 0%,#faf5e6 100%) !important;
  border:1px solid var(--kg-hair) !important;
  box-shadow:0 18px 44px rgba(60,42,8,.14),inset 0 1px 0 #fff !important;
}
html:root body :is(.rail .nv,#kxr .nv){color:#3b3220 !important}
html:root body :is(.rail .nv,#kxr .nv):hover{background:rgba(212,175,55,.10) !important;border-color:var(--kg-hair) !important}
html:root body :is(.rail .nv.on,#kxr .nv.on){
  background:var(--kg-obs) !important;color:#ffffff !important;border-color:rgba(212,175,55,.7) !important;
  box-shadow:0 8px 20px rgba(var(--kx-brand-rgb,37,99,235),.30) !important;
}
html:root body :is(.rail,#kxr) :is(.grp){color:#8a6a16 !important}
html:root body #kxr .kxr-sub{border-left:1px solid rgba(184,144,42,.45) !important}
html:root body #kxr .kxr-sub a{color:#3b3220 !important}
html:root body #kxr .kxr-sub a:hover{background:rgba(212,175,55,.10) !important;border-color:var(--kg-hair) !important}
html:root body #kxr .kxr-sub a.cur{background:var(--kg-obs) !important;color:#ffffff !important;
  border-color:transparent !important;box-shadow:none !important}
html:root body #kxr .kxr-tg{background:#fffdf6 !important;color:#8a6a16 !important}

/* tabs */
html:root body :is(.tabs,[role=tablist],.kx-tabs){background:linear-gradient(180deg,#fffefb,#faf5e6) !important;border-color:var(--kg-hair) !important}
html:root body :is(.tab,[role=tab],.kx-tabs button){background:transparent !important;color:#473d28 !important;border-color:transparent !important}
html:root body :is(.tab.on,.tab.active,[role=tab][aria-selected=true],.kx-tabs button.on){
  background:var(--kg-obs) !important;color:#ffffff !important;border-color:rgba(212,175,55,.7) !important;
  box-shadow:0 8px 18px rgba(var(--kx-brand-rgb,37,99,235),.28) !important}

/* ---------- 6. ACTIONS : gold primary, outlined secondary ---------- */
html:root body :is(button.primary,.btn.primary,a.btn.primary,.btn-primary,.kx-btn.primary,button[type=submit]:not(.ghost):not(.secondary),.kx-btn-gold){
  background:var(--kg-gold) !important;color:#1a1204 !important;
  border:1px solid rgba(138,106,22,.55) !important;border-radius:12px !important;
  font-weight:700 !important;letter-spacing:.03em;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 10px 22px rgba(184,144,42,.32) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
  transition:transform .2s var(--kg-ease),box-shadow .25s,filter .25s !important;
}
html:root body :is(button.primary,.btn.primary,a.btn.primary,.btn-primary,.kx-btn.primary,button[type=submit]:not(.ghost):not(.secondary)):hover{
  transform:translateY(-2px);filter:saturate(1.08) brightness(1.04);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 16px 32px rgba(184,144,42,.42) !important}
html:root body :is(button.ghost,.btn.ghost,.btn.secondary,button.secondary){
  background:transparent !important;color:#473d28 !important;border:1px solid rgba(184,144,42,.55) !important;border-radius:12px !important}
html:root body :is(button.ghost,.btn.ghost,.btn.secondary,button.secondary):hover{
  background:var(--kg-gold-soft) !important;color:#17120a !important;border-color:#b8902a !important}
html:root body :is(button.danger,.btn.danger){background:linear-gradient(135deg,#c4533f,#8e2c1d) !important;color:#fff !important;border-color:#7a2417 !important}

/* ---------- 7. FORMS ---------- */
html:root body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){
  background:#fffefa !important;border:1px solid rgba(184,144,42,.42) !important;border-radius:12px !important;color:var(--kx-ink) !important}
html:root body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):focus{
  border-color:#b8902a !important;box-shadow:0 0 0 4px rgba(212,175,55,.22) !important}
html body :is(input[type=checkbox],input[type=radio],input[type=range],progress){accent-color:#b8902a}

/* ---------- 8. TABLES / BADGES ---------- */
html:root body table{border-collapse:separate;border-spacing:0}
html:root body th{background:linear-gradient(180deg,#fbf4dc,#f7edcc) !important;color:#5d4a14 !important;
  border-bottom:1px solid rgba(184,144,42,.5) !important}
html:root body tbody tr:nth-child(even) td{background:rgba(212,175,55,.045)}
html:root body tbody tr:hover td{background:rgba(212,175,55,.14) !important}
html:root body td{border-bottom:1px solid rgba(184,144,42,.18) !important}
html:root body :is(.badge,.status,.tag.gold){background:var(--kg-gold-soft) !important;border:1px solid var(--kg-hair);color:#5d4a14 !important;border-radius:999px}

/* ---------- 9. LINKS, ALERTS, FLOATERS ---------- */
html body a:not(.btn):not(.mod):not(.nv):not([class*="kx"]){color:#8a6a16}
html body a:not(.btn):not(.mod):not(.nv):not([class*="kx"]):hover{color:#5d4a14}
html:root body :is(.alert,.notice,.msg){border-radius:14px}
/* language switch + Pro Hubs floaters */
html:root body :is(.kx-lang,#kxLang,.lang-switch){background:linear-gradient(180deg,#fffefb,#faf5e6) !important;border:1px solid var(--kg-hair) !important}
html:root body :is(.kx-lang,#kxLang,.lang-switch) .on{background:var(--kg-gold) !important;color:#1a1204 !important}

/* header select (branch) */
html:root body main select,html:root body .top select{background:#fffefa !important;border-color:rgba(184,144,42,.5) !important;color:var(--kx-ink) !important}

/* "Verifying the user" gate + toasts pick up the same grade through tokens */
html body .kxv-card{border:1px solid rgba(184,144,42,.45) !important;box-shadow:0 30px 70px rgba(60,42,8,.22) !important;border-radius:26px}
html body .kxv-badge{background:var(--kg-obs) !important;box-shadow:0 0 0 2px rgba(212,175,55,.7),0 10px 26px rgba(12,10,7,.35)}
html body .kxv-step.done .kxv-dot{background:#b8902a !important;border-color:#b8902a !important}
html body .kxv-step.active .kxv-dot{border-color:#b8902a !important;border-top-color:transparent !important}
html body .kxv-badge:before{border-top-color:#d4af37 !important}

/* custom cursor + ripples: teal → gold */
#kc-cur{border-color:rgba(184,144,42,.6) !important}
#kc-dot{background:#b8902a !important}
.kc-rip{background:rgba(212,175,55,.28) !important}
body.kc-big #kc-cur{background:rgba(212,175,55,.10) !important;border-color:rgba(184,144,42,.85) !important}

/* ---------- 10. DARK THEMES : obsidian + gold ---------- */
html[data-theme="midnight"] body,html[data-theme="obsidian"] body,html[data-theme="aurora"] body,html[data-theme="cobalt"] body{
  background:radial-gradient(900px 480px at 85% -10%,rgba(212,175,55,.13),transparent 60%),linear-gradient(180deg,#100c07,#080604) fixed !important}
html[data-theme="midnight"]:root body :is(.hero,.sc,.wel,.pill,.mod,.card,.panel,.box,.kx-card,.table-wrap),
html[data-theme="obsidian"]:root body :is(.hero,.sc,.wel,.pill,.mod,.card,.panel,.box,.kx-card,.table-wrap),
html[data-theme="aurora"]:root body :is(.hero,.sc,.wel,.pill,.mod,.card,.panel,.box,.kx-card,.table-wrap),
html[data-theme="cobalt"]:root body :is(.hero,.sc,.wel,.pill,.mod,.card,.panel,.box,.kx-card,.table-wrap){
  background:linear-gradient(180deg,#1a140b,#110d07) !important;border-color:rgba(212,175,55,.35) !important;
  box-shadow:0 14px 36px rgba(0,0,0,.5),inset 0 1px 0 rgba(246,231,176,.08) !important}
html[data-theme="midnight"]:root body :is(h1,h2,.hero h1,.mod span),html[data-theme="obsidian"]:root body :is(h1,h2,.hero h1,.mod span),
html[data-theme="aurora"]:root body :is(h1,h2,.hero h1,.mod span),html[data-theme="cobalt"]:root body :is(h1,h2,.hero h1,.mod span){
  color:#f7efd9 !important;-webkit-text-fill-color:#f7efd9 !important;background:none !important}

/* ---------- 11. WEBSITE (index.html + landing pages): blue/teal → gold ---------- */
html body :is(.btn-blue,.btn-primary,.kx-cta,.cta,a.cta,[class*="book"],.nav-cta,.hdr-cta){
  background:var(--kg-gold) !important;color:#1a1204 !important;border:1px solid rgba(138,106,22,.55) !important;
  box-shadow:0 10px 24px rgba(184,144,42,.34) !important}

/* motion respect */
@media (prefers-reduced-motion:reduce){html body *{transition-duration:.01ms !important}}

/* ---------- 12. leftovers: teal accents → gold ---------- */
:root{--acc:#9a7416;--acc-soft:#f6ecce;--kd-emerald:#b8902a}
html:root body main .sgl{color:#8a6a16 !important;letter-spacing:.22em !important;font-family:'Cinzel','Playfair Display',Georgia,serif !important;font-size:12px !important}
html:root body .wel h3 b{font-family:'Playfair Display',Georgia,serif !important;font-weight:700 !important}
html:root body .top > span:first-child::before{background:#b8902a !important}
.nv[data-n]:hover::after{border-color:#b8902a !important}
.nav-subfly a:hover{background:#f6ecce !important;color:#5d4a14 !important}
.mob a:hover{background:#f6ecce !important;border-color:#b8902a !important;color:#5d4a14 !important}
.term i,.term u{color:#9a7416 !important}

/* ---------- 13. .kx-btn family (every list / form page) ---------- */
html:root body .kx-btn,html:root body .kx-ab{
  background:linear-gradient(180deg,#1f180d,#0f0c07) !important;color:#f0dfa6 !important;
  border:1px solid rgba(212,175,55,.6) !important;border-radius:12px !important;font-weight:600 !important;letter-spacing:.02em;
  box-shadow:0 8px 18px rgba(12,10,7,.22),inset 0 1px 0 rgba(246,231,176,.16) !important;
  transition:transform .2s var(--kg-ease),box-shadow .25s,filter .25s !important}
html:root body .kx-btn:hover{transform:translateY(-2px);color:#fff3c4 !important;box-shadow:0 14px 28px rgba(12,10,7,.30),0 0 0 3px rgba(212,175,55,.2) !important}
html:root body .kx-btn.pr,html:root body .kx-btn.primary,html:root body .kx-btn-primary{
  background:var(--kg-gold) !important;color:#1a1204 !important;border-color:rgba(138,106,22,.6) !important;font-weight:700 !important;
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 12px 26px rgba(184,144,42,.38) !important;text-shadow:0 1px 0 rgba(255,255,255,.35)}
html:root body .kx-btn.pr:hover{color:#1a1204 !important;filter:brightness(1.05)}
/* row action icons: quiet, gold on hover */
html:root body .kx-ab{background:transparent !important;border-color:transparent !important;box-shadow:none !important;color:#6b5a2e !important}
html:root body .kx-ab:hover{background:var(--kg-gold-soft) !important;border-color:var(--kg-hair) !important;transform:none}

/* ---------- 14. LOGIN : blue → obsidian & gold ---------- */
html[data-theme="luxury"],html:has(.kl-root){
  --kx-bg:#fcfaf5 !important;--kx-s0:#fffdf8 !important;--kx-s1:#fffdf8 !important;--kx-s2:#f8f3e6 !important;--kx-line:#eee5cd !important;
  --kx-ink:#17120a !important;--kx-soft:#5b4f35 !important;--kx-muted:#7d6e4c !important;
  --kx-brand:#b8902a !important;--kx-brand2:#8a6a16 !important;--kx-accent:#d4af37 !important;--kx-on-brand:#1a1204 !important;
  --kx-glow:rgba(212,175,55,.10) !important;--kx-glow2:rgba(246,231,176,.28) !important}
html body .kl-eyebrow,html body .kl-left h1 em,html body .kl-row a,html body .kl-foot a,html body .kl-card .fine a,
html body .kl-phone-toggle,html body .kl-eye:hover,html body .kl-otp-send:hover,html body .kl-foot svg{color:#8a6a16 !important}
html body .kl-left h1 em{background:var(--kg-gold);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-family:'Playfair Display',Georgia,serif;font-style:italic}
html body .kl-feat span{background:var(--kg-obs) !important;color:#ffffff !important;border:1px solid rgba(212,175,55,.6) !important;box-shadow:0 8px 18px rgba(12,10,7,.25) !important}
html body .kl-field input:focus{border-color:#b8902a !important;box-shadow:0 0 0 4px rgba(212,175,55,.22) !important;background:#fffefa !important}
html body .kl-field input{border-color:rgba(184,144,42,.45) !important;background:#fffefa !important}
html body .kl-row input[type=checkbox]{accent-color:#b8902a}
html body .kl-soc button:hover{border-color:#b8902a !important;box-shadow:0 8px 18px rgba(184,144,42,.22) !important}
html body .kl-err.info{background:#fbf3d6 !important;border-color:#e3c566 !important;color:#5d4a14 !important}
html body .kl-tag i{background:linear-gradient(90deg,#b8902a,transparent) !important}
html body .kl-secure-badge{background:var(--kg-obs) !important;box-shadow:0 0 0 2px rgba(212,175,55,.7),0 14px 30px rgba(12,10,7,.35) !important}
html body .kl-card{border:1px solid rgba(184,144,42,.38) !important;box-shadow:0 1px 0 #fff inset,0 30px 70px rgba(60,42,8,.14) !important}
html body .kl-card h2,html body .kl-left h1{font-family:'Playfair Display',Georgia,serif !important;color:#17120a !important}
/* warm the hero illustration so the blue laptop shot matches the gold grade */
html body :is(.kl-art,.kl-left img[src*="login"],img[src*="art/login"]){filter:sepia(.62) saturate(1.5) hue-rotate(-14deg) brightness(1.02) contrast(1.02)}
html body .kl-root,html[data-theme="luxury"],html[data-theme="luxury"] body{background:
  radial-gradient(1000px 520px at 90% -6%,rgba(212,175,55,.18),transparent 62%),
  radial-gradient(800px 480px at -4% 6%,rgba(246,231,176,.38),transparent 60%),
  linear-gradient(180deg,#fdfbf7,#faf6ea) !important;color:#17120a !important}

/* ---------- v5.29: top / bottom navigation bars removed ---------- */
.kx-topnav,.kx-bottomnav,#kxShellBar,.kx-botnav,.kx-bottom-nav{display:none !important}
html:root body main>.top{margin-top:0 !important}
@media(max-width:900px){html:root body main{padding-top:16px !important;padding-bottom:24px !important}}

/* ==========================================================================
   v5.30 — 7 dashboard themes  (html[data-kgt]; picker = kx-themes.js)
   gold (default) · emerald · sapphire · rose · amethyst  = light (all themes are light)
   Implemented as colour-matrix filters on <html> so every screen follows,
   with media (images, video, canvas) counter-filtered to keep true colours.
   ========================================================================== */
html[data-kgt="emerald"]{filter:hue-rotate(108deg) saturate(.92)}
html[data-kgt="sapphire"]{filter:hue-rotate(172deg) saturate(.95) brightness(1.02)}
html[data-kgt="rose"]{filter:hue-rotate(-62deg) saturate(.95)}
html[data-kgt="amethyst"]{filter:hue-rotate(222deg) saturate(.9) brightness(1.03)}
html[data-kgt="emerald"] :is(img,video,canvas,picture,svg image){filter:hue-rotate(-108deg) saturate(1.08)}
html[data-kgt="sapphire"] :is(img,video,canvas,picture,svg image){filter:hue-rotate(-172deg)}
html[data-kgt="rose"] :is(img,video,canvas,picture,svg image){filter:hue-rotate(62deg)}
html[data-kgt="amethyst"] :is(img,video,canvas,picture,svg image){filter:hue-rotate(-222deg)}
/* the picker itself must keep its own colours */
html[data-kgt] #kgtBtn,html[data-kgt] #kgtPop{filter:none}
html[data-kgt="emerald"] #kgtBtn,html[data-kgt="emerald"] #kgtPop{filter:hue-rotate(-108deg)}
html[data-kgt="sapphire"] #kgtBtn,html[data-kgt="sapphire"] #kgtPop{filter:hue-rotate(-172deg)}
html[data-kgt="rose"] #kgtBtn,html[data-kgt="rose"] #kgtPop{filter:hue-rotate(62deg)}
html[data-kgt="amethyst"] #kgtBtn,html[data-kgt="amethyst"] #kgtPop{filter:hue-rotate(-222deg)}

/* picker UI */
#kgtBtn{position:fixed;top:14px;right:16px;z-index:2147482000;width:42px;height:42px;border-radius:14px;cursor:pointer;display:grid;place-items:center;
  background:#ffffff;border:1px solid #d6dff0;box-shadow:0 8px 20px rgba(31,70,160,.14);color:#2f6bff;padding:0}
#kgtBtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#kgtPop{position:fixed;top:64px;right:16px;z-index:2147482001;width:236px;padding:14px;border-radius:18px;display:none;
  background:linear-gradient(180deg,#fffefb,#faf5e6);border:1px solid rgba(184,144,42,.45);box-shadow:0 24px 60px rgba(60,42,8,.25);font-family:Inter,system-ui,sans-serif}
#kgtPop.on{display:block}
#kgtPop h4{margin:0 0 10px;font:700 11px Inter,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#8a6a16}
#kgtPop button{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 6px;padding:8px 10px;border-radius:12px;border:1px solid transparent;background:transparent;cursor:pointer;font:600 13px Inter,system-ui,sans-serif;color:#17120a;text-align:left}
#kgtPop button:hover{background:rgba(212,175,55,.14);border-color:rgba(184,144,42,.3)}
#kgtPop button.cur{background:rgba(212,175,55,.2);border-color:#b8902a}
#kgtPop i{width:26px;height:26px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
@media(max-width:700px){#kgtBtn{top:10px;right:10px}#kgtPop{right:10px;top:60px}}


/* ---- v5.48: module icon wells are bright & colourful (one colour per module), glyphs white ---- */
html:root body .mod .emb{box-shadow:0 10px 22px rgba(31,70,160,.22),inset 0 1px 0 rgba(255,255,255,.45) !important}
html:root body .mod .emb svg,html:root body .mod .ico{color:#ffffff !important}
html:root body .mod .emb svg *{stroke:#ffffff !important}
html:root body .mods>.mod:nth-child(12n+1) .emb{background:linear-gradient(135deg,#60a5fa,#2563eb) !important}
html:root body .mods>.mod:nth-child(12n+2) .emb{background:linear-gradient(135deg,#fb923c,#ea580c) !important}
html:root body .mods>.mod:nth-child(12n+3) .emb{background:linear-gradient(135deg,#a78bfa,#7c3aed) !important}
html:root body .mods>.mod:nth-child(12n+4) .emb{background:linear-gradient(135deg,#2dd4bf,#0d9488) !important}
html:root body .mods>.mod:nth-child(12n+5) .emb{background:linear-gradient(135deg,#f472b6,#db2777) !important}
html:root body .mods>.mod:nth-child(12n+6) .emb{background:linear-gradient(135deg,#4ade80,#16a34a) !important}
html:root body .mods>.mod:nth-child(12n+7) .emb{background:linear-gradient(135deg,#22d3ee,#0891b2) !important}
html:root body .mods>.mod:nth-child(12n+8) .emb{background:linear-gradient(135deg,#fbbf24,#d97706) !important}
html:root body .mods>.mod:nth-child(12n+9) .emb{background:linear-gradient(135deg,#818cf8,#4f46e5) !important}
html:root body .mods>.mod:nth-child(12n+10) .emb{background:linear-gradient(135deg,#f87171,#dc2626) !important}
html:root body .mods>.mod:nth-child(12n+11) .emb{background:linear-gradient(135deg,#38bdf8,#0284c7) !important}
html:root body .mods>.mod:nth-child(12n+12) .emb{background:linear-gradient(135deg,#a3e635,#65a30d) !important}
html:root body .mod:hover .emb{transform:translateY(-2px) scale(1.04)}
html:root body .mod .emb{transition:transform .2s}
