/*
 * DREX / PRIVATE MARKET DESK
 * Visual system 2026. Built on the original interface, preserving live modules.
 * 10 independent themes. All styling here is presentational: original APIs remain untouched.
 */
:root { color-scheme:dark; }
html[data-drex-theme="obsidian"][data-drex-theme]{
  --bg:#080b0e;--side:#0c1014;--card:#11161b;--card2:#1a2026;--ink:#f1f3f2;--mut:#929da6;--line:#29323a;
  --acc:#bfc9d3;--acc2:#879caf;--up:#57d7a5;--down:#ef7580;--warn:#6e9dff;
  --brand:#c9d5e1;--brand-soft:rgba(186,205,225,.12);--brand-solid:#d4dde5;--on-brand:#0d151c;--ring:rgba(199,213,230,.24);
  --ambient:rgba(91,131,166,.07);--panel-shine:rgba(255,255,255,.035);--metal:#b8c4ce;--shadow:rgba(0,0,0,.36);--theme-tone:dark;
}
html[data-drex-theme="titanium"][data-drex-theme]{
  --bg:#0b0b0c;--side:#111112;--card:#19191b;--card2:#252527;--ink:#f5f5f5;--mut:#aaa9ac;--line:#39393b;
  --acc:#e0e0df;--acc2:#a8a8ac;--up:#92c7b0;--down:#dd969b;--warn:#cbc5b9;
  --brand:#e1e1e1;--brand-soft:rgba(235,235,235,.09);--brand-solid:#e7e7e7;--on-brand:#101011;--ring:rgba(238,238,238,.22);
  --ambient:rgba(255,255,255,.02);--panel-shine:rgba(255,255,255,.04);--metal:#d3d3d1;--shadow:rgba(0,0,0,.4);--theme-tone:dark;
}
html[data-drex-theme="imperial"][data-drex-theme]{
  --bg:#0e0c0a;--side:#14110e;--card:#1a1713;--card2:#252019;--ink:#f7efe2;--mut:#a99d8e;--line:#3b3329;
  --acc:#d9b77c;--acc2:#b69f7b;--up:#83c89f;--down:#e5837c;--warn:#deb876;
  --brand:#e2c38c;--brand-soft:rgba(221,173,97,.10);--brand-solid:#d6b37c;--on-brand:#16100a;--ring:rgba(226,188,115,.23);
  --ambient:rgba(202,140,59,.055);--panel-shine:rgba(250,217,157,.026);--metal:#d7c29e;--shadow:rgba(0,0,0,.45);--theme-tone:dark;
}
html[data-drex-theme="cobalt"][data-drex-theme]{
  --bg:#080e19;--side:#0b1323;--card:#111c2d;--card2:#192941;--ink:#ecf3ff;--mut:#92a5c0;--line:#263b56;
  --acc:#639dfd;--acc2:#8ab4fa;--up:#4dd5b4;--down:#f47a9d;--warn:#a2bfff;
  --brand:#6b9fff;--brand-soft:rgba(83,139,245,.15);--brand-solid:#6397f3;--on-brand:#071326;--ring:rgba(89,145,255,.27);
  --ambient:rgba(40,103,199,.12);--panel-shine:rgba(84,142,224,.047);--metal:#94b5ef;--shadow:rgba(0,4,21,.5);--theme-tone:dark;
}
html[data-drex-theme="emerald"][data-drex-theme]{
  --bg:#07100e;--side:#0b1613;--card:#10201a;--card2:#193027;--ink:#ecf5ef;--mut:#91ab9e;--line:#284236;
  --acc:#8edab9;--acc2:#77b8a4;--up:#53e0a2;--down:#ff8993;--warn:#bfd99e;
  --brand:#94dabb;--brand-soft:rgba(90,190,145,.13);--brand-solid:#93d8b9;--on-brand:#081710;--ring:rgba(115,218,171,.22);
  --ambient:rgba(41,130,88,.085);--panel-shine:rgba(126,218,159,.027);--metal:#9fceb6;--shadow:rgba(0,0,0,.42);--theme-tone:dark;
}
html[data-drex-theme="oxblood"][data-drex-theme]{
  --bg:#100b10;--side:#180f16;--card:#21151e;--card2:#30202b;--ink:#fbf2f4;--mut:#b3a0aa;--line:#44313c;
  --acc:#e9a8ba;--acc2:#bb91aa;--up:#7ddabb;--down:#ff8b9d;--warn:#d6b1d8;
  --brand:#ecb2c0;--brand-soft:rgba(218,114,154,.13);--brand-solid:#eab3c3;--on-brand:#200f1b;--ring:rgba(236,153,186,.25);
  --ambient:rgba(156,63,108,.09);--panel-shine:rgba(255,174,198,.031);--metal:#d6b4bc;--shadow:rgba(0,0,0,.4);--theme-tone:dark;
}
html[data-drex-theme="solar"][data-drex-theme]{
  --bg:#10100a;--side:#16150e;--card:#201e14;--card2:#2c291b;--ink:#faf4df;--mut:#b0a88d;--line:#45402a;
  --acc:#f0ce65;--acc2:#bdad79;--up:#a4e4a0;--down:#f58768;--warn:#f4bd67;
  --brand:#f3d174;--brand-soft:rgba(235,191,72,.13);--brand-solid:#e9c456;--on-brand:#181308;--ring:rgba(248,210,99,.23);
  --ambient:rgba(165,132,44,.08);--panel-shine:rgba(255,218,99,.026);--metal:#e8d396;--shadow:rgba(0,0,0,.42);--theme-tone:dark;
}
html[data-drex-theme="violet"][data-drex-theme]{
  --bg:#0d0c16;--side:#13111e;--card:#1a1828;--card2:#26223a;--ink:#f2effe;--mut:#aca5c1;--line:#39334d;
  --acc:#b7a3f5;--acc2:#9998d9;--up:#6ad9bd;--down:#ec829f;--warn:#b7a3f5;
  --brand:#beaaff;--brand-soft:rgba(161,127,234,.15);--brand-solid:#b9a5f7;--on-brand:#130d26;--ring:rgba(181,159,244,.25);
  --ambient:rgba(121,88,173,.10);--panel-shine:rgba(196,162,255,.037);--metal:#c1b4e0;--shadow:rgba(0,0,0,.44);--theme-tone:dark;
}
html[data-drex-theme="ivory"][data-drex-theme]{
  color-scheme:light;
  --bg:#f3f0e9;--side:#ebe6db;--card:#fffdf8;--card2:#f0ece3;--ink:#212321;--mut:#77796f;--line:#d9d6cb;
  --acc:#494e4c;--acc2:#707d77;--up:#228466;--down:#b44856;--warn:#98733e;
  --brand:#333b38;--brand-soft:rgba(50,60,52,.085);--brand-solid:#333936;--on-brand:#f8f6f0;--ring:rgba(52,60,52,.20);
  --ambient:rgba(94,85,59,.038);--panel-shine:rgba(255,255,255,.35);--metal:#5a6059;--shadow:rgba(86,78,58,.13);--theme-tone:light;
}
html[data-drex-theme="arctic"][data-drex-theme]{
  color-scheme:light;
  --bg:#eaf0f5;--side:#e6edf4;--card:#fff;--card2:#edf3f8;--ink:#152331;--mut:#6b8091;--line:#d0dde8;
  --acc:#356a9f;--acc2:#6d8a9f;--up:#16866d;--down:#c14c66;--warn:#4775ba;
  --brand:#2a679f;--brand-soft:rgba(50,111,164,.11);--brand-solid:#2e6b9e;--on-brand:#fff;--ring:rgba(63,118,174,.23);
  --ambient:rgba(68,131,187,.065);--panel-shine:rgba(255,255,255,.45);--metal:#5a798f;--shadow:rgba(56,90,124,.12);--theme-tone:light;
}
html[data-drex-theme] {--serif:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--r:12px;--hair:var(--line);--glass:var(--side);--gold:var(--brand);scroll-padding-top:85px}
html[data-drex-theme] body{
  background:radial-gradient(ellipse 760px 340px at 68% -17%,var(--ambient),transparent 75%),var(--bg);
  background-attachment:fixed;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.013em;
}
html[data-drex-theme] body::after{display:none}
html[data-drex-theme] ::selection{background:var(--brand-soft);color:var(--ink)}
html[data-drex-theme] .app{grid-template-columns:248px minmax(0,1fr)}
html[data-drex-theme] aside{
  padding:22px 15px 17px;gap:26px;background:var(--side);
  border-right:1px solid var(--line);box-shadow:8px 0 50px -35px var(--shadow);z-index:5;
}
html[data-drex-theme] .brand{gap:12px;padding:4px 9px 22px;border-bottom:1px solid var(--line)}
html[data-drex-theme] .brand .av{width:44px;height:44px;border-radius:10px;background:#090909 url('/icons/drex-signature.webp') center/cover no-repeat;border:1px solid var(--line);box-shadow:none}
html[data-drex-theme] .brand b{font:750 16px/1.2 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.045em}
html[data-drex-theme] .brand small{font:600 9px/1.4 Inter,sans-serif;letter-spacing:.15em;margin-top:4px;color:var(--mut)}
html[data-drex-theme] #tabs{padding-right:1px;gap:3px}
html[data-drex-theme] #tabs button{position:relative;min-height:34px;font-size:12.5px;font-weight:540;color:var(--mut);padding:9px 12px;border-radius:7px;margin:0;transition:background .2s,color .2s,border-color .2s}
html[data-drex-theme] #tabs button.primary{font-size:13px;min-height:42px;font-weight:710;letter-spacing:-.01em}
html[data-drex-theme] #tabs button.gh{margin-top:14px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);font-weight:700}
html[data-drex-theme] #tabs button.sub{padding-left:36px}
html[data-drex-theme] #tabs button.on,html[data-drex-theme] #tabs button.primary.on{color:var(--ink);background:var(--brand-soft);border:1px solid var(--ring);font-weight:680}
html[data-drex-theme] #tabs button.on::before{background:var(--brand);box-shadow:none;left:-1px;top:23%;bottom:23%;width:2px}
html[data-drex-theme] #tabs button:hover:not(.on){color:var(--ink);background:var(--brand-soft)}
html[data-drex-theme] .sfoot{margin-top:auto;padding-top:16px}
html[data-drex-theme] .cpr b,html[data-drex-theme] .cpbar b{color:var(--brand)}
html[data-drex-theme] .col{min-width:0}
html[data-drex-theme] .top{max-width:1660px;padding:29px clamp(18px,3vw,54px) 19px;border-bottom:1px solid var(--line);min-height:86px}
html[data-drex-theme] #ttl{font:750 clamp(24px,2.2vw,34px)/1.15 Inter,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:none;-webkit-text-fill-color:currentColor;letter-spacing:-.045em}
html[data-drex-theme] #dt{color:var(--mut);font-size:11px;text-transform:none;letter-spacing:0}
html[data-drex-theme] main{max-width:1660px;padding:30px clamp(18px,3vw,54px) 62px}
html[data-drex-theme] h2{font-size:11px;color:var(--mut);font-weight:750;letter-spacing:.12em;text-transform:uppercase;margin:33px 0 15px}
html[data-drex-theme] h2:after{background:var(--line)}
html[data-drex-theme] h3{font:710 18px/1.35 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.035em}
html[data-drex-theme] .lead{font-size:14px;line-height:1.65;max-width:76ch;margin:4px 0 20px}
html[data-drex-theme] .c,html[data-drex-theme] .tb,html[data-drex-theme] .note,html[data-drex-theme] .pnl-card{
 border-radius:12px;border:1px solid var(--line);background:var(--card);box-shadow:0 8px 34px -28px var(--shadow);
}
html[data-drex-theme] .c{padding:19px}
html[data-drex-theme] .c.a{border-top:1px solid var(--line)}
html[data-drex-theme] .g,html[data-drex-theme] .g2{gap:13px}
html[data-drex-theme] .k{font-size:10.5px;font-weight:720;color:var(--mut);letter-spacing:.085em}
html[data-drex-theme] .v{font-weight:730;letter-spacing:-.045em;font-variant-numeric:tabular-nums;font-size:27px}
html[data-drex-theme] .s{color:var(--mut);font-size:12.5px;line-height:1.55}
html[data-drex-theme] .up{color:var(--up)}html[data-drex-theme] .dn{color:var(--down)}html[data-drex-theme] .wn{color:var(--warn)}html[data-drex-theme] .m{color:var(--mut)}
html[data-drex-theme] .tb{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
html[data-drex-theme] .tb th{background:var(--card2);color:var(--mut);font-size:10px;font-weight:800;letter-spacing:.075em}
html[data-drex-theme] .tb td{border-top:1px solid var(--line);font-size:12.5px;padding:14px}
html[data-drex-theme] tr:hover td{background:var(--brand-soft)}
html[data-drex-theme] .hero{background:linear-gradient(105deg,var(--card) 0%,var(--side) 70%);color:var(--ink);border-radius:14px;padding:37px 34px}
html[data-drex-theme] .hero::after{display:none}
html[data-drex-theme] .hero h1{font:800 clamp(32px,4vw,60px)/1.07 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.06em;color:var(--ink);background:none;-webkit-text-fill-color:currentColor}
html[data-drex-theme] .hero h1 em{font-style:normal;color:var(--brand);background:none;-webkit-text-fill-color:currentColor}
html[data-drex-theme] .hero p{color:var(--mut);max-width:62ch;font-size:15px}
html[data-drex-theme] .btn,html[data-drex-theme] .bn-cta,html[data-drex-theme] .thbtn{
 background:var(--brand-solid);color:var(--on-brand);box-shadow:none;border:1px solid transparent;border-radius:9px;font-weight:760;transition:transform .22s ease,filter .22s ease,box-shadow .22s ease;
}
html[data-drex-theme] .btn:hover,html[data-drex-theme] .bn-cta:hover,html[data-drex-theme] .thbtn:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 6px 20px -11px var(--shadow)}
html[data-drex-theme] .ch button.on{background:var(--brand-soft);color:var(--brand);border-color:var(--ring)}
html[data-drex-theme] button,html[data-drex-theme] input,html[data-drex-theme] select{font-family:inherit}
html[data-drex-theme] :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
html[data-drex-theme] .cpbar{max-width:1560px;margin:20px auto 0;padding:14px 24px 24px}
html[data-drex-theme] .tzs{background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-drex-theme] .bell-panel{background:var(--card);border-color:var(--line)}
/* Home is deliberately quieter: six metrics, one focal insight and concise navigation. */
/* The upcoming release already has its own metric: suppress the duplicated news strip on home only. */
html[data-drex-theme] body[data-t="home"] #bn{display:none!important}

html[data-drex-theme] .dx-home{display:grid;gap:18px}
html[data-drex-theme] .dx-eyebrow{font-size:10px;letter-spacing:.24em;font-weight:800;text-transform:uppercase;color:var(--brand)}
html[data-drex-theme] .dx-hero{min-height:266px;display:grid;grid-template-columns:1.4fr .65fr;gap:22px;background:linear-gradient(100deg,var(--card),var(--side));border:1px solid var(--line);border-radius:16px;overflow:hidden;position:relative}
html[data-drex-theme] .dx-hero::before{content:"";position:absolute;inset:0;opacity:.26;pointer-events:none;background:linear-gradient(128deg,transparent 46%,var(--brand-soft) 80%,transparent 95%)}
html[data-drex-theme] .dx-hero-copy{padding:35px clamp(24px,3vw,49px);position:relative;z-index:1}
html[data-drex-theme] .dx-hero h1{font-size:clamp(34px,4vw,61px);font-weight:810;line-height:1.03;letter-spacing:-.067em;margin:17px 0 16px;max-width:13ch}
html[data-drex-theme] .dx-hero h1 span{color:var(--brand)}
html[data-drex-theme] .dx-hero p{color:var(--mut);font-size:14px;line-height:1.7;max-width:47ch;margin:0}
html[data-drex-theme] .dx-hero-rail{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:32px 36px 30px;z-index:1;border-left:1px solid var(--line)}
html[data-drex-theme] .dx-seal{font-size:clamp(90px,13vw,164px);line-height:.76;letter-spacing:-.11em;font-weight:920;color:var(--brand);opacity:.31;font-style:italic;user-select:none}
html[data-drex-theme] .dx-hero-meta{font-size:10px;text-transform:uppercase;letter-spacing:.17em;color:var(--mut);text-align:right;line-height:1.9}
html[data-drex-theme] .dx-hero-meta b{color:var(--ink);font-weight:800}
html[data-drex-theme] .dx-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-drex-theme] .dx-metric{display:flex;min-height:148px;flex-direction:column;justify-content:space-between;padding:20px 20px 18px;border-radius:12px;border:1px solid var(--line);background:var(--card);transition:border-color .2s ease,transform .2s ease}
html[data-drex-theme] a.dx-metric{text-decoration:none;color:inherit}
html[data-drex-theme] a.dx-metric:hover{border-color:var(--ring);transform:translateY(-2px)}
html[data-drex-theme] .dx-metric-top{display:flex;gap:8px;justify-content:space-between;align-items:center;color:var(--mut);font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:800}
html[data-drex-theme] .dx-metric-top i{font-style:normal;color:var(--brand)}
html[data-drex-theme] .dx-metric-val{font-size:clamp(23px,2.8vw,35px);font-weight:790;line-height:1.1;letter-spacing:-.055em;font-variant-numeric:tabular-nums;word-break:break-word}
html[data-drex-theme] .dx-metric-detail{font-size:12px;color:var(--mut)}
html[data-drex-theme] .dx-metric-detail b{color:var(--ink);font-weight:650}
html[data-drex-theme] .dx-metric-val.status{font-size:clamp(21px,2.1vw,27px)}
html[data-drex-theme] .dx-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 -2px}
html[data-drex-theme] .dx-section-head strong{font-size:16px;letter-spacing:-.035em;font-weight:750}
html[data-drex-theme] .dx-section-head small{font-size:11px;color:var(--mut)}
html[data-drex-theme] .dx-section-head a{color:var(--brand);text-decoration:none;font-size:12px;font-weight:650}
html[data-drex-theme] .dx-focus{display:grid;grid-template-columns:1.55fr 1fr;gap:13px}
html[data-drex-theme] .dx-focus-panel{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}
html[data-drex-theme] .dx-focus-panel .dx-caption{color:var(--mut);letter-spacing:.13em;font-weight:800;font-size:10px;text-transform:uppercase}
html[data-drex-theme] .dx-focus-title{font-weight:770;font-size:23px;letter-spacing:-.05em;margin:12px 0}
html[data-drex-theme] .dx-focus-row{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}
html[data-drex-theme] .dx-focus-row:last-child{border:0}
html[data-drex-theme] .dx-focus-row span{color:var(--mut)}
html[data-drex-theme] .dx-focus-row b{font-weight:750;font-variant-numeric:tabular-nums;text-align:right}
html[data-drex-theme] .dx-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}
html[data-drex-theme] .dx-inline-actions button{border-radius:8px;cursor:pointer;background:var(--card2);color:var(--ink);border:1px solid var(--line);padding:10px 15px;font-size:12px;font-weight:700}
html[data-drex-theme] .dx-inline-actions button:first-child{background:var(--brand-solid);color:var(--on-brand);border-color:transparent}
html[data-drex-theme] .dx-note{margin-top:17px;border-left:2px solid var(--brand);padding:2px 0 2px 12px;color:var(--mut);font-size:12px;line-height:1.6}
html[data-drex-theme] .dx-empty{font-size:13px;color:var(--mut);line-height:1.6}
html[data-drex-theme] .dx-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
html[data-drex-theme] .dx-quick button{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:15px 15px;font-size:12px;text-align:left;font-weight:720;cursor:pointer;transition:background .2s,border-color .2s}
html[data-drex-theme] .dx-quick button:hover{background:var(--card2);border-color:var(--ring)}
html[data-drex-theme] .dx-quick button span{color:var(--brand)}
/* Focused control center, not an intrusive floating settings pill. */
html[data-drex-theme] #dx-settings-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:40px;height:40px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--card);cursor:pointer;flex:none;transition:border-color .2s,background .2s}
html[data-drex-theme] #dx-settings-trigger:hover{border-color:var(--brand);background:var(--card2)}
html[data-drex-theme] #dx-settings-trigger svg{width:19px;height:19px}
html[data-drex-theme] #dx-settings-overlay{position:fixed;inset:0;z-index:190;display:none}
html[data-drex-theme] #dx-settings-overlay.open{display:block}
html[data-drex-theme] .dx-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(5px)}
html[data-drex-theme] #dx-settings-drawer{position:absolute;right:0;top:0;bottom:0;width:min(485px,100vw);background:var(--side);border-left:1px solid var(--line);box-shadow:-18px 0 100px rgba(0,0,0,.24);display:flex;flex-direction:column;animation:dx-drawer-in .32s cubic-bezier(.2,.8,.2,1)}
@keyframes dx-drawer-in{from{transform:translateX(28px);opacity:.55}to{transform:translateX(0);opacity:1}}
html[data-drex-theme] .dx-settings-top{padding:27px 27px 22px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between}
html[data-drex-theme] .dx-settings-top h2{font-size:26px;letter-spacing:-.055em;text-transform:none;color:var(--ink);margin:8px 0 0}
html[data-drex-theme] .dx-settings-top h2::after{display:none}
html[data-drex-theme] .dx-settings-close{width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:23px;cursor:pointer}
html[data-drex-theme] .dx-settings-content{overflow:auto;overscroll-behavior:contain;padding:10px 27px 35px}
html[data-drex-theme] .dx-setting-group{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
html[data-drex-theme] .dx-setting-group:first-child{border:0;margin-top:12px;padding:0}
html[data-drex-theme] .dx-group-title{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--mut);text-transform:uppercase;margin-bottom:8px}
html[data-drex-theme] .dx-group-hint{font-size:12px;color:var(--mut);line-height:1.55;margin-bottom:15px}
html[data-drex-theme] .dx-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-drex-theme] .dx-theme-option{display:flex;flex-direction:column;text-align:left;gap:7px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);padding:11px;cursor:pointer;min-width:0;transition:border .2s,transform .2s}
html[data-drex-theme] .dx-theme-option:hover{transform:translateY(-1px);border-color:var(--brand)}
html[data-drex-theme] .dx-theme-option[aria-pressed="true"]{border:1px solid var(--brand);box-shadow:inset 0 0 0 1px var(--ring)}
html[data-drex-theme] .dx-theme-name{display:flex;justify-content:space-between;font-size:12px;font-weight:750}
html[data-drex-theme] .dx-theme-name em{font-style:normal;color:var(--brand)}
html[data-drex-theme] .dx-theme-swatch{height:50px;border-radius:6px;display:flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid rgba(100,100,100,.22)}
html[data-drex-theme] .dx-theme-swatch i{height:14px;border-radius:3px;flex:1;opacity:.94}
html[data-drex-theme] .dx-setting-row{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
html[data-drex-theme] .dx-setting-row:last-child{border:0}
html[data-drex-theme] .dx-setting-row b{display:block;font-size:13px;font-weight:700}
html[data-drex-theme] .dx-setting-row small{color:var(--mut);font-size:11px;line-height:1.4;display:block;margin-top:4px}
html[data-drex-theme] .dx-switch{appearance:none;width:41px;height:24px;border-radius:99px;flex:none;position:relative;cursor:pointer;background:var(--line);border:1px solid var(--line);transition:background .2s}
html[data-drex-theme] .dx-switch::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:transform .2s}
html[data-drex-theme] .dx-switch:checked{background:var(--brand);border-color:var(--brand)}
html[data-drex-theme] .dx-switch:checked::after{background:var(--on-brand);transform:translateX(17px)}
html[data-drex-theme] .dx-select{min-height:37px;border-radius:7px;padding:7px 9px;border:1px solid var(--line);background:var(--card2);color:var(--ink);font-size:12px;max-width:160px}
html[data-drex-theme] .dx-sound-preview{min-height:35px;padding:7px 11px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:12px;cursor:pointer}
html[data-drex-theme] #dx-volume{width:125px;accent-color:var(--brand)}
html[data-drex-theme] .dx-settings-foot{border-top:1px solid var(--line);padding:17px 27px;color:var(--mut);font-size:11px;line-height:1.6}
html[data-drex-theme] .dx-reduced *,html[data-drex-theme].dx-reduced *,html[data-drex-theme].dx-reduced *::before,html[data-drex-theme].dx-reduced *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
html[data-drex-theme] .dx-quiet-surface .c,html[data-drex-theme].dx-quiet-surface .tb{box-shadow:none}
html[data-drex-theme].dx-compact main{padding-top:18px}html[data-drex-theme].dx-compact .c{padding:12px}html[data-drex-theme].dx-compact .tb td{padding:8px 11px}html[data-drex-theme].dx-compact .dx-metric{min-height:118px;padding:15px}html[data-drex-theme].dx-compact .dx-focus-panel{padding:18px}
/* Auth: retain the proven Supabase flows; give signup its own considered layout. */
html[data-drex-theme] #auth{background:radial-gradient(ellipse at 14% 9%,var(--ambient),transparent 56%),var(--bg);padding:34px 18px;z-index:100}
html[data-drex-theme] #auth .aw{max-width:1160px;min-height:620px;grid-template-columns:1fr .96fr;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 35px 100px -32px rgba(0,0,0,.55)}
html[data-drex-theme] #auth .apitch{padding:58px 52px;background:#0a0c0f;color:#f4f5f6}
html[data-drex-theme] #auth .apitch::before{background:linear-gradient(110deg,rgba(9,12,15,.15),rgba(9,12,15,.85)),url('/icons/drex-signature.webp') 95% 11% / 330px auto no-repeat;opacity:.3;filter:none}
html[data-drex-theme] #auth .apitch::after{background:linear-gradient(180deg,rgba(7,10,12,.1),rgba(7,10,12,.78))}
html[data-drex-theme] #auth .atag{font-size:10px;letter-spacing:.19em;font-weight:800;color:#cdd9e5}
html[data-drex-theme] #auth .ah1{font:800 clamp(32px,3.3vw,53px)/1.06 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.065em}
html[data-drex-theme] #auth .ah1 em{font-style:normal;color:#b8cce0;letter-spacing:-.045em}
html[data-drex-theme] #auth .asub{font-size:14px;line-height:1.8;color:#b8c0c9}
html[data-drex-theme] #auth .afeat{margin:20px 0}
html[data-drex-theme] #auth .afeat li{font-size:13px;line-height:1.55;color:#e0e3e5}
html[data-drex-theme] #auth .afeat li i{color:#d0dae4}
html[data-drex-theme] #auth .abonus{border:1px solid rgba(203,216,229,.2);background:rgba(203,216,229,.05);border-radius:10px}
html[data-drex-theme] #auth .abonus b{color:#d8e4ee}
html[data-drex-theme] #auth .aform{padding:55px clamp(27px,3.6vw,67px);background:var(--card)}
html[data-drex-theme] #auth .aform h1{font:790 29px/1.2 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.055em;margin-bottom:6px}
html[data-drex-theme] #auth .amode{font-size:13px;color:var(--mut)}
html[data-drex-theme] #auth .aform label{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--mut);text-transform:uppercase}
html[data-drex-theme] #auth .afield input{width:100%;border-radius:9px;min-height:48px;background:var(--bg);border:1px solid var(--line);color:var(--ink);font-size:14px}
html[data-drex-theme] #auth .afield:focus-within svg{color:var(--brand)}
html[data-drex-theme] #auth .afield input:focus{border-color:var(--brand)}
html[data-drex-theme] #auth .btn{min-height:49px;border-radius:8px;margin-top:18px!important;font-weight:800}
html[data-drex-theme] #auth .lk{color:var(--brand)}
html[data-drex-theme] #auth .atrust{color:var(--mut)}
html[data-drex-theme] #auth .asignature{margin-bottom:22px;font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--brand)}
/* Small motion, intentionally sparse; important values stay still. */
@media (prefers-reduced-motion:no-preference){
 html[data-drex-theme]:not(.dx-reduced) .dx-hero{animation:dx-reveal .52s cubic-bezier(.15,.7,.2,1) both}
 html[data-drex-theme]:not(.dx-reduced) .dx-tiles .dx-metric{animation:dx-reveal .38s ease-out both;animation-delay:calc(var(--i,0)*44ms)}
 html[data-drex-theme]:not(.dx-reduced) .dx-focus-panel{animation:dx-reveal .36s ease-out both;animation-delay:.12s}
 @keyframes dx-reveal{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
}
/* Medium tablet: two metrics per row, simple header. */
@media(max-width:1150px){
 html[data-drex-theme] .app{grid-template-columns:215px minmax(0,1fr)}
 html[data-drex-theme] aside{padding:18px 10px}
 html[data-drex-theme] .dx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-drex-theme] .dx-hero{grid-template-columns:1fr 170px}
 html[data-drex-theme] .dx-focus{grid-template-columns:1fr}
 html[data-drex-theme] .dx-quick{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px),(max-height:500px) and (max-width:1024px) and (pointer:coarse){
 html[data-drex-theme] .app{display:block}
 html[data-drex-theme] aside{position:sticky;top:0;height:auto;padding:calc(8px + env(safe-area-inset-top,0px)) 16px 7px;background:var(--side);z-index:50;border-bottom:1px solid var(--line);box-shadow:none}
 html[data-drex-theme] .brand{border:0;padding:0;gap:10px}
 html[data-drex-theme] .brand .av{width:35px;height:35px;border-radius:7px}
 html[data-drex-theme] .brand b{font-size:14px}
 html[data-drex-theme] .brand small{font-size:8px;letter-spacing:.08em}
 html[data-drex-theme] .top{padding:15px 16px 9px;border:0;min-height:60px}
 html[data-drex-theme] #ttl{font-size:23px}
 html[data-drex-theme] main{padding:16px 14px calc(78px + env(safe-area-inset-bottom,0px))}
 html[data-drex-theme] #bn,html[data-drex-theme] #ps{margin:10px 14px 0}
 html[data-drex-theme] #bnav{background:var(--side);border-top:1px solid var(--line);z-index:60}
 html[data-drex-theme] #bnav button{color:var(--mut)}
 html[data-drex-theme] #bnav button.on,html[data-drex-theme] #bnav button.on svg{color:var(--brand);stroke:var(--brand)}
 html[data-drex-theme] #bnav button.on::before{background:var(--brand)}
 html[data-drex-theme] #msheet .sp{background:var(--side);border-color:var(--line)}
 html[data-drex-theme] #msheet .ml button{background:var(--card);border-color:var(--line)}
 html[data-drex-theme] #msheet .ml button.on{border-color:var(--brand)}
 html[data-drex-theme] .dx-hero{grid-template-columns:1fr 130px;min-height:225px}
 html[data-drex-theme] .dx-hero-copy{padding:25px}
 html[data-drex-theme] .dx-hero-rail{padding:28px 18px}
 html[data-drex-theme] .dx-hero h1{font-size:38px}
 html[data-drex-theme] .dx-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 html[data-drex-theme] .dx-focus-panel{padding:20px}
 html[data-drex-theme] .dx-metric{min-height:135px;padding:17px}
 html[data-drex-theme] #auth .aw{grid-template-columns:1fr .95fr}
 html[data-drex-theme] #auth .apitch{padding:30px 26px}
 html[data-drex-theme] #auth .aform{padding:35px 26px}
}
@media(max-width:640px){
 html[data-drex-theme] .dx-home{gap:12px}
 html[data-drex-theme] .dx-hero{grid-template-columns:1fr;min-height:auto}
 html[data-drex-theme] .dx-hero h1{font-size:clamp(33px,8.5vw,49px);max-width:12ch;margin:12px 0}
 html[data-drex-theme] .dx-hero-copy{padding:26px 24px 29px}
 html[data-drex-theme] .dx-hero-rail{display:none}
 html[data-drex-theme] .dx-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html[data-drex-theme] .dx-metric{min-height:121px;padding:14px}
 html[data-drex-theme] .dx-metric-top{font-size:9px}
 html[data-drex-theme] .dx-metric-val{font-size:clamp(21px,5.5vw,29px)}
 html[data-drex-theme] .dx-metric-val.status{font-size:21px}
 html[data-drex-theme] .dx-metric-detail{font-size:11px}
 html[data-drex-theme] .dx-section-head{align-items:baseline}
 html[data-drex-theme] .dx-focus{gap:9px}
 html[data-drex-theme] .dx-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html[data-drex-theme] .dx-quick button{padding:13px 11px;font-size:11px}
 html[data-drex-theme] #auth{padding:0;min-height:100dvh;display:flex;align-items:stretch}
 html[data-drex-theme] #auth .aw{display:flex;flex-direction:column;min-height:100dvh;border:0;border-radius:0;max-width:none}
 html[data-drex-theme] #auth .apitch{padding:28px 24px 23px;min-height:auto}
 html[data-drex-theme] #auth .ah1{font-size:28px;max-width:18ch;margin:12px 0 7px}
 html[data-drex-theme] #auth .afeat,html[data-drex-theme] #auth .abonus{display:none}
 html[data-drex-theme] #auth .asub{font-size:12px;margin:0;line-height:1.55;max-width:44ch}
 html[data-drex-theme] #auth .aform{padding:30px 24px 65px;justify-content:flex-start;flex:1}
 html[data-drex-theme] #auth .aform h1{font-size:25px}
 html[data-drex-theme] #auth .atrust{font-size:11px}
 html[data-drex-theme] #dx-settings-drawer{width:100vw;max-width:none}
 html[data-drex-theme] .dx-settings-content{padding:10px 17px 32px}
 html[data-drex-theme] .dx-settings-top{padding:22px 17px 18px}
 html[data-drex-theme] #dx-settings-trigger{width:42px;height:42px;order:2}
 html[data-drex-theme] .cpbar{padding:14px 16px 95px}
}
@media(prefers-reduced-motion:reduce){html[data-drex-theme] *,html[data-drex-theme] *:before,html[data-drex-theme] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
