/* AACGUARD Server Dashboard - app styles (dark only, like the site). Tokens first, then layout, components, views. */
:root {
  color-scheme: dark;
  --bg: #04070d;
  --surface: #0d1422;            /* chart surface (palette validated against it) */
  --panel: rgba(13, 20, 34, .74);
  --panel-2: rgba(17, 26, 43, .82);
  --line: rgba(148, 163, 184, .11);
  --line-2: rgba(148, 163, 184, .2);
  --text: #e8eef6;
  --text-2: #a8b4c6;
  --muted: #6c7b91;
  --brand: #10b981;
  --brand-rgb: 16 185 129;
  --brand2-rgb: 52 211 153;
  --acc-rgb: 34 211 238;
  --acc2-rgb: 139 92 246;
  --brand-2: #34d399;
  --brand-3: #6ee7b7;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --red: #f87171;
  --sky: #7dd3fc;
  --r: 16px;
  --r-s: 10px;
  --side: 252px;
  --top: 62px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .75);
}
/* ---------- themes (html[data-theme], chosen per person: fx.js, cookie sd_theme) ---------- */
html[data-theme="cyber"] {
  --bg: #07040f; --surface: #110c1f;
  --brand: #a855f7; --brand-2: #c084fc; --brand-3: #e9d5ff; --cyan: #22d3ee; --violet: #f472b6;
  --brand-rgb: 168 85 247; --brand2-rgb: 192 132 252; --acc-rgb: 34 211 238; --acc2-rgb: 244 114 182;
}
html[data-theme="inferno"] {
  --bg: #0a0503; --surface: #1a0f0a;
  --brand: #f97316; --brand-2: #fb923c; --brand-3: #fdba74; --cyan: #f43f5e; --violet: #fbbf24;
  --brand-rgb: 249 115 22; --brand2-rgb: 251 146 60; --acc-rgb: 244 63 94; --acc2-rgb: 251 191 36;
}
html[data-theme="glacier"] {
  --bg: #03070e; --surface: #0b1424;
  --brand: #38bdf8; --brand-2: #7dd3fc; --brand-3: #bae6fd; --cyan: #818cf8; --violet: #c4b5fd;
  --brand-rgb: 56 189 248; --brand2-rgb: 125 211 252; --acc-rgb: 129 140 248; --acc2-rgb: 196 181 253;
}
html[data-theme="sakura"] {
  --bg: #0c0610; --surface: #1a0f1c;
  --brand: #f472b6; --brand-2: #f9a8d4; --brand-3: #fbcfe8; --cyan: #c4b5fd; --violet: #fda4af;
  --brand-rgb: 244 114 182; --brand2-rgb: 249 168 212; --acc-rgb: 196 181 253; --acc2-rgb: 253 164 175;
}
html[data-theme="ocean"] {
  --bg: #02080c; --surface: #0a1820;
  --brand: #14b8a6; --brand-2: #2dd4bf; --brand-3: #99f6e4; --cyan: #60a5fa; --violet: #22d3ee;
  --brand-rgb: 20 184 166; --brand2-rgb: 45 212 191; --acc-rgb: 59 130 246; --acc2-rgb: 6 182 212;
}
html[data-theme="royal"] {
  --bg: #08060f; --surface: #151024;
  --brand: #eab308; --brand-2: #facc15; --brand-3: #fde68a; --cyan: #a78bfa; --violet: #818cf8;
  --brand-rgb: 234 179 8; --brand2-rgb: 250 204 21; --acc-rgb: 167 139 250; --acc2-rgb: 129 140 248;
}
html[data-theme="matrix"] {
  --bg: #010502; --surface: #07120b;
  --brand: #22c55e; --brand-2: #4ade80; --brand-3: #bbf7d0; --cyan: #a3e635; --violet: #86efac;
  --brand-rgb: 34 197 94; --brand2-rgb: 74 222 128; --acc-rgb: 163 230 53; --acc2-rgb: 134 239 172;
}
html[data-theme="sunset"] {
  --bg: #0b0510; --surface: #1a0e1c;
  --brand: #fb7185; --brand-2: #fda4af; --brand-3: #fecdd3; --cyan: #fbbf24; --violet: #c084fc;
  --brand-rgb: 251 113 133; --brand2-rgb: 253 164 175; --acc-rgb: 245 158 11; --acc2-rgb: 192 132 252;
}
html[data-theme="midnight"] {
  --bg: #03040c; --surface: #0b0e1f;
  --brand: #6366f1; --brand-2: #818cf8; --brand-3: #c7d2fe; --cyan: #38bdf8; --violet: #a5b4fc;
  --brand-rgb: 99 102 241; --brand2-rgb: 129 140 248; --acc-rgb: 56 189 248; --acc2-rgb: 165 180 252;
}
/* ---------- light mode (html[data-mode="light"], any of the colour themes; fx.js, cookie sd_mode) ----------
   tokens here; rules with fixed dark colours are turned around by the generated layer at the end (light_gen.py) */
html[data-mode="light"] {
  color-scheme: light;
  --bg: #eef2f7; --surface: #ffffff;
  --panel: rgba(255, 255, 255, .86); --panel-2: rgba(255, 255, 255, .96);
  --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .17);
  --text: #0f172a; --text-2: #334155; --muted: #64748b;
  --brand-2: #059669; --brand-3: #047857; --cyan: #0891b2; --violet: #7c3aed; --amber: #b45309; --red: #dc2626; --sky: #0369a1;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -26px rgba(15, 23, 42, .28);
}
html[data-mode="light"][data-theme="cyber"] { --brand-2: #9333ea; --brand-3: #7e22ce; --cyan: #0891b2; --violet: #db2777; }
html[data-mode="light"][data-theme="inferno"] { --brand-2: #ea580c; --brand-3: #c2410c; --cyan: #e11d48; --violet: #b45309; }
html[data-mode="light"][data-theme="glacier"] { --brand-2: #0284c7; --brand-3: #0369a1; --cyan: #4f46e5; --violet: #7c3aed; }
html[data-mode="light"][data-theme="sakura"] { --brand-2: #db2777; --brand-3: #be185d; --cyan: #7c3aed; --violet: #e11d48; }
html[data-mode="light"][data-theme="ocean"] { --brand-2: #0d9488; --brand-3: #0f766e; --cyan: #2563eb; --violet: #0891b2; }
html[data-mode="light"][data-theme="royal"] { --brand-2: #ca8a04; --brand-3: #a16207; --cyan: #7c3aed; --violet: #4f46e5; }
html[data-mode="light"][data-theme="matrix"] { --brand-2: #16a34a; --brand-3: #15803d; --cyan: #65a30d; --violet: #059669; }
html[data-mode="light"][data-theme="sunset"] { --brand-2: #e11d48; --brand-3: #be123c; --cyan: #d97706; --violet: #9333ea; }
html[data-mode="light"][data-theme="midnight"] { --brand-2: #4f46e5; --brand-3: #4338ca; --cyan: #0284c7; --violet: #6366f1; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {   /* glow + fine grid behind everything */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgb(var(--brand-rgb) / .16), transparent 62%),
    radial-gradient(760px 480px at 92% -12%, rgb(var(--acc-rgb) / .11), transparent 60%),
    radial-gradient(900px 600px at 70% 110%, rgb(var(--acc2-rgb) / .08), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code, .mono, kbd { font-family: var(--mono); }
code { font-size: .92em; color: var(--brand-3); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(15, 23, 42, .8); color: var(--text-2); font-size: 11px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--brand-rgb) / .35); }
* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .25) transparent; }
.ic { flex: none; display: block; }

/* ---------- helpers ---------- */
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 auto; }
.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ta-r { text-align: right; }
.ta-l { text-align: left; }
.block { display: block; }
.small { font-size: 12px; }
.mt-s { margin-top: 8px; }
.mt { margin-top: 14px; }
.pad { padding: 16px 18px; }
.pad-s { padding: 6px 10px; }
.pad-x { padding: 0 18px 12px; }
.muted-p { color: var(--text-2); font-size: 13.5px; }
.muted-s { color: var(--muted); font-size: 12px; }
.warn-t { color: var(--amber); }
.wrap-t { max-width: 18rem; white-space: normal; }
.lnk { color: var(--brand-2); font-weight: 600; font-size: 13px; }
.lnk:hover { color: var(--brand-3); text-decoration: underline; }
.lnk-q { text-align: inherit; }
.lnk-q:hover { color: var(--brand-3); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-l { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row-sb { display: flex; align-items: center; justify-content: space-between; }
.scroll-x { overflow-x: auto; padding-bottom: 2px; }
.sep { color: var(--muted); margin: 0 6px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: var(--side);
  display: flex; flex-direction: column; gap: 6px; padding: 14px 12px;
  background: linear-gradient(180deg, rgba(10, 16, 28, .92), rgba(6, 10, 18, .94));
  border-right: 1px solid var(--line); backdrop-filter: blur(18px);
  transition: width .2s ease, transform .25s ease;
}
.main { margin-left: var(--side); transition: margin-left .2s ease; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.logo img { display: block; border-radius: 10px; filter: drop-shadow(0 0 14px rgb(var(--brand-rgb) / .45)); }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-t b { font-size: 15px; letter-spacing: .06em; background: linear-gradient(90deg, #fff, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-t small { color: var(--muted); font-size: 11.5px; }
.pro-tag { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; color: #1c1300;
  background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 16px rgba(245, 158, 11, .35); }
.side-nav { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.nav-h { display: flex; justify-content: space-between; padding: 6px 10px 4px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-i { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 11px; color: var(--text-2); font-weight: 550; font-size: 13.5px; width: 100%;
  transition: background .15s, color .15s; }
.nav-i:hover { background: rgba(148, 163, 184, .07); color: var(--text); }
.nav-i.on { color: #fff; background: linear-gradient(90deg, rgb(var(--brand-rgb) / .2), rgb(var(--brand-rgb) / .04)); box-shadow: inset 0 0 0 1px rgb(var(--brand2-rgb) / .18); }
.nav-i.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-2); box-shadow: 0 0 12px var(--brand); }
.nav-i.on .ic { color: var(--brand-2); }
.nav-n { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgb(var(--brand-rgb) / .16); color: var(--brand-3); }
.nav-n.red { background: rgba(239, 68, 68, .2); color: #fecaca; }
.side-srv { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; }
.side-s { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; color: var(--text-2); width: 100%; }
.side-s:hover, .side-s.on { background: rgba(148, 163, 184, .07); color: var(--text); }
.side-s small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.side-c { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.side-add { color: var(--brand-2); }
.side-f { border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.app.is-collapsed { --side: 74px; }
.app.is-collapsed .side { padding-left: 10px; padding-right: 10px; }
.app.is-collapsed .brand-t, .app.is-collapsed .pro-tag, .app.is-collapsed .nav-i span, .app.is-collapsed .nav-h, .app.is-collapsed .side-srv, .app.is-collapsed .nav-n { display: none; }
.app.is-collapsed .nav-i { justify-content: center; padding: 10px; }
.app.is-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.is-collapsed .side-nav { margin-bottom: auto; }

.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(4, 7, 13, .72); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.crumbs b { color: var(--text); font-weight: 650; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(420px, 38vw); height: 38px; padding: 0 8px 0 12px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(13, 20, 34, .7); color: var(--muted); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.search span { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search:hover { border-color: rgb(var(--brand2-rgb) / .45); box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / .08); color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--brand-3);
  background: rgb(var(--brand-rgb) / .1); border: 1px solid rgb(var(--brand2-rgb) / .22); }
.live i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgb(var(--brand2-rgb) / .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--brand2-rgb) / .55); } 70% { box-shadow: 0 0 0 8px rgb(var(--brand2-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--brand2-rgb) / 0); } }
.top-b { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--text-2); border: 1px solid transparent; }
.top-b:hover { background: rgba(148, 163, 184, .08); color: var(--text); border-color: var(--line); }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; font: 700 10px/17px var(--font); font-style: normal;
  background: #ef4444; color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.bell-pop { width: min(380px, 92vw); padding: 0; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-pop .acts { padding: 6px 12px 10px; max-height: 60vh; overflow-y: auto; }
.top-user { display: flex; align-items: center; gap: 8px; height: 40px; padding: 4px 8px 4px 4px; border-radius: 12px; max-width: 220px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.top-user:hover { background: rgba(148, 163, 184, .08); }
.top-user img { border-radius: 9px; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.menu-who { padding: 6px 10px 8px; display: flex; flex-direction: column; min-width: 0; }
.menu-who small { color: var(--muted); font-size: 11px; }
.content { padding: 26px 28px 60px; max-width: 1560px; margin: 0 auto; animation: rise .25s ease backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page { display: flex; flex-direction: column; gap: 20px; }
.show-mob, .mob-nav { display: none; }
.side-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; font-weight: 650; font-size: 13.5px;
  white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; user-select: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn-primary { color: #01140d; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, var(--cyan))); box-shadow: 0 8px 22px -10px rgb(var(--brand-rgb) / .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px -8px rgb(var(--brand-rgb) / .95), inset 0 1px 0 rgba(255, 255, 255, .3); filter: brightness(1.06); }
.btn-ghost { color: var(--text); background: rgba(15, 23, 42, .55); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: rgba(148, 163, 184, .38); background: rgba(30, 41, 59, .6); }
.btn-subtle { color: var(--text-2); }
.btn-subtle:hover:not(:disabled) { color: var(--text); background: rgba(148, 163, 184, .09); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 22px -12px rgba(239, 68, 68, .85); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn-danger-ghost { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger-ghost:hover:not(:disabled) { background: rgba(239, 68, 68, .12); color: #fecaca; }
.btn.is-busy { opacity: .75; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--muted); flex: none; }
.x:hover { background: rgba(148, 163, 184, .1); color: var(--text); }

/* ---------- cards ---------- */
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .22), transparent); pointer-events: none; }
.card-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-t { display: flex; align-items: flex-start; gap: 11px; min-width: 0; flex: 1 1 220px; }
.card-t h3 { font-size: 15px; font-weight: 650; }
.card-t p { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.card-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; color: var(--brand-2);
  background: linear-gradient(135deg, rgb(var(--brand-rgb) / .22), rgb(var(--acc-rgb) / .08)); box-shadow: inset 0 0 0 1px rgb(var(--brand2-rgb) / .2); }
.card-a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.card-b { padding: 16px 18px 18px; }
.card-b0 { padding: 12px 0 0; }
.card-b0 > .pager, .card-b0 > .foot-note { padding-left: 18px; padding-right: 18px; }
.card-danger { border-color: rgba(239, 68, 68, .25); }
.card-danger .card-ic { color: #fca5a5; background: rgba(239, 68, 68, .12); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .25); }

/* ---------- badges, dots, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(148, 163, 184, .08); }
.b-brand { color: var(--brand-3); background: rgb(var(--brand-rgb) / .12); border-color: rgb(var(--brand2-rgb) / .3); }
.b-red { color: #fecaca; background: rgba(239, 68, 68, .14); border-color: rgba(248, 113, 113, .35); }
.b-amber { color: #fde68a; background: rgba(245, 158, 11, .12); border-color: rgba(251, 191, 36, .3); }
.b-sky { color: #bae6fd; background: rgba(56, 189, 248, .12); border-color: rgba(125, 211, 252, .3); }
.b-violet { color: #ddd6fe; background: rgb(var(--acc2-rgb) / .14); border-color: rgba(167, 139, 250, .3); }
.b-cyan { color: #a5f3fc; background: rgb(var(--acc-rgb) / .1); border-color: rgb(var(--acc-rgb) / .3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #475569; flex: none; }
.dot.on { background: var(--brand-2); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .18), 0 0 10px rgb(var(--brand2-rgb) / .6); }
.dot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; background: rgba(15, 23, 42, .5); }
button.chip:hover:not(:disabled), .chip.on { border-color: rgb(var(--brand2-rgb) / .5); color: var(--brand-3); background: rgb(var(--brand-rgb) / .08); }
.chip:disabled { opacity: .45; }
.cc { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; border-radius: 4px; font: 700 10px/1 var(--mono); letter-spacing: .04em;
  color: #e2e8f0; background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgb(var(--brand-rgb) / .18)); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .25); }
.cc-none { color: var(--muted); background: rgba(148, 163, 184, .08); }
.ctry { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.gico { display: block; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px rgba(148, 163, 184, .15); }
.srvtag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.srvtag i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.av { display: inline-grid; place-items: center; border-radius: 9px; color: #fff; font-weight: 750; flex: none; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.skel { display: block; border-radius: 9px; background: linear-gradient(90deg, rgba(148, 163, 184, .07), rgba(148, 163, 184, .14), rgba(148, 163, 184, .07)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- segmented control, switch, fields ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(2, 6, 23, .6); border: 1px solid var(--line); flex: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #fff; background: linear-gradient(180deg, rgba(51, 65, 85, .9), rgba(30, 41, 59, .9)); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 10px -4px rgba(0, 0, 0, .6); }
.seg button i { font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: rgba(148, 163, 184, .15); }
.seg button .dot { width: 6px; height: 6px; }
.seg-sm button { height: 26px; padding: 0 9px; font-size: 12px; }
.sw { position: relative; width: 40px; height: 23px; border-radius: 999px; background: rgba(71, 85, 105, .7); flex: none; transition: background .2s; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .2); }
.sw i { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #e2e8f0; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.sw.on { background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 0 14px rgb(var(--brand-rgb) / .35); }
.sw.on i { transform: translateX(17px); background: #fff; }
.tg { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.tg > span { display: flex; flex-direction: column; min-width: 0; }
.tg b { font-size: 13.5px; font-weight: 600; }
.tg small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tg.is-dis { opacity: .5; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field-l em { font-style: normal; font-weight: 500; color: var(--muted); }
.in { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(2, 6, 23, .55); color: var(--text); font: inherit; font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s; }
textarea.in { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.5; }
select.in { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #7c8aa0 50%), linear-gradient(135deg, #7c8aa0 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.in:focus { outline: none; border-color: rgb(var(--brand2-rgb) / .7); box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / .14); }
.in::placeholder { color: #55637a; }
.in:disabled, .in[readonly] { opacity: .6; }
.in-sm { height: 32px; font-size: 12.5px; width: auto; }
select.in-sm { width: 190px; }
.in-sm.in-search { width: 220px; }
.page-a select.in { width: 210px; }
select.in-sm { background-position: calc(100% - 17px) 13px, calc(100% - 12px) 13px; }
.in-search { width: min(240px, 100%); padding-left: 32px; background: rgba(2, 6, 23, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237c8aa0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px 50%; }
.in-num { width: 84px; text-align: center; }
.in-time { width: 120px; }
.in-pre { display: flex; align-items: center; gap: 0; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(2, 6, 23, .55); overflow: hidden; }
.in-pre span { padding: 0 4px 0 12px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.in-pre .in { border: 0; background: transparent; padding-left: 2px; }
.in-pre:focus-within { border-color: rgb(var(--brand2-rgb) / .7); box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / .14); }
.in-like { height: 38px; display: flex; align-items: center; }
.chk { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.chk input, .pick-i input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.foot-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 12px; }
.foot-note code { color: var(--brand-3); }
.card-b0 > .foot-note { padding-bottom: 14px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1360px) { .kpis:not(.kpis-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { --t: var(--brand-2); position: relative; overflow: hidden; padding: 15px 16px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 30, 50, .85), rgba(11, 17, 30, .8)); box-shadow: var(--shadow); min-width: 0; }
.kpi::after { content: ""; position: absolute; width: 140px; height: 140px; right: -60px; top: -70px; border-radius: 50%; background: var(--t); opacity: .1; filter: blur(30px); pointer-events: none; }
.kpi.is-click { cursor: pointer; transition: border-color .15s, transform .15s; }
.kpi.is-click:hover { border-color: color-mix(in srgb, var(--t) 45%, transparent); transform: translateY(-2px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-l { color: var(--text-2); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.kpi-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 28%, transparent); }
.kpi-v { margin-top: 8px; font-size: 28px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-v small { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.kpi-s { margin-top: 5px; color: var(--muted); font-size: 12px; min-height: 18px; }
.kpi-spark { margin: 6px -4px -6px; }
.t-brand { --t: var(--brand-2); } .t-cyan { --t: var(--cyan); } .t-violet { --t: var(--violet); } .t-amber { --t: var(--amber); } .t-red { --t: var(--red); } .t-slate { --t: #94a3b8; }
.kpis.is-loading { opacity: .6; }

/* ---------- overview ---------- */
.hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgb(var(--brand2-rgb) / .18); box-shadow: var(--shadow);
  background: radial-gradient(600px 220px at 0% 0%, rgb(var(--brand-rgb) / .22), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgb(var(--acc-rgb) / .14), transparent 70%), linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(8, 13, 24, .9)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgb(var(--brand2-rgb) / .05) 22px 23px); mask-image: linear-gradient(90deg, transparent, #000 55%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-3); }
.hero h1 { margin-top: 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 760; }
.grad { background: linear-gradient(90deg, var(--brand-3), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.hero p b { color: var(--text); }
.hero-a { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.sec-h h2 { font-size: 17px; font-weight: 700; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 16px; }
.srv-card { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 30, 50, .9), rgba(9, 14, 25, .88)); box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; overflow: hidden; }
.srv-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .8; }
.srv-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: var(--shadow), 0 18px 40px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.srv-card.is-off { opacity: .82; }
.srv-card header { display: flex; align-items: center; gap: 11px; }
.srv-name { display: block; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-name:hover { color: var(--brand-3); }
.srv-sub { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; min-width: 0; font-family: var(--mono); }
.srv-mid { display: flex; align-items: center; gap: 14px; }
.srv-ring { position: relative; width: 58px; height: 58px; flex: none; }
.srv-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.srv-ring b { font-size: 16px; font-weight: 760; font-variant-numeric: tabular-nums; }
.srv-ring small { font-size: 10px; color: var(--muted); }
.srv-stats { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.srv-stats div { padding: 6px 8px; border-radius: 10px; background: rgba(2, 6, 23, .45); border: 1px solid var(--line); min-width: 0; }
.srv-stats dt { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.srv-stats dd { margin: 1px 0 0; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv-spark { position: relative; margin: 0 -2px; }
.srv-spark span { position: absolute; top: 0; right: 2px; font-size: 10px; color: var(--muted); }
.srv-card footer { display: flex; gap: 4px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: -2px; }
.srv-card footer .muted-s { margin-left: auto; padding-right: 6px; }
.srv-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px; border-radius: 18px; border: 1.5px dashed rgba(148, 163, 184, .25);
  color: var(--text-2); transition: border-color .15s, background .15s, color .15s; }
.srv-add span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgb(var(--brand-rgb) / .12); color: var(--brand-2); }
.srv-add small { color: var(--muted); }
.srv-add:hover { border-color: rgb(var(--brand2-rgb) / .55); background: rgb(var(--brand-rgb) / .05); color: var(--text); }

.health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.health li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: rgba(2, 6, 23, .4); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.health li p { flex: 1; min-width: 0; }
.health b { color: var(--text); }
.allgood { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(90deg, rgb(var(--brand-rgb) / .12), transparent); border: 1px solid rgb(var(--brand2-rgb) / .2); }
.allgood p { color: var(--muted); font-size: 12.5px; }
.allgood-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--brand-2); background: rgb(var(--brand-rgb) / .15); box-shadow: 0 0 20px rgb(var(--brand-rgb) / .25); }
.act-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; color: var(--t); background: color-mix(in srgb, var(--t) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 26%, transparent); }
.acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid rgba(148, 163, 184, .07); }
.act:last-child { border-bottom: 0; }
.act p { font-size: 13px; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.act small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.acts-full .act { padding: 11px 0; }
.day-g + .day-g { margin-top: 16px; }
.h4 { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.h4 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }

/* ---------- page headers, tabs, notes ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 760; }
.page-h p { margin-top: 4px; color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.page-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.srv-head { --c: var(--brand); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), linear-gradient(135deg, rgba(17, 26, 43, .92), rgba(8, 13, 24, .9)); box-shadow: var(--shadow); }
.srv-head h1 { font-size: 22px; font-weight: 760; }
.srv-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 3px; color: var(--text-2); font-size: 13px; }
.srv-head .badge { margin-left: 8px; }
.back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--text-2); border: 1px solid var(--line); flex: none; }
.back:hover { color: var(--text); border-color: var(--line-2); }
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { position: relative; padding: 10px 14px; font-weight: 650; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); }
.tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-2), var(--cyan)); box-shadow: 0 0 12px var(--brand); }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.note .ic { margin-top: 2px; }
.note p + p { margin-top: 4px; }
.note > div, .note > p { flex: 1; min-width: 0; }
.n-sky { color: #cfeafe; background: rgba(56, 189, 248, .08); border-color: rgba(125, 211, 252, .22); }
.n-amber { color: #fde9b0; background: rgba(245, 158, 11, .08); border-color: rgba(251, 191, 36, .25); }
.n-red { color: #fecaca; background: rgba(239, 68, 68, .09); border-color: rgba(248, 113, 113, .28); }
.n-brand { color: #c9f7e4; background: rgb(var(--brand-rgb) / .09); border-color: rgb(var(--brand2-rgb) / .25); align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 34, .7); min-width: 0; }
.tile span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tile b { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile b small { color: var(--muted); font-weight: 500; font-size: 12px; }
.qa { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(148, 163, 184, .07); font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv-keys dt { white-space: nowrap; }
.kv-keys dd { color: var(--text-2); font-weight: 500; }
.bullets { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; }
.bullets b { color: var(--text); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 16px; color: var(--text-2); }
.empty b { color: var(--text); font-size: 14.5px; }
.empty p { max-width: 48ch; color: var(--muted); font-size: 13px; }
.empty .row, .empty > .btn { margin-top: 6px; }
.empty-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--brand-2); background: rgb(var(--brand-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--brand2-rgb) / .2), 0 0 26px rgb(var(--brand-rgb) / .15); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl-max { max-height: 46vh; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 9px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: rgba(10, 16, 28, .96); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(148, 163, 184, .07); vertical-align: middle; color: var(--text-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(148, 163, 184, .045); }
.tbl tr.is-click { cursor: pointer; }
.tbl-chart { max-height: 300px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); }
.cell-srv, .cell-p { display: flex; align-items: center; gap: 11px; min-width: 0; max-width: 22rem; }
.cell-srv b, .cell-p b { color: var(--text); font-weight: 650; }
.cell-srv small { display: block; color: var(--muted); font-size: 11.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pbar { min-width: 120px; }
.pbar span { font-size: 12.5px; }
.pbar b { color: var(--text); }
.pbar small { color: var(--muted); }
.pbar i { display: block; height: 5px; margin-top: 5px; border-radius: 4px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.pbar u { display: block; height: 100%; border-radius: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0; color: var(--muted); font-size: 13px; }

/* ---------- menus, overlays ---------- */
.menu { position: relative; display: inline-block; vertical-align: middle; }
.menu-pop { position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; border-radius: 13px; border: 1px solid var(--line-2);
  background: rgba(10, 15, 27, .98); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8); animation: pop .14s ease both; }
.menu-pop.right { right: 0; }
.menu-pop.left { left: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: rgba(148, 163, 184, .09); color: var(--text); }
.menu-pop .is-danger { color: #fca5a5; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.lang-b { width: auto; padding: 0 9px; gap: 6px; display: flex; align-items: center; }
.lang-b .lang-code { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.lang-pop { min-width: 190px; }
.lang-pop .lang-code { flex: none; width: 26px; font-size: 11px; font-weight: 800; color: var(--muted); }
.lang-pop button.on { color: var(--brand-2); }
.lang-pop button svg { margin-left: auto; }
.ov { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(1, 3, 8, .66); backdrop-filter: blur(6px); animation: fade .15s ease both; }
.ov-side { justify-content: flex-end; padding: 0; }
.ov-top { align-items: flex-start; padding-top: 11vh; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(17, 25, 41, .99), rgba(8, 12, 22, .99)); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgb(var(--brand2-rgb) / .06); animation: pop .18s ease both; }
.modal-w { width: min(760px, 100%); }
.modal-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 6px; }
.modal-h h3 { font-size: 17px; font-weight: 720; }
.modal-h p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.modal-b { padding: 12px 20px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.drawer { width: min(540px, 100%); height: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(14, 21, 36, .99), rgba(6, 10, 19, .99)); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .9); animation: slide .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-h > :first-child { flex: 1; min-width: 0; }
.drawer-h h3 { font-size: 17px; font-weight: 720; }
.drawer-h p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(4, 7, 13, .5); }
.ph { display: flex; align-items: center; gap: 14px; }
.ph p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; border: 1px solid; background: rgba(8, 13, 24, .97); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9);
  animation: slide .2s ease both; font-size: 13px; }
.toast b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.toast small { display: block; font-size: 11.5px; margin-top: 3px; overflow-wrap: anywhere; }
.toast small.ok { color: #86efac; }
.toast small.no { color: #fca5a5; }
.toast-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.toast.t-ok { border-color: rgb(var(--brand2-rgb) / .35); } .toast.t-ok .toast-ic { color: var(--brand-2); background: rgb(var(--brand-rgb) / .15); }
.toast.t-bad { border-color: rgba(248, 113, 113, .4); } .toast.t-bad .toast-ic { color: #fca5a5; background: rgba(239, 68, 68, .15); }
.toast.t-warn { border-color: rgba(251, 191, 36, .35); } .toast.t-warn .toast-ic { color: #fcd34d; background: rgba(245, 158, 11, .14); }
.toast > .min-w-0 { flex: 1; }
.secret { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }

/* ---------- palette ---------- */
.pal { width: min(660px, 100%); border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; background: rgba(9, 14, 25, .98);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgb(var(--brand2-rgb) / .08), 0 0 60px -20px rgb(var(--brand-rgb) / .35); animation: pop .16s ease both; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15.5px; }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 54vh; overflow-y: auto; }
.pal-g { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.pal-i { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); cursor: pointer; font-size: 13.5px; }
.pal-i small { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pal-i.on { background: linear-gradient(90deg, rgb(var(--brand-rgb) / .16), rgb(var(--brand-rgb) / .04)); color: #fff; box-shadow: inset 0 0 0 1px rgb(var(--brand2-rgb) / .18); }
.pal-i.on .ic { color: var(--brand-2); }
.pal-i kbd { margin-left: 8px; }
.pal-empty { padding: 26px; text-align: center; color: var(--muted); }
.pal-f { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.pal-f span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart-svg { display: block; overflow: visible; }
.chart-svg:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 4px; }
.chart .grid { stroke: rgba(148, 163, 184, .1); stroke-width: 1; }
.chart .ax { fill: #74839a; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .cross { stroke: rgba(226, 232, 240, .35); stroke-width: 1; }
.chart .end-l { fill: var(--text); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.chart .col.is-hi path, .chart .col.is-hi rect:not(.hit) { filter: brightness(1.25); }
.tip { position: absolute; z-index: 5; min-width: 170px; max-width: 240px; padding: 9px 11px; border-radius: 11px; pointer-events: none; border: 1px solid var(--line-2);
  background: rgba(7, 11, 20, .96); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .85); font-size: 12px; }
.tip-h { color: var(--muted); font-size: 11px; margin-bottom: 4px; white-space: nowrap; }
.tip-r { display: flex; align-items: center; gap: 7px; padding: 1px 0; white-space: nowrap; }
.tip-r i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.tip-r b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.tip-r span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.tip-total { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.spark { display: block; width: 100%; }
.ring-bg { stroke: rgba(148, 163, 184, .12); }
.ring circle:last-child { filter: drop-shadow(0 0 4px currentColor); transition: stroke-dashoffset .6s ease; }
.bl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bl li.is-click { cursor: pointer; }
.bl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.bl-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); display: flex; align-items: center; gap: 8px; }
.bl-v { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-v small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 11.5px; }
.bl-track { height: 6px; margin-top: 5px; border-radius: 4px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.bl-track i { display: block; height: 100%; border-radius: 4px; }
.heat { position: relative; }
.heat-grid { display: grid; gap: 3px; }
.heat-x { font-size: 10px; color: var(--muted); text-align: center; }
.heat-y { font-size: 11px; color: var(--muted); display: flex; align-items: center; }
.heat-c { aspect-ratio: 1 / 1; border-radius: 4px; min-height: 10px; transition: transform .1s; outline: none; }
.heat-c:hover, .heat-c:focus-visible { transform: scale(1.2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px rgba(226, 232, 240, .6); }
.heat-c.is-empty { background: rgba(148, 163, 184, .05); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .06); }
.heat-scale { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heat-scale i { width: 16px; height: 9px; border-radius: 3px; }
.heat-scale span { margin: 0 5px; }
.mini-cols { display: flex; align-items: flex-end; gap: 3px; height: 70px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 23, .4); }
.mini-cols span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mini-cols i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--brand-2); }
.sess { list-style: none; margin: 0; padding: 0; }
.sess li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(148, 163, 184, .07); font-size: 12.5px; color: var(--text-2); }
.sess li b { color: var(--text); font-variant-numeric: tabular-nums; }
.toplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 11px; }
.toplist li:hover { background: rgba(148, 163, 184, .06); }
.rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.toplist li:nth-child(1) .rank { color: #fcd34d; } .toplist li:nth-child(2) .rank { color: #cbd5e1; } .toplist li:nth-child(3) .rank { color: #fdba74; }
.top-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-v small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* ---------- server: game settings, maps, add ---------- */
.cv-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.cv-group h4 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.cv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; }
.cv.is-changed { background: rgb(var(--brand-rgb) / .07); box-shadow: inset 2px 0 0 var(--brand-2); }
.cv-l { min-width: 0; }
.cv-l b { display: block; font-size: 13px; font-weight: 600; }
.cv-l code { font-size: 11px; color: var(--muted); }
.cv .in { max-width: 220px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.map { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); text-align: left; overflow: hidden;
  background: linear-gradient(150deg, rgba(20, 30, 50, .9), rgba(9, 14, 25, .9)); transition: border-color .15s, transform .15s; }
.map:hover { border-color: rgb(var(--brand2-rgb) / .45); transform: translateY(-2px); }
.map b { font-size: 14px; font-weight: 700; text-transform: capitalize; }
.map small { color: var(--muted); font-size: 11.5px; }
.map.is-cur { border-color: rgb(var(--brand2-rgb) / .6); background: linear-gradient(150deg, rgb(var(--brand-rgb) / .2), rgba(9, 14, 25, .9)); cursor: default; }
.map.is-cur small { color: var(--brand-3); }
.map-p { font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 3px 6px; border-radius: 6px; color: #cbd5e1; background: rgba(148, 163, 184, .14); margin-bottom: 4px; }
.p-de { color: #fde68a; background: rgba(245, 158, 11, .16); } .p-cs { color: #bae6fd; background: rgba(56, 189, 248, .16); } .p-aim, .p-awp { color: #fecaca; background: rgba(239, 68, 68, .16); }
.p-ar, .p-gg { color: #ddd6fe; background: rgb(var(--acc2-rgb) / .18); } .p-surf, .p-bhop, .p-kz { color: #a5f3fc; background: rgb(var(--acc-rgb) / .14); }
.found { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgb(var(--brand2-rgb) / .3); background: linear-gradient(90deg, rgb(var(--brand-rgb) / .12), transparent); }
.found small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.found-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--brand-2); background: rgb(var(--brand-rgb) / .16); flex: none; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 6px; }
.pick-i { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; min-width: 0; }
.pick-i:hover { border-color: var(--line-2); }
.pick-i small { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.pick-i.is-dis { opacity: .5; cursor: not-allowed; }
.tbl-chip { display: inline-block; margin: 4px 6px 0 0; padding: 2px 8px; border-radius: 6px; font: 12px var(--mono); }
.tbl-chip.ok { color: #a7f3d0; background: rgb(var(--brand-rgb) / .12); }
.tbl-chip.no { color: #fecaca; background: rgba(239, 68, 68, .14); }

/* ---------- console ---------- */
.console-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.con-side { padding: 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 40px); overflow-y: auto; }
.con-side-h { padding: 8px 8px 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.con-list { display: flex; flex-direction: column; gap: 2px; }
.con-srv { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; text-align: left; border: 1px solid transparent; width: 100%; }
.con-srv:hover { background: rgba(148, 163, 184, .06); }
.con-srv.on { background: linear-gradient(90deg, rgb(var(--brand-rgb) / .16), rgb(var(--brand-rgb) / .03)); border-color: rgb(var(--brand2-rgb) / .22); }
.con-srv.is-dis { opacity: .5; }
.con-srv b { font-size: 13px; font-weight: 650; }
.con-srv small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; font-family: var(--mono); white-space: nowrap; overflow: hidden; }
.cb { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(148, 163, 184, .4); flex: none; }
.cb.on { background: var(--brand); border-color: var(--brand); color: #01140d; }
.snips { display: flex; flex-direction: column; gap: 4px; }
.snip { display: flex; align-items: center; gap: 2px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 6, 23, .4); }
.snip-run { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 8px; text-align: left; color: var(--brand-2); }
.snip-run span { display: flex; flex-direction: column; min-width: 0; }
.snip-run b { color: var(--text); font-size: 12.5px; font-weight: 600; }
.snip-run code { font-size: 11px; color: var(--muted); }
.snip-run:hover b { color: var(--brand-3); }
.term-card { overflow: hidden; display: flex; flex-direction: column; }
.term-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: rgba(2, 6, 23, .4); }
.term-h b { font-weight: 650; }
.term { flex: none; height: clamp(320px, calc(100vh - 340px), 700px); overflow-y: auto; padding: 14px 16px; font: 12.5px/1.6 var(--mono); color: #cbd5e1;
  background: radial-gradient(600px 300px at 100% 0%, rgb(var(--brand-rgb) / .05), transparent 60%), #03060b; }
.term pre { margin: 2px 0 0; font: inherit; white-space: pre-wrap; word-break: break-word; color: #cbd5e1; }
.t-info { color: #64748b; padding: 2px 0 8px; }
.t-err, .term pre.t-err { color: #fca5a5; }
.t-blk { position: relative; padding: 8px 0 10px; border-bottom: 1px dashed rgba(148, 163, 184, .08); }
.t-cmd { display: flex; align-items: center; gap: 8px; color: #67e8f9; font-weight: 600; }
.t-srv { padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #a7f3d0; background: rgb(var(--brand-rgb) / .12); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-pr { color: var(--brand-2); font-weight: 800; }
.t-copy { margin-left: auto; opacity: 0; color: var(--muted); padding: 3px; border-radius: 6px; transition: opacity .15s; }
.t-blk:hover .t-copy { opacity: 1; }
.t-copy:hover { color: var(--text); background: rgba(148, 163, 184, .1); }
.t-run { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 4px 0; }
.t-meta { color: #475569; font-size: 11px; margin-top: 3px; }
.t-multi { margin-top: 6px; padding-left: 10px; border-left: 2px solid rgba(148, 163, 184, .15); }
.t-mh { font-size: 12px; font-weight: 700; }
.t-mh.ok { color: #86efac; } .t-mh.no { color: #fca5a5; }
.t-mh small { color: var(--muted); font-weight: 500; }
.term-in { position: relative; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: rgba(2, 6, 23, .5); }
.term-form { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #03060b; }
.term-form:focus-within { border-color: rgb(var(--brand2-rgb) / .6); box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / .12); }
.term-input { flex: 1; min-width: 0; height: 34px; background: none; border: 0; outline: none; color: #e2e8f0; font: 13px var(--mono); }
.term-input::placeholder { color: #475569; }
.term-in .chips { margin-top: 10px; }
.sugg { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); z-index: 10; list-style: none; margin: 0; padding: 5px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(8, 12, 22, .98); box-shadow: 0 -20px 40px -16px rgba(0, 0, 0, .8); }
.sugg li { display: flex; align-items: center; gap: 12px; padding: 6px 9px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.sugg li code { color: #67e8f9; }
.sugg li span { color: var(--muted); margin-left: auto; font-size: 11.5px; }
.sugg li.on, .sugg li:hover { background: rgb(var(--brand-rgb) / .12); }

/* ---------- automation ---------- */
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 30, 50, .85), rgba(10, 15, 27, .8)); box-shadow: var(--shadow); }
.task.is-off { opacity: .62; }
.task-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--brand-2); background: linear-gradient(135deg, rgb(var(--brand-rgb) / .2), rgb(var(--acc-rgb) / .08)); flex: none; }
.task-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.task-t b { font-size: 14.5px; }
.task-w { display: block; margin-top: 2px; color: var(--text-2); font-size: 12px; }
.task-m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.task-m span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-a { display: flex; align-items: center; gap: 6px; flex: none; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 6px; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); text-align: left; color: var(--text-2); }
.kind b { color: var(--text); font-size: 13px; }
.kind small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.kind:hover { border-color: var(--line-2); }
.kind.on { border-color: rgb(var(--brand2-rgb) / .55); background: linear-gradient(150deg, rgb(var(--brand-rgb) / .15), transparent); color: var(--brand-2); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .08); }
.days { display: inline-flex; gap: 4px; }
.day { width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.day.on { color: #01140d; background: var(--brand-2); border-color: var(--brand-2); }

/* ---------- team ---------- */
.side-team { display: flex; align-items: center; gap: 8px; margin: 0 4px 4px; padding: 8px 10px; border-radius: 11px; font-size: 12px; color: var(--text-2);
  background: rgba(245, 158, 11, .06); border: 1px solid rgba(251, 191, 36, .18); min-width: 0; }
.app.is-collapsed .side-team { display: none; }
.menu-who .badge { align-self: flex-start; }
.quota { min-width: 110px; }
.quota-v { font-size: 12.5px; white-space: nowrap; }
.quota-v b { color: var(--text); font-variant-numeric: tabular-nums; }
.quota-v small { color: var(--muted); }
.quota i { display: block; height: 5px; margin-top: 5px; border-radius: 4px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.quota u { display: block; height: 100%; border-radius: 4px; }
.srv-list { display: flex; flex-direction: column; gap: 2px; }
.tbl tr.is-off td { opacity: .55; }
.roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.roles li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); }
.roles li .badge { flex: none; min-width: 92px; justify-content: center; }
.am-values { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- boot screen ---------- */
#sdBootLoader { position: fixed; inset: 0; display: grid; place-items: center; z-index: 200; background: var(--bg); color: var(--muted); font-size: 13px; }
#sdBootLoader div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#sdBootLoader img { filter: drop-shadow(0 0 22px rgb(var(--brand-rgb) / .55)); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }

/* ---------- responsive ---------- */
/* ---------- roles and moderation ---------- */
.rbadge { --rc: #94a3b8; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  white-space: nowrap; color: color-mix(in srgb, var(--rc) 55%, #fff); background: color-mix(in srgb, var(--rc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.role-list li:last-child { border-bottom: 0; }
.role-move { display: flex; flex-direction: column; gap: 2px; flex: none; }
.role-move .x { width: 26px; height: 22px; border-radius: 7px; }
.role-move .x:disabled { opacity: .3; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; }
.sw-c { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .12s; }
.sw-c:hover { transform: scale(1.1); }
.sw-c.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.role-prev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 6px; }
.role-pick .kind { gap: 6px; }
.chip-s { height: 22px; padding: 0 8px; font-size: 11px; }
.chip small { margin-left: 5px; color: var(--muted); font-size: 10.5px; }
.av-img { object-fit: cover; background: var(--surface); }
.steam-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.steam-box > div { padding: 10px 12px; background: rgba(13, 20, 34, .92); min-width: 0; }
.steam-box span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.steam-box b { display: block; margin-top: 2px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bad-t { color: var(--red); }
@media (max-width: 640px) {
  .steam-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-list li { padding: 12px 14px; flex-wrap: wrap; }
}

@media (max-width: 1280px) {
  .grid-main { grid-template-columns: minmax(0, 1fr) 330px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid-main, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .con-side { position: static; max-height: none; }
  .con-list { flex-direction: row; overflow-x: auto; }
  .con-srv { min-width: 210px; }
  .cv-groups { grid-template-columns: minmax(0, 1fr); }
  .hide-md { display: none !important; }
}
@media (max-width: 1024px) {
  .side { transform: translateX(-105%); width: 280px; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .side.is-open { transform: none; }
  .app.is-collapsed { --side: 252px; }
  .app.is-collapsed .side .brand-t, .app.is-collapsed .side .nav-i span, .app.is-collapsed .side .nav-h, .app.is-collapsed .side .side-srv { display: flex; }
  .main { margin-left: 0; }
  .collapse-b { display: none; }
  .show-mob { display: grid; }
  .mob-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(5, 9, 16, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .mob-nav a, .mob-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
  .mob-nav .on { color: var(--brand-3); background: rgb(var(--brand-rgb) / .1); }
  .content { padding: 18px 16px 96px; }
  .toasts { bottom: 84px; }
  .top { padding: 0 12px; gap: 8px; }
  .search { width: auto; flex: 1; margin-left: 4px; }
  .search kbd { display: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .search { min-width: 0; }
  .lang-b { padding: 0; width: 38px; justify-content: center; }
  .lang-b .lang-code { display: none; }
  .top-user { padding-right: 4px; }
  .crumbs { display: none; }
  .search span { font-size: 12.5px; }
  .live { display: none; }
  .hero { padding: 20px 18px; }
  .hero-a, .hero-a .btn { width: 100%; }
  .kpis, .kpis:not(.kpis-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 22px; }
  .kpi::after { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .tiles, .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-h h1 { font-size: 22px; }
  .page-a { width: 100%; }
  .page-a .in-search { flex: 1; width: auto; }
  .page-a select.in, select.in-sm, .in-sm.in-search { width: auto; flex: 1 1 150px; }
  .card-h { padding: 14px 14px 0; }
  .card-b { padding: 14px; }
  .card-a { margin-left: 0; width: 100%; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  .task { flex-wrap: wrap; }
  .task-a { width: 100%; justify-content: flex-end; }
  .srv-head { padding: 14px; }
  .srv-head .page-a .btn { flex: 1; }
  .term { height: 420px; }
  .term-card { min-height: 0; }
  .modal-b, .modal-h { padding-left: 16px; padding-right: 16px; }
  .days { flex-wrap: wrap; }
  .srv-grid { grid-template-columns: minmax(0, 1fr); }
  .pal-f { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- demos (views-demos.js) ---------- */
.sess li.is-click { cursor: pointer; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.sess li.is-click:hover { background: rgba(148, 163, 184, .06); }
.cell-p .map-p { margin-bottom: 0; flex-shrink: 0; min-width: 38px; text-align: center; }
.ph > .map-p { margin-bottom: 0; flex-shrink: 0; font-size: 12px; padding: 12px 10px; }
.note code { padding: 3px 8px; border-radius: 6px; background: rgba(2, 6, 23, .55); color: var(--text); overflow-wrap: anywhere; }
.kpi .quota { margin-top: 2px; }

/* ---------- demo replay (views-replay.js) ---------- */
.rp-load { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--muted); }
.rp { display: flex; flex-direction: column; gap: 12px; }
.rp:fullscreen { background: var(--bg, #070b14); padding: 14px; overflow: auto; }
.rp-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rp-title b { font-size: 18px; font-weight: 750; text-transform: capitalize; }
.rp-title small { color: var(--muted); font-size: 12px; }
.rp-score { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 20, 34, .8); }
.rp-score span { font: 800 22px/1 var(--mono); min-width: 28px; text-align: center; }
.rp-score .t { color: #e8a33d; } .rp-score .ct { color: #5aa2e6; }
.rp-score small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.rp-clock { min-width: 92px; text-align: center; font: 700 16px/1 var(--mono); color: var(--text); }
.rp-clock span { font: 600 12px/1.2 inherit; color: var(--muted); font-family: inherit; }
.rp-clock .bomb { color: #f87171; }
.rp-main { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) minmax(180px, 230px); gap: 12px; align-items: start; }
.rp-map { position: relative; width: 100%; max-width: min(100%, calc(100vh - 250px)); margin: 0 auto; }
.rp:fullscreen .rp-map { max-width: min(100%, calc(100vh - 190px)); }
.rp-canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); cursor: crosshair; background: #0b1220; }
.rp-feed { position: absolute; top: 10px; right: 10px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; max-width: 70%; }
.rp-feed li { display: flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 6px; background: rgba(2, 6, 23, .78); font-size: 12px; white-space: nowrap; }
.rp-feed .w { color: var(--muted); font-size: 11px; }
.rp-layer { position: absolute; left: 10px; top: 10px; display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.rp-layer button { padding: 4px 10px; font-size: 12px; background: rgba(2, 6, 23, .75); color: var(--muted); }
.rp-layer button.on { color: var(--text); background: rgba(56, 189, 248, .2); }
.rp-noradar { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; color: var(--muted); background: rgba(2, 6, 23, .75); padding: 3px 8px; border-radius: 6px; }
.rp-team { display: flex; flex-direction: column; gap: 4px; }
.rp-team-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; }
.rp-team.t .rp-team-h { background: rgba(232, 163, 61, .14); color: #f5c77e; }
.rp-team.ct .rp-team-h { background: rgba(90, 162, 230, .14); color: #a9cff5; }
.rp-team-h span { font: 800 16px/1 var(--mono); }
.rp-pl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 9px 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(13, 20, 34, .7); text-align: left; overflow: hidden; }
.rp-pl:hover { border-color: var(--line-2); }
.rp-pl.on { border-color: #f8fafc; }
.rp-pl.dead { opacity: .45; }
.rp-hp { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(148, 163, 184, .12); }
.rp-hp i { display: block; height: 100%; background: #22c55e; }
.rp-n { display: flex; flex-direction: column; min-width: 0; }
.rp-n b { font-size: 12.5px; }
.rp-n small, .rp-s small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-s { display: flex; flex-direction: column; align-items: flex-end; }
.rp-s b { font: 700 13px/1.1 var(--mono); }
.rp-kd { font: 600 11.5px/1 var(--mono); color: var(--text-2); min-width: 34px; text-align: right; }
.rp-ctrl { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 34, .7); }
.rp-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.rp-tl { position: relative; height: 26px; border-radius: 6px; background: rgba(148, 163, 184, .08); cursor: pointer; touch-action: none; overflow: hidden; }
.rp-rd { position: absolute; top: 0; bottom: 0; border-right: 1px solid rgba(2, 6, 23, .9); }
.rp-rd.t { background: rgba(232, 163, 61, .22); } .rp-rd.ct { background: rgba(90, 162, 230, .22); }
.rp-k, .rp-b, .rp-e { position: absolute; width: 2px; pointer-events: auto; }
.rp-k { top: 4px; height: 8px; background: rgba(248, 250, 252, .55); }
.rp-b { bottom: 3px; height: 9px; background: #ef4444; }
.rp-e { top: 0; bottom: 0; width: 3px; background: #a78bfa; box-shadow: 0 0 6px #a78bfa; }
.rp-head { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
.rp-rounds { display: flex; gap: 3px; flex-wrap: wrap; }
.rp-rounds button { min-width: 26px; height: 22px; border-radius: 5px; font: 600 11px/1 var(--mono); color: var(--muted); background: rgba(148, 163, 184, .08); }
.rp-rounds button.t { color: #f5c77e; background: rgba(232, 163, 61, .14); } .rp-rounds button.ct { color: #a9cff5; background: rgba(90, 162, 230, .14); }
.rp-rounds button.on { outline: 2px solid #fff; }
.rp-keys { font-size: 12px; text-align: center; }
@media (max-width: 1100px) {
  .rp-main { grid-template-columns: 1fr 1fr; }
  .rp-map { grid-column: 1 / -1; order: -1; max-width: 100%; }
}
@media (max-width: 560px) { .rp-main { grid-template-columns: 1fr; } .rp-feed li { font-size: 11px; } }

/* ---------- motion, 3D and the globe (fx.js) ---------- */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .4s, border-color .4s, color .4s, fill .4s, stroke .4s !important; }
.ambient { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: .9; }
html:not([data-fx="full"]) .ambient { display: none; }

/* pages come in, their blocks rise one after another */
.content > .page { animation: pageIn .42s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
.content > .page > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.content > .page > *:nth-child(2) { animation-delay: .05s; } .content > .page > *:nth-child(3) { animation-delay: .1s; }
.content > .page > *:nth-child(4) { animation-delay: .15s; } .content > .page > *:nth-child(5) { animation-delay: .2s; }
.content > .page > *:nth-child(n+6) { animation-delay: .25s; }
.kpis > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.kpis > *:nth-child(2) { animation-delay: .06s; } .kpis > *:nth-child(3) { animation-delay: .12s; } .kpis > *:nth-child(4) { animation-delay: .18s; }
.kpis > *:nth-child(5) { animation-delay: .24s; } .kpis > *:nth-child(6) { animation-delay: .3s; }
.srv-grid > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.srv-grid > *:nth-child(2) { animation-delay: .07s; } .srv-grid > *:nth-child(3) { animation-delay: .14s; } .srv-grid > *:nth-child(n+4) { animation-delay: .2s; }
/* new activity slides in (old rows keep their place: Preact keys) */
.acts > li { animation: slideIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* numbers that changed flash in the theme colour */
.anum { display: inline-block; font-variant-numeric: tabular-nums; }
.anum.num-pop { animation: numPop .7s ease-out; }
@keyframes numPop { 0% { color: var(--brand-3); text-shadow: 0 0 18px rgb(var(--brand-rgb) / .8); transform: scale(1.08); } 100% { color: inherit; text-shadow: none; transform: none; } }

/* 3D tilt: the card follows the pointer, its light spot too */
.kpi, .srv-card, .tile, .srv-add { transform-style: preserve-3d; will-change: transform; }
.kpi.is-tilt, .srv-card.is-tilt, .tile.is-tilt, .srv-add.is-tilt { transition: transform .08s linear, border-color .2s, box-shadow .2s; }
.kpi:not(.is-tilt), .srv-card:not(.is-tilt), .tile:not(.is-tilt) { transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s; }
.kpi.is-tilt::after { right: auto; left: calc(var(--gx, 50%) - 70px); top: calc(var(--gy, 50%) - 70px); opacity: .26; transition: opacity .2s; }
.srv-card::after, .tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .07), transparent 60%); }
.tile { position: relative; }
.srv-card.is-tilt::after, .tile.is-tilt::after { opacity: 1; }
.kpi.is-tilt, .srv-card.is-tilt { box-shadow: var(--shadow), 0 22px 44px -26px rgb(var(--brand-rgb) / .55); }
.kpi-ic, .srv-card header { transform: translateZ(18px); }

/* hero: a slow light sweep */
.hero::before { content: ""; position: absolute; inset: -40% -20%; pointer-events: none; opacity: .5;
  background: conic-gradient(from 0deg at 70% 50%, transparent 0 70%, rgb(var(--brand-rgb) / .14) 80%, transparent 90%); animation: sweep 14s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.hero .grad { background-size: 200% auto; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% center; } }

/* the globe */
.globe-card { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 10px 26px; align-items: center; padding: 18px 22px; overflow: hidden; }
.globe-wrap { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.globe { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; }
.globe:active { cursor: grabbing; }
.globe-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(2, 6, 23, .9); border: 1px solid var(--line-2); pointer-events: none; opacity: 0; transition: opacity .15s; }
.globe-tip.on { opacity: 1; }
.globe-side h3 { margin-top: 8px; font-size: 20px; font-weight: 700; }
.globe-side h3 b { color: var(--brand-2); }
.globe-side > p { margin-top: 4px; }
.globe-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.globe-list li { display: grid; grid-template-columns: 30px minmax(0, 140px) 1fr 34px; gap: 10px; align-items: center; font-size: 13px; animation: slideIn .5s both; animation-delay: calc(var(--i) * 60ms); }
.globe-list .cc { font: 700 11px/1 var(--mono); color: var(--cyan); text-align: center; padding: 4px 0; border-radius: 6px; background: rgb(var(--acc-rgb) / .12); }
.globe-list i { display: block; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.globe-list u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--cyan)); animation: growX .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } to { transform: none; } }
.globe-list b { text-align: right; font-variant-numeric: tabular-nums; }
.globe-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.globe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.globe-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.lg-pl { background: var(--cyan); }
.lg-srv { background: var(--brand); border-radius: 2px !important; transform: rotate(45deg); }
.lg-arc { height: 2px !important; width: 16px !important; border-radius: 2px !important; background: var(--cyan); opacity: .6; }
@media (max-width: 800px) { .globe-card { grid-template-columns: 1fr; } }

/* Appearance window */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 34, .6); text-align: left; transition: border-color .2s, transform .2s; }
.theme-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.theme-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 10px 30px -18px var(--brand); }
.theme-card b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.theme-card small { color: var(--muted); font-size: 12px; }
.theme-prev { position: relative; height: 70px; border-radius: 10px; overflow: hidden; margin-bottom: 6px; background: #060a12; }
.theme-prev i { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .7; }
.theme-prev i:nth-child(1) { width: 70px; height: 70px; left: -10px; top: -20px; background: var(--t1); }
.theme-prev i:nth-child(2) { width: 60px; height: 60px; right: -6px; top: -14px; background: var(--t2); }
.theme-prev i:nth-child(3) { width: 60px; height: 50px; left: 40%; bottom: -26px; background: var(--t3); }
.theme-prev em { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--t1), var(--t2)); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fx-opt { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 20, 34, .6); text-align: left; }
.fx-opt.on { border-color: var(--brand); background: rgb(var(--brand-rgb) / .08); }
.fx-opt small { color: var(--muted); font-size: 12px; }

/* effects off: nothing moves */
html[data-fx="off"] *, html[data-fx="off"] *::before, html[data-fx="off"] *::after { animation: none !important; transition: none !important; }
html[data-fx="lite"] .hero::before { animation: none; }
.hero > * { position: relative; z-index: 1; }

/* ---------- Fair play (views-fair.js) ---------- */
.score { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 3px; border-radius: 999px; font: 700 12px/1 var(--mono);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); cursor: help; vertical-align: middle; }
.score i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, .18) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.score.s-high { --c: #f87171; } .score.s-medium { --c: #fbbf24; } .score.s-low { --c: #7dd3fc; } .score.s-none { --c: var(--brand-2); }
.score.big { padding: 6px 14px 6px 6px; font-size: 22px; gap: 10px; }
.score.big i { width: 44px; height: 44px; -webkit-mask: radial-gradient(circle, transparent 14px, #000 15px); mask: radial-gradient(circle, transparent 14px, #000 15px); }
.score.s-high.big { box-shadow: 0 0 24px -6px #f87171; animation: scorePulse 2.4s ease-in-out infinite; }
@keyframes scorePulse { 50% { box-shadow: 0 0 34px -4px #f87171; } }
.tabs .nav-n { position: static; display: inline-grid; margin-left: 4px; vertical-align: 1px; }
.row-sb.gap { gap: 12px; }
.reports, .clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.report, .clip { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.report header, .clip header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.report header b, .clip header b { display: block; font-size: 15px; }
.report header small, .clip header small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.report-t { font-size: 13.5px; color: var(--text-2); padding: 8px 12px; border-left: 3px solid var(--line-2); background: rgba(148, 163, 184, .05); border-radius: 0 8px 8px 0; }
.report footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.chip.k-flick, .chip.k-hs { color: #fecaca; border-color: rgba(248, 113, 113, .4); background: rgba(239, 68, 68, .1); }
.chip.k-wall, .chip.k-smoke { color: #fde68a; border-color: rgba(251, 191, 36, .35); background: rgba(245, 158, 11, .08); }
.chip.k-blind { color: #ddd6fe; border-color: rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .1); }
.chip.k-on { color: var(--brand-3); border-color: rgb(var(--brand-rgb) / .4); background: rgb(var(--brand-rgb) / .1); }
a.chip { gap: 5px; text-transform: none; }
a.chip:hover { filter: brightness(1.2); }
.chip small { opacity: .7; margin-left: 2px; }
.guard { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 34, .55); }
.guard-top { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; }
.guard-top > .min-w-0 > b { font-size: 15px; }
.guard-why { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.guard-why li { display: flex; gap: 8px; align-items: baseline; }
.guard-why i { font: 700 11px/1 var(--mono); min-width: 34px; text-align: right; font-style: normal; }
.guard-why li.up i { color: #fca5a5; } .guard-why li.down i { color: var(--brand-2); }
.n-violet { color: #ede9fe; background: rgba(139, 92, 246, .09); border-color: rgba(167, 139, 250, .3); }

/* ---------- Live (views-live.js) ---------- */
.live-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--brand-rgb) / .04); font-size: 13px; }
.ls-i { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.ls-i.rec { color: #fca5a5; font-weight: 650; }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: recPulse 1.6s infinite; flex: none; }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-grid.one { grid-template-columns: minmax(0, 1fr); }
.live-side { display: grid; gap: 16px; }
@media (max-width: 1100px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.card-b.p0 { padding: 0; }
.cl-tools { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cl-tools .in { flex: 1; min-width: 160px; }
.chatlog { height: min(62vh, 620px); overflow-y: auto; padding: 8px 12px; font-size: 13px; line-height: 1.45; overscroll-behavior: contain; }
.cl { display: flex; gap: 8px; align-items: baseline; padding: 3px 6px; border-radius: 6px; }
.cl:hover { background: rgba(148, 163, 184, .06); }
.cl time { flex: none; font: 500 11.5px/1 var(--mono); color: var(--muted); min-width: 62px; white-space: nowrap; }
.cl-k { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cl-n { flex: none; font-weight: 700; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-t { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.cl.k-join .cl-k, .cl.k-leave .cl-k, .cl.k-kill .cl-k, .cl.k-server .cl-k { color: rgba(148, 163, 184, .7); }
.cl.k-admin { background: rgb(var(--brand-rgb) / .08); }
.cl.k-admin .cl-k, .cl.k-admin .cl-n { color: var(--brand-2); }
.cl.flag { background: rgba(239, 68, 68, .1); box-shadow: inset 3px 0 0 #ef4444; }
.cl-reply { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cl-reply .in { flex: 1; }
.pad { padding: 12px; }
.radar-live { position: relative; }
.radar-cv { display: block; width: 100%; aspect-ratio: 1; border-radius: 0 0 14px 14px; }
.radar-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 30px; color: var(--muted); font-size: 13px; }
.radar-tag { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(2, 6, 23, .7); color: var(--muted); }
.card-b.sb { display: grid; gap: 12px; }
.sb-h { display: flex; justify-content: space-between; font-weight: 750; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.sb-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 56px 50px; gap: 8px; font-size: 13px; padding: 3px 0; border-top: 1px solid var(--line); }
.sb-row.dead { opacity: .45; }
.vote-res { display: grid; gap: 6px; margin-bottom: 14px; }
.vote-q { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.vote-o { position: relative; display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; font-size: 13px; }
.vote-o i { position: absolute; inset: 0 auto 0 0; background: rgb(var(--brand-rgb) / .16); transition: width .6s ease; }
.vote-o span, .vote-o b { position: relative; }
.vote-o.win { border-color: rgb(var(--brand-rgb) / .6); }
.now-list { display: grid; gap: 10px; }
.now-row { display: flex; gap: 12px; align-items: center; }
.now-row .grow, .ev-row .grow, .push-now .grow, .dev-row .grow { flex: 1; min-width: 0; }
.bar { height: 5px; border-radius: 4px; background: rgba(148, 163, 184, .14); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--cyan)); transition: width .5s ease; }
.bar.ind i { width: 35%; animation: barInd 1.4s ease-in-out infinite; }
@keyframes barInd { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.demos-now { margin-bottom: 16px; }
.push-now { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.dev-list { display: grid; gap: 6px; }
.dev-row { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.ev-list { display: grid; gap: 4px; }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; }
.ev-row.off { opacity: .55; }
.ev-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(var(--brand-rgb) / .12); color: var(--brand-2); flex: none; }
.ev-ic.k-tournament { background: rgba(251, 191, 36, .12); color: #fbbf24; }
.ev-ic.k-doublexp { background: rgba(168, 85, 247, .14); color: #c084fc; }
.ev-ic.k-mapvote { background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .form-2 { grid-template-columns: minmax(0, 1fr); } .sb-row { grid-template-columns: minmax(0, 1fr) 56px 50px; } .sb-row > :nth-child(2) { display: none; } }

/* ---------- Server files (views-files.js) ---------- */
.files-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.files-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .files-grid { grid-template-columns: minmax(0, 1fr); } }
.file-list { display: grid; max-height: 72vh; overflow-y: auto; }
.fl { display: grid; gap: 2px; text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); background: none; cursor: pointer; }
.fl:first-child { border-top: 0; }
.fl:hover { background: rgba(148, 163, 184, .06); }
.fl.on { background: rgb(var(--brand-rgb) / .1); box-shadow: inset 3px 0 0 var(--brand); }
.fl small { font-size: 11.5px; }
.fl-h { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 1px solid var(--line); }
.fl-other { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.fl-other .in { flex: 1; min-width: 0; font-size: 12.5px; }
.ed-col { display: grid; gap: 16px; min-width: 0; }
.code { display: flex; height: min(64vh, 640px); font: 12.5px/1.55 var(--mono); background: rgba(2, 6, 23, .45); border-radius: 0 0 14px 14px; overflow: hidden; }
.code-g { margin: 0; padding: 12px 8px; min-width: 46px; text-align: right; color: rgba(148, 163, 184, .45); overflow: hidden; user-select: none; border-right: 1px solid var(--line); font: inherit; white-space: pre; }
.code-t { flex: 1; min-width: 0; margin: 0; padding: 12px; border: 0; outline: none; resize: none; background: transparent; color: var(--text); font: inherit; white-space: pre; overflow: auto; tab-size: 4; }
.ver-list { display: grid; gap: 2px; }
.ver { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.ver:first-child { border-top: 0; }
.ver.on { background: rgb(var(--brand-rgb) / .07); }
.ver .grow { flex: 1; min-width: 160px; }
.diff { margin: 0; max-height: 60vh; overflow: auto; font: 12px/1.5 var(--mono); border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; }
.diff .d { padding: 0 10px; white-space: pre; }
.diff .d i { display: inline-block; width: 16px; font-style: normal; color: var(--muted); }
.diff .add { background: rgba(34, 197, 94, .12); color: #bbf7d0; }
.diff .del { background: rgba(239, 68, 68, .12); color: #fecaca; }
.diff .gap { color: var(--muted); text-align: center; }
.job-list { display: grid; gap: 6px; }
.job { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.job .grow { flex: 1; min-width: 200px; }
.plg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.plg { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(148, 163, 184, .03); }
.plg.upd { border-color: rgba(251, 191, 36, .45); }
.plg-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.plg-v { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* right-to-left (Arabic): the sidebar on the right */
html[dir="rtl"] .side { left: auto; right: 0; }
html[dir="rtl"] .main { margin-left: 0; margin-right: var(--side); transition: margin-right .2s ease; }
@media (max-width: 1024px) {
  html[dir="rtl"] .main { margin-right: 0; }
  html[dir="rtl"] .side { transform: translateX(105%); }
  html[dir="rtl"] .side.is-open { transform: none; }
}
.setup-list { display: grid; gap: 12px; }
.setup { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.setup-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setup-bar { width: 120px; height: 6px; border-radius: 99px; background: rgb(var(--brand-rgb) / .12); overflow: hidden; }
.setup-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.setup-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.setup-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; }
.setup-steps li p { margin: 2px 0 0; }
.setup-steps li.next { background: rgb(var(--brand-rgb) / .07); box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / .25); }
.setup-steps li.done b { color: var(--muted); }
.setup-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800;
  color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.setup-steps li.done .setup-n { color: var(--brand-2); background: rgb(var(--brand-rgb) / .14); box-shadow: none; }
@media (max-width: 640px) { .setup-bar { width: 70px; } }
.steps-s { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.steps-s b { color: var(--text); }
.plg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plg-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.plg-steps li p { margin: 4px 0 2px; }
.plg-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800;
  color: var(--brand-2); background: rgb(var(--brand-rgb) / .14); box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / .35); }
.plg-l { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .plg-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); } .plg-l { grid-column: 2; justify-content: flex-start; } }
.bk { border-top: 1px solid var(--line); }
.bk:first-child { border-top: 0; }
.bk-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.bk-row:hover { background: rgba(148, 163, 184, .05); }
.bk-row .grow { flex: 1; min-width: 0; }
.bk-files { padding: 4px 14px 12px 38px; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.bk-f { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.bk-f .grow { flex: 1; min-width: 0; }
/* ---------- Performance and Maps (views-perf.js) ---------- */
.perf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .perf-grid { grid-template-columns: minmax(0, 1fr); } }
.t-bad { color: #fca5a5; font-weight: 700; }
.bar-cell { position: relative; min-width: 120px; height: 20px; border-radius: 6px; background: rgba(148, 163, 184, .08); overflow: hidden; }
.bar-cell .bc-fill { position: absolute; left: 0; top: 0; bottom: 0; display: block; border-radius: 6px; background: linear-gradient(90deg, rgb(var(--brand-rgb) / .55), rgb(var(--brand2-rgb) / .35)); }
.bar-cell .bc-n { position: relative; padding-left: 8px; font: 600 12px/20px var(--mono); }
.ws-search .in { flex: 1; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ws { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(148, 163, 184, .03); display: grid; grid-template-rows: auto 1fr; }
.ws-img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: rgba(2, 6, 23, .5); color: var(--muted); overflow: hidden; }
.ws-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ws:hover .ws-img img { transform: scale(1.04); }
.ws-b { display: grid; gap: 4px; padding: 10px 12px 12px; align-content: start; min-width: 0; }
.pool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
.pool-grid > div { display: grid; gap: 16px; }
@media (max-width: 1000px) { .pool-grid { grid-template-columns: minmax(0, 1fr); } }
.pool-maps { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-maps .chip { display: inline-flex; align-items: center; gap: 4px; }
.pool-srv { display: grid; gap: 8px; }
.pool-ed { position: sticky; top: 80px; }
.pool-list { display: grid; gap: 2px; margin-top: 6px; max-height: 46vh; overflow-y: auto; }
.pl-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pl-row .grow { flex: 1; min-width: 0; }

/* ---------- Community (views-community.js) ---------- */
.cm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } }
.cm-row { padding: 12px 18px; }
.cm-row.click, tr.click { cursor: pointer; }
.cm-row.click:hover, tr.click:hover td { background: rgba(148, 163, 184, .05); }
tr.dim td { opacity: .5; }
.ev-ic.off { background: rgba(148, 163, 184, .1); color: var(--muted); }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 760px) { .form-3 { grid-template-columns: minmax(0, 1fr); } }
.tab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; }
.th-sort { background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.th-sort.on { color: var(--brand-2); }
.t-gold { color: #fbbf24; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.stat-grid > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: rgba(148, 163, 184, .06); text-align: center; }
.stat-grid > div.bad { background: rgba(239, 68, 68, .12); }
.stat-grid b { font-size: 17px; }
.stat-grid small { color: var(--muted); font-size: 11.5px; }
.ap-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .ap-cols { grid-template-columns: minmax(0, 1fr); } }
.ap-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, .06); font-size: 13.5px; line-height: 1.5; }
.ap-chat { max-height: 220px; overflow-y: auto; font-size: 12.5px; display: grid; gap: 3px; }
h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }

/* ---------- Overview widgets (views-main.js) ---------- */
.wg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; align-items: start; }
.wg { position: relative; min-width: 0; }
.wg.k > .wg-body > * { height: 100%; }
.wg-body > .card, .wg-body > .card-wrap { height: 100%; }
.wg-grid.is-edit .wg { outline: 1px dashed rgb(var(--brand-rgb) / .45); outline-offset: 4px; border-radius: var(--r); cursor: grab; }
.wg-grid.is-edit .wg-body { pointer-events: none; opacity: .92; }
.wg.is-drag { opacity: .35; }
.wg-tools { position: absolute; z-index: 5; top: -12px; right: 8px; display: flex; gap: 4px; align-items: center; }
.wg-tools .wg-name { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--brand); color: #fff; }
.wg-tools button { width: 24px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; cursor: pointer; }
.wg-tools button:hover { border-color: var(--brand); }
.wg-resize { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 4px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--brand) 50%); }
.wg-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px solid rgb(var(--brand-rgb) / .3); border-radius: 12px; background: rgb(var(--brand-rgb) / .06); }
.wg-bar .small { flex: 1; min-width: 200px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.quick-a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.quick-a:hover { border-color: rgb(var(--brand-rgb) / .5); background: rgb(var(--brand-rgb) / .06); }
.note-w { width: 100%; resize: vertical; min-height: 120px; }
@media (max-width: 1100px) { .wg { grid-column: span 6 !important; } .wg:not(.k) { grid-column: span 12 !important; } }
@media (max-width: 640px) { .wg.k { grid-column: span 6 !important; } .wg { grid-row: auto !important; } }

/* ---------- installed app (PWA) ---------- */
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
html.is-app .top { padding-top: env(safe-area-inset-top); }
html.is-app .side .back-site { display: none; }

/* ---------- light mode: hand-made fixes (the generated layer below handles the fixed colours) ---------- */
html[data-mode="light"] .brand-t b { background: linear-gradient(90deg, var(--text), var(--brand-2)); -webkit-background-clip: text; background-clip: text; }
html[data-mode="light"] .nav-i.on { color: var(--brand-3); }
html[data-mode="light"] body::after { opacity: .35; }
.wg-tools .wg-name { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Demos list: cards on phones (views-demos.js) ---------- */
.mb { margin-bottom: 14px; }
@media (max-width: 760px) {
  .dm-tbl thead { display: none; }
  .dm-tbl, .dm-tbl tbody { display: block; }
  .dm-tbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .dm-tbl td { display: block; padding: 0 !important; border: 0 !important; font-size: 12.5px; }
  .dm-tbl td.dm-match { flex: 1 1 100%; min-width: 0; }
  .dm-tbl td.dm-srv { flex: 1 1 100%; }
  .dm-tbl td[data-l]::before { content: attr(data-l); margin-right: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .dm-tbl td.dm-act { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-start; text-align: left; }
  .dm-tbl td.dm-act .menu { margin-left: auto; }
}

.no2d { cursor: help; border-bottom: 1px dotted currentColor; }

/* hosting panel + watchdog (views-host.js) */
.hp-wd { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hp-h { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 700; }
.hp-h svg { flex: none; }
.hp-row .field { flex: 1; }
.hp-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hp-res span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(148, 163, 184, .06); }
.hp-res small { color: var(--muted); font-size: 11.5px; }
.hp-res b { font-size: 14px; }
.hp-btns { flex-wrap: wrap; }
.hp-btns .btn { flex: 1 1 auto; }
.foot-note svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }

/* tools (views-tools.js): presets, map upload, sessions, weekly summary */
.row.between { justify-content: space-between; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pr { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(148, 163, 184, .04); display: flex; flex-direction: column; }
.pr p { margin: 4px 0 0; flex: 1; }
.pr-own { border-color: rgb(var(--brand2-rgb) / .3); }
.up-bar { position: relative; height: 22px; border-radius: 8px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.up-bar i { position: absolute; inset: 0 auto 0 0; background: rgb(var(--brand-rgb) / .45); transition: width .2s; }
.up-bar span { position: relative; display: block; text-align: center; font: 600 12px/22px var(--font); }
.ses-list { display: flex; flex-direction: column; gap: 6px; }
.ses-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.tw-prev { padding: 12px; border-radius: 12px; background: rgba(148, 163, 184, .06); }
.tw-prev pre { margin: 6px 0 0; white-space: pre-wrap; font: 12.5px/1.55 var(--font); color: var(--text-2); }

/* ---------- design 2026-11-23: 3D backgrounds, scroll reveal, help and tour, phones (fx.js, scene.js, help.js) ---------- */
html[data-mode="light"] .ambient { opacity: .55; }
/* a soft moving light along the top edge of cards (Full effects) */
html[data-fx="full"] .card::before { background: linear-gradient(90deg, transparent 30%, rgb(var(--brand-rgb) / .55) 50%, transparent 70%), linear-gradient(90deg, transparent, rgba(148, 163, 184, .22), transparent);
  background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; animation: edgeGlow 11s linear infinite; }
@keyframes edgeGlow { to { background-position: -150% 0, 0 0; } }
/* buttons: lift and glow */
.btn { transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, background .2s, border-color .2s, color .2s; }
html[data-fx="full"] .btn:hover:not(:disabled) { transform: translateY(-1px); }
html[data-fx="full"] .btn-primary:hover:not(:disabled), html[data-fx="full"] .btn.primary:hover:not(:disabled) { box-shadow: 0 10px 26px -12px rgb(var(--brand-rgb) / .9); }

/* Appearance: backgrounds with live previews */
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bg-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(148, 163, 184, .04); transition: border-color .2s, transform .2s; }
.bg-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.bg-card.on { border-color: rgb(var(--brand-rgb) / .7); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .15); }
.bg-card b { font-size: 13px; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.bg-card small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.scene-prev { width: 100%; aspect-ratio: 9 / 5; border-radius: 9px; background: radial-gradient(120% 90% at 50% 0%, rgb(var(--brand-rgb) / .12), transparent 70%), var(--bg); display: block; }
.theme-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* help: glossary */
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gloss-i { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(148, 163, 184, .03); }
.gloss-i b { font-size: 13.5px; }
.gloss-i p { margin: 3px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }

/* the tour: a spotlight on the real part of the page and a card next to it */
.tour { position: fixed; inset: 0; z-index: 95; }
.tour-dim { position: absolute; inset: 0; background: rgba(1, 3, 8, .7); backdrop-filter: blur(2px); animation: fade .2s ease both; }
.tour-spot { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(1, 3, 8, .72), 0 0 0 2px rgb(var(--brand-rgb) / .9), 0 0 40px rgb(var(--brand-rgb) / .5);
  transition: left .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1), width .35s, height .35s; pointer-events: none; }
.tour-card { position: absolute; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-2), var(--surface)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgb(var(--brand-rgb) / .18);
  animation: tourIn .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tourIn { from { opacity: 0; transform: perspective(900px) rotateX(-12deg) translateY(12px); } }
.tour-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .3s, background .3s; }
.tour-dots i.on { width: 20px; background: var(--brand-2); }

/* phones: bigger touch targets, dialogs as bottom sheets, comfortable spacing */
@media (pointer: coarse) {
  .btn { min-height: 40px; }
  .btn.btn-sm, .btn-sm { min-height: 34px; }
  .tabs a { padding: 12px 14px; }
  .nav-i, .menu-pop [role="menuitem"] { min-height: 42px; }
}
@media (max-width: 640px) {
  .ov { align-items: flex-end; padding: 0; }
  .modal, .modal-w { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheetUp .35s cubic-bezier(.2, .7, .2, 1) both; padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
  @keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-f { flex-wrap: wrap; }
  .modal-f .btn { flex: 1 1 auto; }
  .page { gap: 14px; }
  .page-h p { font-size: 13px; }
  .gloss { grid-template-columns: minmax(0, 1fr); }
  .bg-grid, .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 560px; }
  .tour-card { max-height: 70vh; overflow-y: auto; }
  .cv { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cv > .in { width: 132px; max-width: 42vw; }
  .cv-l code { overflow-wrap: anywhere; }
  .cv-group { min-width: 0; }
  .cv-groups { grid-template-columns: minmax(0, 1fr); }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .span-2.row, .span-2 { flex-wrap: wrap; }
  .sess li { flex-wrap: wrap; row-gap: 2px; }
  .sess li > * { min-width: 0; overflow-wrap: anywhere; }
}

.stack-l > *, .stack > * { min-width: 0; }

/* ---------- polish 2026-11-24: undo toasts, show more, crash card, shortcuts ---------- */
.toast { position: relative; overflow: hidden; }
.toast-a { flex: none; align-self: center; padding: 5px 11px; border-radius: 9px; border: 1px solid rgb(var(--brand2-rgb) / .45); background: rgb(var(--brand-rgb) / .14);
  color: var(--brand-3, var(--text)); font: 600 12.5px/1 var(--font, inherit); cursor: pointer; }
.toast-a:hover { background: rgb(var(--brand-rgb) / .26); }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(var(--brand2-rgb) / .8); transform-origin: left; animation: toastBar linear both; }
[dir="rtl"] .toast-bar { transform-origin: right; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.more-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.crash { max-width: 640px; margin: 40px auto; }
.crash-m { display: block; margin-top: 10px; max-width: 100%; overflow-wrap: anywhere; }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 22px; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; list-style: none; }
.keys kbd + kbd { margin-left: 4px; }
.keys-h { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); list-style: none; }

/* light mode: the selected segment (the generated layer turned only half of its gradient light, leaving white text on grey) */
html[data-mode="light"] .seg > button.on { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .06); }
/* phones: the tabs in a page header wrap onto a second line instead of hiding the last ones */
@media (max-width: 700px) { .page-a .seg { flex-wrap: wrap; overflow: visible; } }

/* ---------- 2026-11-24: scans, clip review, leave stats, change log, API, case files ---------- */
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.kpis-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.key-c { padding: 6px 9px; border-radius: 8px; background: rgb(148 163 184 / .12); overflow-wrap: anywhere; font-size: 12px; min-width: 0; flex: 1; }
.code-s { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgb(148 163 184 / .1); font-size: 12px; overflow-x: auto; }
.code-s > div { white-space: nowrap; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; }
.chk.is-off { opacity: .5; }
/* scans in the player window */
.scans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scan { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.scan-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; text-align: start; color: var(--text); background: rgb(148 163 184 / .05); }
.scan-h:hover { background: rgb(148 163 184 / .1); }
.scan-b { padding: 10px 12px 12px; display: grid; gap: 10px; }
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finds li { display: grid; gap: 4px; font-size: 12.5px; }
.find-t { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; overflow-wrap: anywhere; }
.find-bar { display: block; height: 5px; border-radius: 99px; background: rgb(148 163 184 / .16); overflow: hidden; flex: 1; min-width: 40px; }
.find-bar u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.find-bar u.v-brand { background: rgb(var(--brand-rgb)); } .find-bar u.v-red { background: #ef4444; } .find-bar u.v-slate { background: #94a3b8; }
/* clip review */
.rvq { list-style: none; margin: 0; padding: 0; }
.rvq-i { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.rvq-i:first-child { border-top: 0; }
.rvq-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rvq-h > .min-w-0 { flex: 1; display: grid; }
.rvq-v { display: grid; gap: 6px; max-width: 520px; }
.vote-r { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 10px; font-size: 12.5px; }
.vote-r > b { text-align: end; }
.vote-l { color: var(--muted); }
/* leave stats */
.pct { font-variant-numeric: tabular-nums; }
.pct-ok { color: #10b981; } .pct-mid { color: #d97706; } .pct-bad { color: #ef4444; }
/* change log */
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.change { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.change-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.diff-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.diff-t td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.diff-t td:first-child { color: var(--muted); width: 38%; }
.diff-t .was { color: #ef4444; text-decoration: line-through; text-decoration-color: rgb(239 68 68 / .5); }
.diff-t .now { color: #10b981; }
.diff-t .arrow { color: var(--muted); width: 18px; }
/* case file */
.case-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.case-who h1 { margin: 0; }
.case-who p { margin: 2px 0 0; color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 4px 0; }
.tl-i { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.tl-i:first-child { border-top: 0; }
.tl-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; color: var(--brand-2); background: rgb(var(--brand-rgb) / .1); }
.tl-ban .tl-ic, .tl-report .tl-ic { color: #ef4444; background: rgb(239 68 68 / .12); }
.tl-warn .tl-ic, .tl-comm .tl-ic, .tl-clip .tl-ic { color: #d97706; background: rgb(245 158 11 / .13); }
.tl-session .tl-ic { color: var(--muted); background: rgb(148 163 184 / .12); }
.tl-t { overflow-wrap: anywhere; font-size: 13.5px; }
.tl-sub { margin: 6px 0 0; padding-inline-start: 18px; font-size: 12.5px; color: var(--text-2, var(--text)); }
.notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.note-i { padding: 9px 11px; border-radius: 10px; background: rgb(148 163 184 / .08); display: grid; gap: 4px; }
.note-i p { margin: 0; }
.note-i:not(.n-note) { background: transparent; padding: 2px 11px; }

/* light mode selected segment: one class more than the generated rule, which comes later in the file */
html[data-mode="light"] .seg > button.on.on { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .06); }

/* LIGHT-GEN:START - written by light_gen.py from the rules above; do not edit by hand */
html[data-mode="light"] kbd { background: rgba(255, 255, 255, 0.92); }
html[data-mode="light"] .side { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .nav-n.red { color: rgb(165 3 3); }
html[data-mode="light"] .top { background: rgba(255, 255, 255, 0.84); }
html[data-mode="light"] .search { background: rgba(255, 255, 255, 0.82); }
html[data-mode="light"] .side-scrim { background: rgba(15, 23, 42, 0.4); }
html[data-mode="light"] .btn-ghost { background: rgba(255, 255, 255, 0.67); }
html[data-mode="light"] .btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.72); }
html[data-mode="light"] .btn-danger-ghost { color: rgb(163 5 5); }
html[data-mode="light"] .btn-danger-ghost:hover:not(:disabled) { color: rgb(165 3 3); }
html[data-mode="light"] .card-danger .card-ic { color: rgb(163 5 5); }
html[data-mode="light"] .b-red { color: rgb(165 3 3); }
html[data-mode="light"] .b-amber { color: rgb(166 133 3); }
html[data-mode="light"] .b-sky { color: rgb(5 109 164); }
html[data-mode="light"] .b-violet { color: rgb(32 4 164); }
html[data-mode="light"] .b-cyan { color: rgb(5 147 163); }
html[data-mode="light"] .chip { background: rgba(255, 255, 255, 0.62); }
html[data-mode="light"] .cc { color: rgb(55 80 114); }
html[data-mode="light"] .seg { background: rgba(255, 255, 255, 0.72); }
html[data-mode="light"] .seg button.on { background: linear-gradient(180deg, rgba(51, 65, 85, .9), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .in { background: rgba(255, 255, 255, 0.67); }
html[data-mode="light"] .in-search { background: rgba(255, 255, 255, 0.67) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237c8aa0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px 50%; }
html[data-mode="light"] .in-pre { background: rgba(255, 255, 255, 0.67); }
html[data-mode="light"] .kpi { background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)); }
html[data-mode="light"] .hero { background: radial-gradient(600px 220px at 0% 0%, rgb(var(--brand-rgb) / .22), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgb(var(--acc-rgb) / .14), transparent 70%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .srv-card { background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .srv-stats div { background: rgba(255, 255, 255, 0.57); }
html[data-mode="light"] .health li { background: rgba(255, 255, 255, 0.52); }
html[data-mode="light"] .srv-head { background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .n-sky { color: rgb(3 96 165); }
html[data-mode="light"] .n-amber { color: rgb(164 123 4); }
html[data-mode="light"] .n-red { color: rgb(165 3 3); }
html[data-mode="light"] .n-brand { color: rgb(21 148 95); }
html[data-mode="light"] .tile { background: rgba(255, 255, 255, 0.82); }
html[data-mode="light"] .tbl th { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .menu-pop { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .menu-pop .is-danger { color: rgb(163 5 5); }
html[data-mode="light"] .ov { background: rgba(255, 255, 255, 0.78); }
html[data-mode="light"] .modal { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .drawer { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .drawer-f { background: rgba(255, 255, 255, 0.62); }
html[data-mode="light"] .toast { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .toast small.ok { color: rgb(19 150 66); }
html[data-mode="light"] .toast small.no { color: rgb(163 5 5); }
html[data-mode="light"] .toast.t-bad .toast-ic { color: rgb(163 5 5); }
html[data-mode="light"] .toast.t-warn .toast-ic { color: rgb(166 127 3); }
html[data-mode="light"] .pal { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .chart .grid { stroke: rgba(64, 81, 105, 0.1); }
html[data-mode="light"] .chart .cross { stroke: rgba(55, 80, 114, 0.35); }
html[data-mode="light"] .tip { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .ring-bg { stroke: rgba(64, 81, 105, 0.12); }
html[data-mode="light"] .mini-cols { background: rgba(255, 255, 255, 0.52); }
html[data-mode="light"] .toplist li:nth-child(1) .rank { color: rgb(166 127 3); }
html[data-mode="light"] .toplist li:nth-child(2) .rank { color: rgb(58 82 110); }
html[data-mode="light"] .toplist li:nth-child(3) .rank { color: rgb(166 86 2); }
html[data-mode="light"] .map { background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .map.is-cur { background: linear-gradient(150deg, rgb(var(--brand-rgb) / .2), rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .map-p { color: rgb(58 82 110); }
html[data-mode="light"] .p-de { color: rgb(166 133 3); }
html[data-mode="light"] .p-cs { color: rgb(5 109 164); }
html[data-mode="light"] .p-aim, html[data-mode="light"] .p-awp { color: rgb(165 3 3); }
html[data-mode="light"] .p-ar, html[data-mode="light"] .p-gg { color: rgb(32 4 164); }
html[data-mode="light"] .p-surf, html[data-mode="light"] .p-bhop, html[data-mode="light"] .p-kz { color: rgb(5 147 163); }
html[data-mode="light"] .tbl-chip.ok { color: rgb(19 149 89); }
html[data-mode="light"] .tbl-chip.no { color: rgb(165 3 3); }
html[data-mode="light"] .snip { background: rgba(255, 255, 255, 0.52); }
html[data-mode="light"] .term-h { background: rgba(255, 255, 255, 0.52); }
html[data-mode="light"] .term { color: rgb(58 82 110); background: radial-gradient(600px 300px at 100% 0%, rgb(var(--brand-rgb) / .05), transparent 60%), rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .term pre { color: rgb(58 82 110); }
html[data-mode="light"] .t-err, html[data-mode="light"] .term pre.t-err { color: rgb(163 5 5); }
html[data-mode="light"] .t-cmd { color: rgb(6 144 162); }
html[data-mode="light"] .t-srv { color: rgb(19 149 89); }
html[data-mode="light"] .t-mh.ok { color: rgb(19 150 66); }
html[data-mode="light"] .t-mh.no { color: rgb(163 5 5); }
html[data-mode="light"] .term-in { background: rgba(255, 255, 255, 0.62); }
html[data-mode="light"] .term-form { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .term-input { color: rgb(55 80 114); }
html[data-mode="light"] .sugg { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .sugg li code { color: rgb(6 144 162); }
html[data-mode="light"] .task { background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)); }
html[data-mode="light"] .steam-box > div { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .note code { background: rgba(255, 255, 255, 0.67); }
html[data-mode="light"] .rp:fullscreen { background: var(--bg, rgba(255, 255, 255, 0.96)); }
html[data-mode="light"] .rp-score { background: rgba(255, 255, 255, 0.92); }
html[data-mode="light"] .rp-score .t { color: rgb(151 97 17); }
html[data-mode="light"] .rp-score .ct { color: rgb(21 86 147); }
html[data-mode="light"] .rp-clock .bomb { color: rgb(161 8 8); }
html[data-mode="light"] .rp-canvas { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .rp-feed li { background: rgba(255, 255, 255, 0.9); }
html[data-mode="light"] .rp-layer button { background: rgba(255, 255, 255, 0.87); }
html[data-mode="light"] .rp-noradar { background: rgba(255, 255, 255, 0.87); }
html[data-mode="light"] .rp-team.t .rp-team-h { color: rgb(157 101 12); }
html[data-mode="light"] .rp-team.ct .rp-team-h { color: rgb(17 84 152); }
html[data-mode="light"] .rp-pl { background: rgba(255, 255, 255, 0.82); }
html[data-mode="light"] .rp-ctrl { background: rgba(255, 255, 255, 0.82); }
html[data-mode="light"] .rp-rd { border-right: 1px solid rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .rp-rounds button.t { color: rgb(157 101 12); }
html[data-mode="light"] .rp-rounds button.ct { color: rgb(17 84 152); }
html[data-mode="light"] .srv-card::after, html[data-mode="light"] .tile::after { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(15, 23, 42, 0.08), transparent 60%); }
html[data-mode="light"] .globe-tip { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .theme-card { background: rgba(255, 255, 255, 0.72); }
html[data-mode="light"] .theme-prev { background: rgba(255, 255, 255, 0.96); }
html[data-mode="light"] .fx-opt { background: rgba(255, 255, 255, 0.72); }
html[data-mode="light"] .chip.k-flick, html[data-mode="light"] .chip.k-hs { color: rgb(165 3 3); }
html[data-mode="light"] .chip.k-wall, html[data-mode="light"] .chip.k-smoke { color: rgb(166 133 3); }
html[data-mode="light"] .chip.k-blind { color: rgb(32 4 164); }
html[data-mode="light"] .guard { background: rgba(255, 255, 255, 0.67); }
html[data-mode="light"] .guard-why li.up i { color: rgb(163 5 5); }
html[data-mode="light"] .n-violet { color: rgb(36 7 161); }
html[data-mode="light"] .ls-i.rec { color: rgb(163 5 5); }
html[data-mode="light"] .cl.k-join .cl-k, html[data-mode="light"] .cl.k-leave .cl-k, html[data-mode="light"] .cl.k-kill .cl-k, html[data-mode="light"] .cl.k-server .cl-k { color: rgba(64, 81, 105, 0.7); }
html[data-mode="light"] .radar-tag { background: rgba(255, 255, 255, 0.82); }
html[data-mode="light"] .ev-ic.k-tournament { color: rgb(165 120 3); }
html[data-mode="light"] .ev-ic.k-doublexp { color: rgb(84 4 164); }
html[data-mode="light"] .ev-ic.k-mapvote { color: rgb(4 113 165); }
html[data-mode="light"] .code { background: rgba(255, 255, 255, 0.57); }
html[data-mode="light"] .code-g { color: rgba(64, 81, 105, 0.45); }
html[data-mode="light"] .diff .add { color: rgb(17 151 64); }
html[data-mode="light"] .diff .del { color: rgb(165 3 3); }
html[data-mode="light"] .t-bad { color: rgb(163 5 5); }
html[data-mode="light"] .ws-img { background: rgba(255, 255, 255, 0.62); }
html[data-mode="light"] .t-gold { color: rgb(165 120 3); }
html[data-mode="light"] .tour-dim { background: rgba(255, 255, 255, 0.82); }
@media (max-width: 1024px) {
  html[data-mode="light"] .mob-nav { background: rgba(255, 255, 255, 0.96); }
}
/* LIGHT-GEN:END */
