








:root {
  



  color-scheme: light;
  --bg: #eceaf3;
  





  --surface: #ffffff;
  --surface-2: #f3f1f8;
  --ink: #171327;
  --ink-soft: #3d3552;
  --muted: #655d77;
  --line: rgba(45, 25, 80, 0.14);
  --accent: #5a2fbe;
  --accent-2: #9333ea;
  --accent-tint: rgba(124, 58, 237, 0.12);
  --accent-line: rgba(124, 58, 237, 0.36);
  --on-accent: #ffffff;
  --ok: #2d7a38;
  --ok-bg: rgba(45, 122, 56, 0.11);
  --warn: #8a5d06;
  --warn-bg: rgba(200, 150, 20, 0.12);
  --danger: #b3261e;
  --danger-bg: rgba(179, 38, 30, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  






  --r: 8px;
  --r-sm: 4px;
  

  --seg-fill: var(--accent-tint);
  



  --nav-w: 268px;
  --nav-gap: 16px;
  






  --page-gap: 18px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  

  --t-key: #7b2d9e;
  --t-str: #1f6f4a;
  --t-num: #a8531b;
  --t-bool: #1e5fa8;
  --t-nul: #7a6f8c;
  --t-pun: #6b6280;
  




  --an-k: #4a4458;
  --an-r: #b3261e;
  --an-g: #1f7a45;
  --an-y: #8a5d06;
  --an-b: #1e5fa8;
  --an-m: #8e2bab;
  --an-c: #10707a;
  --an-w: #3d3552;
  --an-kl: #6b6280;
  --an-rl: #d0362c;
  --an-gl: #2a9a58;
  --an-yl: #a97a12;
  --an-bl: #2b74c4;
  --an-ml: #a83fc4;
  --an-cl: #1690a0;
  --an-wl: #171327;
}




@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f0c17;
    --surface: #221d33;
    --surface-2: rgba(255, 255, 255, 0.10);
    --ink: #eae7f5;
    --ink-soft: #c8c2db;
    



  --muted: #b0a8cc;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #b597ff;
    --accent-2: #c084fc;
    --accent-tint: rgba(167, 139, 250, 0.16);
    --accent-line: rgba(167, 139, 250, 0.40);
    --seg-fill: var(--accent-tint);
    --on-accent: #140a2b;
    --ok: #6fc275;
    --ok-bg: rgba(111, 194, 117, 0.14);
    --warn: #d9a441;
    --warn-bg: rgba(217, 164, 65, 0.12);
    --danger: #f38074;
    --danger-bg: rgba(226, 119, 108, 0.11);
  --t-key: #c084fc;
  --t-str: #7fd6a6;
  --t-num: #f0b46b;
  --t-bool: #79b8ff;
  --t-nul: #9d94b5;
  --t-pun: #8f87a6;
  --an-k: #6b6280;
  --an-r: #e2776c;
  --an-g: #7fd6a6;
  --an-y: #f0b46b;
  --an-b: #79b8ff;
  --an-m: #d69bf5;
  --an-c: #6fd7d7;
  --an-w: #d8d3e6;
  --an-kl: #8f87a6;
  --an-rl: #f0968c;
  --an-gl: #9ee6bd;
  --an-yl: #ffcb8b;
  --an-bl: #9ecdff;
  --an-ml: #e4b6fb;
  --an-cl: #93e6e6;
  --an-wl: #ffffff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0c17;
  --surface: #221d33;
  --surface-2: rgba(255, 255, 255, 0.10);
  --ink: #eae7f5;
  --ink-soft: #c8c2db;
  --muted: #b0a8cc;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #b597ff;
  --accent-2: #c084fc;
  --accent-tint: rgba(167, 139, 250, 0.16);
  --accent-line: rgba(167, 139, 250, 0.40);
  --seg-fill: var(--accent-tint);
  --on-accent: #140a2b;
  --ok: #6fc275;
  --ok-bg: rgba(111, 194, 117, 0.14);
  --warn: #d9a441;
  --warn-bg: rgba(217, 164, 65, 0.12);
  --danger: #f38074;
  --danger-bg: rgba(226, 119, 108, 0.11);
  --t-key: #c084fc;
  --t-str: #7fd6a6;
  --t-num: #f0b46b;
  --t-bool: #79b8ff;
  --t-nul: #9d94b5;
  --t-pun: #8f87a6;
  --an-k: #6b6280;
  --an-r: #e2776c;
  --an-g: #7fd6a6;
  --an-y: #f0b46b;
  --an-b: #79b8ff;
  --an-m: #d69bf5;
  --an-c: #6fd7d7;
  --an-w: #d8d3e6;
  --an-kl: #8f87a6;
  --an-rl: #f0968c;
  --an-gl: #9ee6bd;
  --an-yl: #ffcb8b;
  --an-bl: #9ecdff;
  --an-ml: #e4b6fb;
  --an-cl: #93e6e6;
  --an-wl: #ffffff;
}










:root[data-theme="graphite"] {
  color-scheme: dark;
  --bg: #0f1013;
  --surface: #212329;
  --surface-2: rgba(255, 255, 255, 0.07);
  --ink: #ececed;
  --ink-soft: #c6c6ca;
  --muted: #a6a7ad;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b597ff;
  --accent-2: #c084fc;
  --accent-tint: rgba(167, 139, 250, 0.15);
  --accent-line: rgba(167, 139, 250, 0.38);
  --seg-fill: var(--accent-tint);
  --on-accent: #17131f;
  --ok: #6fc275;
  --ok-bg: rgba(111, 194, 117, 0.14);
  --warn: #d9a441;
  --warn-bg: rgba(217, 164, 65, 0.12);
  --danger: #f38074;
  --danger-bg: rgba(226, 119, 108, 0.11);
  --t-key: #c084fc;
  --t-str: #7fd6a6;
  --t-num: #f0b46b;
  --t-bool: #79b8ff;
  --t-nul: #9d94b5;
  --t-pun: #8f87a6;
  --an-k: #6b6280;
  --an-r: #e2776c;
  --an-g: #7fd6a6;
  --an-y: #f0b46b;
  --an-b: #79b8ff;
  --an-m: #d69bf5;
  --an-c: #6fd7d7;
  --an-w: #d8d3e6;
  --an-kl: #8f87a6;
  --an-rl: #f0968c;
  --an-gl: #9ee6bd;
  --an-yl: #ffcb8b;
  --an-bl: #9ecdff;
  --an-ml: #e4b6fb;
  --an-cl: #93e6e6;
  --an-wl: #ffffff;
}







:root[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #071119;
  --surface: #12242f;
  --surface-2: rgba(255, 255, 255, 0.08);
  --ink: #e7f2f8;
  --ink-soft: #bed3df;
  --muted: #9fb6c4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #5ec8e8;
  --accent-2: #38bdf8;
  --accent-tint: rgba(94, 200, 232, 0.16);
  --accent-line: rgba(94, 200, 232, 0.42);
  --seg-fill: var(--accent-tint);
  --on-accent: #04202b;
  --ok: #5fcb8b;
  --ok-bg: rgba(95, 203, 139, 0.14);
  --warn: #e0ad4e;
  --warn-bg: rgba(224, 173, 78, 0.12);
  --danger: #f38074;
  --danger-bg: rgba(226, 119, 108, 0.11);
  --t-key: #7dd3fc;
  --t-str: #86e5b0;
  --t-num: #f2b678;
  --t-bool: #a5b4fc;
  --t-nul: #8ea3b2;
  --t-pun: #7d94a3;
  --an-k: #5c7382;
  --an-r: #e2776c;
  --an-g: #86e5b0;
  --an-y: #f2b678;
  --an-b: #7dd3fc;
  --an-m: #c4a7fb;
  --an-c: #6fd7d7;
  --an-w: #cfe0ea;
  --an-kl: #7d94a3;
  --an-rl: #f0968c;
  --an-gl: #9ee6bd;
  --an-yl: #ffcb8b;
  --an-bl: #9ecdff;
  --an-ml: #d9c2ff;
  --an-cl: #93e6e6;
  --an-wl: #ffffff;
}









:root[data-theme="black"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #17171d;
  --surface-2: rgba(255, 255, 255, 0.08);
  --ink: #f2f1f6;
  --ink-soft: #cbc9d4;
  --muted: #a9a6b6;
  --line: rgba(255, 255, 255, 0.15);
  --accent: #b597ff;
  --accent-2: #c084fc;
  --accent-tint: rgba(167, 139, 250, 0.18);
  --accent-line: rgba(167, 139, 250, 0.45);
  --seg-fill: var(--accent-tint);
  --on-accent: #0a0713;
  --ok: #6fc275;
  --ok-bg: rgba(111, 194, 117, 0.14);
  --warn: #d9a441;
  --warn-bg: rgba(217, 164, 65, 0.12);
  --danger: #f38074;
  --danger-bg: rgba(226, 119, 108, 0.11);
  --t-key: #c084fc;
  --t-str: #7fd6a6;
  --t-num: #f0b46b;
  --t-bool: #79b8ff;
  --t-nul: #9d94b5;
  --t-pun: #8f87a6;
  --an-k: #6b6280;
  --an-r: #e2776c;
  --an-g: #7fd6a6;
  --an-y: #f0b46b;
  --an-b: #79b8ff;
  --an-m: #d69bf5;
  --an-c: #6fd7d7;
  --an-w: #d8d3e6;
  --an-kl: #8f87a6;
  --an-rl: #f0968c;
  --an-gl: #9ee6bd;
  --an-yl: #ffcb8b;
  --an-bl: #9ecdff;
  --an-ml: #e4b6fb;
  --an-cl: #93e6e6;
  --an-wl: #ffffff;
}


*, *::before, *::after { box-sizing: border-box; }
















* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  border: 3px solid transparent;
  border-radius: var(--r);
  


  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  background-clip: padding-box;
}












[hidden] { display: none !important; }












html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img, svg { max-width: 100%; }















.topline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 5;
  background: var(--accent);
}






.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}


h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 640;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  border-radius: var(--r-sm);
  background: var(--accent);
}

h3 { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { font-size: 15.5px; color: var(--ink-soft); margin: 0; }
.muted { color: var(--muted); }








.mono {
  font-family: var(--mono);
  min-width: 0;
  overflow-wrap: anywhere;
}

code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1px 6px;
  overflow-wrap: anywhere;
}







.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--r);
  border-color: var(--accent-line);
  position: relative;
  overflow: hidden;
}



.login-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  pointer-events: none;
  background: var(--accent);
}

.login-card > * { position: relative; }

.login-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.login-head h1 { font-size: 24px; letter-spacing: -0.02em; }



.login-error, .login-warn {
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--danger-bg);
  color: var(--danger);
}

.login-warn { background: var(--warn-bg); color: var(--warn); }



.login-pass {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field > label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}






.login-input { position: relative; }
.login-card .login-input input {
  height: 44px;
  padding: 0 14px 0 40px;
  font-size: 15px;
  min-width: 0;
}
.login-card .login-input.has-eye input { padding-right: 46px; }
.login-card .login-input input::placeholder { color: var(--muted); opacity: 0.75; }

.login-ico {
  position: absolute;
  left: 13px; top: 13px;
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.22s var(--ease);
}
.login-input:focus-within .login-ico { color: var(--accent); }




.login-card .login-input button.login-eye {
  position: absolute;
  top: 4px; bottom: 4px; right: 4px;
  width: 38px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
}
.login-card .login-input button.login-eye:hover:not(:disabled),
.login-card .login-input button.login-eye:active:not(:disabled) {
  color: var(--ink);
  background: transparent;
  transform: none;
}
.login-eye svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.login-eye .eye-off,
.login-eye[aria-pressed="true"] .eye-on { display: none; }
.login-eye[aria-pressed="true"] .eye-off { display: block; }





.login-card button.login-submit,
.login-card button.login-tg {
  width: 100%;
  height: 44px;
  padding-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
}
.login-card button.login-submit { margin-top: 6px; }
.login-submit .btn-ico {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}



.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.login-or::before, .login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}





.tg-logo { width: 20px; height: 20px; flex: none; }
.tg-logo .tg-c { fill: #2aabee; }
.tg-logo .tg-p { fill: #ffffff; }
.login-tg.primary .tg-logo .tg-c { fill: var(--on-accent); }
.login-tg.primary .tg-logo .tg-p { fill: var(--accent); }


.login-tg.is-wait { cursor: progress; }
.login-tg.is-wait .tg-logo { animation: tg-wait 1.2s var(--ease) infinite alternate; }
@keyframes tg-wait { to { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .login-tg.is-wait .tg-logo { animation: none; opacity: 0.6; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px 22px; gap: 18px; }
  .login-head h1 { font-size: 22px; }
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-tint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.brand-dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}




.brand > .brand-logo { width: 22px; height: 22px; border-radius: var(--r-sm); }

.brand-name { font-weight: 600; }


.app {
  padding-left: calc(var(--nav-w) + var(--nav-gap) * 2);
  transition: padding-left 0.34s var(--ease);
}

.wrap {
  max-width: 1180px;
  margin: 0;
  

  padding: var(--nav-gap) var(--nav-gap) 64px 0;
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
}














































.wrap.js-cols {
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
  max-width: none;
}

.wrap-cols {
  display: flex;
  align-items: flex-start;
  gap: var(--page-gap);
}

.wrap-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
}






























:root[data-layout="classic"] .wrap {
  max-width: 1180px;
  margin-inline: 0;
}









@container (min-width: 828px) {
  :root[data-layout="classic"] .tiles:has(> .tile:nth-child(6):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}


nav.side {
  position: fixed;
  top: var(--nav-gap);
  left: var(--nav-gap);
  bottom: var(--nav-gap);
  width: var(--nav-w);
  z-index: 4;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
}

.side-top { display: flex; align-items: center; gap: 6px; }







nav.side .side-brand, .brand-preview {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px 2px 6px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

nav.side .side-brand .brand-name,
.brand-preview .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.brand-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
}





.brand-mark.has-logo { background: none; }
.brand-logo { display: block; flex: none; object-fit: contain; }
.brand-mark .brand-logo { width: 100%; height: 100%; border-radius: var(--r); }

.brand-mark-ico {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}



.brand-ver {
  flex: none;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
  color: var(--muted);
}







.brand-block { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.brand-stage {
  box-sizing: border-box;
  width: min(100%, var(--nav-w));
  padding: 12px 50px 12px 10px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}










.project-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: var(--r);
  font-size: 13px;
  text-align: left;
}

.project-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r);
  background: var(--accent-tint);
  font-size: 15px;
  line-height: 1;
}

.project-ini { color: var(--accent); font-size: 13px; font-weight: 700; }
.project-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.project-cap { font-size: 11px; font-weight: 500; color: var(--muted); }
.project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.project-chev {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}



.project-mini { min-height: 0; padding: 6px 10px; gap: 8px; }
.project-mini .project-cap { display: none; }
.project-mini .project-ico { width: 20px; height: 20px; font-size: 13px; }














.project-mini {
  position: absolute;
  top: 14px;
  left: 62px;
  z-index: 40;
  width: auto;
  max-width: 46vw;
}



:root[data-nav="on"] .project-mini { display: none; }


.project-row-name { flex: 1; min-width: 0; font-weight: 600; }
.project-row-sub { flex: none; opacity: 0.65; font-size: 12px; }









.menu-item-on {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent);
}












.nav-veil, .mbar { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: var(--r);
  flex: none;
}

.nav-toggle-ico {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  
  transform: rotate(90deg);
}

.nav-show .nav-toggle-ico { transform: none; }

@media (min-width: 901px) {
  nav.side {
    transition: transform 0.34s var(--ease), opacity 0.22s var(--ease);
  }

  .nav-show {
    position: fixed;
    top: var(--nav-gap);
    left: var(--nav-gap);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
  }

  :root[data-nav="off"] .app { padding-left: 62px; }

  








  :root[data-nav="off"]:has(#project-mini:not([hidden])) .wrap {
    padding-top: 62px;
  }

  :root[data-nav="off"] nav.side {
    transform: translateX(calc(-100% - var(--nav-gap) - 8px));
    opacity: 0;
  }

  :root[data-nav="off"] .nav-show {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    

    transition: opacity 0.22s var(--ease) 0.14s, transform 0.28s var(--ease) 0.1s;
  }
}










.side-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
}














nav.side .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
              transform 0.24s var(--ease);
}








nav.side .nav-dot {
  display: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--bg), 0 0 10px var(--danger);
}

nav.side .nav-item.has-alerts .nav-dot { display: block; }



nav.side .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }




nav.side .nav-n {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

nav.side .nav-item.active .nav-n { color: var(--accent); }
nav.side .nav-grp-head .nav-n { margin-right: 2px; }




nav.side .nav-new {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--accent);
}



nav.side .nav-item.has-alerts { color: var(--danger); }
nav.side .nav-item.has-alerts .nav-ico { opacity: 1; }

nav.side .nav-item:hover {
  color: var(--accent);
  background: var(--surface-2);
  transform: translateX(3px);
}

nav.side .nav-item.active,
nav.side .nav-item.active:hover {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
  transform: none;
}



nav.side .nav-item.active .nav-ico { transform: scale(1.08); }







nav.side button.nav-grp-head {
  width: 100%;
  font: inherit;
  font-weight: 560;
  background: none;
  border-radius: var(--r);
  padding: 7px 11px;
  text-align: left;
}

nav.side button.nav-grp-head:hover:not(:disabled) {
  color: var(--accent);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: none;
  transform: translateX(3px);
}



nav.side button.nav-grp-head:active:not(:disabled) { transform: translateX(3px); }



.nav-grp-head.on { color: var(--accent); }
.nav-grp-head.on .nav-ico { opacity: 1; }



.nav-grp[data-open="0"] .nav-grp-head.on {
  background: var(--accent-tint);
  border-color: var(--accent-line);
}

.nav-chev {
  width: 13px; height: 13px;
  margin-left: auto;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  transition: transform 0.26s var(--ease), opacity 0.22s var(--ease);
}

.nav-grp-head:hover .nav-chev { opacity: 1; }
.nav-grp[data-open="1"] .nav-chev { transform: rotate(180deg); }






.nav-grp { display: flex; flex-direction: column; }

.nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.3s var(--ease), padding-top 0.3s var(--ease),
              opacity 0.22s var(--ease);
}

.nav-grp[data-open="1"] .nav-sub { grid-template-rows: 1fr; padding-top: 3px; opacity: 1; }





.nav-sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 18px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

nav.side .nav-sub-inner .nav-item { min-height: 32px; padding: 5px 10px; font-size: 13.5px; }
nav.side .nav-sub-inner .nav-ico { width: 15px; height: 15px; }






.nav-sec { display: flex; flex-direction: column; gap: 1px; }
.nav-sec + .nav-sec { margin-top: 12px; }

.nav-group {
  margin: 0 0 3px;
  padding: 0 11px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}



.nav-ext {
  width: 12px; height: 12px;
  margin-left: auto;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

nav.side a.nav-out:hover .nav-ext { opacity: 1; }

.nav-ico {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
  transition: opacity 0.22s var(--ease), transform 0.24s var(--ease);
}

nav.side .nav-item:hover .nav-ico, nav.side .nav-item.active .nav-ico { opacity: 1; }




.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
}

.side-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }

.side-ava {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.side-ava:empty { display: none; }
.side-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: var(--ink); }
.side-who-name { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who-role { font-size: 12px; color: var(--muted); }
.side-actions { flex: none; display: flex; gap: 6px; }

button.side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink-soft);
}

.side-btn-ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}








.theme-pick { position: relative; flex: none; display: flex; }



.theme-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 196px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.34);
}

.theme-pick[data-open="1"] .theme-menu { display: flex; }

.theme-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  font-size: 13px;
}




.theme-dot {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.theme-dot[data-t="light"] { background: #eceaf3; border-color: #5a2fbe; }
.theme-dot[data-t="dark"] { background: #0f0c17; border-color: #b597ff; }
.theme-dot[data-t="graphite"] { background: #0f1013; border-color: #b597ff; }
.theme-dot[data-t="ocean"] { background: #071119; border-color: #5ec8e8; }
.theme-dot[data-t="black"] { background: #000000; border-color: #b597ff; }


.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-head-main { display: flex; flex-direction: column; gap: 6px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--accent);
}








.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}






.entry-grid:has(.entry-card) { align-items: start; }



.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--r);
  text-align: left;
  overflow: hidden;
}



.entry-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.entry-name {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-badges { display: flex; flex-wrap: wrap; gap: 6px; }



.entry-badges .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }






.entry-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: default;
  gap: 14px;
}





.entry-top { display: flex; align-items: center; gap: 12px; width: 100%; }



.entry-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.entry-ico svg { width: 24px; height: 24px; display: block; }



.entry-txt { min-width: 0; display: flex; flex-direction: column; gap: 7px; }





.entry-grip { flex: none; align-self: flex-start; margin-left: auto; margin-top: -2px; }

.entry-act { display: flex; gap: 8px; width: 100%; margin-top: auto; }



button.entry-go {
  flex: 1 1 auto;
  border-radius: var(--r);
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
button.entry-chev {
  flex: none;
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
.entry-chev svg { transition: transform 0.28s var(--ease); display: block; }
.entry-chev.on svg { transform: rotate(180deg); }









.entry-more {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  z-index: 2;
  padding: 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55);
  


  max-height: 320px;
  overflow-y: auto;
}






.entry-card { overflow: visible; }
.entry.entry-open { z-index: 6; }
.entry-ibs { display: flex; flex-direction: column; gap: 6px; }




.entry-ib {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.entry-ib-tag {
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-ib-brief {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}




.entry-foot {
  margin-top: auto;
  padding-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.22s var(--ease);
}

.entry:hover .entry-foot { color: var(--accent); }


section.card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}





















.card.fold { gap: 0; }






.fold-nested {
  padding: 14px 16px;
  margin-top: 4px;
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--r);
  box-shadow: none;
}

.fold-nested .fold-head h2 { font-size: 16px; }





.field-group {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}




.field.field-off,
.field-group.field-off { opacity: 0.45; }
.field.field-off { pointer-events: none; }


.seller-head-sub { margin: 6px 0 0; }
.seller-blocked { display: grid; gap: 10px; justify-items: start; }
.seller-blocked h3 { margin: 0; }
.seller-blocked p { margin: 0; }



.fold-inner > .field-group:first-child { margin-top: 0; padding-top: 0; border-top: none; }



.fold-tools { display: flex; justify-content: flex-end; gap: 8px; }



.field-group-rest { color: var(--muted); }

.fold-body {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.34s var(--ease), padding-top 0.34s var(--ease),
              opacity 0.2s var(--ease);
}









.fold[data-open="1"] > .fold-body {
  grid-template-rows: 1fr;
  padding-top: 14px;
  opacity: 1;
  


  transition: grid-template-rows 0.34s var(--ease), padding-top 0.34s var(--ease),
              opacity 0.28s var(--ease) 0.06s;
}

.fold-inner {
  overflow: hidden;
  min-height: 0;
  








  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}



.fold-inner > * { min-width: 0; }






.fold-inner.fold-shown { overflow: visible; }

.fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}



.fold-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  border-radius: var(--r-sm);
  background: var(--accent);
}





button.fold-head:not(.primary):not(.danger):hover:not(:disabled) {
  color: var(--ink);
  background: none;
  border-color: transparent;
  border-bottom-color: var(--line);
  box-shadow: none;
  transform: none;
}

button.fold-head:active:not(:disabled) { transform: none; }
.fold-head:hover h2 { color: var(--accent); }
.fold-head h2 { padding-bottom: 0; border-bottom: none; transition: color 0.22s var(--ease); }
.fold-head h2::after { content: none; }
.fold-head-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fold-sub { font-size: 12.5px; color: var(--muted); font-weight: 480; }

.fold-ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: transform 0.34s var(--ease), color 0.22s var(--ease);
}

.fold-head:hover .fold-ico { color: var(--accent); }


.fold[data-open="1"] > .fold-head .fold-ico { transform: rotate(180deg); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}










section.card:has(> .tiles) { container-type: inline-size; }



@container (min-width: 560px) {
  .tiles:has(> .tile:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



@container (max-width: 707px) {
  .tiles:has(> .tile:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}














.tone-blue { --tone: var(--an-b); }
.tone-cyan { --tone: var(--an-c); }
.tone-green { --tone: var(--ok); }
.tone-orange, .tone-warn { --tone: var(--warn); }
.tone-red { --tone: var(--danger); }
.tone-gray { --tone: var(--muted); }
.tone-accent { --tone: var(--accent); }

.dash { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dash-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; container-type: inline-size; }
.dash-banners { display: flex; flex-direction: column; gap: 8px; }



.dash-h { font-size: 17px; font-weight: 650; padding-bottom: 0; border-bottom: none; }
.dash-h::after { content: none; }

.dash-sub { font-size: 13.5px; color: var(--muted); }
.dash-sub.lost { color: var(--warn); }





.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 440px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 960px) {
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


@container (max-width: 559px) {
  .dash-grid.wide { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 960px) {
  .dash-grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (min-width: 640px) {
  .dash-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 960px) {
  .dash-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.dash-ico {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent);
}

.dash-svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-key { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dash-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}


.dash-delta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.dash-delta.up { --d: var(--ok); }
.dash-delta.down { --d: var(--danger); }
.dash-delta.flat { --d: var(--muted); }
.dash-dico {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--d);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-dv { font-family: var(--mono); font-weight: 600; color: var(--d); }




.dash-vers {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-ver {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 12px 4px 9px;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent);
  background: color-mix(in srgb, var(--tone, var(--accent)) 8%, var(--surface));
}
.dash-ver .dash-svg { width: 15px; height: 15px; color: var(--tone, var(--accent)); stroke-width: 1.9; }
.dash-vk { font-size: 12px; color: var(--muted); }
.dash-vv { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.dash-vx { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.dash-ver.tone-warn .dash-vx { color: var(--warn); }


.dash-more { display: flex; align-items: center; min-height: 32px; max-width: 100%; min-width: 0; }
.dash-parts > summary {
  cursor: pointer;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.dash-parts > summary:hover { color: var(--accent); }
.dash-parts[open] > summary { margin-bottom: 4px; }
.dash-parts-list { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--muted); }
.dash-part { overflow-wrap: anywhere; }
.dash-part b { font-family: var(--mono); font-weight: 600; color: var(--ink); }




.dash-procs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: 12px;
}
.dash-proc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--tone, var(--accent));
  border-radius: var(--r);
}
.dash-proc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-proc-head .dash-ico { width: 38px; height: 38px; }
.dash-proc-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dash-proc-name { font-family: var(--mono); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.dash-pid {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 0 7px;
  border-radius: var(--r-sm);
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent);
}





.dash-panes { display: flex; flex-wrap: wrap; gap: 12px; }
.dash-pane {
  flex: 2 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.dash-pane:first-child { flex: 3 1 280px; }
.dash-pane-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-heap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.dash-hv { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.dash-hp { font-weight: 400; color: var(--muted); }
.dash-bar {
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}


.dash-bar > span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: var(--r-sm);
  background: var(--tone, var(--accent));
  transition: width 0.4s var(--ease);
}
.dash-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; }
.dash-facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-fact { display: flex; flex-direction: column; min-width: 0; }
.dash-fact > span:first-child { color: var(--muted); }
.dash-fact > span:last-child { font-family: var(--mono); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }



.note.slim {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 14px;
  font-size: 13.5px;
}
.note.slim p { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }




@media (max-width: 620px) {
  .dash { gap: 18px; }
  .dash-stat { gap: 12px; padding: 11px 14px; }
  .dash-ico { width: 36px; height: 36px; }
  .dash-proc { padding: 14px; }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.tile-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-val { font-size: 26px; font-weight: 640; line-height: 1.2; letter-spacing: -0.02em; }




.tile-tag {
  font-size: 14px;
  font-weight: 560;
  color: var(--muted);
  letter-spacing: 0;
  white-space: nowrap;
}
.tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tile.accent { border-color: var(--accent-line); background: var(--accent-tint); }
.tile.bad { border-color: var(--danger); background: var(--danger-bg); }
.tile.bad .tile-val { color: var(--danger); }


.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: var(--r);
  border: 1px solid transparent;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
}








.pill.users-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 52px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  border-color: var(--line);
}

.pill.users-n .btn-ico {
  width: 13px;
  height: 13px;
  margin: 0;
  vertical-align: 0;
  opacity: 0.75;
}





.pill-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }





.tge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em; height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

.tge-char { line-height: 1; }
.tge-img, .tge-anim { display: none; width: 100%; height: 100%; }
.tge-anim > svg { display: block; width: 100%; height: 100%; }

.tge-ready .tge-char { display: none; }
.tge-ready .tge-img, .tge-ready .tge-anim { display: block; }








.flag {
  position: relative;      
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 15px;
  flex: none;
  vertical-align: -3px;
  border-radius: 3px;
}

.flag:empty { display: none; }




:root { --flag-edge: rgba(23, 19, 39, 0.16); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --flag-edge: rgba(255, 255, 255, 0.14); }
}

:root[data-theme="dark"], :root[data-theme="graphite"],
:root[data-theme="ocean"], :root[data-theme="black"] {
  --flag-edge: rgba(255, 255, 255, 0.14);
}

.flag-code {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2px 3px;
}






.flag-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}






.flag-pic { background: var(--surface-2); }

.flag-pic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--flag-edge);
  pointer-events: none;
}












.prov {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  max-width: 190px;
  



  line-height: 1.15;
  padding: 0 7px 0 5px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.prov-img {
  width: 13px; height: 13px;
  flex: none;
  object-fit: contain;
  border-radius: var(--r-sm);
  opacity: 0;
  

  margin-right: -18px;
}

.prov-ready .prov-img { opacity: 1; margin-right: 0; }








.prov-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.prov-col .prov { max-width: 100%; }

.prov-holder { display: flex; align-items: center; gap: 8px; }
.prov-holder .prov-img { width: 18px; height: 18px; margin-right: -26px; }
.prov-holder.prov-ready .prov-img { margin-right: 0; }
.prov-why { margin-top: 2px; }




.prov-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
  cursor: pointer;
}

.prov-btn:hover .prov { border-color: var(--accent); }
.prov-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }






.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 2px 8px;
  border-radius: var(--r);
  cursor: pointer;
}

.check-row:hover { background: var(--surface-2); }
.check-row input { flex: none; }
.check-row span { font-size: 13.5px; }

.prov-name {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-name, .chip, h3 { display: flex; align-items: center; gap: 7px; }
.chip { display: inline-flex; }

.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.bad { color: var(--danger); background: var(--danger-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.accent { color: var(--accent); background: var(--accent-tint); }


.scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 600px; }

th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }

thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.18s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody tr.picked { background: var(--accent-tint); }





tbody tr.row-link { cursor: pointer; }
tbody tr.row-link:focus { outline: none; }
tbody tr.row-link:focus-visible td { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }

td.tight { white-space: nowrap; }
td .node-name { font-weight: 600; }


td .node-sub {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-family: var(--mono);
}





















@media (min-width: 621px) {
  table.rows-move { border-collapse: separate; border-spacing: 0 10px; }

  

  table.rows-move thead th { border-bottom: 1px solid var(--line); }

  table.rows-move tbody td {
    background: var(--surface-2);
    border-top: 1px solid var(--accent-line);
    border-bottom: 1px solid var(--accent-line);
    


    padding-top: 13px;
    padding-bottom: 13px;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
  }

  



  table.rows-move tbody td:first-child {
    border-left: 3px solid var(--accent);
    border-radius: var(--r) 0 0 var(--r);
  }

  table.rows-move tbody td:last-child {
    border-right: 1px solid var(--accent-line);
    border-radius: 0 var(--r) var(--r) 0;
  }

  












  table.rows-move tbody tr[data-state="lost"] td {
    background: var(--danger-bg);
    border-color: var(--danger);
  }

  table.rows-move tbody tr[data-state="off"] td {
    background: transparent;
    border-color: var(--line);
    opacity: 0.72;
  }

  



  table.rows-move tbody tr[data-state="lost"] td:first-child { border-left-color: var(--danger); }
  table.rows-move tbody tr[data-state="off"] td:first-child { border-left-color: var(--muted); }

  



  table.rows-move tbody tr:hover td { border-color: var(--accent); }
  table.rows-move tbody tr[data-state="off"]:hover td { opacity: 1; }
  table.rows-move tbody tr.picked td {
    background: var(--accent-tint);
    border-color: var(--accent);
    opacity: 1;
  }
}












@media (max-width: 620px) {
  

  .scroll { overflow-x: visible; }

  table { display: block; min-width: 0; font-size: 14px; }
  thead { display: none; }
  tbody { display: block; }

  tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface-2);
  }

  tbody tr:last-child { margin-bottom: 0; }

  



  tbody tr[data-state] { border-left: 3px solid var(--accent); }
  tbody tr[data-state="lost"] {
    border-color: var(--danger);
    background: var(--danger-bg);
  }
  tbody tr[data-state="off"] { opacity: 0.72; border-left-color: var(--muted); }

  

  tbody tr:hover { background: var(--surface-2); }
  tbody tr[data-state="lost"]:hover { background: var(--danger-bg); }
  tbody tr.picked { border-color: var(--accent-line); background: var(--accent-tint); }

  tbody td {
    flex: 1 0 100%;
    






    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: none;
    text-align: right;
  }

  


  tbody td:not([data-label]) { flex: 0 0 auto; padding: 0; }

  tbody td[data-label]::before {
    content: attr(data-label);
    flex: none;
    max-width: 45%;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
  }

  













  .rows-move tbody tr { gap: 3px 10px; padding: 11px 13px; align-items: flex-start; }

  .rows-move tbody td {
    



    order: 3;
    flex: 0 1 auto;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    gap: 6px;
    
    white-space: nowrap;
  }

  


  .rows-move tbody td:first-child,
  .rows-move tbody td:first-child + td:not([data-label]) { order: 1; }
  .rows-move tbody td:not([data-label]) + td[data-label] + td {
    order: 1;
    margin-left: auto;
  }

  





  .rows-move tbody td.users-td { order: 1; }

  




  .rows-move tbody td:not([data-label]) + td[data-label] {
    order: 2;
    flex: 1 0 100%;
    min-width: 0;
    white-space: normal;
  }
  .rows-move tbody .node-name { flex-wrap: wrap; }
  .rows-move tbody .host-addr { flex: 1 0 100%; margin-left: 0; }

  


  .rows-move tbody td:not([data-label]) + td[data-label] + td .pill {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: currentColor;
    text-indent: -99em;
    overflow: hidden;
  }

  



  .rows-move tbody td:has(.pill)::before,
  .rows-move tbody td:has(.net)::before,
  .rows-move tbody td:has(.mini)::before,
  .rows-move tbody td:has(button)::before { display: none; }

  



  .rows-move .traf-td::before,
  .rows-move .up-td::before { display: none; }

  .rows-move tbody td[data-label]::before {
    max-width: none;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  


  .rows-move tbody .net { grid-template-columns: 0.7rem auto; gap: 4px; }
  .rows-move tbody .net-unit { display: none; }
  .rows-move tbody .mini { grid-template-columns: auto auto; gap: 4px; }
  .rows-move tbody .mini-bar { display: none; }

  

  .rows-move .traf-td { min-width: 0; }
  .rows-move tbody .traf-bar,
  .rows-move tbody .traf-cap { display: none; }

  
  .rows-move tbody td:has(.icon-sq) { align-self: center; }

  


  .rows-move tbody td:has(button:not(.icon-sq):not(.grip)) {
    order: 4;
    flex: 1 0 100%;
    justify-content: flex-end;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  
  .rows-move tbody td .field-row { flex-wrap: nowrap; gap: 6px; }

  








  body.cards-compact tbody tr { padding: 7px 11px; margin-bottom: 6px; border-radius: var(--r); }
  body.cards-compact tbody td { padding: 2px 0; gap: 8px; }
  body.cards-compact tbody td[data-label]::before { font-size: 9.5px; }
  body.cards-compact table { font-size: 12.5px; }

  body.cards-large tbody tr { padding: 14px 17px; margin-bottom: 13px; border-radius: var(--r); }
  body.cards-large tbody td { padding: 8px 0; }
  body.cards-large tbody td[data-label]::before { font-size: 11.5px; }
  body.cards-large table { font-size: 15.5px; }

  


  body.cards-compact .rows-move tbody td { padding: 0; gap: 6px; }
  body.cards-large .rows-move tbody td { padding: 3px 0; gap: 9px; }

  


  tbody td[data-label]:nth-of-type(1),
  tbody td:not([data-label]) + td[data-label] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 2px;
    padding-bottom: 8px;
  }

  


  tbody td[data-label]:nth-of-type(1)::before,
  tbody td:not([data-label]) + td[data-label]::before { display: none; }

  







  .tiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
  .tile { padding: 11px 12px; border-radius: var(--r); }
  

  .tile-val { font-size: 20px; }
  .tile-tag { font-size: 12px; }
  .tile-sub { font-size: 11.5px; }

  

  tbody tr.row-link { border-color: var(--line); }
  tbody tr.row-link:active { border-color: var(--accent-line); }

  


  .col-grip, td .grip { opacity: 0.55; }

  








  button:not(.icon-sq):not(.icon-btn):not(.chip):not(.seg-btn):not(.grip):not(.tf-sw):not(.ms-x) {
    min-height: 40px;
  }

  




  a.btn-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  





  #nav-show { min-width: 40px; }
  .seg-btn { min-height: 40px; }

  


  input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    font-size: 16px;
  }

  


  .chip { min-height: 34px; }
}

.col-pick { width: 62px; }



.pick-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}







.mass-panel { border-color: var(--accent-line); scroll-margin-top: 14px; }




.mass-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mass-head h2 { flex: 1; min-width: 0; padding-bottom: 0; border-bottom: none; }
.mass-head h2::after { content: none; }

.mass-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  border-radius: var(--r-sm);
  background: var(--accent);
}

.mass-head-acts { display: flex; gap: 8px; flex: none; }

.mass-body-inner { display: flex; flex-direction: column; gap: 14px; min-width: 0; }











.mass-bar {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--surface);
  animation: slideDown 0.26s var(--ease);
}







.host-bulk {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  width: 250px;
  max-width: calc(100vw - 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-color: var(--accent-line);
  animation: slideDown 0.26s var(--ease);
}

.host-bulk-top { display: flex; align-items: center; gap: 6px; }
.host-bulk-sp { flex: 1; }
.host-bulk-moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.host-bulk-moves button { justify-content: center; }
.host-bulk-act { width: 100%; justify-content: center; }
.host-bulk-act.bulk-on { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.host-bulk-act.bulk-edit { color: var(--accent); border-color: var(--accent-line);
  background: var(--accent-tint); }



body.has-host-bulk .wrap { padding-bottom: 360px; }



.bulk-add { position: relative; }
.bulk-add-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 3;
  width: 260px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}
.bulk-opts { display: flex; flex-direction: column; gap: 12px; }
.bulk-opt { display: flex; flex-direction: column; gap: 6px; }
.bulk-opt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bulk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  text-align: center;
}
.bulk-empty-ico .btn-ico { width: 26px; height: 26px; color: var(--muted); }

@media (max-width: 620px) {
  .host-bulk {
    left: max(var(--nav-gap), env(safe-area-inset-left));
    right: max(var(--nav-gap), env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
  }
}

.mass-bar-count {
  font-size: 13.5px;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  

  .mass-bar { left: 12px; right: 12px; max-width: none; justify-content: space-between; }
}











input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  flex: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78%;
}
input[type="checkbox"]:disabled { opacity: 0.45; cursor: default; }













@media (max-width: 620px) {
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
}






.col-grip { width: 36px; }

.grip {
  padding: 2px 7px;
  border-radius: var(--r);
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  cursor: grab;
}

.grip:active { cursor: grabbing; }




.grip { touch-action: none; }








.rows-move tbody tr,
.rows-move.part-rows > .part-row,
.drag-zone > .entry,
.drag-zone > .entry-wrap { transition: transform 0.18s var(--ease); }









.drag-zone > .entry,
.drag-zone > .entry-wrap > .entry { cursor: grab; }

.drag-zone > .entry.drag-live,
.drag-zone > .entry-wrap.drag-live {
  z-index: 3;
  transition: none;
  cursor: grabbing;
  background: var(--surface);
}



.rows-move tbody tr.drag-live,
.rows-move.part-rows > .part-row.drag-live {
  position: relative;
  z-index: 3;
  transition: none;
  cursor: grabbing;
  background: var(--surface);
}

.rows-move tbody tr.drag-live td:first-child { border-radius: var(--r) 0 0 var(--r); }
.rows-move tbody tr.drag-live td:last-child { border-radius: 0 var(--r) var(--r) 0; }












body.rows-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.rows-dragging input,
body.rows-dragging textarea,
body.rows-dragging select { user-select: text; -webkit-user-select: text; }
body.rows-dragging .row-link,
body.rows-dragging .rows-move > .part-row { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  

  .rows-move tbody tr,
  .rows-move.part-rows > .part-row { transition: none; }
}


button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 560;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.22s var(--ease);
}

button:hover:not(:disabled) { transform: translateY(-1px); }

button:not(.primary):not(.danger):hover:not(:disabled) {
  color: var(--accent);
  background-color: var(--accent-tint);
  border-color: var(--accent-line);
}

button.primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
}



button.icon-btn { flex: none; padding: 8px 12px; line-height: 1.2; }








button.danger {
  color: var(--on-accent);
  background: var(--danger);
  border-color: transparent;
}

button:active:not(:disabled) { transform: translateY(1px) scale(0.985); transition-duration: 0.06s; }

button:disabled { opacity: 0.42; cursor: not-allowed; }

button.small { font-size: 12.5px; padding: 5px 13px; }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 8px;
}

.actions-grid button { text-align: left; border-radius: var(--r); padding: 9px 15px; font-size: 13.5px; }



.row-actions { white-space: nowrap; }
.row-actions > * + * { margin-left: 6px; }




.row-actions > * { vertical-align: middle; }




a.btn-link {
  display: inline-block;
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

a.btn-link:hover { border-color: var(--accent-line); background: var(--surface-2); }


.inline-field { display: inline-flex; flex-direction: column; gap: 4px; }





.menu-levels { display: flex; flex-direction: column; gap: 10px; }
.menu-level { display: flex; flex-direction: column; gap: 8px; }

.menu-title { font-size: 14px; font-weight: 620; color: var(--muted); padding-top: 2px; }

.menu-group, .menu-item, .menu-back {
  text-align: left;
  border-radius: var(--r);
  padding: 10px 15px;
  font-size: 13.5px;
  width: 100%;
}

.menu-group { font-weight: 560; }





.mg-chev { margin-left: 6px; }
.menu-back { color: var(--muted); }






a.menu-group, a.menu-item {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.22s var(--ease);
}

a.menu-group:hover, a.menu-item:hover {
  color: var(--accent);
  background-color: var(--accent-tint);
  border-color: var(--accent-line);
  transform: translateY(-1px);
}



.menu-warn { color: var(--warn); border-color: var(--warn); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }



a.menu-item {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-decoration: none;
}

a.menu-item:hover {
  color: var(--accent);
  background-color: var(--accent-tint);
  border-color: var(--accent-line);
}

.menu-level textarea { min-height: 200px; }










.mass-panel .menu-level {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.mass-panel .menu-level .actions-grid { display: contents; }
.mass-panel .menu-level .menu-group,
.mass-panel .menu-level .menu-item,
.mass-panel .menu-level .menu-back { width: auto; }
.mass-panel .menu-level .menu-title,
.mass-panel .menu-level .menu-back,
.mass-panel .menu-level textarea { grid-column: 1 / -1; }















input[type="text"], input[type="search"], input[type="password"],
input[type="number"], input[type="date"], input[type="url"], textarea, select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 14px;
  width: 100%;
}





input[type="search"] { appearance: none; }





input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

textarea { font-family: var(--mono); font-size: 12.5px; resize: vertical; min-height: 90px; }




select option, select optgroup {
  background-color: var(--surface);
  color: var(--ink);
}

.field { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: none; }
.field-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.field-label { font-size: 15px; font-weight: 620; }
.field-hint { font-size: 12.5px; color: var(--muted); white-space: pre-line; }
.field-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field-row input { flex: 1 1 260px; width: auto; }












.field-row > select { flex: 1 1 220px; width: auto; min-width: 0; }









.field > select, .field-row > select { max-width: 480px; }
.field-err { font-size: 12.5px; color: var(--danger); }
.field-ok { font-size: 12.5px; color: var(--ok); }






.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }


.log-list { display: flex; flex-direction: column; gap: 2px; }

.log-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: var(--r);
  font-size: 13.5px;
}

.log-row:nth-child(odd) { background: var(--surface-2); }
.log-time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.log-who { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }







.log-row.alert-row { grid-template-columns: 150px minmax(0, 1fr) auto auto; }




.log-row.acc-row .acc-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}





.alert-kind.is-clear .btn-ico { color: var(--ok); }
.log-row.dev-line { grid-template-columns: minmax(0, 1fr) auto auto auto auto; }





@media (max-width: 620px) {
  





  .log-row.alert-row, .log-row.dev-line {
    grid-template-columns: 1fr;
    row-gap: 7px;
  }
}




.taskbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100vw - 36px));
  max-height: 60vh;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: var(--accent-line);
  animation: slideUp 0.3s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.taskbar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.taskbar-title { font-size: 14px; font-weight: 620; flex: 1; min-width: 0; }
.taskbar-head button { padding: 3px 12px; font-size: 12.5px; }

.taskbar-log {
  overflow-y: auto;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}












.task-line { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }

.task-line-node {
  color: var(--accent);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}





.task-line-text {
  flex: 1 1 16ch;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.task-line.bad .task-line-text { color: var(--danger); }




.task-line-text a { color: var(--accent); text-decoration: underline; }
.task-line-text a:hover { color: var(--accent-2); }








.an-f-k { color: var(--an-k); }
.an-f-r { color: var(--an-r); }
.an-f-g { color: var(--an-g); }
.an-f-y { color: var(--an-y); }
.an-f-b { color: var(--an-b); }
.an-f-m { color: var(--an-m); }
.an-f-c { color: var(--an-c); }
.an-f-w { color: var(--an-w); }
.an-f-kl { color: var(--an-kl); }
.an-f-rl { color: var(--an-rl); }
.an-f-gl { color: var(--an-gl); }
.an-f-yl { color: var(--an-yl); }
.an-f-bl { color: var(--an-bl); }
.an-f-ml { color: var(--an-ml); }
.an-f-cl { color: var(--an-cl); }
.an-f-wl { color: var(--an-wl); }




.an-b-k, .an-b-r, .an-b-g, .an-b-y, .an-b-b, .an-b-m, .an-b-c, .an-b-w,
.an-b-kl, .an-b-rl, .an-b-gl, .an-b-yl, .an-b-bl, .an-b-ml, .an-b-cl, .an-b-wl {
  color: var(--bg);
  border-radius: var(--r-sm);
  padding: 0 1px;
}
.an-b-k { background: var(--an-k); }
.an-b-r { background: var(--an-r); }
.an-b-g { background: var(--an-g); }
.an-b-y { background: var(--an-y); }
.an-b-b { background: var(--an-b); }
.an-b-m { background: var(--an-m); }
.an-b-c { background: var(--an-c); }
.an-b-w { background: var(--an-w); }
.an-b-kl { background: var(--an-kl); }
.an-b-rl { background: var(--an-rl); }
.an-b-gl { background: var(--an-gl); }
.an-b-yl { background: var(--an-yl); }
.an-b-bl { background: var(--an-bl); }
.an-b-ml { background: var(--an-ml); }
.an-b-cl { background: var(--an-cl); }
.an-b-wl { background: var(--an-wl); }

.an-bold { font-weight: 700; }
.an-dim { opacity: 0.7; }
.an-ital { font-style: italic; }
.an-und { text-decoration: underline; }

.task-line.bad .task-line-text span { color: var(--danger); }


.spin {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }


.modal-back {
  position: fixed;
  inset: 0;
  z-index: 8;
  

  background: rgba(10, 6, 20, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  



  overscroll-behavior: contain;
}










html.modal-open,
body.modal-open { overflow: hidden; }














.modal-back.over {
  background: rgba(10, 6, 20, 0.14);
}

.modal-back[popover] {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  overflow: visible;
  color: inherit;
}

.modal {
  width: 100%;
  max-width: 520px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--r);
  max-height: 84vh;
  overflow-y: auto;
}





.modal.modal-wide { max-width: min(880px, 94vw); max-height: 90vh; }








.modal.modal-card { max-width: min(680px, 94vw); }





.modal.modal-loc { max-width: min(760px, 94vw); }







.loc-tpl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 18px;
}

.loc-tpl .field { border-bottom: none; }



.loc-tpl .field-row input { flex: 1 1 140px; }







.modal > * { min-width: 0; }











.modal-x {
  order: -1;
  align-self: flex-end;
  position: sticky;
  top: -2px;
  z-index: 2;
  flex: none;
  margin-bottom: -8px;
  border-radius: var(--r);
}











.modal-x, .card-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}




.modal:has(.card-x) > .modal-x { display: none; }




.modal-head { display: flex; flex-direction: column; gap: 10px; }

.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }






.modal-back.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }

.drawer .modal {
  width: min(620px, 100%);
  max-width: none;
  height: 100%;
  max-height: 100%;
  border-radius: var(--r) 0 0 var(--r);
  border-right: none;
  animation: slideSide 0.28s var(--ease);
}

@keyframes slideSide {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}




.card-top {
  position: sticky;
  top: -22px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin: -22px -24px 0;
  padding: 22px 24px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}



.drawer .modal-foot { margin-top: auto; }


.modal-foot.end { justify-content: flex-end; }











.modal-node { max-width: 1160px; }




.modal-code { max-width: 900px; }

.card-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.card-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

@media (max-width: 900px) {
  

  .card-cols { grid-template-columns: minmax(0, 1fr); }
}

.sect {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}



.sect-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sect-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  border-radius: var(--r-sm);
  background: var(--accent);
}


.sect-head .grow { flex: 1; }



.sect-head.danger h3 { color: var(--danger); }
.sect-head.danger::after { background: var(--danger); }



.days-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.days-grid button { border-radius: var(--r); padding: 9px 12px; font-size: 13.5px; font-family: var(--mono); }

.sub-box { display: flex; flex-direction: column; gap: 8px; }





.live-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.live-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.live-dot.off { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.live-dot.never { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }




.squad-top { display: flex; align-items: flex-start; gap: 12px; }
.squad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.squad-name { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.squad-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }



button.icon-sq {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 0;
  border-radius: var(--r);
}
button.icon-sq .btn-ico { margin: 0; vertical-align: 0; }




.inb-list { display: flex; flex-direction: column; gap: 8px; }

.inb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
              border-color 0.22s var(--ease);
}

.inb:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.inb.on { border-color: var(--accent-line); background: var(--accent-tint); }

.inb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inb-name { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.inb.on .inb-name { color: var(--accent); }
.inb-prof { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }




.prof-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.inb-list > .prof-head:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prof-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 620; overflow-wrap: anywhere; }






.usq { display: flex; flex-direction: column; gap: 8px; min-width: 0; }



.usq-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  cursor: text;
}
.usq-search:focus-within { border-color: var(--accent); }
.usq-search-ico {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.usq-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.usq-search input[type="search"]:focus-visible { outline: none; }




.usq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}





.usq-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 7px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s var(--ease);
}



@media (hover: hover) {
  .usq-row:hover { border-color: var(--accent-line); }
}
.usq-row.on { border-color: var(--accent); }



.usq-name {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}






.pill.usq-n {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--usq-c);
  background: color-mix(in srgb, var(--usq-c) 14%, transparent);
}
.pill.usq-n .btn-ico { width: 13px; height: 13px; margin: 0; vertical-align: 0; }
.usq-users { --usq-c: var(--an-g); }
.usq-inb { --usq-c: var(--an-b); }
button.icon-sq.usq-edit .btn-ico { width: 15px; height: 15px; }



.usq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 182px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.usq-empty-ico {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}



@media (max-width: 620px) {
  .pill.usq-n.usq-users { display: none; }
}




.sub-url {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sect-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}


.traffic { display: flex; flex-direction: column; gap: 6px; }
.traffic-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.traffic-val { font-family: var(--mono); font-size: 20px; font-weight: 640; letter-spacing: -0.01em; }
.traffic-cap { font-size: 12.5px; color: var(--muted); }
.traffic-note { font-size: 12px; color: var(--muted); }

.bar { height: 6px; border-radius: var(--r-sm); background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--pct, 0%); border-radius: inherit; background: var(--accent); }


.bar-fill.over { background: var(--danger); }



.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }





.lists-fact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.lists-fact .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lists-tip {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}





.addr-main,
.addr-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.addr-main { font-family: var(--mono); overflow-wrap: anywhere; }
.addr-list { display: flex; flex-direction: column; gap: 6px; }
.addr-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.addr-ip {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.addr-add,
.addr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addr-add .addr-in { flex: 1 1 200px; min-width: 0; }

















.secret-row { display: flex; align-items: center; gap: 8px; min-width: 0; }






.spoiler {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  letter-spacing: 1px;
}

.spoiler[data-shown="1"] {
  color: inherit;
  user-select: text;
  letter-spacing: normal;
  overflow-x: auto;
  text-overflow: clip;
  scrollbar-width: none;
}

.spoiler::-webkit-scrollbar { display: none; }

.spoiler:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }




.secret-copy {
  flex: none;
  padding: 2px 8px;
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
}












.edit-box { display: block; min-width: 0; }

.edit-val {
  border-bottom: 1px dashed transparent;
  cursor: text;
}

.edit-val:hover,
.edit-val:focus-visible { border-bottom-color: var(--muted); }

.edit-in {
  width: 100%;
  min-width: 0;
  


  padding: 2px 8px;
  font: inherit;
  border-radius: var(--r);
}

.edit-in:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.card-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-title h3 { margin: 0; }
.card-uuid { font-family: var(--mono); font-size: 11px; color: var(--muted); }



.card-x { flex: none; border-radius: var(--r); }






.card-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }







.card-act {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--r);
}





.card-act-chev {
  position: absolute;
  right: 2px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: currentColor;
  


  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  pointer-events: none;
}

.card-act:hover .card-act-chev { color: var(--ink); }





.card-act.power { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.card-act.power[data-on="0"] { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }

.card-act.power:hover:not(:disabled) { background: var(--danger); color: var(--on-accent); }
.card-act.power[data-on="0"]:hover:not(:disabled) { background: var(--ok); color: var(--on-accent); }



.card-act.power:disabled { border-color: var(--line); background: var(--surface-2); }

.power-ico { display: block; width: 17px; height: 17px; }



.card-act-wrap { position: relative; display: flex; flex: none; }





.card-act-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 230px;
  max-width: min(300px, 76vw);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.card-act-wrap[data-open="1"] .card-act-menu { display: flex; }

.card-act-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 13px;
  font-size: 13px;
  border-radius: var(--r);
}






.one-head { display: flex; align-items: flex-start; gap: 14px; }
.one-head-txt { min-width: 0; }
.one-title { margin: 0 0 2px; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; }



.edit-state { margin-left: auto; flex: none; font-size: 12.5px; color: var(--muted); }
.edit-state.warn { color: var(--warn); font-weight: 560; }













.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; }
.switch-in { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }

.switch-track {
  position: relative;
  flex: none;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  transition: background-color 0.22s var(--ease);
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(10, 6, 20, 0.45);
  transition: transform 0.22s var(--ease);
}

.switch-in:checked + .switch-track { background: var(--ok); border-color: var(--ok); }
.switch-in:checked + .switch-track .switch-knob { transform: translateX(17px); }
.switch-in:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--accent-tint); }
.switch-in:disabled + .switch-track { opacity: 0.55; }
.switch-label { color: var(--ink-soft); }













.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
@media (max-width: 620px) {
  .switch-row { min-height: 44px; }
}
.switch-row:hover { border-color: var(--accent-line); }


.switch-row:has(.switch-in:focus-visible) { border-color: var(--accent); }

.switch-row.off { cursor: default; opacity: 0.6; }
.switch-row.off:hover { border-color: var(--line); }
.switch-row-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.switch-row-label { font-size: 13.5px; font-weight: 560; line-height: 1.3; overflow-wrap: anywhere; }
.switch-row .field-hint { font-size: 12px; line-height: 1.4; }
.switch-row > .switch { flex: none; }





.switch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.switch-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }



.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.seg-btn {
  flex: 1 1 0;
  padding: 7px 14px;
  border-radius: var(--r);
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
}

.seg-btn.on { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }







.seg-btn:hover:not(:disabled),
.seg-btn:active:not(:disabled) { transform: none; }





.seg-live {
  position: relative;
  

  touch-action: pan-y;
}




.seg-live .seg-btn { position: relative; z-index: 1; }
.seg-live .seg-btn.on { background: none; border-color: transparent; }



.seg-live .seg-btn.hot { color: var(--accent); }

.seg-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  



  background: var(--seg-fill);
  



  transition: none;
}






.seg-wrap { flex-wrap: wrap; }
.seg-wrap .seg-btn { flex: 0 1 auto; }








.save-bar { align-items: center; gap: 10px; }
.save-bar .muted { font-size: 12.5px; }


.save-bar.on .muted { color: var(--accent); font-weight: 560; }



.field-dirty { box-shadow: inset 2px 0 0 var(--accent); }





.pane-save {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}




.field-key {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.8;
  margin-bottom: 2px;
}




.form-pane { display: flex; flex-direction: column; gap: 14px; }




.form-part { margin: 2px 0 -6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.form-pane > .form-part ~ .form-part { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }

.bind-box {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
}

.bind-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }





.modal-foot {
  position: sticky;
  bottom: -22px;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 -24px -22px;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line);
  

  background: var(--surface);
}




.confirm-text { white-space: pre-line; }



.confirm-list {
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.confirm-list .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.confirm-list ul { margin: 6px 0 0; padding-left: 18px; }
.confirm-list li { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }





.confirm-checks .field-hint { overflow-wrap: anywhere; }


.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: var(--r);
}

.chip-on {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}




.traf { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.traf-line { display: flex; align-items: baseline; gap: 4px; font-size: 13.5px; }
.traf .gauge-bar { height: 4px; }
.traf .gauge-bar.over .gauge-fill { background: var(--danger); }


.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 4px;
}











section.card.u-head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
}

.u-head-main { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.u-head-main h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.u-head-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }


.u-head-acts {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.u-head-acts > button, button.u-create { min-height: 40px; }
button.u-create { flex: none; }



.u-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 340px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  cursor: text;
}

.u-search:focus-within { border-color: var(--accent); }

.u-search-ico, .u-chip-ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.u-search-ico { width: 16px; height: 16px; }

.u-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.u-search input[type="search"]:focus-visible { outline: none; }



.u-bulk { display: inline-flex; align-items: center; gap: 8px; }

.u-bulk-n {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

section.card.u-list { padding: 14px 16px; gap: 12px; }

.u-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.u-tabs { flex: 0 1 auto; min-width: 0; }

.u-tabs .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: var(--ink-soft);
  font-weight: 560;
}


.u-tabs .seg-btn.on, .u-tabs .seg-btn.hot { color: var(--ink); }
.u-tab-n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.u-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }




.u-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.u-chip.on {
  border-style: solid;
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent);
}

.u-chip-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }





.u-chip-sel select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.u-chip-sel:has(select:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.u-chip-sel:hover { border-color: var(--accent-line); color: var(--accent); }


button.u-chip-x {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
}

button.u-chip-x .btn-ico { width: 12px; height: 12px; }

button.u-chip { line-height: 1.2; }

.u-sortbox { display: flex; margin-left: auto; }
.u-chip.u-sort { border-color: transparent; border-style: solid; color: var(--muted); padding: 0 8px; }
.u-chip-ico { width: 14px; height: 14px; }

.u-notes { display: flex; flex-direction: column; gap: 8px; }



.u-tbox { min-width: 0; }


.u-scroll { border: 1px solid var(--line); border-radius: var(--r); }
table.u-table { min-width: 880px; font-size: 13.5px; }

.u-table thead th {
  padding: 10px;
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.u-table td { padding: 10px; }
.u-table .col-pick, .u-table .u-c-pick { width: 46px; padding-left: 14px; padding-right: 4px; }
.u-table .u-c-act { width: 58px; padding-right: 12px; text-align: right; }

.u-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-ava-box { position: relative; flex: none; width: 34px; height: 34px; }

.u-ava {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}




.u-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--muted);
}

.u-dot.on { background: var(--ok); }
.u-dot.off { background: color-mix(in srgb, var(--muted) 60%, var(--surface)); }
.u-dot.never { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); }

.u-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.u-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 620; }
.u-name-t, .u-short { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-short { font-size: 12px; color: var(--muted); }



.pill.u-st {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 620;
}




.pill.u-st:not(.ok):not(.warn):not(.bad) {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--ink-soft);
}

.u-traf { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.u-traf-line { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-traf-used { font-weight: 640; }
.u-traf-cap { color: var(--muted); }

.u-bar {
  max-width: 220px;
  height: 5px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}

.u-bar-fill {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  border-radius: var(--r-sm);
  background: var(--accent);
}

.u-bar.warn .u-bar-fill { background: var(--warn); }

.u-last { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-where { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 300px; white-space: nowrap; }


.u-where .flag { width: 18px; height: 12px; border-radius: 2px; }
.u-where .flag-code { font-size: 8px; padding: 1px 2px; }
.u-node { flex: none; font-weight: 620; }
.u-sep { flex: none; color: var(--muted); }
.u-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.u-none, .u-dim { color: var(--muted); }
.u-when { font-size: 12px; color: var(--muted); }
.u-when.on { color: var(--ok); }

.u-dev { white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-exp { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.u-exp-day { font-size: 13px; font-variant-numeric: tabular-nums; }
.u-exp-in { font-size: 12px; color: var(--muted); }
.u-exp-in.warn { color: var(--warn); }
.u-exp-in.bad { color: var(--danger); }

button.u-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--ink-soft);
}


button.u-more .btn-ico { width: 16px; height: 16px; margin: 0; stroke-width: 2.8; }

button.u-more[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}




.u-menu {
  position: fixed;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.u-menu-head { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); }
.u-menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }

.u-menu button.u-mi {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
}

.u-menu button.u-mi .btn-ico { width: 15px; height: 15px; margin-right: 10px; }
.u-menu button.u-mi:hover:not(:disabled),
.u-menu button.u-mi:focus-visible {
  transform: none;
  border-color: transparent;
  background: var(--accent-tint);
  color: var(--accent);
}

.u-menu button.u-mi:active:not(:disabled) { transform: none; }
.u-menu button.u-mi-danger { color: var(--danger); }
.u-menu button.u-mi-danger:hover:not(:disabled),
.u-menu button.u-mi-danger:focus-visible { background: var(--danger-bg); color: var(--danger); }

.u-pager { padding: 2px 0 0; }
.u-pg-info { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.u-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
button.u-pg { min-width: 34px; padding-left: 8px; padding-right: 8px; font-variant-numeric: tabular-nums; }
button.u-pg.on { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.u-pg-gap { padding: 0 2px; color: var(--muted); }






section.card.u-list { container-type: inline-size; }

@container (max-width: 1000px) {
  .u-table th, .u-table td { padding-left: 5px; padding-right: 5px; }
  .u-table .col-pick, .u-table .u-c-pick { width: 34px; padding-left: 10px; }
  .u-table .u-c-act { width: 46px; padding-right: 8px; }
  .u-table thead th { white-space: normal; font-size: 10.5px; letter-spacing: 0.04em; }
  table.u-table { min-width: 0; }
  .u-user { gap: 8px; }
  .u-ava-box { width: 30px; height: 30px; }
  .u-name-t, .u-short { max-width: 130px; }
  .u-where { max-width: 180px; }
  .u-traf { min-width: 96px; }
  .u-bar { max-width: 140px; }
}

@media (max-width: 900px) {
  section.card.u-head { padding: 14px; gap: 10px; }
  .u-head-main h1 { font-size: 22px; }
  

  button.u-create { order: 1; }
  .u-head-acts { order: 2; flex: 1 1 100%; justify-content: flex-start; }
  .u-search { max-width: none; }
  section.card.u-list { padding: 12px; }
}








@media (max-width: 620px) {
  .u-scroll { border: 0; border-radius: 0; }
  table.u-table { min-width: 0; }
  table.u-table tbody tr { gap: 8px 10px; padding: 12px; align-items: center; }
  table.u-table tbody td {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    padding: 0;
    justify-content: flex-start;
    text-align: left;
  }

  table.u-table tbody td::before { display: none; }
  table.u-table tbody td.u-c-pick { order: 1; flex: 0 0 auto; }
  table.u-table tbody td.u-c-user {
    order: 1;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  table.u-table tbody td.u-c-st { order: 1; flex: 0 0 auto; }
  table.u-table tbody td.u-c-act { order: 1; flex: 0 0 auto; width: auto; padding: 0; }
  table.u-table tbody td.u-c-traf { order: 2; }
  table.u-table tbody td.u-c-last { order: 3; }
  table.u-table tbody td.u-c-dev,
  table.u-table tbody td.u-c-exp {
    order: 4;
    flex: 1 1 40%;
    flex-direction: column;
    align-self: flex-start;
    align-items: flex-start;
    gap: 2px;
  }

  table.u-table tbody td.u-c-dev::before,
  table.u-table tbody td.u-c-exp::before { display: block; }
  .u-name-t, .u-short { max-width: none; }
  .u-traf, .u-bar, .u-where { max-width: none; min-width: 0; }
  button.u-more { width: 40px; height: 40px; }
  body.cards-compact table.u-table tbody tr { gap: 5px 8px; padding: 8px 10px; }
  body.cards-large table.u-table tbody tr { gap: 11px 12px; padding: 15px; }
  

  .u-tabs { flex: 1 1 100%; }
  .u-sortbox { margin-left: 0; }
  

  .u-search { flex: 1 1 100%; }
  .u-head-acts > button { flex: 1 1 auto; }
}



.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.check-row:hover { background: var(--surface-2); }

.dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.dev-row:last-of-type { border-bottom: none; }


.dev-row .node-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dev-row .node-sub.mono { font-family: var(--mono); }





.tok-row { align-items: flex-start; }
.tok-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tok-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.tok-scopes { display: flex; flex-wrap: wrap; gap: 4px; }
.tok-path { overflow-wrap: anywhere; font-size: 13px; font-weight: 400; }
.tok-res-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 14px; margin: 6px 0 10px;
}
.tok-res { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; }
.tok-res select { width: auto; min-width: 96px; }
.tok-value { white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }


.tf-reset { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }


.order-btns { display: flex; flex-direction: column; gap: 2px; }

.order-btns button {
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: var(--r);
}









.row-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}



.row-head .field-row { gap: 8px; }

.phs { display: flex; flex-wrap: wrap; gap: 6px; }

.phs code,
.phs .ph-btn {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-tint);
  border-color: transparent;
  border-radius: var(--r);
  padding: 2px 10px;
}





.phs .ph-btn {
  min-height: 0;
  line-height: 1.6;
  box-shadow: none;
  cursor: copy;
}

.phs .ph-btn:hover {
  background: var(--accent);
  




  color: var(--on-accent);
}





.code.code-tpl {
  height: min(58vh, 520px);
  min-height: 300px;
}




.code.code-tpl .code-body {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}

pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  max-height: 40vh;
  overflow: auto;
}

pre code { background: none; border: none; padding: 0; white-space: pre; }




pre.cmd { white-space: pre-wrap; overflow-wrap: anywhere; }


.note {
  padding: 13px 17px;
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--accent-tint);
  font-size: 14px;
}

.note .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.note.warn { background: var(--warn-bg); }
.note.warn .label { color: var(--warn); }
.note.danger { background: var(--danger-bg); }
.note.danger .label { color: var(--danger); }



.note.ok { background: var(--ok-bg); }
.note.ok .label { color: var(--ok); }


.note pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
}

.empty { padding: 26px 0; text-align: center; color: var(--muted); font-size: 14px; }


.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}






.toasts[popover] {
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: visible;
  background: none;
  color: inherit;
}

.toast {
  padding: 11px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  animation: slideUp 0.24s var(--ease);
  overflow-wrap: anywhere;
}

.toast.bad { border-color: var(--danger); color: var(--danger); }
.toast.ok { border-color: var(--ok); color: var(--ok); }



.toast.warn { border-color: var(--warn); color: var(--warn); }


.meters { display: flex; flex-direction: column; gap: 10px; }

.gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.gauge {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.gauge-head { display: flex; align-items: center; gap: 7px; }
.gauge-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor;
             stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
             color: var(--muted); opacity: 0.8; }

.gauge-name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}


.gauge-cap { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.gauge-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }

.gauge-val {
  font-size: 30px;
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.gauge-unit { font-size: 13px; font-weight: 600; color: var(--muted); }

.gauge-sub {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.gauge-bar {
  position: relative;
  height: 6px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}




.gauge-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: var(--r-sm);
  background: var(--accent);
  




  transition: width 0.9s linear, background-color 0.3s var(--ease);
}



.gauge-mark {
  position: absolute;
  top: -1px; bottom: -1px;
  left: var(--thr, 100%);
  width: 2px;
  border-radius: var(--r-sm);
  background: var(--ink);
  opacity: 0.28;
}

.gauge.over .gauge-fill { background: var(--danger); }
.gauge.over .gauge-val { color: var(--danger); }
.gauge.over { border-color: var(--danger); background: var(--danger-bg); }


.gauge.over .gauge-mark { opacity: 0.5; }



.meter-live, .meter-wait, .meter-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.meter-foot { margin: 0; }
.meter-wait { font-family: var(--sans); font-size: 14px; }






.card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.card-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  border-radius: var(--r-sm);
  background: var(--accent);
}

.card-head h2 { padding-bottom: 0; border-bottom: none; }
.card-head h2::after { content: none; }

.card-head-main { display: flex; flex-direction: column; gap: 4px; min-width: min(100%, 260px); }
.card-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }


.btn-ico {
  width: 13px; height: 13px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}



.btn-ico.lone { margin-right: 0; }






.card-act > .btn-ico { width: 17px; height: 17px; margin-right: 0; vertical-align: 0; }


.card-act-menu .btn-ico { width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; }



.menu-title .btn-ico, .mg-label .btn-ico { width: 15px; height: 15px; }






.pill .btn-ico { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; }

.fold-head h2 .btn-ico, .card > h2 .btn-ico, h2.card-title .btn-ico,
.card-title h3 .btn-ico, .page-head-main h1 .btn-ico {
  width: 1em; height: 1em;
  margin-right: 8px;
  vertical-align: -0.13em;
  stroke-width: 1.8;
}



.svc-meta {
  display: flex;
  align-items: center;
  

  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.svc-src,
.svc-ver { color: var(--ink); }
.svc-ver { font-weight: 600; }


.svc-parts { min-width: 0; max-width: 100%; }
.svc-parts > summary {
  cursor: pointer;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.svc-parts > summary:hover { color: var(--accent); }
.svc-parts > span { overflow-wrap: anywhere; }

.svc-follow { margin-top: 12px; }
.svc-follow > button { flex: 0 0 auto; }

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}




.svc-log {
  max-height: 420px;
  overflow: auto;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--accent-tint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.svc-line {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 8px;
  padding: 1px 0;
}

.svc-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-lvl { color: var(--muted); }
.svc-lvl.warn { color: var(--warn); }
.svc-lvl.bad { color: var(--danger); }
.svc-name { color: var(--accent); white-space: nowrap; }
.svc-text { overflow-wrap: anywhere; white-space: pre-wrap; }




.svc-wait {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 6, 20, 0.72);
}

.svc-wait-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
}

.svc-wait-title { font-size: 16px; font-weight: 640; }
.svc-wait-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (max-width: 620px) {
  









  .modal-back {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    align-items: stretch;
  }

  .modal {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  






  .modal.modal-wide,
  .modal.modal-card {
    max-width: none;
    max-height: none;
  }

  




  .card-top,
  .modal-foot {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  




  .card-acts { gap: 4px; }
  .card-act { padding: 4px 8px; font-size: 14px; }

  





  .modal-x, .card-x { width: 40px; height: 40px; }

  .drawer .modal { width: 100%; border-radius: 0; }
}

@media (max-width: 900px) {
  








  .app { padding-left: 0; }

  nav.side {
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    margin: 0;
    z-index: 30;
    border-radius: 0 var(--r) var(--r) 0;
    

    transform: translateX(-101%);
    transition: transform 0.3s var(--ease);
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    


    padding-left: max(10px, env(safe-area-inset-left));
  }

  :root[data-nav="on"] nav.side { transform: none; }

  

  :root[data-nav="on"] body { overflow: hidden; }

  .nav-veil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(8, 5, 18, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s var(--ease);
  }

  :root[data-nav="on"] .nav-veil { opacity: 1; pointer-events: auto; }

  



  .mbar {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(56px + env(safe-area-inset-top));
    z-index: 12;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  














  .mbar { z-index: 6; }
  .topline { z-index: 34; }
  .modal-back { z-index: 31; }
  .toasts { z-index: 36; }
  .svc-wait { z-index: 37; }

  










  .modal-back.drawer {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  





  .toasts {
    top: calc(env(safe-area-inset-top) + 62px);
    right: max(16px, env(safe-area-inset-right));
    max-width: min(420px, calc(100vw - env(safe-area-inset-left)
                               - env(safe-area-inset-right) - 32px));
  }

  



  .mass-bar {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 11;
    


    animation: slideUp 0.26s var(--ease);
  }

  

  .nav-toggle { display: inline-flex; }

  .nav-show {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: max(12px, env(safe-area-inset-left));
    z-index: 7;
    background: var(--surface);
  }

  

  .project-mini {
    top: calc(env(safe-area-inset-top) + 10px);
    left: calc(max(12px, env(safe-area-inset-left)) + 52px);
    max-width: calc(100vw - 130px);
    z-index: 7;
  }

  








  .wrap {
    






    padding: calc(env(safe-area-inset-top) + 62px)
             max(var(--nav-gap), env(safe-area-inset-right))
             calc(56px + env(safe-area-inset-bottom))
             max(var(--nav-gap), env(safe-area-inset-left));
    gap: 14px;
  }

  section.card { padding: 16px 14px; gap: 12px; }
  .page-head { gap: 10px 16px; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; padding-bottom: 8px; }
  h2::after { width: 42px; }
  .lede { font-size: 14px; }

  






  







  .log-row { grid-template-columns: 1fr; row-gap: 7px; }

  



  .log-row > button { justify-self: start; }

  




  .svc-line {
    grid-template-columns: auto auto 1fr;
    column-gap: 6px;
    row-gap: 0;
    padding: 3px 0;
  }
  

  .svc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .svc-text { grid-column: 1 / -1; }
  

  .svc-log { max-height: 300px; }
  

  .taskbar {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}




.wiz { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }




.server-term { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.server-term .field-hint { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }

.wiz-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(46vh, 380px);
  overflow-y: auto;
}

.wiz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wiz-row:hover { background: var(--accent-tint); }









input.port-in { width: 92px; flex: none; text-align: center; font-family: var(--mono); }
.wiz-row-main { flex: 1 1 auto; font-weight: 560; min-width: 0; }








.hap-down {
  font-size: 0.78rem;
  color: var(--danger);
  white-space: nowrap;
}

.wiz-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.wiz-fact-k { font-size: 12px; color: var(--muted); }


.wiz-fact-v { font-size: 14px; font-weight: 560; overflow-wrap: anywhere; }




.wiz-fact-edit {
  display: flex;
  align-items: baseline;
  gap: 6px;
}



.wiz-fact-edit .icon-btn {
  flex: none;
  opacity: 0.55;
  padding: 0 2px;
  font-size: 0.85rem;
}

.wiz-fact-edit .icon-btn:hover,
.wiz-fact-edit .icon-btn:focus-visible { opacity: 1; }



.wiz-fact-form { display: grid; gap: 6px; }
.wiz-fact-form input { width: 100%; }

.wiz-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wiz-check { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.wiz-check input { margin: 0; }







.sni-check { max-width: 100%; min-width: 0; }
.sni-name { min-width: 0; overflow-wrap: anywhere; }
.sni-check .pill { flex: none; }




.sni-hint { margin-top: 12px; }









.field-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }



.field-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.field-col textarea { width: 100%; resize: vertical; }



.loc-pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(46vh, 380px);
  overflow-y: auto;
  margin: 10px 0 6px;
}

.loc-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.loc-pick-row:hover { background: var(--accent-tint); }
.loc-pick-row.is-off { opacity: 0.5; cursor: default; }
.loc-pick-row.is-off:hover { background: none; }
.loc-pick-flag { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; }



.loc-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }





.entry-name .loc-title { max-width: 100%; }
.entry-name .loc-title > span:not(.flag) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-pick-name { flex: 1 1 auto; }











#page.page-enter { animation: pageIn 0.32s var(--ease); }









.route-bar {
  position: fixed;
  top: 0;
  left: 0;
  


  height: 3px;
  width: 0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  background: var(--accent);
}

.route-bar-on {
  width: 70%;
  opacity: 1;
  transition: width 2.2s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.12s var(--ease);
}

.route-bar-done {
  width: 100%;
  opacity: 0;
  transition: width 0.18s var(--ease), opacity 0.22s var(--ease) 0.1s;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}



.modal-back { animation: backdropIn 0.18s var(--ease); }

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



.modal-back > .modal { animation: cardIn 0.26s var(--ease); }
.drawer > .modal { animation: slideSide 0.28s var(--ease); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}



button:not(:disabled):active { transform: translateY(1px); }

button { transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                     color 0.18s var(--ease), transform 0.12s var(--ease); }




.skel { display: flex; flex-direction: column; gap: 10px; }




.skel-row {
  height: 42px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  animation: shimmer 1.5s ease-in-out infinite;
}


.skel-row:nth-child(2) { opacity: 0.75; }
.skel-row:nth-child(3) { opacity: 0.5; }
.skel-row:nth-child(4) { opacity: 0.3; }




@keyframes shimmer {
  0%, 100% { background-color: var(--surface-2); }
  50% { background-color: var(--accent-tint); }
}




.code-block {
  margin: 0;
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink-soft);
}










.code {
  --code-fs: 12.5px;
  --code-lh: 20px;
  --code-pad: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}






.code-body {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 340px;
}

.code-gut {
  flex: none;
  overflow: hidden;
  padding: var(--code-pad) 8px var(--code-pad) 12px;
  text-align: right;
  border-right: 1px solid var(--line);
  background: var(--surface);
  user-select: none;
}

.code-num {
  height: var(--code-lh);
  font: var(--code-fs) / var(--code-lh) var(--mono);
  color: var(--muted);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.code-num.on { opacity: 1; color: var(--accent); }

.code-area { position: relative; flex: 1; min-width: 0; }



.code-hl, .code-in {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: var(--code-pad) 14px;
  border: 0;
  font: var(--code-fs) / var(--code-lh) var(--mono);
  letter-spacing: normal;
  tab-size: 2;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.code-hl { overflow: hidden; pointer-events: none; color: var(--ink-soft); }
.code-ln { height: var(--code-lh); }
.code-ln.on { background: var(--accent-tint); }

.code-in {
  overflow: auto;
  resize: none;
  border-radius: 0;
  background: transparent;
  
  color: transparent;
  caret-color: var(--ink);
}

.code-in:focus { outline: none; box-shadow: none; border: 0; }
.code-in::selection { background: var(--accent-tint); color: transparent; }

.t-key { color: var(--t-key); }
.t-str { color: var(--t-str); }
.t-num { color: var(--t-num); }
.t-bool { color: var(--t-bool); }
.t-nul { color: var(--t-nul); }
.t-pun { color: var(--t-pun); }



.code-map-box {
  position: relative;
  flex: none;
  width: 62px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.code-map { display: block; width: 100%; height: 100%; }

.code-map-view {
  position: absolute;
  left: 0; right: 0;
  background: var(--accent-tint);
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  pointer-events: none;
}



.code-full-btn {
  position: absolute;
  top: 6px; right: 6px;
  



  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  font-size: 14px;
  line-height: 1.35;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0.8;
}

.code-full-btn:hover { opacity: 1; }



.code-st {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.code-st-time { flex: none; opacity: 0.75; font-size: 12px; }



.code-st-time::after { content: ' |'; opacity: 0.5; }
.code-st.ok { color: var(--ok); background: var(--ok-bg); }
.code-st.bad { color: var(--danger); background: var(--danger-bg); }
.code-st-text { min-width: 0; }





.code-bar:empty { display: none; }
.code-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}





.code-grp { display: flex; flex-wrap: wrap; gap: 1px; min-width: 0; }
.code-grp > button { border-radius: 0; }
.code-grp > button:first-child { border-radius: var(--r) 0 0 var(--r); }
.code-grp > button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.code-grp > button:only-child { border-radius: var(--r); }





.code[popover] {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
}

.code[popover]:popover-open {
  position: fixed;
  inset: 14px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  padding: 16px 18px 18px;
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.code[popover]:popover-open::backdrop { background: rgba(10, 6, 20, 0.55); }






.code.code-page,
.code.code-full {
  gap: 12px;
  border: 0;
  overflow: visible;
}





.code.code-page {
  height: calc(100vh - 210px);
  min-height: 340px;
  padding: 0;
  background: none;
}

.code.code-page .code-body,
.code.code-full .code-body {
  height: auto;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}

.code.code-page .code-st,
.code.code-full .code-st {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13.5px;
}

.code.code-page .code-st.ok,
.code.code-full .code-st.ok { border-color: var(--ok); }
.code.code-page .code-st.bad,
.code.code-full .code-st.bad { border-color: var(--danger); }

.code.code-page .code-bar,
.code.code-full .code-bar {
  border: 0;
  background: none;
  padding: 0;
}




.code-head { display: none; }



.code.code-full .code-full-btn { display: none; }

.code.code-full .code-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 2px 2px 0;
}

.code-head-txt { flex: 1; min-width: 0; }

.code-head-t {
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-head-s {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  
  .code-map-box { display: none; }
}



.fold-sub.warn { color: var(--warn); font-weight: 560; }




@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skel-row { animation: none !important; background: var(--surface-2); }

  


  .spin { animation: none !important; opacity: 1; }
}






.mini {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.6rem;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.mini-name {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.mini-bar {
  height: 4px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}




.mini-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: var(--r-sm);
  background: var(--accent);
  


  transition: width 0.6s var(--ease);
}



.mini-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}




.mini.over .mini-fill { background: var(--danger); }
.mini.over .mini-val { color: var(--danger); }










.preview-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin: 8px 0 4px;
}



.mini-none {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}






.net {
  display: grid;
  grid-template-columns: 0.8rem 3.2rem auto;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.net-name {
  color: var(--muted);
  font-size: 0.72rem;
}




.net-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}



.net-unit {
  color: var(--muted);
  font-size: 0.68rem;
}






.traf-td { min-width: 170px; }

.traf-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.traf-used {
  font-weight: 600;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.traf-cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.traf-bar {
  height: 4px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
  margin-top: 5px;
}

.traf-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: var(--r-sm);
  background: var(--ok);
  

  transition: width 0.6s var(--ease), background-color 0.3s var(--ease);
}

.traf-fill.warn { background: var(--warn); }
.traf-fill.bad { background: var(--danger); }











@media (min-width: 621px) {
  table.rows-move.host-table { border-spacing: 0 8px; }
  table.rows-move.host-table tbody td { padding-top: 9px; padding-bottom: 9px; }
}

.host-table td.host-td { width: 100%; min-width: 0; }
.host-name { flex-wrap: wrap; row-gap: 2px; }
.host-remark { font-weight: 650; }

.host-addr {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 4px;
}

.host-bind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}



.host-bind .pill { padding: 0 6px; font-size: 10px; line-height: 16px; letter-spacing: 0.02em; }
.host-proto { color: var(--ink-soft); border-color: var(--line); }


.host-tag { color: var(--muted); border-color: var(--line); }




.host-bind .pill.host-node {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 160px;
  color: var(--muted);
  border-color: var(--line);
  text-transform: none;
  letter-spacing: 0;
}
.host-node .flag { width: 15px; height: 10px; border-radius: 2px; vertical-align: 0; }
.host-node .flag-code { font-size: 7px; padding: 0 2px; }
.host-node-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-bind .pill.host-node.ghost { border-style: dashed; }





.host-prof { color: var(--pc, var(--accent)); }
.pc-0 { --pc: var(--accent); }
.pc-1 { --pc: var(--an-c); }
.pc-2 { --pc: var(--an-g); }
.pc-3 { --pc: var(--an-y); }
.pc-4 { --pc: var(--an-b); }
.pc-5 { --pc: var(--an-m); }
.host-unbound { color: var(--warn); }






.hst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  margin-right: 2px;
  border: 1px solid transparent;
  border-radius: var(--r);
}
.hst-ico, .hind-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hst-on {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--ok) 34%, transparent);
}
.hst-hidden {
  color: var(--an-m);
  background: color-mix(in srgb, var(--an-m) 15%, transparent);
  border-color: color-mix(in srgb, var(--an-m) 38%, transparent);
}
.hst-off { color: var(--muted); background: var(--surface-2); border-color: var(--line); }




.hind { display: inline-flex; align-items: center; gap: 6px; }
.hind-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
}
.hind-i.on {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--ok) 34%, transparent);
}
.hind-i.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: color-mix(in srgb, var(--warn) 38%, transparent);
}


.hind-i[data-ind="tpl"] .hind-ico { fill: currentColor; }








@media (max-width: 620px) {
  table.rows-move.host-table tbody tr > td.users-td[data-label] { order: 1; margin-left: auto; }
  table.rows-move.host-table tbody tr > td.ind-td[data-label] {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    padding-top: 4px;
  }
  table.rows-move.host-table tbody tr > td.ind-td[data-label]::before { display: none; }
  .host-table .hind { flex-wrap: wrap; }
}










.vkt-row { --vkt-row: var(--an-c); }
.vkt-row-mark {
  color: var(--vkt-row);
  background: color-mix(in srgb, var(--vkt-row) 14%, transparent);
  border-color: color-mix(in srgb, var(--vkt-row) 38%, transparent);
}
.vkt-row-kind { color: var(--vkt-row); }
.vkt-row-only {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.vkt-row-only.vkt-row-none { color: var(--warn); }
.host-bind .pill.vkt-row-sq { text-transform: none; letter-spacing: 0; }
.vkt-row-off { color: var(--muted); border-color: var(--line); }

@media (min-width: 621px) {
  table.rows-move tbody tr.vkt-row td {
    background: color-mix(in srgb, var(--vkt-row) 7%, var(--surface-2));
    border-color: color-mix(in srgb, var(--vkt-row) 30%, transparent);
  }
  table.rows-move tbody tr.vkt-row td:first-child { border-left-color: var(--vkt-row); }
  table.rows-move tbody tr.vkt-row:hover td { border-color: var(--vkt-row); }
  table.rows-move tbody tr.vkt-row[data-state="off"] td {
    background: transparent;
    border-color: var(--line);
  }
  table.rows-move tbody tr.vkt-row[data-state="off"] td:first-child { border-left-color: var(--muted); }
}

@media (max-width: 620px) {
  tbody tr.vkt-row {
    border-left-color: var(--vkt-row);
    background: color-mix(in srgb, var(--vkt-row) 7%, var(--surface-2));
  }
  tbody tr.vkt-row[data-state="off"] { border-left-color: var(--muted); background: var(--surface-2); }
  


  .rows-move tbody tr.vkt-row td.vkt-row-td {
    order: 2;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    white-space: normal;
    text-align: left;
    padding: 2px 0 8px;
  }
}



section.card.vkt-relay.vkt-picked {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a.vkt-place { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.vkt-place:hover { color: var(--accent); }
.vkt-where { margin: 0; }





.up-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
}






.entry-wrap { position: relative; display: grid; }
.entry-pick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.entry-wrap.picked .entry {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.parts { display: flex; flex-direction: column; gap: 12px; }




.parts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.parts-head-txt { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.parts-head-acts { display: flex; align-items: center; gap: 8px; }


.kernel-ask { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }



.kernel-said {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow-y: auto;
}


.parts-notes { display: flex; flex-direction: column; gap: 10px; }
.parts-notes:empty { display: none; }
.part-body { display: flex; flex-direction: column; gap: 8px; }
.part-count { margin-left: auto; display: flex; align-items: center; }




.part-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  min-width: 0;
}



.part-rows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.part-tag { flex: 0 0 auto; min-width: 92px; font-size: 0.8rem; }
.part-brief {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-acts { flex: 0 0 auto; display: flex; gap: 4px; }







.part-add {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}





.part-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.part-tools > .part-add { margin-left: auto; }

.probe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }






@media (max-width: 620px) {
  








  .part-row { flex-wrap: wrap; }
  .part-tag { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .part-acts { margin-left: auto; }

  



  .part-tools { justify-content: flex-start; }
  .part-tools > .part-add { margin-left: 0; }
  .part-add { justify-content: flex-start; }
}




.probe-why { margin: 0; }


.probe-src { width: auto; min-width: 120px; max-width: 220px; }


.bulk-plan { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bulk-args { display: flex; flex-direction: column; gap: 10px; }


.bulk-known { display: flex; flex-wrap: wrap; gap: 6px; }
.bulk-row {
  display: flex;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.78rem;
  min-width: 0;
}
.bulk-row.bad { border-color: var(--danger); }



.preset-pick { margin-bottom: 6px; }




.link-in { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 12.5px; }








.ob-form { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 14px; }
.ob-secs, .ob-extra { display: flex; flex-direction: column; gap: 18px; }
.ob-extra { margin-top: 18px; }


.ob-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ob-sec-head {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--surface-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
}







.ob-sec.ob-card {
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid var(--surface-2);
  border-radius: var(--r);
  padding: 12px 14px 14px;
}
.ob-card > .ob-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}
.ob-card > .ob-sec-head .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.ob-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }




.ob-grid > .ob-wide { grid-column: 1 / -1; }




.ob-sw .ob-sw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.ob-sw .field-label { margin: 0; }



.tagpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
.tagpick .chip { cursor: pointer; }


.tagpick .tag-own { width: auto; flex: 0 1 150px; min-width: 110px; padding: 5px 10px;
  font-size: 12.5px; }



.scan-out { display: flex; flex-direction: column; gap: 6px; }
.scan-out:empty { display: none; }
.scan-out .note { margin: 0; }




.find-row { display: flex; gap: 8px; align-items: center; }
.find-row input { flex: 1 1 auto; min-width: 0; }
.find-tbl { font-size: 13px; min-width: 520px; }
.find-tbl th, .find-tbl td { padding: 5px 8px; }


.find-tbl .row-off { opacity: 0.55; }






@media (max-width: 620px) {
  .find-tbl { min-width: 0; }
}






.term-screen, .term-frame {
  height: min(62vh, 620px);
  min-height: 220px;
  min-width: 0;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sunken, rgba(0, 0, 0, 0.25));
  overflow: hidden;
}
.term-frame { padding: 0; display: block; }






.term-wide .modal {
  max-width: min(1280px, 94vw);
  max-height: 92vh;
  



  overscroll-behavior: contain;
}
.term-wide .term-frame {
  height: min(78vh, 900px);
}











@media (max-width: 620px) {
  .term-wide .modal { max-width: none; max-height: none; }

  .term-wide .term-frame {
    height: auto;
    flex: 1 1 auto;
    min-height: 160px;
  }
}



body.term-page {
  margin: 0;
  padding: 8px;
  



  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  

  overscroll-behavior: contain;
}
body.term-page #screen { flex: 1 1 auto; min-height: 0; min-width: 0; }

body.term-page .xterm-viewport { overscroll-behavior: contain; }
.term-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  font-size: 0.76rem;
}
.term-state { color: var(--muted); }




.term-tip { color: var(--muted); opacity: 0.66; order: -1; }
@media (max-width: 620px) {
  

  .term-tip { display: none; }
}








.term-keys {
  display: none;
  flex: none;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.term-keys::-webkit-scrollbar { display: none; }

.term-key {
  flex: none;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: var(--r);
  

  touch-action: manipulation;
}



.term-key-mod.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}







.term-pad {
  display: none;
  flex: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  max-height: 42dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.term-pad-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.term-pad .term-key {
  min-width: 0;
  padding: 0 4px;
}

@media (pointer: coarse), (max-width: 900px) {
  .term-keys { display: flex; }
  .term-pad:not([hidden]) { display: flex; }
}
.bulk-name { flex: 0 0 auto; min-width: 96px; font-weight: 600; }
.bulk-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bulk-err { color: var(--danger); }
.bulk-warn { color: var(--warn); }




























:root {
  --tile-ok: #3f9b45;
  --tile-warn: #e2700c;
  --tile-bad: #dd3a35;
  --tile-idle: #454a58;
  --tile-ink: #ffffff;
}

.reach-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }



.reach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(178px, 100%), 1fr));
  gap: 9px;
  margin: 12px 0;
}





.reach-tile {
  

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 104px;
  padding: 12px 12px 14px;
  border: none;
  border-radius: var(--r);
  text-align: center;
  color: var(--tile-ink);
  background: var(--tile-idle);
}






.reach-where {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
}

.reach-where span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.reach-ms { display: flex; align-items: baseline; justify-content: center; gap: 5px; }

.reach-num {
  font-size: 33px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--tile-ink);
}

.reach-unit { font-size: 14px; color: rgba(255, 255, 255, 0.85); }



.reach-note { font-size: 11.5px; color: rgba(255, 255, 255, 0.82); }







.reach-flag {
  max-width: 100%;
  padding: 1px 8px;
  border: 1px solid var(--danger);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}






.reach-tile.ok { background: var(--tile-ok); }
.reach-tile.warn { background: var(--tile-warn); }
.reach-tile.bad { background: var(--tile-bad); }









.reach-tile.off {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line);
}





.reach-tile.off .reach-num,
.reach-tile.off .reach-where,
.reach-tile.off .reach-unit,
.reach-tile.off .reach-note { color: var(--muted); }






.reach-where { padding-inline: 26px; }

.reach-eye {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: var(--r);
  background: transparent;
  color: currentColor;
  

  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.18s var(--ease), background 0.18s var(--ease);
}

.reach-eye:hover:not(:disabled),
.reach-eye:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.reach-eye:disabled { opacity: 0.25; cursor: default; }
.reach-tile.off .reach-eye { opacity: 0.7; }
.reach-tile.off .reach-eye:hover:not(:disabled) { background: var(--surface); }

.reach-eye-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reach-tile.idle {
  background: var(--tile-idle);
  color: rgba(255, 255, 255, 0.72);
}

.reach-tile.idle .reach-num { color: rgba(255, 255, 255, 0.72); }



@media (max-width: 620px) {
  .reach-grid { grid-template-columns: repeat(auto-fill, minmax(min(138px, 100%), 1fr)); gap: 8px; }
  .reach-tile { min-height: 90px; padding: 10px; }
  .reach-num { font-size: 26px; }
}






.met-sub { font-size: 12.5px; color: var(--muted); margin-top: -4px; }




.met-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }

.met-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.met-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.met-side-name { font-weight: 620; font-size: 13.5px; }
.met-side-sum { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.met-none { font-size: 12.5px; color: var(--muted); }

.met-tag { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.met-tag-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}





@media (max-width: 620px) {
  .met-tag-head { flex-wrap: wrap; }
  .met-tag-name { flex-basis: 100%; }
}




.met-tag-name {
  font-size: 12.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.met-tag-num { display: flex; gap: 10px; flex: none; font-family: var(--mono); font-size: 11.5px; }


.met-down { color: var(--ok); }
.met-up { color: var(--accent); }







.stat-days {
  display: flex;
  align-items: flex-end;
  




  gap: var(--day-gap, 3px);
  height: 96px;
}

.stat-day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }

.stat-day-fill {
  display: block;
  width: 100%;
  height: var(--pct, 0%);
  border-radius: var(--r) var(--r) 0 0;
  background: var(--accent);
}

.stat-top { display: flex; flex-direction: column; gap: 7px; }

.stat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}



.stat-top-name { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-top-sum { flex: none; font-family: var(--mono); font-size: 12.5px; }

.stat-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stat-row-lab { flex: none; width: 74px; font-size: 12px; color: var(--muted); }
.stat-row-sum { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }



.stat-stack {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 14px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--line);
}

.stat-seg { display: block; width: var(--pct, 0%); background: var(--seg, var(--accent)); }



@media (max-width: 620px) {
  .stat-row { flex-wrap: wrap; }
  .stat-row-lab { width: auto; }
  .stat-stack { flex-basis: 100%; }
}




.stat-dot { width: 9px; height: 9px; border-radius: var(--r-sm); background: var(--seg, var(--accent)); flex: none; }
.stat-top-item { display: flex; flex-direction: column; gap: 5px; }
.stat-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.stat-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.stat-leg-sum { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.stat-days-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.stat-days-max { font-family: var(--mono); }








.hf-box { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--accent); }





.field.hf-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.field.hf-row .field-label { margin: 0; }
.hf-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.hf-row .switch { flex: none; }

.hf-json {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  tab-size: 2;
}


















.host-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; container: hostform / inline-size; }
.hf-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hf-form .bind-main .mono { font-size: 14px; }




.hf-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.hf-state-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hf-state-ico .btn-ico { width: 16px; height: 16px; }
.hf-state:has(.switch-in:checked) .hf-state-ico {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--ok) 34%, transparent);
}
.hf-state-label { flex: 1; min-width: 0; font-size: 15px; font-weight: 620; cursor: pointer; }




.switch.switch-lg .switch-track { width: 48px; height: 27px; }
.switch.switch-lg .switch-knob { top: 3px; left: 3px; width: 19px; height: 19px; }
.switch.switch-lg .switch-in:checked + .switch-track .switch-knob { transform: translateX(21px); }





.hf-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hf-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hf-tab .btn-ico { width: 15px; height: 15px; }
.hf-tab.on,
.hf-tab.on:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.hf-tab.bad::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}




.hf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  background: var(--surface);
}
.hf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.hf-card-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r);
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.hf-card-ico .btn-ico { width: 16px; height: 16px; }
.hf-card-title { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 650; }
.hf-card-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; }

.hf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  

  align-items: end;
}
.hf-grid > * { min-width: 0; }
.hf-grid > .hf-wide { grid-column: 1 / -1; }



.hf-addr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px 14px;
  align-items: end;
}



.hf-sep { height: 1px; background: var(--line); margin: 2px 0; }

.hf-form .field { padding: 0; border-bottom: none; gap: 5px; }
.hf-form .field-label { font-size: 13px; line-height: 1.25; }
.hf-form .field-hint { font-size: 12px; line-height: 1.4; }


.hf-form .field-err:empty { display: none; }




.hf-form input[type="text"]:not(.ms-in),
.hf-form input[type="number"],
.hf-form select {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}
.hf-form .field > select,
.hf-form .bind-pick > select,
.hf-form .bulk-opt > select { max-width: none; }





.hf-form .field.hf-sw {
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  transition: border-color 0.18s var(--ease);
}
.hf-form .field.hf-sw:hover { border-color: var(--accent-line); }
.hf-sw-line { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.hf-form .hf-sw-label { flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.hf-sw-line .switch { flex: none; }
.hf-tip { padding-right: 4px; }



button.hf-q {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  color: var(--warn);
  background: var(--warn-bg);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}
button.hf-q .btn-ico { width: 14px; height: 14px; margin: 0; }
button.hf-q[aria-expanded="true"] { border-color: var(--warn); }



@media (max-width: 620px) {
  button.hf-q { position: relative; width: 28px; height: 28px; }
  button.hf-q::after { content: ""; position: absolute; inset: -6px; }
}




.hf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hf-chip-ico {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.2;
}
button.hf-chip[aria-pressed="true"],
button.hf-chip[aria-pressed="true"]:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
button.hf-chip[aria-pressed="true"] .hf-chip-ico { opacity: 1; }






.hf-raw {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
button.hf-raw-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  font-size: 12.5px;
  line-height: 1.2;
  text-align: center;
}
button.hf-raw-btn .btn-ico { width: 17px; height: 17px; margin: 0; }
button.hf-raw-btn.set {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
button.hf-raw-btn.set::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
button.hf-raw-btn.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.hf-raw-errs { display: flex; flex-direction: column; gap: 4px; }
.hf-raw-errs .field-err:empty { display: none; }




.modal.hf-raw-modal { max-width: min(680px, 94vw); }
.hf-raw-title { margin: 0; }
.hf-raw-title .btn-ico { width: 18px; height: 18px; margin-right: 0; }
.hf-raw-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hf-raw-modal .hf-json { min-height: 280px; }
.hf-raw-note { font-size: 12px; color: var(--muted); }
.hf-raw-note.bad { color: var(--danger); }

.hf-form .bind-box { margin: 0; }
.bind-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }


.bind-main:has(.bind-pick) { flex: 1 1 100%; }

.hf-form .mp-row > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}



.hf-form .field.hf-squads { gap: 6px; }
.hf-squad-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px; align-items: start; }
.hf-squad-row.hf-squad-one { grid-template-columns: minmax(0, 1fr); }

@container hostform (max-width: 480px) {
  .hf-grid { grid-template-columns: minmax(0, 1fr); }
  .hf-raw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bind-pick { grid-template-columns: minmax(0, 1fr); }
  .hf-squad-row { grid-template-columns: minmax(0, 1fr); }
  .hf-addr { grid-template-columns: minmax(0, 1fr) 96px; }
}

@media (max-width: 620px) {
  


  .modal.hf-raw-modal { max-width: none; max-height: none; }
  .hf-raw-modal .hf-raw-box { flex: 1 1 auto; }
  .hf-raw-modal .hf-json { flex: 1 1 auto; min-height: 220px; }
  .hf-card-body { padding: 12px; }
}





.tf-card {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.tf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tf-title { font-weight: 620; font-size: 13.5px; }



.tf-sw {
  flex: none;
  width: 42px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.tf-sw[data-on="1"] { background: var(--ok); border-color: var(--ok); }
.tf-sw:disabled { opacity: 0.5; cursor: not-allowed; }







@media (max-width: 620px) {
  .tf-sw::after {
    content: '';
    position: absolute;
    inset: -8px -4px;
  }
}








.tf-knob {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform 0.15s;
}



.tf-sw[data-on="1"] .tf-knob {
  transform: translate(18px, -50%);
  background: var(--on-accent);
}

.tf-body { display: flex; flex-direction: column; gap: 10px; }


.tf-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tf-row .tf-field { flex: 1 1 130px; min-width: 0; }
.tf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tf-lab { font-size: 12px; color: var(--muted); }
.tf-off { font-size: 12.5px; color: var(--muted); }







.modal.tpl-modal {
  width: min(1400px, 94vw);
  max-width: 94vw;
  height: min(92vh, 1000px);
  



  max-height: 92vh;
  overflow: hidden;
}





.modal.tpl-modal .code { flex: 1 1 auto; min-height: 0; }
.modal.tpl-modal .code-body { flex: 1 1 auto; height: auto; min-height: 0; }









@media (max-width: 620px) {
  .modal.tpl-modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
  }
}









.ai-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(58dvh, 620px);
  overflow-y: auto;
  padding: 4px 2px;
}




.ai-msg {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.ai-msg.me {
  align-self: flex-end;
  max-width: 82%;
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
}

.ai-msg.bot { background: var(--surface-2); }

.ai-msg pre {
  margin: 8px 0 0;
  padding: 8px 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg);
  border-radius: var(--r-sm);
}





.ai-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

.ai-tool-ico { width: 15px; height: 15px; flex: 0 0 auto; }
.ai-tool-name { font-weight: 600; }
.ai-tool-state { margin-left: auto; }
.ai-tool-state.bad { color: var(--danger); }
.ai-end { font-size: 12px; text-align: right; }

.ai-ask { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.ai-say { flex: 1 1 auto; min-width: 0; resize: vertical; }
.ai-ask-btns { display: flex; flex-direction: column; gap: 6px; }


.ai-confirm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ai-said-no { color: var(--danger); }

.ai-old { display: flex; flex-direction: column; gap: 2px; }

.ai-old-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
}

.ai-old-row:hover { background: var(--surface-2); }




.ai-old-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
}

@media (max-width: 620px) {
  .ai-ask { flex-direction: column; }
  .ai-ask-btns { flex-direction: row; }
  .ai-ask-btns button { flex: 1 1 auto; }
  .ai-msg.me { max-width: 92%; }
}















button.act-off { opacity: 0.42; cursor: not-allowed; }
button.act-off:hover,
button.act-off:active { transform: none; box-shadow: none; }
button.act-off:not(.primary):not(.danger):hover {
  color: var(--ink);
  background-color: var(--surface-2);
  border-color: var(--line);
}







.ms { position: relative; min-width: 0; }
.ms-field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 5px 34px 5px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: text;
  transition: border-color 0.18s var(--ease);
}
.ms-field:hover, .ms-open .ms-field { border-color: var(--accent-line); }



.ms-field:has(.ms-in:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }


.ms-chips { display: contents; }
.ms-field .ms-in {
  flex: 1 1 80px;
  min-width: 60px;
  width: auto;
  height: 28px;
  padding: 0 4px;
  border: 0;
  background: none;
  border-radius: 0;
}
.ms-field .ms-in:focus-visible { outline: none; }
.ms-chev {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.22s var(--ease);
}
.ms-open .ms-chev { transform: rotate(180deg); color: var(--accent); }

.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 9px 0 3px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.ms-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.ms-chip-note { color: var(--muted); white-space: nowrap; }

.ms-ghost { border-style: dashed; color: var(--muted); }



button.ms-x {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--muted);
}
button.ms-x::after { content: ""; position: absolute; inset: -6px -3px; }
button.ms-x .btn-ico { width: 11px; height: 11px; vertical-align: 0; }
button.ms-x:not(.primary):not(.danger):hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: transparent;
  transform: none;
}

.ms-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.ms-up .ms-drop { top: auto; bottom: calc(100% + 4px); }
.ms-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  cursor: pointer;
}
.ms-opt.ms-act { background: var(--surface-2); }
.ms-opt.on .ms-name { color: var(--accent); }
.ms-opt[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }


.ms-opt .flag:empty { display: inline-flex; }
.ms-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: var(--r-sm);
}
.ms-opt.on .ms-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ms-tick {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.ms-opt.on .ms-tick { opacity: 1; }
.ms-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.ms-sub {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.ms-badge { flex: none; margin-left: auto; }
.ms-none { padding: 10px 8px; font-size: 12.5px; color: var(--muted); }






.hf-tags { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ms-field.tag-field { padding-right: 6px; }
.hf-tags .field-err:empty { display: none; }
.tag-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tag-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pill.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 9px;
  color: var(--ink);
  border-color: var(--line);
}
.tag-x {
  padding: 0 5px;
  min-height: 0;
  line-height: 1.2;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.tag-x:hover { color: var(--danger); }
.tag-box .tag-in { flex: 1 1 140px; min-width: 120px; width: auto; }
.tag-box .field-err { flex-basis: 100%; }
.tag-box .field-err:empty { display: none; }




.mp-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mp-tabs .seg-btn { padding: 6px 8px; font-size: 12.5px; }
.mp-rows { display: flex; flex-direction: column; gap: 6px; }
.mp-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.mp-row input[hidden] { display: block; visibility: hidden; }
@media (max-width: 620px) {
  .mp-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .mp-row > input:nth-of-type(2) { grid-column: 2 / 3; }
  .mp-row input[hidden] { display: none; }
}
.hf-suggest { display: flex; flex-direction: column; }






.one-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.one-title-row .one-title { min-width: 0; overflow-wrap: anywhere; }
.section-tabs { max-width: 360px; margin-bottom: 14px; }
.snip-group { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.snip-folder { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 560; color: var(--muted); }







.bill-rows { display: flex; flex-direction: column; gap: 6px; }
.bill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  min-width: 0;
}
.bill-name { min-width: 0; overflow-wrap: anywhere; }
button.pill.bill-date { font-weight: 400; }
button.pill.bill-date:hover:not(:disabled) { transform: none; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.pay-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-sum { font-family: var(--mono); font-variant-numeric: tabular-nums; }






.srr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.srr-list { display: flex; flex-direction: column; gap: 10px; }
.srr-rule {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
}
.srr-rule.srr-hit { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
.srr-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.srr-head input[type="text"] { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.srr-head > button { flex: none; }
.srr-num {
  flex: none; min-width: 26px; height: 26px; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  font-size: 13px; font-weight: 650;
}
.srr-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.srr-line select { flex: 1 1 220px; width: auto; min-width: 0; }
.srr-kw { font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.srr-conds { display: flex; flex-direction: column; gap: 6px; }
.srr-cond {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.4fr) auto auto;
  gap: 6px; align-items: center;
}
.srr-case { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.srr-more { align-self: flex-start; }
.srr-mods { display: flex; flex-direction: column; min-width: 0; }
.srr-mods .field { padding: 10px 0; }
.srr-warn:empty, .srr-rule .field-err:empty { display: none; }
.srr-warn { color: var(--warn); }



.srr-test { display: flex; flex-direction: column; gap: 8px; }
.srr-result { display: flex; flex-direction: column; gap: 8px; }
.srr-result:empty { display: none; }




.srr-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.srr-view { width: 240px; max-width: 100%; }
.srr-pane { display: flex; flex-direction: column; min-width: 0; }




.srr-pane .code.code-page:not(.code-full) { height: calc(100vh - 320px); min-height: 320px; }
@media (max-width: 620px) {
  
  .srr-pane .code.code-page:not(.code-full) { height: calc(100vh - 400px); }
}
.srr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  padding: 10px 0;
}






.srr-foot.srr-stick {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.srr-msg { flex: 1 1 240px; min-width: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.srr-msg.ok { color: var(--ok); }
.srr-msg.bad { color: var(--danger); }




.sub-tabs { align-self: flex-start; max-width: 100%; }




.sub-pane { container: subpane / inline-size; min-width: 0; }
.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--page-gap);
  align-items: start;
}
.sub-grid > * { min-width: 0; }
@container subpane (min-width: 760px) {
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-grid > :only-child { grid-column: 1 / -1; }
}



.sub-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  padding-top: 4px;
}
.sub-card-foot .field-err { flex: 1 1 200px; min-width: 0; }


.sub-grid .field.hf-row { min-height: 40px; }

.sub-moved { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 620px) {
  
  .srr-head { flex-wrap: wrap; }
  .srr-head input[type="text"] { flex-basis: calc(100% - 34px); }
  .srr-cond { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .srr-cond input[aria-label="Значение"] { grid-column: 1 / -1; }
  .srr-cond > button { justify-self: end; }
}


.tpl-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 620px) { .tpl-meta { grid-template-columns: minmax(0, 1fr); } }
.tpl-foot { justify-content: space-between; }



.subv-host { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.subv-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.subv-addr { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.subv-fmts { display: flex; flex-wrap: wrap; gap: 4px; }
.pill.subv-off { color: var(--muted); background: var(--surface-2); text-decoration: line-through; }
.subv-key { display: flex; align-items: center; gap: 8px; min-width: 0; }
.subv-key .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.subv-headers { white-space: pre-wrap; }











.tone-violet { --tone: var(--an-m); }

.ubar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
}
.ubar-group { display: flex; gap: 5px; }


.ubar-sep { flex: none; width: 1px; height: 22px; background: var(--line); }





.ubar button.ubar-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 30%, transparent);
}
.ubar button.ubar-btn:not(.primary):not(.danger):hover:not(:disabled) {
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 24%, transparent);
  border-color: color-mix(in srgb, var(--tone, var(--accent)) 50%, transparent);
}
.ubar-btn .btn-ico { width: 19px; height: 19px; margin: 0; vertical-align: 0; stroke-width: 1.8; }



@media (max-width: 620px) {
  .ubar button.ubar-btn { width: 40px; height: 40px; }
}




.modal.modal-qr { max-width: 360px; align-items: center; text-align: center; }

.modal-qr > .card-top { align-self: stretch; align-items: center; }
.qr-title { margin: 0; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.qr-box { width: min(280px, 100%); }



.modal.modal-qr.modal-qr-big { max-width: 540px; }
.modal-qr-big .qr-box { width: min(460px, 100%); }
.qr-img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-sm); }
.qr-cap { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }





.ukeys {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.ukeys-head { display: flex; align-items: center; gap: 8px; font-weight: 620; color: var(--tone, var(--ink)); }
.ukeys-ico {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
}
.ukeys-ico .btn-ico { width: 15px; height: 15px; margin: 0; vertical-align: 0; }
.ukeys-name { font-size: 14px; }
.ukeys-n {
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 7px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
}
.ukey { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ukey-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 560; overflow-wrap: anywhere; }
.ukey-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ukey-line input { flex: 1 1 auto; width: auto; min-width: 0; font-size: 12.5px; }



.ud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 14px;
  align-items: start;
}
.ud-list { display: flex; flex-direction: column; min-width: 0; }
.ud-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.ud-row:last-child { border-bottom: none; }
.ud-key { font-size: 12.5px; color: var(--muted); }
.ud-val { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ud-val.mono { font-size: 12.5px; }



@media (max-width: 620px) {
  .ud-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .ud-key { grid-column: 1 / -1; }
}




.uuse-bar { align-items: stretch; }
.uuse-sum { color: var(--ink-soft); font-variant-numeric: tabular-nums; }



.ut-row { align-items: flex-start; }
.ut-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ut-node { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
.ut-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
@media (max-width: 620px) {
  .ut-row { flex-direction: column; }
  .ut-when { align-items: flex-start; text-align: left; }
}



.usess-bar { justify-content: flex-end; }
.usess-sum { margin-right: auto; font-weight: 600; }



.sect-head.usess-head { flex-wrap: wrap; row-gap: 8px; }


.geo-img { max-width: 100%; height: auto; display: block; margin-bottom: 8px; }



.sp-tile-sub { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.sp-tile-who { overflow-wrap: anywhere; }
.sp-enabled { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }


.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.sp-back { font-size: 13px; color: var(--muted); text-decoration: none; flex-basis: 100%; }
.sp-back:hover { color: var(--accent); }
.sp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.sp-name { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.sp-dirty { font-size: 12.5px; font-weight: 600; color: var(--warn); }
.sp-dirty[hidden] { display: none; }
.sp-actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  display: flex; flex-direction: column; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(10, 6, 20, 0.18);
}
.sp-menu-item { text-align: left; background: none; border-color: transparent; }
.sp-menu-item.danger { color: var(--danger); background: none; }
.sp-menu-item.danger:hover:not(:disabled) { color: var(--on-accent); background: var(--danger); }
.sp-banner .field-row { margin-top: 8px; }

.sp-layout { display: flex; flex-direction: column; gap: var(--page-gap); min-width: 0; }
.sp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1181px) {
  .sp-layout.with-pv {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: start;
  }
  

  .sp-pv { position: sticky; top: 12px; height: calc(100vh - 24px); overflow: auto; }
  .sp-pv > .sp-frame-stage { flex: 1 1 0; height: auto; min-height: 300px; }
}
.sp-tabs { align-self: flex-start; max-width: 100%; }
.sp-tab { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sp-tab > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.sp-issue-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sp-issue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 13px; }
.sp-issue.bad .sp-issue-where { color: var(--danger); }
.sp-issue.warn .sp-issue-where { color: var(--warn); }
.sp-issue-where { font-weight: 600; }
.sp-issue button { padding: 1px 9px; font-size: 12px; }



.sp-warns, .sp-subnote { display: flex; flex-direction: column; gap: 6px; }
.sp-warn-toggle, .sp-subnote-toggle {
  align-self: flex-start; max-width: 100%; text-align: left; padding: 6px 12px;
  font-size: 12.5px; font-weight: 500; color: var(--warn); background: var(--warn-bg);
  border-color: transparent;
}
.sp-warns > .sp-issue-list, .sp-subnote > .sp-subnote-more {
  padding: 8px 12px; border-radius: var(--r); background: var(--warn-bg); margin: 0;
}
.sp-subnote-more p { margin: 0 0 8px; }



body.sp-editor .toasts {
  top: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
}
.sp-err:empty, .sp-err[hidden] { display: none; }
.field-err.sp-warn { color: var(--warn); }
.sp-warn-line { color: var(--warn); }
.sp-warn-line[hidden] { display: none; }


.sp-locs { display: flex; flex-direction: column; gap: 6px; }
.sp-loc { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 8px; }
.sp-loc-code { padding-top: 9px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; }
.sp-loc-main .sp-loc-code { color: var(--accent); font-weight: 700; }
.sp-loc textarea { font-family: var(--sans); font-size: 14px; min-height: 58px; }
.sp-loc input, .sp-loc textarea { width: 100%; min-width: 0; }


.sp-brand-logo { display: flex; align-items: center; min-height: 48px; }
.sp-brand-img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r); background: var(--surface-2); }
.sp-url-pic { overflow-wrap: anywhere; }
.sp-inline-sw, .sp-sw-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sp-sw-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-sw-row:last-child { border-bottom: none; }
.sp-sw-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-sw-txt small { font-size: 12.5px; color: var(--muted); }
.sp-tpl { display: flex; flex-direction: column; gap: 6px; }
.sp-vars .chip { font-size: 11px; padding: 3px 9px; }
.sp-seg { align-self: flex-start; }
.sp-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; }
.sp-preset.on { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.sp-preset-sw { display: inline-flex; }
.sp-preset-sw i {
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line);
  margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface);
}
.sp-preset-sw i:first-child { margin-left: 0; }
.sp-colors {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) minmax(0, 150px);
  gap: 8px 12px; align-items: center;
}
.sp-colors-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.sp-colors-l { display: flex; flex-direction: column; min-width: 0; }
.sp-colors-l small { font-size: 12px; color: var(--muted); }
.sp-color { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.sp-color input[type="color"] {
  flex: none; width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); cursor: pointer;
}
.sp-hex { flex: 1 1 70px; min-width: 0; width: auto; font-size: 12.5px; }
input.bad { border-color: var(--danger); }
.sp-contrast:empty { display: none; }
.sp-bg { display: flex; align-items: center; min-height: 48px; }
.sp-bg-img { max-width: 100%; max-height: 140px; border-radius: var(--r); }


.sp-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-plat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 13.5px; }
.sp-plat small { font-size: 11px; color: var(--muted); }
.sp-plat.on { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.sp-plat.bad { border-color: var(--danger); }
.sp-plat.bad::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }


.sp-mask {
  display: inline-block; flex: none; background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.sp-plat-ico { width: 18px; height: 18px; }
.sp-plat-add { border-style: dashed; }
.sp-plat-set {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.sp-plat-set > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.sp-svg-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sp-svg-pick select { min-width: 0; width: auto; flex: 1 1 160px; }
.sp-svg-prev { width: 22px; height: 22px; }
.sp-svg-prev[hidden] { display: none; }
.sp-app-box { display: flex; flex-direction: column; gap: 10px; }
.sp-app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sp-app-head h3 { margin: 0; }
.sp-app-list { display: flex; flex-direction: column; gap: 6px; }
.sp-app {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.drag-zone > .sp-app { transition: transform 0.18s var(--ease); }
.drag-zone > .sp-app.drag-live { z-index: 3; transition: none; cursor: grabbing; box-shadow: 0 8px 24px rgba(10, 6, 20, 0.18); }
.sp-app.bad { border-color: var(--danger); }
.sp-app.parked { opacity: 0.62; background: var(--surface-2); }
.sp-grip-gap { width: 29px; flex: none; }
.sp-logo {
  flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: contain;
  background: var(--surface-2);
}
.sp-logo-letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--on-accent); background: var(--accent);
}
.sp-logo-big { width: 64px; height: 64px; border-radius: 14px; font-size: 26px; }



.sp-logo.tone-light { background: #2a2733; }
.sp-logo.tone-dark { background: #eceaf3; }
.sp-app-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sp-app-txt > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-app-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.sp-app-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.sp-app-acts button.small { padding: 5px 9px; }
.sp-star { padding: 5px 9px; color: var(--muted); }
.sp-star.on { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.sp-app-sw { display: inline-flex; padding: 0 4px; }
.sp-parked { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sp-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }


.sp-add { display: flex; flex-direction: column; gap: 10px; }
.sp-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sp-cat-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; text-align: left;
  background: var(--surface); font-weight: 400;
}
.sp-cat-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-cat-txt small { font-size: 12px; color: var(--muted); }
.sp-cat-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-cat-plats .pill { font-size: 10.5px; }


.sp-app-ed { display: flex; flex-direction: column; gap: 4px; }
.sp-ed-top { display: flex; align-items: flex-start; gap: 14px; }
.sp-ed-logo { padding-top: 16px; }
.sp-ed-names { flex: 1; min-width: 0; }
.sp-ed-steps-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.sp-ed-steps-h h4 { margin: 0; }
.sp-ed-actions {
  position: sticky; bottom: -22px; margin: 0 -24px -22px; padding: 12px 24px 22px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.sp-simple, .sp-blocks { display: flex; flex-direction: column; gap: 10px; }
.sp-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.sp-step-n {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--accent); background: var(--accent-tint);
  margin-top: 12px;
}
.sp-step-b { display: flex; flex-direction: column; min-width: 0; }
.sp-step-b > .field-label { padding-top: 12px; }
.sp-dl { display: flex; flex-direction: column; gap: 8px; }
.sp-dl-row {
  display: flex; flex-direction: column; gap: 4px; padding: 4px 12px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.sp-dl-row > button { align-self: flex-end; }
.sp-block {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r);
}
.sp-block-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-block-move { display: inline-flex; gap: 4px; margin-left: auto; }
.sp-btn-ed {
  display: flex; flex-direction: column; gap: 6px; padding: 8px 10px;
  border-left: 3px solid var(--accent-line); background: var(--surface-2); border-radius: var(--r-sm);
}
.sp-btn-ed .field { padding: 6px 0; }
.sp-color-pick { display: inline-flex; align-items: center; gap: 6px; }
.sp-color-pick select { width: auto; }
.sp-color-pick .sp-hex { width: 96px; flex: none; }
.sp-color-pick .sp-hex[hidden] { display: none; }
.sp-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid var(--line); }


.sp-faq { display: flex; flex-direction: column; gap: 10px; }
.sp-faq-item { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.sp-faq-h { display: flex; align-items: center; gap: 6px; padding-top: 6px; }
.sp-faq-h b { margin-right: auto; }
.sp-text-groups { display: flex; flex-direction: column; gap: 10px; }
.sp-text-row { padding: 8px 0 4px; border-bottom: 1px solid var(--line); }
.sp-text-row:last-child { border-bottom: none; }
.sp-text-row .field { padding: 6px 0; border-bottom: none; }
.sp-text-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sp-text-h > button { margin-left: auto; }
.sp-text-key { font-size: 11.5px; color: var(--muted); }
.sp-lang-list { display: flex; flex-direction: column; gap: 6px; }
.sp-lang-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
}
.sp-lang-code { font-weight: 700; text-transform: uppercase; }
.sp-lang-name { color: var(--muted); font-size: 13px; }
.sp-lang-btns { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }


.sp-json { display: flex; flex-direction: column; gap: 10px; }




.sp-pv { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0; }



.sp-pv-head {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.sp-pv-head h2 { margin: 0; padding-bottom: 0; border-bottom: none; }
.sp-pv-head h2::after { content: none; }
.sp-pv-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 54px; height: 2px; border-radius: var(--r-sm); background: var(--accent);
}





.sp-pv-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-pv-ctl > .seg { flex: 1 0 auto; }


.sp-pv-sel {
  flex: 100 1 380px; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px;
}
.sp-pv-sel select { width: 100%; min-width: 0; }
.sp-pv-seg { flex: none; }
.sp-pv-seg .seg-btn { padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
.sp-pv-who { align-items: stretch; }
.sp-pv-who input { flex: 1 1 160px; min-width: 0; }
.sp-pv-who button { flex: none; }



@media (min-width: 621px) {
  .sp-pv-sel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
  .sp-pv-sel select, .sp-pv-who input { font-size: 13px; padding: 8px 10px; }
}


.sp-frame-stage {
  display: flex; justify-content: center; align-items: flex-start;
  width: 100%; min-width: 0; overflow: hidden;
  height: clamp(420px, calc(100vh - 140px), 860px);
}
@supports (height: 100svh) {
  .sp-frame-stage { height: clamp(420px, calc(100svh - 140px), 860px); }
}
.sp-frame-shell {
  position: relative; overflow: hidden; flex: none; box-sizing: content-box;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.sp-frame-shell.phone { border: 6px solid var(--ink); border-radius: 28px; }

.sp-frame { position: absolute; top: 0; left: 0; display: block; border: 0; z-index: 0; }
.sp-frame.on { z-index: 1; }
.sp-pv-msg:empty { display: none; }

@media (max-width: 620px) {
  .sp-app { flex-wrap: wrap; }
  .sp-app-txt { flex-basis: calc(100% - 90px); }
  .sp-app-acts { width: 100%; justify-content: flex-end; }
  .sp-colors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-colors > .sp-colors-l { grid-column: 1 / -1; }
  .sp-colors > span:first-child { display: none; }
  .sp-ed-top { flex-direction: column; gap: 0; }
  .sp-ed-logo { padding-top: 6px; }
  .sp-ed-actions { margin: 0 -16px -16px; padding: 12px 16px 16px; }
  .sp-step { grid-template-columns: minmax(0, 1fr); }
  .sp-step-n { margin-top: 6px; }
  .sp-menu { right: auto; left: 0; }
}




















:root {
  --viz-1: #2a78d6;
  --viz-2: #eb6834;
  --viz-3: #1baf7a;
  --viz-4: #eda100;
  --viz-5: #e87ba4;
  --viz-6: #008300;
  --viz-7: #6250d6;
  --viz-8: #e34948;
  --viz-other: #7d7891;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --viz-1: #3987e5;
    --viz-2: #d95926;
    --viz-3: #199e70;
    --viz-4: #c98500;
    --viz-5: #d55181;
    --viz-6: #21a021;
    --viz-7: #9085e9;
    --viz-8: #e66767;
    --viz-other: #857f97;
  }
}

:root[data-theme="dark"], :root[data-theme="graphite"],
:root[data-theme="ocean"], :root[data-theme="black"] {
  --viz-1: #3987e5;
  --viz-2: #d95926;
  --viz-3: #199e70;
  --viz-4: #c98500;
  --viz-5: #d55181;
  --viz-6: #21a021;
  --viz-7: #9085e9;
  --viz-8: #e66767;
  --viz-other: #857f97;
}



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





.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}




.kpi {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.kpi-ico {
  flex: none;
  align-self: center;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.kpi-ico svg { width: 24px; height: 24px; display: block; }
.kpi-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; }
.kpi-label { font-size: 13px; line-height: 1.35; color: var(--muted); }
.kpi-val { font-size: 26px; font-weight: 640; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }




section.card:has(> .plats) { container-type: inline-size; }
.plats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 540px) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 800px) { .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1500px) { .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


.plat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.plat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.plat-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 620; font-size: 14.5px; }
.plat-name > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-num { flex: none; display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.plat-num strong { font-size: 15px; font-weight: 640; }
.plat-share { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plat-dot, .hbar-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}
.plat .bar-fill { background: var(--c, var(--accent)); }
.plat-apps { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.plat-app { min-width: 0; overflow-wrap: anywhere; }
.plat-app-n { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }





.hbars { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hbars-long { max-height: 352px; overflow-y: auto; padding-right: 4px; }
.hbar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hbar-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  overflow: hidden;
}
.hbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
  border-right: 3px solid var(--c, var(--accent));
  border-radius: var(--r-sm);
}
.hbar-lab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 10px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 560;
}
.hbar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-num {
  flex: none;
  min-width: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}
.hbar-share { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }



.hc-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hc { position: relative; min-width: 0; }
.hc-plot { width: 100%; min-width: 0; }
.hc-svg { display: block; touch-action: pan-y; }
.hc-svg:focus { outline: none; }
.hc-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.hc-grid line { stroke: var(--line); stroke-width: 1; }
.hc-day { stroke: var(--line); stroke-width: 1; }
.hc-svg text { font-family: var(--sans); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.hc-svg .hc-daylab { fill: var(--ink-soft); font-weight: 600; }
.hc-col { fill: transparent; }
.hc-col.on { fill: var(--accent-tint); }
.hc-bar { fill: var(--accent); }
.hc-bar.on { fill: var(--accent-2); }


.hc-tip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(var(--tx, 0), var(--ty, 0));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.hc-tip[hidden] { display: none; }
.hc-tip-val { font-size: 14px; font-variant-numeric: tabular-nums; }
.hc-tip-when { font-size: 12px; color: var(--muted); }
.hc-table > summary {
  cursor: pointer;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hc-table > summary:hover { color: var(--accent); }
.hc-table[open] > summary { margin-bottom: 8px; }
table.hc-tab { min-width: 0; max-width: 420px; font-size: 13px; }
table.hc-tab td.hc-tab-n { text-align: right; font-variant-numeric: tabular-nums; }




.hc-seg { fill: var(--c, var(--accent)); stroke: var(--surface); stroke-width: 0.6; }
.hc-tip-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.hc-tip-name { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.hc-tip-n { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }




th .th-sort {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  border-radius: var(--r-sm);
}
th .th-sort:hover { color: var(--accent); }
th .th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
th .th-sort .th-sort-ico { width: 12px; height: 12px; margin: 0; vertical-align: 0; opacity: 0.35; }
th[aria-sort="ascending"] .th-sort-ico, th[aria-sort="descending"] .th-sort-ico { opacity: 1; color: var(--accent); }




.pager-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-size select { width: auto; padding: 5px 10px; }


@media (min-width: 621px) { .pager-size select { font-size: 12.5px; } }
.pager-pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager-pages button { min-width: 32px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.pager-pages button[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
.pager-gap { padding: 0 2px; color: var(--muted); }



.tbl-sort { display: none; }
@media (max-width: 620px) {
  .tbl-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
  .tbl-sort select { flex: 1 1 auto; width: auto; min-width: 0; padding: 7px 10px; }
}




.row-acts { display: inline-flex; gap: 6px; }
.row-act {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 0;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
}
a.row-act:hover, button.row-act:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
.row-act .btn-ico { margin: 0; vertical-align: 0; }


.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-ava {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-tint);
}
.who-ava svg { width: 17px; height: 17px; display: block; }
.who-txt { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 600; overflow-wrap: anywhere; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }



.ua-cell { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when-long { white-space: nowrap; font-variant-numeric: tabular-nums; }




.card.is-busy > :not(h2) { opacity: 0.55; transition: opacity 0.18s var(--ease); }

@media (max-width: 620px) {
  


  .row-act { width: 40px; height: 40px; min-height: 40px; }
  .kpi { padding: 13px 14px; }
  .kpi-val { font-size: 22px; }
  .ua-cell { max-width: 60vw; }
  .hbar-num { min-width: 52px; }
}










.vkt-head-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.vkt-head-sub.warn { color: var(--warn); }





.vkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 14px;
}

section.card.vkt-relay {
  gap: 12px;
  min-width: 0;
  padding: 18px 20px;
  border-top: 2px solid var(--tone, var(--line));
}

.vkt-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }

.vkt-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent);
}

.vkt-ico .btn-ico { width: 20px; height: 20px; margin: 0; vertical-align: 0; stroke-width: 1.8; }

.vkt-id { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.vkt-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vkt-name > span:not(.flag) { min-width: 0; }
.vkt-addr { font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

.vkt-pills {
  flex: none;
  max-width: 46%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}




.vkt-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.vkt-ver {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  max-width: 100%;
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.vkt-ver.off { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.vkt-vk { color: var(--muted); }
.vkt-vv { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.vkt-vx { color: var(--danger); }



.vkt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.vkt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.vkt-sk { font-size: 12px; color: var(--muted); }
.vkt-sv { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.vkt-ss { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.vkt-stat.bad .vkt-ss { color: var(--danger); }


.vkt-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.vkt-mi { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.vkt-mi .btn-ico { flex: none; margin: 0; vertical-align: 0; }
.vkt-mi.warn { color: var(--warn); }
.vkt-line { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

.vkt-line.warn, .vkt-bwhy { color: var(--warn); }




.vkt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.vkt-acts button { font-size: 12px; padding: 5px 10px; }
.vkt-acts .vkt-del { margin-left: auto; }


.vkt-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.vkt-cols > * { min-width: 0; }
.vkt-h2 { display: flex; align-items: center; gap: 10px; }

.vkt-n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: var(--r);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.vkt-rooms { width: 100%; min-height: 132px; }
.vkt-brokers { display: flex; flex-direction: column; }
.vkt-brow { align-items: flex-start; padding-left: 0; padding-right: 0; }
.vkt-bmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vkt-bwhere { font-family: var(--mono); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }




.vkt-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 0 12px;
  border-bottom: 1px solid var(--line);
}

.vkt-access .field { border-bottom: none; }



.vkt-devs { display: flex; flex-direction: column; }
.vkt-dev { border-bottom: 1px solid var(--line); }
.vkt-dev:last-child { border-bottom: none; }
.vkt-dev > .vkt-dev-row { border-bottom: none; align-items: flex-start; }
.vkt-dev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.vkt-dev-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.vkt-dev-acts { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vkt-link { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; min-width: 0; }

@media (max-width: 620px) {
  section.card.vkt-relay { padding: 16px; }
  .vkt-pills { max-width: 50%; }
  

  .vkt-stats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vkt-stat {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 10px;
    padding: 8px 12px;
  }
  .vkt-sv { font-size: 14px; }
  .vkt-ss { flex-basis: 100%; }
  .vkt-acts button { flex: 1 1 calc(50% - 3px); padding: 5px 8px; }
  .vkt-acts .vkt-del { margin-left: 0; }
  .vkt-access { grid-template-columns: minmax(0, 1fr); }
  .vkt-dev > .vkt-dev-row { flex-direction: column; align-items: stretch; }
  .vkt-dev-acts { justify-content: flex-start; }
  .vkt-dev-acts button { flex: 1 1 calc(50% - 3px); }
}















.nd-views { flex: none; }
.nd-views .seg-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: var(--ink-soft);
  font-weight: 560;
}
.nd-views .seg-btn.on, .nd-views .seg-btn.hot { color: var(--ink); }
.nd-views .btn-ico { width: 15px; height: 15px; margin: 0; }



.nd-tile-sub {
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-tile-sub.bad { color: var(--danger); }
.nd-sum .dash-txt { flex: 1; }






.nd-bulk {
  width: 290px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.nd-bulk-all.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-tint); }
.nd-bulk-menu .menu-level { gap: 6px; }
.nd-bulk-menu .actions-grid { display: flex; flex-direction: column; gap: 4px; }
.nd-bulk-menu .actions-grid button,
.nd-bulk-menu .menu-item {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 11px;
  font-size: 13px;
  text-align: left;
}



.nd-bulk-menu .mg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  text-align: left;
  font-weight: 500;
}
.nd-bulk-menu .mg-row .mg-ico { width: 26px; height: 26px; }
.nd-bulk-menu .mg-row .mg-sub { display: none; }
.nd-bulk-menu .actions-grid + .menu-group {
  margin-top: 4px;
  box-shadow: 0 -5px 0 -4px var(--line);
}
.nd-bulk-menu .mg-row.mg-danger .mg-label { color: var(--danger); }



body.has-node-bulk .wrap { padding-bottom: min(62vh, 620px); }


@media (max-width: 620px) {
  .nd-bulk { max-height: 55vh; }
  body.has-node-bulk .wrap { padding-bottom: 58vh; }
}


.nd-sel-chev {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}



.menu-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-head .menu-back { flex: none; width: auto; padding: 6px 11px; font-size: 12.5px; }
.menu-head .menu-title { min-width: 0; padding-top: 0; }








.nd-list-head { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.nd-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.node-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  padding: 12px 16px 12px 8px;
  border: 1px solid color-mix(in srgb, var(--ok) 26%, var(--line));
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.node-row[data-state="lost"] {
  border-color: color-mix(in srgb, var(--danger) 60%, transparent);
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}
.node-row[data-state="off"] {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}
.node-row[data-state="off"] .nr-name { color: var(--muted); }
.node-row:hover { border-color: var(--accent-line); }
.node-row.picked {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}
.node-row:focus { outline: none; }
.node-row:focus-visible { box-shadow: 0 0 0 2px var(--accent); }


.node-row.drag-live {
  position: relative;
  z-index: 3;
  transition: none;
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(10, 6, 20, 0.22);
}
body.rows-dragging .node-row { cursor: grabbing; }

.nr-side {
  flex: none;
  width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}
.nr-side .grip { padding: 0 4px; font-size: 16px; line-height: 1.1; }

.nr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }



.nr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-width: 0; }
.nr-id { flex: 2 1 300px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nr-name { min-width: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.nr-addr { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.nr-ip {
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nr-traf { flex: 1.2 1 190px; min-width: 0; }
.nr-traf .traf-used { font-family: var(--mono); font-size: 13px; }
.nr-traf .traf-cap { font-size: 12px; }
.nr-traf .traf-bar { height: 6px; }
.nr-time {
  flex: 1 1 170px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}


.nr-ico {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nr-reset, .nr-up { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); }
.nr-up { font-weight: 600; }
.nr-up[data-tone="ok"] { color: var(--ok); }
.nr-up[data-tone="bad"] { color: var(--danger); }
.nr-up .up-val { color: inherit; font-family: inherit; font-size: inherit; }



button.icon-sq.nr-copy {
  width: 28px;
  height: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.icon-sq.nr-copy .btn-ico { width: 14px; height: 14px; }
button.icon-sq.nr-term { width: 32px; height: 32px; color: var(--ink-soft); }
button.icon-sq.nr-term .btn-ico { width: 15px; height: 15px; }


.nr-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.nr-ram, .nr-load, .nr-net, .nr-rx, .nr-tx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  white-space: nowrap;
}
.nr-net { gap: 14px; }
.nr-rx .nr-ico { color: var(--ok); }
.nr-tx .nr-ico { color: var(--an-c); }
.nr-net .net-val { color: var(--ink-soft); }
.nr-net .net-unit { font-size: 11px; }
.nr-bar {
  display: block;
  width: 96px;
  height: 5px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}
.nr-fill {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  border-radius: var(--r-sm);
  background: var(--an-c);
  transition: width 0.6s var(--ease);
}
.nr-ram.over .nr-fill { background: var(--danger); }
.nr-ram.over .nr-pct { color: var(--danger); }
.nr-pct { color: var(--ink-soft); }
.nr-la { color: var(--muted); }
.nr-la.over { color: var(--danger); }

.nr-tags { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nr-tags .pill { padding: 3px 9px; font-family: var(--sans); font-size: 12px; font-weight: 600; }
.nr-tags .pill .btn-ico { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }


.nr-id .prov { padding: 3px 9px 3px 5px; }
.nr-id .prov-name { font-size: 11.5px; }
.nr-id .pill.users-n { padding: 4px 9px; }


.pill.nd-ver {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.pill.nd-ver.nd-new { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }



.pill.nd-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 620;
}
.pill.nd-st::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.nd-st.off {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}
.pill.nd-st.off::before { background: var(--muted); }




.nd-tbox {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}




table.nd-table { min-width: 980px; font-size: 13.5px; }
.nd-table thead th {
  padding: 10px 8px;
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
}
.nd-table td { padding: 10px 8px; }
.nd-table .nt-traf, .nd-table .nt-load, .nd-table .nt-net,
.nd-table .nt-ver { white-space: nowrap; }



.nd-table .pill.nd-st { white-space: normal; max-width: 160px; }
.nd-table .col-pick, .nd-table .nt-pick { width: 46px; padding-left: 14px; padding-right: 4px; }
.nd-table .nt-term { width: 52px; text-align: right; padding-right: 12px; }
.nd-table tbody tr[data-state="lost"] { background: var(--danger-bg); }
.nd-table tbody tr[data-state="off"] td { color: var(--muted); }
.nd-table tbody tr.picked { background: var(--accent-tint); }
.nd-table tbody tr.drag-live {
  position: relative;
  z-index: 3;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(10, 6, 20, 0.22);
}
.nd-table tbody tr { transition: transform 0.18s var(--ease), background-color 0.18s var(--ease); }
.nd-table tbody tr.drag-live { transition: none; }
.nt-node { min-width: 170px; }
.nt-name { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.nt-name strong { font-weight: 620; }
.nt-addr {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.nt-st { white-space: nowrap; }
.nt-st .nr-up { display: flex; margin-top: 5px; font-size: 12px; }
.nt-traf { min-width: 160px; }
.nt-traf .traf-used { font-family: var(--mono); }
.nt-load .nr-ram, .nt-load .nr-load { display: flex; font-size: 12px; }
.nt-load .nr-load { margin-top: 4px; }
.nt-load .nr-bar { width: 64px; }
.nt-net .nr-net { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 12px; }
.nt-ver { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.nt-xray { color: var(--ink-soft); }
.nt-agent { color: var(--muted); }

.nt-new { color: var(--warn); }





.nd-card .card-top { flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.nd-card .card-title.nd-titlebox {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1 1 320px;
}
.nd-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 20px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.nd-title::after { content: none; }

.nd-title .flag { width: 26px; height: 18px; }


.nd-uuid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 2px 3px 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.nd-uuid .card-uuid { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
button.icon-sq.nd-copy {
  width: 24px;
  height: 24px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.icon-sq.nd-copy .btn-ico { width: 13px; height: 13px; }




.card-act.labeled {
  width: auto;
  height: 38px;
  gap: 7px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 560;
}
.card-act.labeled .card-act-chev {
  position: static;
  width: 14px;
  height: 14px;
  margin-left: -1px;
}
.card-act.labeled .btn-ico { width: 15px; height: 15px; }
.card-act.labeled .power-ico { width: 15px; height: 15px; }
.nd-card .card-x { width: 38px; height: 38px; }
.card-act.labeled.power { background: transparent; }
.card-act.labeled.power[data-on="0"] { background: transparent; }




.nd-card .card-act-menu { min-width: 260px; }
.card-act-menu button.has-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px;
}
.ab-main { display: inline-flex; align-items: center; gap: 0; font-weight: 600; }
.ab-sub { font-size: 12px; font-weight: 400; color: var(--muted); }


.nd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.nd-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.nd-stat-k { font-size: 12px; color: var(--muted); }
.nd-stat-v {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.nd-stat.ok .nd-stat-v { color: var(--ok); }
.nd-stat.ver .nd-stat-v { font-size: 17px; }
.nd-stat-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.nd-stat-cap { font-size: 14px; color: var(--muted); }
.nd-stat-s { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.nd-stat .bar { margin: 2px 0; }


.nd-card .sect.nd-sect { gap: 10px; }
.nd-sect-h { font-size: 14px; font-weight: 650; }
.nd-sect-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }




.nd-meters .gauges { display: flex; flex-direction: column; gap: 12px; }
.nd-meters .gauge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head row" "bar bar";
  align-items: center;
  gap: 6px 12px;
  padding: 0;
  border: none;
  background: none;
}
.nd-meters .gauge-head { grid-area: head; min-width: 0; }
.nd-meters .gauge-name {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.nd-meters .gauge-cap { margin-left: 8px; font-size: 12px; }
.nd-meters .gauge-row { grid-area: row; justify-content: flex-end; }
.nd-meters .gauge-val { font-size: 15px; letter-spacing: 0; }
.nd-meters .gauge-unit { font-size: 12px; }
.nd-meters .gauge-sub { font-size: 12px; }
.nd-meters .gauge-bar { grid-area: bar; height: 8px; }
.nd-meters .gauge.over { background: none; border: none; }
.nd-load-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}



.nd-acts .menu-level { gap: 6px; }
.nd-acts .mg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
}
.mg-row .mg-ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
}
.mg-svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mg-row .mg-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.mg-row .mg-label { font-weight: 600; color: var(--ink); }
.mg-row .mg-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg-row .mg-chev {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-90deg);
}
.nd-acts .mg-row.mg-danger {
  margin-top: 8px;
  min-height: 48px;
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: color-mix(in srgb, var(--danger) 6%, transparent);
}
.nd-acts .mg-row.mg-danger .mg-label { color: var(--danger); }
.nd-acts .mg-row.mg-danger:hover:not(.act-off) { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.nd-acts .actions-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }


.nd-facts { display: flex; flex-direction: column; }
.nd-fact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.nd-fk { color: var(--muted); }
.nd-fv { min-width: 0; font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
button.icon-sq.nd-pen {
  width: 30px;
  height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.icon-sq.nd-pen .btn-ico { width: 14px; height: 14px; }
.nd-ssh { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.nd-drift { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--warn); }
.nd-drift .pill { font-family: var(--sans); }
.nd-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.nd-chips .prov, .prov.nd-inb { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nd-dim { color: var(--muted); font-family: var(--sans); }
.nd-k { color: var(--muted); font-size: 13px; }
.nd-v { color: var(--ink); }


.prov-btn.nd-sel { align-items: center; gap: 4px; }
.prov-btn.nd-sel .prov { padding: 2px 8px; }
.prov-btn.nd-sel:hover .nd-sel-chev { color: var(--accent); }


.edit-box.nd-tagbox { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.edit-val.nd-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; border-bottom: none; cursor: default; }
.nd-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--an-c);
  background: color-mix(in srgb, var(--an-c) 12%, transparent);
}
button.nd-tag-add {
  min-height: 0;
  height: 24px;
  padding: 0 9px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--muted) 55%, transparent);
  background: transparent;
  font-size: 12px;
  color: var(--ink-soft);
}


.nd-tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nd-tf-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--mono);
  font-weight: 600;
}
.nd-tf-tile .tf-lab { font-family: var(--sans); font-weight: 400; }
.nd-card .tf-field { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }


.nd-conf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.nd-hw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13px; }
.nd-hw > span { display: flex; gap: 6px; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .nd-fact { grid-template-columns: 120px minmax(0, 1fr) 32px; }
}








@media (max-width: 620px) {
  .nd-views { display: none; }
  

  .nd-sum .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nd-sum .dash-stat { gap: 10px; padding: 11px 12px; align-items: flex-start; }
  .nd-sum .dash-ico { width: 30px; height: 30px; }
  .nd-sum .dash-svg { width: 16px; height: 16px; }
  .nd-sum .dash-val { font-size: 15px; }
  .nd-list { gap: 8px; }
  .node-row { padding: 10px 12px 10px 6px; gap: 8px; }
  .nr-top { gap: 8px 14px; }
  .nr-id, .nr-addr, .nr-traf, .nr-time { flex: 1 1 100%; }
  .nr-bot { gap: 6px 14px; }
  .nr-tags { margin-left: 0; }
  .nr-bar { width: 64px; }
  body.cards-compact .node-row { padding: 7px 10px 7px 4px; }
  body.cards-compact .nr-main, body.cards-compact .nr-top { gap: 6px; }
  body.cards-large .node-row { padding: 14px 15px 14px 8px; }
  body.cards-large .nr-main { gap: 12px; }

  .card-act.labeled { width: 40px; height: 40px; padding: 0; }
  .nd-card .card-x { width: 40px; height: 40px; }
  .card-act.labeled .card-act-t { display: none; }
  

  .nd-card .card-title.nd-titlebox { flex: 1 1 0; order: 0; }
  .nd-card .card-top > .card-x { order: 1; }
  .nd-card .card-top > .card-acts { order: 2; flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
  .card-act.labeled .card-act-chev { position: absolute; right: 2px; bottom: 1px; width: 11px; height: 11px; }
  .nd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nd-stat { padding: 10px 12px; }
  .nd-stat-v { font-size: 18px; }
  .nd-stat.ver .nd-stat-v { font-size: 14px; }
  .nd-fact { grid-template-columns: minmax(0, 1fr) 32px; gap: 2px 8px; padding: 6px 0; }
  .nd-fk { grid-column: 1 / -1; font-size: 12px; }
  .nd-tf-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nd-hw { grid-template-columns: minmax(0, 1fr); }
  .nd-acts .mg-row { min-height: 48px; }
}












nav.side .nav-mdot {
  display: none;
  flex: none;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
}
nav.side .nav-mdot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}



nav.side a.nav-item.mod-alert:not(.active),
nav.side .nav-grp[data-open="0"] > .nav-grp-head.mod-alert { color: var(--danger); }
nav.side a.nav-item.mod-alert > .nav-mdot,
nav.side .nav-grp[data-open="0"] > .nav-grp-head.mod-alert > .nav-mdot { display: inline-flex; }
nav.side .nav-grp-head > .nav-mdot + .nav-chev { margin-left: 8px; }
nav.side .nav-mdot-word { white-space: nowrap; }



.dd-headbox, .dd-stripbox { display: contents; }


.dd-topnotes { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dd-topnotes > .note { margin: 0; }
.dd-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.dd-head-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.dd-state-words { font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.dd-hot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-bg);
}
.dd-hot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }


.dd-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent);
  background: var(--danger-bg);
}
.dd-att { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dd-att-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dd-att-ico { flex: none; color: var(--danger); line-height: 0; }
.dd-att-ico .btn-ico { width: 17px; height: 17px; margin: 2px 0 0; }
.dd-att-text { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.dd-att-text strong { font-weight: 650; }
.dd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 27px; }
.dd-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  max-width: 100%;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.dd-chip-v { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.dd-chip.hot { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.dd-chip.hot .dd-chip-v { color: var(--danger); }



section.card.dd-levels, section.card.dd-nodes, section.card.dd-day, section.card.dd-dry,
section.card.dd-top, section.card.dd-bans, section.card.dd-white, section.card.dd-geo { min-width: 0; }


.dd-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.dd-h-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 240px; }
.dd-h-sub { font-size: 13px; color: var(--muted); }
.dd-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--r);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dd-empty { margin: 0; font-size: 13px; color: var(--muted); }
.dd-foot { margin: 0; font-size: 12px; color: var(--muted); }
.dd-dim { color: var(--muted); }

.dd-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}


.dd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}



section.card.dd-levels { container-type: inline-size; }
@container (max-width: 520px) {
  .dd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-steps > :last-child { grid-column: 1 / -1; }
}
button.dd-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  font-weight: 560;
}
button.dd-step.on { background: var(--accent-tint); border-color: var(--accent-line); }
.dd-step-top { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dd-step-name { overflow-wrap: anywhere; }
.dd-step-n {
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
}
button.dd-step.on .dd-step-n { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.dd-step-tag { font-size: 12px; font-weight: 400; color: var(--muted); }
.dd-cuts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dd-cuts-title { font-weight: 600; overflow-wrap: anywhere; }
.dd-cut-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.dd-cut { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.dd-cut-ico, .dd-pass-ico {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dd-cut-ico { color: var(--viz-2); }
.dd-pass { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ok); }
.dd-autobox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.switch-row.dd-auto-row { flex: 1 1 340px; min-width: 0; }
.dd-ceilbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dd-ceil-label { font-size: 13px; color: var(--muted); }
.dd-ceil.seg { flex: 0 1 auto; }
.dd-ceil .seg-btn { flex: 0 1 auto; }
.dd-ceil.off { opacity: 0.55; }




.dd-tiles { container-type: inline-size; min-width: 0; }
.dd-tiles-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dd-tiles-in > .dd-tile:first-child { grid-column: 1 / -1; }
@container (min-width: 600px) {
  .dd-tiles-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dd-tiles-in > .dd-tile:first-child { grid-column: span 2; }
}
@container (min-width: 1000px) {
  .dd-tiles-in { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dd-tiles-in > .dd-tile:first-child { grid-column: auto; }
}
.dd-tile {
  --tone: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.dd-tile.t-rq { --tone: var(--accent); }
.dd-tile.t-cut { --tone: var(--viz-2); }
.dd-tile.t-pass { --tone: var(--viz-7); }
.dd-tile.t-known { --tone: var(--ok); }
.dd-tile.t-ban { --tone: var(--muted); }
.dd-tile.hot { --tone: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, transparent); }
.dd-tile-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
}
.dd-tile-ico .btn-ico { width: 20px; height: 20px; margin: 0; vertical-align: 0; }
.dd-tile-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25; }
.dd-tile-k { font-size: 12px; color: var(--muted); }
.dd-tile-v { font-size: 22px; font-weight: 640; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dd-tile.hot .dd-tile-v { color: var(--danger); }
.dd-tile-s { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }



.dd-scroll { min-width: 0; }
table.dd-table { min-width: 720px; }
.dd-table tbody tr.dd-row { cursor: pointer; }
.dd-table tbody tr.dd-row[data-st="attack"],
.dd-table tbody tr.dd-row[data-st="flood"] { background: var(--danger-bg); }
.dd-table tbody tr.dd-row.open { background: var(--accent-tint); }
.dd-table tbody tr.dd-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dd-node { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-weight: 620; }
.dd-node-chev {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transform: rotate(-90deg);
  transition: transform 0.22s var(--ease);
}
.dd-row.open .dd-node-chev { transform: none; }
.dd-node-name { min-width: 0; white-space: nowrap; }
.dd-row[data-st="off"] .dd-node-name, .dd-row[data-st="unavailable"] .dd-node-name { color: var(--muted); }
.dd-stbox { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.pill.dd-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.pill.dd-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dd-st-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dd-st-sub.hot { color: var(--danger); }
.dd-rq { display: inline-flex; align-items: baseline; gap: 6px; }
.dd-rq-v { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.dd-rq-v.hot, .dd-ratio { color: var(--danger); }
.dd-ratio { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.dd-rq-sub, .dd-cut-sub { display: block; font-size: 12px; color: var(--muted); }
.dd-td-rq, .dd-td-cut { white-space: nowrap; }
select.dd-lvl { width: auto; max-width: 100%; padding: 6px 10px; font-size: 13px; }
.dd-lvl-now { display: block; margin-top: 3px; font-size: 12px; color: var(--warn); }
.dd-online { font-family: var(--mono); font-weight: 600; color: var(--ok); }
.dd-cut-v { font-family: var(--mono); font-weight: 600; }



.dd-table tbody tr.dd-detail,
.dd-table tbody tr.dd-detail:hover { background: var(--surface-2); }
.dd-table tbody tr.dd-detail > td { padding: 14px 16px 18px; }
.dd-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px 24px;
  min-width: 0;
  text-align: left;
}
.dd-card > * { min-width: 0; }
.dd-chart-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.dd-chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dd-peak { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.dd-legend { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.dd-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.dd-leg::before { content: ""; width: 10px; height: 10px; border-radius: var(--r-sm); background: var(--viz-7); }
.dd-leg.pass::before { background: var(--viz-7); }
.dd-leg.cut::before { background: var(--viz-2); }
.dd-leg.mbit::before { background: var(--viz-1); }
.dd-chart { width: 100%; min-width: 0; }
.dd-chart-note, .dd-readout { font-size: 12px; color: var(--muted); }
.dd-readout { font-family: var(--mono); color: var(--ink); min-height: 18px; overflow-wrap: anywhere; }
.dd-svg .dd-col { fill: transparent; }
.dd-svg .dd-col.on { fill: var(--accent-tint); }
.dd-seg.dd-b-pass { fill: var(--viz-7); }
.dd-seg.dd-b-cut { fill: var(--viz-2); }
.dd-seg.dd-b-mbit { fill: var(--viz-1); }
.dd-svg .dd-seg { pointer-events: none; }
.dd-line { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 4 3; }
.dd-mark { stroke: var(--danger); stroke-width: 1; stroke-dasharray: 4 3; }
.dd-lab-bg { fill: var(--surface); }
.dd-svg .dd-line-lab { fill: var(--ink); }
.dd-svg .dd-mark-lab { fill: var(--danger); }
.dd-meters, .dd-log, .dd-extra { display: flex; flex-direction: column; gap: 10px; }

.dd-meters-col, .dd-capset { display: flex; flex-direction: column; gap: 10px; min-width: 0; }


.dd-band .dd-meter-tick { opacity: 0.55; }
.dd-fact .dd-meter-v { font-weight: 500; }
.dd-meters-col { gap: 16px; }
input.dd-capset-in { font-family: var(--mono); font-size: 13px; min-width: 0; }
.dd-capset-note { margin: 0; font-size: 12px; color: var(--muted); }
.dd-meter { display: flex; flex-direction: column; gap: 5px; }
.dd-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dd-meter-k { color: var(--ink-soft); }
.dd-meter-v { font-family: var(--mono); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.dd-meter-track { position: relative; height: 8px; border-radius: var(--r-sm); background: var(--surface); }
.dd-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--pct, 0%);
  border-radius: var(--r-sm);
  background: var(--accent);
}
.dd-meter-tick {
  position: absolute;
  top: -3px;
  left: calc(var(--at, 50%) - 1px);
  width: 2px;
  height: 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
}
.dd-meter-note { font-size: 12px; color: var(--muted); }
.dd-meter.over .dd-meter-v, .dd-meter.over .dd-meter-note { color: var(--danger); }
.dd-meter.over .dd-meter-fill { background: var(--danger); }
.dd-log-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dd-log-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.dd-log-t { font-family: var(--mono); color: var(--muted); }
.dd-log-x { overflow-wrap: anywhere; }
.dd-log-row.quiet .dd-log-x { color: var(--ink-soft); }
.dd-log-row.next .dd-log-x { color: var(--muted); }
.dd-inbs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dd-inb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; }
.dd-inb-tag { font-weight: 600; overflow-wrap: anywhere; }
.dd-inb-port { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dd-inb-mode { font-size: 12px; color: var(--ok); }
.dd-inb-mode.cdn { color: var(--warn); }


.dd-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: var(--page-gap);
  align-items: start;
}
.dd-pair > * { min-width: 0; }


.dd-dry-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dd-dry-seg.seg { flex: 0 1 auto; }
.dd-dry-seg .seg-btn { flex: 0 1 auto; }
.dd-dry-nodes { flex: 1 1 200px; min-width: 0; }
button.dd-dry-go { margin-left: auto; }
.dd-dry-run { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dd-dry-on { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent); }
.dd-dry-box { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); }
.dd-dry-cap { padding: 9px 14px; font-size: 12px; color: var(--muted); background: var(--surface-2); }
.dd-dry-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(110px, 1.3fr) minmax(120px, 1.3fr);
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.dd-dry-head {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.dd-dry-lvl { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dd-dry-cut { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dd-dry-ips { font-family: var(--mono); font-weight: 600; }
.dd-dry-pk { font-size: 12px; color: var(--muted); }
.pill.dd-hit { justify-self: start; max-width: 100%; white-space: normal; font-size: 11px; }
.dd-dry-line {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.dd-dry-line.ok { color: var(--ok); background: var(--ok-bg); }
.dd-dry-line.warn { color: var(--warn); background: var(--warn-bg); }


.dd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.dd-list > li + li { border-top: 1px solid var(--line); }
.dd-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; }
.dd-li-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.dd-src, .dd-ban-ip { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.dd-cc {
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.dd-li-node, .dd-ban-why { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dd-li-num { font-family: var(--mono); font-weight: 600; text-align: right; }
.dd-li-why { font-size: 13px; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.dd-li-st { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.dd-li-st.ban { color: var(--warn); }
.dd-ban { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px 8px 14px; }
.dd-ban-main { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; line-height: 1.35; }
.dd-ban-left { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }



.dd-wl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.dd-wl-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; min-width: 0; }
.dd-wl-field.wide { flex: 2 1 200px; }
.dd-wl-k { font-size: 12px; color: var(--muted); }
input.dd-wl-ip-in { font-family: var(--mono); font-size: 13px; }
input.dd-wl-label-in, input.dd-geo-in { min-width: 0; }
button.dd-wl-add, button.dd-geo-btn { flex: none; }

.dd-wl-err:empty { display: none; }
.dd-wl-list, .dd-never-list, .dd-geo-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dd-wl, .dd-geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 4px 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.dd-wl-name { font-weight: 600; overflow-wrap: anywhere; }
.dd-wl-ip { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
button.dd-x {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  background: none;
  color: var(--muted);
}
button.dd-x .btn-ico { margin: 0; }
.dd-never-box { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dd-never-cap { font-size: 12px; color: var(--muted); }
.dd-never {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: var(--r);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.dd-never-ico {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dd-never-name { overflow-wrap: anywhere; }
.dd-never-v { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }


.dd-geo-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
}
.dd-geo-pill .btn-ico { margin: 0; }
.dd-geo-rows { display: flex; flex-direction: column; gap: 10px; }
.dd-geo-row {
  display: grid;
  grid-template-columns: auto minmax(90px, 140px) minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.dd-geo-name { min-width: 0; overflow-wrap: anywhere; }
.dd-geo-bar { height: 8px; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.dd-geo-fill { display: block; height: 100%; width: var(--pct, 0%); border-radius: var(--r-sm); background: var(--accent); }
.dd-geo-share { font-family: var(--mono); font-weight: 600; text-align: right; }
.dd-geo-more { font-size: 12px; color: var(--muted); }
.dd-geo-chip { padding-left: 10px; }

@media (max-width: 620px) {
  .dd-chips { padding-left: 0; }
  




  table.dd-table { min-width: 0; }
  .dd-table tbody tr.dd-row { gap: 0 12px; align-items: flex-start; }
  


  .dd-table tbody tr.dd-row::after { content: ""; order: 2; flex: 1 0 100%; height: 0; }
  .dd-table tbody tr.dd-row > td { flex: 1 1 0; display: block; padding: 0; text-align: left; min-width: 0; }
  .dd-table tbody tr.dd-row > td::before { display: block; max-width: none; margin-bottom: 2px; }
  .dd-table tbody tr.dd-row > td.dd-td-node,
  .dd-table tbody tr.dd-row > td.dd-td-st { order: 1; }
  
  .dd-table tbody tr.dd-row > td.dd-td-node { flex: 1 1 40%; }
  
  .dd-table tbody tr.dd-row > td.dd-td-st { flex: 0 1 auto; max-width: 52%; }
  .dd-table tbody tr.dd-row > td.dd-td-node::before,
  .dd-table tbody tr.dd-row > td.dd-td-st::before { content: none; }
  .dd-table tbody tr.dd-row > td.dd-td-st .dd-stbox { align-items: flex-end; text-align: right; }
  .dd-table tbody tr.dd-row > td.dd-td-rq,
  .dd-table tbody tr.dd-row > td.dd-td-on,
  .dd-table tbody tr.dd-row > td.dd-td-cut { order: 3; flex: 1 1 28%; margin-top: 8px; white-space: normal; }
  .dd-table tbody tr.dd-row > td.dd-td-lvl { order: 4; flex: 1 0 100%; margin-top: 10px; }
  .dd-table tbody tr.dd-row > td.dd-td-lvl::before { content: none; }
  .dd-table select.dd-lvl { width: 100%; }
  .dd-node-name { white-space: normal; overflow-wrap: anywhere; }
  
  .dd-table tbody tr.dd-detail { display: block; padding: 12px; }
  .dd-table tbody tr.dd-detail > td { display: block; padding: 0; text-align: left; }
  .dd-card { grid-template-columns: minmax(0, 1fr); }
  .dd-geo-row { grid-template-columns: auto minmax(0, 1fr) 56px; }
  .dd-geo-bar { grid-column: 1 / -1; order: 4; }
  .dd-dry-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dd-dry-row > :last-child { grid-column: 1 / -1; }
  .dd-dry-head > :last-child { display: none; }
  button.dd-dry-go { margin-left: 0; flex: 1 1 100%; }
}




.wl-card { display: flex; flex-direction: column; gap: 14px; }
.wl-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.wl-h h2 { margin: 0; }
.wl-sub { font-size: 13px; color: var(--muted); }
.wl-head-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.wl-nodes { font-size: 13.5px; line-height: 1.5; }
.wl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
table.wl-table { min-width: 560px; font-size: 13.5px; }
.wl-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-bar { height: 6px; min-width: 80px; margin-top: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wl-bar > i { display: block; height: 100%; background: var(--accent); }
.wl-bar.over > i { background: var(--danger); }
.wl-user { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.wl-user-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
@media (max-width: 640px) {
  table.wl-table { min-width: 0; }
  .wl-grid { grid-template-columns: minmax(0, 1fr); }
}








:root {
  --anl-sea: #d9d3ea;
  --anl-land: #f8f7fc;
  --anl-border: rgba(45, 25, 80, 0.28);
  --anl-region: rgba(45, 25, 80, 0.42);
  --anl-atmo: #8b6ad8;
  --anl-heat: 90, 47, 190;
  --anl-bad: 179, 38, 30;
  --anl-warn: 138, 93, 6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --anl-sea: #120e1f;
    --anl-land: #2a2440;
    --anl-border: rgba(255, 255, 255, 0.16);
    --anl-region: rgba(255, 255, 255, 0.34);
    --anl-atmo: #7c5cff;
    --anl-heat: 181, 151, 255;
    --anl-bad: 243, 128, 116;
    --anl-warn: 217, 164, 65;
  }
}

:root[data-theme="dark"], :root[data-theme="graphite"],
:root[data-theme="ocean"], :root[data-theme="black"] {
  --anl-sea: #120e1f;
  --anl-land: #2a2440;
  --anl-border: rgba(255, 255, 255, 0.16);
  --anl-region: rgba(255, 255, 255, 0.34);
  --anl-atmo: #7c5cff;
  --anl-heat: 181, 151, 255;
  --anl-bad: 243, 128, 116;
  --anl-warn: 217, 164, 65;
}



:root[data-theme="graphite"] { --anl-sea: #0d0e11; --anl-land: #2a2c33; }
:root[data-theme="black"] { --anl-sea: #050507; --anl-land: #222229; }
:root[data-theme="ocean"] {
  --anl-sea: #05101a;
  --anl-land: #17303d;
  --anl-atmo: #2f9cc4;
  --anl-heat: 94, 200, 232;
}

.anl-lede { color: var(--muted); }
.anl-acts { align-items: center; }

.anl-period .seg-btn { flex: none; white-space: nowrap; }
.anl-seller {
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.anl-notes { display: flex; flex-direction: column; gap: 8px; }
.anl-notes:empty { display: none; }
.anl-muted { color: var(--muted); font-size: 12.5px; }



.anl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}
.anl-map { position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.anl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.anl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.anl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
}
button.anl-chip[aria-pressed="true"] { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.anl-chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: rgb(var(--anl-heat)); }
.anl-chip.c-nodes .anl-chip-dot { background: var(--accent); }
.anl-chip.c-arcs .anl-chip-dot { background: var(--ok); }
.anl-chip.c-bad .anl-chip-dot { background: var(--danger); }
.anl-metric { padding: 3px; }
.anl-metric .seg-btn { padding: 4px 12px; font-size: 12.5px; }
.anl-search { margin-left: auto; min-width: 0; }
input[type="search"].anl-q { width: 220px; max-width: 100%; padding: 6px 10px; font-size: 13px; }
input[type="search"].anl-q.miss { border-color: var(--danger); }

.anl-stage { position: relative; }
.anl-globe { height: 560px; cursor: grab; }
.anl-globe:active { cursor: grabbing; }
.anl-nogl { padding: 18px 16px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; }


.anl-map.nogl .anl-chips, .anl-map.nogl .anl-metric, .anl-map.nogl .anl-scale,
.anl-map.nogl .anl-lg-t, .anl-map.nogl .anl-src .anl-muted { display: none; }


.anl-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 260px;
  padding: 7px 10px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.anl-tip span { color: var(--muted); }




.anl-lab { position: relative; width: 0; height: 0; }
.anl-lab > span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  font: 500 11.5px/1.25 var(--sans);
  color: var(--ink);
  text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface), 0 0 2px var(--surface), 0 0 1px var(--surface);
}
.anl-lab.off { visibility: hidden; }
.anl-lab.off > span { pointer-events: none; }
.anl-lab.city > span { transform: translate(-5px, -50%); display: inline-flex; align-items: center; gap: 5px; }
.anl-dt { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); flex: none; display: inline-block; }
.anl-dt.ok, .anl-dot.ok { background: var(--ok); }
.anl-dt.warn, .anl-dot.warn { background: var(--warn); }
.anl-dt.bad, .anl-dot.bad { background: var(--danger); }
.anl-ln { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.anl-lab.city.big > span { font-weight: 650; font-size: 12.5px; }
.anl-lab.city.sel > span {
  background: var(--accent);
  color: var(--on-accent);
  text-shadow: none;
  padding: 2px 9px 2px 4px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.anl-lab.city.sel .anl-ln { color: var(--on-accent); }
.anl-lab.city.sel .anl-dt { box-shadow: 0 0 0 2px var(--on-accent); }
.anl-lab.region > span {
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: normal;
  width: max-content;
  max-width: 132px;
  font: 600 10.5px/1.15 var(--sans);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.anl-lab.region.sel > span { color: var(--accent); font-size: 12.5px; font-weight: 750; }
.anl-lab.node > span {
  transform: translate(-50%, -160%);
  font: 600 11px/1 var(--mono);
  color: var(--ink);
  text-shadow: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px 3px 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.anl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }



.anl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.anl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-soft); }
.anl-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.anl-legend > .anl-scale { gap: 0; }
.anl-lg-t { margin-left: -6px; }
.anl-step { width: 9px; height: 8px; display: inline-block; }
.anl-step.s1 { background: rgba(var(--anl-heat), 0.16); border-radius: 3px 0 0 3px; }
.anl-step.s2 { background: rgba(var(--anl-heat), 0.34); }
.anl-step.s3 { background: rgba(var(--anl-heat), 0.52); }
.anl-step.s4 { background: rgba(var(--anl-heat), 0.7); }
.anl-step.s5 { background: rgba(var(--anl-heat), 0.88); border-radius: 0 3px 3px 0; }
.anl-src { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.anl-src a { font-size: 12px; }


.anl-place { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.anl-crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); }
button.anl-crumb { border: 0; background: none; color: var(--accent); font-size: inherit; font-weight: 500; padding: 0; }
button.anl-crumb:hover:not(:disabled) { transform: none; background: none; text-decoration: underline; }
.anl-sep { opacity: 0.6; }
.anl-ph { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
h2.anl-title { font-size: 20px; padding-bottom: 0; border-bottom: none; text-wrap: balance; }
h2.anl-title::after { content: none; }
.anl-u { font-variant-numeric: tabular-nums; color: var(--muted); }
.anl-sec { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.anl-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
button.anl-link { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--accent); }
button.anl-link:hover:not(:disabled) { transform: none; background: none; text-decoration: underline; }
.anl-ops { display: flex; flex-direction: column; gap: 2px; }
button.anl-op, .anl-hrow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink);
}
button.anl-op:hover:not(:disabled) { transform: none; background: var(--surface-2); color: var(--ink); }
button.anl-op[aria-pressed="true"] { background: var(--accent-tint); }
.anl-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.anl-nm > .flag, .anl-mh > .flag, .anl-mn > .flag { width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.anl-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; text-align: right; }
.anl-bar-t { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.anl-bar-t > b { display: block; height: 100%; width: var(--w, 0%); background: rgba(var(--anl-heat), 0.6); border-radius: 3px; }
button.anl-op[aria-pressed="true"] .anl-bar-t > b { background: var(--accent); }

.anl-sell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.anl-sell > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 7px 10px; display: flex; flex-direction: column; min-width: 0; }
.anl-sell b { font-size: 16px; font-variant-numeric: tabular-nums; }
.anl-sell span { font-size: 12px; color: var(--muted); }
.anl-sell .low b { color: var(--danger); }




.anl-mx-wrap { overflow-x: auto; }
.anl-mx {
  display: grid;
  grid-template-columns: max-content repeat(var(--cols, 1), minmax(52px, 1fr));
  gap: 3px;
  font-size: 12px;
  min-width: min-content;
}
.anl-mh { font-weight: 600; color: var(--muted); text-align: center; padding: 2px 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.anl-mh:first-child { text-align: left; }
.anl-mn { font: 600 12px var(--mono); color: var(--ink-soft); white-space: nowrap; padding: 5px 8px 5px 0; overflow: hidden; text-overflow: ellipsis; max-width: 150px; grid-column: 1; }
.anl-c { text-align: center; border-radius: var(--r-sm); padding: 5px 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.anl-c.wide { grid-column: 2 / -1; text-align: left; padding-left: 8px; }
.anl-c.ok { background: var(--ok-bg); color: var(--ok); }
.anl-c.bad { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.anl-c.none { background: var(--surface-2); color: var(--muted); }
.anl-c.na { color: var(--muted); opacity: 0.6; }
.anl-note { font-size: 12px; color: var(--muted); }
.anl-note.warn { color: var(--warn); }

.anl-plist { display: flex; flex-direction: column; gap: 1px; }
button.anl-pli {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
}
button.anl-pli:hover:not(:disabled) { transform: none; background: var(--surface-2); color: var(--ink); }


.anl-hosts, .anl-worst { gap: 12px; }
.anl-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.anl-hcols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 28px; }
.anl-hl, .anl-idle { display: flex; flex-direction: column; gap: 2px; }
.anl-hrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; padding: 4px 0; }
.anl-hname { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.anl-hname .pill { flex: none; }
.anl-hnode { flex: none; font-size: 12px; }
.anl-irow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.anl-irow:last-child { border-bottom: 0; }


.anl-wl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
button.anl-wi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 400;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
}
button.anl-wi.warn { border-left-color: var(--warn); }
button.anl-wi:hover:not(:disabled) { transform: none; color: var(--ink); background: var(--surface-2); border-color: var(--line); border-left-color: var(--danger); }
button.anl-wi.warn:hover:not(:disabled) { border-left-color: var(--warn); }
.anl-wt { font-weight: 650; }
.anl-wd { font-size: 12.5px; color: var(--ink-soft); }
.anl-wl-lost { font-size: 12px; color: var(--danger); }

.anl-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.anl-how:empty { display: none; }
.anl-how-i { padding: 12px 14px; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.anl-how-i b { color: var(--ink); font-size: 13.5px; }

@media (max-width: 1180px) {
  .anl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .anl-globe { height: 380px; }
  .anl-search { margin-left: 0; flex: 1 1 100%; }
  input[type="search"].anl-q { width: 100%; }
  .anl-hcols { grid-template-columns: minmax(0, 1fr); }
  .anl-src .anl-muted { display: none; }
  
  .anl-hrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .anl-hrow .anl-bar-t { grid-column: 1 / -1; grid-row: 2; }
}





.sgen-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: calc(var(--page-gap) * -0.5);
}
.sgen-back:hover { color: var(--accent); }
.sgen-back-in { margin-bottom: 0; }
.sgen-body { display: flex; flex-direction: column; gap: var(--page-gap); min-width: 0; }


.sgen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 1100px) {
  .sgen-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.sgen-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.sgen-tile:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-1px); }
.sgen-tile-ico, .sgen-cat-ico, .sgen-wip-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.sgen-tile-ico .btn-ico, .sgen-wip-ico .btn-ico { width: 21px; height: 21px; margin: 0; }
.sgen-tile-name { font-size: 15.5px; font-weight: 640; letter-spacing: -0.01em; line-height: 1.25; }
.sgen-tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }


.sgen-sync-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.sgen-sync-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.sgen-sync-txt h2, .sgen-sync-txt p { margin: 0; }
.sgen-sync-txt p { font-size: 13.5px; }
.sgen-sync-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sgen-more-btn .btn-ico { transition: transform 0.2s var(--ease); }
.sgen-more-btn.on .btn-ico { transform: rotate(180deg); }
button.sgen-busy { animation: pulse 1.1s ease-in-out infinite; }

.sgen-ops { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sgen-ops[hidden] { display: none; }
.sgen-op {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sgen-op:last-child { border-bottom: none; }
.sgen-op > button { flex: none; }
.sgen-op-main { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sgen-op-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 620; font-size: 14px; }
.sgen-op-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sgen-op-mode select.sgen-mode { width: auto; max-width: 100%; padding: 5px 10px; font-size: 13px; }

.sgen-job:empty, .sgen-reco:empty { display: none; }
.sgen-job-in, .sgen-reco-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.sgen-job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.sgen-job-title { font-weight: 640; font-size: 14px; }
.sgen-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sgen-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 8px 12px;
  border-left: 3px solid var(--line);
}
.sgen-step.run { border-left-color: var(--accent); }
.sgen-step.ok { border-left-color: var(--ok); }
.sgen-step.fail { border-left-color: var(--danger); }
.sgen-step p { margin: 0; }
.sgen-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.sgen-step-title { font-weight: 600; font-size: 13.5px; }
.sgen-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.sgen-count {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.sgen-count.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.sgen-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.sgen-notes li + li { margin-top: 3px; }
.sgen-raw summary { cursor: pointer; font-size: 12.5px; color: var(--muted); width: max-content; }
.sgen-raw summary:hover { color: var(--accent); }
.sgen-raw pre {
  margin: 8px 0 0;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


.sgen-wip { align-items: flex-start; }
.sgen-wip h3, .sgen-wip p { margin: 0; }


.sgen-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sgen-card-head h2 { margin: 0; }
.sgen-card-sub { font-size: 12.5px; }
.sgen-none { margin: 0; }



.sgen-f { position: relative; }
.sgen-f.field-dirty { box-shadow: none; }
.sgen-f.field-dirty::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.sgen-f .field-top { align-items: center; }
.sgen-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sgen-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sgen-ctl > select { flex: 1 1 260px; width: auto; max-width: 480px; min-width: 0; }
.sgen-edit { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 320px; min-width: 0; }
.sgen-edit > input, .sgen-edit > textarea { flex: 1 1 auto; min-width: 0; width: auto; }
.sgen-edit > textarea { min-height: 70px; }
.sgen-edit .icon-btn { padding: 8px 11px; }
.sgen-edit .icon-btn[hidden] { display: none; }
.sgen-save { color: var(--ok); }
.sgen-reset { flex: none; }
.sgen-ro {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.sgen-money { font-family: var(--mono); }
.sgen-money:empty, .sgen-note:empty { display: none; }
.sgen-group { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sgen-group-link { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }


.sgen-search-row { position: relative; }
.sgen-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  margin: 0;
  color: var(--muted);
  pointer-events: none;
}
input[type="search"].sgen-search { padding-left: 38px; }


.sgen-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 18px; }
.sgen-cat, .sgen-pay {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 8px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r);
}
.sgen-cat { border-bottom: 1px solid var(--line); border-radius: 0; }
.sgen-cat:hover, .sgen-pay:hover { background: var(--surface-2); }
.sgen-cat-ico { width: 34px; height: 34px; }
.sgen-cat-ico .btn-ico { width: 17px; height: 17px; margin: 0; }
.sgen-cat-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sgen-cat-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgen-cat-key { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgen-cat-n { flex: none; font-size: 13px; }
.sgen-cat-ch { color: var(--accent); }


.sgen-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sgen-pay { border: 1px solid var(--line); padding: 12px; }
.sgen-pay.on { border-color: var(--ok); }
.sgen-pay > .pill { flex: none; }
.sgen-tx td { vertical-align: top; }
.sgen-sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sgen-card > button.small { align-self: flex-start; }
.sgen-tx-desc { font-size: 12px; max-width: 360px; overflow-wrap: anywhere; }
.sgen-tx-note { margin: 0; font-size: 13px; }
.sgen-tiles { margin: 0; }

@media (max-width: 620px) {
  .sgen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sgen-tile { padding: 13px 12px 12px; gap: 6px; }
  .sgen-tile-ico { width: 34px; height: 34px; }
  .sgen-tile-ico .btn-ico { width: 18px; height: 18px; }
  .sgen-tile-name { font-size: 14.5px; }
  .sgen-tile-sub { font-size: 12px; }
  .sgen-sync-acts { width: 100%; flex-wrap: nowrap; }
  .sgen-sync-acts > button { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
  .sgen-sync-acts > .primary { flex: 1 1 auto; }
  .sgen-sum { align-items: flex-end; }
  .sgen-op { flex-wrap: wrap; }
  .sgen-op > button { margin-left: auto; }
  .sgen-edit { flex-basis: 100%; }
  .sgen-pays { grid-template-columns: minmax(0, 1fr); }
}








.ssup { container: ssup / inline-size; }





.ssup-grid {
  display: grid;
  grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  gap: var(--page-gap);
  align-items: stretch;
  height: max(560px, calc(100dvh - var(--ssup-top, 150px) - var(--page-gap)));
}
section.card.ssup-list, section.card.ssup-chat { min-height: 0; }


section.card.ssup-list { padding: 14px; gap: 10px; }

.ssup-tabs .seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink-soft);
}
.ssup-tabs .seg-btn.on, .ssup-tabs .seg-btn.hot { color: var(--ink); }
.ssup-tab-n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ssup-tab-n:empty { display: none; }

.ssup-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.ssup-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  cursor: text;
}
.ssup-search:focus-within { border-color: var(--accent); }
.ssup-search-ico { display: inline-flex; }
.ssup-search-ico .btn-ico { width: 16px; height: 16px; margin: 0; }
.ssup-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ssup-search input[type="search"]:focus-visible { outline: none; }

select.ssup-prio { flex: 1 1 140px; width: auto; min-width: 0; padding: 7px 10px; font-size: 13px; }
.ssup button.ssup-order { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; font-weight: 500; }

.ssup-notes { display: flex; flex-direction: column; gap: 4px; }
.ssup-notes:empty { display: none; }
.ssup-hint { font-size: 12px; color: var(--muted); }
.ssup-hint.warn { color: var(--warn); }



.ssup-rows {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 3px;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -6px;
  padding: 2px 6px;
}
.ssup-rows .empty { padding: 30px 8px; font-size: 13.5px; }





.ssup button.ssup-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 9px 10px 9px 11px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid var(--line);
  border-radius: var(--r);
}
.ssup button.ssup-row:hover:not(:disabled) {
  transform: none;
  color: var(--ink);
  background: var(--surface-2);
  border-color: transparent;
  border-left-color: var(--line);
}
.ssup button.ssup-row.st-open,
.ssup button.ssup-row.st-open:hover:not(:disabled) { border-left-color: var(--warn); }
.ssup button.ssup-row.st-answered,
.ssup button.ssup-row.st-answered:hover:not(:disabled) { border-left-color: var(--ok); }
.ssup button.ssup-row.on,
.ssup button.ssup-row.on:hover:not(:disabled) {
  background: var(--accent-tint);
  border-color: var(--accent-line);
  border-left-color: var(--accent);
}
.ssup button.ssup-row:active:not(:disabled) { transform: none; }

.ssup-row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ssup-row-id { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ssup-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 620;
}
.ssup-ago { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ssup-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.ssup-row-who {
  flex: 1 1 120px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ssup-row-sub .pill { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.ssup-row-sub .pill .btn-ico { width: 11px; height: 11px; margin: 0; }

.ssup-more { display: flex; justify-content: center; }
.ssup-more:empty { display: none; }


section.card.ssup-chat { padding: 16px 18px; gap: 12px; min-width: 0; }
section.card.ssup-chat.is-idle { justify-content: center; }
.ssup-idle .empty { padding: 40px 12px; }

.ssup-chead {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ssup-chead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
h3.ssup-ctitle { align-items: baseline; gap: 8px; min-width: 0; font-size: 17px; }
.ssup-cid { flex: none; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--muted); }
.ssup-ctext { min-width: 0; overflow-wrap: anywhere; }
.ssup-cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ssup-cmeta .pill { display: inline-flex; align-items: center; gap: 4px; }
.ssup-cmeta .pill .btn-ico { width: 11px; height: 11px; margin: 0; }
.ssup-cwhen { font-size: 12px; color: var(--muted); }
.ssup-cacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ssup-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ssup-pick select { width: auto; padding: 5px 10px; font-size: 13px; }
.ssup button.ssup-back { display: none; flex: none; }


.ssup-user:empty { display: none; }
.ssup-ucard, .ssup-unone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 13px;
}
.ssup-uhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ssup-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 650;
}
.ssup-uname { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ssup-uname b { font-size: 14px; overflow-wrap: anywhere; }
.ssup-ulinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; }
.ssup button.ssup-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.ssup button.ssup-copy .btn-ico { width: 12px; height: 12px; margin: 0; }


.ssup-facts { display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 0; }
.ssup-fact { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.ssup-fact dt { flex: none; font-size: 12px; color: var(--muted); }
.ssup-fact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }


.ssup-msgs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}
.ssup-msgs > .note { margin: auto 0; }
.ssup-day { display: flex; justify-content: center; margin: 4px 0; }
.ssup-day span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--muted);
}
.ssup-msg { display: flex; }
.ssup-msg.admin { justify-content: flex-end; }
.ssup-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(80%, 620px);
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  background: var(--surface-2);
}
.ssup-msg.user .ssup-bubble { border-bottom-left-radius: var(--r-sm); }
.ssup-msg.admin .ssup-bubble {
  background: var(--accent-tint);
  border-color: var(--accent-line);
  border-bottom-right-radius: var(--r-sm);
}
.ssup-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ssup-meta { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; color: var(--muted); }
.ssup-msg.admin .ssup-meta span { color: var(--accent); }

.ssup-media { display: flex; flex-wrap: wrap; gap: 6px; }
.ssup-fig { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.ssup-fig figcaption { font-size: 12.5px; overflow-wrap: anywhere; }
.ssup button.ssup-thumb {
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: none;
  line-height: 0;
  overflow: hidden;
}
.ssup button.ssup-thumb:hover:not(:disabled) { transform: none; background: none; }
.ssup button.ssup-thumb:active:not(:disabled) { transform: none; }
.ssup-img {
  display: block;
  max-width: min(260px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--surface);
}
.ssup button.ssup-file {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: 100%;
  padding: 6px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
}
.ssup button.ssup-file .btn-ico { width: 14px; height: 14px; margin: 0; }
.ssup-file-name { min-width: 0; overflow-wrap: anywhere; }
.ssup-file-why { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.ssup-file-why:empty { display: none; }

.ssup-form { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
textarea.ssup-input { min-height: 78px; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.ssup-form-row { display: flex; align-items: center; gap: 10px; }
.ssup-kbd { margin-right: auto; font-size: 12px; color: var(--muted); }
.ssup-len { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ssup-len:empty { display: none; }
.ssup-len.over { color: var(--danger); }

@media (hover: none) { .ssup-kbd { visibility: hidden; } }



.modal.ssup-viewer { width: auto; min-width: min(360px, 94vw); max-width: min(980px, 94vw); }
.ssup-big {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--r);
}
.ssup-big-cap { font-size: 13.5px; overflow-wrap: anywhere; }



@container ssup (max-width: 760px) {
  .ssup-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ssup[data-view="list"] .ssup-chat { display: none; }
  .ssup[data-view="chat"] .ssup-list { display: none; }
  .ssup button.ssup-back { display: inline-flex; }
  .ssup-ctitle { flex-basis: 100%; }
  .ssup-rows { flex: none; overflow: visible; margin: 0; padding: 0; }
  section.card.ssup-chat { padding: 14px; }
  section.card.ssup-chat.is-idle { min-height: 0; }
  .ssup-msgs { flex: none; max-height: 62dvh; }
  .ssup-bubble { max-width: 88%; }
  .ssup-cacts .ssup-pick { flex: 1 1 140px; }
  .ssup-cacts .ssup-pick select { flex: 1; }
}






.ssys { display: flex; flex-direction: column; gap: 16px; }
.ssys-card { display: flex; flex-direction: column; gap: 12px; }
.ssys-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ssys-sub { margin: 4px 0 0; font-size: 15px; }
.ssys-kv {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  font-size: 13px;
}
.ssys-kv dt { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ssys-kv dd { margin: 0; overflow-wrap: anywhere; }
.ssys-auto { margin: 0; font-size: 13px; color: var(--ink-soft); }
.ssys-line:empty { display: none; }
.ssys-list { display: flex; flex-direction: column; }
.ssys-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 9px 2px;
  border-top: 1px solid var(--line);
}
.ssys-row:first-child { border-top: 0; }
.ssys-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ssys-name { font-size: 13.5px; overflow-wrap: anywhere; }
.ssys-meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; margin: 0; }
.ssys-err { font-size: 12.5px; color: var(--danger); }
.ssys-row-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
pre.ssys-log {
  max-height: 52vh;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.ssys-srv-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ssys-out { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ssys-out:empty { display: none; }
.ssys-out > div { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .ssys-row { grid-template-columns: minmax(0, 1fr); }
  .ssys-row-act { justify-content: flex-start; }
  .ssys-kv { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .ssys-kv dd { margin-bottom: 6px; }
}






.sed-tabs { margin: 2px 0; }
.sed-tabbox, .sed-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }


.sed-tg[data-tg="light"] {
  --tg-wall:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22) 1.3px, transparent 1.8px) 0 0 / 24px 24px,
    radial-gradient(circle at 70% 75%, rgba(40, 80, 40, 0.10) 1.3px, transparent 1.8px) 0 0 / 24px 24px,
    linear-gradient(160deg, #d9e3b4 0%, #a9cba0 38%, #8fbd9c 64%, #cfdcae 100%);
  --tg-head: #ffffff;
  --tg-head-ink: #000000;
  --tg-head-line: rgba(0, 0, 0, 0.08);
  --tg-muted: #8a9096;
  --tg-accent: #3390ec;
  --tg-bubble: #ffffff;
  --tg-ink: #000000;
  --tg-time: #a1aab3;
  --tg-link: #2a83d6;
  --tg-code: #1f5f9e;
  --tg-pre: rgba(0, 0, 0, 0.05);
  --tg-quote: rgba(51, 144, 236, 0.10);
  --tg-kb: rgba(34, 68, 40, 0.32);
  --tg-kb-hover: rgba(34, 68, 40, 0.42);
  --tg-kb-ink: #ffffff;
  --tg-ph: rgba(51, 144, 236, 0.14);
  --tg-ph-ink: #1d6ec2;
  --tg-spoiler: rgba(0, 0, 0, 0.12);
}
.sed-tg[data-tg="dark"] {
  --tg-wall:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 1.3px, transparent 1.8px) 0 0 / 24px 24px,
    radial-gradient(circle at 70% 75%, rgba(120, 170, 220, 0.06) 1.3px, transparent 1.8px) 0 0 / 24px 24px,
    linear-gradient(160deg, #14202d 0%, #0e1621 55%, #152331 100%);
  --tg-head: #17212b;
  --tg-head-ink: #f5f5f5;
  --tg-head-line: rgba(0, 0, 0, 0.35);
  --tg-muted: #708499;
  --tg-accent: #5288c1;
  --tg-bubble: #182533;
  --tg-ink: #f5f5f5;
  --tg-time: #6d8396;
  --tg-link: #6ab3f3;
  --tg-code: #7dbbf0;
  --tg-pre: rgba(0, 0, 0, 0.25);
  --tg-quote: rgba(106, 179, 243, 0.10);
  --tg-kb: rgba(78, 110, 145, 0.36);
  --tg-kb-hover: rgba(98, 134, 172, 0.48);
  --tg-kb-ink: #ffffff;
  --tg-ph: rgba(106, 179, 243, 0.16);
  --tg-ph-ink: #8cc6f7;
  --tg-spoiler: rgba(255, 255, 255, 0.14);
}


.sed-phone {
  width: 100%;
  max-width: 380px;
  
  height: min(720px, calc(100vh - 150px));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 9px solid #101012;
  border-radius: 36px;
  overflow: hidden;
  background: var(--tg-head);
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.35), 0 18px 40px rgba(0, 0, 0, 0.22);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tg-ink);
}
.sed-tg-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 9px 8px;
  background: var(--tg-head); color: var(--tg-head-ink);
  border-bottom: 1px solid var(--tg-head-line);
}
.sed-tg-back { font-size: 30px; line-height: 0.8; color: var(--tg-accent); padding: 0 4px 4px; }
.sed-tg-ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 16px;
  background: linear-gradient(160deg, #72d5fd, #2a9ef1);
}
.sed-tg-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sed-tg-who b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sed-tg-who span { font-size: 13px; color: var(--tg-muted); }
.sed-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; background: var(--tg-wall); }
.sed-feed-in { margin-top: auto; padding: 12px 8px 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.sed-tg-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px;
  background: var(--tg-head);
  border-top: 1px solid var(--tg-head-line);
}
.sed-tg-menu { flex: none; display: inline-flex; align-items: center; gap: 5px; background: var(--tg-accent); color: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.sed-tg-menu-i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sed-tg-input { flex: 1; color: var(--tg-muted); font-size: 15px; }


.sed-grp { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 4px; }
.sed-grp.with-kb { width: 92%; }
.sed-bubble {
  position: relative;
  background: var(--tg-bubble); color: var(--tg-ink);
  border-radius: 15px 15px 15px 4px;
  padding: 7px 11px 8px;
  font-size: 14.5px; line-height: 1.38;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.13);
  overflow-wrap: anywhere;
}
.sed-bubble::before {
  content: "";
  position: absolute; left: -7px; bottom: 0;
  width: 12px; height: 15px;
  background: radial-gradient(circle at 0 0, transparent 11.5px, var(--tg-bubble) 12px);
}
.sed-msg { white-space: pre-wrap; }
.sed-msg::after { content: ""; display: inline-block; width: 40px; height: 1px; }
.sed-time { position: absolute; right: 10px; bottom: 5px; font-size: 11.5px; line-height: 1; color: var(--tg-time); }
.sed-msg b { font-weight: 650; }
.sed-msg code { font-family: var(--mono); font-size: 0.9em; color: var(--tg-code); }
.sed-msg pre {
  display: block; margin: 4px 0; padding: 6px 8px;
  border-radius: 6px; background: var(--tg-pre); color: var(--tg-code);
  font-family: var(--mono); font-size: 0.86em; white-space: pre-wrap;
}
.sed-msg blockquote {
  margin: 4px 0; padding: 3px 9px;
  border-left: 3px solid var(--tg-link); border-radius: 4px;
  background: var(--tg-quote);
}
.sed-msg .sed-quote-x { max-height: 4.2em; overflow: hidden; }
.sed-link { color: var(--tg-link); text-decoration: underline; text-underline-offset: 2px; cursor: help; }
.sed-spoiler {
  border-radius: 3px; color: transparent; cursor: help;
  background: var(--tg-spoiler) radial-gradient(circle, var(--tg-ink) 0.7px, transparent 0.9px) 0 0 / 4px 4px;
}
.sed-spoiler:hover { color: inherit; background: var(--tg-spoiler); }
.sed-ph {
  font-family: var(--mono); font-size: 0.84em;
  padding: 0 4px; border-radius: 4px;
  background: var(--tg-ph); color: var(--tg-ph-ink);
}
.sed-ph-ex { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.sed-empty { color: var(--tg-muted); }


.sed-kb { display: flex; flex-direction: column; gap: 4px; }
.sed-kb-row { display: flex; gap: 4px; }
.sed-kb-btn {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 12px;
  border: none; border-radius: 10px;
  background: var(--tg-kb); color: var(--tg-kb-ink);
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s;
}
.sed-kb .sed-kb-row button.sed-kb-btn:hover:not(:disabled),
.sed-kb .sed-kb-row button.sed-kb-btn:active:not(:disabled) {
  transform: none; background: var(--tg-kb-hover); color: var(--tg-kb-ink); border-color: transparent;
}
.sed-kb-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sed-kb-btn.ext::after { content: "↗"; position: absolute; top: 3px; right: 6px; font-size: 10px; opacity: 0.85; }
.sed-kb-btn.m-maybe { outline: 1.5px dashed rgba(255, 255, 255, 0.75); outline-offset: -4px; }
.sed-kb-btn.sel { box-shadow: 0 0 0 2px var(--accent); }


.sed-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sed-bar-act { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.sed-more-at { position: relative; }
.sed-more {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 270px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.sed-more .sed-more-i { text-align: left; background: none; border-color: transparent; padding: 8px 12px; font-size: 13.5px; font-weight: 500; }
.sed-more .sed-more-i.danger { background: none; color: var(--danger); }
.sed-more .sed-more-i:hover:not(:disabled) { transform: none; }
.sed-menu { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.sed-pv-col { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sed-pv-ctl { display: flex; flex-direction: column; gap: 8px; }
.sed-who .seg-btn { padding: 6px 8px; font-size: 13px; }
.sed-view-box:empty { display: none; }
.sed-view { width: 100%; }
.sed-view .seg-btn { flex: 1 1 0; padding: 7px 10px; font-size: 13px; }
.sed-pv-ctl2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.switch-row.sed-adm { min-height: 34px; padding: 3px 10px; flex: 0 0 auto; }
select.sed-lang { width: auto; padding: 6px 10px; }
.sed-tsw { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.sed-tsw .sed-tsw-b { border: none; background: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.sed-tsw .sed-tsw-b:hover:not(:disabled) { transform: none; background: var(--accent-tint); }
.sed-tsw .sed-tsw-b.on { background: var(--accent-tint); color: var(--accent); }
.sed-pv-note { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 380px; }
.sed-off .field-row { margin-top: 4px; }

.sed-ed-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sed-rows { display: flex; flex-direction: column; gap: 8px; }
.sed-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.2s var(--ease), border-color 0.15s;
}
.sed-row.over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
.sed-row.drag-live { transition: none; position: relative; z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); }
.sed-tray { background: var(--surface-2); border-style: dashed; }
.sed-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.sed-row-title { font-size: 13.5px; font-weight: 640; cursor: grab; user-select: none; }
.sed-tray .sed-row-title { cursor: default; }
.sed-row-head .grip { padding: 2px 6px; background: none; border-color: transparent; }
.sed-cond {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
  padding: 3px 10px; border-radius: 999px;
  background: none; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.sed-cond.on { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.sed-cond span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sed-cond-ico, .sed-chip-ico {
  flex: none; width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
select.sed-per { width: auto; margin-left: auto; padding: 4px 8px; font-size: 12.5px; }
.sed-icon-b { padding: 4px 8px; background: none; border-color: transparent; color: var(--muted); }
.sed-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; }
.sed-chips-empty { padding: 6px 2px; font-size: 12.5px; color: var(--muted); }
.sed-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 520;
  background: var(--surface-2);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.sed-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sed-chip-k {
  flex: none; padding: 1px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  background: var(--accent-tint); color: var(--accent);
}
.sed-chip-k.off { background: var(--warn-bg); color: var(--warn); }
.sed-chip.off .sed-chip-t { opacity: 0.55; text-decoration: line-through; }
.sed-chip.fresh { border-style: dashed; color: var(--muted); background: none; }
.sed-chip.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
.sed-chip-ghost { opacity: 0.35; }
.sed-chip-fly {
  position: fixed; left: 0; top: 0; z-index: 1000; margin: 0;
  pointer-events: none;
  background: var(--surface); border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}
.sed-drop-mark { flex: none; align-self: stretch; width: 3px; min-height: 30px; border-radius: 2px; background: var(--accent); }
body.sed-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.sed-add { display: flex; flex-wrap: wrap; gap: 8px; }
.sed-legacy:empty { display: none; }
.sed-leg { display: flex; flex-direction: column; gap: 6px; }
.sed-leg-row { display: flex; align-items: center; gap: 6px; }
.sed-leg-row .switch-row { flex: 1 1 auto; }


.modal.sed-btn-modal { max-width: min(560px, 94vw); gap: 10px; }
.modal.sed-cond-modal { max-width: min(640px, 94vw); gap: 10px; }
.modal.sed-hist-modal { max-width: min(660px, 94vw); }
.modal.sed-tx-modal { max-width: min(660px, 96vw); gap: 10px; }
.sed-m-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 36px; }
.sed-m-id { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.field.sed-f { padding: 4px 0; border-bottom: none; }
.sed-f > .switch-row + input { margin-top: 6px; }
.sed-chat-mini .sed-chat { padding: 12px 10px; }
.sed-tg-solo .sed-kb { max-width: 330px; margin: 0 auto; }
.sed-phs, .sed-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sed-phs { margin-top: 6px; }
.sed-ph-b, .sed-tag-b { font-family: var(--mono); font-size: 12px; padding: 3px 8px; }
input.sed-icon-in { max-width: 220px; }
.sed-where .field-row select { flex: 1 1 200px; }
.sed-cond-list { display: flex; flex-direction: column; gap: 2px; }
.sed-cond-grp { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sed-cond-grp .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); }
.sed-cond-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 4px 0; }
.sed-cond-l { flex: 1 1 200px; font-size: 13.5px; }
.sed-tri { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.sed-tri .sed-tri-b { padding: 4px 10px; font-size: 12.5px; background: none; border-color: transparent; color: var(--muted); }
.sed-tri .sed-tri-b:hover:not(:disabled) { transform: none; }
.sed-tri .sed-tri-b.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-line); }
input.sed-cond-num { width: 150px; }
input.sed-cond-ids { width: 230px; }
input.bad { border-color: var(--danger); }
.sed-hist { display: flex; flex-direction: column; }
.sed-hist-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sed-hist-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.sed-cond-modal > .modal-actions, .sed-btn-modal > .modal-actions {
  position: sticky; bottom: -22px; z-index: 2;
  margin: 0 -24px -22px; padding: 12px 24px 16px;
  background: var(--surface); border-top: 1px solid var(--line);
}


.sed-tx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sed-tx-bar input[type="search"] { flex: 1 1 220px; width: auto; }
.sed-tx-bar select { width: auto; max-width: 240px; }
.sed-modes .seg-btn { padding: 6px 10px; font-size: 13px; }
p.sed-where { margin: -4px 0 0; overflow-wrap: anywhere; }
.sed-count { font-size: 12.5px; color: var(--muted); }
.sed-pend p { margin: 0; }
.sed-tx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.sed-tx-list { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sed-tx-list > .sed-tx-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 9px 12px; text-align: left;
  border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; font-weight: 400; color: var(--ink);
}
.sed-tx-list > .sed-tx-row:hover:not(:disabled) { transform: none; background: var(--surface-2); color: var(--ink); }
.sed-tx-list > .sed-tx-row.on { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.sed-tx-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sed-tx-k code { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.sed-tx-v { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sed-b { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.sed-b.own { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-line); }
.sed-b.draft { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.sed-b.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.sed-tx-list > .sed-tx-more { margin: 8px; align-self: center; }
.sed-tx-pane { position: sticky; top: 12px; min-width: 0; }
.sed-tx-ed { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sed-tx-ed.pane { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sed-tx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 36px; }
.sed-tx-ed.pane .sed-tx-head { padding-right: 0; }
.sed-tx-key { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.sed-tx-state { margin-left: auto; font-size: 12px; color: var(--muted); }
.sed-tx-state.on { color: var(--warn); }
.sed-tx-state.bad { color: var(--danger); }
.sed-tx-pvbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sed-chat { padding: 14px 12px 12px 18px; border-radius: var(--r); background: var(--tg-wall); }
.sed-chat > .sed-feed-in { margin: 0; padding: 0; }
.sed-chat .sed-grp { max-width: 100%; }
textarea.sed-ta { min-height: 120px; font-size: 13px; line-height: 1.45; }
.sed-checks { display: flex; flex-direction: column; gap: 2px; }
.sed-checks:empty { display: none; }
.sed-warn { font-size: 12.5px; color: var(--warn); }
.sed-def summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sed-def-t {
  margin: 8px 0; padding: 8px 10px; max-height: 220px; overflow: auto;
  border-radius: var(--r); background: var(--surface-2);
  font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.sed-tx-act { justify-content: space-between; }


.sed-msgs-bar { justify-content: flex-end; }
section.card.sed-msgs { gap: 12px; }
.sed-msgs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sed-msgs-head h2 { flex: 1 1 auto; }
.sed-msg-list { display: flex; flex-direction: column; gap: 12px; }
.sed-msg-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.sed-msg-card.off .sed-msg-pv { opacity: 0.55; }
.sed-msg-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.sed-msg-side > .pill, .sed-msg-side > button { align-self: flex-start; }
.sed-cnt-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sed-cnt { margin-left: auto; white-space: nowrap; }
input.sed-order { width: 130px; }

@media (max-width: 900px) {
  .sed-menu { grid-template-columns: minmax(0, 1fr); }
  .sed-pv-col { position: static; align-items: center; }
  .sed-pv-ctl, .sed-pv-note, .sed-view-box { width: 100%; max-width: 420px; }
  .sed-phone { max-width: 420px; height: 560px; }
  .sed-tx { grid-template-columns: minmax(0, 1fr); }
  .sed-tx-pane { display: none; }
}
@media (max-width: 760px) {
  .sed-msg-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sed-phone { height: 520px; min-height: 0; border-width: 7px; border-radius: 30px; }
  .sed-who { width: 100%; }
  .sed-bar-act { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .sed-bar-act button { padding: 8px 12px; }
  .sed-bar-act .sed-more-b { font-size: 0; }
  .sed-bar-act .sed-more-b .btn-ico { width: 15px; height: 15px; margin: 0; }
  
  .sed-row-head .sed-cond { order: 9; flex: 1 1 100%; justify-content: flex-start; border-radius: var(--r); }
  .sed-tx-bar select { max-width: none; flex: 1 1 140px; }
  

  .modal.sed-btn-modal, .modal.sed-cond-modal, .modal.sed-hist-modal, .modal.sed-tx-modal { max-width: none; max-height: none; }
  .sed-cond-modal > .modal-actions, .sed-btn-modal > .modal-actions { margin: 0 -16px -22px; padding: 10px 16px 14px; }
}






.sadm { display: flex; flex-direction: column; gap: var(--page-gap); min-width: 0; }
.sadm-tabbody { display: flex; flex-direction: column; gap: var(--page-gap); min-width: 0; }
.sadm-tabs { align-self: flex-start; max-width: 100%; }
.sadm-tabs.sadm-mini .seg-btn { font-size: 12.5px; padding: 5px 12px; }
section.card.sadm-card { gap: 12px; min-width: 0; }
.card-head.sadm-card-head { align-items: center; }
.sadm-card-head h2 { min-width: 0; overflow-wrap: anywhere; }
.card-head-actions.sadm-card-acts { gap: 8px; }
.sadm-name { font-weight: 600; overflow-wrap: anywhere; }
.sadm-sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sadm-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sadm-cell-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.sadm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sadm-minus { color: var(--danger); }
.sadm-plus { color: var(--ok); }
.sadm-count { margin-left: auto; font-size: 12.5px; }
.sadm-link { font-size: 12px; overflow-wrap: anywhere; }
.sadm-ex { max-width: 360px; overflow-wrap: anywhere; }
.sadm-err { margin: 0; }
.sadm-list-plain { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.sadm-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sadm-tiles .tile-val { font-size: 22px; }
.sadm-table td { vertical-align: top; }
.sadm-table .row-actions { text-align: right; }
.sadm-pager { padding-top: 4px; }
.sadm-pager-btns { display: flex; gap: 6px; }


.sadm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.sadm-searchbox { position: relative; flex: 1 1 280px; max-width: 460px; display: block; }
.sadm-search-ico {
  position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
input[type="search"].sadm-search { width: 100%; padding-left: 34px; }


.modal.sadm-modal { gap: 14px; }
.sadm-uhead h3 { overflow-wrap: anywhere; }
.sadm-ucols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.sadm-ucol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sadm-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  min-width: 0;
}
.sadm-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sadm-big { font-size: 26px; font-weight: 640; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sadm-big.bad { color: var(--danger); }
.sadm-fact { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; min-width: 0; }
.sadm-fact > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.sadm-sub-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.sadm-bar { height: 6px; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.sadm-sub-card .sadm-bar { background: var(--line); }
.sadm-bar-in { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: var(--r-sm); }
.sadm-bar.bad .sadm-bar-in { background: var(--danger); }
.sadm-opt { display: flex; flex-direction: column; gap: 4px; }


.sadm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.sadm-form .field.sadm-field,
.field.sadm-field { padding: 6px 0; border-bottom: 0; min-width: 0; }
.sadm-field.wide, .sadm-bool.wide { grid-column: 1 / -1; }
.sadm-field .field-label { font-size: 13.5px; }
.sadm-field[hidden], .sadm-bool[hidden] { display: none; }

.sadm-bool { display: flex; align-items: center; align-self: end; padding: 6px 0; min-width: 0; }
.sadm-bool .switch-row { width: 100%; }
textarea.sadm-area { font-family: var(--sans); font-size: 14px; min-height: 0; }
.sadm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
label.sadm-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 13.5px;
}
label.sadm-check:hover { border-color: var(--accent-line); }
label.sadm-check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-tint); }
.sadm-check-t { overflow-wrap: anywhere; }
.sadm-check-s { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.sadm-rows { display: flex; flex-direction: column; gap: 6px; }
.sadm-row { display: flex; align-items: flex-end; gap: 8px; }
.sadm-row.tall { align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.sadm-row.tall .sadm-rcell { flex: 1 1 0; }
.sadm-rcell { display: flex; flex-direction: column; gap: 3px; flex: 1 1 120px; min-width: 0; }
.sadm-rcell input { width: 100%; }
.sadm-rlab { font-size: 11.5px; color: var(--muted); }
.sadm-row > button { flex: none; }
.sadm-field > button.small { align-self: flex-start; }
.sadm-file { display: none; }


.sadm .seller-blocked > a { align-self: flex-start; }


.sadm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.sadm-tcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--surface);
  min-width: 0;
}
.sadm-tcard.off { border-top-color: var(--line); }
.sadm-tcard.off h3 { color: var(--muted); }
.sadm-tcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sadm-tcard-top h3 { overflow-wrap: anywhere; min-width: 0; }
.sadm-tcard .sadm-acts { margin-top: 4px; }
.sadm-tstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sadm-tstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--r);
  background: var(--surface-2);
  min-width: 0;
}
.sadm-tstat b { font-size: 15px; font-weight: 640; overflow-wrap: anywhere; }

.sadm-aside { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }


.sadm-compose { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sadm-compose-form { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sadm-compose-form .sadm-form { grid-template-columns: minmax(0, 1fr); }
.sadm-compose-form .sadm-count { margin: -4px 0 0; text-align: right; }
.sadm-preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sadm-pin-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }



.sadm-tg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.sadm-tg-bubble {
  align-self: flex-start;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.sadm-tg-text {
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sadm-tg-text.muted { color: var(--muted); }
.sadm-tg-text code { font-family: var(--mono); font-size: 12.5px; padding: 0 3px; border-radius: var(--r-sm); background: var(--surface-2); }
.sadm-tg-text pre {
  margin: 4px 0;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  white-space: pre-wrap;
}
.sadm-tg-text blockquote { margin: 4px 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.sadm-tg-text a, .sadm-tg-a { color: var(--accent); text-decoration: underline; }
.sadm-spoiler { background: var(--ink-soft); color: transparent; border-radius: var(--r-sm); cursor: pointer; }
.sadm-spoiler.open { background: var(--accent-tint); color: inherit; }
.sadm-tg-img { display: block; max-width: 100%; max-height: 260px; object-fit: cover; }
.sadm-tg-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.sadm-tg-kb { display: flex; flex-direction: column; gap: 4px; }
.sadm-tg-kbrow { display: flex; gap: 4px; }
.sadm-tg-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 560;
  border-radius: var(--r);
  color: var(--accent);
  background: var(--accent-tint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .sadm-ucols, .sadm-compose { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sadm-form { grid-template-columns: minmax(0, 1fr); }
  .sadm-count { margin-left: 0; }
  .sadm-ex { max-width: none; }
  .sadm-table .row-actions { text-align: left; white-space: normal; }
  .sadm-table .row-actions > * { margin: 0 6px 6px 0; }
  .sadm-row { flex-wrap: wrap; }
  .sadm-grid { grid-template-columns: minmax(0, 1fr); }
}

