@font-face {
  font-family: "Inter";
  src: url("InterVariable.woff2?v=17") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("Fredoka-latin.woff2?v=17") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  src: url("Fredoka-latin-ext.woff2?v=17") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #120d1a;
  --night: #0b0a0f;
  --night-2: #16101f;
  --bg: #291c44;
  --bg-dot: #36275a;
  --face: #382a5b;
  --face-2: #433467;
  --face-3: #4f3f75;
  --well: #251a3e;
  --well-2: #1a1130;
  --line: #5a4983;
  --text: #fbf7ff;
  --text-2: #e0d6f0;
  --text-3: #bcaed3;
  --purple: #8b2cff;
  --purple-2: #a855ff;
  --lilac: #c084fc;
  --lilac-t: #dcbcff;
  --grape: #35146a;
  --grape-2: #4a1f8f;
  --grape-dot: #3f1a7c;
  --mint: #3ee6a0;
  --mint-t: #6af2bb;
  --sun: #ffd23f;
  --sun-t: #ffdc6e;
  --tomato: #ff5a4e;
  --tomato-t: #ff9488;
  --sky: #7cd4ff;
  --pink: #ff8fd0;
  --peach: #ffb057;
  --cloud: #f3edfc;
  --slate: #a99ebe;
  --cream: #fff8e9;
  --sh: 4px 4px 0 var(--ink);
  --sh-lg: 6px 6px 0 var(--ink);
  --sh-sm: 2px 2px 0 var(--ink);
  --r: 22px;
  --r-b: 14px;
  --r-s: 10px;
  --sbw: 276px;
  --tbh: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fredoka", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --boing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --boing-2: cubic-bezier(0.25, 1.9, 0.5, 1);
  --snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --cur: url("cursor.png?v=17") 2 2, auto;
  --cur-p: url("cursor-pointer.png?v=17") 2 2, pointer;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--tbh) + 16px);
  cursor: url("cursor.png?v=17") 2 2, auto;
  cursor: -webkit-image-set(url("cursor.png?v=17") 1x, url("cursor-2x.png?v=17") 2x) 2 2, auto;
  cursor: image-set(url("cursor.png?v=17") 1x, url("cursor-2x.png?v=17") 2x) 2 2, auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.6px, transparent 1.9px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  font: 400 14.5px/1.5 var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button, summary, select, label[for], .sw-row, .seg-r, .th-b, .cbx, .switch, [role="tab"], [popovertarget], .gs-item, .fchip, .um-b, input[type="checkbox"], input[type="radio"], input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: url("cursor-pointer.png?v=17") 2 2, pointer;
  cursor: -webkit-image-set(url("cursor-pointer.png?v=17") 1x, url("cursor-pointer-2x.png?v=17") 2x) 2 2, pointer;
  cursor: image-set(url("cursor-pointer.png?v=17") 1x, url("cursor-pointer-2x.png?v=17") 2x) 2 2, pointer;
}
input:not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"] { cursor: text; }
button:disabled, .btn:disabled, .btn[aria-disabled="true"], input:disabled, .seg-b:disabled, .mseg button:disabled, select:disabled { cursor: not-allowed; }
.ch-hit { cursor: crosshair; }

a { color: var(--lilac-t); text-decoration: none; }
a:hover { color: var(--sun-t); }

h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--display); font-weight: 600; }
h1 { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: 0.005em; text-shadow: 3px 3px 0 var(--ink); }
h2 { font-size: 19px; line-height: 1.3; display: flex; align-items: center; gap: 10px; letter-spacing: 0.01em; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 0; }
b, strong { font-weight: 700; }

code, .mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0; }
.num, .t td, .kv dd, .fact-v { font-variant-numeric: tabular-nums; }

.dim { color: var(--text-3); }
.hint { color: var(--text-3); font-weight: 500; font-size: 12.5px; font-family: var(--font); }
.strong { color: var(--text); font-weight: 650; }
a.strong:hover { color: var(--sun-t); }
.sub { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.min0 { min-width: 0; }
.wrap { overflow-wrap: break-word; min-width: 160px; }
.wrap-s { max-width: 220px; }
.wrap-s .host { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw, .nw .sub { white-space: nowrap; }
.ta-r { text-align: right; }
.host { color: var(--text-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 14px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; border: 3px solid var(--ink);
  background: var(--sun); color: var(--ink); font: 700 15px var(--display); box-shadow: var(--sh);
}
.skip:focus { top: 14px; color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}

::selection { background: var(--sun); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--face-3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--lilac); }
::-webkit-scrollbar-track { background: transparent; }

.app { position: relative; min-height: 100vh; }

.sb {
  position: fixed; top: 14px; bottom: 14px; left: 14px; z-index: 40;
  width: calc(var(--sbw) - 28px);
  display: flex; flex-direction: column;
  background-color: var(--grape);
  background-image: radial-gradient(var(--grape-dot) 1.5px, transparent 1.8px);
  background-size: 16px 16px;
  border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: width 0.3s var(--boing), transform 0.4s var(--boing);
}
.sb-top { position: relative; flex: none; padding: 18px 16px 4px; }
.sb-brand { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--text); border-radius: 18px; }
.sb-brand:hover { color: var(--text); }
.sb-logo {
  display: block; width: 100%; max-width: 214px; padding: 8px 10px 14px;
  background: var(--night); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg);
  transition: transform 0.35s var(--boing);
}
.sb-brand:hover .sb-logo { transform: rotate(1.5deg) scale(1.03); }
.sb-full { display: block; width: 100%; height: auto; }
.sb-mark { display: none; width: 50px; height: 50px; filter: drop-shadow(3px 3px 0 var(--ink)); transition: transform 0.35s var(--boing); }
.sb-brand:hover .sb-mark { transform: rotate(-8deg) scale(1.08); }
.sb-tag {
  position: relative; z-index: 1; margin-top: -13px;
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 9px;
  font: 700 11.5px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  box-shadow: var(--sh-sm); transform: rotate(2.5deg);
}
.sb .sb-x { display: none; }

.sb-nav {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 5px;
  padding: 6px 16px 14px 14px; overflow-x: hidden; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--grape-2) transparent;
}
.sb-label {
  display: flex; align-items: center; gap: 10px; padding: 16px 6px 6px 10px;
  font: 600 12px/1 var(--display); letter-spacing: 0.17em; text-transform: uppercase; white-space: nowrap; color: #eadbff;
}
.sb-label::after { content: ""; flex: 1; border-top: 2.5px dashed #7647c4; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 10px 0 12px; border-radius: 15px;
  border: 2.5px solid transparent; background: transparent;
  color: #f6efff; font: 500 16px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap;
  width: 100%; text-align: left;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.3s var(--boing), color 0.15s;
}
.sb-link .i { width: 20px; height: 20px; color: inherit; transition: transform 0.35s var(--boing); }
.sb-text { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.sb-link:hover { color: #fff; background: var(--grape-2); border-color: var(--ink); }
.sb-link:hover .i { transform: rotate(-12deg) scale(1.15); }
.sb-link:active { transform: translate(2px, 2px) scale(0.98); }
.sb-link.on {
  color: var(--ink); background: var(--sun); border-color: var(--ink); font-weight: 600;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.2deg);
}
.sb-link.on:hover { color: var(--ink); }
.sb-n {
  margin-left: auto; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--cloud); color: var(--ink); border: 2px solid var(--ink);
  font: 700 12.5px/1 var(--display); font-variant-numeric: tabular-nums;
}
.sb-link.on .sb-n { background: var(--ink); color: var(--sun); }

.sb-foot {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px;
  margin: 0 12px 12px; padding: 8px 8px 8px 9px; border-radius: 18px;
  background: #24094c; border: 2.5px solid var(--ink);
}
.sb-acct { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.sb-who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; line-height: 1.15; max-width: 160px; }
.sb-un { max-width: 100%; font: 600 15px/1.1 var(--display); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-role {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px;
  font: 700 10.5px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: var(--lilac); border: 2px solid var(--ink);
}
.sb-col { color: #fff; background: var(--grape-2); border-color: var(--ink) !important; }
.sb-col:hover { color: var(--ink); background: var(--sun); }
.sb-col .i { transition: transform 0.35s var(--boing); }

@media (min-width: 861px) {
  html.sb-mini { --sbw: 104px; }
  html.sb-mini .sb-logo, html.sb-mini .sb-tag { display: none; }
  html.sb-mini .sb-text, html.sb-mini .sb-n, html.sb-mini .sb-who { display: none; }
  html.sb-mini .sb-link { gap: 0; justify-content: center; padding: 0; }
  html.sb-mini .sb-link.on { transform: rotate(-4deg); }
  html.sb-mini .sb-acct { flex: none; gap: 0; }
  html.sb-mini .sb-mark { display: block; animation: markIn 0.5s var(--boing) both; }
  html.sb-mini .sb-top { padding: 14px 0 2px; }
  html.sb-mini .sb-nav { padding: 4px 11px 14px; overflow: visible; }
  html.sb-mini .sb-label { font-size: 0; gap: 0; padding: 12px 4px 6px; }
  html.sb-mini .sb-label:first-child { display: none; }
  html.sb-mini .sb-foot { flex-direction: column; margin: 0 10px 12px; padding: 8px 0; }
  html.sb-mini .sb-col .i { transform: rotate(180deg); }
  html.sb-mini .sb [data-tip]:hover::after,
  html.sb-mini .sb [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 20px); top: 50%; transform: translateY(-50%);
    padding: 7px 12px; border-radius: 12px; z-index: 60; pointer-events: none;
    background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
    font: 600 14px/1.2 var(--display); white-space: nowrap;
    animation: tipPop 0.28s var(--boing) both;
  }
  html.sb-mini .sb [data-tip]:hover::before,
  html.sb-mini .sb [data-tip]:focus-visible::before {
    content: ""; position: absolute; left: calc(100% + 13px); top: 50%; z-index: 61; width: 12px; height: 12px;
    background: var(--cream); border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
    transform: translateY(-50%) rotate(45deg); pointer-events: none;
    animation: fadeIn 0.2s both;
  }
}

.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(11, 10, 15, 0.72); opacity: 0; transition: opacity 0.22s; }
.scrim.show { opacity: 1; }
html.sb-lock, html.sb-lock body { overflow: hidden; }

.wrap { margin-left: var(--sbw); min-width: 0; transition: margin-left 0.3s var(--boing); }

.tb {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: var(--tbh); padding: 0 30px 0 22px;
  background: var(--night-2); border-bottom: 3px solid var(--ink);
}
.tb .tb-menu, .tb-brand { display: none; }
.tb-brand { flex: none; align-items: center; border-radius: 10px; }
.tb-brand img { width: 40px; height: 40px; filter: drop-shadow(2px 2px 0 var(--ink)); transition: transform 0.35s var(--boing); }
.tb-brand:hover img { transform: rotate(-10deg) scale(1.08); }
.crumbs { flex: 1; min-width: 0; }
.crumbs ol { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font: 500 15.5px/1.2 var(--display); white-space: nowrap; overflow: hidden; }
.crumbs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: ""; flex: none; width: 4px; height: 17px; margin: 0 9px 0 5px; border-radius: 3px; background: var(--lilac); transform: rotate(20deg); }
.crumbs a { color: #cdbfe4; border-radius: 6px; }
.crumbs a:hover { color: var(--sun-t); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.gs { position: relative; width: 380px; max-width: 38vw; display: flex; align-items: center; }
.gs-i { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; z-index: 1; }
.gs input {
  width: 100%; height: 44px; padding: 0 44px 0 40px;
  background: var(--well); border: 2.5px solid var(--ink); border-radius: 15px;
  color: var(--text); font: inherit; font-size: 14.5px;
  box-shadow: inset 0 3px 0 var(--well-2);
  transition: border-color 0.15s, box-shadow 0.2s var(--boing), background-color 0.15s;
}
.gs input::placeholder { color: #a497bd; }
.gs input:hover { border-color: #6c57a0; }
.gs input:focus { outline: none; border-color: var(--lilac); background: #281c41; box-shadow: 3px 3px 0 var(--purple); }
.gs:focus-within .gs-i { color: var(--lilac-t); }
.gs input::-webkit-search-cancel-button { display: none; }
.gs-k {
  position: absolute; right: 9px; height: 26px; min-width: 26px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  background: var(--cloud); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  color: var(--ink); font: 700 13px/1 var(--display); pointer-events: none; transition: opacity 0.15s;
}
.gs input:focus ~ .gs-k { opacity: 0; }
.gs-pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: max(100%, 440px); max-height: 70vh; overflow: auto;
  padding: 8px; background: var(--face); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg); z-index: 50;
}
.gs-pop:not([hidden]) { animation: dropPop 0.32s var(--boing) both; transform-origin: 80% 0; }
.gs-list { list-style: none; margin: 0; padding: 0; }
.gs-g { padding: 10px 10px 5px; font: 600 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.gs-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 2px solid transparent; color: var(--text); transition: background-color 0.12s; }
.gs-item[aria-selected="true"], .gs-item:hover { background: var(--face-2); border-color: var(--ink); }
.gs-item .gs-t { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item .gs-s { color: var(--text-3); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item .chip { margin-left: auto; }
.gs-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--tomato); color: var(--ink); border: 2px solid var(--ink); flex: none; transform: rotate(-6deg); }
.gs-ic .i { width: 16px; height: 16px; }
.gs-none { padding: 18px 12px; color: var(--text-3); text-align: center; font-size: 13.5px; }
.gs-all { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px; border-top: 2.5px dashed var(--line); color: var(--text-2); font-size: 13px; }

.tb-live {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px;
  font: 600 14px/1 var(--display); letter-spacing: 0.02em; white-space: nowrap;
  color: var(--ink); background: var(--mint); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm);
  transition: background-color 0.2s;
}
.tb-dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--ink); }
.tb-live[data-state="live"] .tb-dot { animation: dotHop 1.5s var(--snap) infinite; }
.tb-live[data-state="stale"] { background: var(--sun); }
.tb-live[data-state="off"] { background: var(--tomato); }

.um { position: relative; flex: none; }
.um > summary { list-style: none; }
.um > summary::-webkit-details-marker { display: none; }
.um-b {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 11px 0 6px; border-radius: 15px; color: var(--text);
  background: var(--face); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm);
  transition: transform 0.15s var(--boing), box-shadow 0.15s, background-color 0.15s;
}
.um-b:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: var(--face-2); }
.um[open] .um-b { background: var(--face-2); transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.um-n { font: 600 15px/1 var(--display); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-c { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s var(--boing); }
.um[open] .um-c { transform: rotate(180deg); }
.um-m {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; padding: 8px; z-index: 50;
  background: var(--face); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg);
  animation: dropPop 0.32s var(--boing) both; transform-origin: 90% 0;
}
.um-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 2.5px dashed var(--line); }
.um-h strong { display: block; font: 600 15px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-h span { display: block; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-m form { margin: 0; }
.um-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: 12px; border: 2px solid transparent; background: none; color: var(--text-2); font: 500 15px/1 var(--display); text-align: left; transition: background-color 0.12s, color 0.12s; }
.um-i:hover { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.um-i .i { width: 18px; height: 18px; transition: transform 0.3s var(--boing); }
.um-i:hover .i { transform: rotate(-12deg) scale(1.12); }

@media (max-width: 860px) {
  :root, html.sb-mini { --sbw: min(304px, 86vw); }
  .sb { top: 10px; bottom: 10px; left: 10px; width: var(--sbw); }
  .js .sb { transform: translateX(calc(-100% - 30px)) rotate(-3deg); visibility: hidden; transition: transform 0.45s var(--boing), visibility 0s linear 0.45s; }
  .js .sb.open { transform: none; visibility: visible; transition: transform 0.45s var(--boing), visibility 0s; }
  .js .wrap { margin-left: 0; }
  .js .tb .tb-menu { display: inline-flex; margin-left: -4px; width: 44px; height: 44px; background: var(--face); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm); }
  .js .tb .tb-menu .i { width: 22px; height: 22px; }
  .js .tb-brand { display: inline-flex; }
  .js .sb .sb-x { display: inline-flex; position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; z-index: 2; background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm); }
  .sb-top { padding: 22px 20px 4px; }
  .sb-logo { max-width: 226px; }
  .sb-nav { padding: 6px 16px 14px; gap: 6px; }
  .sb-link { min-height: 50px; font-size: 17px; }
  .sb .sb-col { display: none; }
  .sb-foot { margin: 0 14px 14px; padding: 9px 12px; }
  html:not(.js) .sb { position: static; width: auto; height: auto; margin: 10px; }
  html:not(.js) .wrap { margin-left: 0; }
  .tb { padding: 0 14px; gap: 10px; }
}

.main { display: block; min-width: 0; }
.main:focus { outline: none; }
.page { max-width: 1440px; margin: 0 auto; padding: 32px 34px 84px; }

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.ph-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ph-title { position: relative; display: inline-block; min-width: 0; max-width: 100%; }
.doodle {
  position: absolute; left: -3px; right: -3px; bottom: -14px; width: calc(100% + 6px); height: 13px; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--sun); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.doodle path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: doodleDraw 0.9s var(--snap) 0.25s both; }
.ph-sub { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 760px; }
.ph-a { display: flex; gap: 12px; flex-wrap: wrap; }
.ph .live-tag { align-self: center; }

.dash-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 26px 34px; align-items: center; margin-bottom: 30px; }
.dash-head .ph { margin: 0; flex-direction: column; align-items: flex-start; }

.brand-strip {
  position: relative; margin: 0; border: 3px solid var(--ink); border-radius: 20px; background: #050407;
  box-shadow: var(--sh-lg); transform: rotate(1.6deg);
  transition: transform 0.4s var(--boing);
}
.brand-strip:hover { transform: rotate(-0.6deg) scale(1.015); }
.brand-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; border-radius: 17px; }
.tape {
  position: absolute; z-index: 2; top: -13px; width: 78px; height: 26px; pointer-events: none;
  background: var(--sun); border: 2.5px solid var(--ink); border-radius: 4px;
}
.tape-a { left: 16px; transform: rotate(-9deg); }
.tape-b { right: 16px; transform: rotate(7deg); background: var(--pink); }
.srv > .brand-strip { margin: 0 0 26px; transform: rotate(-0.4deg); }
.srv > .brand-strip:hover { transform: rotate(0.3deg) scale(1.005); }
.srv > .brand-strip img { aspect-ratio: auto; height: clamp(120px, 13vw, 180px); object-fit: contain; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid + .grid, .kpis + .grid { margin-top: 24px; }
.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }
.c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; }
.c-8 { grid-column: span 8; }
.c-12 { grid-column: span 12; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.card {
  position: relative; min-width: 0;
  background: var(--face); border: 3px solid var(--ink); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--sh-lg);
}
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-h.pad { padding: 20px 24px 16px; margin: 0; }
.card-h h2::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 4px;
  background: var(--lilac); border: 2.5px solid var(--ink); transform: rotate(14deg);
}
.card-sub { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.card-stat { display: flex; align-items: baseline; gap: 7px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.card-stat .num { display: inline-block; font: 700 32px/1 var(--display); color: var(--text); text-shadow: 2px 2px 0 var(--ink); }
.card-f { margin-top: 16px; padding-top: 16px; border-top: 2.5px dashed var(--line); }
.link { display: inline-flex; align-items: center; gap: 3px; font: 600 15px/1.2 var(--display); color: var(--lilac-t); white-space: nowrap; }
.link .i { width: 16px; height: 16px; transition: transform 0.3s var(--boing); }
.link:hover { color: var(--sun-t); }
.link:hover .i { transform: translateX(4px); }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kpi {
  --tone: var(--lilac);
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: 18px 20px 0; min-height: 172px; border-radius: var(--r);
  background: var(--tone); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: var(--sh-lg);
  transition: transform 0.25s var(--boing), box-shadow 0.25s var(--boing);
}
.kpi:hover { color: var(--ink); transform: translate(-3px, -4px) rotate(-0.8deg); box-shadow: 9px 10px 0 var(--ink); }
.kpi:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 0.06s; }
.t-green { --tone: var(--mint); }
.t-amber { --tone: var(--sun); }
.t-red { --tone: var(--tomato); }
.kpi-h { display: flex; align-items: center; gap: 11px; }
.kpi-ic {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm); transform: rotate(-8deg);
}
.kpi-ic .i { width: 19px; height: 19px; stroke-width: 2.4; }
.kpi:hover .kpi-ic { animation: wiggle 0.6s var(--snap); }
.kpi-l { font: 600 16px/1.2 var(--display); color: var(--ink); }
.kpi-v { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.kpi-v > .num { display: inline-block; font: 700 50px/0.95 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.kpi-of { color: var(--ink); font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.kpi-f { margin-top: 6px; }
.kpi-s { color: #2a1f3b; font-size: 13px; font-weight: 600; }
.spark { position: relative; height: 46px; margin: 10px -20px 0; color: var(--ink); border-top: 2.5px dashed rgba(18, 13, 26, 0.35); }
.spark svg { display: block; width: 100%; height: 100%; }
.spark .sp-line { fill: none; stroke: var(--ink); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .sp-area { fill: var(--ink); opacity: 0.16; }
.spark .sp-bar { fill: var(--ink); opacity: 0.78; }
.spark .sp-base { fill: var(--ink); opacity: 0.5; }
.spark svg.in { animation: sparkIn 1.1s var(--snap) both; animation-delay: calc(var(--d, 0) * 1ms + 250ms); }

.chart { position: relative; height: 240px; color: var(--lilac); }
.chart-sm { height: 180px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ch-grid { stroke: #44365f; stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.ch-base { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.ch-lbl { fill: var(--text-3); font-size: 12px; font-weight: 600; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ch-bar { fill: var(--lilac); stroke: var(--ink); stroke-width: 2.2; transition: opacity 0.15s, fill 0.15s; }
.ch-bar.hot { fill: var(--sun); }
.ch-bar.on { fill: #e3c8ff; }
.ch-bar.hot.on { fill: #ffe68f; }
.ch-bar.dim { opacity: 0.4; }
.ch-line-ink { fill: none; stroke: var(--ink); stroke-width: 7.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-line { fill: none; stroke: var(--lilac); stroke-width: 3.6; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: #3f2a6b; opacity: 1; }
.ch-cross { stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.ch-cross[visibility="hidden"], .ch-pt[visibility="hidden"] { display: none; }
.ch-pt { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.ch-hit { fill: transparent; }
.ch-in .ch-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: barBoing 0.85s var(--snap) both; animation-delay: calc(var(--i, 0) * 28ms + 120ms); }
.ch-in .ch-line, .ch-in .ch-line-ink { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lineDraw 1.3s var(--snap) 0.15s forwards; }
.ch-in .ch-area { animation: areaIn 0.9s var(--boing) 0.45s both; transform-box: fill-box; transform-origin: 50% 100%; }
.ch-in .ch-grid, .ch-in .ch-lbl { animation: fadeIn 0.5s both; }
.ch-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 120px;
  padding: 8px 12px; border-radius: 14px; background: var(--cream); border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font-size: 12.5px; color: #3b2f4f; white-space: nowrap; font-weight: 600;
  transform: translate(-50%, calc(-100% - 16px));
  transition: left 0.12s var(--snap), top 0.12s var(--snap);
}
.ch-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; margin-left: -6px;
  background: var(--cream); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
}
.ch-tip b { display: block; color: var(--ink); font: 700 17px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.ch-empty { position: absolute; inset: 0 0 26px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font: 500 15px/1.35 var(--display); text-align: center; padding: 0 20px; }
.ch-empty .i { width: 40px; height: 40px; padding: 9px; color: var(--ink); background: var(--lilac); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm); transform: rotate(-8deg); animation: floatY 3s ease-in-out infinite; }

.stackbar { display: block; width: 100%; height: 18px; margin: 4px 0 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--face-3); overflow: hidden; box-shadow: var(--sh-sm); }
.stackbar rect:not(.sg-bg) { stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; transform-box: view-box; transform-origin: 0 50%; animation: growX 1s var(--boing) 0.35s both; }
.sg-bg { fill: var(--face-3); }
.sg-ok { fill: var(--mint); }
.sg-warn { fill: var(--sun); }
.sg-bad { fill: var(--tomato); }
.sg-off { fill: var(--slate); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.legend a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; border: 2px solid transparent; color: var(--text-2); font-size: 14.5px; transition: background-color 0.12s, border-color 0.12s; }
.legend a > span:not(.sw) { transition: transform 0.3s var(--boing); }
.legend a:hover { background: var(--face-2); border-color: var(--ink); color: var(--text); }
.legend a:hover > span:not(.sw) { transform: translateX(4px); }
.legend a:hover .sw { transform: rotate(45deg) scale(1.15); }
.legend b { margin-left: auto; color: var(--text); font: 700 18px/1 var(--display); }
.sw { width: 15px; height: 15px; border-radius: 5px; flex: none; border: 2px solid var(--ink); transition: transform 0.3s var(--boing); }
.sw-ok { background: var(--mint); }
.sw-warn { background: var(--sun); }
.sw-bad { background: var(--tomato); }
.sw-off { background: var(--slate); }
.verrow {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 15px;
  background: var(--well); border: 2.5px solid var(--ink); color: var(--text-2); font-size: 14px; box-shadow: var(--sh-sm);
  transition: transform 0.2s var(--boing), box-shadow 0.2s var(--boing);
}
.verrow:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.verrow > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.verrow .i { width: 18px; height: 18px; color: var(--sun); }
.verrow .mono { margin-left: auto; color: var(--text); font-weight: 700; font-size: 14px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2.5px dashed var(--line); }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.row-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--text); }
.row-l:hover { color: var(--text); }
.row-l:hover .strong { color: var(--sun-t); }
.row-l .av { transition: transform 0.35s var(--boing); }
.row-l:hover .av { transform: rotate(-10deg) scale(1.1); }
.chips { display: inline-flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; }
.vtag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 9px; flex: none;
  background: var(--sky); border: 2px solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-sm);
}

.av {
  --hc: var(--lilac);
  width: 36px; height: 36px; flex: none; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hc); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm);
  color: var(--ink); font: 700 14px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
}
.av-sm { width: 32px; height: 32px; border-radius: 11px; font-size: 12.5px; }
.av-lg { width: 66px; height: 66px; border-radius: 20px; font-size: 24px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.h0 { --hc: #c084fc; }
.h1 { --hc: #7cd4ff; }
.h2 { --hc: #b3a4ff; }
.h3 { --hc: #3ee6a0; }
.h4 { --hc: #ffb057; }
.h5 { --hc: #ff8fd0; }
.h6 { --hc: #8ee6da; }
.h7 { --hc: #ffd23f; }

.btn {
  --bf: var(--cloud); --bt: var(--ink); --bh: #ffffff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 17px; border-radius: var(--r-b);
  background: var(--bf); border: 2.5px solid var(--ink); color: var(--bt);
  font: 600 15.5px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap;
  user-select: none; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s var(--boing), box-shadow 0.18s var(--boing), background-color 0.15s, color 0.15s;
}
.btn .i { width: 18px; height: 18px; margin-left: -3px; stroke-width: 2.4; transition: transform 0.35s var(--boing); }
.btn:hover { background: var(--bh); color: var(--bt); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:hover > .i:first-child { transform: rotate(-12deg) scale(1.15); }
.btn:active { transform: translate(3px, 3px) scale(1.04, 0.9); box-shadow: 0 0 0 var(--ink); transition-duration: 0.06s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; transform: none; box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { --bf: var(--purple); --bt: #ffffff; --bh: #9b47ff; }
.btn.ghost { --bf: transparent; --bt: var(--lilac-t); --bh: var(--face-2); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--text); }
.btn.danger { --bf: var(--tomato); --bt: var(--ink); --bh: #ff7166; }
.btn.danger-ghost { --bf: #44202f; --bt: var(--tomato-t); --bh: #55273a; }
.btn.warn-ghost { --bf: #41341a; --bt: var(--sun-t); --bh: #503f1e; }
.btn.ok-ghost { --bf: #17402f; --bt: var(--mint-t); --bh: #1d4f3b; }
.btn.ok { --bf: var(--mint); --bt: var(--ink); --bh: #64efb8; }
.btn.sm { height: 37px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn.xs { height: 31px; padding: 0 11px; font-size: 13.5px; border-radius: 10px; gap: 5px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.btn.xs:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.btn.xs:active { transform: translate(2px, 2px) scale(1.04, 0.9); box-shadow: 0 0 0 var(--ink); }
.btn.xs .i { width: 15px; height: 15px; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 18px; border-radius: 16px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.btn.lg:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn.lg:active { box-shadow: 0 0 0 var(--ink); }
.btn.block { width: 100%; }
.btn.jelly, .fchip.jelly, .seg-b.jelly, .tab.jelly, .ib.jelly, .seg-r.jelly span, .mseg button.jelly { animation: jelly 0.5s var(--snap); }
.btn.busy, .seg-b.busy, .mseg button.busy { pointer-events: none; }
.btn.busy::after, .seg-b.busy::after, .mseg button.busy::after {
  content: ""; width: 13px; height: 13px; margin-left: 4px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none;
}

.ib {
  width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 2px solid transparent; background: transparent; color: var(--text-2);
  transition: background-color 0.12s, color 0.12s, border-color 0.12s, transform 0.25s var(--boing), box-shadow 0.2s;
}
.ib:hover { background: var(--face-2); border-color: var(--ink); color: var(--text); transform: rotate(-6deg); }
.ib:active { transform: scale(0.88); }
.ib .i { width: 18px; height: 18px; }
.ib.ok { color: var(--ink); background: var(--mint); border-color: var(--ink); }

.bgroup { display: inline-flex; }
.bgroup form { display: flex; }
.bgroup form + form .btn { margin-left: -2.5px; }
.bgroup form:not(:first-child):not(:last-child) .btn { border-radius: 0; }
.bgroup form:first-child:not(:last-child) .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bgroup form:last-child:not(:first-child) .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bgroup .btn:hover { z-index: 1; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quick form { margin: 0; }
td .quick { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 10px;
  border-radius: 999px; border: 2px solid var(--ink);
  font: 600 13px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap;
  background: var(--cloud); color: var(--ink); box-shadow: var(--sh-sm);
  vertical-align: middle;
}
.chip.sm { height: 21px; padding: 0 8px; font-size: 12px; box-shadow: 1.5px 1.5px 0 var(--ink); }
.chip .cd { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.chip.ok, .chip.st-active, .chip.m-enforce, .chip.c-done, .chip.c-low { background: var(--mint); }
.chip.warn, .chip.m-log, .chip.c-sent, .chip.c-medium, .chip.lv-important, .chip.mode-test { background: var(--sun); }
.chip.bad, .chip.st-expired, .chip.c-failed, .chip.c-high, .chip.c-critical, .chip.lv-critical, .chip.mode-off { background: var(--tomato); }
.chip.st-disabled, .chip.m-off, .chip.c-queued { background: var(--slate); }
.chip.accent, .chip.lv-info, .chip.mode-normal { background: var(--lilac); }
.chip.mode-strict { background: var(--pink); }
.chip.srv { display: inline-block; line-height: 21px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--text); background: var(--face-3); }
a.chip.srv:hover { background: var(--lilac); color: var(--ink); }

.dot { position: relative; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #776b8f; border: 2px solid var(--ink); flex: none; }
.dot.on { background: var(--mint); }
.dot.partial { background: var(--sun); }
.dot.off { background: #776b8f; }
.dot.on.pulse { animation: dotHop 1.5s var(--snap) infinite; }

.live-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--mint); border: 2.5px solid var(--ink); color: var(--ink); font: 600 14px/1 var(--display);
  box-shadow: var(--sh-sm); transform: rotate(-3deg);
}
.live-tag .dot { background: var(--cream); }
.live-tag.stale { background: var(--sun); }
.live-tag.stale .dot { animation: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px;
  font: 600 13.5px/1 var(--display); background: var(--face-3); border: 2.5px solid var(--ink); color: var(--text);
  white-space: nowrap; box-shadow: var(--sh-sm); transition: background-color 0.3s;
}
.pill-on { background: var(--mint); color: var(--ink); }
.pill-on .dot { background: var(--cream); }
.pill-partial { background: var(--sun); color: var(--ink); }

.exp { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp.warn { color: var(--sun-t); }
.exp.bad { color: var(--tomato-t); }
.seen { color: var(--text-2); }
.seen.fresh { color: var(--mint-t); font-weight: 600; }
.seen-c { display: inline-flex; align-items: center; gap: 8px; }

.tw { overflow: auto; max-height: min(72vh, 760px); }
.tw.tall { max-height: min(70vh, 640px); }
.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.t thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 12px 12px; text-align: left; white-space: nowrap;
  font: 600 12.5px/1.2 var(--display); color: #eadff9; letter-spacing: 0.05em; text-transform: uppercase;
  background: #2e2150; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.t thead th.ta-r { text-align: right; }
.t td { padding: 13px 12px; border-bottom: 2px dashed #4d3d73; vertical-align: middle; color: var(--text-2); transition: background-color 0.12s; }
.t td:first-child, .t th:first-child { padding-left: 22px; }
.t td:last-child, .t th:last-child { padding-right: 20px; }
.t tbody tr:hover td { background: var(--face-2); }
.t tbody tr:not(.empty-row):not(.skel-row) .av { transition: transform 0.35s var(--boing); }
.t tbody tr:hover .av { transform: rotate(-8deg) scale(1.08); }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr[hidden] { display: none; }
.card:not(.flush) .t thead th { border-top: 0; background: transparent; }
.card:not(.flush) .t td:first-child, .card:not(.flush) .t th:first-child { padding-left: 0; }
.card:not(.flush) .t td:last-child, .card:not(.flush) .t th:last-child { padding-right: 0; }
.th-b { all: unset; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; color: inherit; }
.th-b::after { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #8f80ad; transition: transform 0.3s var(--boing), border-color 0.15s; }
.th-b:hover { color: var(--sun-t); }
.th-b:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
th[aria-sort="ascending"] .th-b, th[aria-sort="descending"] .th-b { color: var(--sun-t); }
th[aria-sort="ascending"] .th-b::after { border-top-color: var(--sun); transform: rotate(180deg); }
th[aria-sort="descending"] .th-b::after { border-top-color: var(--sun); }
.t .sel { width: 50px; padding-right: 0; }
.empty-row td { padding: 0 !important; background: none !important; }

.cell-srv, .cell-cu, .cell-pl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-srv .min0, .cell-cu .min0 { max-width: 260px; }
.cap { display: flex; flex-direction: column; gap: 6px; min-width: 66px; }
.cap .num { color: var(--text); font-weight: 650; }
.bar { display: block; width: 100%; height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--face-3); overflow: hidden; }
.bar-bg { fill: var(--face-3); }
.bar-fg { fill: var(--lilac); }
.bar.sc-mid .bar-fg { fill: var(--sun); }
.bar.sc-hi .bar-fg { fill: var(--tomato); }
.bar.sc-lo .bar-fg { fill: var(--mint); }
.score { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.score .bar { width: 84px; }
.score .num { color: var(--text); min-width: 42px; text-align: right; font-weight: 650; }
.ping { display: inline-flex; align-items: center; gap: 7px; }
.ping .dot { width: 10px; height: 10px; }
.ping.p-mid .dot { background: var(--sun); }
.ping.p-hi .dot { background: var(--tomato); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr); max-width: 560px; margin: 0 auto; align-items: center;
  gap: 10px 20px; padding: 34px 22px 32px; text-align: left;
}
.mascot { width: 88px; height: 88px; overflow: visible; animation: floatY 3.4s ease-in-out infinite; }
.m-sh { fill: #0f0a17; animation: shadowSquish 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-body { fill: var(--purple); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }
.m-shine { fill: none; stroke: #d6b2ff; stroke-width: 3.2; stroke-linecap: round; }
.m-eye { fill: #ffffff; stroke: var(--ink); stroke-width: 2.4; }
.m-pupil { fill: var(--ink); }
.m-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.6s ease-in-out infinite; }
.m-blush { fill: var(--pink); }
.m-mouth { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.empty-b {
  position: relative; padding: 13px 18px 14px; border-radius: 18px;
  background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--ink);
  animation: bubbleIn 0.55s var(--boing) 0.15s both; transform-origin: 0 50%;
}
.empty-b::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 15px; height: 15px; margin-top: -8px;
  background: var(--cream); border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
}
.empty-ic {
  position: absolute; top: -15px; right: -12px; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm); transform: rotate(12deg);
}
.empty-ic .i { width: 16px; height: 16px; stroke-width: 2.5; }
.empty-t { color: var(--ink); font: 600 17px/1.3 var(--display); padding-right: 12px; }
.empty-s { color: #463a5c; font-size: 13.5px; margin-top: 3px; font-weight: 500; }
.empty > .btn { grid-column: 1 / -1; justify-self: center; margin-top: 10px; }

.skel { display: block; border-radius: 9px; background: var(--face-3); animation: skelPulse 0.9s ease-in-out infinite alternate; }
.skel-line { height: 13px; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.skel-chart { position: absolute; inset: 8px 0 24px; border-radius: 14px; border: 2.5px dashed var(--line); background: transparent; }
.skel-block { height: 120px; border-radius: 16px; margin-bottom: 14px; }
.skel-row td { padding: 16px 24px !important; }
.skel-row:nth-child(2) .skel { animation-delay: 0.15s; }
.skel-row:nth-child(3) .skel { animation-delay: 0.3s; }
.skel-row:nth-child(4) .skel { animation-delay: 0.45s; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 3px solid var(--ink); background: #31234f; }
.toolbar + .tw .t thead th { border-top: 0; }
.search { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; flex: 1; max-width: 560px; min-width: 220px; }
.search .in-i { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; z-index: 1; }
.search input[type="search"] { padding-left: 40px; }
.search.sm { flex: none; width: 260px; min-width: 0; }
.search.sm input { height: 38px; font-size: 14px; }

.fchips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--face-3); border: 2.5px solid var(--ink); color: var(--text);
  font: 600 14.5px/1 var(--display); white-space: nowrap; box-shadow: var(--sh-sm);
  transition: transform 0.2s var(--boing), box-shadow 0.2s var(--boing), background-color 0.15s, color 0.15s;
}
.fchip:hover { color: var(--text); transform: translate(-1px, -2px); box-shadow: 3px 4px 0 var(--ink); }
.fchip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.fchip .n { min-width: 22px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12px/1 var(--display); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.fchip.on { background: var(--sun); color: var(--ink); }
.fchip.on:hover { color: var(--ink); }
.fchip.on.f-active { background: var(--mint); }
.fchip.on.f-expired { background: var(--tomato); }
.fchip.on.f-disabled, .fchip.on.f-revoked { background: var(--slate); }
.fchip.on .n { background: var(--ink); color: var(--sun); }
.fchips.origins { padding: 14px 24px; border-bottom: 2.5px dashed var(--line); }
.flabel { display: block; font: 600 13px/1.2 var(--display); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 4px; }
.fchips .flabel { margin-bottom: 0; }

.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding: 13px 24px; color: var(--text); border-bottom: 2.5px dashed var(--line); background: #33255a; }
.filter .i { width: 18px; height: 18px; color: var(--sun); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 24px; border-top: 2.5px dashed var(--line); }
.bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 24px; border-bottom: 2.5px dashed var(--line); background: #241a38; transition: background-color 0.2s; }
.bulk-n { color: var(--text-3); font-size: 14px; }
.bulk.has .bulk-n { color: var(--text); font-weight: 650; }
.bulk.has { background: #42202f; }

.idbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px;
  background: var(--face-3); border: 2px solid var(--ink); color: var(--text); box-shadow: var(--sh-sm);
  font: 600 13.5px/1 var(--display); white-space: nowrap; transition: transform 0.2s var(--boing), box-shadow 0.2s;
}
.idbtn .i { width: 15px; height: 15px; }
.idbtn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: var(--lilac); color: var(--ink); }
.idbtn:hover .dim { color: #3b2f4f; }
.pop[popover] { margin: auto; padding: 0; width: 350px; max-width: calc(100vw - 24px); max-height: 60vh; overflow: auto; border-radius: 18px; border: 3px solid var(--ink); background: var(--face); color: var(--text); box-shadow: var(--sh-lg); }
.pop[popover].placed { margin: 0; inset: auto; }
.pop[popover]::backdrop { background: transparent; }
.pop[popover]:popover-open { animation: dropPop 0.32s var(--boing) both; transform-origin: 20% 0; }
.pop-h { padding: 11px 15px; font: 600 14px/1.2 var(--display); color: var(--text-2); border-bottom: 2.5px dashed var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idlist { list-style: none; margin: 0; padding: 8px; }
.idlist li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.idlist li:hover { background: var(--face-2); }
.itype { flex: none; min-width: 60px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--lilac); color: var(--ink); border: 2px solid var(--ink); font: 600 11.5px/1 var(--display); display: inline-flex; align-items: center; justify-content: center; }

.cbx {
  appearance: none; -webkit-appearance: none; margin: 0; width: 21px; height: 21px; border-radius: 7px; flex: none;
  border: 2.5px solid var(--ink); background: var(--cloud); position: relative; vertical-align: middle;
  box-shadow: 1.5px 1.5px 0 var(--ink); transition: background-color 0.12s, transform 0.25s var(--boing);
}
.cbx:hover { transform: rotate(-8deg) scale(1.08); }
.cbx:checked, .cbx:indeterminate { background: var(--sun); }
.cbx:checked { animation: tick 0.35s var(--boing); }
.cbx:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.cbx:indeterminate::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6.5px; height: 3px; border-radius: 2px; background: var(--ink); }

.flash {
  position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px 13px 16px; margin-bottom: 22px;
  border-radius: 16px; border: 3px solid var(--ink); box-shadow: var(--sh); color: var(--ink);
  font-size: 14.5px; font-weight: 600; animation: flashIn 0.8s var(--snap) both;
}
.flash .i { margin-top: 1px; color: var(--ink); stroke-width: 2.5; }
.flash > span { flex: 1; }
.flash.ok { background: var(--mint); }
.flash.bad { background: var(--tomato); }
.flash.warn { background: var(--sun); }
.flash .x { margin: -7px -7px -7px 0; width: 32px; height: 32px; color: var(--ink); }
.flash .x:hover { background: var(--ink); color: #fff; }
.flash[hidden] { display: none; }

.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > .flabel, legend.flabel { font: 600 15.5px/1.3 var(--display); color: var(--text); text-transform: none; letter-spacing: 0.01em; }
legend.flabel { padding: 0; margin-bottom: 8px; }
.field .hint { margin-left: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
:where(input:not([type]), input[type="text"], input[type="search"], input[type="password"], input[type="date"], select, textarea) {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--well); border: 2.5px solid var(--ink); border-radius: 13px;
  color: var(--text); font: inherit; font-size: 15px;
  box-shadow: inset 0 3px 0 var(--well-2);
  transition: border-color 0.15s, box-shadow 0.2s var(--boing), background-color 0.15s;
}
:where(textarea) { height: auto; min-height: 86px; padding: 11px 14px; line-height: 1.55; resize: vertical; }
:where(input, textarea)::placeholder { color: #a497bd; }
:where(input, select, textarea):hover { border-color: #6c57a0; }
:where(input, select, textarea):focus { outline: none; border-color: var(--lilac); background-color: #281c41; box-shadow: 3px 3px 0 var(--purple); }
input:disabled { opacity: 0.5; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
input.mono { font-family: var(--mono); font-size: 14px; }
.field.invalid input, .field.invalid textarea { border-color: var(--tomato); box-shadow: 3px 3px 0 var(--tomato); animation: shake 0.45s var(--snap); }
.ferr { display: flex; align-items: center; gap: 7px; color: var(--tomato-t); font-size: 13px; font-weight: 600; animation: fadeIn 0.2s both; }
.ferr .i { width: 15px; height: 15px; }
.counter { align-self: flex-end; margin-top: -3px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.counter.near { color: var(--sun-t); font-weight: 700; }
.actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic .i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; z-index: 1; }
.input-ic input { padding-left: 42px; height: 50px; font-size: 15.5px; }
.input-ic:focus-within .i { color: var(--lilac-t); }

.sw-row { display: flex; align-items: flex-start; gap: 13px; font-size: 14.5px; font-weight: 600; color: var(--text); padding: 2px 0; }
.sw-row .hint { display: block; margin: 2px 0 0; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; position: relative;
  width: 48px; height: 28px; border-radius: 999px; background: var(--face-3); border: 2.5px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(18, 13, 26, 0.35), 1.5px 1.5px 0 var(--ink);
  transition: background-color 0.2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--cloud); border: 2px solid var(--ink);
  transition: transform 0.45s var(--boing-2), background-color 0.2s;
}
.switch:checked { background: var(--mint); }
.switch:checked::after { transform: translateX(20px); background: #fff; }
.switch:active::after { width: 24px; }
.switch:checked:active::after { transform: translateX(15px); }
.switch:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.flags legend { float: left; width: 100%; margin-bottom: 2px; }
.flags legend + * { clear: both; }
.flags { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px !important; border: 2.5px dashed var(--line) !important; border-radius: 18px; background: #30234f; }

.seg { display: flex; gap: 10px; padding: 0; border-radius: 0; background: none; border: 0; }
.seg-mode { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seg-b {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 16px;
  background: var(--face-3); border: 2.5px solid var(--ink); color: var(--text); text-align: left; box-shadow: 3px 3px 0 var(--ink);
  font: inherit; transition: transform 0.2s var(--boing), box-shadow 0.2s var(--boing), background-color 0.15s;
}
.seg-b:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.seg-b:active:not(:disabled) { transform: translate(3px, 3px) scale(1.03, 0.92); box-shadow: 0 0 0 var(--ink); }
.seg-b b { font: 600 17px/1.2 var(--display); color: var(--text); }
.seg-b span { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.seg-b[aria-pressed="true"] { background: var(--lilac); transform: rotate(-1.5deg); }
.seg-b[aria-pressed="true"] b { color: var(--ink); }
.seg-b[aria-pressed="true"] span { color: #33284a; }
.seg-b.seg-off[aria-pressed="true"] { background: var(--tomato); }
.seg-b:disabled { opacity: 0.5; box-shadow: 1px 1px 0 var(--ink); }
.seg-b.busy { flex-direction: row; align-items: center; }
.seg-radio { display: inline-flex; width: 100%; }
.seg-r { flex: 1; position: relative; }
.seg-r input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg-r span {
  display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px;
  font: 600 15px/1 var(--display); color: var(--text); background: var(--face-3); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm);
  transition: background-color 0.15s, transform 0.2s var(--boing);
}
.seg-r:hover span { transform: translate(-1px, -1px); }
.seg-r input:checked + span { background: var(--lilac); color: var(--ink); transform: rotate(-2deg); }
.seg-r.lv-important input:checked + span { background: var(--sun); }
.seg-r.lv-critical input:checked + span { background: var(--tomato); }
.seg-r input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }

.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 24px; overflow: hidden; }
.fact { display: flex; flex-direction: column; gap: 7px; padding: 16px 20px; border-left: 2.5px dashed var(--line); min-width: 0; transition: background-color 0.15s; }
.fact:hover { background: var(--face-2); }
.fact:first-child { border-left: 0; }
.fact-l { font: 600 12.5px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.fact-v { display: flex; align-items: center; gap: 8px; color: var(--text); font: 600 17px/1.25 var(--display); min-width: 0; }
.fact-v.mono { font-family: var(--mono); font-size: 14.5px; font-weight: 700; }
.facts + .flash { margin-top: 0; }

.hero { padding: 0; margin-bottom: 26px; overflow: hidden; }
.hero-top {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px 22px; flex-wrap: wrap;
  background-color: var(--purple);
  background-image: radial-gradient(#9a47ff 1.8px, transparent 2.1px);
  background-size: 18px 18px;
  border-bottom: 3px solid var(--ink);
}
.hero .av-lg { transform: rotate(-6deg); background: var(--hc); }
.hero-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-name h1 { font-size: 32px; overflow-wrap: anywhere; }
.hero-name .chip, .hero-name .pill { transform: rotate(-2deg); }
.hero-sub { margin-top: 6px; color: #ffffff; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 2px 0; flex-wrap: wrap; min-width: 0; }
.hs { min-width: 0; }
.hs + .hs::before { content: "\2022"; padding: 0 9px; color: #e3cbff; }
.hero-sub .host { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; }
.pop.menu[popover] { width: 230px; }
.menu-b { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.menu-b form { margin: 0; }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: 12px; border: 2px solid transparent; background: none; color: var(--text); font: 600 15px/1 var(--display); text-align: left; }
.menu-i:hover, .menu-i:focus-visible { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.menu-i .i { width: 17px; height: 17px; color: currentColor; }
td .quick .btn .i { width: 13px; height: 13px; margin: 0 -3px 0 0; }
.hero-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-a form { margin: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); }
.hk, .hf { display: flex; flex-direction: column; gap: 7px; padding: 18px 24px; border-left: 2.5px dashed var(--line); min-width: 0; color: var(--text); transition: background-color 0.15s; }
.hf:hover { background: var(--face-2); }
.hk { border-left: 0; }
.hf > .chip { align-self: flex-start; }
.hk-l { display: flex; align-items: center; gap: 6px; font: 600 12.5px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hk-l .i { width: 15px; height: 15px; }
.hk-s { font-size: 12.5px; color: var(--text-3); }
.hk-s code { color: var(--text-2); }
.keybox {
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px; border-radius: 15px; max-width: 480px;
  background: var(--well-2); border: 2.5px solid var(--ink); box-shadow: inset 0 3px 0 #0c0814;
}
.key { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14.5px; font-weight: 700; letter-spacing: 0.04em; color: #f3e8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 7px; transition: color 0.2s; }
.js .keybox.is-masked .key {
  color: transparent; user-select: none;
  background: repeating-linear-gradient(-45deg, var(--face-3) 0 7px, var(--face) 7px 14px);
}
.keybox .ib { width: 34px; height: 34px; background: var(--face-3); border-color: var(--ink); color: var(--text); box-shadow: var(--sh-sm); }
.keybox .ib:hover { background: var(--sun); color: var(--ink); }
.keybox .ib.ok { background: var(--mint); color: var(--ink); }

.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 12px 9px; margin: 0 0 24px; padding: 8px 8px 12px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 13px; flex: none;
  color: var(--text-2); font: 600 15px/1 var(--display); white-space: nowrap;
  background: var(--face); border: 2.5px solid var(--ink); border-radius: 15px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s var(--boing), box-shadow 0.2s var(--boing), background-color 0.15s, color 0.15s;
}
.tab .i { width: 18px; height: 18px; transition: transform 0.35s var(--boing); }
.tab:hover { color: var(--text); background: var(--face-2); transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.tab:hover .i { transform: rotate(-12deg) scale(1.12); }
.tab.on { color: #fff; background: var(--purple); animation: tabJump 0.6s var(--snap); }
.tab.on .i { color: var(--sun); }
.tab-ink { display: none; }
.tab .n:empty { display: none; }
.tab .n { min-width: 23px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12px/1 var(--display); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tab .n.hot { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); }
.tabpanel[hidden] { display: none; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 11px 18px; margin: 0; font-size: 14px; align-items: center; }
.kv dt { color: var(--text-3); font-weight: 500; }
.kv dd { margin: 0; color: var(--text); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv-h { margin: 20px 0 12px; padding-top: 16px; border-top: 2.5px dashed var(--line); font: 600 16px/1.2 var(--display); color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mini {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px;
  background: var(--well); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.25s var(--boing), box-shadow 0.25s var(--boing);
}
.mini:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
.mini .num { display: inline-block; font: 700 30px/1.05 var(--display); color: var(--text); text-shadow: 2px 2px 0 var(--ink); }
.mini span:last-child { font-size: 12.5px; color: var(--text-3); }
.danger-zone { overflow: hidden; padding-top: 32px; }
.danger-zone::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--sun) 0 12px, var(--ink) 12px 24px);
}
.danger-zone h2 { color: var(--tomato-t); }
.danger-zone h2::before { display: none; }
.danger-zone h2 .i { color: var(--tomato); width: 20px; height: 20px; stroke-width: 2.5; }
.danger-zone .hint { display: block; margin-bottom: 16px; font-size: 13px; line-height: 1.6; color: var(--text-2); }

.mods { display: flex; flex-direction: column; gap: 22px; }
.mgroup-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mgroup-h h3 { font: 600 15px/1.2 var(--display); color: var(--text); text-transform: uppercase; letter-spacing: 0.1em; }
.mgroup-h .n { color: var(--ink); background: var(--cloud); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; font: 700 12px/1.3 var(--display); }
.mgroup-h .mstat { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.mod {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 16px; min-width: 0;
  background: var(--well); border: 2.5px solid var(--ink); border-left-width: 9px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.25s var(--boing), box-shadow 0.25s var(--boing);
}
.mod:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.mod[data-state="enforce"] { border-left-color: var(--mint); }
.mod[data-state="log"] { border-left-color: var(--sun); }
.mod[data-state="off"] { border-left-color: var(--tomato); }
.mod[hidden] { display: none; }
.mod-t { min-width: 0; }
.mod-t .strong { display: block; font: 600 15.5px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-t .mono { color: var(--text-3); font-size: 12px; }
.mseg { display: inline-flex; flex: none; padding: 3px; gap: 3px; border-radius: 13px; background: var(--well-2); border: 2px solid var(--ink); }
.mseg button {
  display: inline-flex; align-items: center; height: 29px; padding: 0 11px; border-radius: 9px; border: 2px solid transparent;
  background: transparent; color: var(--text-3); font: 600 13.5px/1 var(--display); text-transform: capitalize;
  transition: background-color 0.15s, color 0.15s, transform 0.25s var(--boing);
}
.mseg button:hover:not(:disabled) { color: var(--text); background: var(--face-3); }
.mseg button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.mseg button[aria-pressed="true"].m-enforce { background: var(--mint); }
.mseg button[aria-pressed="true"].m-log { background: var(--sun); }
.mseg button[aria-pressed="true"].m-off { background: var(--tomato); }
.mseg button:disabled:not([aria-pressed="true"]) { opacity: 0.5; }

.posts { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.post {
  position: relative; display: flex; border-radius: var(--r); background: var(--face); border: 3px solid var(--ink);
  box-shadow: var(--sh-lg); overflow: hidden; transition: transform 0.25s var(--boing), box-shadow 0.25s var(--boing);
}
.post:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
.post[hidden] { display: none; }
.post-rail { width: 14px; flex: none; background: var(--lilac); border-right: 3px solid var(--ink); }
.lvl-important .post-rail { background: var(--sun); }
.lvl-critical .post-rail { background: var(--tomato); }
.post[data-state="draft"] .post-rail { background: repeating-linear-gradient(-45deg, var(--slate) 0 6px, var(--face-3) 6px 12px); }
.post-main { flex: 1; min-width: 0; padding: 18px 22px 20px; }
.post-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.post-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.post-a { display: flex; gap: 8px; }
.post-a form { margin: 0; }
.post h3 { font-size: 20px; }
.post-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-3); font-size: 13px; }
.post-meta .i { width: 15px; height: 15px; }
.post-body { margin-top: 10px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.preview .pv { padding: 18px; border-radius: 16px; background: var(--well-2); border: 2.5px solid var(--ink); box-shadow: inset 0 3px 0 #0c0814; }
.pv-h { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pv-t { margin-bottom: 8px; overflow-wrap: anywhere; }
.pv-b { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; max-height: 520px; overflow: auto; }
.tip { background: #3d2a6e; }
.tip-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tip-h .i { width: 34px; height: 34px; padding: 6px; flex: none; color: var(--ink); background: var(--sun); border: 2.5px solid var(--ink); border-radius: 11px; box-shadow: var(--sh-sm); transform: rotate(-8deg); stroke-width: 2.5; }
.steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 11px; color: var(--text-2); font-size: 14px; }
.steps b { color: var(--text); font-weight: 700; }
.steps li::marker { color: var(--sun); font-family: var(--display); font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .i { width: 22px; height: 22px; padding: 3px; color: var(--ink); background: var(--mint); border: 2px solid var(--ink); border-radius: 50%; stroke-width: 3; }
.acct { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 2.5px dashed var(--line); }
.acct strong { font: 600 18px/1.2 var(--display); }

.strength { display: flex; gap: 5px; margin-top: 2px; }
.strength i { flex: 1; height: 10px; border-radius: 999px; background: var(--face-3); border: 2px solid var(--ink); transition: background-color 0.2s, transform 0.3s var(--boing); }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--tomato); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--sun); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--lilac); }
.strength[data-s="4"] i { background: var(--mint); }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 14px; width: 390px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
  pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px 18px; border-radius: 20px; border: 3px solid var(--ink);
  background: var(--face); box-shadow: var(--sh-lg); color: var(--text); font-size: 14px; overflow: hidden;
  animation: toastIn 0.6s var(--snap) both, toastWiggle 0.55s ease-in-out 0.6s;
}
.toast.out { animation: toastOut 0.3s ease-in forwards; }
.toast-ic {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--sh-sm); transform: rotate(-8deg);
}
.toast-ic .i { width: 17px; height: 17px; stroke-width: 2.6; }
.toast.ok .toast-ic { background: var(--mint); }
.toast.bad .toast-ic { background: var(--tomato); }
.toast-b { flex: 1; min-width: 0; }
.toast-t { font: 600 16px/1.3 var(--display); overflow-wrap: anywhere; }
.toast-s { margin-top: 3px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.toast .ib { width: 30px; height: 30px; margin: -4px -4px 0 0; }
.toast .ib .i { width: 15px; height: 15px; }
.steps-t { display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 12.5px/1 var(--display); color: var(--text-3); }
.steps-t span { display: inline-flex; align-items: center; gap: 6px; }
.steps-t span::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--face-3); border: 2px solid var(--ink); transition: background-color 0.2s, transform 0.3s var(--boing); }
.steps-t span + span { padding-left: 18px; position: relative; }
.steps-t span + span::after { content: ""; position: absolute; left: 3px; top: 50%; width: 11px; border-top: 2.5px dashed var(--line); }
.steps-t span.on { color: var(--text); }
.steps-t span.on::before { background: var(--sun); animation: dotHop 1s var(--snap) infinite; }
.steps-t span.done::before { background: var(--mint); }
.steps-t span.fail { color: var(--tomato-t); }
.steps-t span.fail::before { background: var(--tomato); }
.toast-p { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--lilac); border-top: 2px solid var(--ink); transform-origin: 0 50%; animation: toast-life linear forwards; }
.toast.ok .toast-p { background: var(--mint); }
.toast.bad .toast-p { background: var(--tomato); }

dialog.modal {
  width: min(480px, calc(100vw - 32px)); padding: 0; border-radius: 24px;
  background: var(--face); color: var(--text); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  overflow: visible;
}
dialog.modal[open] { animation: modalPop 0.55s var(--snap) both; }
dialog.modal::backdrop { background: rgba(11, 10, 15, 0.74); animation: fadeIn 0.2s both; }
dialog.modal form { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 20px; margin: 0; }
.mdl-h { display: flex; gap: 16px; align-items: flex-start; }
.mdl-ic {
  width: 48px; height: 48px; border-radius: 15px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-8deg);
  animation: wiggle 0.7s var(--snap) 0.35s;
}
.mdl-ic.danger { background: var(--tomato); }
.mdl-ic .i { width: 22px; height: 22px; stroke-width: 2.5; }
dialog.modal h2 { font-size: 21px; margin-top: 2px; }
dialog.modal p { color: var(--text-2); font-size: 14px; margin-top: 5px; overflow-wrap: anywhere; }
dialog.modal .field { margin-top: 2px; }
dialog.modal .sw-row { font-size: 14px; }
dialog.modal .actions { margin-top: 4px; padding-top: 16px; border-top: 2.5px dashed var(--line); }

.lg-page, .err-page { min-height: 100vh; overflow-x: hidden; }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.spk { position: absolute; fill: var(--sun); stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; overflow: visible; animation: twinkle 2.8s ease-in-out infinite alternate; }
.spk-1 { left: 7%; top: 13%; width: 38px; height: 38px; }
.spk-2 { right: 9%; top: 11%; width: 28px; height: 28px; fill: var(--lilac); animation-delay: -0.8s; }
.spk-3 { left: 13%; bottom: 15%; width: 24px; height: 24px; fill: var(--mint); animation-delay: -1.6s; }
.spk-4 { right: 14%; bottom: 20%; width: 42px; height: 42px; animation-delay: -2.2s; }
.spk-5 { left: 44%; top: 5%; width: 20px; height: 20px; fill: var(--pink); animation-delay: -1.1s; }
.spk-6 { right: 38%; bottom: 5%; width: 26px; height: 26px; fill: var(--lilac); animation-delay: -0.4s; }

.lg-main {
  position: relative; z-index: 1; min-height: 100vh; width: 100%;
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 430px); justify-content: center; align-content: center; align-items: center;
  gap: 26px 64px; padding: 48px 24px 36px;
}
.lg-hello { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lg-bubble {
  position: relative; align-self: flex-start; margin-left: 30px; padding: 14px 20px 15px; border-radius: 22px; max-width: 320px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  animation: bubbleIn 0.6s var(--boing) 0.45s both, bubbleFloat 4s ease-in-out 1.2s infinite; transform-origin: 20% 100%;
}
.lg-bubble::after {
  content: ""; position: absolute; left: 54px; bottom: -12px; width: 20px; height: 20px;
  background: var(--cream); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg);
}
.lg-bubble b { display: block; font: 700 25px/1.15 var(--display); }
.lg-bubble span { display: block; margin-top: 3px; font: 500 16px/1.35 var(--display); color: #3e3253; }
.lg-mascot { position: relative; width: 300px; max-width: 100%; }
.lg-mascot img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  filter: drop-shadow(5px 6px 0 var(--ink));
  animation: bob 3.6s ease-in-out infinite, wave 6s ease-in-out 1.4s infinite;
  transform-origin: 50% 85%;
}
.lg-shadow {
  position: absolute; left: 50%; bottom: 0; z-index: 0; width: 190px; height: 20px; margin-left: -95px;
  background: var(--ink); border-radius: 50%; animation: shadowSquish 3.6s ease-in-out infinite;
}
.lg-card {
  position: relative; width: 100%; padding: 34px 30px 28px; border-radius: 28px;
  background: var(--face); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink);
  animation: popIn 0.7s var(--snap) 0.1s both;
}
.lg-pn {
  position: absolute; top: -18px; left: 26px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 11px; box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-3deg);
}
.login-h { text-align: left; margin: 4px 0 22px; }
.login-eyebrow { margin: 0 0 8px; color: var(--lilac-t); font: 600 13px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.login-h h1 { font-size: 28px; line-height: 1.12; }
.lg-card .login-eyebrow { display: none; }
.login-h p:not(.login-eyebrow) { margin-top: 9px; color: var(--text-3); font-size: 14px; }
.lg-card .stack { gap: 16px; }
.lg-card .pw-box input { padding-right: 50px; }
.pw-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid transparent; border-radius: 11px; background: transparent; color: var(--text-3);
  transition: color 0.12s, background-color 0.12s, border-color 0.12s;
}
.pw-eye[hidden] { display: none; }
.pw-eye:hover { color: var(--ink); background: var(--sun); border-color: var(--ink); }
.input-ic .pw-eye .i { position: static; width: 19px; height: 19px; color: inherit; }
.pw-eye .pw-hide, .pw-eye[aria-pressed="true"] .pw-show { display: none; }
.pw-eye[aria-pressed="true"] .pw-hide { display: block; }
.caps-warn { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: var(--sun-t); font-size: 13px; font-weight: 650; }
.caps-warn:empty { display: none; }
.caps-warn .i { width: 16px; height: 16px; }
.lg-card .flash { margin-bottom: 18px; }
.lg-go { margin-top: 6px; }
.lg-go .i { transition: transform 0.35s var(--boing); }
.lg-go:hover .i:last-child { transform: translateX(5px); }
.login-alt { margin-top: 16px; text-align: center; font-size: 14px; }
.lg-card .login-alt a { color: var(--lilac-t); font-weight: 600; }
.lg-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 13px; text-align: center; animation: fadeIn 0.6s 0.6s both; }
.lg-foot .i { width: 16px; height: 16px; color: var(--sun); }

.err { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.err-card {
  width: 100%; max-width: 470px; padding: 30px 32px 32px; border-radius: 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--face); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink);
  animation: popIn 0.7s var(--snap) both;
}
.err-art { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.err-bubble { align-self: center; margin-left: 0; max-width: 300px; }
.err-bubble::after { left: 50%; margin-left: -10px; }
.err-mascot { width: 150px; height: auto; filter: drop-shadow(4px 5px 0 var(--ink)); animation: bob 3.2s ease-in-out infinite, wave 5s ease-in-out 1s infinite; transform-origin: 50% 85%; }
.errcode {
  font: 700 104px/0.9 var(--display); letter-spacing: 0.02em; color: var(--sun);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink);
  animation: errWobble 2.8s ease-in-out 0.8s infinite; transform-origin: 50% 80%;
}
.err-card p { color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

.banprev { margin: 0 0 16px; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); background: var(--well-2); box-shadow: var(--sh); }
.banprev-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #2a1450; border-bottom: 3px solid var(--ink); }
.banprev-h img { width: 46px; height: 46px; flex: none; filter: drop-shadow(2px 2px 0 var(--ink)); transform: rotate(-6deg); }
.banprev-h b { font: 700 21px/1.1 var(--display); letter-spacing: 0.01em; color: var(--tomato); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.banprev-m { margin: 0; padding: 13px 14px 4px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.banprev-f { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 9px 14px 14px; padding: 10px 12px; border-radius: 12px; background: #3a1c29; border: 2.5px solid var(--ink); font-size: 13px; }
.banprev-f dt { color: var(--text-3); }
.banprev-f dd { margin: 0; }

.staff-state { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; }
.staff-state .chip { margin-right: 4px; }
.staff-rows { margin: 0 0 16px; }
.staff-rows li { display: flex; align-items: center; gap: 10px; }
.staff-rows li .min0 { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.staff-rows form { margin: 0; }
.staff-form { padding-top: 14px; border-top: 2.5px dashed var(--line); }

.perms { gap: 12px; }
.creds { margin: 4px 0 16px; }
.creds dd { text-align: left; }
.creds + .field .keybox, .card .keybox.otp-uri { max-width: none; }
.otp-uri .key { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; letter-spacing: 0; font-weight: 600; }
input.otp { letter-spacing: 0.35em; font-size: 19px; font-weight: 700; }
.audit .strong { font-weight: 650; }
.audit-rows li { gap: 12px; padding-left: 22px; padding-right: 22px; }
.audit-rows li:first-child { border-top: 2.5px dashed var(--line); padding-top: 11px; }
.audit-rows li > .min0 { flex: 1; }
.portal .hero-a .btn .i { margin-right: 2px; }
select { width: 100%; }
.card > p + form, .card > .hint + form { margin-top: 14px; }

.bump { display: inline-block; animation: bump 0.55s var(--boing); }
.cnt { display: inline-block; }
.no-tr, .no-tr * { transition: none !important; }
.ch-tip[hidden], .mgroup[hidden] { display: none; }

.btip {
  position: fixed; z-index: 300; pointer-events: none; max-width: 300px;
  padding: 7px 12px; border-radius: 13px; background: var(--cream); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 600 13.5px/1.3 var(--display); overflow-wrap: anywhere;
  transform: translate(-50%, calc(-100% - 14px));
  animation: tipPop 0.28s var(--boing) both;
}
.btip::after {
  content: ""; position: absolute; left: var(--tx, 50%); bottom: -8px; width: 12px; height: 12px; margin-left: -6px;
  background: var(--cream); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
}
.btip.below { transform: translate(-50%, 14px); }
.btip.below::after { bottom: auto; top: -8px; transform: rotate(-135deg); }
.btip[hidden] { display: none; }

.burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 400; pointer-events: none; }
.burst i {
  position: absolute; left: -2.5px; top: -6px; width: 5px; height: 12px; border-radius: 3px;
  background: var(--sun); border: 1.5px solid var(--ink);
  transform: rotate(var(--a)) translateY(-10px) scaleY(0.4); opacity: 0;
  animation: burstOut 0.5s var(--snap) forwards;
}
.burst i:nth-child(even) { background: var(--lilac); }
.burst i:nth-child(3n) { background: var(--mint); }

.page .card, .page .kpi, .page .ph, .page .brand-strip, .page .tabs, .page .post, .page .flash {
  animation: popIn 0.7s var(--snap) backwards;
  animation-delay: calc((var(--p, 0) + var(--g, 0) + var(--c, 0)) * 70ms + 30ms);
}
.page .brand-strip { animation-name: posterIn; }
.page .srv > .brand-strip { animation-name: popIn; }
.page .flash { animation: flashIn 0.8s var(--snap) both; }
.page > :nth-child(2) { --p: 1; } .page > :nth-child(3) { --p: 2; } .page > :nth-child(4) { --p: 3; } .page > :nth-child(n+5) { --p: 4; }
.grid > :nth-child(2), .kpis > :nth-child(2) { --g: 1; } .grid > :nth-child(3), .kpis > :nth-child(3) { --g: 2; } .grid > :nth-child(4), .kpis > :nth-child(4) { --g: 3; }
.grid > :nth-child(5) { --g: 4; } .grid > :nth-child(n+6) { --g: 5; }
.col > :nth-child(2) { --c: 1; } .col > :nth-child(3) { --c: 2; } .col > :nth-child(4) { --c: 3; } .col > :nth-child(n+5) { --c: 4; }
.dash-head > .brand-strip { --g: 2; }
.tabpanel { --p: 0; }
.page .tabpanel .card { animation-duration: 0.6s; animation-delay: calc((var(--g, 0) + var(--c, 0)) * 55ms + 30ms); }
.posts > :nth-child(2) { --g: 1; } .posts > :nth-child(3) { --g: 2; } .posts > :nth-child(n+4) { --g: 3; }

@keyframes popIn {
  0% { opacity: 0; transform: translateY(22px) scale(0.92) rotate(-1deg); }
  55% { opacity: 1; transform: translateY(-5px) scale(1.02) rotate(0.4deg); }
  78% { transform: translateY(2px) scale(0.995); }
  100% { opacity: 1; transform: none; }
}
@keyframes posterIn {
  0% { opacity: 0; transform: translateY(-26px) rotate(-8deg) scale(0.9); }
  55% { opacity: 1; transform: translateY(4px) rotate(4deg) scale(1.02); }
  80% { transform: rotate(0.6deg); }
  100% { opacity: 1; transform: rotate(1.6deg); }
}
@keyframes dropPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.85); }
  60% { opacity: 1; transform: translateY(2px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes tipPop {
  0% { opacity: 0; scale: 0.6; }
  100% { opacity: 1; scale: 1; }
}
@keyframes tabJump {
  0% { transform: none; }
  28% { transform: translateY(-9px) scale(0.96, 1.07); }
  52% { transform: translateY(0) scale(1.08, 0.9); }
  72% { transform: translateY(-3px) scale(0.98, 1.02); }
  100% { transform: none; }
}
@keyframes jelly {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.1, 0.88); }
  45% { transform: scale(0.94, 1.07); }
  65% { transform: scale(1.04, 0.97); }
  82% { transform: scale(0.99, 1.01); }
  100% { transform: scale(1, 1); }
}
@keyframes wiggle {
  0% { rotate: 0deg; }
  20% { rotate: -14deg; }
  40% { rotate: 11deg; }
  60% { rotate: -7deg; }
  80% { rotate: 3deg; }
  100% { rotate: 0deg; }
}
@keyframes dotHop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(-5px) scale(0.9, 1.1); }
  34% { transform: translateY(0) scale(1.25, 0.75); }
  44% { transform: translateY(-1.5px) scale(0.96, 1.04); }
}
@keyframes barBoing {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1.16); }
  75% { transform: scaleY(0.94); }
  90% { transform: scaleY(1.03); }
  100% { transform: scaleY(1); }
}
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes areaIn { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: none; } }
@keyframes sparkIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes growX { 0% { transform: scaleX(0); } 70% { transform: scaleX(1.04); } 100% { transform: scaleX(1); } }
@keyframes doodleDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes toastIn {
  0% { opacity: 0; transform: translateX(130%) rotate(8deg); }
  60% { opacity: 1; transform: translateX(-12px) rotate(-2deg); }
  80% { transform: translateX(4px) rotate(0.6deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes toastWiggle {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -3deg; }
  40% { rotate: 2.5deg; }
  60% { rotate: -1.5deg; }
  80% { rotate: 0.8deg; }
}
@keyframes toastOut { to { opacity: 0; transform: translateX(120%) rotate(10deg); } }
@keyframes toast-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.55) rotate(-4deg); }
  55% { opacity: 1; transform: scale(1.06) rotate(1.2deg); }
  75% { transform: scale(0.97) rotate(-0.4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes flashIn {
  0% { opacity: 0; transform: translateY(-14px) scale(0.9); }
  45% { opacity: 1; transform: translateY(3px) scale(1.02); }
  60% { transform: rotate(-1.2deg); }
  75% { transform: rotate(1deg); }
  90% { transform: rotate(-0.4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes bubbleIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes bubbleFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes wave {
  0%, 70%, 100% { rotate: 0deg; }
  74% { rotate: -9deg; }
  79% { rotate: 8deg; }
  84% { rotate: -6deg; }
  89% { rotate: 4deg; }
  94% { rotate: -1deg; }
}
@keyframes shadowSquish { 0%, 100% { transform: scaleX(1); opacity: 0.9; } 50% { transform: scaleX(0.72); opacity: 0.55; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } 96% { transform: scaleY(1); } }
@keyframes twinkle { 0% { transform: scale(0.7) rotate(0deg); } 100% { transform: scale(1.08) rotate(25deg); } }
@keyframes errWobble { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@keyframes markIn { 0% { opacity: 0; transform: scale(0.4) rotate(-30deg); } 70% { opacity: 1; transform: scale(1.12) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-5deg); } 70% { transform: scale(0.95) rotate(2deg); } 100% { transform: none; } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@keyframes tick { 0% { transform: scale(0.7); } 60% { transform: scale(1.2) rotate(-6deg); } 100% { transform: none; } }
@keyframes burstOut {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-8px) scaleY(0.5); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-26px) scaleY(1); }
}
@keyframes skelPulse { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1280px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { border-left: 0; }
  .fact:nth-child(n+4) { border-top: 2.5px dashed var(--line); }
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hk { grid-column: 1 / -1; border-bottom: 2.5px dashed var(--line); }
  .hf:nth-child(2) { border-left: 0; }
}

@media (max-width: 1600px) {
  .hide-md { display: none; }
}

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-4, .c-5, .c-7, .c-8 { grid-column: span 12; }
  .dash-head { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }
}

@media (max-width: 1023px) {
  .page { padding: 26px 22px 70px; }
}

@media (max-width: 860px) {
  .dash-head { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dash-head > .brand-strip { order: -1; margin: 6px 4px 0; }
  .lg-main { grid-template-columns: minmax(0, 440px); gap: 30px; align-content: start; padding: 40px 18px 30px; }
  .lg-hello { flex-direction: row; justify-content: center; gap: 12px; }
  .lg-mascot { width: 140px; flex: none; order: -1; }
  .lg-shadow { width: 96px; height: 12px; margin-left: -48px; }
  .lg-bubble { align-self: center; margin: 0 0 0 10px; max-width: 220px; padding: 11px 15px 12px; }
  .lg-bubble::after { left: -11px; top: 50%; bottom: auto; margin-top: -9px; width: 17px; height: 17px; border-right: 0; border-bottom: 3px solid var(--ink); border-left: 3px solid var(--ink); transform: rotate(45deg); }
  .lg-bubble b { font-size: 20px; }
  .lg-bubble span { font-size: 14px; }
}

@media (max-width: 760px) {
  .c-6 { grid-column: span 12; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .seg-mode { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(4) { border-left: 2.5px dashed var(--line); }
  .fact:nth-child(n+3) { border-top: 2.5px dashed var(--line); }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf:nth-child(4) { border-left: 0; }
  .hf:nth-child(n+4) { border-top: 2.5px dashed var(--line); }
  .crumbs { display: none; }
  .hide-sm { display: none; }
  .gs { flex: 1; width: auto; max-width: none; }
  .gs-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--tbh) + 8px); width: auto; }
  .um-n, .um-c, .gs-k { display: none; }
  .um-b { padding: 0 4px; height: 44px; }
  .ph { align-items: flex-start; margin-bottom: 22px; }
  .ph-a { width: 100%; }
  .ph-a .btn { flex: 1; }
  h1 { font-size: 32px; }
  .toolbar { padding: 14px 16px; }
  .search { min-width: 0; max-width: none; flex-basis: 100%; }
  .card-h.pad { padding: 16px 16px 12px; flex-wrap: wrap; }
  .card-h.pad .tools, .card-h.pad .tools .search.sm { width: 100%; }
  .card-h { flex-wrap: wrap; }
  .tools { width: 100%; justify-content: flex-start; }
  .search.sm { flex: 1; }
  .t td:first-child, .t th:first-child { padding-left: 16px; }
  .t td:last-child, .t th:last-child { padding-right: 16px; }
  .fchips.origins, .filter, .bulk, .pager { padding-left: 16px; padding-right: 16px; }
  .hero-top { padding: 20px 16px 18px; }
  .hk, .hf { padding: 14px 16px; }
  .hero-a { width: 100%; }
  .hero-id { align-items: flex-start; }
  .hero-sub .host { max-width: 100%; }
  .score .bar { display: none; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .hs + .hs::before { content: none; }
  .cell-srv .min0, .cell-cu .min0 { max-width: 52vw; }
  .score { min-width: 0; }
  .card-h .tools .search.sm { flex: 1 1 100%; }
  .chart { height: 210px; }
  .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; }
  .srv > .brand-strip img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
  .empty { grid-template-columns: auto minmax(0, 1fr); padding: 26px 16px 24px; gap: 10px 14px; }
  .mascot { width: 66px; height: 66px; }
}

@media (max-width: 600px) {
  .tb:has(.gs) .tb-live { width: 34px; padding: 0; justify-content: center; }
  .tb:has(.gs) .tb-lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 520px) {
  .tb { padding: 0 12px; gap: 8px; }
  .page { padding: 20px 14px 60px; }
  .kpis { gap: 14px; }
  .kpi { padding: 13px 13px 0; min-height: 140px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .kpi-v > .num { font-size: 36px; }
  .kpi-l { font-size: 14px; }
  .kpi-h { gap: 8px; }
  .kpi-ic { width: 30px; height: 30px; border-radius: 10px; }
  .kpi-ic .i { width: 16px; height: 16px; }
  .kpi-s { display: block; font-size: 12px; line-height: 1.35; }
  .spark { margin: 8px -13px 0; height: 38px; }
  .grid, .col { gap: 18px; }
  .grid + .grid, .kpis + .grid { margin-top: 18px; }
  .card { padding: 18px 16px; border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .card.flush, .card.hero, .card.facts { padding: 0; }
  .card.danger-zone { padding-top: 30px; }
  .hero-name h1 { font-size: 25px; }
  .av-lg { width: 52px; height: 52px; font-size: 19px; border-radius: 16px; }
  .mod { flex-direction: column; align-items: stretch; }
  .mseg { width: 100%; }
  .mseg button { flex: 1; justify-content: center; }
  .lg-card { padding: 30px 20px 22px; border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
  .login-h h1 { font-size: 25px; }
  .lg-mascot { width: 118px; }
  .tabs { gap: 8px; }
  .tab { height: 40px; padding: 0 13px; font-size: 14.5px; }
  .errcode { font-size: 84px; }
  .err-card { padding: 26px 20px 26px; }
  .brand-strip { box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .skel, .dot.on.pulse, .tb-dot, .mascot, .m-sh, .m-eyes, .lg-mascot img, .lg-shadow, .lg-bubble, .spk, .err-mascot, .errcode, .ch-empty .i, .steps-t span.on::before, .tab.on, .kpi:hover .kpi-ic, .mdl-ic { animation: none !important; }
  .burst, .btip { display: none !important; }
  .kpi:hover, .kpi:active, .btn:hover, .btn:active, .fchip:hover, .fchip:active, .tab:hover, .seg-b:hover, .seg-b:active, .mini:hover, .post:hover, .mod:hover, .verrow:hover, .um-b:hover, .idbtn:hover, .brand-strip:hover, .ib:hover, .ib:active, .cbx:hover, .sb-link:active, .sb-link:hover .i, .btn:hover > .i:first-child, .tab:hover .i, .row-l:hover .av, .t tbody tr:hover .av { transform: none !important; }
  .ch-in .ch-line, .ch-in .ch-line-ink { stroke-dasharray: none; stroke-dashoffset: 0; }
  .doodle path { stroke-dasharray: none; }
}

@media (forced-colors: active) {
  .chip, .btn, .fchip, .seg-b, .mseg button, .tab, .card, .kpi { border: 2px solid CanvasText; }
  .switch:checked { background: Highlight; }
  .sb-link.on { outline: 2px solid Highlight; outline-offset: -2px; }
  .sb-label { color: CanvasText; }
  .tb-live { border: 1px solid CanvasText; }
  .sky { display: none; }
}

#servers .t td, #servers .t th { padding-left: 8px; padding-right: 8px; }
#servers .t td:first-child, #servers .t th:first-child { padding-left: 20px; }
#servers .t td:last-child, #servers .t th:last-child { padding-right: 18px; }
#servers .t td:last-child .btn { white-space: nowrap; }
