*{margin:0;padding:0;box-sizing:border-box;font-family:'Plus Jakarta Sans','Segoe UI',sans-serif}
:root{--bg:#070707;--panel:#0b0b0b;--card:rgba(255,255,255,.04);--line:rgba(255,255,255,.07);--line2:rgba(255,255,255,.13);--text:#fff;--soft:#d0d0d0;--muted:#8f8f8f;--blue:#1e3a8a;--blue2:#3b5bdb;--green:#22c55e;--red:#ef4444;--orange:#f5a623;--discord:#5865f2}
html,body{height:100%;background:var(--bg);color:var(--text);font-size:14px}
body{background:radial-gradient(1200px 600px at 15% -10%,rgba(30,58,138,.22),transparent 60%),var(--bg)}
svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hidden{display:none!important}
button{font:inherit}
::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}

/* ===== login ===== */
#login{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden;background:#000}
#matrix{position:absolute;inset:0;width:100%;height:100%}
.lbox{position:relative;z-index:2;width:420px;max-width:100%;background:rgba(11,11,11,.92);backdrop-filter:blur(6px);border:1px solid var(--line2);border-radius:18px;padding:38px 34px;display:flex;flex-direction:column;align-items:center;gap:16px;animation:in .35s cubic-bezier(.16,1,.3,1)}
@keyframes in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.lbox img{width:84px}
.lbox h1{font-size:20px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.lbox p{color:var(--muted);text-align:center;font-size:13px;line-height:1.6}
.dbtn{width:100%;height:46px;border-radius:10px;border:0;background:var(--discord);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:filter .15s}
.dbtn:hover{filter:brightness(1.1)}
.lnote{display:flex;gap:8px;align-items:flex-start;font-size:11.5px;color:var(--muted);background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:10px;padding:10px 12px;line-height:1.5}
.lerr{width:100%;font-size:12.5px;font-weight:700;color:var(--red);background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.35);border-radius:10px;padding:10px 12px;text-align:center}
.lalt{font-size:11.5px;color:var(--muted);cursor:pointer;text-decoration:underline}
.lver{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-size:11px;color:rgba(255,255,255,.3);z-index:2;letter-spacing:.1em}

/* ===== app ===== */
#app{display:flex;height:100vh}
aside{width:250px;flex:none;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:18px 18px 16px;border-bottom:1px solid var(--line)}
.brand img{width:36px}
.brand b{display:block;font-size:13.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.brand span{font-size:11px;color:var(--muted);font-weight:600}
nav{flex:1;padding:12px;display:flex;flex-direction:column;gap:3px;overflow-y:auto}
.nh{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:12px 10px 6px}
.ni{display:flex;align-items:center;gap:10px;height:38px;padding:0 12px;border-radius:9px;border:1px solid transparent;background:none;color:var(--soft);font-size:13px;font-weight:700;cursor:pointer;text-align:left}
.ni:hover{background:rgba(255,255,255,.05)}
.ni.on{background:rgba(255,255,255,.09);border-color:var(--line2);color:#fff;box-shadow:inset 3px 0 0 var(--blue2)}
.ni .c{margin-left:auto;font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;background:rgba(59,91,219,.18);color:#9fb3ff}
.ni .c.o{background:rgba(245,166,35,.15);color:var(--orange)}
.ni .c.r{background:rgba(239,68,68,.15);color:#ff8a8a}
.me{display:flex;align-items:center;gap:11px;padding:14px 16px;border-top:1px solid var(--line)}
.av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue2));display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex:none}
.me b{display:block;font-size:13px}
.me small{font-size:11px;color:var(--muted)}
.me .grow{flex:1;min-width:0}
.ib{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--soft);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ib:hover{background:rgba(255,255,255,.09);color:#fff}
.ib.out{color:#ef4444;border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.1)}
.ib.out:hover{color:#fff;background:rgba(239,68,68,.28);border-color:rgba(239,68,68,.6)}

main{flex:1;min-width:0;display:flex;flex-direction:column}
header{height:64px;flex:none;display:flex;align-items:center;gap:12px;padding:0 26px;border-bottom:1px solid var(--line);background:rgba(11,11,11,.7);backdrop-filter:blur(8px)}
header h2{font-size:17px;font-weight:800}
header .crumb{font-size:12px;color:var(--muted);font-weight:600}
.grow{flex:1}
.demo{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);font-weight:700}
.demo select{height:30px;width:auto;font-size:12px;padding:0 8px}
.rank{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid;white-space:nowrap}
.r9,.r8{background:rgba(245,166,35,.14);color:var(--orange);border-color:rgba(245,166,35,.4)}
.r7,.r6,.r5{background:rgba(59,91,219,.16);color:#a9bbff;border-color:rgba(59,91,219,.45)}
.r4,.r3{background:rgba(34,197,94,.12);color:var(--green);border-color:rgba(34,197,94,.4)}
.r2,.r1{background:rgba(255,255,255,.08);color:var(--soft);border-color:var(--line2)}
.content{flex:1;overflow-y:auto;padding:24px 26px 40px}
.page{display:flex;flex-direction:column;gap:18px;animation:in .25s cubic-bezier(.16,1,.3,1)}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#p-dash{height:calc(100vh - 128px);min-height:600px;display:grid;grid-template-rows:auto minmax(0,1fr) minmax(0,1fr);gap:16px}
#p-dash .stat{padding:13px 18px;gap:3px}
#p-dash .stat b{font-size:24px}
#p-dash .grid2{min-height:0}
#p-dash .card{min-height:0;overflow:hidden;gap:10px}
.chbox{flex:1;min-height:0;position:relative}
.chbox svg{position:absolute;inset:0;width:100%;height:100%}
#p-dash .hbar{flex:1;justify-content:space-around;min-height:0}
#p-dash .feed{flex:1;min-height:0;overflow:hidden;gap:6px}
#p-dash .fi{padding:7px 10px}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden}
.stat small{font-size:11.5px;color:var(--muted);font-weight:700}
.stat b{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.stat span{font-size:11.5px;color:var(--muted)}
.stat.click{cursor:pointer}.stat.click:hover{border-color:var(--line2)}
.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.card h3{font-size:15px;font-weight:800;display:flex;align-items:center;gap:8px}
.card h3 .grow+*{font-weight:600}
.hint{font-size:12px;color:var(--muted);line-height:1.55}
.hint b{color:var(--soft)}

.chart{width:100%;height:auto;display:block}
.chart,.chart *{stroke:none;stroke-width:0}
.chart text{fill:var(--muted);font-size:10.5px;font-weight:600;font-family:'Plus Jakarta Sans',sans-serif}
.chart .gl{stroke:rgba(255,255,255,.06);stroke-width:1}
.chart .bar{fill:url(#gBar)}
.chart .bar:hover{fill:#5b7bff}
.chart .ln{fill:none;stroke:#5b7bff;stroke-width:2.2}
.chart .ar{fill:url(#gArea)}
.chart .pt{fill:#0b0b0b;stroke:#5b7bff;stroke-width:2}
.legend{display:flex;gap:14px;font-size:11.5px;color:var(--muted);font-weight:600}
.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.hbar{display:flex;flex-direction:column;gap:10px}
.hb{display:grid;grid-template-columns:110px 1fr 54px;align-items:center;gap:10px;font-size:12.5px}
.hb span{color:var(--soft);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb .tr{height:10px;border-radius:999px;background:rgba(255,255,255,.05);overflow:hidden}
.hb .tr i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--blue),#5b7bff)}
.hb b{text-align:right;font-variant-numeric:tabular-nums;font-size:12px}

.tbl{width:100%;border-collapse:collapse}
.tbl th{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-align:left;font-weight:800;padding:0 10px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:11px 10px;border-bottom:1px solid var(--line);font-size:13px;color:var(--soft);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover td{background:rgba(255,255,255,.025)}
.tbl td b{color:#fff}
.tbl .r{text-align:right;white-space:nowrap}
.mono{font-family:ui-monospace,Consolas,monospace;font-size:12px;color:var(--soft)}
.chip{display:inline-block;font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.07);color:var(--soft);border:1px solid var(--line);white-space:nowrap}
.chip.g{color:var(--green);background:rgba(34,197,94,.1);border-color:rgba(34,197,94,.35)}
.chip.r{color:var(--red);background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.35)}
.chip.o{color:var(--orange);background:rgba(245,166,35,.1);border-color:rgba(245,166,35,.35)}
.chip.b{color:#a9bbff;background:rgba(59,91,219,.14);border-color:rgba(59,91,219,.4)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--line2);background:rgba(255,255,255,.07);color:#fff;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.btn:hover{background:rgba(255,255,255,.12)}
a.btn{text-decoration:none}
.btn.sm{height:28px;padding:0 10px;font-size:12px}
.btn.blue{background:rgba(59,91,219,.2);border-color:rgba(59,91,219,.55);color:#c9d4ff}
.btn.blue:hover{background:rgba(59,91,219,.3)}
.btn.green{color:var(--green);background:rgba(34,197,94,.1);border-color:rgba(34,197,94,.4)}
.btn.green:hover{background:rgba(34,197,94,.18)}
.btn.red{color:var(--red);background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.35)}
.btn.red:hover{background:rgba(239,68,68,.16)}
.btn:disabled{opacity:.4;pointer-events:none}

.search{display:flex;align-items:center;gap:8px;padding:0 14px;height:40px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:9px;color:var(--muted);flex:1;max-width:460px}
.search input{flex:1;background:none;border:0;outline:0;color:#fff;font-size:13px;font-weight:500}
.search:focus-within{border-color:rgba(59,91,219,.6)}
.bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.f{display:flex;flex-direction:column;gap:6px;min-width:0}
.f.full{grid-column:1/-1}
.f label{font-size:11.5px;font-weight:700;color:var(--muted)}
.f .sub{font-size:11px;color:var(--muted);opacity:.85}
.inp,select,textarea{height:38px;padding:0 12px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:9px;color:#fff;font-size:13px;font-weight:600;outline:0;width:100%}
textarea{height:80px;padding:10px 12px;resize:vertical;font-weight:500}
select option{background:#111}
.inp:focus,select:focus,textarea:focus{border-color:rgba(59,91,219,.6)}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--soft);font-weight:700;font-size:12.5px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.seg button.on{background:rgba(59,91,219,.2);border-color:rgba(59,91,219,.55);color:#fff}
.seg.sm button{height:30px;padding:0 11px;font-size:12px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:-4px 0 0}
.tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font-weight:700;font-size:13px;padding:8px 12px 10px;cursor:pointer;display:flex;align-items:center;gap:7px}
.tabs button.on{color:#fff;border-bottom-color:var(--blue2)}
.tabs button .chip{padding:1px 7px}

.feed{display:flex;flex-direction:column;gap:8px}
.fi{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);background:var(--card);border-radius:10px}
.fi .ic{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);flex:none}
.ic.r{color:var(--red);background:rgba(239,68,68,.1)}
.ic.g{color:var(--green);background:rgba(34,197,94,.1)}
.ic.o{color:var(--orange);background:rgba(245,166,35,.1)}
.ic.b{color:#a9bbff;background:rgba(59,91,219,.15)}
.fi p{font-size:12.5px;color:var(--soft);line-height:1.45}
.fi p b{color:#fff}
.fi time{font-size:11px;color:var(--muted);white-space:nowrap}

/* speler */
.pdetail{display:grid;grid-template-columns:320px 1fr;gap:18px;align-items:start}
.pcard{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.pcard .av{width:72px;height:72px;font-size:24px}
.kv{width:100%;display:flex;flex-direction:column;gap:8px;text-align:left}
.kv div{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;border-bottom:1px solid var(--line);padding-bottom:8px}
.kv div>span:first-child{color:var(--muted);flex:none}
.kv .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kv .bm{color:#ff8a8a;font-weight:700}
.kv .k{display:inline-flex;align-items:center;gap:8px}
.kv .k svg{width:14px;height:14px;color:#6f7aa3;flex:none}
.rstat{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(34,197,94,.3);background:rgba(34,197,94,.06);border-radius:10px;font-size:12.5px;color:var(--soft)}
.rstat b{font-size:18px;color:#fff;font-variant-numeric:tabular-nums}
.rstat svg{color:var(--green);width:18px;height:18px}
.acts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.act{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card);cursor:pointer;color:#fff;text-align:left}
.act:hover{background:rgba(255,255,255,.07);border-color:var(--line2)}
.act b{font-size:13px}
.act small{font-size:11.5px;color:var(--muted);line-height:1.4}
.act.danger{border-color:rgba(239,68,68,.25)}
.act.danger svg{color:var(--red)}
.act.lock{opacity:.4;pointer-events:none}
.vrow{display:grid;grid-template-columns:96px 1fr auto;gap:14px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.vrow img{width:96px;height:60px;object-fit:contain;background:none}
.vrow b{font-size:13.5px}
.vrow .meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px;align-items:center}
.vrow .btns{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.invg{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.inv{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:10px 8px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.inv .q{position:absolute;top:6px;right:7px;font-size:11px;font-weight:800;color:var(--soft)}
.inv span{font-size:11px;font-weight:700;color:var(--soft);line-height:1.3}

/* item picker */
.ico{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.ico svg{width:22px;height:22px}
.ico.w{background:rgba(239,68,68,.1);color:#ff8a8a}
.ico.a{background:rgba(245,166,35,.1);color:var(--orange)}
.ico.t{background:rgba(168,85,247,.12);color:#c79bff}
.ico.i{background:rgba(59,91,219,.14);color:#a9bbff}
.ico.m{background:rgba(34,197,94,.1);color:var(--green)}
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px;max-height:420px;overflow-y:auto;padding-right:4px}
.pi{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:12px 8px 10px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;text-align:center;color:#fff;transition:background .15s,border-color .15s}
.pi:hover{background:rgba(255,255,255,.07);border-color:var(--line2)}
.pi b{font-size:12px;font-weight:700;line-height:1.3}
.pi small{font-size:10.5px;color:var(--muted);font-family:ui-monospace,Consolas,monospace;word-break:break-all}
.pi.sel{border-color:rgba(59,91,219,.7);background:rgba(59,91,219,.12)}
.pi.lock{opacity:.35;cursor:not-allowed}
.pi .lk{position:absolute;top:6px;right:6px;color:var(--muted)}
.pi .lk svg{width:13px;height:13px}
.vpick{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.vpick .pi{padding:8px 8px 10px}
.vpick img{width:100%;height:96px;object-fit:contain;background:none}
.cart{display:flex;flex-direction:column;gap:8px}
.cl{display:grid;grid-template-columns:auto 1fr 84px 30px;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.cl .ico{width:34px;height:34px}
.cl .ico svg{width:17px;height:17px}
.cl img{width:54px;height:34px;object-fit:contain;background:none}
.cl b{font-size:12.5px;display:block}
.cl small{font-size:10.5px;color:var(--muted)}
.cl .inp{height:32px}
.cl .ib{width:30px;height:30px}
.warnbox{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5;border:1px solid rgba(245,166,35,.35);background:rgba(245,166,35,.07);color:#ffd28a}
.okbox{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5;border:1px solid rgba(34,197,94,.35);background:rgba(34,197,94,.07);color:#9ff0bb}
.apr{display:flex;flex-direction:column;gap:10px}
.ap{border:1px solid rgba(245,166,35,.3);background:rgba(245,166,35,.04);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.ap .top{display:flex;align-items:center;gap:10px}
.ap .lines{display:flex;gap:6px;flex-wrap:wrap}
.ap .why{font-size:12px;color:var(--soft)}

/* reports */
.rep{display:grid;grid-template-columns:380px 1fr;gap:18px;height:calc(100vh - 150px);min-height:520px}
.rlist{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-right:4px}
.ri{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:6px}
.ri:hover{background:rgba(255,255,255,.06)}
.ri.on{border-color:rgba(59,91,219,.6);background:rgba(59,91,219,.08)}
.ri .top{display:flex;align-items:center;gap:8px}
.ri b{font-size:13px}
.ri p{font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ri time{font-size:11px;color:var(--muted);margin-left:auto}
.ri.new{animation:flash 1.4s ease 2}
@keyframes flash{50%{border-color:rgba(245,166,35,.8);background:rgba(245,166,35,.08)}}
.chat{display:flex;flex-direction:column;min-height:0;padding:0}
.chat .hd{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msgs{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:72%;padding:10px 13px;border-radius:12px;font-size:13px;line-height:1.5;background:rgba(255,255,255,.05);border:1px solid var(--line)}
.msg small{display:flex;gap:14px;justify-content:space-between;font-size:10.5px;color:var(--muted);font-weight:700;margin-bottom:3px}
.msg small time{font-weight:600;opacity:.85}
.msg.s{align-self:flex-end;background:rgba(59,91,219,.16);border-color:rgba(59,91,219,.4)}
.msg.sys{align-self:center;background:none;border:0;color:var(--muted);font-size:11.5px;font-weight:600;padding:2px}
.chat .ft{padding:14px 18px;border-top:1px solid var(--line);display:flex;gap:8px}
.chat .ft .inp{flex:1}
.rempty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}

/* modal + toast */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}
.mbox{width:500px;max-width:100%;background:var(--panel);border:1px solid var(--line2);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:16px;animation:in .2s cubic-bezier(.16,1,.3,1)}
.mbox h3{font-size:16px;font-weight:800}
.mfoot{display:flex;justify-content:flex-end;gap:8px}
#toasts{position:fixed;right:22px;bottom:22px;display:flex;flex-direction:column;gap:10px;z-index:60}
.toast{position:relative;overflow:hidden;min-width:300px;max-width:400px;background:#101010;border:1px solid var(--line2);border-radius:12px;padding:12px 14px 14px 52px;box-shadow:0 14px 40px rgba(0,0,0,.6);animation:in .25s;font-size:12.5px;color:var(--soft);line-height:1.45;--tc:var(--green)}
.toast b{display:block;color:#fff;font-size:13px;margin-bottom:2px}
.toast .ti{position:absolute;left:12px;top:12px;width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--tc);background:color-mix(in srgb,var(--tc) 14%,transparent)}
.toast .ti svg{width:15px;height:15px}
.toast .tb{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--tc);transform-origin:left;animation:tbar 4.5s linear forwards;opacity:.8}
@keyframes tbar{to{transform:scaleX(0)}}
.toast.r{--tc:var(--red)}
.toast.o{--tc:var(--orange)}
.empty{color:var(--muted);font-size:12.5px;text-align:center;padding:26px 16px;line-height:1.5}
.empty::before{content:'';display:block;width:38px;height:38px;margin:0 auto 10px;border-radius:12px;background:rgba(255,255,255,.04) center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");border:1px solid var(--line)}
.empty b{display:block;color:var(--soft);font-size:13px;margin-bottom:2px}
/* laad-skelet */
.sk{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.10) 50%,rgba(255,255,255,.04) 100%);background-size:200% 100%;animation:sk 1.1s ease-in-out infinite}
.sk.c{width:30px;height:30px;border-radius:50%}
.skrow{display:flex;align-items:center;gap:12px;padding:12px 10px;border-bottom:1px solid var(--line)}
.skrow:last-child{border-bottom:0}
@keyframes sk{0%{background-position:150% 0}100%{background-position:-50% 0}}
/* kleine avatars in lijsten */
.mini{width:28px;height:28px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:linear-gradient(135deg,var(--blue),var(--blue2));overflow:hidden;vertical-align:middle}
.mini img{width:100%;height:100%;object-fit:cover}
.mini.sil{background:#1a1d27;color:#8a93b5}.mini.sil.v{background:#221a27;color:#c39ad8}
.mini.sil svg{width:60%;height:60%;fill:currentColor;stroke:none}
.who{display:inline-flex;align-items:center;gap:9px}
/* typ-bevestiging */
.typec{border:1px solid rgba(239,68,68,.35);background:rgba(239,68,68,.05);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.typec label{font-size:11.5px;color:#ff9d9d;font-weight:700}
.btn:disabled{opacity:.35;cursor:not-allowed}
/* mobiel menu */
.menu-btn{display:none;width:36px;height:36px;border-radius:9px;border:1px solid var(--line2);background:rgba(255,255,255,.05);color:#fff;align-items:center;justify-content:center;cursor:pointer;flex:none}
.scrim{display:none}
@media(max-width:900px){
  aside{position:fixed;left:0;top:0;bottom:0;z-index:45;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 40px rgba(0,0,0,.6)}
  body.nav-open aside{transform:none}
  body.nav-open .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:44}
  .menu-btn{display:flex}
  header{padding:0 14px;gap:10px}header .crumb{display:none}
  .content{padding:16px 14px 30px}
  #p-dash{height:auto;min-height:0;display:flex;flex-direction:column}
  #p-dash .card{min-height:260px}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .tbl{display:block;overflow-x:auto;white-space:nowrap}
  .acts{grid-template-columns:1fr 1fr}
  .vrow{grid-template-columns:72px 1fr}.vrow img{width:72px;height:46px}.vrow .btns{grid-column:1/-1;justify-content:flex-start}
  .rep{grid-template-columns:1fr;height:auto}.chat{min-height:480px}
  .mbox{padding:18px}
  #toasts{left:12px;right:12px;bottom:12px}.toast{min-width:0;max-width:none}
}
.ico img,.inv img{width:100%;height:100%;object-fit:contain}
.ico.img{background:none}
.inv .ico{width:46px;height:46px}
.pp{position:relative}
.inv.take{cursor:pointer}.inv.take:hover{border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.06)}
.pp .res{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);background:#111;border:1px solid var(--line2);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:2px;box-shadow:0 12px 32px rgba(0,0,0,.6);max-height:300px;overflow-y:auto}
.pp .res button{display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;background:none;color:#fff;border-radius:8px;cursor:pointer;text-align:left;font-size:12.5px;font-weight:700}
.pp .res button:hover{background:rgba(255,255,255,.07)}
.pp .res button .mono{margin-left:auto}
.pp .sel{display:flex;align-items:center;gap:10px;height:42px;padding:0 6px 0 12px;border:1px solid rgba(59,91,219,.5);background:rgba(59,91,219,.08);border-radius:9px}
.pp .sel b{font-size:13px}
.me .rank{margin-top:4px;display:inline-block;padding:3px 9px;font-size:10px}
.tsed{display:flex;align-items:center;gap:5px;justify-content:flex-end}
.tsed .btn{padding:0 9px}
.tsed .inp{width:58px;height:30px;text-align:center;padding:0 6px}
.big{height:420px!important}
@media(max-width:1200px){.stats{grid-template-columns:repeat(2,1fr)}.grid2,.grid3,.pdetail,.rep{grid-template-columns:1fr}.acts{grid-template-columns:repeat(2,1fr)}.rep{height:auto}}
@media(max-width:760px){.form{grid-template-columns:1fr}}

/* ===== definitieve versie: extra ===== */
.av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.av.sil{background:#1a1d27;color:#8a93b5}
.av.sil svg{width:58%;height:58%;fill:currentColor;stroke:none}
.av.sil.v{color:#c39ad8;background:#221a27}
/* Nederlands EU-kenteken */
.plate{display:inline-flex;align-items:stretch;height:24px;border-radius:4px;overflow:hidden;border:1.5px solid #111;background:#f5c518;box-shadow:0 1px 0 rgba(255,255,255,.15) inset;font-family:'Kenteken','DIN Alternate','Arial Narrow',Arial,sans-serif}
.plate .eu{width:17px;background:#1f3fae;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding-top:1px}
.plate .eu svg{width:12px;height:12px;stroke:none}
.plate .eu b{font-size:7.5px;line-height:1;color:#fff;font-weight:800;letter-spacing:.02em}
.plate .nr{padding:0 8px;display:flex;align-items:center;color:#111;font-weight:800;font-size:13.5px;letter-spacing:.06em}
.inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.check{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:rgba(255,255,255,.03);cursor:pointer;font-size:12.5px;color:var(--soft);line-height:1.45}
.check input{width:17px;height:17px;margin-top:1px;accent-color:#3b5bdb;flex:none;cursor:pointer}
.check.on{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.06)}
.note{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.note .top{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted)}
.note .top b{color:#fff;font-size:12px}
.note p{font-size:13px;color:var(--soft);white-space:pre-wrap;line-height:1.5}
.note textarea{height:70px}
.loading{opacity:.55;pointer-events:none}
.offline-banner{background:rgba(239,68,68,.12);border-bottom:1px solid rgba(239,68,68,.35);color:#ff9d9d;font-size:12.5px;font-weight:700;padding:8px 26px}
.feed > .search{flex:none}
.rdot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:middle;background:#5c6070}
#setRoles select{height:34px;max-width:320px}
#setRoles .inp{height:34px;max-width:240px;font-family:ui-monospace,Consolas,monospace;font-size:12px}

/* uitlijning: iconen en tekst altijd op 1 lijn */
.btn{line-height:1}
.btn svg{width:14px;height:14px}
.btn.sm svg{width:13px;height:13px}
.card h3{line-height:1.2}
.card h3 .btn{margin-left:4px}
.chip,.rank{display:inline-flex;align-items:center;line-height:1.2;vertical-align:middle;gap:4px}
.tbl td>.chip,.tbl td>.rank{vertical-align:middle}
.ni{line-height:1.2}
.inline{align-items:center}
.fsel{height:30px;width:auto;font-size:12px;font-weight:700;padding:0 30px 0 11px}
#stList td .inline{flex-wrap:nowrap;white-space:nowrap}
/* relatieve tijden */
time[data-ts]{cursor:default;white-space:nowrap}
/* staff-kaartje bij hover */
.sn{cursor:pointer;border-radius:6px;transition:color .15s}
.sn:hover b,.sn:hover{color:#a9bbff}
#scard{position:fixed;z-index:60;width:280px;padding:14px;border-radius:14px;background:rgba(11,11,11,.97);border:1px solid var(--line2);box-shadow:0 18px 50px rgba(0,0,0,.55);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .15s,transform .15s;backdrop-filter:blur(10px)}
#scard.on{opacity:1;transform:none}
#scard .sc-top{display:flex;gap:12px;align-items:center}
#scard .sc-top b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#scard .sc-top small{display:block;color:var(--soft);font-size:11.5px;margin:1px 0 6px}
#scard .sc-st{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
#scard .sc-st div{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
#scard .sc-st b{display:block;font-size:15px}
#scard .sc-st small{color:var(--soft);font-size:11px}
#scard .sc-ft{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--soft)}
@media (hover:none){#scard{display:none}}

/* ===== stijl-update: inlogscherm ===== */
.lwb{display:flex;flex-direction:column;align-items:center;gap:4px}
.lwb .av{width:64px;height:64px;font-size:24px;margin-bottom:6px}
.lwb b{font-size:16px}.lwb small{color:var(--muted);font-size:12px}
/* ===== stijl-update: dashboard ===== */
.greet h3{font-size:17px;font-weight:800}
#p-dash{grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr)}
.greet{display:flex;align-items:center;padding:14px 18px;border-radius:14px;background:linear-gradient(120deg,rgba(59,91,219,.2),rgba(11,11,11,.6) 55%);border:1px solid rgba(59,91,219,.3)}
.svr{display:flex;align-items:baseline;gap:10px}
.trend{font-style:normal;font-size:11.5px;font-weight:800}
.trend.up{color:#4ade80}.trend.down{color:#f87171}.trend.eq{color:var(--muted)}
.spark{position:absolute;left:0;right:0;bottom:0;height:30px;pointer-events:none;opacity:.6}
.spark svg{width:100%;height:100%;display:block}
.ringstat{flex-direction:row !important;align-items:center;justify-content:space-between}
.ringstat .rt{display:flex;flex-direction:column;gap:3px}
.ring{position:relative;width:62px;height:62px;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:7}
.ring .bg{stroke:rgba(255,255,255,.07)}
.ring .fg{stroke:url(#ringG);stroke-linecap:round;transition:stroke-dashoffset 1.2s cubic-bezier(.16,1,.3,1)}
.ring span{position:absolute;inset:0;display:grid;place-items:center;font-size:12.5px;font-weight:800}
.stat > *:not(.spark){position:relative;z-index:1}
#meTime{display:flex;margin-top:5px;align-items:center;gap:4px;font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
#meTime svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}
.bsearch{width:280px;height:34px;flex:none}
.bid{cursor:pointer;border-bottom:1px dashed var(--line2)}.bid:hover{color:#a9bbff}
/* pincode */
.lbox.pinmode > :not(img):not(h1):not(#pinBox){display:none !important}
.pinbox{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.pinbox .av{width:56px;height:56px;font-size:20px}
.pinbox > b{font-size:16px}
.pinbox > small{color:var(--muted);font-size:12.5px;text-align:center;line-height:1.55}
.pins{display:flex;gap:10px;justify-content:center;margin:4px 0}
.pins input{width:52px;height:58px;border-radius:12px;border:1px solid var(--line2);background:rgba(255,255,255,.04);color:#fff;text-align:center;font-size:24px;font-weight:800;outline:0;transition:border-color .15s,box-shadow .15s}
.pins input:focus{border-color:rgba(59,91,219,.8);box-shadow:0 0 0 3px rgba(59,91,219,.22)}
.pins input:disabled{opacity:.4}
.pinrep{display:flex;flex-direction:column;align-items:center;gap:4px}
.pinrep small{color:var(--muted);font-size:12px}
#pinOk:disabled{opacity:.5;cursor:not-allowed}
.pinout{font-size:12px;color:var(--muted);cursor:pointer}.pinout:hover{color:#fff}
