/* Theme selector and a dark Liquid Glass palette; layout/scrolling are unchanged. */
.theme-picker{
 display:inline-flex;align-items:center;gap:.3rem;position:relative;
 min-height:34px;padding:0 .42rem;color:#29476b;
 background:linear-gradient(160deg,#fff9,#d9e9fc8c);border:1px solid #ffffffe0;border-radius:999px;
 box-shadow:var(--liquid-sheen),0 2px 5px #34558229;
}
.theme-picker svg{width:1rem;height:1rem;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-picker::after{content:"";border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;width:5px;height:5px;transform:rotate(45deg);position:absolute;right:.65rem;top:calc(50% - 4px);pointer-events:none}
.theme-picker select{
 appearance:none;-webkit-appearance:none;
 min-height:30px;width:auto;border:0;box-shadow:none;border-radius:999px;background:transparent;
 color:inherit;font-size:.78rem;font-weight:560;padding:.2rem 1.05rem .2rem 0;cursor:pointer;
}
.theme-picker select:focus-visible{outline-offset:0}
.theme-picker option{color:#132742;background:#f9fbff}
@media(max-width:600px){.top-right .demo{display:none}.theme-picker{padding-inline:.33rem}.theme-picker select{font-size:.73rem}.theme-picker svg{width:.9rem;height:.9rem}}
html[data-core-theme="dark"]{
 color-scheme:dark;
 --core-canvas:#0b1426;--core-surface:#152640bb;--core-paper:#16243ae8;
 --core-ink:#eaf3ff;--core-muted:#afc1dc;--core-line:#7e9fc54a;--core-edge:#a3cfff5c;
 --core-ring:#87bdff;--ink:var(--core-ink);--muted:var(--core-muted);
 --liquid-sheen:inset 0 1px 1px #d1e6ff51,inset 1px 0 1px #a7d9ff32,inset -1px -1px 2px #060c1d67;
 --liquid-elevated:0 16px 32px #02071363,0 3px 8px #060c2054;
 background:#0c1527;scrollbar-color:#7a9fcb88 transparent;
}
html[data-core-theme="dark"] body{
 color:var(--core-ink);
 background:radial-gradient(ellipse 46% 57% at 9% -4%,#245d9dda,transparent 82%),
 radial-gradient(ellipse 51% 52% at 99% 3%,#473b82d1,transparent 87%),
 radial-gradient(ellipse 55% 46% at 75% 108%,#1161739e,transparent 83%),
 linear-gradient(150deg,#0b172e,#0d1729 65%,#0e2435);
}
html[data-core-theme="dark"] .shell{
 background:linear-gradient(156deg,#101c32a5,#0f1d34a1 58%,#142d3ca1);border-color:#a4c2ec5a;
}
html[data-core-theme="dark"] .sidebar{
 background:radial-gradient(ellipse 80% 60% at var(--glass-x,70%) var(--glass-y,3%),#5896d17b,transparent 81%),
 linear-gradient(154deg,#123454bd,#0d2344e5 53%,#0a1a35ec);
 border-color:#b4d7ff6b;
 box-shadow:inset 0 1px 2px #c8e7ff71,inset -1px -1px 2px #0a182e96,0 13px 33px #0209168a;
}
html[data-core-theme="dark"] .top{
 background:linear-gradient(160deg,#2c4b729b,#223651a8);
 border-bottom-color:#a0b9df55;
 box-shadow:var(--liquid-sheen),0 4px 12px #040a1947;
}
html[data-core-theme="dark"] :is(.top,.tools,.profile-head,.account-banner)::before{
 background:radial-gradient(ellipse 43% 145% at var(--glass-x,13%) var(--glass-y,0%),#a9ccff6e,transparent 78%);opacity:.44;
}
html[data-core-theme="dark"] .slash{color:#a5b9d7}
html[data-core-theme="dark"] :is(.demo,.theme-picker){color:#e5efff;background:linear-gradient(150deg,#416392ac,#233853b3);border-color:#a9c6f35b}
html[data-core-theme="dark"] .theme-picker option{color:#edf5ff;background:#1c2d48}
html[data-core-theme="dark"] :is(.intro p,.pagination,.search,.profile-heading p,dt,.details>div,.account-history li,.empty,.placeholder,.account-stat span,.fields label,.filters label){color:var(--core-muted)}
html[data-core-theme="dark"] :is(.intro-title>.icon,.initials){color:#b7d9ff;background:linear-gradient(150deg,#446c9e,#29466b);border-color:#aecfff55;box-shadow:var(--liquid-sheen)}
html[data-core-theme="dark"] .card{
 background:linear-gradient(153deg,#182e48ed,#132238ec);border-color:#89acd84b;box-shadow:var(--liquid-sheen),0 8px 24px #040e1f5c;
}
html[data-core-theme="dark"] :is(.tools,.profile-head){
 background:linear-gradient(153deg,#294c71a8,#273655aa 80%);
 border-bottom-color:#91b6e355;box-shadow:var(--liquid-sheen);
}
html[data-core-theme="dark"] :is(.search,.fields input,.fields textarea,.filters select,.account-tools select){
 color:#ecf4ff;background:linear-gradient(180deg,#0c1b2fdc,#152743d9);border-color:#7796c477;box-shadow:inset 0 1px 5px #05112789;
}
html[data-core-theme="dark"] .search input{color:#eef5ff}
html[data-core-theme="dark"] .search input::placeholder{color:#acbed9}
html[data-core-theme="dark"] button:not(.nav){
 background:radial-gradient(ellipse 90% 150% at var(--glass-x,18%) var(--glass-y,0%),#a7ccfa44,transparent 68%),linear-gradient(155deg,#365476,#223956);
 color:#eff6ff;border-color:#8daad178;
 box-shadow:var(--liquid-sheen),0 2px 7px #050c1b4d;
}
html[data-core-theme="dark"] button:not(.nav):hover{background:linear-gradient(150deg,#476b95,#2f4d71);border-color:#b1cff794}
html[data-core-theme="dark"] button.primary{background:linear-gradient(158deg,#2c7ee3,#155dbc);border-color:#7bb6ff;color:#fff}
html[data-core-theme="dark"] button.primary:hover{background:linear-gradient(158deg,#377fdd,#1b61be);border-color:#a0ccff;color:#fff}
html[data-core-theme="dark"] button.metric,html[data-core-theme="dark"] .account-stat{
 background:linear-gradient(148deg,#335477b5,#243553bf 81%);border-color:#a5c4ed58;box-shadow:var(--liquid-sheen),0 9px 17px #050d1d54;
}
html[data-core-theme="dark"] button.metric small{color:#d6e3f6}
html[data-core-theme="dark"] :is(.metric strong,.account-stat strong){color:#f4f8ff}
html[data-core-theme="dark"] .metric .metric-icon{
 background:color-mix(in srgb,var(--accent) 35%,#1c3148);
 color:color-mix(in srgb,var(--wash) 84%,#fff);border-color:#c2dcff45;box-shadow:var(--liquid-sheen);
}
html[data-core-theme="dark"] .metric.active{border-color:#9fc8fa;box-shadow:inset 0 0 0 1px #9fc8fa}
html[data-core-theme="dark"] :is(.filters,.pagination,.tabs){background:#152844;border-color:#7999c145}
html[data-core-theme="dark"] .view-switch{background:#112644;border-color:#8cb1e35a;box-shadow:inset 0 1px 4px #09152bba}
html[data-core-theme="dark"] .view-switch button{border-color:transparent;background:transparent;box-shadow:none}
html[data-core-theme="dark"] .view-switch button[aria-pressed=true]{color:#ddedff;background:#375e8c;border-color:#a0c9ff68;box-shadow:var(--liquid-sheen)}
html[data-core-theme="dark"] th{background:#233b57;color:#edf4ff;border-color:#7598c35c;box-shadow:0 1px 0 #819bc454}
html[data-core-theme="dark"] td{color:#e5effc;border-color:#7293bc35}
html[data-core-theme="dark"] tbody tr:nth-child(even){background:#b3d0ff0b}
html[data-core-theme="dark"] tbody tr[data-active=true]{background:linear-gradient(90deg,#2e5985,#254368)}
html[data-core-theme="dark"] tbody tr:hover{background:#2a4667}
html[data-core-theme="dark"] :is(td .id,.id){color:#9bcaff}
html[data-core-theme="dark"] :is(th button,td button.name-link,.tabs button){
 background:transparent;border-color:transparent;box-shadow:none;color:inherit;
}
html[data-core-theme="dark"] :is(th button:hover,td button.name-link:hover,.tabs button:hover){
 background:#90b8e918;border-color:transparent;box-shadow:none;color:#c7e2ff;
}
html[data-core-theme="dark"] .tabs button[aria-selected=true]{
 color:#c7e2ff;background:#577ca748;border-bottom:2px solid #8fc2ff;
}
html[data-core-theme="dark"] .details>div{border-color:#7b9cc74a}
html[data-core-theme="dark"] dd{color:#e9f2ff}
html[data-core-theme="dark"] .pill{color:#d8e8fa;background:#334a63;border-color:#abc8ec26;box-shadow:none}
html[data-core-theme="dark"] :is(.pill.strategic){background:#523e24;color:#ffdaa0}
html[data-core-theme="dark"] :is(.pill.potential,.pill.account-role-client){background:#443263;color:#ead7ff}
html[data-core-theme="dark"] .pill.working{background:#1a493a;color:#b3f3cf}
html[data-core-theme="dark"] .pill.stopped{background:#5a2836;color:#ffc3d0}
html[data-core-theme="dark"] :is(.pill.account-role-super,.pill.account-role-admin){background:#293e68;color:#c8dcff}
html[data-core-theme="dark"] .grid-card[aria-pressed=true]{background:linear-gradient(147deg,#3c679d,#24496b);border-color:#86b6ee}
html[data-core-theme="dark"] .account-banner{background:linear-gradient(145deg,#315578c9,#233754dd);border-color:#91b6df66;color:#deecff}
html[data-core-theme="dark"] dialog{background:linear-gradient(138deg,#213a59f3,#192840f8);border-color:#a2c3ec7c;color:#eaf3ff}
html[data-core-theme="dark"] dialog::backdrop{background:#03091897}
html[data-core-theme="dark"] :is(#form-error,.account-error){color:#ff9aa8}
html[data-core-theme="dark"] :is(.shell>main,#records,#account-list,.profile)::-webkit-scrollbar-thumb{background-color:#82a7d497}
@media(prefers-reduced-transparency:reduce){
 html[data-core-theme="dark"] :is(.shell,.top,.tools,.profile-head,dialog){background:#172b46;backdrop-filter:none;-webkit-backdrop-filter:none}
 html[data-core-theme="dark"] .sidebar{background:#123052;backdrop-filter:none;-webkit-backdrop-filter:none}
}


/* Match high-specificity glass controls to the dark palette. */
html[data-core-theme="dark"] #filter-toggle,
html[data-core-theme="dark"] #clear{
 color:#eff6ff;background:linear-gradient(150deg,#3a5c82,#263f61);border-color:#8daad178;box-shadow:var(--liquid-sheen),0 2px 6px #050c1b4d;
}
html[data-core-theme="dark"] #filter-toggle:hover,html[data-core-theme="dark"] #clear:hover{background:linear-gradient(150deg,#466c98,#314e71)}
html[data-core-theme="dark"] .tabs button[aria-selected="true"]{background:#284968;box-shadow:none;color:#d6eaff;border-color:transparent transparent #8fc2ff}
