@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/golos-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/golos-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/golos-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/golos-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/golos-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/golos-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root {
  color-scheme: light;
  --sc-bg: #f7f7f4; --sc-surface: #fff; --sc-surface-2: #f1f1f6;
  --sc-ink: #14152b; --sc-ink-2: #2a2c45; --sc-muted: #5e6078;
  --sc-line: #d9dae3; --sc-line-strong: #b9bbd0;
  --sc-accent: #6f72ff; --sc-accent-text: #4b4ee6; --sc-accent-weak: #eeeeff;
  --sc-error: #b3261e;
  --sc-font-sans: 'Golos Text', system-ui, sans-serif;
  --sc-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --green: #25613a; --amber: #8b5a0d; --red: #a4322c; --unknown: #5e6078;
  --mark-edge: #b9bbd0; --mark-path: #6f72ff;
  font: 400 16px/1.5 var(--sc-font-sans); font-synthesis: none;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --sc-bg: #10112a; --sc-surface: #181a3a; --sc-surface-2: #1f2247;
  --sc-ink: #eceefe; --sc-ink-2: #c9cbe8; --sc-muted: #a9abcf;
  --sc-line: #2a2d57; --sc-line-strong: #3e4170;
  --sc-accent-text: #8b8eff; --sc-accent-weak: #23265a; --sc-error: #ff8a80;
  --green: #9bd8b0; --amber: #efc47b; --red: #f49a93; --unknown: #a9abcf;
  --mark-edge: #3e4170; --mark-path: #8b8eff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --sc-bg: #10112a; --sc-surface: #181a3a; --sc-surface-2: #1f2247;
    --sc-ink: #eceefe; --sc-ink-2: #c9cbe8; --sc-muted: #a9abcf;
    --sc-line: #2a2d57; --sc-line-strong: #3e4170;
    --sc-accent-text: #8b8eff; --sc-accent-weak: #23265a; --sc-error: #ff8a80;
    --green: #9bd8b0; --amber: #efc47b; --red: #f49a93; --unknown: #a9abcf;
    --mark-edge: #3e4170; --mark-path: #8b8eff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sc-bg); color: var(--sc-ink); min-width: 280px; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input { touch-action: manipulation; }
a { text-underline-offset: .2em; }
::selection { color: var(--sc-ink); background: var(--sc-accent-weak); }
:focus-visible { outline: 2px solid var(--sc-accent-text); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(100%, 960px); margin-inline: auto; min-height: var(--tg-viewport-stable-height, 100svh); padding: max(16px, env(safe-area-inset-top), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))) max(16px, env(safe-area-inset-right), calc(var(--tg-safe-area-inset-right, 0px) + var(--tg-content-safe-area-inset-right, 0px))) max(24px, env(safe-area-inset-bottom), calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px))) max(16px, env(safe-area-inset-left), calc(var(--tg-safe-area-inset-left, 0px) + var(--tg-content-safe-area-inset-left, 0px))); }
.masthead { display: flex; align-items: center; min-height: 56px; padding-bottom: 12px; border-bottom: 1px solid var(--sc-line); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; flex-shrink: 0; overflow: visible; }
.mark-edges { fill: none; stroke: var(--mark-edge); stroke-width: 1.6; }
.mark-path { fill: none; stroke: var(--mark-path); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-nodes { fill: var(--sc-ink); }
.mark-source { fill: var(--sc-bg); stroke: var(--sc-ink); stroke-width: 1.6; }
.wordmark { font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -.015em; }
.brand-service { border-left: 1px solid var(--sc-line-strong); padding-left: 8px; font: 500 14px/1.4 var(--sc-font-mono); color: var(--sc-accent-text); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0 16px; }
h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; margin: 0; font-weight: 600; }
.refresh { border: 1px solid var(--sc-line-strong); border-radius: 10px; background: var(--sc-surface); min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.refresh:not(:disabled):hover { border-color: var(--sc-accent-text); background: var(--sc-surface-2); }
.refresh:not(:disabled):active { background: var(--sc-accent-weak); }
.refresh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.overview { --state-color: var(--unknown); background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 10px; padding: 16px 16px 0; }
[data-state='ok'] { --state-color: var(--green); }
[data-state='down'], [data-state='forbidden'] { --state-color: var(--red); }
[data-state='degraded'], [data-state='unavailable'], [data-state='unauthorized'] { --state-color: var(--amber); }
[data-state='unknown'] { --state-color: var(--unknown); }
.signal { flex: 0 0 auto; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.overview h2 { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; overflow-wrap: anywhere; }
.overview h2 { margin-bottom: 12px; }
.status-description { color: var(--sc-muted); line-height: 1.5; font-size: 14px; margin: 0 0 16px; max-width: 70ch; }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; gap: 8px; }
.totals div { display: flex; flex-direction: column; border-left: 1px solid var(--sc-line); padding-left: 10px; }
.totals div:first-child { padding-left: 0; border: 0; }
.totals dt { font-size: 12px; color: var(--sc-muted); margin-bottom: 4px; }
.totals dd { font: 500 22px/1.3 var(--sc-font-mono); margin: auto 0 0; }
#ok-count { color: var(--green); } #incident-count { color: var(--amber); } #unknown-count { color: var(--unknown); }
.snapshot { border-top: 1px solid var(--sc-line); padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--sc-muted); font-size: 12px; line-height: 1.5; }
.snapshot time { font-variant-numeric: tabular-nums; }
.servers-section { margin-top: 20px; }
.list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.list-heading h2 { font-size: 18px; font-weight: 600; margin: 0; }
.filter { position: relative; display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--sc-ink-2); font-size: 14px; cursor: pointer; }
.filter input { width: 18px; height: 18px; margin: 0; accent-color: var(--sc-ink); cursor: pointer; }
.switch { display: none; }
.list-note { color: var(--sc-muted); font-size: 12px; margin: 0 0 12px; line-height: 1.5; }
.server-list { display: grid; gap: 6px; }
.server { min-width: 0; border: 1px solid var(--sc-line); background: var(--sc-surface); border-radius: 10px; }
.server-link { color: inherit; text-decoration: none; min-height: 62px; padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 10px; row-gap: 2px; border-radius: 10px; }
.server-link .badge, .detail-heading .badge { white-space: normal; text-align: right; }
.detail-heading .badge { flex-shrink: 0; max-width: 44%; }
.server-name { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.server-role { display: block; color: var(--sc-muted); font-size: 13px; font-weight: 400; margin-top: 2px; line-height: 1.5; }
.badge { color: var(--state-color); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.5; justify-self: end; align-self: start; white-space: nowrap; padding-top: 2px; }
.server-freshness { font-size: 12px; color: var(--sc-muted); line-height: 1.5; overflow-wrap: anywhere; }
.chevron { justify-self: end; align-self: center; width: 8px; height: 8px; margin-right: 3px; margin-top: -4px; border-bottom: 1.5px solid var(--sc-muted); border-right: 1.5px solid var(--sc-muted); transform: rotate(-45deg); }
.issue-preview { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--state-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.server-body { border-top: 1px solid var(--sc-line); padding: 20px 0 0; }
.detail-caption { color: var(--sc-ink-2); font: 600 16px/1.5 var(--sc-font-sans); margin: 20px 0 10px; }
.detail-caption:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.incident-row { padding: 10px 0; border-top: 1px solid var(--sc-line); }
.check { padding-block: 12px; border-bottom: 1px solid var(--sc-line); }
.check:last-child { border: 0; }
.check-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.check-name { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.check p, .detail-note { color: var(--sc-muted); font-size: 13px; line-height: 1.55; margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ssh-source { margin: 0; color: var(--sc-muted); font-size: 12px; line-height: 1.5; }
.ssh-list { list-style: none; padding: 0; margin: 12px 0 0; border-bottom: 1px solid var(--sc-line); }
.ssh-endpoint { padding: 10px 0; border-top: 1px solid var(--sc-line); }
.ssh-address { font: 500 12px/1.6 var(--sc-font-mono); overflow-wrap: anywhere; min-width: 0; }
.ssh-endpoint p { font-size: 12px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; }
.ssh-reason { color: var(--state-color); }
.ssh-age { color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--sc-line); }
.metrics dt { color: var(--sc-muted); font-size: 12px; }
.metrics dd { margin: 4px 0 0; font: 500 16px/1.5 var(--sc-font-mono); overflow-wrap: anywhere; }
.empty-state { padding: 24px 16px; border: 1px dashed var(--sc-line-strong); border-radius: 10px; }
.empty-mark { display: none; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.empty-state p { font-size: 14px; line-height: 1.5; color: var(--sc-muted); margin: 0; max-width: 65ch; }
footer { border-top: 1px solid var(--sc-line); margin-top: 24px; padding-top: 12px; color: var(--sc-muted); font-size: 12px; line-height: 1.5; }
footer p { margin: 4px 0 0; }
.noscript { padding: 20px; }
@media (min-width: 640px) { .shell { padding-inline: 32px; padding-top: 24px; } .page-heading { margin-top: 24px; } .overview { padding: 20px 24px 0; } .totals { max-width: 480px; } .server-link { padding-inline: 24px; }  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 350px) { .wordmark { font-size: 18px; } .brand-service { font-size: 12px; } .brand-mark { width: 26px; height: 26px; } .brand { gap: 7px; } .brand-service { padding-left: 7px; } .totals div { padding-left: 6px; } .server-link { padding-inline: 12px; column-gap: 8px; }  }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.server-link:hover { background: var(--sc-surface-2); border-color: var(--sc-line-strong); }
.server-link:active { background: var(--sc-accent-weak); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--sc-accent-text); font-size: 14px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.back-link:not([hidden]) + .page-heading { margin-top: 4px; }
.page-heading h1 { overflow-wrap: anywhere; min-width: 0; }
.page-heading .refresh { flex-shrink: 0; }
.detail-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.detail-heading .server-role { margin: 0; font-size: 14px; }
.server-detail > .server-freshness { margin: 6px 0 16px; }
.ssh-inventory { color: var(--sc-muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.ssh-provenance, .ssh-source-time { color: var(--sc-muted); }
.check-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.filter-button { border: 1px solid var(--sc-line-strong); border-radius: 6px; background: var(--sc-surface); min-height: 44px; padding: 8px 12px; font-size: 13px; }
.filter-button:hover { background: var(--sc-surface-2); }
.filter-button:active { background: var(--sc-accent-weak); }
.filter-button[aria-pressed='true'] { background: var(--sc-ink); color: var(--sc-bg); border-color: var(--sc-ink); }

.check { padding: 0; }
.check-link { display: block; min-height: 44px; padding: 14px 4px; color: inherit; text-decoration: none; border-radius: 6px; }
.check-link:hover { background: var(--sc-surface-2); }
.check-link:hover .check-name { text-decoration: underline; text-underline-offset: .2em; }
.check-link:active { background: var(--sc-accent-weak); }
.check-open { display: inline-block; color: var(--sc-accent-text); font-size: 12px; line-height: 1.5; margin-top: 8px; }
.check .diagnostic-summary { color: var(--sc-ink-2); font-size: 14px; }
.attention-group { margin: 0 0 14px; }
.attention-title { margin: 0; padding: 7px 10px; background: var(--sc-surface-2); border-radius: 6px; font-size: 13px; color: var(--sc-ink-2); font-weight: 600; }
.attention-group[data-kind='failure'] .attention-title { color: var(--amber); }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li + li { border-top: 1px solid var(--sc-line); }
.attention-link { display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 2px 8px; align-items: center; padding: 9px 8px; min-height: 44px; border-radius: 6px; text-decoration: none; color: var(--sc-ink); overflow-wrap: anywhere; font-size: 14px; }
.attention-link:hover, .disclosure > summary:hover { background: var(--sc-surface-2); }
.attention-link .chevron { grid-column: 2; grid-row: 1 / span 2; }
.attention-reason { color: var(--sc-muted); font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.compact-check .check-link { display: grid; grid-template-columns: minmax(64px, 5.5rem) minmax(0, 1fr) 10px; align-items: center; gap: 8px; padding: 9px 4px; }
.compact-result { font-size: 13px; color: var(--sc-ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.compact-check:not([data-state='ok']) .compact-result { color: var(--state-color); }
.disclosure { margin: 4px 0; }
.disclosure > summary { min-height: 44px; padding: 11px 4px; border-radius: 6px; cursor: pointer; color: var(--sc-accent-text); font-size: 13px; line-height: 22px; }
.incident-row > .disclosure { margin-bottom: 0; }
.check-summary { font-size: 18px; line-height: 1.5; margin: 16px 0 8px; max-width: 70ch; overflow-wrap: anywhere; }
.check-detail { min-width: 0; }
.check-detail .detail-caption { margin: 28px 0 10px; }
.check-facts { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.check-facts > div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--sc-line); }
.check-facts dt { color: var(--sc-muted); }
.check-facts dd { margin: 0; overflow-wrap: anywhere; max-width: 70ch; font-variant-numeric: tabular-nums; }
.check-facts .diagnostic-target { font-family: var(--sc-font-mono); font-size: 12px; }
.check-steps { padding-left: 22px; margin: 0; max-width: 70ch; font-size: 14px; line-height: 1.65; color: var(--sc-ink-2); }
.check-steps li { padding-left: 4px; margin-bottom: 12px; overflow-wrap: anywhere; }
@media (min-width: 640px) { .check-facts > div { grid-template-columns: 180px minmax(0, 1fr); } }

#monitor-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--sc-line); margin-bottom: 14px; }
#monitor-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--sc-muted); font-size: 14px; }
#monitor-nav a[aria-current='page'] { color: var(--sc-accent-text); box-shadow: 0 2px 0 var(--sc-accent); font-weight: 600; }
.infra-heading { font-size: 18px; margin: 24px 0 8px; }
.infra-list { list-style: none; margin: 8px 0 0; padding: 0; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 10px; }
.infra-host, .infra-ip { padding: 8px 12px 12px; overflow-wrap: anywhere; }
.infra-list li + li { border-top: 1px solid var(--sc-line); }
.infra-row-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
.infra-link { color: var(--sc-accent-text); text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.infra-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 8px 0 4px; }
.infra-metrics dt, .infra-edge { font-size: 13px; color: var(--sc-muted); }
.infra-metrics dd { margin: 2px 0 0; font: 500 15px var(--sc-font-mono); }
.infra-path { border-top: 1px solid var(--sc-line); padding: 10px 0 12px; }
.infra-path h3 { font-size: 15px; margin: 0 0 10px; }
.infra-chain { list-style: none; margin: 0; padding: 0 0 0 12px; }
.infra-step { display: grid; justify-items: start; }
.infra-node { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1px solid var(--sc-line); border-radius: 6px; background: var(--sc-surface); font-size: 14px; font-weight: 500; }
.infra-edge { margin-left: 16px; border-left: 1px solid var(--sc-accent); position: relative; padding: 0 10px; display: flex; align-items: center; min-height: 32px; }
.infra-edge::after { content: ''; position: absolute; bottom: 1px; left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--sc-accent); }
.infra-ip code { font: 500 13px var(--sc-font-mono); }
.infra-usage { font-size: 14px; font-weight: 600; margin: 0; }
#monitor-nav { flex-wrap: wrap; }
.project-panel { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 10px; margin: 0 0 8px; }
.project-panel > summary { font-size: 15px; font-weight: 600; padding-inline: 12px; }
.project-body { padding: 0 12px 12px; }
.project-body h2 { font-size: 14px; margin: 14px 0 6px; }
.project-services { list-style: none; margin: 0; padding: 0; }
.project-services li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; min-height: 44px; padding: 4px 0; overflow-wrap: anywhere; font-size: 14px; }
.project-services li + li { border-top: 1px solid var(--sc-line); }
.infra-edge { overflow-wrap: anywhere; }
