/* prrp_admin 1.17 – ny design, version 2: livliga färger, färgkodad meny, enkel spelarsida. Laddas SIST (efter alla andra stilfiler).
   Bara utseende: server, RPC, behörigheter och data är oförändrade. Tre teman (data-pal på <html>): neon (standard), solnedgang, lagun.
   Färgerna kommer från variablerna nedan; --c på ett element = dess egen accentfärg (ikonbrickor, nyckeltal, snabbknappar). */

/* ══ TEMAN ══════════════════════════════════════════════════════════════════════════════════════════ */
:root, :root[data-pal="glas"], :root[data-pal="glas"] body.web {
  /* GLAS (standard): genomskinligt som prrp_hud/dispatch, vita linjer, glöd i accentfärgen, färg bara där den betyder något */
  --mg-bg: rgba(8, 10, 14, .55); --mg-side: rgba(8, 10, 14, .38); --mg-card: rgba(255, 255, 255, .075); --mg-card2: rgba(255, 255, 255, .105); --mg-card3: rgba(255, 255, 255, .16);
  --mg-line: rgba(255, 255, 255, .14); --mg-line2: rgba(255, 255, 255, .26);
  --mg-text: #ffffff; --mg-text2: rgba(255, 255, 255, .8); --mg-muted: rgba(255, 255, 255, .55);
  --fx-a: #38f2a6; --fx-b: #2dd4bf; --fx-ink: #03231a;
  --fx-blob1: rgba(56, 242, 166, .16); --fx-blob2: rgba(255, 210, 74, .10); --fx-blob3: rgba(255, 92, 168, .10);
  --fx-pop: rgba(12, 15, 21, .94);
}:root[data-pal="neon"], :root[data-pal="neon"] body.web {
  --mg-bg: #17104d; --mg-side: #1c1458; --mg-card: #261d7a; --mg-card2: #2f2592; --mg-card3: #3b30ad;
  --mg-line: rgba(205, 190, 255, .18); --mg-line2: rgba(205, 190, 255, .32);
  --mg-text: #ffffff; --mg-text2: #d8d2ff; --mg-muted: #a69df0;
  --fx-a: #8b6cff; --fx-b: #22d3ee; --fx-ink: #ffffff;
  --fx-blob1: rgba(255, 92, 168, .38); --fx-blob2: rgba(34, 211, 238, .30); --fx-blob3: rgba(139, 108, 255, .45);
}
:root[data-pal="solnedgang"], :root[data-pal="solnedgang"] body.web {
  --mg-bg: #3d1048; --mg-side: #46134f; --mg-card: #591b63; --mg-card2: #6a2275; --mg-card3: #7e2b8b;
  --mg-line: rgba(255, 190, 225, .2); --mg-line2: rgba(255, 190, 225, .34);
  --mg-text: #ffffff; --mg-text2: #ffd6ec; --mg-muted: #eba3cb;
  --fx-a: #ff7849; --fx-b: #ff3d8b; --fx-ink: #ffffff;
  --fx-blob1: rgba(255, 120, 73, .42); --fx-blob2: rgba(255, 61, 139, .34); --fx-blob3: rgba(255, 196, 61, .26);
}
:root[data-pal="lagun"], :root[data-pal="lagun"] body.web {
  --mg-bg: #05405a; --mg-side: #064a67; --mg-card: #095e80; --mg-card2: #0c709a; --mg-card3: #1486b4;
  --mg-line: rgba(170, 245, 255, .2); --mg-line2: rgba(170, 245, 255, .36);
  --mg-text: #ffffff; --mg-text2: #c9f6ff; --mg-muted: #82d4ec;
  --fx-a: #14e0a5; --fx-b: #3b9bff; --fx-ink: #03281f;
  --fx-blob1: rgba(20, 224, 165, .38); --fx-blob2: rgba(59, 155, 255, .34); --fx-blob3: rgba(163, 230, 53, .22);
}:root, :root body.web {
  --fx-pop: color-mix(in srgb, var(--mg-card2) 96%, #000);
  /* signalfärger: lika i alla teman, men friskare */
  --mg-green: #2ee59d; --mg-green2: #6af0bb; --mg-green-soft: rgba(46, 229, 157, .15);
  --mg-red: #ff4d6a; --mg-red-soft: rgba(255, 77, 106, .16); --mg-amber: #ffb824; --mg-amber-soft: rgba(255, 184, 36, .16);
  --mg-blue: #4da3ff; --mg-blue-soft: rgba(77, 163, 255, .16); --mg-purple: #b18cff; --mg-purple-soft: rgba(177, 140, 255, .16);
  --fx-grad: linear-gradient(135deg, var(--fx-a), var(--fx-b));
  --fx-accent: var(--fx-a); --fx-accent2: color-mix(in srgb, var(--fx-a) 55%, #fff);
  --fx-soft: color-mix(in srgb, var(--fx-a) 18%, transparent); --fx-line: color-mix(in srgb, var(--fx-a) 55%, transparent);
  --fx-glow: color-mix(in srgb, var(--fx-a) 38%, transparent);
  --mg-r: 18px;
  --input: color-mix(in srgb, var(--mg-card3) 45%, var(--mg-bg));
  --accent: var(--fx-a); --accent-hover: var(--fx-accent2); --accent-ink: var(--fx-ink); --accent-soft: var(--fx-soft); --accent-line: var(--fx-line);
  --panel-glass: color-mix(in srgb, var(--mg-card) 96%, transparent);
  --card-sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --fx-ease: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: var(--fx-soft); }

/* ══ RAM OCH BAKGRUND ═══════════════════════════════════════════════════════════════════════════════ */
body.ui2 .shell.ui2 {
  background: radial-gradient(760px 460px at 4% -8%, var(--fx-blob1), transparent 62%), radial-gradient(720px 440px at 102% 0%, var(--fx-blob2), transparent 60%), radial-gradient(800px 500px at 60% 120%, var(--fx-blob3), transparent 60%), var(--mg-bg);
  border: 1px solid var(--mg-line2); border-radius: 24px; box-shadow: 0 50px 120px rgba(0, 0, 0, .65);
}
body.ui2 .shell.mg { width: calc(100vw - 56px); height: calc(100vh - 48px); }
@media (max-width: 1500px), (max-height: 800px) { body.ui2 .shell.mg { width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 18px; } }

/* ══ SIDOMENY: färgade ikonbrickor, en tydlig vald rad ══════════════════════════════════════════════ */
.shell.mg .sidenav { width: 232px; background: color-mix(in srgb, var(--mg-side) 70%, transparent); border-right: 1px solid var(--mg-line); backdrop-filter: blur(14px); }
.shell.mg .ns { padding: 0 14px 14px; }
.mg-brand { height: 70px; padding: 0 4px; gap: 12px; }
.mg-brand b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mg-bl { width: 34px; height: 34px; padding: 6px; border-radius: 11px; background: var(--fx-grad); box-shadow: 0 8px 22px var(--fx-glow); color: var(--fx-ink); }
.shell.mg .ns-list { padding-top: 6px; gap: 4px; overflow-x: hidden; }
.shell.mg .ns-i:hover { transform: none; }
.shell.mg .ns-sep { height: 1px; margin: 10px 12px; background: var(--mg-line); border: 0; }
.shell.mg .ns-i { --c: var(--fx-a); height: 44px; gap: 12px; padding: 0 10px 0 7px; border-radius: 14px; font-size: 13.5px; font-weight: 550; color: var(--mg-text2); transition: background .16s var(--fx-ease), color .16s, transform .16s var(--fx-ease); }
.shell.mg .ns-i i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); transition: background .16s, color .16s, box-shadow .16s; }
.shell.mg .ns-i:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(2px); }
.shell.mg .ns-i:hover i { background: color-mix(in srgb, var(--c) 26%, transparent); }
.shell.mg .ns-i.on { background: color-mix(in srgb, var(--c) 16%, transparent); color: #fff; font-weight: 650; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); transform: none; }
.shell.mg .ns-i.on i { background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 55%, transparent); }
.shell.mg .ns-i .ns-n, .shell.mg .ns-i .mg-nb { height: 20px; min-width: 20px; border-radius: 10px; font-size: 11px; background: linear-gradient(135deg, #ff4d6a, #ff7849); box-shadow: 0 4px 12px rgba(255, 77, 106, .4); }
.shell.mg .ns-i .mg-pill { height: 17px; border-radius: 9px; }
.shell.mg .ns-foot { padding-top: 12px; border-top: 1px solid var(--mg-line); }
/* en färg per menyrad */
.shell.mg .ns-i[data-tabid="home"] { --c: #5b8cff; }
.shell.mg .ns-i[data-tabid="players"] { --c: #2ee59d; }
.shell.mg .ns-i[data-tabid="sc:overview"] { --c: #ffb824; }
.shell.mg .ns-i[data-tabid="dcactive"] { --c: #8b8cff; }
.shell.mg .ns-i[data-navgrp="arenden"] { --c: #ff5ca8; }
.shell.mg .ns-i[data-tabid="chat"] { --c: #22d3ee; }
.shell.mg .ns-i[data-tabid="dm"] { --c: #4da3ff; }
.shell.mg .ns-i[data-navgrp="spelverk"] { --c: #ff8a3d; }
.shell.mg .ns-i[data-navgrp="verktyg"] { --c: #b18cff; }
.shell.mg .ns-i[data-navgrp="loggar"] { --c: #2dd4bf; }
.shell.mg .ns-i[data-navgrp="personal"] { --c: #ff6b8b; }
.shell.mg .ns-i[data-tabid="webspec"] { --c: #f472b6; }
.shell.mg .ns-foot .ns-i { height: 40px; }

/* ══ TOPPFÄLT ═══════════════════════════════════════════════════════════════════════════════════════ */
.shell.mg .topbar2.mg-top { height: 62px; padding: 0 20px; gap: 8px; }
.shell.mg .mg-top .tbtn { width: 38px; height: 38px; border-radius: 12px; color: var(--mg-text2); background: rgba(255, 255, 255, .035); }
.shell.mg .mg-top .tbtn:hover { background: var(--fx-soft); color: #fff; }
.shell.mg .mg-top .gsearch2 { flex: 0 1 460px; }
.shell.mg .mg-top .gsbox { height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--mg-line); transition: border-color .15s, background .15s, box-shadow .15s; }
.shell.mg .mg-top .gsbox:focus-within { background: rgba(255, 255, 255, .08); border-color: var(--fx-line); box-shadow: 0 0 0 4px var(--fx-soft); }
.shell.mg .mg-top .gsbox kbd { border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid var(--mg-line); color: var(--mg-muted); padding: 0 7px; }
.shell.mg .mg-top .dutybtn { height: 38px; border-radius: 12px; }
.shell.mg .mg-top .mebtn { height: 40px; border-radius: 12px; }
.shell.mg .mg-top .mebtn:hover { background: rgba(255, 255, 255, .06); }
.shell.mg .mg-top .mebtn .avatar { background: var(--fx-grad); color: var(--fx-ink); }

/* ══ SERVERRAD ══════════════════════════════════════════════════════════════════════════════════════ */
.mg-hero { min-height: 0; margin: 0 20px; padding: 14px 18px; grid-template-columns: auto 1fr; grid-template-rows: auto; gap: 10px 30px; align-items: center; border-radius: var(--mg-r);
  background: linear-gradient(105deg, color-mix(in srgb, var(--fx-a) 30%, var(--mg-card)), color-mix(in srgb, var(--fx-b) 16%, var(--mg-card)) 70%); border: 1px solid var(--fx-line); box-shadow: 0 14px 40px color-mix(in srgb, var(--fx-a) 18%, transparent); }
.mg-hero::before, .mg-hero::after { display: none; }
.mg-hero-l { gap: 14px; }
.mg-logo { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; }
.mg-logo svg { width: 24px; height: 24px; }
.mg-hero-t h2 { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.mg-hero-t .up { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.mg-hero-r { grid-row: 1; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; align-content: center; }
.mg-hs { padding: 8px 16px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); min-width: 100px; }
.mg-hs .k { font-size: 9px; color: rgba(255, 255, 255, .7); }
.mg-hs b { font-size: 14px; }

body:not([data-tab="home"]) .mg-hero { display: none; }   /* serverraden behövs bara på startsidan; övriga sidor får plats åt innehållet */
@media (max-height: 820px) {
  .mg-brand { height: 58px; }
  .shell.mg .ns-i { height: 38px; } .shell.mg .ns-i i { width: 27px; height: 27px; font-size: 13px; }
  .shell.mg .ns-list { gap: 2px; } .shell.mg .ns-sep { margin: 7px 12px; }
}

/* ══ ARBETSYTA ══════════════════════════════════════════════════════════════════════════════════════ */
.mg-work { gap: 16px; padding: 16px 20px 20px; }
.shell.mg .mg-work > .main { background: color-mix(in srgb, var(--mg-card) 88%, transparent); border: 1px solid var(--mg-line); border-radius: 22px; box-shadow: var(--card-sh); }
.shell.mg .pagehead { padding: 20px 26px 8px; }
.shell.mg .pagehead h1 { font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.shell.mg .pagehead .ph-ic { width: 38px; height: 38px; font-size: 16px; border-radius: 12px; background: var(--fx-grad); color: var(--fx-ink); box-shadow: 0 8px 20px var(--fx-glow); }
.shell.mg .pagehead .ph-t span { font-size: 12.5px; }
.mg-online { width: 290px; border-radius: 22px; }
.mg-online.mg-card { box-shadow: var(--card-sh); }
body[data-tab="players"] .mg-online { display: none !important; }   /* Spelare-sidan är själv listan: ingen dubblett bredvid */

/* ══ STARTSIDAN ═════════════════════════════════════════════════════════════════════════════════════ */
.home { padding: 22px 26px 26px; gap: 18px; }
.home .hsettings { display: none; }
.mg-welcome h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.mg-welcome h2 em { font-style: normal; background: var(--fx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis { gap: 14px; }
.home .kpis .kpi { --c: var(--fx-a); position: relative; overflow: hidden; border-radius: 20px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--mg-card)), color-mix(in srgb, var(--c) 6%, var(--mg-card))); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 14%, transparent); transition: transform .18s var(--fx-ease), box-shadow .18s; }
.home .kpis .kpi.click:hover { transform: translateY(-3px); box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 28%, transparent); }
.home .kpis .kpi .ki { width: 42px; height: 42px; border-radius: 14px; background: var(--c); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 50%, transparent); }
.home .kpis .kpi .kt b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.home .kpis .kpi .kt span { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: color-mix(in srgb, var(--c) 40%, #fff); }
.home .kpis > .kpi:nth-child(1) { --c: #2ee59d; } .home .kpis > .kpi:nth-child(2) { --c: #4da3ff; } .home .kpis > .kpi:nth-child(3) { --c: #ff5ca8; } .home .kpis > .kpi:nth-child(4) { --c: #ffb824; }
.home .hcard:has(.svlist) { display: none; }   /* serverstatus finns redan i raden överst */
.hcard { border-radius: 20px; border: 1px solid var(--mg-line); background: var(--mg-card); box-shadow: var(--card-sh); overflow: hidden; }
.hc-head { padding: 14px 18px; }
.hc-head > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--fx-soft); color: var(--fx-accent2); font-size: 13px; }
.hc-head b { font-size: 14.5px; font-weight: 700; }
.qgrid { gap: 12px; padding: 0 14px 14px; }
.qbtn { --c: var(--fx-a); min-height: 104px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--mg-card2)), color-mix(in srgb, var(--c) 5%, var(--mg-card2))); transition: transform .16s var(--fx-ease), box-shadow .16s, border-color .16s; }
.qbtn:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 26%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, var(--mg-card2)), color-mix(in srgb, var(--c) 8%, var(--mg-card2))); }
.qbtn i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--c); color: #fff; font-size: 17px; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 45%, transparent); }
.qbtn b { font-size: 13.5px; font-weight: 700; }
.qgrid > .qbtn:nth-child(6n+1) { --c: #2ee59d; } .qgrid > .qbtn:nth-child(6n+2) { --c: #ff5ca8; } .qgrid > .qbtn:nth-child(6n+3) { --c: #ffb824; }
.qgrid > .qbtn:nth-child(6n+4) { --c: #4da3ff; } .qgrid > .qbtn:nth-child(6n+5) { --c: #b18cff; } .qgrid > .qbtn:nth-child(6n+6) { --c: #22d3ee; }

/* ══ KORT, KNAPPAR, ETIKETTER ═══════════════════════════════════════════════════════════════════════ */
.mg-card { border-radius: var(--mg-r); box-shadow: var(--card-sh); }
.mg-card-h { padding: 16px 18px; min-height: 56px; }
.mg-card-h h3 { font-size: 14.5px; font-weight: 700; }
.mg-card-b { padding: 16px 18px; }
.mg-stat { border-radius: var(--mg-r); padding: 16px 18px; box-shadow: var(--card-sh); transition: transform .18s var(--fx-ease), border-color .18s; }
.mg-stat:hover { border-color: var(--fx-line); transform: translateY(-2px); }
.mg-stat b { font-size: 24px; font-weight: 800; }

.mg-btn, .btn { transition: background .15s var(--fx-ease), border-color .15s, transform .12s var(--fx-ease), box-shadow .15s; }
.mg-btn { height: 38px; border-radius: 12px; padding: 0 16px; font-weight: 650; }
.mg-btn:hover { transform: translateY(-1px); }
.mg-btn:active { transform: translateY(0) scale(.97); }
.mg-btn.primary, .btn.primary { background: var(--fx-grad); border-color: transparent; color: var(--fx-ink); box-shadow: 0 8px 22px var(--fx-glow); }
.mg-btn.primary i, .btn.primary i { color: var(--fx-ink); }
.mg-btn.primary:hover, .btn.primary:not(:disabled):hover { background: var(--fx-grad); filter: brightness(1.12); border-color: transparent; box-shadow: 0 12px 28px var(--fx-glow); }
.mg-btn.danger:hover { background: var(--mg-red-soft); }
.mg-btn.sm { height: 28px; border-radius: 9px; }
.mg-btn.icon { width: 38px; }
.mg-btn.sm.icon { width: 28px; }
.mg-pill { height: 24px; padding: 0 11px; font-weight: 650; }
.mg-tabs > button { height: 38px; border-radius: 12px; padding: 0 16px; font-weight: 600; }
.mg-tabs > button.on { background: var(--fx-grad); border-color: transparent; color: var(--fx-ink); box-shadow: 0 8px 20px var(--fx-glow); }
.mg-tabs > button.on i { color: var(--fx-ink); }
.mg-subtabs { padding: 16px 24px 4px; }
.mg-toggle { width: 44px; height: 24px; background: var(--mg-card3); }
.mg-toggle::after { top: 3px; left: 3px; width: 18px; height: 18px; }
.mg-toggle[aria-pressed="true"] { background: var(--fx-grad); }
.mg-toggle[aria-pressed="true"]::after { transform: translateX(20px); background: #fff; }
.mg-input { height: 40px; border-radius: 13px; background: var(--input); }
.mg-input:focus-within { border-color: var(--fx-line); box-shadow: 0 0 0 4px var(--fx-soft); }
.mg-filter > button { height: 38px; border-radius: 11px; }
.mg-filter > button.on { background: var(--fx-grad); color: var(--fx-ink); }
.mg-row { padding: 12px 18px; }
.mg-term { background: color-mix(in srgb, var(--mg-bg) 80%, #000); border-radius: var(--mg-r); }
.seg button.on, .segs button.on { background: var(--fx-grad); color: var(--fx-ink); }

/* ══ SPELARE: rutnät med kort, fem per rad (4/3/2 på smalare fönster) ═══════════════════════════════ */
.ptbl.pp, .ptbl.pp tbody { display: block; width: 100%; }
.ptbl.pp thead { display: none; }
.ptbl.pp tbody { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 4px 2px 14px; }
@media (max-width: 1399px) { .ptbl.pp tbody { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1149px) { .ptbl.pp tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .ptbl.pp tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ptbl.pp tr.grp { grid-column: 1 / -1; display: block; }
.ptbl.pp tr.grp td { display: block; padding: 10px 4px 0; background: none; border: 0; color: var(--mg-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ptbl.pp tr.grp button { margin: 0; }
.ptbl.pp tr.click { --h: 220; position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nm st" "jb jb"; align-items: center; gap: 8px 8px; padding: 14px 14px 12px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fx-a) 10%, var(--mg-card2)), var(--mg-card2)); border: 1px solid var(--mg-line); transition: transform .16s var(--fx-ease), box-shadow .16s, border-color .16s; contain: layout paint; }
.ptbl.pp tr.click:hover { transform: translateY(-3px); border-color: var(--fx-line); box-shadow: 0 14px 30px color-mix(in srgb, var(--fx-a) 22%, transparent); }
.ptbl.pp tr.click td { display: block; padding: 0; border: 0; background: none; min-width: 0; }
.ptbl.pp tr.click td:nth-child(1), .ptbl.pp tr.click td:nth-child(2), .ptbl.pp tr.click td:nth-child(4), .ptbl.pp tr.click td:nth-child(6) { display: none; }   /* ID:n och TX-namn finns i profilen */
.ptbl.pp tr.click td:nth-child(3) { grid-area: nm; }
.ptbl.pp tr.click td:nth-child(5) { grid-area: jb; font-size: 11.5px; color: var(--mg-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptbl.pp tr.click td:nth-child(7) { grid-area: st; }
.ptbl.pp tr.click td:nth-child(8) { position: absolute; right: 10px; bottom: 8px; opacity: 0; transition: opacity .14s; }
.ptbl.pp tr.click:hover td:nth-child(8) { opacity: 1; }
.ptbl.pp tr.click td:nth-child(8) .rowbtn:last-child { display: none; }   /* pilen behövs inte: hela kortet är klickbart */
.ptbl.pp .cellname { gap: 10px; }
.ptbl.pp .cellname b { font-size: 13.5px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptbl.pp .cellname small { font-size: 11px; color: var(--fx-accent2); }
.ptbl.pp .cellname > div { min-width: 0; }
.ptbl.pp .status { display: inline-block; width: 10px; height: 10px; padding: 0; border-radius: 50%; font-size: 0; }
.ptbl.pp .status.on { background: var(--mg-green); box-shadow: 0 0 0 4px var(--mg-green-soft), 0 0 12px var(--mg-green); }
.ptbl.pp .status.off { background: var(--mg-muted); opacity: .5; }
.ptbl.pp .rowbtn { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .08); border: 0; display: inline-grid; place-items: center; }
.ptbl.pp .dmbtn:hover { background: var(--mg-blue) !important; color: #fff; }
.ptbl.pp .tablewrap, .tablewrap:has(.ptbl.pp) { overflow-x: hidden; }
/* färgade avatarer (nyans från namnet, sätts av fresh.js/fxHue) */
.avatar.sm, .av { --hue: 220; background: linear-gradient(135deg, hsl(var(--hue) 78% 52%), hsl(calc(var(--hue) + 40) 80% 42%)); color: #fff; border: 0; font-weight: 700; }
.avatar .pip, .od.on { box-shadow: 0 0 0 3px var(--mg-card2); }

/* ══ ONLINELISTAN (höger) ═══════════════════════════════════════════════════════════════════════════ */
.mg-ol-h h3 { font-size: 14.5px; font-weight: 700; }
.mg-ol-h .cnt { background: var(--mg-green-soft); color: var(--mg-green2); border-radius: 10px; padding: 2px 9px; font-weight: 700; }
.mg-ol-row { border-radius: 12px; margin: 2px 6px; padding: 7px 8px; transition: background .14s; }
.mg-ol-row:hover { background: var(--fx-soft); }
.mg-ol-all { color: var(--fx-accent2); font-weight: 650; }

/* ══ FORMULÄR, DIALOGER, MENYER ═════════════════════════════════════════════════════════════════════ */
body.ui2 input[type="text"], body.ui2 input[type="search"], body.ui2 input[type="number"], body.ui2 input[type="password"], body.ui2 select, body.ui2 textarea { border-radius: 13px; }
body.ui2 input:focus, body.ui2 select:focus, body.ui2 textarea:focus { border-color: var(--fx-line); outline: none; box-shadow: 0 0 0 4px var(--fx-soft); }
#modal .dlg, #modal .modal, #modal > div > div { border-radius: 24px; }
.navpop, .gs-pop, .sc .menu, .fpop { border-radius: 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
.gs-pop button.on, .sc .menu button:hover { background: var(--fx-soft); }
#toasts .toast { border-radius: 14px; }
.tag.ok, .mg-pill.ok { box-shadow: 0 0 0 1px rgba(46, 229, 157, .25) inset; }

/* ══ RULLLISTOR ═════════════════════════════════════════════════════════════════════════════════════ */
body.ui2 * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
body.ui2 *::-webkit-scrollbar { width: 10px; height: 10px; }
body.ui2 *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
body.ui2 *::-webkit-scrollbar-thumb:hover { background: var(--fx-line); background-clip: content-box; border: 3px solid transparent; }

/* ══ WEBBEN (prrpadmin.com) ═════════════════════════════════════════════════════════════════════════ */
:root[data-pal] body.web {
  --site-bg: var(--mg-bg); --site-card: var(--mg-card); --site-muted: var(--mg-card2); --site-fg: var(--mg-text); --site-fg2: var(--mg-text2); --site-border: var(--mg-line2);
  --site-primary: var(--fx-a); --site-primary-fg: var(--fx-ink);
}
body.web { background: radial-gradient(900px 520px at 4% -8%, var(--fx-blob1), transparent 62%), radial-gradient(800px 480px at 102% 0%, var(--fx-blob2), transparent 60%), radial-gradient(900px 520px at 60% 120%, var(--fx-blob3), transparent 60%), var(--mg-bg) !important; }
body.web .shell.mg .sidenav { background: color-mix(in srgb, var(--mg-side) 70%, transparent) !important; }
body.web .shell.mg .ns-i.on { background: color-mix(in srgb, var(--c) 16%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent) !important; }
body.web .shell.mg .ns-i.on::before { display: none !important; }
body.web .shell.mg .ns-i.on i, body.web .shell.mg .ns-i i { box-shadow: none; }
body.web .shell.mg .ns-i.on i { background: var(--c) !important; color: #fff !important; }
body.web .btn.primary, body.web .mg-btn.primary, body.web .wl-btn { background: var(--fx-grad) !important; border-color: transparent !important; color: var(--fx-ink) !important; box-shadow: 0 8px 22px var(--fx-glow) !important; }
body.web .btn.primary i, body.web .mg-btn.primary i { color: var(--fx-ink) !important; }
body.web .mg-toggle[aria-pressed="true"] { background: var(--fx-grad) !important; border-color: transparent !important; }
body.web .ltabs button.on::after, body.web .ctabs button.on::after { background: var(--fx-a) !important; }
body.web .tk2.on { box-shadow: inset 3px 0 0 var(--fx-a) !important; }
body.web :focus-visible { outline-color: var(--fx-a) !important; }
.ws-id, .mt-logo { background: var(--fx-grad) !important; color: var(--fx-ink) !important; }
.wb-brand span { color: var(--mg-text2) !important; }

/* ══ TEMAVÄLJAREN (i Inställningar) ═════════════════════════════════════════════════════════════════ */
.fx-pal { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pal button { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mg-line2); background: var(--mg-card2); color: var(--mg-text2); font-size: 12.5px; font-weight: 650; cursor: pointer; }
.fx-pal button i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.fx-pal button.on { border-color: var(--fx-line); color: #fff; background: var(--fx-soft); }

@media (prefers-reduced-motion: reduce) { .mg-btn, .mg-stat, .ns-i, .kpi, .qbtn, .ptbl.pp tbody tr.click { transition: none !important; transform: none !important; } }

/* nyckeltal: fyra jämna kort, etiketten bredvid siffran i stället för ovanpå */
.home .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.home .kpis .kpi .kx { position: static; margin-left: auto; align-items: flex-end; }
.home .kpis .kpi .kt span { letter-spacing: .04em; }
@media (max-width: 1500px) { .home .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body.web .mg-bl { display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; }
body.web .mg-bl:not(:has(svg))::after { content: 'P'; }

/* ══ PROFIL: snabbknappar under huvudet, fyra flikar + Mer, hopfälld identitet ═════════════════════ */
.mgp-quick { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 18px 14px; }
.mgp-q { --c: var(--fx-a); display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 8px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 18%, transparent); color: #fff; font-weight: 650; font-size: 13px; cursor: pointer; transition: transform .14s var(--fx-ease), box-shadow .14s, background .14s; }
.mgp-q i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--c); color: #fff; font-size: 12px; box-shadow: 0 5px 12px color-mix(in srgb, var(--c) 50%, transparent); }
.mgp-q:hover:not(:disabled) { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 30%, transparent); }
.mgp-q:disabled { opacity: .4; cursor: default; }
.mgp-q.q-goto { --c: #4da3ff; } .mgp-q.q-bring { --c: #22d3ee; } .mgp-q.q-revive { --c: #2ee59d; } .mgp-q.q-return { --c: #b18cff; } .mgp-q.q-uncuff { --c: #ffb824; } .mgp-q.q-combat { --c: #ff5ca8; }
.mgp-chips > :nth-child(n+3) { display: none; }
.mgp-tabs { gap: 6px; }
.mgp-tabs .mgp-more > button, .mgp-tabs > button { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--mg-text2); font-size: 13px; font-weight: 600; cursor: pointer; }
.mgp-tabs .mgp-more > button:hover, .mgp-tabs > button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mgp-tabs .mgp-more > button.on, .mgp-tabs > button.on { background: var(--fx-grad); color: var(--fx-ink); box-shadow: 0 8px 20px var(--fx-glow); }
.cmenu2 { border-radius: 14px; background: var(--mg-card2); border: 1px solid var(--mg-line2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); padding: 6px; }
.cmenu2 button { border-radius: 10px; }
.cmenu2 button:hover:not(:disabled), .cmenu2 button.on { background: var(--fx-soft); }
.mgp-fold.closed .mg-kv { display: none; }
.mgp-fold .mg-card-h { cursor: pointer; }
.mgp-fold .mg-card-h::after { content: '\f078'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif; font-weight: 900; font-size: 11px; margin-left: 10px; color: var(--mg-muted); transition: transform .2s var(--fx-ease); }
.mgp-fold:not(.closed) .mg-card-h::after { transform: rotate(180deg); }
.mgp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ══ VERKTYG (profil): hopfällda grupper, inget överlapp ═══════════════════════════════════════════ */
.mgt { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 14px; }
.mgt-group { border-radius: 18px; background: var(--mg-card2); border: 1px solid var(--mg-line); overflow: hidden; }
.mgt-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; }
.mgt-h > i:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--fx-grad); color: var(--fx-ink); font-size: 14px; }
.mgt-h .mgt-chev { margin-left: auto; font-size: 12px; color: var(--mg-muted); transition: transform .2s var(--fx-ease); }
.mgt-group:not(.closed) .mgt-chev { transform: rotate(180deg); }
.mgt-group.closed .mgt-grid { display: none; }
.mgt-grid { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.mgt-grid > .card { margin-top: 0 !important; }

/* ══ ÄRENDEN: alla åtgärder syns (radbryts), mindre text ═══════════════════════════════════════════ */
.sc .acts { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.sc .acts .btn.small { height: 34px; border-radius: 11px; padding: 0 13px; font-weight: 650; }
.sc .acts .btn.small.primary { background: var(--fx-grad); border-color: transparent; color: var(--fx-ink); box-shadow: 0 8px 20px var(--fx-glow); }
.hx-ctl .hx-ctl-k { display: none; }
.ps.fold.closed > :not(h3) { display: none; }
.ps.fold > h3 { cursor: pointer; }
.ps.fold > h3::after { content: '\f078'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif; font-weight: 900; font-size: 10px; margin-left: auto; color: var(--mg-muted); transition: transform .2s var(--fx-ease); }
.ps.fold:not(.closed) > h3::after { transform: rotate(180deg); }
.ps.fold > h3 { display: flex; align-items: center; }
.dshint { display: none; }
.tk2 { border-radius: 16px; transition: transform .14s var(--fx-ease), background .14s; }
.tk2:hover { transform: translateX(2px); }
.tk2.on { background: var(--fx-soft); box-shadow: inset 3px 0 0 var(--fx-a); }

/* ══ HELA TEMAT: inga svarta/grå ytor kvar ═════════════════════════════════════════════════════════ */
.mg-term, .mg-term-b { background: color-mix(in srgb, var(--mg-card) 70%, var(--mg-bg)); }
.shell.ui2 .main .card, .mgp .mg-card { background: var(--mg-card); }

:root, :root body.web { --mg-deep: color-mix(in srgb, var(--mg-bg) 78%, #000); }

/* nyckeltal: hela bredden, etiketten under siffran */
.home .kpis { width: 100%; }
.home .kpis .kpi { flex-wrap: wrap; row-gap: 8px; }
.home .kpis .kpi .kt { flex: 1 1 0; min-width: 0; }
.home .kpis .kpi .kt b { white-space: nowrap; }
.home .kpis .kpi .kx { position: static !important; order: 3; flex: 1 1 100%; flex-direction: row; align-items: center; margin-left: 0; gap: 8px; }

/* ══ SUPPORTÖVERSIKT: färgade nyckeltal ════════════════════════════════════════════════════════════ */
.ovgrid { gap: 14px; }
.ovgrid > .stat { --c: var(--fx-a); border-radius: 20px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, var(--mg-card)), color-mix(in srgb, var(--c) 8%, var(--mg-card))); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 16%, transparent); transition: transform .16s var(--fx-ease); }
.ovgrid > .stat:hover { transform: translateY(-2px); }
.ovgrid > .stat b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.ovgrid > .stat span { color: color-mix(in srgb, var(--c) 45%, #fff); font-weight: 600; }
.ovgrid > .stat:nth-child(1) { --c: #ff5ca8; } .ovgrid > .stat:nth-child(2) { --c: #ffb824; } .ovgrid > .stat:nth-child(3) { --c: #2ee59d; } .ovgrid > .stat:nth-child(4) { --c: #4da3ff; }
.ovstats > *, .ovcols > * { border-radius: 20px; background: var(--mg-card2); border: 1px solid var(--mg-line); box-shadow: var(--card-sh); }
.ovwrap h3, .ovwrap h4 { font-weight: 750; letter-spacing: -.01em; }

/* ══ GLAS: genomskinliga paneler, glöd, HUD-typsnitt ═══════════════════════════════════════════════ */
:root[data-pal="glas"] { --fx-glow: color-mix(in srgb, var(--fx-a) 55%, transparent); }
:root[data-pal="glas"] body.ui2 .shell.ui2 { backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 60px color-mix(in srgb, var(--fx-a) 18%, transparent), 0 40px 100px rgba(0, 0, 0, .5); }
:root[data-pal="glas"] .shell.mg .sidenav { backdrop-filter: none; border-right: 1px solid var(--mg-line); }
:root[data-pal="glas"] .shell.mg .mg-work > .main, :root[data-pal="glas"] .mg-online, :root[data-pal="glas"] .hcard { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 22px color-mix(in srgb, var(--fx-a) 8%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-pal="glas"] .mg-hero { background: linear-gradient(105deg, color-mix(in srgb, var(--fx-a) 22%, transparent), rgba(255, 255, 255, .05) 70%); border: 1px solid color-mix(in srgb, var(--fx-a) 55%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--fx-a) 22%, transparent); }
:root[data-pal="glas"] .shell.mg .ns-i.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
:root[data-pal="glas"] .shell.mg .ns-i.on i { box-shadow: 0 0 16px color-mix(in srgb, var(--c) 80%, transparent); }
:root[data-pal="glas"] .home .kpis .kpi, :root[data-pal="glas"] .qbtn, :root[data-pal="glas"] .ovgrid > .stat { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(255, 255, 255, .04)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 18%, transparent); }
:root[data-pal="glas"] .qbtn:hover, :root[data-pal="glas"] .home .kpis .kpi.click:hover { box-shadow: 0 0 34px color-mix(in srgb, var(--c) 45%, transparent); }
:root[data-pal="glas"] .ptbl.pp tr.click { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
:root[data-pal="glas"] .ptbl.pp tr.click:hover { box-shadow: 0 0 26px color-mix(in srgb, var(--fx-a) 35%, transparent); border-color: var(--fx-a); background: color-mix(in srgb, var(--fx-a) 12%, rgba(255, 255, 255, .06)); }
:root[data-pal="glas"] .mg-btn.primary, :root[data-pal="glas"] .btn.primary, :root[data-pal="glas"] .mg-tabs > button.on, :root[data-pal="glas"] .mgp-tabs > button.on, :root[data-pal="glas"] .mgp-tabs .mgp-more > button.on { box-shadow: 0 0 22px var(--fx-glow); }
/* popup-ytor ska vara läsbara oavsett vad som syns bakom */
.navpop, .gs-pop, .sc .menu, .fpop, .cmenu2, .mewrap .pop, .dutymenu { background: var(--fx-pop) !important; }
#modal .dlg, #modal .modal, #modal > div > div { background: var(--fx-pop); border: 1px solid var(--mg-line2); }
/* HUD-typsnitt på rubriker och siffror */
.shell.ui2 .pagehead h1, .mg-welcome h2, .mg-brand b, .mg-hero-t h2, .home .kpis .kpi .kt b, .ovgrid > .stat b, .mg-stat b { font-family: 'Bahnschrift', 'DIN Condensed', 'Arial Narrow', 'Inter', sans-serif; font-stretch: 88%; letter-spacing: .01em; }
.mg-welcome h2, .shell.ui2 .pagehead h1 { text-transform: uppercase; letter-spacing: .04em; }
:root[data-pal="glas"], :root[data-pal="glas"] body.web { --fx-pop: rgba(12, 15, 21, .94); }

/* ══ STORA CHATTAR: meddelandefältet tar plats, texten är läsbar ═════════════════════════════════════ */
.composer2, .composer { padding: 12px 22px 20px !important; }
.composer2 .cbox, .composer .crow { align-items: stretch; background: rgba(255, 255, 255, .07) !important; border: 1.5px solid color-mix(in srgb, var(--fx-a) 45%, transparent) !important; border-radius: 18px !important; box-shadow: 0 0 24px color-mix(in srgb, var(--fx-a) 14%, transparent); }
.composer2 .cbox:focus-within { box-shadow: 0 0 34px color-mix(in srgb, var(--fx-a) 35%, transparent); border-color: var(--fx-a) !important; }
.composer2 .in2, .composer textarea.in { min-height: 110px !important; max-height: 340px !important; padding: 16px 18px !important; font-size: 16.5px !important; line-height: 1.5 !important; }
.composer2 .attbtn { height: auto !important; width: 56px !important; align-self: stretch; font-size: 18px; }
.composer2 .sendbtn { height: auto !important; width: 84px !important; align-self: stretch; font-size: 22px; background: linear-gradient(160deg, var(--fx-a), var(--fx-b)) !important; color: var(--fx-ink, #03231a) !important; box-shadow: 0 0 22px var(--fx-glow, transparent); transition: transform .15s; }
.composer2 .sendbtn:hover:not(:disabled) { transform: scale(1.04); }
.sc.sc2 .msgs, .sc .msgs { padding: 22px 28px !important; gap: 16px !important; font-size: 16px; }
.sc .msgs .b, .sc .msgs .bubble, .sc .msgs .txt, .sc .msgs .tx { font-size: 16px !important; line-height: 1.5 !important; }
/* direktchatt / personalchatt */
.ccompose { padding: 12px 20px 20px !important; gap: 10px; align-items: stretch !important; }
.ccompose .cinputbox { min-height: 110px; align-items: stretch !important; border-radius: 18px !important; background: rgba(255, 255, 255, .07) !important; border: 1.5px solid color-mix(in srgb, var(--fx-a) 45%, transparent) !important; }
.ccompose textarea, .ccompose input { min-height: 96px !important; max-height: 340px !important; font-size: 16.5px !important; padding: 14px 16px !important; }
.ccompose button:last-child { min-width: 84px; border-radius: 18px; background: linear-gradient(160deg, var(--fx-a), var(--fx-b)) !important; color: var(--fx-ink, #03231a) !important; font-size: 22px; box-shadow: 0 0 22px var(--fx-glow, transparent); }
.chatx .thread, .chatx .cmsg, .chatx .cb { font-size: 16px; line-height: 1.5; }
.pc-cbox { min-height: 110px; border-radius: 18px !important; }
.pc-ta { min-height: 96px !important; font-size: 16.5px !important; padding: 14px 16px !important; }
.pc-tx { font-size: 16px !important; line-height: 1.5 !important; }
.pc-msgs { padding: 18px 24px !important; }
.pc-main .pc-compose { padding: 12px 22px 20px !important; }

/* ══ FORDON: kort i stället för tabell ═══════════════════════════════════════════════════════════════ */
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 4px; }
.vcard { --c: hsl(var(--hue) 85% 62%); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255, 255, 255, .04)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 12%, transparent); transition: transform .18s, box-shadow .18s; }
.vcard:hover { transform: translateY(-2px); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 32%, transparent); }
.vc-top { display: flex; align-items: center; gap: 12px; }
.vc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); flex: none; }
.vc-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.vc-id b { font-size: 17px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-plate { align-self: flex-start; padding: 2px 10px; border-radius: 6px; background: #f5f6f8; color: #11151c; font-weight: 800; letter-spacing: .12em; font-size: 13px; border: 2px solid #1d4ed8; }
.vc-debt { font-weight: 800; color: #ffd24a; font-size: 14px; text-shadow: 0 0 12px rgba(255, 210, 74, .5); white-space: nowrap; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.vc-b { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.vc-b:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.vc-b.main { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: var(--fx-ink, #03231a); border-color: transparent; box-shadow: 0 0 18px var(--fx-glow, transparent); }
.vc-b.bad { color: #ff9aa2; border-color: rgba(255, 107, 122, .5); background: rgba(255, 90, 105, .12); }

/* ══ INVENTORY: färg, stora rutor, inget svart ═══════════════════════════════════════════════════════ */
.invcard { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.invtop { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 20%, transparent), rgba(255, 255, 255, .05)) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent) !important; box-shadow: 0 0 24px color-mix(in srgb, var(--fx-a) 14%, transparent); }
.invhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: transparent !important; border: 0 !important; padding: 0 !important; }
.invhead .ttl { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .04em; }
.invhead .ttl i { color: var(--fx-a); }
.invhead .wt { color: var(--mg-text2); font-size: 13.5px; }
.invhead .wbar { flex: 1; min-width: 120px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12) !important; overflow: hidden; }
.invhead .wbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--fx-a), var(--fx-b)) !important; box-shadow: 0 0 12px var(--fx-glow, transparent); }
.invhead .wbar.high i { background: linear-gradient(90deg, #ffd24a, #ff9a3c) !important; }
.invhead .wbar.full i { background: linear-gradient(90deg, #ff8a5c, #ff4d6d) !important; }
.invtools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: transparent !important; border: 0 !important; padding: 0 !important; }
.invtools .search { flex: 1; min-width: 200px; background: rgba(0, 0, 0, .22) !important; border: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 12px; }
.invbody { margin-top: 14px; }
.invgrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important; gap: 12px !important; background: transparent !important; padding: 0 !important; }
.invtile { --c: hsl(calc(var(--i, 0) * 47 + 160) 80% 62%); position: relative; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px 10px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, .04)) !important; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 10%, transparent); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.invtile:hover, .invtile.on { transform: translateY(-3px); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 45%, transparent); border-color: var(--c) !important; }
.invtile.on { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, transparent), rgba(255, 255, 255, .06)) !important; }
.invtile:nth-child(6n+1) { --i: 0 } .invtile:nth-child(6n+2) { --i: 1 } .invtile:nth-child(6n+3) { --i: 2 } .invtile:nth-child(6n+4) { --i: 3 } .invtile:nth-child(6n+5) { --i: 4 } .invtile:nth-child(6n) { --i: 5 }
.invtile .slot { position: absolute; left: 9px; top: 6px; font-size: 11px; opacity: .6; font-weight: 700; }
.invtile .cnt { position: absolute; right: 8px; top: 6px; padding: 1px 8px; border-radius: 99px; background: var(--c) !important; color: #06141a !important; font-weight: 800; font-size: 12px; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.invtile .lbl { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.2; }
.invtile .tdel { position: absolute; right: 6px; bottom: 6px; opacity: 0; transition: opacity .15s; }
.invtile:hover .tdel { opacity: 1; }
.invdet { margin-top: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .2) !important; }
.vc-b { flex-direction: row !important; white-space: nowrap; height: auto; }

/* ══ CHATTBAKGRUNDER: ingen mörk yta, glas med färgad dis ═══════════════════════════════════════════════ */
.sc .msgs, .sc.sc2 .msgs, .pchat .msgs, .cchat .msgs, .chatx .thread { background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--fx-b) 14%, transparent), transparent 70%), radial-gradient(60% 55% at 0% 100%, color-mix(in srgb, var(--fx-a) 12%, transparent), transparent 70%), rgba(255, 255, 255, .03) !important; }
.cmsg .cbub, .sc .msgs .msg .bub { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .2) !important; }
.cmsg.mine .cbub { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)) !important; border-color: transparent !important; color: var(--fx-ink, #03231a) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--fx-a) 35%, transparent); }
.cmsg.mine .cbub * { color: inherit; }
.sc .head, .sc.sc2 .head, .sc .chead, .pchat .head, .cchat .head { background: linear-gradient(100deg, color-mix(in srgb, var(--fx-a) 18%, transparent), rgba(255, 255, 255, .04)) !important; border-bottom: 1px solid var(--mg-line) !important; }
.sc .composer2, .sc .ccompose, .composer2 { background: transparent !important; border-top: 0 !important; }

/* ══ HÄKTE / FÄNGELSE: kort, ingen överlappning ═════════════════════════════════════════════════════ */
.shell.mg .mg-card.jl { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.jl .mg-card-h { background: linear-gradient(110deg, color-mix(in srgb, #ff9a3c 22%, transparent), rgba(255, 255, 255, .04)) !important; border: 1px solid color-mix(in srgb, #ff9a3c 45%, transparent) !important; border-radius: 18px !important; margin-bottom: 12px; }
.jl-tools { background: transparent !important; border: 0 !important; padding: 0 0 12px !important; flex-wrap: wrap; }
.jl-sec { background: transparent !important; border: 0 !important; padding: 16px 4px 8px !important; font-size: 14px !important; font-weight: 800; color: #fff !important; letter-spacing: .06em !important; }
.jl-sec i { color: #ff9a3c; }
.jl-row { --c: #ff9a3c; display: grid !important; grid-template-columns: 52px minmax(0, 1fr) 180px; gap: 10px 16px !important; align-items: center; margin: 0 0 12px; padding: 16px 18px !important; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255, 255, 255, .04)) !important; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent) !important; box-shadow: 0 0 20px color-mix(in srgb, var(--c) 8%, transparent); }
.jl-ic { width: 48px !important; height: 48px !important; border-radius: 15px !important; font-size: 20px !important; color: #fff !important; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
.jl-ic.bad { --c: #ff5d73; }
.jl-name b { font-size: 16.5px !important; }
.jl-meta { white-space: normal !important; font-size: 12px !important; color: var(--mg-text2) !important; }
.jl-ch { white-space: normal !important; font-size: 13px !important; }
.jl-time { width: auto !important; text-align: right; }
.jl-time b { font-size: 22px !important; color: var(--c); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.jl-bar { height: 7px !important; background: rgba(255, 255, 255, .14) !important; }
.jl-bar i { background: linear-gradient(90deg, var(--c), #ffd24a) !important; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.jl-acts { grid-column: 2 / -1; width: auto !important; justify-content: flex-start !important; flex-wrap: wrap; }
.jl-acts .mg-btn { padding: 9px 16px; border-radius: 12px; }
/* Verktyg-flikraden: hela raden i en färg, ingen extra ruta */
.mg-tabs.big, .shell.mg .mg-work > .mg-tabs { background: transparent !important; border: 0 !important; }

/* ══ SPELARKORT: namn, TX-ID, Player-ID och TX-namn syns på kortet ═══════════════════════════════════════ */
.ptbl.pp tr.click { grid-template-columns: auto auto minmax(0, 1fr) auto !important; grid-template-areas: "nm nm nm st" "tid pid tn tn" "jb jb jb jb" !important; gap: 8px 6px !important; }
.ptbl.pp tr.click td:nth-child(1), .ptbl.pp tr.click td:nth-child(2), .ptbl.pp tr.click td:nth-child(4) { display: block !important; }
.ptbl.pp tr.click td:nth-child(1) { grid-area: tid; } .ptbl.pp tr.click td:nth-child(2) { grid-area: pid; } .ptbl.pp tr.click td:nth-child(4) { grid-area: tn; }
.ptbl.pp tr.click td:nth-child(1), .ptbl.pp tr.click td:nth-child(2) { padding: 2px 9px !important; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ptbl.pp tr.click td:nth-child(1) { background: color-mix(in srgb, var(--fx-a) 28%, transparent) !important; color: #fff; }
.ptbl.pp tr.click td:nth-child(1)::before { content: 'TX '; opacity: .7; font-weight: 600; }
.ptbl.pp tr.click td:nth-child(2) { background: rgba(255, 210, 74, .22) !important; color: #ffe08a; }
.ptbl.pp tr.click td:nth-child(2)::before { content: 'PID '; opacity: .7; font-weight: 600; }
.ptbl.pp tr.click td:nth-child(4) { font-size: 11.5px; color: var(--mg-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.ptbl.pp tr.click td:nth-child(4)::before { content: '@'; opacity: .6; margin-right: 1px; }
.ptbl.pp .cellname b { font-size: 14.5px !important; }

/* Ändra tid-dialogen */
.jt { display: flex; flex-direction: column; gap: 14px; min-width: 340px; }
.jt-now, .jt-new { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.jt-new { background: linear-gradient(110deg, color-mix(in srgb, #ff9a3c 25%, transparent), rgba(255, 255, 255, .05)); border: 1px solid color-mix(in srgb, #ff9a3c 50%, transparent); }
.jt-now b { font-size: 18px; } .jt-new b { font-size: 26px; color: #ffb25c; text-shadow: 0 0 14px rgba(255, 154, 60, .5); }
.jt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jt-in { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mg-text2); } .jt-in input { flex: 1; }

/* ══ NOTISER + LISTRADER I SAMMA GLASDESIGN ═════════════════════════════════════════════════════════════ */
#toasts .toast, #alerts .alert, #callbox > *, #killhint > * { --ac: var(--fx-a); background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 22%, rgba(12, 16, 20, .82)), rgba(12, 16, 20, .78)) !important; border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent) !important; border-radius: 18px !important; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 26px color-mix(in srgb, var(--ac) 28%, transparent), 0 14px 36px rgba(0, 0, 0, .45) !important; }
#toasts .toast { padding: 13px 18px; font-weight: 700; font-size: 14px; }
#toasts .toast.ok { --ac: #38f2a6; } #toasts .toast.bad { --ac: #ff5d73; } #toasts .toast.warn { --ac: #ffd24a; }
#toasts .toast::before { width: 10px !important; height: 10px !important; background: var(--ac) !important; box-shadow: 0 0 12px var(--ac); }
#alerts .alert::before { width: 5px !important; box-shadow: 0 0 12px var(--ac); }
#alerts .alert .ai { border-radius: 14px !important; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 45%, transparent), color-mix(in srgb, var(--ac) 18%, transparent)) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--ac) 45%, transparent); }
#alerts .alert .abar { height: 3px !important; box-shadow: 0 0 8px var(--ac); }
#alerts .alert.report { --ac: #5ec8ff; }
/* Direktchatt- och ärendelistans rader */
.tk2 { border: 1px solid rgba(255, 255, 255, .12) !important; border-left: 4px solid var(--c, rgba(255, 255, 255, .25)) !important; border-radius: 16px !important; background: rgba(255, 255, 255, .06) !important; margin-bottom: 8px; padding: 12px 14px !important; transition: transform .12s, box-shadow .12s, background .12s; }
.tk2:hover { background: rgba(255, 255, 255, .11) !important; transform: translateX(3px); }
.tk2.on { background: linear-gradient(110deg, color-mix(in srgb, var(--fx-a) 26%, transparent), rgba(255, 255, 255, .07)) !important; border-color: var(--fx-a) !important; box-shadow: 0 0 22px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.tk2:nth-child(5n+1) { --c: #38f2a6; } .tk2:nth-child(5n+2) { --c: #5ec8ff; } .tk2:nth-child(5n+3) { --c: #ffd24a; } .tk2:nth-child(5n+4) { --c: #ff6fb1; } .tk2:nth-child(5n) { --c: #b69cff; }
.lbody2, .col-list .lbody2 { padding: 8px 10px; }
/* Meddelandemenyer (åtgärder på ett meddelande) */
.cmenu2 { border-radius: 16px !important; border: 1px solid var(--mg-line2) !important; box-shadow: 0 0 24px color-mix(in srgb, var(--fx-a) 20%, transparent), 0 18px 40px rgba(0, 0, 0, .5) !important; padding: 6px !important; }
.cmenu2 button { border-radius: 11px !important; padding: 9px 12px !important; font-weight: 600; }
.cmenu2 button:hover { background: color-mix(in srgb, var(--fx-a) 25%, transparent) !important; }
.ptbl.pp tr.click { grid-template-areas: "nm nm nm st" "tid pid . ." "tn tn tn tn" "jb jb jb jb" !important; }

/* ══ DIALOGER OCH POPUPS: färgat glas, inget svart ═══════════════════════════════════════════════════════ */
:root[data-pal="glas"], :root[data-pal="glas"] body.web { --fx-pop: rgba(26, 44, 58, .96); }
#modal .dlg, #modal .modal, #modal > div > div { background: linear-gradient(160deg, rgba(40, 70, 88, .97), rgba(24, 42, 58, .97)) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent) !important; border-radius: 22px !important; box-shadow: 0 0 40px color-mix(in srgb, var(--fx-a) 25%, transparent), 0 30px 80px rgba(0, 0, 0, .55) !important; overflow: hidden; }
#modal .dlg > *, #modal .dlg-h, #modal .dlg-f, #modal .dlg .head, #modal .dlg .foot, #modal .dlg header, #modal .dlg footer { background: transparent !important; border-color: rgba(255, 255, 255, .14) !important; }
#modal .dlg h2, #modal .dlg-h { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
#modal .dlg .in, #modal .dlg input, #modal .dlg textarea, #modal .dlg select { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 12px !important; color: #fff; }
#modal .dlg .btn.primary, #modal .dlg .mg-btn.primary { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)) !important; color: var(--fx-ink, #03231a) !important; box-shadow: 0 0 18px var(--fx-glow, transparent); }
#modal:not(.hidden) { background: rgba(6, 12, 18, .5) !important; backdrop-filter: blur(4px); }

/* ══ F6-MENYN: enklare, färg, glas ═══════════════════════════════════════════════════════════════════════ */
#f6 { width: 400px !important; background: linear-gradient(160deg, rgba(14, 20, 24, .74), rgba(10, 14, 18, .62)) !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 22px !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 40px color-mix(in srgb, var(--fx-a) 22%, transparent), 0 30px 80px rgba(0, 0, 0, .5) !important; }
#f6 .f6-h { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, .14) !important; }
#f6 .f6-logo { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)) !important; color: var(--fx-ink, #03231a) !important; box-shadow: 0 0 18px var(--fx-glow, transparent); border-radius: 12px; }
#f6 .mg-section { color: #fff !important; font-size: 12px; letter-spacing: .12em; opacity: .85; }
#f6 .f6-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#f6 .f6-btn { --c: var(--fx-a); display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, .05)) !important; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent) !important; color: #fff; font-weight: 700; transition: transform .14s, box-shadow .14s; }
#f6 .f6-btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
#f6 .f6-btn > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
#f6 .f6-btn small { display: none; }   /* kommandonamnen behövs inte: knappen säger vad den gör */
#f6 .f6-btn.wide { grid-column: 1 / -1; }
#f6 .f6-btn.danger { --c: #ff5d73; }
#f6 .f6-grid .f6-btn:nth-child(4n+1) { --c: #38f2a6; } #f6 .f6-grid .f6-btn:nth-child(4n+2) { --c: #5ec8ff; } #f6 .f6-grid .f6-btn:nth-child(4n+3) { --c: #ffd24a; } #f6 .f6-grid .f6-btn:nth-child(4n) { --c: #ff6fb1; }
#f6 .f6-btn.on { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)) !important; }
#f6 .f6-range, #f6 .f6-confirm, #f6 .f6-res { background: rgba(255, 255, 255, .07) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 15px !important; }
#f6 .f6-steps button { border-radius: 9px; background: rgba(255, 255, 255, .1); border: 0; color: #fff; }
#f6 .f6-steps button.on { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: var(--fx-ink, #03231a); font-weight: 800; }
#f6 .f6-foot { background: transparent !important; border-top: 1px solid rgba(255, 255, 255, .14) !important; }
#f6 kbd { border-radius: 7px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); }

/* ══ WEBBEN: egen färgad bakgrund (inget spelbild bakom glaset) + en enda fokusram på sökfält ═══════════════ */
html:has(body.web) { background: #123c48; }
body.web, :root[data-pal="glas"] body.web { background: radial-gradient(900px 560px at 6% -6%, rgba(56, 242, 166, .40), transparent 62%), radial-gradient(820px 520px at 100% 0%, rgba(255, 111, 177, .30), transparent 60%), radial-gradient(900px 600px at 70% 110%, rgba(255, 210, 74, .22), transparent 62%), linear-gradient(135deg, #123c48, #1d2f5a 55%, #43275f) fixed !important; }
body.web #webbar { background: linear-gradient(100deg, color-mix(in srgb, var(--fx-a) 22%, transparent), rgba(255, 255, 255, .06)) !important; border-bottom: 1px solid var(--mg-line) !important; }
body.web .shell.mg .sidenav { background: rgba(255, 255, 255, .06) !important; }
body.web .mg-online, body.web .shell.mg .mg-work > .main { background: rgba(255, 255, 255, .09) !important; }
/* sökfält: wrappern får glöden, inte både wrapper och input */
.mg-input, .search, .aps-search, .combo, .jl-tools .mg-input { border-radius: 14px; }
.mg-input input, .search input, .combo input, label.mg-input input, .jl-tools input, .sl-search input { outline: none !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }
.mg-input:focus-within, .search:focus-within, .combo:focus-within { border-color: var(--fx-a) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-a) 22%, transparent), 0 0 18px color-mix(in srgb, var(--fx-a) 30%, transparent) !important; outline: none !important; }
input:focus, textarea:focus, select:focus { outline: none; }

/* ══ PERSONALCHATT / DIREKTCHATT (pchat.css): färgat glas i stället för mörkt ═══════════════════════════════ */
.pc-wrap { background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--fx-b) 16%, transparent), transparent 70%), radial-gradient(60% 55% at 0% 100%, color-mix(in srgb, var(--fx-a) 14%, transparent), transparent 70%), rgba(255, 255, 255, .03) !important; }
.pc-side { background: rgba(255, 255, 255, .06) !important; border-right: 1px solid var(--mg-line) !important; }
.pc-head { background: linear-gradient(100deg, color-mix(in srgb, var(--fx-a) 20%, transparent), rgba(255, 255, 255, .04)) !important; border-bottom: 1px solid var(--mg-line) !important; }
.pc-ch, .pc-row { border-radius: 14px !important; margin: 2px 0; border: 1px solid transparent; transition: background .12s, transform .12s; }
.pc-ch:hover, .pc-row:hover { background: rgba(255, 255, 255, .12) !important; transform: translateX(2px); }
.pc-ch.on, .pc-row.on { background: linear-gradient(110deg, color-mix(in srgb, var(--fx-a) 30%, transparent), rgba(255, 255, 255, .08)) !important; border-color: var(--fx-a) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.pc-row { padding: 10px !important; }
.pc-av { background: linear-gradient(135deg, hsl(var(--hue, 160) 80% 55%), hsl(calc(var(--hue, 160) + 40) 70% 40%)) !important; color: #fff !important; box-shadow: 0 0 12px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.pc-od { border-color: rgba(30, 50, 70, .9) !important; }
.pc-search, .pc-cbox { background: rgba(255, 255, 255, .09) !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 14px !important; }
.pc-cbox:focus-within, .pc-search:focus-within { border-color: var(--fx-a) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.pc-m:hover { background: rgba(255, 255, 255, .06) !important; }
.pc-acts, .pc-atpop { background: var(--fx-pop) !important; border-radius: 14px !important; }
.pc-dlgov { background: rgba(6, 12, 18, .5) !important; backdrop-filter: blur(4px); }
.pc-lbl { color: #fff !important; opacity: .8; letter-spacing: .1em; }
.pc-lbl em { background: color-mix(in srgb, var(--fx-a) 35%, transparent) !important; color: #fff; }
.pc-direct { background: rgba(255, 255, 255, .08) !important; border-color: color-mix(in srgb, var(--fx-a) 45%, transparent) !important; border-radius: 18px !important; }
/* Webbens vänsterlistor och kort */
body.web .sidenav, body.web .pc-side { background: rgba(255, 255, 255, .07) !important; }

/* ══ SPELARPROFIL: stor tillbakaknapp bredvid rubriken, läsbar Kicka/Banna/Varna ═══════════════════════════════ */
.mgp-top { align-items: center; gap: 14px; }
.mgp-back { order: -1; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px !important; font-size: 16px !important; font-weight: 800 !important; border-radius: 16px !important; color: var(--fx-ink, #03231a) !important; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)) !important; border: 0 !important; box-shadow: 0 0 22px var(--fx-glow, transparent); transition: transform .14s; }
.mgp-back:hover { transform: translateX(-3px) scale(1.03); }
.mgp-back i { font-size: 18px; }
.mgp-actcol .mg-btn.danger, .mgp-actcol .mg-btn.warn, .mgp-actcol .mg-btn { color: #fff !important; font-weight: 800 !important; font-size: 14px !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); padding: 10px 18px !important; border-radius: 14px !important; }
.mgp-actcol .mg-btn.danger { background: linear-gradient(135deg, #ff5d73, #c2264b) !important; border: 0 !important; box-shadow: 0 0 18px rgba(255, 93, 115, .45); }
.mgp-actcol .mg-btn.warn { background: linear-gradient(135deg, #ffb13c, #d9770b) !important; border: 0 !important; box-shadow: 0 0 16px rgba(255, 177, 60, .4); }
.mgp-actcol .mg-btn.danger:hover, .mgp-actcol .mg-btn.warn:hover { filter: brightness(1.12); }

/* ══ MENYER OCH SIDOPANELER SKA VARA TÄTA (annars flyter text ihop) ═══════════════════════════════════════ */
.combo .menu, .menu[role="listbox"], .sc .menu, .fpop, .navpop, .gs-pop, .dutymenu { background: var(--fx-pop) !important; border: 1px solid var(--mg-line2) !important; border-radius: 16px !important; box-shadow: 0 0 24px color-mix(in srgb, var(--fx-a) 20%, transparent), 0 18px 40px rgba(0, 0, 0, .5) !important; }
.combo .menu .opt:hover, .combo .menu .opt.on { background: color-mix(in srgb, var(--fx-a) 22%, transparent) !important; }
.sidepanel, .shell .sidepanel { background: linear-gradient(170deg, rgba(36, 62, 80, .97), rgba(22, 38, 54, .97)) !important; border-left: 1px solid color-mix(in srgb, var(--fx-a) 40%, transparent) !important; box-shadow: -20px 0 60px rgba(0, 0, 0, .4) !important; }
.sidepanel .in, .sidepanel input, .sidepanel textarea { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 12px !important; }
.pc-ta, .pc-search input, .cinputbox textarea, .cinputbox input, .composer2 .in2 { outline: none !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }
::placeholder { color: rgba(255, 255, 255, .6) !important; opacity: 1; }
.pc-cbox .pc-cact, .pc-cbox button:last-child { min-width: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)) !important; color: var(--fx-ink, #03231a) !important; }

/* ══ GE FÖREMÅL: sökresultaten ligger i mitten som egen yta, "Att ge" täcks aldrig ═══════════════════════════ */
.givepanel { gap: 14px !important; }
.givepanel .combo { background: rgba(255, 255, 255, .1) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent) !important; border-radius: 16px !important; padding: 4px 6px; }
.gresults { position: static !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; padding: 10px !important; border-radius: 18px !important; background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: none !important; }
.gresults.hidden { display: none !important; }
.gresults .opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--fx-a)) 16%, transparent), rgba(255, 255, 255, .04)); color: #fff; text-align: left; min-width: 0; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.gresults .opt:nth-child(4n+1) { --c: #38f2a6; } .gresults .opt:nth-child(4n+2) { --c: #5ec8ff; } .gresults .opt:nth-child(4n+3) { --c: #ffd24a; } .gresults .opt:nth-child(4n) { --c: #ff6fb1; }
.gresults .opt:hover, .gresults .opt.act { transform: translateY(-2px); border-color: var(--c, var(--fx-a)); box-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--fx-a)) 40%, transparent); }
.gresults .opt .t1 { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gresults .opt .t2 { display: none; }
.gresults .opt .tag { margin-left: auto; }
.gresults .state, .gresults .more { grid-column: 1 / -1; }
.gcartbox { padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--fx-a) 18%, transparent), rgba(255, 255, 255, .05)); border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--fx-a) 14%, transparent); }
.ghead { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.ghead em { font-style: normal; min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--fx-a); color: var(--fx-ink, #03231a); font-size: 13px; }
.grow-item { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
/* nya snabbknappar i profilen */
.mgp-q.q-gs { --c: #ff6fb1; } .mgp-q.q-dm { --c: #5ec8ff; } .mgp-q.q-dc { --c: #b69cff; } .mgp-q.q-frs { --c: #ffd24a; }

/* ── 2026-11-06 Översikt + stashes: färgad glas i stället för grå rutor ── */
.mgp-body .mgp-stats { gap: 12px; }
.mgp-body .mg-stat { border: 1px solid color-mix(in srgb, var(--fx-a) 30%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--fx-a) 16%, transparent), color-mix(in srgb, var(--fx-b) 8%, transparent)); border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 22px color-mix(in srgb, var(--fx-glow) 14%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
.mgp-body .mg-stat:nth-child(2) { border-color: color-mix(in srgb, var(--fx-b) 34%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--fx-b) 18%, transparent), color-mix(in srgb, #a78bfa 8%, transparent)); }
.mgp-body .mg-stat:nth-child(3) { border-color: rgba(255,170,90,.34); background: linear-gradient(145deg, rgba(255,170,90,.16), rgba(255,110,140,.07)); }
.mgp-body .mg-stat .k { color: rgba(255,255,255,.7); }
.mgp-body .mg-stat b { font-size: 22px; color: #fff; }
.mgp-body .mg-stat small { color: rgba(255,255,255,.62); }
.mgp-body .mg-stat .ic { color: rgba(255,255,255,.7); opacity: 1; }
.mgp-cols { gap: 14px; }
.mgp-cols > .mg-card { border-radius: 18px; border: 1px solid color-mix(in srgb, var(--fx-a) 24%, transparent); background: linear-gradient(160deg, rgba(255,255,255,.09), color-mix(in srgb, var(--fx-a) 7%, transparent)) !important; box-shadow: 0 8px 26px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; }
.mgp-cols > .mg-card .mg-card-h { background: color-mix(in srgb, var(--fx-a) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--fx-a) 22%, transparent); }
.mgp-cols > .mg-card .mg-card-h > i:first-child { color: #fff; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); width: 28px; height: 28px; line-height: 28px; border-radius: 9px; font-size: 13px; }
.mgp-cols > .mg-card .mg-card-h h3 { color: #fff; font-size: 14px; }
.mgp-cols > .mg-card .mg-row { background: transparent; border-bottom: 1px solid rgba(255,255,255,.08); }
.mgp-cols > .mg-card .mg-row:last-child { border-bottom: 0; }
.mgp-cols > .mg-card .mg-row b { color: #fff; }
.mgp-cols > .mg-card .mg-row small { color: rgba(255,255,255,.62); }
.mgp-cols > .mg-card .mg-kv span { color: rgba(255,255,255,.62); }
.mgp-cols > .mg-card .mg-kv b { color: #fff; }
.mgp-cols > .mg-card .mg-count { background: rgba(255,255,255,.14); color: #fff; }

.stash-title { display: flex; align-items: center; gap: 10px; margin: 22px 2px 12px; color: #fff; font-size: 15px; }
.stash-title i { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 10px; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); }
.stash-title small { color: rgba(255,255,255,.6); font-size: 12px; }
.stasharea { margin-top: 14px; }
.stg { margin-bottom: 14px; border-radius: 18px; border: 1px solid hsla(var(--hue,180) 70% 60% / .32); background: linear-gradient(160deg, hsla(var(--hue,180) 80% 60% / .14), rgba(255,255,255,.05)); padding: 12px; box-shadow: 0 0 20px hsla(var(--hue,180) 80% 55% / .1); }
.stg-h { display: flex; align-items: center; gap: 9px; color: #fff; margin-bottom: 10px; }
.stg-h i { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 8px; background: hsla(var(--hue,180) 75% 55% / .55); font-size: 12px; }
.stg-n { margin-left: auto; background: rgba(255,255,255,.16); border-radius: 99px; padding: 1px 9px; font-size: 11px; }
.stg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 9px; }
.stg-c { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.stg-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: #fff; }
.stg-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stg-t small { color: rgba(255,255,255,.6); }
.stg-b { display: flex; gap: 6px; }

/* ── 2026-11-06 Höger panel "Spelare online" + Supportöversikt: genomskinligt glas, tydliga snabbknappar ── */
.mg-online.mg-card { width: 320px; background: linear-gradient(165deg, rgba(255,255,255,.12), color-mix(in srgb, var(--fx-a) 7%, rgba(255,255,255,.04))) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 28%, rgba(255,255,255,.12)); box-shadow: 0 0 30px color-mix(in srgb, var(--fx-glow) 14%, transparent), inset 0 1px 0 rgba(255,255,255,.14); }
.mg-online .mg-ol-h { padding: 16px 16px 10px; }
.mg-online .mg-ol-h h3 { font-size: 15px; }
.mg-online .mg-ol-s { padding: 0 14px 8px; gap: 8px; flex-direction: row; align-items: center; }
.mg-online .mg-ol-s .mg-input { flex: 1; min-width: 0; }
.mg-online .mg-ol-sort .mg-btn { height: 34px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 0 10px; }
.mg-online .mg-ol-list { padding: 4px 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.mg-online .mg-ol-row { height: auto; flex-wrap: wrap; row-gap: 8px; margin: 0; padding: 10px 12px; border-radius: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.mg-online .mg-ol-row:hover, .mg-online .mg-ol-row:focus-visible { background: color-mix(in srgb, var(--fx-a) 14%, rgba(255,255,255,.08)); border-color: color-mix(in srgb, var(--fx-a) 45%, transparent); }
.mg-online .mg-ol-row .nm b { font-size: 14px; }
.mg-online .mg-ol-row .nm small { font-size: 11.5px; color: rgba(255,255,255,.62); }
.mg-online .mg-ol-row .png { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.mg-online .mg-ol-row .acts { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.mg-online .mg-ol-row .acts .mg-btn { --a: var(--fx-a); width: auto; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--a) 22%, rgba(255,255,255,.05)); border: 1px solid color-mix(in srgb, var(--a) 55%, transparent); color: #fff; }
.mg-online .mg-ol-row .acts .mg-btn i { font-size: 13px; color: color-mix(in srgb, var(--a) 40%, #fff); }
.mg-online .mg-ol-row .acts .mg-btn:hover { background: color-mix(in srgb, var(--a) 45%, rgba(255,255,255,.08)); box-shadow: 0 0 14px color-mix(in srgb, var(--a) 50%, transparent); }
.mg-online .acts .a-spec { --a: #38f2a6; } .mg-online .acts .a-dm { --a: #5ab0ff; } .mg-online .acts .a-dc { --a: #b48cff; } .mg-online .acts .a-kick { --a: #ffb44d; } .mg-online .acts .danger { --a: #ff6b81; }
.mg-online .mg-ol-all { color: #fff; font-weight: 700; border-top: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); height: 42px; }

/* Supportöversikt */
.sc .ovwrap { gap: 20px; padding: 22px; }
.sc .ovgrid { gap: 14px; }
.sc .ovgrid .stat { --c: var(--fx-a); border-radius: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--c) 22%, rgba(255,255,255,.04)), rgba(255,255,255,.04)); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 14%, transparent), inset 0 1px 0 rgba(255,255,255,.12); color: #fff; }
.sc .ovgrid .stat:nth-child(2) { --c: #ffb44d; } .sc .ovgrid .stat:nth-child(3) { --c: #5ab0ff; } .sc .ovgrid .stat:nth-child(4) { --c: #ff7aa8; }
.sc .ovgrid .stat b { font-size: 34px; font-weight: 800; color: #fff; } .sc .ovgrid .stat span { color: rgba(255,255,255,.78); font-size: 13.5px; }
.sc .ovst, .sc .ovlist { border-radius: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, rgba(255,255,255,.09), color-mix(in srgb, var(--fx-a) 5%, rgba(255,255,255,.03))); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.sc .ovst h3, .sc .ovlist h3 { color: #fff; font-size: 15px !important; }
.sc .ovst-n b { color: #fff; } .sc .ovst-n span, .sc .ovst-v { color: rgba(255,255,255,.7); }
.sc .ovst-bar { background: rgba(255,255,255,.12); } .sc .ovst-bar i.t { background: #5ab0ff; } .sc .ovst-bar i.c { background: #38f2a6; }
.sc .ovlist .pp { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; }
.sc .ovlist .chip { background: rgba(255,255,255,.14); color: #fff; border: 0; }
.sc .ovlist .chip.role { background: color-mix(in srgb, var(--fx-a) 30%, transparent); }

/* Support/Ärenden-ytan: genomskinligt tonat glas i stället för mörkgrått */
.sc { background: linear-gradient(165deg, rgba(255,255,255,.1), color-mix(in srgb, var(--fx-a) 8%, rgba(255,255,255,.03))) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 24%, rgba(255,255,255,.12)); box-shadow: 0 0 30px color-mix(in srgb, var(--fx-glow) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }

/* Ärenden: tre fristående glaskolumner (ingen grå ram runt) */
.sc:has(.col-list) { background: transparent !important; border: 0; box-shadow: none; gap: 12px; }
.sc .col-list, .sc .col-main, .sc .col-side { background: linear-gradient(165deg, rgba(90,210,190,.17), rgba(70,140,200,.10)) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 26%, rgba(255,255,255,.12)) !important; border-radius: 20px !important; box-shadow: 0 0 26px color-mix(in srgb, var(--fx-glow) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.14); }
.sc .col-list h1, .sc .col-list h2 { color: #fff; }

/* Inventory: fast huvud får täckande bakgrund (rutorna syntes igenom vid scroll), mindre rutor, borttagning med antal direkt i detaljraden */
.invtop { position: sticky; top: 0; z-index: 5; background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 22%, #12343c), color-mix(in srgb, var(--fx-b) 12%, #12303a)) !important; padding: 12px 16px; gap: 10px; }
.invbody { position: relative; z-index: 1; padding-top: 12px; }
.invgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important; gap: 9px !important; }
.invtile { min-height: 0 !important; padding: 22px 6px 8px !important; gap: 4px !important; border-radius: 14px !important; }
.invtile .lbl { font-size: 12px; }
.invtile .slot { font-size: 10px; left: 7px; top: 4px; } .invtile .cnt { font-size: 11px; right: 6px; top: 4px; padding: 0 6px; }
.invtile .iimg { width: 44px; height: 44px; }
.invdel { display: inline-flex; align-items: center; gap: 6px; }
.invdel-n { width: 72px; height: 32px; padding: 0 8px; text-align: center; }

/* Fordonsdetalj: rullbar, glas, registreringsskylt */
#modal .dlg.wide { width: min(1040px, 94vw); max-width: 94vw; }
.vdetail { max-height: 68vh; overflow-y: auto; overflow-x: hidden; padding: 2px 8px 4px 2px; gap: 14px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fx-a) 60%, transparent) transparent; }
.vdetail .vhead { gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 22%, transparent), rgba(255,255,255,.06)); border: 1px solid color-mix(in srgb, var(--fx-a) 40%, transparent); }
.vdetail .vplate { padding: 5px 16px; border-radius: 9px; background: #f4f1e6; color: #12202a; border: 3px solid #2a4d8f; font-weight: 800; font-size: 20px; letter-spacing: .14em; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.vdetail .vmodel { font-size: 18px; font-weight: 800; text-transform: uppercase; color: #fff; letter-spacing: .03em; }
.vdetail .vreason, .vdetail .vsec { border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.1), color-mix(in srgb, var(--fx-a) 6%, rgba(255,255,255,.03))) !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); padding: 14px 16px; }
.vdetail .vsec .title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; color: #fff; }
.vdetail .vsec .title i { width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 9px; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: var(--fx-ink); font-size: 13px; }
.vdetail .vgrid { gap: 14px; }
.vdetail .holdrow, .vdetail .modrow { padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; }
.vdetail .vcoords { padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.22); }
.vdetail .cmdh { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--fx-a) 70%, #fff); }
.vcards .vc-b { white-space: nowrap; padding-inline: 10px; flex: 0 1 auto; min-width: 0; }
.vcards .vc-acts { flex-wrap: wrap; gap: 6px; }

/* Grundton: blågrön glasbotten i stället för grå-svart (gäller alla sidor) */
:root[data-pal="glas"] body.ui2 .shell.ui2 { background-color: rgba(10, 38, 50, .5) !important; }
:root[data-pal="glas"] .sc { background-color: rgba(10, 38, 50, .35); }
/* Stash-visaren: huvudet fast bara i spelarens egen inventory, annars skulle två sticky-huvuden täcka varandra */
.stasharea .invtop { position: static; }
.stasharea .invcard { margin-bottom: 16px; }
.mgp-q.q-dm { --c: #5ab0ff; }
.mgp-q.q-tpback { --c: #7c9cff; }

/* Ärende → höger sida (Spelare/Personal/Samtal): färgade snabbknappar och glaskort */
.col-side { padding: 4px; }
.col-side .hx-card { border-radius: 18px; border: 1px solid color-mix(in srgb, var(--fx-a) 30%, rgba(255,255,255,.14)); background: linear-gradient(160deg, rgba(255,255,255,.13), color-mix(in srgb, var(--fx-a) 8%, rgba(255,255,255,.03))) !important; box-shadow: 0 0 22px color-mix(in srgb, var(--fx-glow) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.14); }
.col-side .hx-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.col-side .hx-a { --c: var(--fx-a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; padding: 8px 4px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 32%, rgba(255,255,255,.04)), color-mix(in srgb, var(--c) 12%, rgba(255,255,255,.02))) !important; color: #fff; font-size: 12px; font-weight: 700; transition: transform .14s, box-shadow .14s; }
.col-side .hx-a i { font-size: 16px; color: color-mix(in srgb, var(--c) 35%, #fff); }
.col-side .hx-a:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.col-side .hx-a:nth-child(1) { --c: #4da3ff; } .col-side .hx-a:nth-child(2) { --c: #22d3ee; } .col-side .hx-a:nth-child(3) { --c: #2ee59d; } .col-side .hx-a:nth-child(4) { --c: #5ab0ff; }
.col-side .hx-a:nth-child(5) { --c: #b18cff; } .col-side .hx-a:nth-child(6) { --c: #ffb44d; } .col-side .hx-a:nth-child(7) { --c: #ff6b81; } .col-side .hx-a:nth-child(8) { --c: #ff8ad0; }
.col-side .ps > h3, .col-side .ps > .ph, .col-side .ps > header { color: color-mix(in srgb, var(--fx-a) 60%, #fff); letter-spacing: .08em; }
.col-side .hx-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-side .hx-a { font-size: 12.5px; white-space: nowrap; }

/* Hopfällbara sektioner i ärendets högerpanel */
.ps.hxfold .hx-h { cursor: pointer; }
.ps.hxfold .hx-h::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: 10px; margin-left: 8px; opacity: .7; }
.ps.hxfold.closed .hx-h::after { content: "\f054"; }
.ps.hxfold.closed > :not(.hx-h) { display: none !important; }
.mgp-q.q-sdm { --c: #7ee0b8; }


/* ══ BANS (1.17.1): kompakt lista – en rad per ban, klick visar detaljerna ═════════════════════════════ */
.bn-top { padding: 0 28px 10px; gap: 6px 12px; }
.bn-t1 { align-items: baseline; padding-bottom: 6px; }
.bn-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.bn-note { color: var(--mg-muted); font-size: 12px; min-width: 0; }
.bn-bar { gap: 8px; }
.bn-bar .search { flex: 1 1 200px; min-width: 0; height: 34px; }
body select.in.bn-kalla { width: auto; flex: none; height: 34px; padding: 0 30px 0 12px; font-size: 12.5px; border-radius: 12px; cursor: pointer;
  background-color: var(--input); border: 1px solid var(--mg-line);
  background-image: linear-gradient(45deg, transparent 50%, var(--mg-text2) 50%), linear-gradient(135deg, var(--mg-text2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.bn-seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; font-size: 12px; }
.bn-seg .n { font-size: 11px; font-weight: 600; opacity: .62; font-variant-numeric: tabular-nums; }
.bn-seg button.on .n { opacity: .8; }
.bn-col { padding: 2px 28px 22px; }

.bn-list { border: 1px solid var(--mg-line); border-radius: 14px; background: var(--mg-card); overflow: hidden; }
.bn { border-top: 1px solid var(--mg-line); }
.bn:first-child { border-top: 0; }
.bn-r { display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.bn-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 8px 78px minmax(0, 1fr) 18px 92px 12px; align-items: center; gap: 10px;
  min-height: 38px; padding: 6px 4px 6px 14px; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; color: inherit; cursor: pointer; }
.bn-main:hover { background: var(--mg-card2); }
.bn-main:focus-visible { outline: 2px solid var(--fx-line); outline-offset: -2px; }
.bn.open > .bn-r { background: var(--mg-card2); }
.bn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mg-muted); opacity: .6; }
.bn-dot.bad { background: var(--mg-red); opacity: 1; box-shadow: 0 0 0 3px var(--mg-red-soft); }
.bn-dot.ok { background: var(--mg-green); opacity: 1; }
.bn-code { font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mg-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-who { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.bn-who b { flex: none; max-width: 45%; font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-who span { min-width: 0; color: var(--mg-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-src { color: var(--mg-muted); font-size: 12px; text-align: center; }
.bn-chip { justify-self: end; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--mg-line); color: var(--mg-text2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bn-chip.bad { color: var(--mg-red); background: var(--mg-red-soft); border-color: transparent; }
.bn-chev { color: var(--mg-muted); font-size: 10px; transition: transform .15s ease; }
.bn.open .bn-chev { transform: rotate(180deg); }
.bn-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: none; }
.bn-list.w-unban .bn-acts { min-width: 98px; }
.bn-list.w-prof:not(.w-unban) .bn-acts { min-width: 28px; }
.bn-acts .btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.bn-acts .btn.small.icon { width: 28px; padding: 0; }

.bn-d { display: none; padding: 2px 16px 12px 32px; font-size: 12.5px; background: var(--mg-card2); }
.bn.open > .bn-d { display: block; }
.bn-d .k { display: block; color: var(--mg-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1px; }
.bn-d .v { display: block; color: var(--mg-text); overflow-wrap: anywhere; }
.bn-reason { margin: 4px 0 10px; }
.bn-reason .v { font-size: 13px; line-height: 1.4; }
.bn-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 20px; }
.bn-hint { margin-top: 10px; color: var(--mg-muted); font-size: 12px; }
.bn > .msg { margin: 0 12px 10px; }

@media (max-width: 700px) {
  .bn-top { padding-left: 14px; padding-right: 14px; }
  .bn-col { padding-left: 14px; padding-right: 14px; }
  .bn-main { grid-template-columns: 8px minmax(0, 1fr) auto 12px; gap: 8px; padding-left: 12px; }
  .bn-code, .bn-src { display: none; }
  .bn-who { flex-direction: column; align-items: stretch; gap: 0; }
  .bn-r { flex-wrap: wrap; }
  .bn-acts { display: none; width: 100%; justify-content: flex-start; padding: 0 0 10px 12px; min-width: 0 !important; }
  .bn.open .bn-acts { display: flex; }
  .bn-who b { max-width: 100%; }
  .bn-d { padding-left: 14px; }
}
