

:root {
  color-scheme: light;

  --plane:          #f9f9f7;
  --surface-1:      #fcfcfb;
  --surface-2:      #f3f2ee;
  --surface-3:      #ecebe5;

  --ink:            #0b0b0b;
  --ink-2:          #52514e;
  --ink-muted:      #898781;

  --line:           rgba(11, 11, 11, 0.10);
  --line-strong:    rgba(11, 11, 11, 0.18);
  --grid:           #e1e0d9;
  --axis:           #c3c2b7;

  --series-1:       #2a78d6;
  --series-2:       #eb6834;
  --series-3:       #1baf7a;
  --series-4:       #eda100;
  --series-5:       #e87ba4;
  --series-6:       #008300;
  --series-7:       #4a3aa7;
  --series-8:       #e34948;

  --ok:             #0ca30c;
  --warn:           #fab219;
  --serious:        #ec835a;
  --crit:           #d03b3b;
  --ok-text:        #006300;
  --crit-text:      #b32020;

  --accent:         var(--series-1);
  --accent-ink:     #ffffff;
  --accent-soft:    rgba(42, 120, 214, 0.10);

  --shadow-1:       0 1px 2px rgba(11, 11, 11, 0.05), 0 1px 8px rgba(11, 11, 11, 0.04);
  --shadow-2:       0 4px 12px rgba(11, 11, 11, 0.08), 0 12px 32px rgba(11, 11, 11, 0.06);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --side-w: 232px;
  --top-h:  56px;

  --glow:   0 0 0 rgba(0, 0, 0, 0);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --plane:          #05070a;
  --surface-1:      #0d131b;
  --surface-2:      #141c26;
  --surface-3:      #1d2733;

  --ink:            #e8f4ff;
  --ink-2:          #9fb2cc;
  --ink-muted:      #7e91aa;

  --line:           rgba(57, 255, 158, 0.14);
  --line-strong:    rgba(57, 255, 158, 0.28);
  --grid:           #17222e;
  --axis:           #2b3a4b;

  --series-1:       #00e5ff;
  --series-2:       #ff2e63;
  --series-3:       #39ff9e;
  --series-4:       #ffe049;
  --series-5:       #ff5ec4;
  --series-6:       #7b6cf6;
  --series-7:       #ff9f1a;
  --series-8:       #31d5f0;

  --ok:             #39ff9e;
  --warn:           #ffc24b;
  --crit:           #ff4d6d;
  --ok-text:        #39ff9e;
  --crit-text:      #ff8fa3;

  --accent:         #39ff9e;
  --accent-ink:     #03130b;
  --accent-soft:    rgba(57, 255, 158, 0.16);

  --shadow-1:       0 1px 2px rgba(0, 0, 0, 0.55);
  --shadow-2:       0 4px 16px rgba(0, 0, 0, 0.6), 0 16px 48px rgba(0, 0, 0, 0.5);

  --glow:           0 0 18px rgba(57, 255, 158, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --plane: #05070a;  --surface-1: #0d131b;  --surface-2: #141c26;  --surface-3: #1d2733;
    --ink: #e8f4ff;    --ink-2: #9fb2cc;      --ink-muted: #7e91aa;
    --line: rgba(57,255,158,.14); --line-strong: rgba(57,255,158,.28);
    --grid: #17222e;   --axis: #2b3a4b;
    --series-1: #00e5ff; --series-2: #ff2e63; --series-3: #39ff9e; --series-4: #ffe049;
    --series-5: #ff5ec4; --series-6: #7b6cf6; --series-7: #ff9f1a; --series-8: #31d5f0;
    --ok: #39ff9e;     --warn: #ffc24b;       --crit: #ff4d6d;
    --ok-text: #39ff9e;  --crit-text: #ff8fa3;
    --accent: #39ff9e; --accent-ink: #03130b; --accent-soft: rgba(57,255,158,.16);
    --glow: 0 0 18px rgba(57,255,158,.22);
  }
}

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

html, body { height: 100%; }
html { background: var(--plane); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--plane);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
h1 { font-size: 19px; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
p  { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

code, pre, .np-mono { font-family: var(--mono); font-size: 0.92em; }

.np-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.np-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--r) 0;
}
.np-skip:focus { left: 0; }

.np-shell { display: flex; min-height: 100vh; }

.np-side {
  position: fixed; inset: 0 auto 0 0;
  width: var(--side-w);
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border-right: 1px solid var(--line);
  z-index: 30;
}

.np-main-wrap {
  flex: 1; min-width: 0;
  margin-left: var(--side-w);
  display: flex; flex-direction: column;
}

.np-main {
  flex: 1;
  padding: var(--sp-5);
  max-width: 1500px;
  width: 100%;
}

.np-side__brand {
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.np-brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink); min-width: 0; }
.np-brand:hover { text-decoration: none; }

.np-brand__mark {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
}
.np-brand__mark svg { width: 17px; height: 17px; }

.np-brand__text { display: flex; flex-direction: column; min-width: 0; }
.np-brand__text strong { font-size: 14px; font-weight: 600; }
.np-brand__text small { font-size: 11px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.np-side__close { display: none; }

.np-nav {
  flex: 1; overflow-y: auto;
  padding: var(--sp-3) var(--sp-2);
  display: flex; flex-direction: column; gap: var(--sp-2);
}

.np-nav-group {
  display: flex; flex-direction: column; gap: 1px;
}

.np-nav-group__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 6px var(--sp-3);
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-muted);
  font: 600 11px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}
.np-nav-group__head:hover { background: var(--surface-2); color: var(--ink); }
.np-nav-group__head i {
  width: 14px; height: 14px; flex-shrink: 0;
  position: relative;
  transition: transform .14s ease;
}
.np-nav-group__head i::before {
  content: "";
  position: absolute; inset: 3px 2px 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.np-nav-group.is-collapsed .np-nav-group__head i { transform: rotate(-90deg); }

.np-nav-group__items {
  display: flex; flex-direction: column; gap: 1px;
}
.np-nav-group.is-collapsed .np-nav-group__items { display: none; }

.np-nav-group.is-active .np-nav-group__head {
  color: var(--ink);
}

.np-nav__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 7px var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  transition: background-color .12s, color .12s;
}
.np-nav__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.np-nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.np-nav__link .np-icon { flex-shrink: 0; opacity: .85; }
.np-nav__link.is-active .np-icon { opacity: 1; }

.np-side__foot {
  border-top: 1px solid var(--line);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  flex-shrink: 0;
}

.np-side__user {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2); border-radius: var(--r-sm);
  color: var(--ink); min-width: 0;
}
.np-side__user:hover { background: var(--surface-2); text-decoration: none; }
.np-side__user span { display: flex; flex-direction: column; min-width: 0; }
.np-side__user strong { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-side__user small { font-size: 11px; color: var(--ink-muted); }

.np-top {
  height: var(--top-h);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-5);
  background: color-mix(in srgb, var(--plane) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.np-top__title { flex: 1; font-size: 17px; }

.np-top__actions { display: flex; align-items: center; gap: var(--sp-2); }

.np-top__chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.np-top__chip:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.np-top__chip--alert { color: var(--crit-text); border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); }
.np-top__chip--busy { color: var(--accent); }

.np-top__count {
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.np-top__burger { display: none; }

.np-banner {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-5) 0;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r);
  background: var(--surface-1);
}
.np-banner .np-icon { flex-shrink: 0; margin-top: 1px; }
.np-banner__body { flex: 1; min-width: 0; }
.np-banner__body strong { display: block; margin-bottom: 2px; font-size: 14px; }
.np-banner__body p { margin: 0; font-size: 13px; color: var(--ink-2); }
.np-banner__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; flex-wrap: wrap; }

.np-banner--warn { border-left-color: var(--warn); }
.np-banner--warn > .np-icon { color: var(--warn); }
.np-banner--info { border-left-color: var(--accent); }
.np-banner--info > .np-icon { color: var(--accent); }
.np-banner--err  { border-left-color: var(--crit); }
.np-banner--err > .np-icon { color: var(--crit); }

.np-flashes {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin: var(--sp-4) var(--sp-5) 0;
}

.np-flash {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
  border-radius: var(--r);
  background: var(--surface-1);
  box-shadow: var(--shadow-1);
  font-size: 13.5px;
}
.np-flash span { flex: 1; }
.np-flash .np-icon { flex-shrink: 0; }
.np-flash--ok   { border-left-color: var(--ok);   }
.np-flash--ok   > .np-icon { color: var(--ok-text); }
.np-flash--warn { border-left-color: var(--warn); }
.np-flash--warn > .np-icon { color: var(--warn); }
.np-flash--err  { border-left-color: var(--crit); }
.np-flash--err  > .np-icon { color: var(--crit-text); }
.np-flash--info { border-left-color: var(--accent); }
.np-flash--info > .np-icon { color: var(--accent); }

.np-flash__close {
  border: 0; background: none; padding: 4px; cursor: pointer;
  color: var(--ink-muted); border-radius: var(--r-sm); display: grid; place-items: center;
}
.np-flash__close:hover { color: var(--ink); background: var(--surface-2); }

.np-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-muted);
  display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap;
}
.np-foot__sep { opacity: .5; }

.np-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.np-card__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.np-card__head h2, .np-card__head h3 { flex: 1; min-width: 0; }
.np-card__head-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

.np-card__sub { font-size: 12.5px; color: var(--ink-muted); font-weight: 400; }

.np-card__body { padding: var(--sp-5); }
.np-card__body--flush { padding: 0; }
.np-card__body--tight { padding: var(--sp-4); }

.np-card__foot {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
}

.np-grid { display: grid; gap: var(--sp-4); }
.np-grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.np-grid--2     { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.np-grid--3     { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.np-grid--wide  { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

.np-stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.np-row   { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.np-row--between { justify-content: space-between; }
.np-row--end { justify-content: flex-end; }

.np-section { margin-bottom: var(--sp-5); }
.np-section__head {
  display: flex; align-items: baseline; gap: var(--sp-3);
  margin-bottom: var(--sp-3); flex-wrap: wrap;
}
.np-section__head h2 { flex: 1; }

.np-stat {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}

.np-stat__label {
  font-size: 12px; color: var(--ink-muted);
  text-transform: none; letter-spacing: 0;
}

.np-stat__value {
  font-size: 25px; font-weight: 600; line-height: 1.15;

  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 4px;
  overflow: hidden; text-overflow: ellipsis;
}
.np-stat__unit { font-size: 13px; font-weight: 400; color: var(--ink-muted); }

.np-stat__delta { font-size: 12px; color: var(--ink-muted); }
.np-stat__delta--good, .np-stat__delta--up   { color: var(--ok-text); }
.np-stat__delta--bad,  .np-stat__delta--down { color: var(--crit-text); }

.np-stat__sub { font-size: 12px; color: var(--ink-muted); }
.np-stat__spark { margin-top: var(--sp-2); }

.np-hero {
  font-size: 44px; font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em;
}
.np-hero__unit { font-size: 17px; font-weight: 400; color: var(--ink-muted); }

.np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, opacity .12s;
}
.np-btn:hover { background: var(--surface-2); text-decoration: none; }
.np-btn:disabled, .np-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.np-btn .np-icon { flex-shrink: 0; }

.np-btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.np-btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }

.np-btn--danger {
  background: var(--crit); border-color: var(--crit); color: #ffffff;
}
.np-btn--danger:hover { background: color-mix(in srgb, var(--crit) 88%, black); }

.np-btn--ghost { background: none; border-color: transparent; color: var(--ink-2); }
.np-btn--ghost:hover { background: var(--surface-2); color: var(--ink); }

.np-btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.np-btn--block { width: 100%; }

.np-inline-form { display: inline-flex; margin: 0; }

.np-btn-group { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }

.np-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.np-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.np-badge--ok      { color: var(--ok-text);   background: color-mix(in srgb, var(--ok) 12%, transparent); }
.np-badge--warn    { color: var(--warn);      background: color-mix(in srgb, var(--warn) 16%, transparent); }
.np-badge--err     { color: var(--crit-text); background: color-mix(in srgb, var(--crit) 12%, transparent); }
.np-badge--info    { color: var(--accent);    background: var(--accent-soft); }
.np-badge--neutral { color: var(--ink-2);     background: var(--surface-2); }
.np-badge--muted   { color: var(--ink-muted); background: var(--surface-2); }

.np-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; white-space: nowrap;
}
.np-tag--muted { color: var(--ink-muted); }

.np-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface-1);
}
.np-dot--s1 { background: var(--series-1); }
.np-dot--s2 { background: var(--series-2); }
.np-dot--s3 { background: var(--series-3); }
.np-dot--s4 { background: var(--series-4); }
.np-dot--s5 { background: var(--series-5); }
.np-dot--s6 { background: var(--series-6); }
.np-dot--s7 { background: var(--series-7); }
.np-dot--s8 { background: var(--series-8); }

.np-legend {
  display: flex; gap: var(--sp-4); flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-2);
}
.np-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.np-legend__key { width: 14px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.np-legend__key--s1 { background: var(--series-1); }
.np-legend__key--s2 { background: var(--series-2); }
.np-legend__key--s3 { background: var(--series-3); }
.np-legend__key--s4 { background: var(--series-4); }
.np-legend__value { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.np-table-wrap { overflow-x: auto; }

.np-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.np-table th {
  text-align: left; font-weight: 500; font-size: 12px;
  color: var(--ink-muted);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-1);
  position: sticky; top: 0; z-index: 1;
}
.np-table th a { color: inherit; }
.np-table th a:hover { color: var(--ink); }
.np-table th.is-sorted { color: var(--ink); }

.np-table td {
  padding: 9px var(--sp-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.np-table tbody tr:last-child td { border-bottom: 0; }
.np-table tbody tr:hover { background: var(--surface-2); }

.np-table--num td, .np-table td.np-num, .np-table th.np-num {
  text-align: right; font-variant-numeric: tabular-nums;
}
.np-table td.np-tight { padding-left: 6px; padding-right: 6px; }
.np-table .np-actions { text-align: right; white-space: nowrap; }
.np-table .np-actions form { display: inline-flex; }

.np-table tr.is-dim td { opacity: .55; }
.np-table tr.is-blocked td:first-child { box-shadow: inset 2px 0 0 var(--crit); }

.np-cell-main { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.np-cell-main__text { min-width: 0; }
.np-cell-main__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-cell-main__sub { font-size: 12px; color: var(--ink-muted); }

.np-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-muted); flex-shrink: 0;
}
.np-live--on { background: var(--ok); }
.np-live--off { background: transparent; border: 1px solid var(--axis); }

.np-form { display: flex; flex-direction: column; gap: var(--sp-4); }

.np-fields {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.np-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.np-field--wide { grid-column: 1 / -1; }

.np-field__label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.np-req { color: var(--crit-text); }

.np-field__hint { margin: 0; font-size: 12px; color: var(--ink-muted); line-height: 1.45; }

.np-input {
  width: 100%;
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.np-input:hover { border-color: var(--ink-muted); }
.np-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.np-input:disabled { background: var(--surface-2); color: var(--ink-muted); cursor: not-allowed; }
.np-input--area { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.np-input--mono { font-family: var(--mono); font-size: 12.5px; }

select.np-input { cursor: pointer; }

.np-check {
  display: inline-flex; align-items: flex-start; gap: var(--sp-2);
  cursor: pointer; font-size: 13.5px; line-height: 1.4;
}
.np-check input { margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

.np-form__actions {
  display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap;
  padding-top: var(--sp-2);
}
.np-form__actions--split { justify-content: space-between; }

fieldset.np-fieldset {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-4); margin: 0;
}
fieldset.np-fieldset legend {
  padding: 0 var(--sp-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}

.np-filters {
  display: flex; gap: var(--sp-2); align-items: flex-end; flex-wrap: wrap;
  padding: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
}
.np-filters .np-field { flex: 0 1 auto; min-width: 130px; }
.np-filters .np-field--grow { flex: 1 1 200px; }

.np-search { position: relative; }
.np-search .np-icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); pointer-events: none;
}
.np-search .np-input { padding-left: 31px; }

.np-tabs {
  display: inline-flex; gap: 1px; padding: 2px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.np-tabs__tab {
  padding: 5px 11px; border-radius: 5px;
  font-size: 12.5px; color: var(--ink-2);
  white-space: nowrap;
}
.np-tabs__tab:hover { color: var(--ink); text-decoration: none; }
.np-tabs__tab.is-active {
  background: var(--surface-1); color: var(--ink);
  font-weight: 500; box-shadow: var(--shadow-1);
}

.np-subnav {
  display: flex; gap: var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
  overflow-x: auto;
}
.np-subnav__link {
  padding: var(--sp-3) 2px; color: var(--ink-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap; font-size: 13.5px;
}
.np-subnav__link:hover { color: var(--ink); text-decoration: none; }
.np-subnav__link.is-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }

.np-chart { position: relative; width: 100%; }

.np-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }

.np-chart__grid { stroke: var(--grid); stroke-width: 1; }
.np-chart__axis { stroke: var(--axis); stroke-width: 1; }
.np-chart__tick { fill: var(--ink-muted); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.np-chart__crosshair { stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.np-chart__capture { cursor: crosshair; }

.np-chart--empty {
  display: grid; place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--ink-muted); font-size: 13px; text-align: center;
  padding: var(--sp-5);
}

.np-chart__tip {
  position: absolute; z-index: 5;
  min-width: 150px; max-width: 250px;
  padding: var(--sp-2) 10px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  pointer-events: none;
}
.np-chart__tip-time { color: var(--ink-muted); font-size: 11.5px; margin-bottom: 4px; }
.np-chart__tip-row {
  display: flex; align-items: center; gap: 6px;
  justify-content: space-between;
}
.np-chart__tip-row b { font-variant-numeric: tabular-nums; font-weight: 500; }
.np-chart__tip-name { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }

.np-spark { display: block; }
.np-spark--empty { display: inline-block; width: 96px; height: 26px; }

.np-bars { display: flex; flex-direction: column; gap: var(--sp-3); }
.np-bars__row { display: flex; flex-direction: column; gap: 4px; }
.np-bars__head { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 13px; }
.np-bars__name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-bars__value { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; flex-shrink: 0; }
.np-bars__sub { font-size: 11.5px; color: var(--ink-muted); }

.np-bars__track {
  height: 6px; border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.np-bars__fill { height: 100%; border-radius: 0 3px 3px 0; }
.np-bars__fill--s1 { background: var(--series-1); }
.np-bars__fill--s2 { background: var(--series-2); }
.np-bars__fill--s3 { background: var(--series-3); }
.np-bars__fill--s4 { background: var(--series-4); }
.np-bars__fill--s5 { background: var(--series-5); }
.np-bars__fill--s6 { background: var(--series-6); }
.np-bars__fill--s7 { background: var(--series-7); }
.np-bars__fill--s8 { background: var(--series-8); }

/* Путь по каталогам файлового хранилища. */
.np-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 13px;
  min-width: 0;
}
.np-crumbs a { overflow-wrap: anywhere; }
.np-crumbs__sep { color: var(--ink-muted); }
.np-crumbs > a:last-child { color: var(--ink); font-weight: 500; }

/* Активность по часам суток: 24 столбика во всю ширину карточки. */
.np-hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  height: 118px;
}
.np-hours__col {
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; gap: 4px; min-width: 0;
}
.np-hours__bar {
  background: var(--series-1);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity .15s;
}
.np-hours__col:hover .np-hours__bar { opacity: .75; }
.np-hours__tick {
  font-size: 10px; color: var(--ink-muted);
  text-align: center; font-variant-numeric: tabular-nums;
  height: 12px; line-height: 12px;
}

.np-meter { display: flex; flex-direction: column; gap: 4px; }
.np-meter__head { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: 12px; }
.np-meter__label { color: var(--ink-muted); }
.np-meter__value { font-variant-numeric: tabular-nums; color: var(--ink-2); }

.np-meter__track {
  height: 6px; border-radius: 3px; overflow: hidden;

  background: color-mix(in srgb, var(--accent) 18%, var(--surface-3));
}
.np-meter__fill { height: 100%; border-radius: 3px; transition: width .3s ease-out; }
.np-meter__fill--ok   { background: var(--accent); }
.np-meter__fill--warn { background: var(--warn); }
.np-meter__fill--crit { background: var(--crit); }

.np-sched {
  display: flex; flex-direction: column; gap: 2px;
  overflow-x: auto; padding-bottom: var(--sp-2);
  user-select: none;
}
.np-sched__head, .np-sched__row {
  display: grid;
  grid-template-columns: 34px repeat(var(--cells, 24), minmax(11px, 1fr));
  gap: 2px; align-items: center;
  min-width: 560px;
}
.np-sched[data-granularity="30"] .np-sched__head,
.np-sched[data-granularity="30"] .np-sched__row { --cells: 48; }

.np-sched__hour { font-size: 10px; color: var(--ink-muted); text-align: left; font-variant-numeric: tabular-nums; }
.np-sched__day  { font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.np-sched__corner { }

.np-sched__cell {
  height: 20px; border: 0; padding: 0;
  border-radius: 3px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background-color .08s;
}
.np-sched__cell:hover { background: var(--axis); }
.np-sched__cell.is-on { background: var(--series-1); }
.np-sched__cell.is-on:hover { background: color-mix(in srgb, var(--series-1) 82%, black); }
span.np-sched__cell { cursor: default; }

.np-sched-presets { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

.np-empty, .np-empty-state {
  text-align: center; color: var(--ink-muted);
  padding: var(--sp-6) var(--sp-4);
}
.np-empty-state h3 { color: var(--ink); margin-bottom: var(--sp-2); }
.np-empty-state p { max-width: 460px; margin: 0 auto var(--sp-4); font-size: 13.5px; line-height: 1.6; }

.np-kvs {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}
.np-kv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.np-kv dt { font-size: 12px; color: var(--ink-muted); }
.np-kv dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.np-kv--mono dd, .np-kv--mono { font-family: var(--mono); font-size: 12.5px; }

.np-pager {
  display: flex; gap: var(--sp-1); align-items: center; flex-wrap: wrap;
  padding: var(--sp-4); font-size: 13px;
}
.np-pager__item {
  min-width: 30px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.np-pager__item:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.np-pager__item.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.np-pager__gap { color: var(--ink-muted); padding: 0 2px; }
.np-pager__total { margin-left: auto; color: var(--ink-muted); font-size: 12px; }

.np-pre {
  margin: 0; padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  overflow-x: auto; white-space: pre;
  max-height: 520px; overflow-y: auto;
}

.np-diff { display: block; }
.np-diff__line { display: block; padding: 0 var(--sp-2); }
.np-diff__line--add { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok-text); }
.np-diff__line--del { background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit-text); }
.np-diff__line--hunk { color: var(--ink-muted); background: var(--surface-3); }

.np-qr {
  display: block; border-radius: var(--r-sm);
  background: #fff; padding: 6px;
  box-shadow: var(--shadow-1);
}
.np-qr-wrap { display: flex; gap: var(--sp-4); align-items: flex-start; flex-wrap: wrap; }

.np-spinner {
  width: 13px; height: 13px; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: np-spin .7s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

.np-body { position: relative; background: transparent; }

.np-body::before,
.np-body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.np-body::before {
  background-image:
    linear-gradient(to right, rgba(57, 255, 158, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 255, 158, .045) 1px, transparent 1px);
  background-size: 52px 52px;
}
.np-body::after {
  background:
    radial-gradient(54% 40% at 78% 2%, rgba(57, 255, 158, .10), transparent 70%),
    radial-gradient(48% 38% at 4% 96%, rgba(123, 108, 246, .12), transparent 72%);
}
:root[data-theme="light"] .np-body::before,
:root[data-theme="light"] .np-body::after { display: none; }

.np-side {
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 1px 0 0 var(--line), var(--glow);
}

.np-brand__mark { box-shadow: var(--glow); }

.np-nav__link { font-family: var(--mono); font-size: 12.5px; }
.np-nav__link.is-active {
  box-shadow: inset 2px 0 0 var(--accent), var(--glow);
}

.np-top {
  background: color-mix(in srgb, var(--plane) 82%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
.np-top__title { font-family: var(--mono); letter-spacing: .01em; }

.np-card {
  position: relative;
  background: color-mix(in srgb, var(--surface-1) 90%, transparent);
  transition: border-color .15s, box-shadow .15s;
}
.np-card:hover { border-color: var(--line-strong); }
.np-card__head h2, .np-card__head h3 { font-family: var(--mono); font-size: 14px; }

.np-stat {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--surface-1) 90%, transparent);
  transition: border-color .15s;
}
.np-stat::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .45;
}
.np-stat:hover { border-color: var(--line-strong); }

.np-stat--wide { grid-column: auto; }
@media (min-width: 420px) {
  .np-stat--wide { grid-column: span 2; }
}

.np-stat__label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .09em;
}
.np-stat__value, .np-hero { font-family: var(--mono); }

.np-table th {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--surface-2);
  color: var(--ink-2);
}
.np-table tbody tr { transition: background-color .1s; }
.np-table tbody tr:hover { background: var(--accent-soft); }

.np-badge, .np-tag { font-family: var(--mono); }
.np-badge--ok   { box-shadow: var(--glow); }
.np-btn--primary { box-shadow: var(--glow); }
.np-pager__item.is-active { box-shadow: var(--glow); }

.np-input, .np-check, .np-field__label, .np-btn { font-family: var(--mono); }
.np-field__label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
}
.np-input { caret-color: var(--accent); }

.np-subnav__link, .np-tabs__tab { font-family: var(--mono); }
.np-foot { font-family: var(--mono); }
.np-pre { background: color-mix(in srgb, var(--plane) 60%, var(--surface-2)); }

.np-setup-page {
  display: grid; place-items: start center;
  min-height: 100vh; padding: var(--sp-5) var(--sp-4);
  background: var(--plane);
}
.np-setup { width: 100%; max-width: 720px; }
.np-setup__head { margin-bottom: var(--sp-5); }
.np-setup__head h1 { font-family: var(--mono); margin-bottom: var(--sp-4); }

.np-steps {
  display: flex; gap: var(--sp-4); flex-wrap: wrap;
  margin: 0; padding: 0; list-style: none;
}
.np-steps__item {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted);
}
.np-steps__num {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 11.5px; flex-shrink: 0;
}
.np-steps__item.is-active { color: var(--ink); }
.np-steps__item.is-active .np-steps__num {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
  box-shadow: var(--glow);
}
.np-steps__item.is-done { color: var(--ok-text); }
.np-steps__item.is-done .np-steps__num {
  border-color: var(--ok); color: var(--ok-text);
}

.np-auth-page { display: grid; place-items: center; min-height: 100vh; padding: var(--sp-4); }

.np-auth {
  width: 100%; max-width: 380px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-2);
}
.np-auth__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.np-auth h1 { font-size: 18px; margin-bottom: var(--sp-2); }
.np-auth__hint { font-size: 13px; color: var(--ink-muted); margin-bottom: var(--sp-5); }
.np-auth .np-form { gap: var(--sp-4); }

.np-auth-page {
  color-scheme: dark;

  --plane:          #05070a;
  --surface-1:      rgba(14, 20, 28, .78);
  --surface-2:      rgba(24, 33, 46, .90);
  --surface-3:      #1b2534;

  --ink:            #e8f4ff;
  --ink-2:          #9fb2cc;
  --ink-muted:      #6b7d96;

  --line:           rgba(57, 255, 158, .16);
  --line-strong:    rgba(57, 255, 158, .30);

  --accent:         #39ff9e;
  --accent-ink:     #03130b;
  --accent-soft:    rgba(57, 255, 158, .18);

  --crit:           #ff4d6d;
  --crit-text:      #ff8fa3;

  --shadow-2:
    0 0 0 1px rgba(57, 255, 158, .10),
    0 24px 70px rgba(0, 0, 0, .75),
    0 0 90px rgba(57, 255, 158, .07);

  overflow-x: hidden;
}

.np-hx {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.np-hx > span { position: absolute; display: block; }

.np-hx__grid {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(57, 255, 158, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 255, 158, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(122% 92% at 50% 40%, #000 24%, transparent 78%);
  mask-image: radial-gradient(122% 92% at 50% 40%, #000 24%, transparent 78%);
  animation: np-hx-drift 26s linear infinite;
}

.np-hx__glow {
  inset: 0;
  background:
    radial-gradient(46% 34% at 50% 42%, rgba(57, 255, 158, .16), transparent 70%),
    radial-gradient(40% 30% at 16% 18%, rgba(123, 108, 246, .17), transparent 72%),
    radial-gradient(42% 32% at 84% 82%, rgba(49, 213, 240, .14), transparent 72%);
  animation: np-hx-pulse 9s ease-in-out infinite;
}

.np-hx__scan {
  left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(to bottom,
    transparent, rgba(57, 255, 158, .05) 58%, rgba(57, 255, 158, .13) 86%, transparent);
  animation: np-hx-scan 7.5s linear infinite;
}

.np-auth__sign {
  margin-bottom: var(--sp-5);
  min-width: 0;
  display: grid; place-items: center;
}

.np-inf {
  width: min(100%, 268px); height: auto;
  min-width: 0;
  animation: np-inf-hue 13s linear infinite;
}

.np-inf__halo {
  stroke-width: 10; opacity: .5;
  stroke-dasharray: 100;
  filter: url(#np-inf-blur-lg);
  animation:
    np-inf-draw 2.8s ease-in-out both,
    np-inf-breathe 6.5s ease-in-out 2.8s infinite;
}
.np-inf__aura {
  stroke-width: 4.5; opacity: .5;
  stroke-dasharray: 100;
  filter: url(#np-inf-blur);
  animation: np-inf-draw 2.8s ease-in-out both;
}
.np-inf__line {
  stroke-width: 2.2; opacity: .95;
  stroke-dasharray: 100;
  animation: np-inf-draw 2.8s ease-in-out both;
}

.np-inf__tip {
  stroke-width: 4.6;
  stroke-dasharray: 1.4 98.6;
  filter: url(#np-inf-blur);
  animation:
    np-inf-draw 2.8s ease-in-out both,
    np-inf-run 4.6s linear 2.8s infinite;
}

@keyframes np-inf-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@keyframes np-inf-hue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes np-inf-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes np-inf-breathe { 0%, 100% { opacity: .34; } 50% { opacity: .62; } }
@keyframes np-hx-drift { to { background-position: 46px 46px, 46px 46px; } }
@keyframes np-hx-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes np-hx-scan { from { transform: translateY(0); } to { transform: translateY(350%); } }
@keyframes np-hx-caret { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

.np-auth--hx {
  position: relative; z-index: 1;
  max-width: 420px;
  background:
    linear-gradient(180deg, rgba(57, 255, 158, .05), transparent 42%),
    var(--surface-1);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px) saturate(1.25);
}
.np-auth--hx::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}

.np-brand__mark--hx {
  background: rgba(57, 255, 158, .12);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(57, 255, 158, .25);
}

.np-auth__title { font-family: var(--mono); letter-spacing: .01em; }

.np-auth__hint--hx { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.np-auth__prompt { color: var(--accent); margin-right: 6px; }
.np-auth__hint--hx::after {
  content: "_"; color: var(--accent); font-weight: 700;
  animation: np-hx-caret 1.1s steps(1) infinite;
}

.np-auth-page .np-field__label {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .09em;
}
.np-auth-page .np-input {
  font-family: var(--mono); font-size: 13px;
  background: rgba(5, 9, 14, .72);
  caret-color: var(--accent);
}
.np-auth-page .np-input:focus {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px rgba(57, 255, 158, .22);
}
.np-auth-page .np-check { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.np-auth-page .np-btn { font-family: var(--mono); }
.np-auth-page .np-btn--primary {
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  box-shadow: 0 0 26px rgba(57, 255, 158, .30);
}
.np-auth-page .np-btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.np-auth-page .np-flash { backdrop-filter: blur(8px); }

/* ── Заглушка заблокированного сайта ──────────────────────────────────────── */

.np-blocked {
  max-width: 520px;
  text-align: center;

  /* Красный вместо зелёного: отказ, а не приглашение. */
  --line:        rgba(255, 77, 109, .18);
  --line-strong: rgba(255, 77, 109, .34);

  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 77, 109, .06), transparent 46%),
    var(--surface-1);
  box-shadow:
    0 0 0 1px rgba(255, 77, 109, .10),
    0 24px 70px rgba(0, 0, 0, .78),
    0 0 90px rgba(255, 77, 109, .07);
}
.np-blocked::before {
  background: linear-gradient(90deg, transparent, var(--crit), transparent);
  opacity: .8;
}

/* Фон под заглушкой: сетка нейтральная, чтобы не спорить с радужным знаком,
   а свечение уводим в красное — тревожный тон задаёт оно. */
.np-blocked-page .np-hx__grid {
  background-image:
    linear-gradient(to right, rgba(160, 180, 210, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(160, 180, 210, .05) 1px, transparent 1px);
}
.np-blocked-page .np-hx__glow {
  background:
    radial-gradient(48% 36% at 50% 44%, rgba(255, 77, 109, .16), transparent 70%),
    radial-gradient(40% 30% at 14% 16%, rgba(123, 108, 246, .15), transparent 72%),
    radial-gradient(42% 32% at 86% 84%, rgba(255, 159, 26, .10), transparent 72%);
}
.np-blocked-page .np-hx__scan {
  background: linear-gradient(to bottom,
    transparent, rgba(255, 77, 109, .05) 58%, rgba(255, 77, 109, .12) 86%, transparent);
}

.np-blocked__stamp {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 12px 5px 8px;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 77, 109, .10);
  color: var(--crit-text);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em;
}
.np-blocked__stamp-mark {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  color: var(--crit);
  animation: np-blocked-throb 2.6s ease-in-out infinite;
}
.np-blocked__stamp-mark svg { width: 18px; height: 18px; }

.np-blocked__title {
  font-size: 25px; line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 0 26px rgba(255, 77, 109, .34);
  margin-bottom: var(--sp-3);
}

.np-blocked__lead {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  margin-bottom: var(--sp-5);
}

/* Терминальный журнал отказа. */
.np-blocked__term {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  text-align: left;
  background: rgba(3, 6, 10, .74);
}
.np-blocked__term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px var(--sp-3);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 77, 109, .07);
}
.np-blocked__term-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-muted); opacity: .55; flex-shrink: 0;
}
.np-blocked__term-bar i:first-child { background: var(--crit); opacity: .85; }
.np-blocked__term-bar span {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted);
  letter-spacing: .1em; text-transform: uppercase;
}
.np-blocked__term-body {
  margin: 0; padding: var(--sp-4);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.np-blocked__ln { display: block; }
.np-blocked__ln--err { color: var(--crit-text); font-weight: 600; }
.np-blocked__ln--dim { color: var(--ink-muted); }
.np-blocked__p { color: var(--accent); margin-right: 6px; }
.np-blocked__host-inline { color: var(--ink); }
.np-blocked__caret {
  color: var(--accent); font-weight: 700;
  animation: np-hx-caret 1.1s steps(1) infinite;
}

.np-blocked__meta {
  display: grid; gap: 0;
  margin: 0 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
}
.np-blocked__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3);
  padding: 9px var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.np-blocked__row:last-child { border-bottom: 0; }
.np-blocked__row dt {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .1em;
  flex-shrink: 0;
}
.np-blocked__row dd {
  margin: 0;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  text-align: right; overflow-wrap: anywhere;
}
.np-blocked__who {
  color: var(--accent-ink);
  background: var(--crit);
  padding: 1px 8px; border-radius: var(--r-sm);
  font-weight: 600; letter-spacing: .04em;
}

.np-blocked__call {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.np-blocked__contact {
  font-family: var(--mono); color: var(--accent);
  overflow-wrap: anywhere;
}

.np-blocked__foot {
  font-family: var(--mono); font-size: 11px; color: var(--ink-muted);
  letter-spacing: .08em; text-transform: uppercase;
}

@keyframes np-blocked-throb {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .55; transform: scale(.9); }
}

/* Бесконечность остаётся радужной, как на входе в панель, — это подпись
   системы. Добавляем ей объём, чтобы знак читался главным элементом. */
.np-blocked .np-inf {
  width: min(100%, 300px);
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, .10));
}
.np-blocked .np-auth__sign { margin-bottom: var(--sp-4); }

.np-error-page { display: grid; place-items: center; min-height: 100vh; padding: var(--sp-4); }
.np-error { text-align: center; max-width: 460px; }
.np-error__code { font-size: 60px; font-weight: 600; color: var(--ink-muted); line-height: 1; }
.np-error__title { font-size: 20px; margin: var(--sp-3) 0 var(--sp-2); }
.np-error__msg { color: var(--ink-2); margin-bottom: var(--sp-5); line-height: 1.6; }
.np-error .np-pre { text-align: left; margin-top: var(--sp-4); }

.np-muted   { color: var(--ink-muted); }
.np-dim     { opacity: .6; }
.np-nowrap  { white-space: nowrap; }
.np-num     { font-variant-numeric: tabular-nums; }
.np-small   { font-size: 12px; }
.np-right   { text-align: right; }
.np-center  { text-align: center; }
.np-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-mt   { margin-top: var(--sp-4); }
.np-mb   { margin-bottom: var(--sp-4); }
.np-flex-1 { flex: 1; }
.np-hidden { display: none !important; }

.np-ok-text   { color: var(--ok-text); }
.np-warn-text { color: var(--warn); }
.np-err-text  { color: var(--crit-text); }

.np-details { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.np-details > summary {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  background: var(--surface-1);
  list-style: none;
  display: flex; align-items: center; gap: var(--sp-2);
}
.np-details > summary::-webkit-details-marker { display: none; }
.np-details > summary::before {
  content: "›"; color: var(--ink-muted);
  transition: transform .15s; display: inline-block;
}
.np-details[open] > summary::before { transform: rotate(90deg); }
.np-details > summary:hover { background: var(--surface-2); }
.np-details__body { padding: var(--sp-4); border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .np-grid--wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .np-side {
    transform: translateX(-100%);
    transition: transform .2s ease-out;
    box-shadow: var(--shadow-2);
  }
  .np-side.is-open { transform: none; }
  .np-side__close { display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: var(--r-sm); }
  .np-side__close:hover { background: var(--surface-2); }

  .np-main-wrap { margin-left: 0; }

  .np-top { padding: 0 var(--sp-4); }
  .np-top__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 32px; height: 32px; padding: 0 6px;
    border: 0; background: none; cursor: pointer;
  }
  .np-top__burger span { display: block; height: 1.5px; background: var(--ink); border-radius: 1px; }

  .np-main { padding: var(--sp-4); }
  .np-banner, .np-flashes { margin-left: var(--sp-4); margin-right: var(--sp-4); }
  .np-banner { flex-direction: column; }
  .np-banner__actions { width: 100%; }

  .np-side-backdrop {
    position: fixed; inset: 0; z-index: 25;
    background: rgba(0, 0, 0, .45);
  }
  .np-side-backdrop[hidden] { display: none; }

  .np-card__head { flex-wrap: wrap; }
  .np-grid--stats { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
  .np-stat__value { font-size: 21px; }
  .np-hero { font-size: 34px; }
  .np-table th { position: static; }
}

@media (max-width: 560px) {
  .np-fields { grid-template-columns: 1fr; }
  .np-filters { flex-direction: column; align-items: stretch; }
  .np-filters .np-field { width: 100%; }
  .np-form__actions { flex-direction: column; align-items: stretch; }
  .np-form__actions .np-btn, .np-form__actions .np-inline-form { width: 100%; }
  .np-form__actions .np-inline-form .np-btn { width: 100%; }
}

@media print {
  .np-side, .np-top, .np-foot, .np-banner, .np-flashes, .np-pager,
  .np-filters, .np-actions { display: none !important; }
  .np-main-wrap { margin: 0; }
  .np-main { padding: 0; max-width: none; }
  .np-card { border-color: #ccc; break-inside: avoid; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .np-body::before, .np-body::after { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .np-inf__tip { display: none; }
  .np-inf__halo { opacity: .5; }
  .np-inf__halo, .np-inf__aura, .np-inf__line { stroke-dashoffset: 0; }
  .np-hx__scan { display: none; }
}

@media (forced-colors: active) {
  .np-badge, .np-btn, .np-card, .np-input { border: 1px solid CanvasText; }
  .np-dot, .np-bars__fill, .np-meter__fill { forced-color-adjust: none; }
  .np-hx { display: none; }
  .np-auth--hx { backdrop-filter: none; }
}

@media print {
  .np-hx, .np-auth__sign { display: none !important; }
}
