@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); 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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(../fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations"); 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; }

@property --glow-a { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --glow-b { syntax: "<color>"; inherits: true; initial-value: transparent; }

:root {
  --ui: Inter, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.875rem;
  --fs-lg: 1rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.625rem;
  --fs-3xl: 2rem;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --h-sm: 1.875rem;
  --h-md: 2.25rem;
  --h-lg: 2.5rem;
  --r-xs: 0.5rem;
  --r-sm: 0.625rem;
  --r-md: 1rem;
  --r-lg: 1.125rem;
  --side: 15.5rem;
  --top: 4rem;
  --wide: 97.5rem;
  --gap: 1rem;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A3A3AF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  --dur: 160ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.3, 1.3, .6, 1);

  --bg: #0A0B14;
  --bg-elev: #12131F;
  --glow-a: rgba(232, 70, 124, .16);
  --glow-b: rgba(84, 104, 232, .14);
  --texture: none;
  --surface-1: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --panel: rgba(18, 19, 31, .72);
  --sunken: rgba(0, 0, 0, .28);
  --stroke: rgba(255, 255, 255, .085);
  --stroke-soft: rgba(255, 255, 255, .055);
  --text-1: #F4F5FA;
  --text-2: #A7A9BC;
  --text-3: #8A8CA0;
  --muted: #6A6C80;
  --accent: #E8467C;
  --accent-bright: #FF5C93;
  --accent-soft: rgba(232, 70, 124, .14);
  --accent-text: #FF7BA8;
  --on-accent: #FFFFFF;
  --violet: #8B6CF6;
  --blue: #5468E8;
  --good: #2ED573;
  --good-soft: rgba(46, 213, 115, .14);
  --bad: #FF5A4E;
  --bad-soft: rgba(255, 90, 78, .14);
  --warn: #F5A524;
  --warn-soft: rgba(245, 165, 36, .14);
  --flash: color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow: 0 0.5rem 2rem rgba(0, 0, 0, .45);
  --shadow-pop: 0 1.125rem 3rem rgba(0, 0, 0, .6);
  --grid: rgba(255, 255, 255, .055);
  --c1: #E8467C; --c2: #3987E5; --c3: #C98500; --c4: #199E70; --c5: #9085E9; --c6: #D95926; --c7: #8A8CA0; --c8: #6A6C80;
  --c9: #6A6C80; --c10: #6A6C80; --c11: #6A6C80; --c12: #6A6C80;
  --heat-0: color-mix(in srgb, var(--accent) 6%, transparent);
  --heat-1: var(--accent);
  --tx-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --tx-dots: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 1.375rem 1.375rem;
  --tx-lines: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 0.6875rem);
  color-scheme: dark;
}

[data-accent="indigo"] { --accent: #6E74F7; --accent-bright: #8489FF; --accent-soft: rgba(110, 116, 247, .16); --accent-text: #A2A6FF; --glow-a: rgba(110, 116, 247, .17); --glow-b: rgba(139, 108, 246, .12); --bg: #090A16; --bg-elev: #11122A; --panel: rgba(17, 18, 42, .72); }
[data-accent="ocean"] { --accent: #3D8BFF; --accent-bright: #5B9DFF; --accent-soft: rgba(61, 139, 255, .16); --accent-text: #8DBBFF; --glow-a: rgba(61, 139, 255, .16); --glow-b: rgba(34, 211, 238, .10); --bg: #070E18; --bg-elev: #0E1828; --panel: rgba(14, 24, 40, .72); }
[data-accent="mint"] { --on-accent: #0B0B0D; --accent: #2CC79A; --accent-bright: #3EDDAD; --accent-soft: rgba(44, 199, 154, .15); --accent-text: #74E3C1; --glow-a: rgba(44, 199, 154, .13); --glow-b: rgba(61, 139, 255, .09); --bg: #07110F; --bg-elev: #0D1B18; --panel: rgba(13, 27, 24, .72); }
[data-accent="amber"] { --on-accent: #0B0B0D; --accent: #F29A38; --accent-bright: #FFAE52; --accent-soft: rgba(242, 154, 56, .15); --accent-text: #FFC27F; --glow-a: rgba(242, 154, 56, .13); --glow-b: rgba(232, 70, 124, .08); --bg: #110D08; --bg-elev: #1B150E; --panel: rgba(27, 21, 14, .72); }
[data-accent="wine"] { --accent: #D2386A; --accent-bright: #E84F80; --accent-soft: rgba(210, 56, 106, .16); --accent-text: #F27DA2; --glow-a: rgba(150, 30, 70, .22); --glow-b: rgba(90, 30, 60, .16); --bg: #10080C; --bg-elev: #1B0E15; --panel: rgba(27, 14, 21, .72); }
[data-accent="lilac"] { --accent: #A774FF; --accent-bright: #B98CFF; --accent-soft: rgba(167, 116, 255, .16); --accent-text: #C9A8FF; --glow-a: rgba(167, 116, 255, .15); --glow-b: rgba(232, 70, 124, .09); --bg: #0C0914; --bg-elev: #161126; --panel: rgba(22, 17, 38, .72); }
[data-accent="graphite"] { --accent: #E4E5EC; --accent-bright: #FFFFFF; --accent-soft: rgba(228, 229, 236, .12); --accent-text: #FFFFFF; --on-accent: #0B0B0D; --glow-a: transparent; --glow-b: transparent; --bg: #0B0B0D; --bg-elev: #151518; --panel: rgba(21, 21, 24, .78); }

[data-bg="plain"] { --glow-a: transparent; --glow-b: transparent; }
[data-bg="grain"] { --texture: var(--tx-grain); }
[data-bg="dots"] { --texture: var(--tx-dots); }
[data-bg="lines"] { --texture: var(--tx-lines); }


* { box-sizing: border-box; }
html { font-size: clamp(16px, calc(9.3333px + 0.41667vw), 20px); }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(68.75rem 38.75rem at 12% -8%, var(--glow-a), transparent 62%),
    radial-gradient(56.25rem 35rem at 96% 4%, var(--glow-b), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text-1);
  font: var(--fs-md)/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: var(--texture); }
#app { position: relative; z-index: 1; }
::-webkit-scrollbar { width: 0.625rem; height: 0.625rem; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border: 0.1875rem solid transparent; border-radius: 0.625rem; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .26); }
::-webkit-scrollbar-thumb:active { background-color: color-mix(in srgb, var(--accent) 70%, transparent); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; } }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.375rem; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; cursor: pointer; flex: none; }
b, strong { font-weight: 600; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: var(--fs-xs); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.link { color: var(--accent-text); cursor: pointer; }
.link:hover { text-decoration: underline; }
.t a.link { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--stroke); text-underline-offset: 0.1875rem; }
.t a.link:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 0.1875rem solid var(--stroke); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); animation: sp-out .25s ease-in 1.55s forwards; }
.splash-mark { width: 8.5rem; height: 8.5rem; overflow: visible; animation: sp-zoom .25s ease-in 1.55s forwards; }
.sp-track { fill: none; stroke: var(--stroke); stroke-width: 11; }
.sp-ring { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: sp-ring 1.5s cubic-bezier(.45, 0, .25, 1) .05s forwards; }
.sp-head, .sp-eye { fill: var(--text-1); }
.sp-head { opacity: 0; animation: sp-fill .4s ease .55s forwards; }
.sp-line { fill: none; stroke: var(--text-1); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .95s ease-in-out .05s forwards; }
.sp-stripe { transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(0); animation: sp-stripe .35s cubic-bezier(.2, .7, .2, 1) .85s forwards; }
.sp-eye { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); animation: sp-eye .45s ease 1.1s forwards; }
@keyframes sp-ring { 0% { opacity: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes sp-draw { 70% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sp-fill { to { opacity: 1; } }
@keyframes sp-stripe { to { transform: scaleX(1); } }
@keyframes sp-eye { 0% { transform: scale(0); } 40% { transform: scale(1.25); } 55%, 70% { transform: scale(1); } 83% { transform: scale(1, .1); } 100% { transform: scale(1); } }
@keyframes sp-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes sp-zoom { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 25; height: var(--top);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(1rem) saturate(1.2);
  border-bottom: 1px solid var(--stroke-soft);
}
.top-in { max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 var(--sp-5); display: flex; align-items: center; gap: var(--sp-3); }
.top .spacer { flex: 1; }
.brand { display: flex; align-items: center; gap: 0.625rem; flex: none; width: calc(var(--side) - var(--sp-3)); min-width: 0; }
.brand img { width: 1.875rem; height: 1.875rem; flex: none; }
.brand b { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-tag { font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); background: var(--accent-soft); padding: 2px 0.375rem; border-radius: 0.3125rem; }
.collapsed .brand { width: auto; }
.cmd { position: relative; display: flex; align-items: center; gap: var(--sp-2); width: min(27.5rem, 36vw); height: 2.5rem; padding: 0 var(--sp-2) 0 var(--sp-3);
  border-radius: var(--r-sm); border: 1px solid var(--stroke); background: var(--sunken); transition: border-color var(--dur), box-shadow var(--dur); }
.cmd:hover { border-color: color-mix(in srgb, var(--text-3) 50%, transparent); }
.cmd:focus-within { border-color: var(--accent); box-shadow: 0 0 0 0.1875rem var(--accent-soft); }
.cmd svg { width: 1rem; height: 1rem; color: var(--text-3); flex: none; }
.cmd input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: var(--fs-md); }
.cmd input::placeholder { color: var(--text-3); }
kbd { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--text-3); padding: 0.1875rem 0.375rem; border-radius: 0.375rem; border: 1px solid var(--stroke); background: var(--surface-1); white-space: nowrap; }
.cmd-gap { flex: none; }
.cmd-pop { position: absolute; top: calc(100% + 0.375rem); left: 0; right: 0; z-index: 70; max-height: min(70vh, 32.5rem); overflow-y: auto; padding: 0.375rem; background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.cmd-group { padding: 0.625rem 0.625rem 0.375rem; font: 600 var(--fs-2xs)/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cmd-sep { height: 1px; margin: 0.375rem 0.25rem; background: var(--stroke-soft); }
.cmd-item { display: flex; align-items: center; gap: 0.625rem; height: 2.375rem; padding: 0 0.625rem; border-radius: var(--r-xs); color: var(--text-1); font-size: var(--fs-sm); text-decoration: none; cursor: pointer; }
.cmd .cmd-item svg, .cmd:focus-within .cmd-item svg { width: 1rem; height: 1rem; flex: none; color: var(--text-3); transform: none; }
.cmd-item.on { background: var(--accent-soft); }
.cmd .cmd-item.on svg, .cmd:focus-within .cmd-item.on svg { color: var(--accent-text); }
.cmd-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-hint { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: var(--fs-xs); }
.cmd-empty { padding: 0.75rem 0.625rem; color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 900px) { .cmd-pop { position: fixed; top: calc(var(--top) + 0.25rem); left: 0.5rem; right: 0.5rem; } }
.top .btn.bell { position: relative; width: var(--h-lg); height: var(--h-lg); color: var(--text-2); border: 1px solid var(--stroke-soft); background: var(--surface-1); }
.top .btn.bell:hover { color: var(--text-1); background: var(--surface-2); }
.bell-ico { display: grid; place-items: center; }
.bell-n { position: absolute; top: -0.3125rem; right: -0.3125rem; min-width: 1.125rem; height: 1.125rem; padding: 0 0.3125rem; border-radius: 0.5625rem; background: var(--warn); color: #111; font: 700 0.625rem/1.125rem var(--ui); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-n.bad { background: var(--bad); color: #fff; }
.acct { position: relative; flex: none; }
.acct-btn { display: flex; align-items: center; gap: 0.625rem; height: var(--h-lg); padding: 0 0.625rem 0 0.3125rem; border-radius: var(--r-sm); border: 1px solid var(--stroke-soft); background: var(--surface-1); cursor: pointer; color: var(--text-2); transition: background var(--dur), color var(--dur), border-color var(--dur); }
.acct-btn:hover, .acct-btn.open { background: var(--surface-2); color: var(--text-1); }
.acct-btn.open { border-color: var(--stroke); }
.acct-btn > svg { width: 1rem; height: 1rem; transition: transform .35s var(--spring); }
.acct-btn.open > svg { transform: rotate(180deg); }
.acct-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.acct-text b { font-size: var(--fs-sm); color: var(--text-1); }
.acct-text small { font-size: var(--fs-2xs); color: var(--text-3); }
.me-ava { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 0.4375rem; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; }
.acct-pop { width: 22.5rem; gap: 0.625rem; }
.pop-label { font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-top: 2px; }
.pop-sep { height: 1px; background: var(--stroke-soft); margin: 0.25rem -0.875rem; }
.pop-item { display: flex; align-items: center; gap: 0.625rem; height: 2.25rem; padding: 0 0.625rem; margin: 0 -0.375rem; border: 0; border-radius: var(--r-xs); background: none; color: var(--text-2); cursor: pointer; font-size: var(--fs-sm); text-align: left; }
.pop-item:hover { background: var(--surface-2); color: var(--text-1); }
.pop-item svg { width: 1rem; height: 1rem; }
.theme-pick { display: flex; flex-direction: column; gap: var(--sp-2); }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.375rem; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; background: none; padding: 0.1875rem; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.swatch:hover { border-color: var(--stroke); }
.swatch.on { border-color: var(--text-1); }
.bg-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; }
.bg-tile { display: flex; flex-direction: column; align-items: stretch; gap: 0.375rem; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: var(--fs-xs); text-align: center; }
.bg-tile i { display: block; height: 2.25rem; border-radius: var(--r-xs); border: 2px solid var(--stroke); background-color: var(--bg); transition: border-color var(--dur); }
.bg-tile span { white-space: nowrap; }
.bg-tile:hover { color: var(--text-1); }
.bg-tile:hover i { border-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.bg-tile.on { color: var(--text-1); font-weight: 600; }
.bg-tile.on i { border-color: var(--text-1); }
.bg-prev.glow { background: radial-gradient(2.5rem 1.875rem at 15% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 75%), radial-gradient(2.5rem 1.875rem at 100% 10%, rgba(84, 104, 232, .35), transparent 75%), var(--bg); }
.bg-prev.grain { background: var(--tx-grain), var(--bg); }
.bg-prev.dots { background: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px) 0 0 / 0.5rem 0.5rem, var(--bg); }
.bg-prev.lines { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 0.375rem), var(--bg); }

.frame { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: var(--sp-5) var(--sp-5) 0; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.collapsed .frame { grid-template-columns: 4rem minmax(0, 1fr); }
.side { position: sticky; top: calc(var(--top) + var(--sp-5)); max-height: calc(100vh - var(--top) - var(--sp-6)); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-3); scrollbar-width: none; }
.nav-card { background: var(--panel); border: 1px solid var(--stroke-soft); border-radius: var(--r-md); padding: 0.375rem; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(0.625rem); }
.nav-group { display: flex; align-items: center; justify-content: space-between; height: 1.875rem; padding: 0 0.625rem; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); white-space: nowrap; border-radius: var(--r-xs);
  transition: color var(--dur), background var(--dur); }
.nav-group:hover { color: var(--text-2); background: var(--surface-1); }
.nav-group svg { width: 0.875rem; height: 0.875rem; transition: transform .45s var(--spring); }
.nav-card:not(.shut) .nav-group svg { transform: rotate(180deg); }
.nav-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .42s var(--ease-out); }
.nav-items > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; margin: -2px; padding: 2px; visibility: visible; transition: visibility 0s; }
.nav-card.shut .nav-items { grid-template-rows: 0fr; transition-duration: .32s; transition-timing-function: var(--ease-io); }
.nav-card.shut .nav-items > div { visibility: hidden; transition: visibility 0s .32s; }
.nav-item {
  display: flex; align-items: center; gap: 0.6875rem; height: 2.375rem; padding: 0 0.625rem; border-radius: var(--r-sm);
  color: var(--text-2); white-space: nowrap; position: relative; font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity .3s var(--ease), transform .4s var(--spring-soft);
  transition-delay: 0s, 0s, calc(var(--i, 0) * 35ms + 60ms), calc(var(--i, 0) * 35ms + 60ms);
}
.nav-card.shut .nav-item { opacity: 0; transform: translateY(-0.5rem) scale(.97); transition-delay: 0s; transition-duration: var(--dur), var(--dur), .18s, .25s; }
.nav-item:hover { background: var(--surface-1); color: var(--text-1); }
.nav-item.on { background: var(--surface-2); color: var(--text-1); }
.nav-item.on svg { color: var(--accent-text); opacity: 1; }
.nav-item svg { width: 1.125rem; height: 1.125rem; flex: none; opacity: .8; transition: transform .35s var(--spring), color var(--dur), opacity var(--dur); }
.nav-item:hover svg { transform: translateX(2px); opacity: 1; }
.nav-item .badge { margin-left: auto; }
.collapsed .nav-item span, .collapsed .nav-group, .collapsed .brand b, .collapsed .brand-tag, .collapsed .nav-item .badge { display: none; }
.collapsed .nav-item { justify-content: center; padding: 0; }
.collapsed .nav-item:hover svg { transform: scale(1.12); }
.collapsed .nav-card { padding: 0.25rem; }
.collapsed .nav-card.shut .nav-items { grid-template-rows: 1fr; }
.collapsed .nav-card.shut .nav-items > div { visibility: visible; }
.collapsed .nav-card.shut .nav-item { opacity: 1; transform: none; }

.page { min-width: 0; padding: 0 0 var(--sp-6); }
.page-head { display: flex; align-items: center; gap: var(--sp-4); margin: 0 0 var(--sp-5); min-height: 3.25rem; flex-wrap: wrap; }
.page-icon { width: 3.25rem; height: 3.25rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--stroke-soft); color: var(--text-1); }
.page-icon svg { width: 1.375rem; height: 1.375rem; }
.page-title { min-width: 0; flex: 1 1 16.25rem; }
.page-title h1 { margin: 0; font-size: var(--fs-3xl); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.page-title p { margin: 0.25rem 0 0; color: var(--text-2); font-size: var(--fs-sm); font-weight: 400; }
.sec-tabs { display: flex; gap: 2px; margin: calc(-1 * var(--sp-2)) 0 var(--sp-5); border-bottom: 1px solid var(--stroke-soft); overflow-x: auto; scrollbar-width: none; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem 0.75rem; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; text-decoration: none; transition: color var(--dur); }
.sec-tab svg { width: 1rem; height: 1rem; opacity: .8; }
.sec-tab:hover { color: var(--text-1); }
.sec-tab.on { color: var(--text-1); font-weight: 600; }
.sec-tab.on::after { content: ""; position: absolute; left: 0.625rem; right: 0.625rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-tab.on svg { color: var(--accent-text); opacity: 1; }
.sec-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-xs); }

.live { display: inline-flex; align-items: center; gap: 0.5rem; height: var(--h-lg); padding: 0 0.875rem; border-radius: var(--r-sm); font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; background: var(--surface-1); border: 1px solid var(--stroke-soft); transition: color .3s; }
.live.down { color: var(--bad); }
.live.warn { color: var(--warn); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.dot.up { background: var(--good); box-shadow: 0 0 0 0.1875rem var(--good-soft); }
.dot.down { background: var(--bad); box-shadow: 0 0 0 0.1875rem var(--bad-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 0.1875rem var(--warn-soft); }
.dot.pulse { animation: pulse 2s ease-in-out infinite; }
.dot.warn { width: 0.625rem; height: 0.5625rem; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; }
.dot.down { border-radius: 1.5px; transform: rotate(45deg) scale(.88); }
.dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 0.375rem transparent; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4375rem; height: var(--h-md); padding: 0 0.875rem;
  border-radius: var(--r-sm); border: 1px solid var(--stroke); background: var(--surface-1); cursor: pointer;
  font-size: var(--fs-md); font-weight: 500; white-space: nowrap; flex: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur), opacity var(--dur), transform .4s var(--spring), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: scale(.96); transition-duration: var(--dur), var(--dur), var(--dur), var(--dur), 90ms, .25s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-bright); box-shadow: 0 0.375rem 1.25rem -0.375rem color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 24%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: var(--h-sm); padding: 0 0.6875rem; font-size: var(--fs-sm); gap: 0.375rem; border-radius: var(--r-xs); }
.btn.icon { width: var(--h-md); padding: 0; }
.btn.sm.icon { width: var(--h-sm); }
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn.sm svg { width: 0.9375rem; height: 0.9375rem; }
.input, .select, .textarea {
  height: var(--h-md); padding: 0 0.75rem; border-radius: var(--r-sm); border: 1px solid var(--stroke);
  background: var(--sunken); outline: none; transition: border-color var(--dur), box-shadow var(--dur); min-width: 0;
  font-size: var(--fs-md);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover:not(:focus), .select:hover:not(:focus), .textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--text-3) 55%, transparent); }
select.select, select.input { appearance: none; -webkit-appearance: none; padding-right: 2.125rem; cursor: pointer; background-image: var(--chev); background-repeat: no-repeat; background-position: right 0.625rem center; background-size: 1rem; }
select.select option { background: var(--bg-elev); color: var(--text-1); }
.input[type="date"], .input[type="datetime-local"], .input[type="time"] { font-variant-numeric: tabular-nums; }
.input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; border-radius: 0.25rem; padding: 2px; }
.input::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--surface-2); }
.textarea { height: auto; min-height: 6rem; padding: 0.625rem 0.75rem; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 0.1875rem var(--accent-soft); }
.input.invalid { border-color: var(--bad); }
.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.field > span { font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.field small { color: var(--text-3); font-size: var(--fs-xs); }
.seg { display: inline-flex; flex: none; height: var(--h-md); padding: 0.1875rem; gap: 2px; border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--stroke-soft); }
.seg button { height: 100%; padding: 0 0.6875rem; border: 0; border-radius: 0.4375rem; background: transparent; color: var(--text-2); cursor: pointer; font-size: var(--fs-sm); font-weight: 450; white-space: nowrap; transition: color var(--dur), background var(--dur); }
.seg button.on { background: var(--surface-3); color: var(--text-1); font-weight: 550; }
.seg button:hover:not(.on) { color: var(--text-1); }
.seg button:focus-visible { outline-offset: 0; }
.seg.sm { height: var(--h-sm); padding: 2px; border-radius: var(--r-xs); }
.seg.sm button { padding: 0 0.5625rem; font-size: var(--fs-xs); border-radius: 0.375rem; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .toolbar .seg { flex: 0 1 auto; } }
.range { display: inline-flex; align-items: center; gap: 2px; height: var(--h-md); padding: 0 0.375rem 0 0.625rem; border-radius: var(--r-sm); border: 1px solid var(--stroke); background: var(--sunken); flex: none; transition: border-color var(--dur), box-shadow var(--dur); }
.range:hover { border-color: color-mix(in srgb, var(--text-3) 55%, transparent); }
.range:focus-within { border-color: var(--accent); box-shadow: 0 0 0 0.1875rem var(--accent-soft); }
.range > svg { width: 1rem; height: 1rem; color: var(--text-3); flex: none; margin-right: 0.25rem; }
.range input { height: 100%; width: 6.5rem; border: 0; padding: 0 0.25rem; background: transparent; outline: none; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text-1); }
.range input:invalid, .range input.is-blank { color: var(--text-3); }
.range input::-webkit-calendar-picker-indicator { display: none; }
.range .sep { color: var(--text-3); padding: 0 2px; }
.range .x { width: 1.375rem; height: 1.375rem; border: 0; border-radius: 0.375rem; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; padding: 0; }
.range .x:hover { background: var(--surface-2); color: var(--text-1); }
.range .x svg { width: 0.875rem; height: 0.875rem; }
.period { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.period .days { font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.search { position: relative; width: min(21.25rem, 34vw); }
.search .input { width: 100%; padding-left: 2.125rem; }
.search svg { position: absolute; left: 0.6875rem; top: 0.625rem; width: 1rem; height: 1rem; color: var(--text-3); pointer-events: none; }
.switch { position: relative; width: 2.25rem; height: 1.25rem; border-radius: 0.625rem; background: var(--surface-3); border: 0; cursor: pointer; transition: background .25s var(--ease), box-shadow .25s var(--ease); flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; left: 0.1875rem; top: 0.1875rem; width: 0.875rem; height: 0.875rem; border-radius: 0.4375rem; background: #fff; box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, .35);
  transition: transform .42s var(--spring), width .2s var(--ease), background .25s; }
.switch:hover:not(:disabled) { box-shadow: 0 0 0 0.25rem var(--surface-1); }
.switch:active:not(:disabled)::after { width: 1.1875rem; }
.switch.on { background: var(--accent); }
.switch.on:hover:not(:disabled) { box-shadow: 0 0 0 0.25rem var(--accent-soft); }
.switch.on::after { background: var(--on-accent); transform: translateX(1rem); }
.switch.on:active:not(:disabled)::after { transform: translateX(0.6875rem); }

.grid { display: grid; gap: var(--gap); }
.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1360px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .kpis, .kpis.four, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr); }
@media (max-width: 1200px) { .cols-main, .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--panel); border: 1px solid var(--stroke-soft); border-radius: var(--r-md);
  padding: var(--sp-4); min-width: 0; position: relative;
}
.card-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; min-height: var(--h-sm); flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.005em; }
.card-head .sub { color: var(--text-3); font-size: var(--fs-xs); }
.card-head .card-more { margin-left: auto; font-size: var(--fs-xs); }
.card-head .tools { margin-left: auto; display: flex; gap: 0.375rem; align-items: center; flex-wrap: wrap; }
.section { margin-top: var(--gap); }
.row { display: flex; align-items: center; gap: 0.625rem; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 0.625rem; }
.grow { flex: 1; min-width: 0; }

.kpi { padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.375rem; overflow: hidden; min-height: 0; }
.kpi-top { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.kpi .label { font-size: var(--fs-sm); color: var(--text-2); display: flex; gap: 0.375rem; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .label svg { flex: none; opacity: .8; }
.kpi .value { display: block; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.15; border-radius: 0.375rem; padding: 0 2px; margin: 0 -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .sub { font-size: var(--fs-xs); color: var(--text-2); margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi .foot { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--text-3); min-height: 1.25rem; min-width: 0; }
.kpi .foot-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.3; }
.kpi .foot .bad { color: var(--bad); }
.kpi.has-spark { padding-bottom: 0; }
.kpi-spark { display: block; width: calc(100% + 2rem); height: 2.125rem; margin: auto -1rem 0; }
.kpis > .kpi { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0.375rem; min-height: 0; }
.kpis > .kpi > .kpi-top { grid-row: 1; }
.kpis > .kpi > .value { grid-row: 2; }
.kpis > .kpi > .sub { grid-row: 3; }
.kpis > .kpi > .foot { grid-row: 4; }
.kpis > .kpi > .kpi-spark { grid-row: 5; }
.kpi.alert { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
a.kpi, .node, .relay-card { transition: border-color .25s var(--ease), transform .35s var(--spring-soft), box-shadow .3s var(--ease); }
a.kpi:hover, .node:hover, .relay-card:hover { border-color: var(--stroke); transform: translateY(-2px); box-shadow: 0 0.75rem 1.75rem -0.875rem rgba(0, 0, 0, .7); }
a.kpi:active, .node:active, .relay-card:active { transform: translateY(0) scale(.99); transition-duration: .25s, 90ms, .3s; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--text-3); }
.kpi .foot .delta { flex: none; font-size: var(--fs-xs); height: 1.25rem; display: inline-flex; align-items: center; padding: 0 0.4375rem; border-radius: 0.375rem; background: var(--surface-2); }
.kpi .foot .delta.up { background: var(--good-soft); }
.kpi .foot .delta.down { background: var(--bad-soft); }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: var(--flash); } 100% { background: transparent; } }

.badge { display: inline-flex; align-items: center; gap: 0.3125rem; height: 1.375rem; padding: 0 0.5rem; border-radius: 0.375rem; font-size: var(--fs-xs); font-weight: 500; line-height: 1; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }

.feed { display: flex; flex-direction: column; max-height: 35rem; overflow-y: auto; margin: 0 -0.5rem; }
.feed-item { display: grid; grid-template-columns: 1.75rem 1fr auto; gap: 0.625rem; align-items: center; padding: 0.4375rem 0.5rem; border-radius: var(--r-xs); }
.feed-item:hover { background: var(--surface-1); }
.feed-item.new { animation: feedin 420ms var(--ease), flash 1.6s var(--ease); }
@keyframes feedin { from { opacity: 0; transform: translateY(-0.375rem); } to { opacity: 1; transform: none; } }
.feed-ico { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: grid; place-items: center; background: var(--surface-2); }
.feed-ico svg { width: 0.9375rem; height: 0.9375rem; }
.feed-ico.pay { background: var(--good-soft); color: var(--good); }
.feed-ico.user { background: var(--accent-soft); color: var(--accent-text); }
.feed-ico.down { background: var(--bad-soft); color: var(--bad); }
.feed-ico.up { background: var(--good-soft); color: var(--good); }
.feed-main { min-width: 0; }
.feed-main b { font-weight: 550; }
.feed-main div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main small { color: var(--text-3); }
.feed-at { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: clip; border-radius: var(--r-md); border: 1px solid var(--stroke-soft); background: var(--panel); }
.table-wrap[data-wide] { overflow-x: auto; }
.src-cell { display: inline-block; max-width: 8.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.src-cell .dot { margin-right: 0.375rem; }
.is-stale { opacity: .55; transition: opacity .15s; pointer-events: none; }
.t tr.t-group td, .t tbody tr.t-group:hover td { padding: 1.125rem 0.75rem 0.375rem; background: transparent; border-bottom: 1px solid var(--stroke); color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr.t-group:first-child td { padding-top: 0.625rem; }
.t tr.t-group b { margin-right: 0.625rem; color: var(--text-1); font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 900px) {
  .t.cards tr.t-group, .t.cards tbody tr.t-group:hover { display: block; padding: 0.75rem 0.25rem 2px; margin: 0; background: none; border: 0; }
  .t.cards tr.t-group td { padding: 0; border: 0; }
}
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.t th { position: sticky; top: var(--top); z-index: 2; background: var(--bg-elev); text-align: left; font: 500 var(--fs-2xs)/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 0.8125rem 0.75rem; border-bottom: 1px solid var(--stroke); white-space: nowrap; user-select: none; }
.table-wrap[data-wide] .t th, .table-wrap[data-inner] .t th { top: 0; }
.t th.sort { cursor: pointer; }
.t th.sort:hover { color: var(--text-1); }
.t td { padding: 0.6875rem 0.75rem; border-bottom: 1px solid var(--stroke-soft); white-space: nowrap; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background var(--dur); }
.t tbody tr:hover { background: var(--surface-1); }
.t tbody tr.click { cursor: pointer; }
.t .r { text-align: right; }
.t td.wrapcell { white-space: normal; }
@media (min-width: 901px) {
  .t td.actions-cell { width: 1%; }
  .t td.actions-cell > .row { justify-content: flex-end; gap: 0.25rem; flex-wrap: nowrap; }
}
@media (hover: hover) and (min-width: 901px) {
  .t td .btn:not(.primary):not(.danger) { background: transparent; border-color: transparent; color: var(--text-2); }
  .t td .btn.danger { background: transparent; }
  .t tbody tr:hover td .btn:not(.primary):not(.danger) { border-color: var(--stroke); color: var(--text-1); }
  .t td .btn:not(.primary):not(.danger):hover { background: var(--surface-2); }
  .t td .btn.danger:hover { background: var(--bad-soft); }
  .card > .table-wrap { border: 0; border-radius: 0; margin: 0 -1rem; }
  .card > .table-wrap:last-child { margin-bottom: -1rem; border-radius: 0 0 var(--r-md) var(--r-md); }
  .card > .table-wrap .t th:first-child, .card > .table-wrap .t td:first-child { padding-left: 1rem; }
  .card > .table-wrap .t th:last-child, .card > .table-wrap .t td:last-child { padding-right: 1rem; }
  .card > .table-wrap .t th { background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: blur(0.875rem); border-top: 1px solid var(--stroke-soft); }
}
.vscroll { overflow-y: auto; position: relative; contain: strict; }
.vscroll table { position: absolute; left: 0; right: 0; }

.chart-box { width: 100%; min-width: 0; }
.chart-plot { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.chart-canvas { display: block; cursor: crosshair; touch-action: pan-y; }
.chart-plot.zoomed .chart-canvas { cursor: grab; }
.chart-plot .chart-canvas.on-days { cursor: pointer; }
.chart-plot.dragging .chart-canvas { cursor: grabbing; }
.chart-reset { position: absolute; top: 0; right: 0; z-index: 4; display: none; align-items: center; height: 1.5rem; padding: 0 0.625rem; border-radius: 0.4375rem; border: 1px solid var(--stroke); background: var(--bg-elev); color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; }
.chart-reset:hover { color: var(--text-1); border-color: var(--text-3); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.75rem; }
.chart-box.no-legend .chart-legend { display: none; }
.lg { display: inline-flex; align-items: center; gap: 0.4375rem; height: 1.625rem; padding: 0 0.625rem 0 0.5625rem; border-radius: 0.5rem; border: 1px solid var(--stroke-soft); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; transition: opacity var(--dur), border-color var(--dur); max-width: 100%; }
.lg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg i { width: 0.5625rem; height: 0.5625rem; border-radius: 0.1875rem; flex: none; }
.lg b { color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg:hover { border-color: var(--stroke); color: var(--text-1); }
.lg.off { opacity: .4; }
.lg.off b { display: none; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; display: none; min-width: 10rem; max-width: 17.5rem; padding: 0.5rem 0.625rem; border-radius: 0.625rem; background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--shadow-pop); font-size: var(--fs-xs); }
.tip-head { color: var(--text-2); margin-bottom: 0.375rem; font-weight: 600; white-space: nowrap; }
.tip-row { display: grid; grid-template-columns: 0.5625rem minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; padding: 2px 0; }
.tip-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.tip-row i { width: 0.5625rem; height: 0.5625rem; border-radius: 0.1875rem; }
.tip-row b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.tip-row.total { border-top: 1px solid var(--stroke-soft); margin-top: 0.25rem; padding-top: 0.375rem; }
.tip-head.sub { margin: 0.5rem 0 0.25rem; padding-top: 0.4375rem; border-top: 1px solid var(--stroke-soft); color: var(--text-3); font-weight: 500; }
.lg-pin { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--text-1); }
.lg-pin b { color: var(--text-3); font-weight: 500; }
.chart-empty { position: absolute; inset: 0; display: none; place-items: center; color: var(--text-3); font-size: var(--fs-sm); pointer-events: none; }
.legend-row { display: flex; flex-wrap: wrap; gap: 0.875rem; font-size: var(--fs-xs); color: var(--text-2); }
.legend-row i { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 0.1875rem; margin-right: 0.375rem; vertical-align: -1px; }

.heat { display: grid; grid-template-columns: 1.625rem repeat(24, minmax(0, 1fr)); gap: 0.1875rem; font-size: 0.6562rem; color: var(--text-3); }
.heat .cell { aspect-ratio: 1; border-radius: 0.25rem; min-height: 0.5rem; transition: transform var(--dur) var(--ease); }
.heat .cell:hover { transform: scale(1.3); outline: 1px solid var(--text-2); position: relative; z-index: 1; }
.heat .lbl { display: flex; align-items: center; }
.heat .hr { text-align: center; }

.bars { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3125rem 0.75rem; align-items: baseline; font-size: var(--fs-sm); }
.bar-row .bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar-track { grid-column: 1 / -1; height: 0.4375rem; }
.bar-row .r .faint { font-size: var(--fs-xs); }
.bar-track { height: 0.625rem; background: var(--sunken); border-radius: 0.3125rem; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0.3125rem; background: var(--accent); transition: width 420ms var(--ease); }
.bar-row .r { text-align: right; font-variant-numeric: tabular-nums; }

.funnel { display: flex; flex-direction: column; gap: 0.75rem; }
.funnel-step { display: grid; grid-template-columns: 1fr auto; gap: 0.3125rem 0.75rem; align-items: baseline; font-size: var(--fs-sm); }
.funnel-step .bar-track { grid-column: 1 / -1; height: 0.875rem; border-radius: 0.3125rem; }
.funnel-step .bar-fill { border-radius: 0.3125rem; }
.funnel-step .conv { font-size: var(--fs-xs); color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.funnel-step .conv b { color: var(--text-1); font-size: var(--fs-sm); }

.nodes { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.node { padding: 0.875rem; display: flex; flex-direction: column; gap: 0.625rem; cursor: pointer; }
.node.down { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.node.disabled { opacity: .55; }
.node-head { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.node-head b { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-head .cc { margin-left: auto; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.node-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.node-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.node-stats small { color: var(--text-3); font-size: var(--fs-xs); }
.node-stats b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.node-msg { font-size: var(--fs-xs); color: var(--bad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-msg.warn { color: var(--warn); }
.node.is-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.node.is-alarm { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.node-group + .node-group { margin-top: 1.25rem; }
.ng-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 2px 0.625rem; font-size: var(--fs-sm); color: var(--text-2); }
.ng-head > b { color: var(--text-1); font-size: var(--fs-md); font-weight: 600; }
.ng-state { margin-left: 0.375rem; }
.ng-online { margin-left: auto; }
.ng-online b { color: var(--text-1); font-weight: 600; }
.meter { height: 0.375rem; border-radius: 0.1875rem; background: var(--sunken); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 0.1875rem; background: var(--good); transition: width 500ms var(--ease), background var(--dur); }
.meter i.mid { background: var(--warn); }
.meter i.hi { background: var(--bad); }
.strip { display: flex; gap: 1px; height: 1rem; align-items: stretch; }
.strip i { flex: 1; border-radius: 1.5px; background: var(--good); opacity: .85; min-width: 1px; }
.strip i.down { background: var(--bad); }
.strip i.none { background: var(--surface-2); }
.toolbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--gap); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background:
  radial-gradient(56.25rem 31.25rem at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
  radial-gradient(50rem 31.25rem at 90% 90%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 60%), var(--bg); }
.login-box { width: min(23.75rem, 100%); padding: 1.75rem; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--stroke-soft); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 1rem; }
.login-box header { display: flex; gap: 0.75rem; align-items: center; }
.login-box header img { width: 2.5rem; height: 2.5rem; }
.login-box h2 { margin: 0; font-size: 1.1875rem; }
.login-box p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.code-input { font: 600 1.625rem/1 var(--mono); letter-spacing: 0.625rem; text-align: center; height: 3.25rem; }
.error { color: var(--bad); font-size: var(--fs-sm); min-height: 1.125rem; }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); backdrop-filter: blur(0.1875rem); display: grid; place-items: center; padding: 1.25rem; animation: fade 140ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(32.5rem, 100%); max-height: 88vh; overflow: auto; background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; animation: pop 160ms var(--ease); }
.modal.wide { width: min(55rem, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(0.5rem) scale(.985); } }
.modal h3 { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.modal .actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.25rem; }
.drawer-bg { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); animation: fade 140ms var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(clamp(47.5rem, 60vw, 67.5rem), 100vw); background: var(--bg-elev); border-left: 1px solid var(--stroke); box-shadow: var(--shadow-pop); overflow-y: auto; overscroll-behavior: contain; animation: slidein 240ms cubic-bezier(.22, .8, .25, 1); display: flex; flex-direction: column; will-change: transform; }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.125rem; background: var(--bg-elev); border-bottom: 1px solid var(--stroke-soft); }
.drawer-head h3 { margin: 0; font-size: var(--fs-lg); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { padding: 1.125rem; display: flex; flex-direction: column; gap: 0.875rem; }
.t .under { display: block; margin-top: 2px; font-size: var(--fs-2xs); font-weight: 400; color: var(--text-3); }
@media (min-width: 901px) { .t.pay-rows th, .t.pay-rows td { padding-left: 0.625rem; padding-right: 0.625rem; } }
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { min-width: 16.25rem; max-width: 26.25rem; padding: 0.6875rem 0.875rem; border-radius: var(--r-sm); background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--shadow-pop); font-size: var(--fs-sm); animation: pop 180ms var(--ease); display: flex; gap: 0.625rem; align-items: flex-start; }
.toast.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.toast.good { border-color: color-mix(in srgb, var(--good) 50%, transparent); }

.spinner { width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 2px solid var(--stroke); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
.loading { display: grid; place-items: center; min-height: 7.5rem; color: var(--text-3); }
.empty { display: grid; place-items: center; text-align: center; padding: 2.5rem 1rem; color: var(--text-3); gap: 0.5rem; }
.empty b { color: var(--text-1); font-weight: 600; font-size: var(--fs-md); }
.empty > span { max-width: 28.75rem; line-height: 1.5; font-size: var(--fs-sm); }
.empty-ico { width: 3rem; height: 3rem; border-radius: 0.875rem; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 0.25rem; }
.empty-ico svg { width: 1.375rem; height: 1.375rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; font-size: var(--fs-sm); margin: 0; align-items: baseline; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.banner { padding: 0.625rem 0.875rem; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); margin-bottom: var(--gap); line-height: 1.45; }
.banner.info { background: var(--accent-soft); color: var(--accent-text); }
.banner.note { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--stroke-soft); }

.tg-chat { background: color-mix(in srgb, var(--violet) 10%, var(--sunken)); border-radius: var(--r-md); padding: 1.125rem; min-height: 7.5rem; }
.tg-bubble { max-width: 26.25rem; background: var(--bg-elev); border: 1px solid var(--stroke-soft); border-radius: 0.875rem 0.875rem 0.875rem 0.25rem; padding: 0.625rem 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 0.875rem; }
.tg-bubble blockquote { margin: 0.25rem 0; padding: 2px 0.625rem; border-left: 0.1875rem solid var(--accent); background: var(--accent-soft); border-radius: 0.25rem; }
.tg-bubble code, .tg-bubble pre { font-family: var(--mono); font-size: 0.7812rem; background: var(--sunken); border-radius: 0.25rem; padding: 0 0.25rem; }
.tg-bubble a { color: var(--accent-text); text-decoration: underline; }
.tg-bubble .spoiler { background: var(--text-3); color: transparent; border-radius: 0.1875rem; }
.tg-button { max-width: 26.25rem; margin-top: 0.375rem; text-align: center; padding: 0.5rem; border-radius: 0.625rem; background: var(--surface-2); font-size: 0.8125rem; }
.editor { font-family: var(--mono); font-size: var(--fs-sm); min-height: 13.75rem; }
.flow { columns: 3 25rem; column-gap: var(--gap); }
.flow > .card { break-inside: avoid; margin-bottom: var(--gap); display: block; }
button.badge { border: 0; cursor: pointer; font-family: var(--mono); }
button.badge:hover { background: var(--surface-3); color: var(--text-1); }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--stroke-soft); }
.setting-row.stack { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; align-items: stretch; }
.setting-title { font-weight: 500; }
.knob { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.knob.int .input { width: 6rem; text-align: right; font-variant-numeric: tabular-nums; }
.knob.text { justify-content: stretch; }
.knob.text .input { flex: 1 1 10rem; min-width: 0; }
.knob-unit { color: var(--text-3); font-size: var(--fs-sm); min-width: 1.875rem; }
.knob-value { font-size: var(--fs-sm); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.ladder-step { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border: 1px solid var(--stroke-soft); border-radius: var(--r-sm, 0.5rem); background: var(--surface-2); }
.ladder-n { width: 1.375rem; height: 1.375rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs, 0.75rem); font-weight: 600; background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ladder-step:first-child .ladder-n { background: var(--accent); color: var(--on-accent, #fff); }
.ladder-name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder-act { display: flex; gap: 0.25rem; }
.setting-row:last-child { border-bottom: 0; }
.setting-row .hint { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

.posts-page { display: grid; grid-template-columns: 20.625rem minmax(0, 1fr); gap: var(--gap); align-items: start; }
.posts-left { display: flex; flex-direction: column; gap: 0.75rem; }
.channel-card { padding: 0.75rem 0.875rem; }
.channel-card.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--warn-soft); }
.post-list { display: flex; flex-direction: column; gap: 0.375rem; max-height: calc(100vh - 20.625rem); overflow: auto; padding-right: 2px; }
.post-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.625rem 0.75rem; border-radius: var(--r-md); border: 1px solid var(--stroke-soft); background: var(--surface-1); color: inherit; text-decoration: none; }
.post-item:hover { border-color: var(--stroke); }
.post-item.on { border-color: var(--accent); background: var(--accent-soft); }
.small { font-size: var(--fs-xs); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.title-input { max-width: 26.25rem; font-weight: 600; }
.save-state { font-size: var(--fs-xs); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18.75rem, 24.375rem); gap: var(--gap); align-items: start; }
.post-form { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.post-side .sticky { position: sticky; top: calc(var(--top) + 1rem); display: flex; flex-direction: column; gap: 0.625rem; }
.post-text { width: 100%; min-height: 13.75rem; font-family: var(--mono); font-size: var(--fs-sm); }
.fmt-bar { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.5rem; }
.input.sm, .select.sm { height: var(--h-sm); font-size: var(--fs-sm); padding: 0 0.625rem; border-radius: var(--r-xs); }
select.select.sm { padding-right: 1.875rem; background-position: right 0.5rem center; }
.counter { margin-top: 0.375rem; font-size: var(--fs-xs); }
.media-drop { border-style: dashed; padding: 0.75rem 0.875rem; display: flex; flex-direction: column; gap: 0.625rem; }
.media-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.opts { gap: 1.125rem; flex-wrap: wrap; }
.opts label { gap: 0.5rem; cursor: pointer; font-size: var(--fs-sm); }
.emoji-panel { margin-top: 0.625rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.625rem; border-top: 1px solid var(--stroke-soft); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.875rem, 1fr)); gap: 0.25rem; max-height: 16.5rem; overflow: auto; }
.emoji-grid button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.25rem 2px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; cursor: pointer; color: var(--text-3); font-size: var(--fs-2xs); }
.emoji-grid button:hover { border-color: var(--stroke); background: var(--surface-2); color: var(--text-1); }
.emoji-grid img { width: 1.75rem; height: 1.75rem; }
.chips { gap: 0.375rem; }
.chip { height: 1.625rem; padding: 0 0.625rem; border-radius: 0.5rem; border: 1px solid var(--stroke-soft); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; }
.chip.on, .chip:hover { border-color: var(--accent); color: var(--text-1); }
.kb-edit { display: flex; flex-direction: column; gap: 0.625rem; }
.kb-row { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.5rem; border: 1px solid var(--stroke-soft); border-radius: var(--r-md); }
.kb-row-head { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; }
.kb-btn { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) 7.25rem 1.75rem; grid-template-areas: "icon text style del" ". url url url"; gap: 0.375rem; align-items: center; }
.kb-btn + .kb-btn { padding-top: 0.375rem; border-top: 1px dashed var(--stroke-soft); }
.kb-btn .kb-icon { grid-area: icon; }
.kb-btn input:not(.mono) { grid-area: text; }
.kb-btn .mono { grid-area: url; }
.kb-btn .select { grid-area: style; }
.kb-btn > button:last-child { grid-area: del; }
.kb-icon img { width: 1.125rem; height: 1.125rem; }
.problems { padding: 0.625rem 0.75rem; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 2px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); display: flex; gap: 0.5rem; align-items: center; }
.relay-card { display: flex; flex-direction: column; gap: 0.625rem; color: inherit; text-decoration: none; min-width: 0; }
.relay-steps { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; padding: 0.625rem 0.75rem; border-radius: var(--r-sm); background: var(--surface-2); }
.relay-steps > div:not(.arrow) { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.relay-steps b { font-size: var(--fs-xl); font-weight: 650; }
.relay-steps span { font-size: var(--fs-xs); color: var(--text-3); }
.relay-steps .arrow { color: var(--text-3); }
.toolbar-title { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.sfunnel { display: flex; flex-direction: column; }
.sf-split { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }
.sf-split button { border: 1px solid transparent; cursor: pointer; }
.sf-split button.on { border-color: currentColor; }
.sf-note { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.75rem; width: 100%; padding: 0.5rem 0.625rem; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.sf-note.on { border-color: var(--warn); }
.sf-hint { margin-top: 0.625rem; text-align: center; }
.t tr.on td { background: var(--accent-soft); }
.t td.sub-row { padding-left: 1.875rem; color: var(--text-2); }
.t td .dot { margin-right: 0.5rem; }
.tg-bubble.post { max-width: 100%; padding: 0; overflow: hidden; }
.tg-bubble.post .tg-text { padding: 0.5rem 0.75rem 0.625rem; }
.tg-media { display: block; width: 100%; max-height: 22.5rem; object-fit: cover; background: var(--sunken); }
.tg-media.none { display: flex; align-items: center; gap: 0.5rem; padding: 1.125rem 0.75rem; color: var(--text-3); font-size: 0.8125rem; }
.tg-file { display: flex; gap: 0.625rem; align-items: center; padding: 0.625rem 0.75rem; }
.tg-file small { display: block; color: var(--text-3); }
.tg-spoil { position: relative; overflow: hidden; }
.tg-spoil > img, .tg-spoil > video { filter: blur(1.125rem); }
.tg-spoil > span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.75rem; }
.tg-emoji { width: 1.25em; height: 1.25em; vertical-align: -0.25em; display: inline-block; }
.tg-token { color: var(--bad); text-decoration: underline wavy; }
.tg-kb { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.25rem; }
.tg-kb-row { display: flex; gap: 0.25rem; }
.tg-kb-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: 0; padding: 0.5rem; border-radius: 0.625rem; background: color-mix(in srgb, var(--surface-3) 85%, transparent); color: var(--text-1); font-size: 0.8125rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-kb-btn.success { background: #2f9e4f; color: #fff; }
.tg-kb-btn.primary { background: #2b7de0; color: #fff; }
.tg-kb-btn.danger { background: #dc3f48; color: #fff; }
@media (max-width: 1400px) { .post-grid { grid-template-columns: 1fr; } .post-side .sticky { position: static; } }
@media (max-width: 1100px) { .posts-page { grid-template-columns: 1fr; } .post-list { max-height: none; } }
.channel-card > .row > svg, .media-drop > .row > svg, .tg-media.none > svg, .tg-file > svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--text-2); }
.posts-left, .posts-right, .post-grid > * { min-width: 0; }
.posts-left > .row { flex-wrap: wrap; }
.post-head .title-input { flex: 1 1 13.75rem; }
.media-drop > .row > span { min-width: 0; }
.media-row > b { flex: 0 1 auto; }
.media-row .faint { white-space: nowrap; }
.bc-progress { display: flex; height: 0.5rem; border-radius: 0.25rem; overflow: hidden; background: var(--sunken); }
.bc-progress.thin { height: 0.25rem; border-radius: 2px; }
.bc-progress i { display: block; height: 100%; transition: width var(--dur) var(--ease); }
.bc-progress .ok { background: var(--good); }
.bc-progress .ban { background: var(--text-3); }
.bc-progress .err { background: var(--bad); }
.bc-view { display: flex; flex-direction: column; gap: var(--gap); }
.bc-card { display: flex; flex-direction: column; gap: 0.75rem; }
.bc-card .post-head { margin-bottom: 0; }
.bc-card h2 { margin: 0; font-size: 1.125rem; font-weight: 600; min-width: 0; }
.bc-who { display: flex; gap: 0.625rem; align-items: baseline; flex-wrap: wrap; }
.bc-grace { display: flex; align-items: center; gap: 1.125rem; padding: 0.875rem 1rem; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.bc-grace-time { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; min-width: 5.25rem; }
.bc-grace-time b { font: 600 1.875rem/1 var(--mono); color: var(--text-1); font-variant-numeric: tabular-nums; }
.bc-grace-time span { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.bc-grace-text { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.bc-grace-text b { color: var(--text-1); }
@media (max-width: 900px) { .bc-grace { flex-direction: column; align-items: flex-start; gap: 0.625rem; } .bc-grace-time { align-items: flex-start; } }
.slice-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.375rem 0.75rem; align-items: center; }
.slice-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.slice-what { min-width: 0; color: var(--text-2); font-size: var(--fs-sm); }
.slice-count { white-space: nowrap; justify-self: end; }
.slice-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(10.625rem, 1fr)); }
.slice-count b { font-size: 1.125rem; }
.slice-card.open .slice-head { margin-bottom: 0.875rem; }
.list-back { display: none; align-self: flex-start; margin-bottom: 0.625rem; }
@media (max-width: 1100px) { .posts-page.opened .posts-left { display: none; } .posts-page.opened .list-back { display: inline-flex; } }
.tg-dm-head { display: flex; align-items: center; gap: 0.625rem; padding-bottom: 0.625rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--stroke-soft); }
.tg-dm-head b { display: block; font-size: 0.8438rem; }
.tg-dm-head small { display: block; color: var(--text-3); font-size: 0.7188rem; }
.tg-ava { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.down-list { display: flex; flex-direction: column; margin: 0 -0.5rem; }
.down-row { display: grid; grid-template-columns: 0.625rem minmax(0, 1fr) auto; gap: 0.625rem; align-items: center; padding: 0.4375rem 0.5rem; border-radius: var(--r-xs); font-size: var(--fs-sm); }
.down-row:hover { background: var(--surface-1); }
.down-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.down-row .faint { font-size: var(--fs-xs); white-space: nowrap; }

.bottom-nav { display: none; }
@media (max-width: 900px) {
  :root { --top: 3.5rem; }
  .top-in { padding: 0 0.75rem; gap: 0.5rem; }
  .brand { width: auto; }
  .brand b, .brand-tag { display: none; }
  .cmd { flex: 1 1 0; min-width: 0; width: auto; height: 2.375rem; }
  .cmd kbd { display: none; }
  .top .spacer { display: none; }
  .live .live-text { display: none; }
  .live { padding: 0; width: var(--h-lg); justify-content: center; flex: none; }
  .bell, .acct { flex: none; }
  .acct-text, .acct-btn > svg { display: none; }
  .acct-btn { padding: 0 0.375rem; height: 2.5rem; }
  .acct-pop .side-toggle { display: none; }
  .pop.acct-pop { position: fixed; top: calc(var(--top) + 0.375rem); right: 0.75rem; left: 0.75rem; width: auto; max-width: none; }
  .frame, .collapsed .frame { grid-template-columns: 1fr; padding: 0.875rem 0.75rem 0; }
  .side { display: none; }
  .page-head { gap: 0.75rem; margin-bottom: 0.875rem; }
  .page-icon { width: 2.5rem; height: 2.5rem; }
  .page-icon svg { width: 1.125rem; height: 1.125rem; }
  .page-title h1 { font-size: var(--fs-xl); }
  .page-title p { display: none; }
  .t.cards td.nil { display: none; }
  .page { padding: 0 0 calc(5.25rem + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.375rem 0.375rem calc(0.375rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
    backdrop-filter: blur(0.875rem); border-top: 1px solid var(--stroke-soft);
  }
  .bottom-nav .tab { display: flex; flex-direction: column; align-items: center; gap: 0.1875rem; padding: 0.375rem 2px; border: 0; background: none; color: var(--text-3); font-size: 0.6562rem; border-radius: var(--r-sm); cursor: pointer; min-width: 0; }
  .bottom-nav .tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav .tab svg { width: 1.3125rem; height: 1.3125rem; }
  .bottom-nav .tab.on { color: var(--accent-text); }
  .toasts { left: 0.75rem; right: 0.75rem; bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
  .kpi { padding: 0.75rem 0.75rem; min-height: 0; gap: 0.25rem; }
  .kpi .value { font-size: 1.375rem; letter-spacing: -.3px; }
  .kpi .label { font-size: var(--fs-xs); }
  .kpi-spark { width: calc(100% + 1.5rem); margin: 0.25rem -0.75rem 0; height: 1.75rem; }
  .kpi.has-spark { padding-bottom: 0; }
  .kpis, .kpis.four, .kpis.three { gap: 0.625rem; }
  .card { padding: 0.875rem; }
}
.sheet-bg { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .45); animation: fade 140ms var(--ease); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 82vh; overflow-y: auto; padding: 0.5rem 0.875rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--bg-elev); border-top: 1px solid var(--stroke); border-radius: 1.125rem 1.125rem 0 0; box-shadow: var(--shadow-pop); animation: sheetin 200ms var(--ease);
}
@keyframes sheetin { from { transform: translateY(1.5rem); opacity: 0; } }
.sheet-grip { width: 2.5rem; height: 0.25rem; border-radius: 2px; background: var(--surface-3); margin: 2px auto 0.5rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.75rem 0.25rem; border-radius: var(--r-md); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-xs); text-align: center; }
.sheet-item svg { width: 1.25rem; height: 1.25rem; }
.sheet-item.on { background: var(--accent-soft); color: var(--text-1); }
.sheet-foot { display: flex; gap: 0.5rem; margin-top: 0.875rem; }
.sheet-foot .btn { flex: 1; height: 2.5rem; }
.sheet-group { margin: 0.75rem 0.25rem 0.375rem; font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.sheet-theme { margin-top: 0.875rem; padding: 0.75rem; border-radius: var(--r-md); background: var(--surface-1); }
.mini-stats { display: flex; flex-direction: column; gap: 0.875rem; }
.mini-stats > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding-bottom: 0.75rem; border-bottom: 1px solid var(--stroke-soft); }
.mini-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-stats small { color: var(--text-3); font-size: var(--fs-xs); }
.mini-stats b { font-size: var(--fs-xl); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.mini-stats span { color: var(--text-3); font-size: var(--fs-xs); }
@media (max-width: 1200px) and (min-width: 901px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.who-id { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.3; font-variant-numeric: tabular-nums; }
.t.dense td { padding-top: 0.4375rem; padding-bottom: 0.4375rem; }
.t .actions-cell:empty, .t .actions-cell .row:empty { padding: 0; }
@media (max-width: 900px) { .t.cards td.actions-cell:has(> .row:empty) { display: none; } }
@media (max-width: 900px) {
  .table-wrap:has(> .t.cards) { border: 0; border-radius: 0; overflow: visible; }
  .t.cards, .t.cards tbody { display: block; width: 100%; }
  .t.cards thead { display: none; }
  .t.cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.875rem; padding: 0.75rem 0.875rem; margin-bottom: 0.5rem;
    background: var(--surface-1); border: 1px solid var(--stroke-soft); border-radius: var(--r-md); }
  .t.cards tbody tr:hover { background: var(--surface-1); }
  .t.cards td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; text-align: left; }
  .t.cards td:first-child { grid-column: 1 / -1; }
  .t.cards td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-2xs); color: var(--text-3); margin-bottom: 2px; }
  .t.cards td.hide-m, .t.cards td:empty { display: none; }
  .t.cards td.actions-cell { grid-column: 1 / -1; }
  .t.cards .who-name { font-size: 0.9375rem; }
}
.heat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; margin-top: 0.75rem; font-size: 0.7188rem; color: var(--text-3); }
.heat-scale { display: inline-block; width: 5.625rem; height: 0.5rem; border-radius: 0.25rem; background: linear-gradient(90deg, var(--heat-0), var(--heat-1)); }
body.locked { overflow: hidden; }
.audit-legend { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin: -0.25rem 0 0.75rem; font-size: var(--fs-xs); color: var(--text-3); }
.audit-legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.kind-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-right: 0.5rem; flex: none; vertical-align: 1px; background: var(--c8); }
.audit-legend .kind-dot { margin-right: 0; }
.kind-dot.k-login { background: var(--c3); }
.kind-dot.k-money { background: var(--c5); }
.kind-dot.k-conf { background: var(--c2); }
.kind-dot.k-send { background: var(--c4); }
.kind-dot.k-bad { background: var(--bad); }
.t.audit .audit-time { width: 4rem; }
.t.audit .audit-act { font-weight: 500; white-space: nowrap; }
.t.audit .audit-detail { max-width: 21.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t tr.day-row td { background: var(--surface-1); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; padding-top: 0.375rem; padding-bottom: 0.375rem; letter-spacing: .02em; }
.t tr.day-row:hover td { background: var(--surface-2); }
.center { display: flex; justify-content: center; text-align: center; }
@media (max-width: 900px) {
  .t.cards tr.day-row { display: block; background: none; border: 0; padding: 0.625rem 2px 0.25rem; margin: 0; }
  .t.cards tr.day-row td { background: none; padding: 0; font-size: var(--fs-sm); }
  .t.audit.cards tr:not(.day-row) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1875rem 0.625rem; padding: 0.625rem 0.75rem; margin-bottom: 0.375rem; }
  .t.audit.cards td.audit-time { width: 2.5rem; flex: none; }
  .t.audit.cards td.audit-act { flex: 1 1 calc(100% - 3.125rem); min-width: 0; white-space: normal; }
  .t.audit.cards td[data-label] { font-size: var(--fs-xs); color: var(--text-3); }
  .t.audit.cards td[data-label]::before { display: none; }
  .t.audit.cards td[data-label="Кто"] { margin-left: 3.125rem; color: var(--text-2); }
  .t.audit.cards td[data-label="Цель"]::before { display: inline; content: "→ "; font-size: inherit; color: inherit; }
  .t.audit.cards td.audit-detail { flex: 1 1 calc(100% - 3.125rem); margin-left: 3.125rem; max-width: none; white-space: normal; overflow-wrap: anywhere; }
  .t.audit.cards td.nil { display: none; }
}
@media (max-width: 900px) {
  .setting-row { gap: 0.625rem; }
  .knob.int .input { width: 5.25rem; }
}
.texts-grid { grid-template-columns: 16.25rem minmax(0, 1fr); }
.texts-nav { padding: 0.625rem; align-self: start; }
.texts-pick { display: none; margin-bottom: 0.75rem; }
.texts-pick .select { width: 100%; }
@media (max-width: 900px) {
  .texts-grid { grid-template-columns: minmax(0, 1fr); }
  .texts-nav { display: none; }
  .texts-pick { display: block; }
}
.card-head.sub-head { margin-top: 1.125rem; padding-top: 0.875rem; border-top: 1px solid var(--stroke-soft); }
.sub-now { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; align-items: center; border-left: 0.1875rem solid var(--stroke); }
.sub-now.s-paid { border-left-color: var(--good); }
.sub-now.s-trial { border-left-color: var(--c3); }
.sub-now.s-grace { border-left-color: var(--warn); }
.sub-now.s-expired { border-left-color: var(--bad); }
.sub-now .label { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 0.25rem; }
.sub-now b { font-size: var(--fs-md); }
.sub-now .sub-now-title { font-size: var(--fs-lg); }
.sub-now .faint { font-size: var(--fs-xs); margin-top: 0.1875rem; }
.sub-now-tools { display: flex; flex-direction: column; gap: 0.375rem; align-items: stretch; }
.sub-now-warn { grid-column: 1 / -1; }
.sub-now.empty-sub { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .sub-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-now-main { grid-column: 1 / -1; }
  .sub-now-tools { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 900px) {
  .drawer-body > .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .drawer-body > .grid.cols-3 > .kpi { padding: 0.625rem 0.75rem; min-height: 0; }
  .drawer-body > .grid.cols-3 > .kpi .value { font-size: 1rem !important; }
  .drawer-body > .grid.cols-3 > .kpi .foot, .drawer-body > .grid.cols-3 > .kpi .label { font-size: var(--fs-2xs); }
}
@media (max-width: 900px) {
  .t.cards.tariffs td.tar-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .t.cards.tariffs td.tar-name { grid-column: 1; grid-row: 1; align-self: center; }
}
.status-cards .kpi { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; padding: 0.75rem 0.875rem; gap: 2px; transition: border-color var(--dur); }
.status-cards .kpi .value { font-size: var(--fs-xl); }
.status-cards .kpi .label { font-size: var(--fs-xs); }
.status-cards .kpi:hover { border-color: var(--stroke); }
.status-cards .kpi.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
@media (max-width: 900px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .toolbar .search-form { flex-wrap: wrap; width: 100%; }
  .toolbar .search-form .input { flex: 1 1 10rem; min-width: 0; }
  .grid.kpis.status-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .status-cards .kpi { padding: 0.625rem 0.75rem; min-height: 0; gap: 2px; }
  .status-cards .kpi .value { font-size: 1.25rem; }
  .status-cards .kpi .label, .status-cards .kpi .foot { font-size: var(--fs-2xs); }
}
@media (max-width: 900px) {
  .status-seg { display: none; }
}

.nodes-top { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--stroke-soft); margin-bottom: 0.875rem; }
.nodes-top .tabs { border-bottom: 0; margin-bottom: 0; flex: 1; min-width: 0; }
.nodes-top .seg { flex: none; }

.graph { --g-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, .35); display: flex; flex-direction: column; height: calc(100dvh - var(--top) - 11.625rem); min-height: 32.5rem; border: 1px solid var(--stroke-soft); border-radius: var(--r-md); overflow: hidden; background: var(--bg-elev); user-select: none; -webkit-user-select: none; }
.g-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--stroke-soft); flex-wrap: wrap; }
.g-layers { display: flex; gap: 2px; flex-wrap: wrap; }
.g-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12.5px; cursor: pointer; }
.g-chip i { width: 12px; height: 2px; border-radius: 1px; background: var(--c); opacity: .35; }
.g-chip:hover { color: var(--text-1); }
.g-chip.on { color: var(--text-1); background: var(--surface-2); }
.g-chip.on i { opacity: 1; }
.g-chip-main { --c: var(--blue); }
.g-chip-runet { --c: var(--c9); }
.g-chip-personal { --c: var(--c4); }
.g-chip-lab { --c: var(--warn); }
.g-search { height: 28px; width: 230px; font-size: 12.5px; }
.g-bar .btn.on { background: var(--surface-3); border-color: transparent; }
.g-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.g-body.with-insp { grid-template-columns: minmax(0, 1fr) 300px; }
.g-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.g-canvas { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; cursor: grab; background-color: var(--bg); background-image: radial-gradient(circle, var(--grid) 1px, transparent 1.3px); }
.g-canvas:active { cursor: grabbing; }
.g-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.g-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.g-lane { position: absolute; left: 0; top: 0; border-radius: 14px; border: 1px dashed var(--stroke); pointer-events: none; }
.g-lane span { position: absolute; left: 14px; top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.g-w { fill: none; stroke-linecap: round; opacity: .5; transition: opacity var(--dur); }
.g-w-exit { stroke: var(--blue); }
.g-w-bypass { stroke: var(--violet); }
.g-w-yt { stroke: var(--accent); }
.g-w-personal { stroke: var(--c4); }
.g-w-lab { stroke: var(--warn); }
.g-w-runet { stroke: var(--c9); stroke-dasharray: 3 5; opacity: .3; }
.g-w.dead { stroke: var(--bad); stroke-dasharray: 6 5; opacity: .75; }
.g-cframe { position: absolute; left: 0; top: 0; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--stroke-soft); background: color-mix(in srgb, var(--surface-2) 35%, transparent); pointer-events: none; }
.g-cframe span { position: absolute; right: 10px; top: 4px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; line-height: 14px; color: var(--text-2); white-space: nowrap; }
.g-cframe b { font: 600 10px var(--mono); color: var(--text-3); background: var(--surface-2); border-radius: 4px; padding: 0 4px; }
.g-port { stroke: var(--bg); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: opacity var(--dur); }
.g-port-exit { fill: var(--blue); }
.g-port-bypass { fill: var(--violet); }
.g-port-yt { fill: var(--accent); }
.g-port-personal { fill: var(--c4); }
.g-port-lab { fill: var(--warn); }
.g-port-runet { fill: var(--c9); }
.g-port.dead { fill: var(--bad); }
.has-focus .g-port:not(.lit) { opacity: .1; }
.has-focus .g-w:not(.lit) { opacity: .05; }
.g-w.lit { opacity: .95; }
.g-flow { fill: none; stroke: #fff; stroke-linecap: round; stroke-dasharray: 1 12; opacity: .55; animation: g-flow 1.1s linear infinite; }
@keyframes g-flow { to { stroke-dashoffset: -13; } }

.g-card { position: absolute; left: 0; top: 0; box-sizing: border-box; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--g-shadow); cursor: pointer; transition: opacity var(--dur), border-color var(--dur), box-shadow var(--dur); }
.g-card:hover { border-color: var(--text-3); }
.g-card.sel, .g-card.sel:hover { z-index: 2; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--g-shadow); }
.has-focus .g-card:not(.lit) { opacity: .2; }
.g-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.g-pin { position: absolute; box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--text-3); background: var(--bg-elev); }
.g-out { right: -5px; top: calc(50% - 4.5px); }
.g-in { left: -5px; top: calc(50% - 4.5px); }

.g-head { box-sizing: border-box; height: 29px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-bottom: 1px solid var(--stroke-soft); }
.g-head b { font: 600 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-on { margin-left: auto; flex: none; white-space: nowrap; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; }
.g-tcp { font: 600 10px var(--mono); color: var(--bad); background: var(--bad-soft); border-radius: 4px; padding: 1px 4px; }
.g-pin-row { position: relative; height: 18px; display: flex; align-items: center; padding-left: 12px; font: 11px var(--mono); color: var(--text-3); white-space: nowrap; }
.g-pin-row .g-pin { left: -5px; top: 4.5px; }
.g-pin-row.used { color: var(--text-2); }
.g-pin-row.used .g-pin, .g-out, .g-in { border-color: var(--text-2); background: var(--text-2); }
.g-out-node { top: 9.5px; }
.g-load { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--surface-2); overflow: hidden; }
.g-load i { display: block; height: 100%; background: var(--good); }
.g-load i.mid { background: var(--warn); }
.g-load i.hi { background: var(--bad); }
.g-node.st-down, .g-node.st-disabled { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.g-node.st-down .g-dot { background: var(--bad); border-radius: 1.5px; transform: rotate(45deg) scale(.86); }
.g-node.st-disabled .g-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.g-node.hl-warn .g-dot { background: var(--warn); border-radius: 0; width: 9px; height: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.g-node.hl-down .g-dot { background: var(--bad); border-radius: 1.5px; transform: rotate(45deg) scale(.86); }
.g-node.hl-warn:not(.sel) { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.g-node.hl-down:not(.sel) { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.g-cframe.tone-warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.g-cframe.tone-down { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.g-cframe.tone-warn span { color: var(--warn); }
.g-cframe.tone-down span { color: var(--bad); }
.g-lane.tone-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.g-lane.tone-down { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.g-lane.tone-warn > span { color: var(--warn); }
.g-lane.tone-down > span { color: var(--bad); }
.g-node.sim { border-style: dashed; }
.g-node.st-unknown .g-dot { background: var(--muted); }
.g-pin-row.g-pin-none { padding-left: 10px; font-size: 10.5px; color: var(--text-3); }

.g-sub, .g-pool, .g-front { display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.g-pool, .g-front { border-style: dashed; }
.g-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-pool .g-name, .g-front .g-name { font: 500 12px var(--mono); }
.g-meta { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-cc { font: 600 10px var(--mono); color: var(--text-3); background: var(--surface-2); border-radius: 4px; padding: 1px 4px; flex: none; }
.g-sub .g-dot { background: var(--muted); }
.g-sub.tone-good .g-dot { background: var(--good); }
.g-sub.tone-warn .g-dot { background: var(--warn); }
.g-sub.tone-warn .g-meta { color: var(--warn); }
.g-sub.tone-bad { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.g-sub.tone-bad .g-dot { background: var(--bad); }
.g-sub.tone-bad .g-meta { color: var(--bad); }
.g-sub.off { opacity: .5; }
.g-sub.off .g-name { text-decoration: line-through; }

.g-box { position: absolute; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 3px; pointer-events: none; }
.g-banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 5px 6px 5px 12px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--shadow); font-size: 12.5px; color: var(--text-2); }
.g-time-wrap { flex: none; border-top: 1px solid var(--stroke-soft); }
.g-time { background: var(--bg-elev); padding: 8px 14px 4px; }
.g-time-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12.5px; flex-wrap: wrap; }
.g-time-at { font: 600 12.5px var(--mono); }
.g-time-at.past { color: var(--accent-text); }
.g-time-plot { position: relative; height: 62px; cursor: ew-resize; outline: none; touch-action: none; }
.g-time-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft); border-radius: 6px; }
.g-time-plot svg { display: block; width: 100%; height: 44px; }
.g-time-area { fill: var(--accent-soft); }
.g-time-line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.g-time-head-line { position: absolute; top: 0; width: 2px; height: 44px; margin-left: -1px; border-radius: 1px; background: var(--text-1); pointer-events: none; }
.g-time-ticks { position: relative; height: 16px; }
.g-time-ticks span { position: absolute; top: 2px; transform: translateX(-50%); font: 10.5px var(--mono); color: var(--text-3); white-space: nowrap; }

.g-insp { min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-left: 1px solid var(--stroke-soft); background: var(--bg-elev); }
.g-insp p { margin: 0; }
.g-insp .kv { font-size: 12.5px; }
.g-insp .selectable { user-select: text; -webkit-user-select: text; cursor: text; }
.g-insp button.link { border: 0; background: none; padding: 0; font: inherit; }
.gi-kicker { font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.g-insp h3, .gi-title { margin: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.gi-state { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.gi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.gi-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gi-stats small { font-size: 0.6875rem; color: var(--text-3); }
.gi-stats b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.gi-stats b.bad { color: var(--bad); }
.gi-sec { display: flex; flex-direction: column; gap: 0.375rem; }
.gi-sec > b { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.gi-list { display: flex; flex-direction: column; gap: 1px; }
.gi-row { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.375rem 0.5rem; border: 0; border-radius: 0.4375rem; background: transparent; color: var(--text-1); font-size: 0.8125rem; text-align: left; cursor: pointer; }
.gi-row:hover { background: var(--surface-1); }
.gi-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-warn { font-size: 0.7812rem; color: var(--warn); }
.gi-keys { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; margin: 0; font-size: 0.75rem; }
.gi-keys dt { font: 0.7188rem var(--mono); color: var(--text-2); }
.gi-keys dd { margin: 0; color: var(--text-3); }
.gi-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gi-switch { flex-direction: row; align-items: center; justify-content: space-between; font-size: 0.8125rem; }
.gi-hosts { display: flex; flex-direction: column; gap: 2px; max-height: 11.25rem; overflow-y: auto; font-size: 0.75rem; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .g-flow { animation: none; } .g-card, .g-w { transition: none; } }
@media (max-width: 900px) {
  .nodes-top { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 0; }
  .nodes-top .tabs { border-bottom: 1px solid var(--stroke-soft); }
  .nodes-top .seg { align-self: flex-start; margin: 0.625rem 0 2px; }
  .graph { height: calc(100dvh - var(--top) - 13.125rem); }
  .g-body.with-insp { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 42%); }
  .g-insp { border-left: 0; border-top: 1px solid var(--stroke-soft); }
  .g-search { width: 150px; }
}

.toolbar .search-form .select { width: 9.375rem; }
.toolbar .search-form .input { width: 11.875rem; }
.t td.id { color: var(--text-3); font-variant-numeric: tabular-nums; }
.kpis.status-cards > .kpi { display: flex; grid-row: auto; }
@media (max-width: 900px) {
  .toolbar > .select { flex: 1 1 8.75rem; }
  .toolbar > .range, .period > .range { flex: 1 1 100%; }
  .range input { flex: 1 1 0; width: auto; min-width: 0; }
  .toolbar .search-form { flex-wrap: nowrap; }
  .toolbar .search-form .select { width: 8rem; flex: none; }
  .toolbar .search-form .input { width: auto; flex: 1 1 0; }
  .toolbar .search-form .btn { width: var(--h-md); padding: 0; font-size: 0; gap: 0; }
  .toolbar .search-form .btn svg { width: 1rem; height: 1rem; }
  .period > .seg { flex: 1 1 100%; }
  .period > .seg button { flex: 1; padding: 0 0.25rem; }
}
.top-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; margin-left: auto; flex-wrap: wrap; }
.lead { margin: 0 0 var(--gap); color: var(--text-3); font-size: var(--fs-sm); line-height: 1.45; }
@media (max-width: 900px) {
  .top-actions .btn { width: var(--h-md); padding: 0; font-size: 0; gap: 0; }
  .top-actions .btn svg { width: 1.125rem; height: 1.125rem; }
}
.now-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); padding: 0; overflow: hidden; }
.now-cell { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 1rem; min-width: 0; border-left: 1px solid var(--stroke-soft); transition: background var(--dur); }
.now-cell:first-child { border-left: 0; }
a.now-cell:hover { background: var(--surface-1); }
.now-label { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.now-label .dot { width: 0.4375rem; height: 0.4375rem; }
.now-main { display: flex; align-items: baseline; gap: 0.625rem; min-width: 0; }
.now-main b { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.now-foot { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.now-cell.is-bad .now-foot { color: var(--bad); }
.now-cell.is-warn b, .now-cell.is-warn .now-foot { color: var(--warn); }
.sum-row { display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; margin: -0.25rem 0 0.875rem; font-size: var(--fs-xs); color: var(--text-3); }
.sum-row span { display: inline-flex; align-items: baseline; gap: 0.375rem; white-space: nowrap; }
.sum-row b { color: var(--text-1); font-size: var(--fs-sm); font-weight: 600; }
.sum-row .delta { font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .now-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-cell { padding: 0.625rem 0.75rem; border-left: 0; border-top: 1px solid var(--stroke-soft); }
  .now-cell:nth-child(-n+2) { border-top: 0; }
  .now-cell:nth-child(2n) { border-left: 1px solid var(--stroke-soft); }
  .now-main { flex-direction: column; gap: 0; }
  .now-main b { font-size: var(--fs-lg); }
}
.texts-nav .nav-item { white-space: normal; height: auto; min-height: 2.125rem; padding: 0.4375rem 0.625rem; line-height: 1.3; }
.texts-nav .nav-item span:first-child { min-width: 0; overflow-wrap: anywhere; }
.texts-nav .nav-group { white-space: normal; }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.login-box .input, .login-box .btn { height: var(--h-lg); }
.login-box .code-input { height: 3.25rem; }
.period { position: relative; flex-wrap: nowrap; }
.period-cal { padding: 0 0.625rem; color: var(--text-2); }
.period-cal svg { width: 1rem; height: 1rem; }
.period-cal.on { color: var(--text-1); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.period-cal.open { border-color: var(--accent); }
.pop { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 30; display: flex; flex-direction: column; gap: 0.625rem; padding: 0.875rem; border-radius: var(--r-md); background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--shadow-pop); animation: pop 140ms var(--ease); }
.pop-title { font-size: var(--fs-sm); font-weight: 600; }
.top-actions .period .seg { background: var(--sunken); }
@media (max-width: 900px) {
  .top-actions:has(.period) { flex: 1 1 100%; }
  .top-actions .period { flex: 1 1 auto; }
  .top-actions .period .seg { flex: 1 1 auto; height: var(--h-sm); padding: 2px; }
  .top-actions .period .seg button { flex: 1; padding: 0 0.25rem; font-size: var(--fs-xs); }
  .top-actions .period .period-cal { width: auto; height: var(--h-sm); padding: 0 0.5rem; font-size: var(--fs-xs); gap: 0.375rem; }
  .top-actions .period .period-cal svg { width: 0.9375rem; height: 0.9375rem; }
  .pop { right: 0; left: auto; max-width: calc(100vw - 1.5rem); }
  .pop .range { flex-wrap: nowrap; }
}
.grid.kpis, .grid.kpis.four, .grid.kpis.three, .grid.kpis.cols-2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1360px) { .grid.kpis, .grid.kpis.four, .grid.kpis.three, .grid.kpis.cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid.kpis, .grid.kpis.four, .grid.kpis.three, .grid.kpis.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zone .card-head { margin-bottom: 0.875rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); margin: 0 -1rem 1rem; border-top: 1px solid var(--stroke-soft); border-bottom: 1px solid var(--stroke-soft); }
.stat { display: flex; flex-direction: column; gap: 0.1875rem; min-width: 0; padding: 0.75rem 1rem; border-left: 1px solid var(--stroke-soft); color: inherit; transition: background var(--dur); }
.stat:first-child { border-left: 0; }
a.stat:hover { background: var(--surface-1); }
.stat-label { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { display: block; font-size: var(--fs-xl); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: 0.3125rem; }
.stat-sub { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat-foot { display: flex; align-items: center; gap: 0.375rem; min-width: 0; font-size: var(--fs-xs); color: var(--text-3); }
.stat-foot > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.125rem; }
.stat-foot .delta { flex: none; height: 1.125rem; display: inline-flex; align-items: center; padding: 0 0.375rem; border-radius: 0.3125rem; background: var(--surface-2); font-size: var(--fs-xs); }
.stat-foot .delta.up { background: var(--good-soft); }
.stat-foot .delta.down { background: var(--bad-soft); }
.attention .card-head { margin-bottom: 0.5rem; }
.attention.calm .card-head h3::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0.1875rem var(--good-soft); vertical-align: 1px; }
.att-group { display: flex; flex-direction: column; margin: 0 -0.5rem; }
.att-group + .att-group { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--stroke-soft); }
.att-title { display: flex; justify-content: space-between; padding: 0 0.5rem 0.25rem; font-size: var(--fs-xs); color: var(--text-3); }
.att-row { display: grid; grid-template-columns: 0.625rem minmax(0, 1fr) auto; gap: 0.625rem; align-items: center; padding: 0.4375rem 0.5rem; border-radius: var(--r-xs); font-size: var(--fs-sm); }
.att-row:hover { background: var(--surface-1); }
.att-row b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-row .faint, .att-row .num { font-size: var(--fs-xs); white-space: nowrap; }
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -0.875rem 0.875rem; }
  .stat { padding: 0.625rem 0.875rem; border-left: 0; border-top: 1px solid var(--stroke-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--stroke-soft); }
  .stat-value { font-size: var(--fs-lg); }
}
.table-wrap.fit { width: fit-content; max-width: 100%; }
.table-wrap.fit table.t { width: auto; }
.table-wrap.fit .t th, .table-wrap.fit .t td { padding-right: 1.75rem; }
.table-wrap.fit .t td.actions-cell { padding-right: 0.75rem; }
@media (max-width: 900px) { .table-wrap.fit { width: auto; } .table-wrap.fit table.t { width: 100%; } }
.tabs { display: flex; width: fit-content; max-width: 100%; height: var(--h-md); gap: 2px; padding: 0.1875rem; margin-bottom: var(--gap); border: 1px solid var(--stroke-soft); border-radius: var(--r-sm); background: var(--sunken); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 0.375rem; height: 100%; padding: 0 0.75rem; margin: 0; border: 0; border-radius: 0.4375rem; background: none; cursor: pointer;
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 450; white-space: nowrap; flex: none; transition: color var(--dur), background var(--dur); }
.tabs .on { background: var(--surface-3); color: var(--text-1); font-weight: 550; }
.tabs a:hover:not(.on), .tabs button:hover:not(.on) { background: var(--surface-1); color: var(--text-1); }
.nodes-top { border-bottom: 0; justify-content: space-between; }
.nodes-top .tabs { flex: 0 1 auto; margin-bottom: 0; }
.drawer-body .tabs { margin-bottom: 0.25rem; }
@media (max-width: 900px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; }
  .nodes-top .tabs { border: 1px solid var(--stroke-soft); }
}
.base-chip { display: inline-flex; align-items: center; gap: 0.25rem; height: 1.625rem; padding: 0 2px 0 0.625rem; border-radius: 0.4375rem; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); white-space: nowrap; }
.base-chip b { color: var(--text-1); font-weight: 600; }
.base-chip .btn.sm.icon { width: 1.5rem; height: 1.5rem; }
.base-chip .btn svg { width: 0.8125rem; height: 0.8125rem; }
h2.page-title { margin: 0; font-size: var(--fs-xl); font-weight: 650; letter-spacing: -.015em; }
.empty.compact { text-align: left; place-items: start; padding: 0.875rem 0.25rem; font-size: var(--fs-sm); }
.empty.compact b { font-size: var(--fs-sm); }
.empty.compact > span { font-size: var(--fs-xs); }
.pyramid { display: flex; flex-direction: column; gap: 0.1875rem; }
.pyr-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.pyr-layer { position: relative; min-height: 2.875rem; display: grid; place-items: center; }
.pyr-shape { position: absolute; inset: 0; opacity: .88; transition: clip-path 420ms var(--ease); }
.pyr-layer b { position: relative; font-size: var(--fs-lg); font-weight: 650; color: #fff; text-shadow: 0 1px 0.375rem rgba(0, 0, 0, .45); }
.pyr-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 2px 0; }
.pyr-text span { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pyr-text small { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pyr-text small b { color: var(--text-1); font-weight: 600; }
@media (max-width: 900px) { .pyr-row { gap: 0.625rem; } .pyr-layer { min-height: 2.5rem; } }
.pyramid.pick .pyr-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.75rem; }
button.pyr-layer { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.pyramid.pick .pyr-layer:hover .pyr-shape, .pyramid.pick .pyr-layer:focus-visible .pyr-shape { opacity: 1; }
.pyramid.pick .pyr-layer:focus-visible { outline: none; }
.pyramid.pick .pyr-layer:focus-visible b { text-decoration: underline; }
.pyramid.pick .pyr-text > span { cursor: pointer; }
.pyramid.lit .pyr-row:not(.on) .pyr-shape { opacity: .32; }
.pyramid.lit .pyr-row.on .pyr-shape { opacity: 1; }
.pyramid.lit .pyr-row.on .pyr-text > span { color: var(--accent); }
.pyr-drop { align-self: flex-start; margin-top: 0.1875rem; padding: 1px 0.5rem; border-radius: 0.5rem; border: 1px solid transparent; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; cursor: pointer; text-align: left; }
.pyr-drop:hover, .pyr-drop.on { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.att-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 0.25rem 1.5rem; }
.att-groups .att-group + .att-group { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .att-groups .att-group + .att-group { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--stroke-soft); } }
.donut { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.125rem; align-items: center; }
.donut-ring { width: 8.5rem; height: 8.5rem; transform: rotate(-90deg); overflow: visible; }
.donut-track { fill: none; stroke: var(--sunken); stroke-width: 14; }
.donut-seg { fill: none; stroke-width: 14; transition: opacity var(--dur), stroke-width var(--dur); cursor: default; }
.donut-seg.dim { opacity: .25; }
.donut-ring text { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; font-family: var(--ui); }
.donut-val { font-size: 15px; font-weight: 650; fill: var(--text-1); font-variant-numeric: tabular-nums; }
.donut-sub { font-size: 9.5px; fill: var(--text-3); }
.donut-legend { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.donut-row { display: grid; grid-template-columns: 0.5625rem minmax(0, 1fr) auto; grid-template-areas: "dot label value" ". note note"; column-gap: 0.5rem; align-items: center; padding: 0.3125rem 0.5rem; border-radius: var(--r-xs); font-size: var(--fs-sm); }
.donut-row:hover, .donut-row.on { background: var(--surface-1); }
.donut-row i { grid-area: dot; width: 0.5625rem; height: 0.5625rem; border-radius: 0.1875rem; }
.donut-label { grid-area: label; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-row b { grid-area: value; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.donut-row small { grid-area: note; color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .donut { grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; } .donut-ring { width: 7rem; height: 7rem; } }
.donut-val.long { font-size: 12.5px; }
.donut-val.longer { font-size: 10.5px; }

.inc-sum { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: var(--gap); border-radius: var(--r-md); border: 1px solid var(--stroke-soft); background: var(--surface-1); font-size: var(--fs-sm); }
.inc-sum b { font-size: var(--fs-md); font-weight: 600; }
.inc-list { display: flex; flex-direction: column; gap: 0.625rem; }
.inc { position: relative; padding: 0.875rem 1rem 0.625rem 1.25rem; border-radius: var(--r-md); border: 1px solid var(--stroke-soft); background: var(--surface-1); overflow: hidden; }
.inc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0.25rem; background: var(--warn); }
.inc.sev-crit::before { background: var(--bad); }
.inc.sev-crit { border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.inc.tone-good::before { background: var(--good); }
.inc-head { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; min-width: 0; }
.inc-m { font-size: var(--fs-sm); }
.inc-t { font-weight: 550; min-width: 0; }
.inc-dur { color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inc-dur b { color: var(--text-1); font-weight: 600; }
.inc-facts { display: flex; flex-wrap: wrap; gap: 0.375rem 1.125rem; margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.inc-facts b { color: var(--text-1); font-weight: 600; }
.inc-do { display: grid; gap: 0.375rem; margin-top: 0.625rem; }
.inc-do > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.625rem; font-size: var(--fs-sm); line-height: 1.45; }
.inc-do > div > span + span { grid-column: 2; }
.inc-do small { color: var(--text-3); font-size: var(--fs-xs); padding-top: 2px; }
.pools .card-head { margin-bottom: 0; }
.pool-list { display: grid; gap: 0.375rem; margin-top: 0.625rem; }
.pool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pool-row > b { min-width: 2.5rem; }
.pool-row a { color: var(--text-2); }
.pool-quiet { margin-top: 0.625rem; font-size: var(--fs-sm); }
.inc-foot { display: flex; align-items: center; gap: 0.25rem; margin: 0.625rem -0.5rem 0; padding-top: 0.375rem; border-top: 1px solid var(--stroke-soft); font-size: var(--fs-xs); }
.inc-foot > .faint { padding-right: 0.5rem; text-align: right; }
.inc-foot { flex-wrap: wrap; row-gap: 0.375rem; }
.inc-status, .inc-mutes { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.inc-status { margin-left: 0.25rem; padding-left: 0.5rem; border-left: 1px solid var(--stroke-soft); }
.inc-hushed { margin-top: var(--sp-5); }
.inc-hushed-head { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; margin: 0 2px 0.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.inc-hushed-head .faint { font-weight: 400; font-size: var(--fs-xs); }
.inc-hushed .inc { opacity: .72; }
.inc-hushed .inc:hover, .inc-hushed .inc.open { opacity: 1; }
@media (max-width: 900px) { .inc-foot { flex-wrap: wrap; } .inc-foot > .faint { flex: 1 1 100%; order: 3; padding: 0.25rem 0.5rem 0; text-align: left; } }
.inc-line { list-style: none; margin: 0.625rem 0 2px; padding: 0; display: grid; gap: 0.25rem; font-size: var(--fs-sm); }
.inc-line li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.625rem; }
.inc-line time { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inc-table tr.on td { background: var(--surface-1); }
.inc-table .dot { display: inline-block; width: 0.4375rem; height: 0.4375rem; margin-right: 0.25rem; vertical-align: 1px; }
.inc-more td { background: var(--surface-1); padding-top: 0; }
.inc-list > .inc { padding: 0; }
.inc-list { gap: 0.5rem; }
.inc-row { display: flex; align-items: center; gap: 0.625rem; width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem 0.625rem 1.25rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.inc-row:hover { background: color-mix(in srgb, var(--text-1) 3%, transparent); }
.inc-row > .dot { flex: none; }
.inc-where { flex: none; max-width: 28%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); }
.inc-row .inc-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-row .badge { flex: none; }
.inc-row > svg { width: 1rem; height: 1rem; flex: none; color: var(--text-3); transition: transform .2s; }
.inc.open .inc-row > svg { transform: rotate(180deg); }
.inc-body { padding: 0 1rem 0.625rem 1.25rem; }
.inc-body > .inc-facts { margin-top: 0; }
@media (max-width: 900px) {
  .inc-row { flex-wrap: wrap; row-gap: 0.25rem; }
  .inc-where { max-width: 60%; }
  .inc-row .inc-t { flex-basis: 100%; order: 5; white-space: normal; }
}
.gantt { display: grid; gap: 0.1875rem; }
.gantt-row { display: grid; grid-template-columns: 9.375rem minmax(0, 1fr); gap: 0.75rem; align-items: center; height: 1.375rem; }
.gantt-k { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-lane { position: relative; height: 100%; border-radius: 0.3125rem; background: var(--surface-1); }
.gantt-bar { position: absolute; top: 0.25rem; bottom: 0.25rem; min-width: 0.25rem; padding: 0; border: 0; border-radius: 0.1875rem; background: var(--warn); cursor: pointer; opacity: .85; }
.gantt-bar.sev-crit { background: var(--bad); }
.gantt-bar.tone-good { background: var(--good); }
.gantt-bar.live { background-image: repeating-linear-gradient(135deg, transparent 0 0.25rem, rgba(255, 255, 255, .22) 0.25rem 0.5rem); opacity: 1; }
.gantt-bar:hover, .gantt-bar:focus-visible { opacity: 1; outline: 2px solid var(--text-1); outline-offset: 1px; }
.gantt-axis { height: 1.125rem; }
.gantt-axis .gantt-lane { background: none; }
.gantt-axis .gantt-lane span { position: absolute; top: 2px; transform: translateX(-50%); font-size: var(--fs-2xs); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gantt-more { justify-self: start; margin-top: 0.375rem; font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .gantt-row { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.5rem; }
  .inc-do > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .inc-do > div > span + span { grid-column: 1; }
  .inc-line li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.g-w, .g-flow { vector-effect: non-scaling-stroke; }
.g-canvas[data-lod="far"] .g-pins, .g-canvas[data-lod="far"] .g-load, .g-canvas[data-lod="far"] .g-cc, .g-canvas[data-lod="far"] .g-front .g-meta { display: none; }
.g-canvas[data-lod="far"] .g-card { box-shadow: none; }
.g-canvas[data-lod="far"] .g-node .g-head { height: 100%; border-bottom: 0; gap: min(calc(7px * var(--ik)), 12px); padding: 0 min(calc(10px * var(--ik)), 14px); }
.g-short { display: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-canvas[data-lod="far"] .g-head b.has-short { display: none; }
.g-canvas[data-lod="far"] .g-short { display: block; }
.g-canvas[data-lod="far"] .g-head b, .g-canvas[data-lod="far"] .g-short, .g-canvas[data-lod="far"] .g-on { font: 650 min(calc(12.5px * var(--ik)), 30px) var(--ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.g-canvas[data-lod="far"] .g-dot { width: min(calc(7px * var(--ik)), 12px); height: min(calc(7px * var(--ik)), 12px); }
.g-canvas[data-lod="far"] .g-tcp { font-size: min(calc(10px * var(--ik)), 17px); }
.g-canvas[data-lod="far"] .g-sub, .g-canvas[data-lod="far"] .g-pool, .g-canvas[data-lod="far"] .g-front { gap: min(calc(7px * var(--ik)), 12px); padding: 0 min(calc(12px * var(--ik)), 14px); }
.g-canvas[data-lod="far"] .g-name { font-size: min(calc(12.5px * var(--ik)), 19px); }
.g-canvas[data-lod="far"] .g-kind { display: none; }
.g-canvas[data-lod="far"] .g-pool .g-name, .g-canvas[data-lod="far"] .g-front .g-name { font-size: min(calc(12px * var(--ik)), 19px); }
.g-canvas[data-lod="far"] .g-meta { font-size: min(calc(11.5px * var(--ik)), 17px); }
.g-kind { font-style: normal; }
.g-canvas[data-lod="far"] .g-lane span { top: 8px; line-height: 1; font-size: min(calc(11px * var(--ik)), 20px); }
.g-canvas[data-lod="far"] .g-cframe span { top: 3px; font-size: min(calc(10px * var(--ik)), 16px); line-height: 1.2; }
.g-canvas[data-lod="far"] .g-cframe b { display: none; }
.g-help { position: absolute; top: 10px; right: 10px; z-index: 3; width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--g-shadow); cursor: default; }
.g-help > b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.gi-now:disabled { cursor: default; }
.gi-now:disabled:hover { background: transparent; }
.gi-now { display: grid; grid-template-columns: 0.5rem minmax(0, 1fr) auto; column-gap: 0.5rem; row-gap: 2px; align-items: center; }
.gi-who { grid-column: 2; font: 600 0.75rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-who.sub { font: 600 0.7812rem var(--ui); }
.gi-now .num { grid-column: 3; grid-row: 1; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.gi-now .grow { grid-column: 2 / 4; grid-row: 2; color: var(--text-2); font-size: 0.7812rem; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gi-calm { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); padding: 0.25rem 0.5rem; }
.g-node.lens { background: color-mix(in oklab, var(--lens) 26%, var(--bg-elev)); border-color: color-mix(in oklab, var(--lens) 70%, transparent); }
.g-node.lens .g-on { color: color-mix(in oklab, var(--lens) 45%, var(--text-1)); }
.g-spark { flex: none; width: 48px; height: 14px; margin-left: auto; overflow: visible; }
.g-spark path { fill: none; stroke: var(--text-3); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-spark line { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.g-head .g-spark + .g-on { margin-left: 6px; }
.g-canvas[data-lod="far"] .g-spark { display: none; }
.g-lens { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: default; }
.g-lens .seg { background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--g-shadow); }
.g-legend { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--bg-elev); border: 1px solid var(--stroke); font-size: 12px; }
.g-legend > span:first-child { font-weight: 600; }
.g-legend-bar { width: 96px; height: 8px; border-radius: 4px; }
.g-legend-bar.util { background: linear-gradient(90deg, var(--good), var(--warn), var(--bad)); }
.g-legend-bar.mag { background: linear-gradient(90deg, color-mix(in oklab, var(--blue) 18%, #2b2b36), var(--blue)); }
.g-time-plot.has-ev { margin-top: 14px; }
.g-time-ev { position: absolute; left: 0; right: 0; top: -14px; height: 12px; pointer-events: none; }
.g-ev { position: absolute; top: 0; width: 7px; height: 12px; margin-left: -3.5px; padding: 0; border: 0; border-radius: 2px; background: var(--warn); cursor: pointer; pointer-events: auto; opacity: .9; }
.g-ev.bad { background: var(--bad); }
.g-ev.good { background: var(--good); }
.g-ev.many { width: auto; min-width: 13px; padding: 0 3px; margin-left: 0; transform: translateX(-50%); font: 700 9px/12px var(--mono); color: var(--bg-elev); }
.g-ev:hover, .g-ev:focus-visible { opacity: 1; outline: 2px solid var(--text-1); outline-offset: 1px; }

@property --rr { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ra { syntax: "<number>"; inherits: false; initial-value: 0; }
:where([data-rip]) { position: relative; }
[data-rip]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle var(--rr) at var(--rx) var(--ry), rgb(255 255 255 / var(--ra)) 0 55%, rgb(255 255 255 / 0) 100%); animation: rip .65s var(--ease-out) forwards; }
@keyframes rip { 0% { --rr: 0px; --ra: .22; } 45% { --ra: .13; } 100% { --rr: var(--rs, 7.5rem); --ra: 0; } }

[data-glide] { position: relative; isolation: isolate; }
[data-glide]::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: var(--g-l, 0); right: var(--g-r, 0); top: var(--g-t, 0); height: var(--g-h, 0);
  border-radius: var(--g-rad, 0.4375rem); background: var(--surface-3); opacity: var(--g-o, 0); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05); }
[data-glide="on"]::before { transition: left .4s var(--ease-out), right .4s var(--ease-out), top .3s var(--ease-out), height .3s var(--ease-out), opacity .2s; }
[data-glide="on"][data-dir="r"]::before { transition: right .28s var(--ease-out), left .46s .06s var(--ease-out), top .3s var(--ease-out), height .3s var(--ease-out), opacity .2s; }
[data-glide="on"][data-dir="l"]::before { transition: left .28s var(--ease-out), right .46s .06s var(--ease-out), top .3s var(--ease-out), height .3s var(--ease-out), opacity .2s; }
[data-glide] > .on { background: transparent !important; }

[data-leaving], [data-leaving] * { animation: none !important; transition: none !important; pointer-events: none !important; }
[data-leaving] .toast-bar { visibility: hidden; }

@keyframes rise { from { opacity: 0; transform: translateY(0.875rem); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(0.375rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-l { from { opacity: 0; transform: translateX(0.875rem); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes grow-w { from { width: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.page-head .page-icon { animation: icon-in .32s var(--spring) backwards; }
.page-head .page-icon path { stroke-dasharray: 130; animation: icon-draw .36s .02s var(--ease-io) backwards; }
@keyframes icon-in { from { opacity: 0; transform: scale(.3) rotate(-35deg); } }
@keyframes icon-draw { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
.page-title h1 { animation: title-in .26s .02s var(--ease-out) backwards; }
@keyframes title-in { from { opacity: 0; transform: translateX(-0.75rem); filter: blur(0.25rem); } }
.page-title p { animation: fade-up .26s .05s var(--ease-out) backwards; }
.top-actions { animation: slide-l .26s .04s var(--ease-out) backwards; }

.page > [data-enter] { animation: rise .26s var(--ease-out) backwards; animation-delay: calc(var(--k, 6) * 18ms + 10ms); }
.page > :nth-child(2) { --k: 0; } .page > :nth-child(3) { --k: 1; } .page > :nth-child(4) { --k: 2; }
.page > :nth-child(5) { --k: 3; } .page > :nth-child(6) { --k: 4; } .page > :nth-child(7) { --k: 5; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed)[data-enter] > :not(.new, .empty, .banner) { animation: rise .26s var(--ease-out) backwards; animation-delay: calc(var(--j, 9) * 12ms + 20ms); }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(1) { --j: 0; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(2) { --j: 1; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(3) { --j: 2; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(4) { --j: 3; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(5) { --j: 4; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(6) { --j: 5; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(7) { --j: 6; }
:is(.grid, .now-bar, .stats-row, .att-groups, .inc-list, .nodes, .feed) > :nth-child(8) { --j: 7; }
:is(.now-bar, .stats-row)[data-enter] > * { animation-name: fade-up; }
.t[data-enter] tbody tr { animation: row-in .22s var(--ease-out) backwards; animation-delay: calc(var(--r, 16) * 8ms + 16ms); }
.t tbody tr:nth-child(1) { --r: 0; } .t tbody tr:nth-child(2) { --r: 1; } .t tbody tr:nth-child(3) { --r: 2; } .t tbody tr:nth-child(4) { --r: 3; }
.t tbody tr:nth-child(5) { --r: 4; } .t tbody tr:nth-child(6) { --r: 5; } .t tbody tr:nth-child(7) { --r: 6; } .t tbody tr:nth-child(8) { --r: 7; }
.t tbody tr:nth-child(9) { --r: 8; } .t tbody tr:nth-child(10) { --r: 9; } .t tbody tr:nth-child(11) { --r: 10; } .t tbody tr:nth-child(12) { --r: 11; }
.t tbody tr:nth-child(13) { --r: 12; } .t tbody tr:nth-child(14) { --r: 13; } .t tbody tr:nth-child(15) { --r: 14; }
.vscroll .t[data-enter] tbody tr { animation: none; }
@keyframes row-in { from { opacity: 0; transform: translateY(0.5rem); } }
.banner, .empty { animation: fade-up .28s var(--ease-out) backwards; }
.empty-ico { animation: icon-in .34s .04s var(--spring) backwards; }

.overlay { animation: ov-in .3s var(--ease); }
@keyframes ov-in { from { opacity: 0; backdrop-filter: blur(0); } }
.modal { animation: modal-in .55s var(--spring-soft); }
@keyframes modal-in { from { opacity: 0; transform: translateY(1.375rem) scale(.94); } }
.modal > * { animation: fade-up .45s var(--ease-out) backwards; }
.modal > :nth-child(1) { animation-delay: .08s; } .modal > :nth-child(2) { animation-delay: .13s; } .modal > :nth-child(3) { animation-delay: .18s; }
.modal > :nth-child(4) { animation-delay: .23s; } .modal > :nth-child(n+5) { animation-delay: .28s; }
.drawer-bg { animation: fade-in .35s var(--ease); }
.drawer { animation: drawer-in .55s var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-head > * { animation: slide-l .5s .12s var(--ease-out) backwards; }
.drawer-body > * { animation: rise .4s var(--ease-out) backwards; animation-delay: calc(var(--k, 6) * 35ms + 120ms); }
.drawer-body > :nth-child(1) { --k: 0; } .drawer-body > :nth-child(2) { --k: 1; } .drawer-body > :nth-child(3) { --k: 2; }
.drawer-body > :nth-child(4) { --k: 3; } .drawer-body > :nth-child(5) { --k: 4; } .drawer-body > :nth-child(6) { --k: 5; }
.sheet-bg { animation: fade-in .3s var(--ease); }
.sheet { animation: sheet-up .5s var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-grid > * { animation: pop-in .45s var(--spring) backwards; animation-delay: .12s; }
.sheet-grid > :nth-child(2) { animation-delay: .15s; } .sheet-grid > :nth-child(3) { animation-delay: .18s; } .sheet-grid > :nth-child(n+4) { animation-delay: .21s; }
.pop { transform-origin: top right; animation: pop-open .38s var(--spring-soft); }
@keyframes pop-open { from { opacity: 0; transform: translateY(-0.5rem) scale(.94); } }
.pop > * { animation: fade-up .4s var(--ease-out) backwards; }
.pop > :nth-child(1) { animation-delay: .04s; } .pop > :nth-child(2) { animation-delay: .08s; } .pop > :nth-child(3) { animation-delay: .12s; } .pop > :nth-child(n+4) { animation-delay: .16s; }
.theme-pick > * { animation: none; }
.swatch { transition: transform .35s var(--spring), border-color .2s; animation: pop-in .5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { transform: scale(1.06); }
.bg-tile { animation: fade-up .45s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms + 160ms); }
.bg-tile i { transition: border-color var(--dur), transform .35s var(--spring); }
.bg-tile:hover i { transform: translateY(-2px); }

.toast { position: relative; overflow: hidden; align-items: center; padding: 0.625rem 0.875rem 0.75rem 0.625rem; animation: toast-in .6s var(--spring-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateX(4.375rem) scale(.9); } }
.toast-ico { width: 1.75rem; height: 1.75rem; flex: none; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); animation: ico-pop .55s .16s var(--spring) backwards; }
.toast-ico svg { width: 0.9375rem; height: 0.9375rem; }
.toast.good .toast-ico { background: var(--good-soft); color: var(--good); }
.toast.bad .toast-ico { background: var(--bad-soft); color: var(--bad); }
.toast.warn .toast-ico { background: var(--warn-soft); color: var(--warn); }
.toast, .toast.good, .toast.bad, .toast.warn { color: var(--text-1); }
.toast-text { flex: 1; min-width: 0; line-height: 1.4; }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); opacity: .7; transform-origin: left; animation: toast-bar var(--ms, 4500ms) linear forwards; }
.toast.good .toast-bar { background: var(--good); }
.toast.bad .toast-bar { background: var(--bad); }
.toast.warn .toast-bar { background: var(--warn); }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast:hover .toast-bar { animation-play-state: paused; }
.toast-act { flex: none; margin-left: 0.25rem; padding: 0.3125rem 0.625rem; border-radius: var(--r-xs); border: 1px solid var(--stroke); background: transparent; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; transition: background var(--dur), border-color var(--dur); }
.toast-act:hover { background: var(--accent-soft); border-color: transparent; }
.toast-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes ico-pop { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }

.bell.ring .bell-ico svg { transform-origin: 50% 0.1875rem; animation: ring 1s var(--ease); }
@keyframes ring { 0% { rotate: 0deg; } 12% { rotate: 18deg; } 26% { rotate: -15deg; } 40% { rotate: 11deg; } 54% { rotate: -7deg; } 68% { rotate: 4deg; } 82% { rotate: -2deg; } 100% { rotate: 0deg; } }
.bell-n { animation: pop-in .3s .06s var(--spring) backwards; }
.bell-n.bad::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 70%, transparent); } 100% { box-shadow: 0 0 0 0.5625rem transparent; } }
.live .dot.up { position: relative; }
.live .dot.up::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: radar 2.6s var(--ease-out) infinite; }
@keyframes radar { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.brand img { transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.me-ava { transition: transform .4s var(--spring); }
.acct-btn:hover .me-ava { transform: rotate(-8deg) scale(1.06); }
.cmd svg { transition: color var(--dur), transform .35s var(--spring); }
.cmd:focus-within svg { color: var(--accent-text); transform: scale(1.1); }
.cmd kbd { transition: opacity .2s, transform .3s var(--ease-out); }
.cmd:focus-within kbd { opacity: 0; transform: translateX(0.375rem); }

.nav-item.on { animation: nav-on .38s var(--ease); }
@keyframes nav-on { from { background: var(--accent-soft); } }
.nav-item.on svg { animation: nav-ico .34s var(--spring); }
@keyframes nav-ico { from { transform: scale(.55) rotate(-15deg); } }
.bottom-nav .tab svg { transition: transform .35s var(--spring); }
.bottom-nav .tab.on svg { animation: tab-hop .34s var(--spring); }
@keyframes tab-hop { 35% { transform: translateY(-0.25rem) scale(1.16); } }
.tabs > *, .seg > button { transition: color .25s var(--ease), background var(--dur); }

.chart-plot { animation: wipe .36s .02s var(--ease-io) backwards; }
.chart-tip { animation: tip-in .18s var(--ease-out); }
@keyframes tip-in { from { opacity: 0; transform: translateY(0.3125rem) scale(.97); } }
.chart-reset { animation: pop-in .35s var(--spring); }
.lg i { transition: transform .35s var(--spring); }
.lg.off i { transform: scale(.45); }
.kpi-spark { animation: wipe .34s .04s var(--ease-io) backwards; }
.spark { animation: wipe .28s .02s var(--ease-io) backwards; overflow: visible; }
.spark circle { transform-box: fill-box; transform-origin: center; animation: pop-in .16s .22s var(--spring) backwards; }
.donut-ring { animation: donut-spin .38s var(--ease-out) backwards; }
@keyframes donut-spin { from { transform: rotate(-230deg); } }
.donut-seg { animation: seg-in .28s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 6) * 14ms + 20ms); transition: opacity var(--dur), stroke-width .35s var(--spring); }
.donut-seg.hot { stroke-width: 18; }
@keyframes seg-in { from { stroke-dasharray: 0 300; } }
.donut-row { animation: fade-up .26s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 8) * 10ms + 50ms); transition: background var(--dur); }
.bar-row { animation: fade-up .26s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 8) * 12ms + 10ms); }
.bar-fill { animation: grow-w .28s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 8) * 10ms + 30ms); }
.meter i, .bc-progress i { animation: grow-w .32s .04s var(--ease-out) backwards; }
.gantt-bar { transform-origin: left; animation: grow-x .3s .04s var(--ease-out) backwards; }
.heat .cell { animation: cell-in .22s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 5ms + 12ms); }
@keyframes cell-in { from { opacity: 0; transform: scale(.3); } }
.pyr-row .pyr-shape { animation: pyr-in .28s var(--spring-soft) backwards; animation-delay: calc(min(var(--i, 0), 5) * 18ms + 10ms); }
@keyframes pyr-in { from { opacity: 0; transform: scaleX(.25) scaleY(.6); } }
.pyr-row .pyr-layer b { animation: pop-in .2s var(--spring) backwards; animation-delay: calc(min(var(--i, 0), 5) * 18ms + 90ms); }
.pyr-row .pyr-text { animation: slide-l .24s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 5) * 18ms + 40ms); }
.feed-item.new { animation: feed-drop .65s var(--ease-out), flash 1.8s var(--ease); }
@keyframes feed-drop { from { opacity: 0; transform: translateY(-0.625rem) scale(.98); margin-top: -2.625rem; } }

.loading { min-height: 7.5rem; }
.skel { width: min(26.25rem, 80%); display: flex; flex-direction: column; gap: 0.625rem; animation: fade-in .4s var(--ease) backwards; }
.skel i { display: block; height: 0.625rem; border-radius: 0.3125rem; background: linear-gradient(90deg, var(--surface-1) 0%, var(--surface-3) 50%, var(--surface-1) 100%) 0 0 / 200% 100%; animation: shimmer 1.5s linear infinite; }
.skel i:nth-child(2) { width: 82%; animation-delay: .12s; }
.skel i:nth-child(3) { width: 56%; animation-delay: .24s; }
.unit { color: var(--text-3); font-size: .68em; font-weight: 600; letter-spacing: 0; }
tspan.unit { fill: var(--text-3); }
.skel span { margin-top: 0.25rem; font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

html.vt-reveal::view-transition, html.vt-morph::view-transition { pointer-events: none; }
html.vt-reveal::view-transition-old(root), html.vt-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-morph .side { view-transition-name: wv-side; }
.vt-morph main.page { view-transition-name: wv-page; }
.vt-morph .top .brand { view-transition-name: wv-brand; }
.vt-morph .top .cmd { view-transition-name: wv-cmd; }
html.vt-morph::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
html.vt-morph::view-transition-group(wv-side), html.vt-morph::view-transition-group(wv-page) { overflow: clip; }
html.vt-morph::view-transition-old(wv-side), html.vt-morph::view-transition-new(wv-side),
html.vt-morph::view-transition-old(wv-page), html.vt-morph::view-transition-new(wv-page) { height: 100%; width: auto; object-fit: none; object-position: left top; }
html.vt-morph::view-transition-old(root), html.vt-morph::view-transition-new(root) { animation: none; }
.is-live { font-variant-numeric: tabular-nums; }
.is-live::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin-right: 0.375rem; border-radius: 50%; background: var(--good); vertical-align: 0.0625rem; animation: livedot 2s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .35; } }
.nl { --nl-main: clamp(13rem, calc(100vh - 33rem), 34rem); display: flex; flex-direction: column; gap: var(--gap); }
.nl-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.nl-title { flex: 1; min-width: 0; }
.nl-title h2 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.nl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin-top: 0.25rem; color: var(--text-2); font-size: var(--fs-sm); }
.nl-tools { display: flex; align-items: center; gap: var(--sp-2); }
.nl .nl-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nl-tiles .value { font-variant-numeric: tabular-nums; }
.nl-main, .nl-small > .card { position: relative; padding: var(--sp-3) var(--sp-4); }
.nl-body { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(15rem, 1fr); gap: var(--gap); }
.nl-small { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); min-height: 0; }
.nl-small > .card { display: flex; flex-direction: column; min-height: 0; }
.nl-small .lc { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.nl-small .lc-plot { flex: 1; min-height: 4rem; }
.nl .nl-tiles > .kpi { display: flex; grid-row: auto; padding: 0.75rem 1rem; gap: 0.25rem; }
.nl-cap { display: block; height: 1.25rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.nl-small .lc { position: static; }
.nl-small .lc-legend { position: absolute; top: var(--sp-3); right: var(--sp-4); margin: 0; line-height: 1.25rem; }
.nl-tools { flex-wrap: wrap; justify-content: flex-end; }
.nl-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-top: var(--sp-3); }
.nl-stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.nl-card { min-width: 0; }
.nl-card .card-head { margin-bottom: 0.5rem; }
.nl-card > .strip { margin-bottom: 0.75rem; }
.nl-wide { grid-column: 1 / -1; }
.nl-hist { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--sp-3) var(--sp-5); }
.nl-hist > div { min-width: 0; }
.nl-inb { display: flex; flex-wrap: wrap; gap: 0.375rem; }
@media (max-width: 1360px) { .nl .nl-tiles .value { font-size: var(--fs-xl); } }
.lc { position: relative; }
.lc-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.375rem; font-size: var(--fs-xs); color: var(--text-2); }
.lc-key { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.lc-key i, .lc-row i { display: inline-block; width: 0.75rem; height: 0.1875rem; border-radius: 2px; }
.lc-key b { min-width: 6.5em; color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-plot { position: relative; }
.lc-plot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.lc-tip { position: absolute; left: 0; top: 0; z-index: 5; min-width: 11rem; padding: 0.5rem 0.625rem; border-radius: 0.625rem; background: var(--bg-elev); border: 1px solid var(--stroke); box-shadow: var(--shadow-pop); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; pointer-events: none; }
.lc-time { margin-bottom: 0.25rem; color: var(--text-3); }
.lc-row { display: flex; align-items: center; gap: 0.375rem; color: var(--text-2); }
.lc-row b { margin-left: auto; padding-left: 0.75rem; color: var(--text-1); }
.lc-axis { display: flex; justify-content: space-between; margin-top: 0.25rem; font-size: var(--fs-2xs); color: var(--muted); }
@media (max-width: 1180px) { .nl .nl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nl { --nl-main: clamp(12rem, calc(100vh - 39rem), 28rem); } }
@media (max-width: 900px) { .nl { --nl-main: 14rem; } .nl .nl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nl-body { grid-template-columns: 1fr; } .nl-small .lc-plot { flex: none; height: 8rem; } .nl-tools { width: 100%; justify-content: flex-start; } .nl-more { grid-template-columns: 1fr; } }
