:root {
  --bg: #f4f6f5;
  --panel: #ffffff;
  --ink: #14201f;
  --ink-soft: #55665f;
  --ink-mute: #7d8c86;
  --line: #e2e8e5;
  --line-strong: #cfd9d5;
  --accent: #0f766e;
  --accent-dark: #0b5b55;
  --accent-soft: #e6f3f0;
  --sidebar: #10201d;
  --sidebar-ink: #cfe0da;
  --amber: #b45309;
  --amber-soft: #fdf2e3;
  --red: #b91c1c;
  --red-soft: #fdeaea;
  --green: #15803d;
  --green-soft: #e8f5ec;
  --blue: #1d4ed8;
  --blue-soft: #e8eefc;
  --violet: #6d28d9;
  --violet-soft: #f1ecfd;
  --slate: #475569;
  --slate-soft: #eef1f5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 29, 0.05), 0 8px 24px rgba(16, 32, 29, 0.06);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}

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

.app-loading { padding: 40px; color: var(--ink-soft); }

.layout { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }

/* --- боковая панель --- */
.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 2px 6px 6px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: #14b8a6; color: #052e2b;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand-title { font-size: 16px; font-weight: 700; color: #f2fbf8; letter-spacing: 0.2px; }
.brand-sub { font-size: 12px; color: #8fb3aa; }

.brand-version {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6f8d85;
}

.side-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f8d85; padding: 0 8px; }

.project-picker select {
  width: 100%; background: #16302b; color: #e7f5f1; border: 1px solid #22443d;
  border-radius: 10px; padding: 10px 12px; font-size: 13px;
}

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: #d7e7e1; font-size: 14px; text-decoration: none;
}
.nav a:hover { background: #17352f; text-decoration: none; }
.nav a.active { background: #1d4a43; color: #ffffff; font-weight: 600; }
.nav .badge-count {
  margin-left: auto; background: #1f5f56; color: #d8f5ee; border-radius: 999px;
  padding: 1px 8px; font-size: 11px; font-weight: 600;
}
.sidebar-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px 8px 0; border-top: 1px solid #1d3a34; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #14b8a6; color: #052e2b; display: grid; place-items: center; font-weight: 700; }
.who-name { font-size: 13px; color: #eaf7f4; font-weight: 600; }
.who-role { font-size: 11px; color: #8fb3aa; }

/* --- основная часть --- */
.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 28px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.crumbs { color: var(--ink-soft); font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.health::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.health.bad::before { background: var(--red); }

.content { padding: 26px 28px 60px; max-width: 1360px; }

h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.sub { color: var(--ink-soft); margin: 0 0 20px; }

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--ink-mute); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.grid-2.wide { grid-template-columns: minmax(0, 1fr) 380px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 15px; }
.card-head .muted { margin-left: auto; font-size: 12px; color: var(--ink-mute); }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 0; }
.card + .card { margin-top: 18px; }

/* --- таблицы --- */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; padding: 10px 20px; border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #f7faf9; }
.t-main { font-weight: 600; margin-bottom: 3px; }
.t-sub { font-size: 12px; color: var(--ink-mute); }
.t-num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* --- метки --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.slate { background: var(--slate-soft); color: var(--slate); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.plain { background: var(--slate-soft); color: var(--ink-soft); }
.badge.plain::before { display: none; }

.pill { font-size: 11px; color: var(--ink-mute); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 8px; }

/* --- кнопки и поля --- */
button, .btn {
  font-family: inherit; font-size: 13px; font-weight: 600; border-radius: 10px;
  padding: 9px 16px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--accent-dark); color: #fff; }
button.danger { color: var(--red); border-color: #f0c4c4; background: #fff8f8; }
button.danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.small { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; background: #fff;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfe3dc; border-color: var(--accent); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 11px; color: var(--ink-mute); margin-top: 4px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* --- карточка задания --- */
.task-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.task-head h1 { font-size: 24px; margin-bottom: 6px; }
.task-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-mute); font-size: 12px; align-items: center; }
.task-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.stages { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.stage { padding: 14px 16px; border-right: 1px solid var(--line); position: relative; }
.stage:last-child { border-right: 0; }
.stage-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--slate-soft); color: var(--slate); margin-bottom: 8px; }
.stage.done .stage-num { background: var(--green); color: #fff; }
.stage.active { background: #f3fbf8; }
.stage.active .stage-num { background: var(--accent); color: #fff; }
.stage-title { font-weight: 600; font-size: 13px; }
.stage-hint { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 8px; }
.tabs button { border: 0; background: transparent; border-radius: 0; padding: 12px 12px 10px; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

.timeline { max-height: 520px; overflow: auto; padding: 4px 0; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 9px 20px; border-bottom: 1px solid #f1f5f3; }
.event:last-child { border-bottom: 0; }
.event-time { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); padding-top: 2px; }
.event-text { font-size: 13px; }
.event-actor { font-size: 11px; color: var(--ink-mute); }
.event.error .event-text { color: var(--red); }
.event.status .event-text { font-weight: 600; }

.dialog { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; max-height: 460px; overflow: auto; }
.msg { border-radius: 12px; padding: 11px 14px; background: #f7faf9; border: 1px solid var(--line); }
.msg.user { background: #eff8f5; border-color: #cfe9e2; }
.msg.agent { background: #f7f8fd; border-color: #dfe3f5; }
.msg.system { background: #fffbf2; border-color: #f4e5c8; }
.msg-author { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.msg-text { white-space: pre-wrap; font-size: 13px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f3; font-size: 13px; }
.checklist li:last-child { border-bottom: 0; }
.check-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 11px; flex: none; }
.check-mark.wait { background: var(--slate-soft); color: var(--ink-mute); }
.check-mark.bad { background: var(--red-soft); color: var(--red); }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; }

.note { border-radius: 10px; padding: 12px 14px; font-size: 13px; background: var(--amber-soft); color: #7c4a08; border: 1px solid #f2dcb6; margin-bottom: 14px; }
.note.error { background: var(--red-soft); color: #8f1d1d; border-color: #f2c4c4; }
.note.ok { background: var(--green-soft); color: #14612f; border-color: #c4e6ce; }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-mute); }

.queue-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f3; }
.queue-item:last-child { border-bottom: 0; }
.queue-pos { width: 22px; height: 22px; border-radius: 6px; background: var(--slate-soft); color: var(--slate); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 160px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 24, 22, 0.45); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { background: var(--panel); border-radius: 16px; width: min(660px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px rgba(10, 25, 22, 0.3); }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head button { margin-left: auto; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast div { background: #10201d; color: #eaf7f4; padding: 11px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); max-width: 380px; }
.toast div.error { background: #7f1d1d; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 10%, #10322c 0%, #0d1f1c 55%, #091614 100%); }
.login-card { background: var(--panel); border-radius: 18px; padding: 32px; width: min(420px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card .sub { margin-bottom: 18px; }

.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-mute); margin: 26px 0 10px; }
.section-title:first-child { margin-top: 0; }

.help h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
.help p, .help li { font-size: 13.5px; color: var(--ink-soft); }
.help code { font-family: var(--mono); font-size: 12px; background: #f1f5f3; padding: 1px 6px; border-radius: 6px; }

.tiny { font-size: 11px; color: var(--ink-mute); }
.mono { font-family: var(--mono); font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .grid-2, .grid-2.wide { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(2, 1fr); }
}

/* --- страница входа в стиле Turbo RAG: шапка с логином справа --- */
body.login-body { background: #f7f7f8; }
.login-top {
  background: #2f3039;
  color: #fff;
  box-shadow: 0 2px 10px rgba(23, 24, 28, .18);
}
.login-top-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px clamp(14px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.login-brandline { display: flex; gap: 10px; align-items: center; margin-right: auto; }
.login-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: #3bb888; color: #142620; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.login-brand { font-size: 18px; font-weight: 700; white-space: nowrap; color: #fff; }
.login-brand small { display: block; font-size: 11.5px; font-weight: 400; color: #b6bac4; }
.login-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.login-inline input[type="text"],
.login-inline input[type="password"] {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #17181c;
  width: 190px;
}
.login-inline input[type="password"] { width: 170px; }
.login-inline input:focus { outline: 2px solid #3bb888; border-color: #3bb888; }
.login-remember {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.login-remember input { width: auto; margin: 0; accent-color: #3bb888; }
.login-btn {
  border: 1px solid #3bb888; border-radius: 7px; background: #3bb888;
  color: #142620; font-weight: 600; padding: 9px 18px; font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.login-btn:hover { background: #2fa87c; border-color: #2fa87c; }
.login-hero { background: #f7f7f8; }
.login-hero-inner { max-width: 1080px; margin: 0 auto; padding: 42px clamp(14px, 3vw, 40px) 70px; }
.login-hero h1 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 12px; color: #17181c; }
.login-lead { max-width: 760px; color: #4d5560; font-size: 15px; line-height: 1.65; margin: 0 0 24px; }
.login-error { background: #fde8e8; border: 1px solid #f3c2c2; color: #b91c1c; border-radius: 9px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }
.login-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 22px; }
.login-card2 { background: #fff; border: 1px solid #e3e6e3; border-radius: 12px; padding: 16px 18px; }
.login-card2-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #17181c; }
.login-card2-text { font-size: 13px; color: #5c6f69; line-height: 1.5; }
.login-demo { font-size: 13px; margin: 0 0 6px; }
.login-version { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #9aa4a0; }

.login-brand-version {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #8fb3aa;
  margin-left: 6px;
}

/* --- нумерация строк в полях заданий --- */
.ln-editor {
  display: grid;
  grid-template-columns: 42px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ln-gutter {
  padding: 9px 8px 9px 0;
  margin: 0;
  text-align: right;
  font: 12px/1.5 ui-monospace, Consolas, monospace;
  color: #94a3b8;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}
.ln-gutter div { height: 19.5px; }
.ln-editor textarea.ln-text {
  border: 0;
  border-radius: 0;
  padding: 9px 10px;
  font: 13px/1.5 ui-monospace, Consolas, monospace;
  resize: vertical;
  min-height: 70px;
  box-shadow: none;
}
.ln-editor textarea.ln-text:focus { outline: none; }

/* --- компактная строка «пользователь и связи» --- */
.task-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 2px 0 10px;
}
.task-links label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: #64748b;
}
.task-links select {
  min-width: 170px;
  height: 32px;
  padding: 3px 8px;
  font-size: 13px;
}
.task-links .tiny { align-self: center; }

.task-links select { max-width: 240px; }
.task-links label:nth-child(2) select { max-width: 340px; }

/* --- нумерация строк в реестре заданий --- */
th.row-num, td.row-num {
  width: 46px;
  text-align: right;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* --- колонка «Авто» в списке заданий --- */
th.auto-col, td.auto-col { width: 54px; text-align: center; }
td.auto-col input { width: auto; cursor: pointer; }

/* --- сортируемые заголовки списка заданий --- */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--accent, #14746f); }

/* --- режим выполнения в списке --- */
select.mode-select { width: auto; padding: 2px 6px; font-size: 12px; }

/* --- реестр проектов: вписывается в экран --- */
table.projects-table { table-layout: fixed; width: 100%; }
table.projects-table td, table.projects-table th { overflow: hidden; }
table.projects-table .truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.projects-table .nowrap { white-space: nowrap; }
table.projects-table td.right.nowrap button.small { padding: 2px 8px; }

table.projects-table td .badge { white-space: nowrap; }
table.projects-table td.right.nowrap .small { min-width: 0; }

table.projects-table td.right.nowrap { padding-right: 8px; }
table.projects-table th.right, table.projects-table td.right { text-align: right; }

/* --- карточка локального раннера --- */
.runner-card { border: 1px solid #e2e8ee; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.runner-card .mono { font-family: ui-monospace, Consolas, monospace; }

/* --- действия в реестре заданий --- */
td.row-actions { white-space: nowrap; }
td.row-actions .small { padding: 2px 8px; }

/* --- реестр заданий: вписывается в экран --- */
table.tasks-table { table-layout: fixed; width: 100%; }
table.tasks-table td, table.tasks-table th { overflow: hidden; }
table.tasks-table td .t-main { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
table.tasks-table td.nowrap { white-space: nowrap; }
table.tasks-table td.row-actions { white-space: nowrap; overflow: visible; }

td.row-actions-inline { white-space: nowrap; }
td.row-actions-inline .small { padding: 2px 7px; }

td.row-actions-inline { white-space: normal; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* --- критическое сообщение о сервисах --- */
#critical-banner { display: none; position: fixed; top: 64px; right: 14px; z-index: 900; max-width: 420px; background: #fff4f4; border: 1px solid #e04b4b; border-left: 4px solid #d21f1f; border-radius: 8px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
#critical-banner.visible { display: block; }
#critical-banner .critical-title { color: #b01818; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
#critical-banner ul { margin: 4px 0 0 16px; font-size: 12px; color: #5a2b2b; }
#critical-banner li { margin: 2px 0; }
