/* Manrope (латиниця + кирилиця) з пакета @fontsource/manrope, роздається з /static/fonts */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #5b4fcf;
  --primary-dark: #4a3fb8;
  --primary-soft: #efebff;
  --ink: #2b2753;
  --text-2: #6e6a8e;
  --muted: #8d8aa8;
  --faint: #a9a6c0;
  --line: #eceaf6;
  --line-2: #f1eff8;
  --surface: #ffffff;
  --surface-2: #f5f4fa;
  --aside: #f7f5fe;
  --bg: #5b4fcf;
  --code: #2b2753;

  --up: #22a06b;     --up-bg: #e3f6ec;
  --late: #d27c14;   --late-bg: #fff1df;
  --down: #e5484d;   --down-bg: #fde7e8;
  --new: #7c819c;    --new-bg: #eeeff5;

  --radius: 20px;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 14px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
button { font: inherit; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; display: block; }

/* ---------- Каркас ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; padding: 30px 18px 24px;
  display: flex; flex-direction: column; gap: 8px; color: #fff;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.brand-name { display: block; font-size: 18px; font-weight: 700; line-height: 22px; }
.brand-sub { display: block; font-size: 11px; color: #c9c4f2; line-height: 16px; }
.nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: #c9c4f2; background: none; border: 0; width: 100%; cursor: pointer; text-align: left;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-item.on { background: rgba(255,255,255,0.16); color: #fff; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 700; background: #fff; color: var(--primary); border-radius: 999px; padding: 1px 8px; }
.side-card { background: rgba(255,255,255,0.12); border-radius: var(--radius); padding: 18px; margin-bottom: 8px; }
.side-card-icon { width: 36px; height: 36px; border-radius: 11px; background: #8b7cf6; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #fff; }
.side-card.alarm .side-card-icon { background: var(--down); }
.side-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.side-card-text { font-size: 12px; color: #d9d5f7; line-height: 18px; }

.main { flex: 1; min-width: 0; background: var(--surface); border-radius: 36px 0 0 36px; display: flex; }
.content { flex: 1; min-width: 0; padding: 34px 36px 40px; display: flex; flex-direction: column; gap: 22px; }
.aside { width: 340px; flex-shrink: 0; background: var(--aside); padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; border-radius: 0; }
.main.no-aside .content { max-width: 1100px; }

/* ---------- Шапка сторінки ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); align-self: flex-start; }
.back:hover { color: var(--ink); text-decoration: none; }

.user { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.user-text { text-align: right; }
.user-name { font-size: 13px; font-weight: 700; }
.user-role { font-size: 11px; color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #8b7cf6, #f38bb5); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Кнопки й поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 13px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(91,79,207,0.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: var(--down); }
.btn-danger:hover { background: var(--down-bg); }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 10px; background: #f2f0fc; color: var(--primary); border: 0;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn.danger { color: var(--down); background: var(--down-bg); }

.input, input[type=text], input[type=search], input[type=password], input[type=number], input:not([type]), select {
  height: 42px; border-radius: 12px; border: 1px solid #e4e1f2; background: var(--surface); padding: 0 14px;
  font: inherit; font-size: 13px; color: var(--ink); min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; width: 240px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .hint { font-weight: 500; color: var(--faint); font-size: 11px; }
.with-icon { position: relative; display: flex; align-items: center; }
.with-icon .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.with-icon input { padding-left: 46px; width: 100%; height: 50px; border-radius: 14px; font-size: 14px; }
.duration { display: flex; gap: 8px; }
.duration input { width: 0; flex: 1; }
.duration select { width: 96px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel .grid-2 { grid-template-columns: 1fr; }
form { margin: 0; }

/* ---------- Плашки ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-up { background: var(--up-bg); color: var(--up); }
.pill-late { background: var(--late-bg); color: var(--late); }
.pill-down { background: var(--down-bg); color: var(--down); }
.pill-new, .pill-paused { background: var(--new-bg); color: var(--new); }
.pill-purple { background: var(--primary-soft); color: var(--primary); }
h1 .pill { font-size: 12px; }

/* Пастельні тони для плиток і карток */
.tone-purple { background: #efebff; color: #5b4fcf; }
.tone-pink   { background: #fdebf4; color: #e0559a; }
.tone-mint   { background: #e4f6ee; color: #22a06b; }
.tone-peach  { background: #fff1e3; color: #e8912d; }
.tone-sky    { background: #e8f1ff; color: #3b82f6; }
.tone-grey   { background: #f1eff8; color: #8a8fa8; }
.tone-up     { background: var(--up-bg); color: var(--up); }
.tone-late   { background: var(--late-bg); color: var(--late); }
.tone-down   { background: var(--down-bg); color: var(--down); }
.tone-new    { background: var(--new-bg); color: var(--new); }

.tile { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-lg { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-sm { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-xs { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Картки статистики ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.stat-icon { width: 36px; height: 36px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; }
.stat-num { font-size: 26px; font-weight: 700; line-height: 30px; color: var(--ink); }
.stat-num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat-label { font-size: 12px; color: var(--text-2); }
.stats.compact .stat { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.stats.compact .stat-num { font-size: 20px; line-height: 26px; }

/* ---------- Фільтри ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 11px; border: 0;
  font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); cursor: pointer;
}
.chip:hover { background: var(--line); }
.chip.on { background: var(--primary); color: #fff; }
.chip b { font-weight: 700; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Рядки проєктів ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); min-height: 70px; color: inherit;
}
.row:hover { border-color: #d6d1f3; box-shadow: 0 6px 18px rgba(43,39,83,0.06); text-decoration: none; }
.row.hot { border-color: #f6c9cb; background: #fff8f8; }
.row-main { flex: 1; min-width: 0; }
.row-name { font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-desc { font-size: 12px; color: var(--muted); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-status { width: 118px; flex-shrink: 0; }
.col { width: 116px; flex-shrink: 0; }
.col-ssl { width: 74px; }
.col-label { font-size: 11px; color: var(--faint); line-height: 16px; white-space: nowrap; }
.col-val { font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.spark { display: flex; gap: 2px; align-items: center; height: 24px; width: 88px; flex-shrink: 0; }
.spark i { display: block; width: 2px; flex: 1; height: 22px; border-radius: 2px; background: #dcdaea; }
.spark .s-ok { background: var(--up); }
.spark .s-late { background: #e8912d; }
.spark .s-fail { background: var(--down); }
.go { width: 32px; height: 32px; border-radius: 10px; background: #f2f0fc; color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: 18px; }

/* ---------- Панелі правої колонки ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 13px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 11px; color: var(--muted); line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event { display: flex; gap: 12px; align-items: flex-start; }
.event-text { font-size: 12px; line-height: 18px; }
.event-text b { font-weight: 700; }
.event-time { font-size: 11px; color: var(--faint); line-height: 16px; }
.panel-empty { font-size: 12px; color: var(--muted); }

/* ---------- Картки контенту ---------- */
.card { border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); min-width: 0; }
.card.flush { padding: 18px 10px 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.flush .card-head { padding: 0 12px; }
.muted { font-size: 13px; color: var(--muted); line-height: 20px; }
.small { font-size: 12px; }
.link { font-size: 12px; font-weight: 700; color: var(--primary); }

.copy-field {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 6px 5px 16px; border-radius: 13px;
  background: var(--surface-2); font-family: var(--mono); font-size: 13px;
}
.copy-field span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 13px; align-self: flex-start; flex-wrap: wrap; }
.tab {
  height: 32px; padding: 0 14px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
}
.tab.on { background: var(--surface); color: var(--primary); box-shadow: 0 2px 6px rgba(43,39,83,0.08); }
.code {
  position: relative; background: var(--code); border-radius: 16px; padding: 16px 120px 16px 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 21px; color: #e4e1ff; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0;
}
.code .k { color: #9d90ff; }
.code .s { color: #7ee2b8; }
.code-copy {
  position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 10px; border-radius: 9px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff; font: 700 11px "Manrope", sans-serif; display: inline-flex; align-items: center; gap: 6px;
}
.code-copy:hover { background: rgba(255,255,255,0.2); }
.hint-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); font-size: 12px; color: var(--primary-dark); line-height: 18px; }

/* ---------- Таблиці ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--faint); padding: 0 12px 10px; white-space: nowrap; }
td { font-size: 13px; padding: 11px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
td.mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
td.mut { color: var(--muted); font-size: 12px; }
td.ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td .sub-line { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
td.issuer, td.project { white-space: nowrap; }
td .bar { width: 60px; }
td .error-line { max-width: 220px; }
td .error-line { font-size: 11px; color: var(--down); }
.cell-row { display: flex; align-items: center; gap: 12px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.nowrap { white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: #eeecf7; width: 90px; overflow: hidden; flex-shrink: 0; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar-up { background: var(--up); } .bar-late { background: #e8912d; } .bar-down { background: var(--down); } .bar-new { background: var(--new); }
.kv th { color: var(--text-2); font-size: 13px; font-weight: 600; padding: 12px 12px 12px 0; width: 50%; border-top: 1px solid var(--line-2); white-space: normal; }
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
.kv td { padding-left: 0; }

/* Сітка останніх пінгів */
.heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.heat i { display: block; height: 22px; border-radius: 6px; background: #eeecf7; }
.heat .h-ok { background: #7fd3a8; }
.heat .h-late { background: #f5c27a; }
.heat .h-fail { background: #f19a9d; }
.heat-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }

/* Превʼю повідомлення у Slack */
.slack { background: var(--surface); border-radius: 18px; padding: 16px; display: flex; gap: 12px; border: 1px solid var(--line); }
.slack-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slack-name { font-size: 13px; font-weight: 800; color: #1d1c1d; }
.slack-name .tag { font-size: 10px; font-weight: 700; color: #616061; background: #ebeaeb; border-radius: 3px; padding: 1px 4px; margin-left: 4px; }
.slack-name .time { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.slack-text { font-size: 12.5px; color: #1d1c1d; line-height: 19px; margin-top: 2px; }
.caption { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Повідомлення */
.flash { display: flex; align-items: center; gap: 10px; background: var(--up-bg); color: var(--up); border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 13px; }
.error { background: var(--down-bg); color: var(--down); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px; }

/* ---------- Вхід ---------- */
.login-body { background: #f4f2fc; }
.login { display: flex; min-height: 100vh; }
.login-left {
  width: 44%; max-width: 640px; background: var(--primary); border-radius: 0 40px 40px 0; padding: 56px;
  display: flex; flex-direction: column; color: #fff; position: relative; overflow: hidden;
}
.login-left .brand { padding: 0; position: relative; }
.login-hero { margin-top: 16vh; position: relative; }
.login-hero h2 { font-size: 40px; line-height: 52px; font-weight: 700; letter-spacing: -0.015em; }
.login-hero p { font-size: 15px; color: #d9d5f7; line-height: 24px; margin-top: 16px; max-width: 440px; }
.blob { position: absolute; border-radius: 50%; }
.float { position: absolute; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 20px 40px rgba(31,22,110,0.25); color: var(--ink); display: flex; align-items: center; gap: 12px; }
.float b { display: block; font-size: 13px; font-weight: 700; }
.float span.t { font-size: 11px; color: var(--muted); }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.login-card h1 { font-size: 30px; line-height: 40px; }
.login-card .btn { height: 50px; border-radius: 14px; font-size: 14px; margin-top: 6px; }
.login-foot { font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- Адаптивність ---------- */
@media (max-width: 1280px) {
  .main { flex-direction: column; }
  .aside { width: auto; border-radius: 0 0 0 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .aside .user { display: none; }
}
@media (max-width: 1100px) {
  .spark, .col-ping { display: none; }
}
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; flex-direction: row; align-items: center; padding: 14px 16px; gap: 6px; flex-wrap: wrap; }
  .brand { padding: 0 8px 0 0; }
  .sidebar form { margin-left: auto; }
  .brand-sub, .side-card, .nav-count { display: none; }
  .nav { flex-direction: row; flex: 1; gap: 4px; }
  .nav-item { padding: 9px 12px; gap: 8px; width: auto; }
  .nav-item span { display: none; }
  .main { border-radius: 28px 28px 0 0; }
  .content { padding: 24px 16px 32px; }
  .aside { padding: 20px 16px; border-radius: 0; }
  h1 { font-size: 22px; line-height: 30px; }
  .search input { width: 100%; }
  .head-actions { width: 100%; }
  .head-actions .search { flex: 1; }
  .row { flex-wrap: wrap; gap: 10px 12px; }
  .row-main { flex-basis: calc(100% - 120px); }
  .row-status { width: auto; }
  .col-ssl, .row .go { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .login-left { display: none; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .code { padding-right: 18px; padding-top: 52px; }
}

/* Індикатор живого оновлення */
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--up); vertical-align: middle; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(34,160,107,0.5); animation: live-pulse 2s infinite; }
.live.off { color: var(--faint); }
.live.off i { animation: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,160,107,0.45); } 70% { box-shadow: 0 0 0 7px rgba(34,160,107,0); } 100% { box-shadow: 0 0 0 0 rgba(34,160,107,0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
