/* ARSIVA DMS mockup – core/theme */
html[data-theme=dark]{color-scheme:dark;--bg:#0f1117;--card:#171a23;--text:#e6e8ef;--muted:#979db0;--line:#2a2f3d;--sub:#1c2029;
    --f1:color-mix(in srgb,var(--purple) 70%,#fff);--f2:color-mix(in srgb,var(--purple) 55%,#fff)}
html[data-theme=dark] .p-green{background:rgba(31,184,148,.16);color:#4fd8b2}
html[data-theme=dark] .p-red,html[data-theme=dark] .tcode{background:rgba(242,57,74,.16);color:#ff8a95}
html[data-theme=dark] .p-orange{background:rgba(255,162,53,.16);color:#ffbd6b}
html[data-theme=dark] .p-purple{color:var(--f1)}
html[data-theme=dark] .tcode.tl{background:rgba(31,184,148,.16);color:#4fd8b2}
html[data-theme=dark] .toast{background:#2a2f3d;color:#fff}
html[data-theme=dark] .pname,html[data-theme=dark] .lnk,html[data-theme=dark] .back,html[data-theme=dark] .mf-ttl small a,html[data-theme=dark] .row .nm small a,html[data-theme=dark] .logo{color:var(--f1)}
html[data-theme=dark] .modal{background:rgba(0,0,0,.55)}
body,header,.stat,.launcher,.mf-top,.rail,.tree,.main,.tile{transition:background-color .25s,border-color .25s,color .25s}
.hbtn{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--card);display:grid;place-items:center;cursor:pointer}
.hbtn:hover{background:var(--tint2)}
.hbtn svg{fill:var(--muted)}
.thm{position:relative}
.thmdd{left:auto!important;right:0;top:46px!important;width:270px;padding:14px!important}
.thmdd h6{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:2px 2px 8px}
.thmdd .seg{width:100%;margin-bottom:16px}
.thmdd .seg button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;height:auto;padding:8px 0;font-size:12px;background:var(--card)}
.thmdd .seg button svg{width:18px;height:18px;fill:currentColor}
.thmdd .seg button.on{background:var(--tint);color:var(--purple)}
.sw{display:flex;gap:10px;margin-bottom:6px}
.sw button{width:30px;height:30px;border-radius:50%;border:2px solid var(--card);box-shadow:0 0 0 1px var(--line);cursor:pointer;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:700}
.sw button.on{box-shadow:0 0 0 2px var(--text)}
.thmdd .note{font-size:12px;color:var(--muted);margin-top:8px}
/* the chosen accent colour is used for every module: home tiles and page-header icons follow it too */
.ic.red,.ic.green,.ic.orange{background:var(--purple)}
.t-red,.t-green,.t-orange{--c1:var(--purple);--c2:var(--purple-d)}
