/* ===== Glossy dark theme =====
   "DK" is expanded by build.py to both :root[data-theme="dark"] and the
   system-dark media query, so it applies whichever way dark mode is chosen. */
DKROOT{
  --bg:#040404; --side:rgba(6,6,6,.78); --surface:rgba(255,255,255,.045); --sunken:rgba(0,0,0,.28); --raise:rgba(255,255,255,.075);
  --ink:#eff6fc; --muted:#babbc1; --faint:#8e8f98; --line:rgba(255,255,255,.085); --line-2:rgba(255,255,255,.15);
  --accent:#80c2f8; --accent-hi:#9acffa; --accent-ink:#0b0b0c; --accent-soft:rgba(128,194,248,.16);
  --hot:#5eb0f3; --hot-soft:rgba(94,176,243,.14);
  --s-app:#54abf2; --s-int:#91caf9; --s-hr:#5cbcff; --s-hired:#4fdcab; --on-s:#060606;
  --danger:#ff7477; --danger-soft:rgba(255,116,119,.14);
  --toast:#eff6fc; --toast-fg:#060606; --toast-hi:#0c5ea1;
  --scrim:rgba(2,2,2,.62);
  --shadow-sm:0 1px 0 rgba(255,255,255,.05) inset,0 2px 6px rgba(0,0,0,.35);
  --shadow:0 1px 0 rgba(255,255,255,.06) inset,0 20px 50px -12px rgba(0,0,0,.7);
  --glass:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025) 45%,rgba(255,255,255,.02));
  --glass-solid:linear-gradient(160deg,#090909,#070707);
  --grad:linear-gradient(135deg,#1766c9 0%,#2088e0 55%,#2e9cf0 100%);
  --glow:0 10px 28px -10px rgba(103,182,247,.85);
  color-scheme:dark;
}

/* backdrop: deep violet with soft colour glows */
DK{background:#040404}
DK::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:
  radial-gradient(1100px 620px at 88% -12%,rgba(91,176,246,.24),transparent 62%),
  radial-gradient(900px 560px at -8% 108%,rgba(74,166,241,.09),transparent 60%)}

/* sidebar + top bar: frosted glass */
DK .rail{background:linear-gradient(180deg,rgba(8,8,8,.82),rgba(5,5,5,.82));backdrop-filter:blur(18px);border-right-color:rgba(255,255,255,.07)}
DK .top{background:rgba(5,5,5,.62);backdrop-filter:saturate(1.3) blur(18px);box-shadow:0 1px 0 rgba(255,255,255,.06),0 10px 30px -18px rgba(0,0,0,.9)}
DK .brand{color:#fff}
DK .brand .bl-l{display:none}DK .brand .bl-d{display:block}
DK .nav-i{color:#c7d8e6}
DK .nav-i:hover{background:rgba(255,255,255,.05)}
DK .nav-i[aria-current="page"]{background:var(--grad);color:#fff;box-shadow:var(--glow),0 1px 0 rgba(255,255,255,.25) inset}
DK .nav-i[aria-current="page"]::before{background:#c5e3fc;box-shadow:0 0 12px #92cbf9}

/* glass panels and cards */
DK :is(.tiles .tile,.dpanel,.qcard,.jcard,.acard,.panel-card,.ob-card,.kpi,.rcard,.set-nav,.set-card,.cal-box,.rtable-wrap,.tcard,.colhead,.cand,.jbar,.other,.mth,.mlist,.op-card,.op-box,.op-acard,.op-doc,.lp-auth-card){
  background-image:var(--glass);border-color:rgba(255,255,255,.09)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 18px 40px -22px rgba(0,0,0,.85)}
DK :is(.cand,.jcard,.acard,.tcard,.qcard,.kpi,.rcard,.op-acard,.tiles .tile){transition:transform .2s,box-shadow .2s,border-color .2s}
DK :is(.cand,.jcard,.acard,.tcard,.qcard,.op-acard):hover{border-color:rgba(155,207,250,.35)!important;box-shadow:0 1px 0 rgba(255,255,255,.09) inset,0 22px 44px -20px rgba(79,171,246,.45)}
DK .ditem{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
DK .ditem:hover{background:rgba(255,255,255,.07)}
DK .tiles .tile{background-color:color-mix(in srgb,var(--tc,#80c2f8) 14%,rgba(255,255,255,.03))}

/* board columns */
DK .col{background:linear-gradient(180deg,color-mix(in srgb,var(--sc) 13%,transparent),color-mix(in srgb,var(--sc) 4%,transparent) 40%,rgba(255,255,255,.015));border-color:color-mix(in srgb,var(--sc) 32%,transparent)!important;box-shadow:0 1px 0 rgba(255,255,255,.05) inset}

/* pop-ups need solid glass (content must not show through) */
DK :is(.pop,.menu,.mmenu,.amodal,.modal,.drawer,.chat,.op-modal,.lp-modal,.lp-cg,.op-yp,.op-list,.cp-locpop,.co-menu,.rte-emo,.ylist){background:var(--glass-solid)!important;border-color:rgba(255,255,255,.1)!important;box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 30px 80px -20px rgba(0,0,0,.9)!important}
DK :is(.chat header,.chat .sugs,.chat form){background:transparent}
DK .msg.bot{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08)}
DK .msg.me{background:var(--grad);box-shadow:var(--glow)}
DK .op-scrim,DK .lp-cg-scrim{background:rgba(2,2,2,.62)}

/* primary actions: gradient + glow */
DK :is(.btn.primary,.tbtn:not(.o),.pj-btn:not(.o),.pill-btn.fill,.asubmit,.pv-go,.ats-go,.mcomp .send,.chat form button,.fab,.op-btn:not(.o):not(.op-p),.op-postjob,.cal-seg button[aria-pressed="true"],.fseg button[aria-pressed="true"],.tpager button[aria-current="page"]){
  background:var(--grad)!important;border-color:transparent!important;color:#fff!important;box-shadow:var(--glow),0 1px 0 rgba(255,255,255,.28) inset}
DK :is(.btn.primary,.tbtn:not(.o),.pj-btn:not(.o),.op-btn:not(.o):not(.op-p),.op-postjob,.fab):hover{filter:brightness(1.1)}
DK .fab{box-shadow:0 12px 32px -8px rgba(103,182,247,.95),0 0 0 1px rgba(255,255,255,.12) inset}
DK :is(.btn:not(.primary),.tbtn.o,.pj-btn.o,.pill-btn:not(.fill),.cal-today,.cal-nav button,.icon-btn){background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}
DK :is(.btn:not(.primary),.tbtn.o,.pj-btn.o,.pill-btn:not(.fill),.cal-today,.cal-nav button,.icon-btn):hover{background:rgba(255,255,255,.1)}

/* form fields */
DK :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea,.pj-in,.pj-sel,.abox,.op-in,.search,.rte){background-color:rgba(0,0,0,.26)!important;border-color:rgba(255,255,255,.12)!important;color:var(--ink)}
DK :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.pj-in,.op-in):focus{border-color:#91caf9!important;box-shadow:0 0 0 3px rgba(128,194,248,.22)!important}
DK select option{background:#080808;color:var(--ink)}
DK ::placeholder{color:#8e8f98}

/* chips, tags, small badges keep colour but gain a soft edge */
DK :is(.schip,.jchip,.pv-chips span,.op-chip,.cp-chip,.atag,.perk){background-color:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}

/* company + profile setup */
DK .cp-hero{background:radial-gradient(800px 300px at 20% 0%,rgba(128,194,248,.16),transparent 70%)}
DK .cp-si{background:rgba(128,194,248,.12);border-color:rgba(155,207,250,.55);box-shadow:0 0 18px -6px rgba(128,194,248,.8)}
DK .cp-ib{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}
DK .op-brand{background:none!important;padding:0!important}
DK .op-brand img{filter:invert(1) hue-rotate(180deg) brightness(1.1)}
DK .op-tabs button[aria-selected="true"]::after{box-shadow:0 0 12px var(--hot)}
DK .op-drop{background:rgba(255,255,255,.03)}

/* headings get a touch of light */
DK :is(.welcome h1,.page h1){text-shadow:0 0 30px rgba(128,194,248,.25)}

/* scrollbars */
DK, DK *{scrollbar-color:rgba(255,255,255,.18) transparent}

/* top-bar round icon buttons: 50% white outline */
DK .top .icon-btn{border:1px solid rgba(255,255,255,.5)!important}
DK .top .icon-btn:hover{border-color:rgba(255,255,255,.8)!important}
