/* KONNECT+ identity layer for the Konnect TV admin (2026-11-20).
   Loaded AFTER the app stylesheet. The app paints almost everything with inline styles, so this file re-colours the
   exact inline values the app writes (census of all pages: tv/census.json): black stage, liquid-glass cards,
   the Konnect TV colour (90,110,250) instead of the old peach, white pill buttons, Inter.
   Remove the <link> in index.html to get the old look back. */
:root{
  --c:90,110,250; --c2:38,198,218;
  --lg-bg:linear-gradient(135deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.05) 32%,rgba(255,255,255,.02) 60%,rgba(255,255,255,.08) 100%);
  --lg-blur:blur(26px) saturate(180%) brightness(1.06);
  --lg-edge:rgba(255,255,255,.20);
  --lg-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 1px 0 0 rgba(255,255,255,.12),inset -1px 0 0 rgba(255,255,255,.06),inset 0 -1px 0 rgba(255,255,255,.10),inset 0 0 30px rgba(255,255,255,.04),0 30px 70px -36px rgba(0,0,0,.95);
  --ink:#f3f5fa; --ink-2:#c4c9d6; --ink-3:#8d94a6; --line:rgba(255,255,255,.11);
  color-scheme:dark;
}
/* the app sets its palette as inline variables on <html>; these win over all three built-in themes */
html{
  --bg:#030305!important; --bg-1:rgba(255,255,255,.05)!important; --s1:rgba(255,255,255,.055)!important; --s2:rgba(255,255,255,.075)!important; --s3:rgba(255,255,255,.10)!important;
  --b1:rgba(255,255,255,.11)!important; --b2:rgba(255,255,255,.20)!important;
  --blue:#5a6efa!important; --blue-l:#8f9cff!important; --blue-d:#3f52e0!important;
  --emerald:#34d399!important; --amber:#fbbf24!important; --rose:#f87171!important; --ro:#f87171!important; --violet:#a78bfa!important; --cyan:#38d6ee!important;
  --text:#f3f5fa!important; --text-h:#ffffff!important; --text-s:#d5d9e3!important; --text-m:#9aa1b3!important; --text-d:#7b8295!important;
  --accent:#8f9cff!important; --accent-d:#5a6efa!important; --accent-gradient:linear-gradient(135deg,#7f8dff,#5a6efa)!important;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html,body,#root{background:#030305!important;color:var(--ink)!important}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(60% 55% at 78% -8%,rgba(var(--c),.30),rgba(var(--c),0) 70%),radial-gradient(46% 50% at 6% 104%,rgba(var(--c2),.16),rgba(var(--c2),0) 70%),radial-gradient(40% 40% at 50% 50%,rgba(120,80,250,.07),rgba(120,80,250,0) 70%)}
#root{position:relative;z-index:1;background:transparent!important}
#root>div,.konnect-admin{background:transparent!important}
*::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22)!important}
::selection{background:rgba(var(--c),.55);color:#fff}

/* ---------- side menu + top bar */
aside,.admin-sidebar{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02))!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);border-right:1px solid rgba(255,255,255,.14)!important}
.konnect-admin aside div[style*="gradient("][style*="rgb(36, 51, 82)"]:not([style*="rgb(237, 176, 121)"]){background:transparent!important;border-color:var(--line)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:0!important}
aside a[style*="border-left"]{border-radius:12px!important;border-left-width:0!important;padding-left:14px!important;transition:background .18s,color .18s}
aside a[style*="border-left"]:hover{background:rgba(255,255,255,.07)!important;opacity:1!important}
aside a[style*="border-left: 3px solid rgb(237, 176, 121)"],aside a.active{background:linear-gradient(135deg,rgba(var(--c),.42),rgba(var(--c),.14))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 26px -14px rgba(var(--c),.9);color:#fff!important}
img[src*="konnect-logo.png"]{height:62px!important;max-width:none!important}
aside img[src*="konnect-logo.png"]{height:58px!important}
header,.konnect-admin header{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02))!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);border-bottom:1px solid var(--line)!important}

/* ---------- light surfaces the app writes inline -> glass */
[style*="background: rgb(255, 255, 255)"]:not([style*="border-radius: 50%"]),[style*="background: white"],[style*="background-color: rgb(255, 255, 255)"]:not([style*="border-radius: 50%"]){background:rgba(255,255,255,.055)!important}
[style*="background: rgb(248, 250, 252)"],[style*="background: rgb(241, 245, 249)"],[style*="background: rgb(238, 242, 247)"],[style*="background: rgb(245, 245, 250)"],[style*="background: rgb(240, 242, 245)"],[style*="background: rgb(249, 250, 251)"],[style*="background: rgb(243, 244, 246)"]{background:rgba(255,255,255,.06)!important}
[style*="background: rgb(226, 232, 240)"],[style*="background: rgb(203, 213, 225)"]{background:rgba(255,255,255,.14)!important}
[style*="background: rgb(255, 248, 231)"],[style*="background: rgb(253, 244, 227)"],[style*="background: rgb(255, 244, 236)"],[style*="background: rgb(255, 251, 235)"],[style*="background: rgb(254, 243, 199)"]{background:rgba(251,191,36,.12)!important}
[style*="background: rgb(254, 242, 242)"],[style*="background: rgb(253, 234, 234)"],[style*="background: rgb(254, 226, 226)"]{background:rgba(248,113,113,.13)!important}
[style*="background: rgb(240, 253, 244)"],[style*="background: rgb(240, 255, 240)"],[style*="background: rgb(209, 250, 229)"],[style*="background: rgb(236, 253, 245)"],[style*="background: rgb(220, 252, 231)"]{background:rgba(52,211,153,.12)!important}
[style*="background: rgb(239, 246, 255)"],[style*="background: rgb(219, 234, 254)"],[style*="background: rgb(240, 249, 255)"],[style*="background: rgb(230, 247, 251)"],[style*="background: rgb(245, 246, 252)"],[style*="background: rgb(242, 238, 251)"]{background:rgba(var(--c),.14)!important}
/* cards = liquid glass (white panels with a card radius) */
main [style*="background: rgb(255, 255, 255)"][style*="border-radius: 12px"],main [style*="background: rgb(255, 255, 255)"][style*="border-radius: 14px"],main [style*="background: rgb(255, 255, 255)"][style*="border-radius: 16px"],
main [style*="background: var(--s1)"][style*="border-radius: 12px"],main [style*="background: var(--s1)"][style*="border-radius: 14px"],main [style*="background: var(--s1)"][style*="border-radius: 16px"]{
  background:var(--lg-bg)!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);border:1px solid var(--lg-edge)!important;box-shadow:var(--lg-shadow)!important;border-radius:20px!important}
/* dialogs */
[role="dialog"]>div,[style*="position: fixed"]>[style*="background: rgb(255, 255, 255)"]{background:linear-gradient(135deg,rgba(30,32,44,.92),rgba(12,13,20,.94))!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);border:1px solid var(--lg-edge)!important;box-shadow:var(--lg-shadow)!important}
[style*="background: rgba(15, 23, 42"],[style*="background: rgba(0, 0, 0, 0.5)"],[style*="background: rgba(0, 0, 0, 0.6)"]{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* ---------- the navy blocks -> glass with the product glow */
:not(aside)[style*="gradient("][style*="rgb(36, 51, 82)"]:not([style*="rgb(237, 176, 121)"]),:not(aside)[style*="gradient("][style*="rgba(36, 51, 82"],:not(aside)[style*="gradient("][style*="rgb(30, 41, 59), rgb(15, 23, 42)"]{
  background:radial-gradient(80% 120% at 88% -10%,rgba(var(--c),.34),rgba(var(--c),0) 70%),var(--lg-bg)!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);
  border:1px solid var(--lg-edge)!important;box-shadow:var(--lg-shadow),0 30px 80px -50px rgba(var(--c),.9)!important;border-radius:22px!important}
[style*="background: rgb(54, 74, 111)"],[style*="background: rgb(36, 51, 82)"],[style*="background: rgb(74, 97, 144)"]{background:rgba(255,255,255,.12)!important;color:#fff!important}
[style*="background: rgba(54, 74, 111"],[style*="background: rgba(36, 51, 82"]{background:rgba(255,255,255,.07)!important}
[style*="solid rgba(54, 74, 111"],[style*="solid rgb(54, 74, 111)"],[style*="solid rgba(36, 51, 82"]{border-color:rgba(255,255,255,.18)!important}

/* ---------- text written for a light page */
[style*="color: rgb(30, 41, 59)"],[style*="color: rgb(15, 23, 42)"],[style*="color: rgb(17, 24, 39)"],[style*="color: rgb(51, 65, 85)"],[style*="color: rgb(36, 51, 82)"],[style*="color: rgb(0, 0, 0)"],[style*="color: rgb(31, 41, 55)"],[style*="color: rgb(55, 65, 81)"]{color:var(--ink)!important}
[style*="color: rgb(54, 74, 111)"],[style*="color: rgb(74, 97, 144)"]{color:#aab5ff!important}
[style*="color: rgb(100, 116, 139)"],[style*="color: rgb(71, 85, 105)"],[style*="color: rgb(107, 114, 128)"]{color:#9aa1b3!important}
[style*="color: rgb(148, 163, 184)"],[style*="color: rgb(156, 163, 175)"]{color:#838a9d!important}
[style*="color: rgb(5, 150, 105)"],[style*="color: rgb(22, 163, 74)"],[style*="color: rgb(21, 128, 61)"],[style*="color: rgb(4, 120, 87)"],[style*="color: rgb(6, 95, 70)"]{color:#34d399!important}
[style*="color: rgb(220, 38, 38)"],[style*="color: rgb(185, 28, 28)"],[style*="color: rgb(153, 27, 27)"],[style*="color: rgb(239, 68, 68)"]{color:#f87171!important}
[style*="color: rgb(217, 119, 6)"],[style*="color: rgb(180, 83, 9)"],[style*="color: rgb(146, 64, 14)"]{color:#fbbf24!important}
[style*="color: rgb(8, 145, 178)"]{color:#38d6ee!important}
[style*="color: rgb(124, 58, 237)"]{color:#b39dff!important}
/* (background-color also contains "color:", so solid fills that must keep light text are restored further down) */

/* ---------- lines */
[style*="solid rgb(226, 232, 240)"],[style*="solid rgb(203, 213, 225)"],[style*="solid rgb(241, 245, 249)"],[style*="solid rgb(229, 231, 235)"],[style*="solid rgb(238, 242, 247)"]{border-color:var(--line)!important}
[style*="rgb(226, 232, 240) 0px 0px 0px 1px"]{box-shadow:0 0 0 1px var(--line)!important}
[style*="border-color: currentcolor currentcolor rgb(226, 232, 240)"]{border-bottom-color:var(--line)!important}
hr{border-color:var(--line)!important}

/* ---------- the old peach -> the Konnect TV colour; buttons = white pills */
[style*="color: rgb(237, 176, 121)"],[style*="color: rgb(212, 148, 79)"]{color:#9aa6ff!important}
[style*="background: rgba(237, 176, 121"],[style*="background: rgba(212, 148, 79"]{background:rgba(var(--c),.17)!important}
[style*="solid rgba(237, 176, 121"],[style*="solid rgb(237, 176, 121)"],[style*="solid rgba(212, 148, 79"],[style*="solid rgb(212, 148, 79)"]{border-color:rgba(var(--c),.55)!important}
[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"],[style*="background: rgb(237, 176, 121)"],[style*="background: rgb(212, 148, 79)"],[style*="background: var(--accent-gradient)"]{
  background:linear-gradient(135deg,#8492ff,#4f62f0)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 12px 28px -14px rgba(var(--c),.95)!important}
[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"] [style*="color"],[style*="background: rgb(237, 176, 121)"] [style*="color"]{color:#fff!important}
button[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"],a[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"],button[style*="background: rgb(237, 176, 121)"],button[style*="background: var(--accent-gradient)"]{
  background:#fff!important;color:#07080c!important;border-color:#fff!important;border-radius:999px!important;box-shadow:0 10px 30px -14px rgba(255,255,255,.55)!important;font-weight:600!important}
button[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"] *,a[style*="background: linear-gradient(135deg, rgb(237, 176, 121), rgb(212, 148, 79))"] *,button[style*="background: rgb(237, 176, 121)"] *{color:#07080c!important}
button{transition:transform .15s,filter .15s,background .15s}
button:hover{filter:brightness(1.12)}
button:active{transform:scale(.98)}

/* solid status fills keep white text */
[style*="background: rgb(5, 150, 105)"],[style*="background: rgb(220, 38, 38)"],[style*="background: rgb(239, 68, 68)"],[style*="background: rgb(217, 119, 6)"],[style*="background: var(--blue)"],[style*="background: rgb(37, 99, 235)"]{color:#fff!important}
[style*="background: rgb(5, 150, 105)"]{background:#10b981!important}

/* ---------- form controls */
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),main select,main textarea,[role="dialog"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),[role="dialog"] select,[role="dialog"] textarea{
  background:rgba(255,255,255,.06)!important;color:var(--ink)!important;border-color:rgba(255,255,255,.16)!important}
input::placeholder,textarea::placeholder{color:#6f7689!important}
main input:focus,main select:focus,main textarea:focus,[role="dialog"] input:focus,[role="dialog"] select:focus,[role="dialog"] textarea:focus{border-color:rgba(var(--c),.9)!important;box-shadow:0 0 0 3px rgba(var(--c),.25)!important;outline:0!important}
select option{background:#12131b;color:#f3f5fa}
table thead th,table th{color:#9aa1b3!important}
main tr:hover>td{background:rgba(255,255,255,.035)}

/* the app's own small class rules that assume a light page */
.contextual-icons-modes button{background:rgba(255,255,255,.07)!important;color:var(--ink)!important;border-color:var(--line)!important}
.contextual-icons-modes button[aria-pressed=true]{background:#fff!important;color:#07080c!important;border-color:#fff!important}
.contextual-icons-grid button{background:rgba(255,255,255,.07)!important}
.contextual-icons-grid button[aria-selected=true]{border-color:#8f9cff!important;background:rgba(var(--c),.25)!important}
.contextual-icons-search input{background:rgba(255,255,255,.06)!important;color:var(--ink)!important;border-color:var(--line)!important}
.contextual-icons button:focus-visible,.contextual-icons input:focus-visible,.konnect-admin button:focus-visible,.konnect-admin a:focus-visible{outline-color:#8f9cff!important}

/* the three old colour themes all end in this one look, so their switch is not shown */
div:has(>button[title="Dark theme"]){display:none!important}
/* sign-in card */
[style*="width: 400px"][style*="box-shadow"],[style*="width: 440px"][style*="box-shadow"]{background:var(--lg-bg)!important;-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur);border:1px solid var(--lg-edge)!important;box-shadow:var(--lg-shadow),0 40px 120px -60px rgba(var(--c),.9)!important;border-radius:26px!important}

/* 2026-11-20 page sweep: buttons the app leaves unstyled (browser default) get the quiet glass pill */
#root button:not([style]):not([class]),[role="dialog"] button:not([style]):not([class]){background:rgba(255,255,255,.08);color:var(--ink);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:9px 16px;font:500 12px/1.2 var(--font);cursor:pointer}
input[type="file"]{color:#c9cdd8;font-size:12px}
input[type="file"]::file-selector-button{font:600 12px var(--font);color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 13px;margin-right:10px;cursor:pointer}

/* 2026-11-20 live preview box of the Theme Builder: while the TV page is on its way the turning Konnect TV flower shows instead of a black box */
main [style*="background: rgb(0, 0, 0)"][style*="border-radius: 10px"][style*="overflow: hidden"]{background:radial-gradient(60% 55% at 50% 46%,rgba(90,110,250,.26),rgba(90,110,250,0) 70%),#05060d!important}
main [style*="background: rgb(0, 0, 0)"][style*="border-radius: 10px"][style*="overflow: hidden"]::before{content:"";position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;background:url(/admin/kp-flower.png?v=2) center/contain no-repeat;animation:k7turn 2.4s cubic-bezier(.55,.1,.45,.9) infinite;filter:drop-shadow(0 0 24px rgba(110,130,255,.55));pointer-events:none}
@keyframes k7turn{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.08)}100%{transform:rotate(360deg) scale(1)}}
