/* Attractor Mini App. Токены — design/miniapp/README.md. Поверхности в Telegram берутся из
   themeParams (app.js переопределяет переменные), акцент — свой. */

:root {
  --bg: #FFFFFF;
  --surface: #F6F6F9;
  --group: #F4F4F7;
  --chip: #F2F2F6;
  --chip-text: #3A3D4F;
  --text: #111222;
  --text-body: #2A2C3A;
  --text2: #6E7183;
  --hint: #9A9DAD;
  --muted: #8A8D9C;
  --sep: #ECECF1;
  --sep-strong: #E4E4EB;
  --accent: #2B33E8;
  --accent-text: #2B33E8;
  --soft: #ECEDFE;
  --soft-text: #2B33E8;
  --ring: #B9BCF7;
  --seg: #F2F2F6;
  --seg-on: #FFFFFF;
  --switch-off: #E1E2EA;
  --card: #FFFFFF;
  --shadow: 0 1px 3px rgba(17, 18, 34, 0.12);
  --tabs-bg: rgba(255, 255, 255, 0.96);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --tabs-h: calc(64px + var(--safe-bottom));
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F1015;
  --surface: #181920;
  --group: #0F1015;
  --chip: #1C1D25;
  --chip-text: #D5D7E2;
  --text: #F1F1F5;
  --text-body: #E2E3EA;
  --text2: #A3A6B6;
  --hint: #7C7F92;
  --muted: #7C7F92;
  --sep: #23242D;
  --sep-strong: #2A2B35;
  --accent-text: #8C92FF;
  --soft: #20235A;
  --soft-text: #B5B9FF;
  --ring: #4A4FA8;
  --seg: #1C1D25;
  --seg-on: #2E2F3A;
  --switch-off: #3A3B47;
  --card: #15161C;
  --shadow: none;
  --tabs-bg: rgba(15, 16, 21, 0.96);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0F1015; --surface: #181920; --group: #0F1015; --chip: #1C1D25; --chip-text: #D5D7E2;
    --text: #F1F1F5; --text-body: #E2E3EA; --text2: #A3A6B6; --hint: #7C7F92; --muted: #7C7F92;
    --sep: #23242D; --sep-strong: #2A2B35; --accent-text: #8C92FF; --soft: #20235A; --soft-text: #B5B9FF;
    --ring: #4A4FA8; --seg: #1C1D25; --seg-on: #2E2F3A; --switch-off: #3A3B47; --card: #15161C;
    --shadow: none; --tabs-bg: rgba(15, 16, 21, 0.96); color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Без системной полосы прокрутки (Telegram Desktop рисует её поверх приложения); прокрутка остаётся. */
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Чипы, переключатель вкладок и нижняя панель — от фона темы Telegram, какой бы он ни был. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  /* Селекторы той же силы, что у тёмной темы выше, — иначе там остались бы готовые цвета. */
  :root, :root[data-theme], :root:not([data-theme]) {
    --chip: color-mix(in srgb, var(--text) 7%, var(--bg));
    --seg: color-mix(in srgb, var(--text) 6%, var(--bg));
    --seg-on: color-mix(in srgb, var(--text) 4%, var(--card));
    --tabs-bg: color-mix(in srgb, var(--bg) 94%, transparent);
  }
  :root[data-theme="dark"] { --seg-on: color-mix(in srgb, var(--text) 14%, var(--bg)); }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
  overscroll-behavior-y: none;
}
body.grouped { background: var(--group); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg { flex: none; }

#app { min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh); }
.screen { padding-bottom: 24px; }
.screen.with-tabs { padding-bottom: calc(var(--tabs-h) + 16px); }
.screen.with-bar { padding-bottom: calc(96px + var(--safe-bottom)); }
.wrap { max-width: 640px; margin: 0 auto; }

/* ── заголовки ── */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; }
.dot { color: var(--accent-text); }
.head-date { font-size: 13px; color: var(--hint); white-space: nowrap; }
.lead { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text2); }
.label { padding: 22px 20px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hint); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text2); }

/* ── фильтр тем ── */
.chips { display: flex; gap: 8px; padding: 12px 20px 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.chip.on { background: var(--accent); color: #FFFFFF; font-weight: 600; }

/* ── «Главное» ── */
.hero { display: block; margin: 0 16px; padding: 20px; border-radius: 20px; background: var(--accent); color: #FFFFFF; }
.hero .kicker { color: #FFFFFF; opacity: 0.75; letter-spacing: 0.08em; }
.hero-title { margin-top: 10px; font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1.18; }
.hero-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.hero-foot .muted { opacity: 0.85; }
.hero .upd { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; padding: 5px 10px; }

/* ── строки ленты ── */
.row { display: block; padding: 14px 20px 16px; border-bottom: 1px solid var(--sep); }
.row:last-child { border-bottom: 0; }
.row-meta { display: flex; justify-content: space-between; gap: 12px; }
.row-meta .time { font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.row-title { margin-top: 7px; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.25; }
.row-foot { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.upd { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--soft-text); background: var(--soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bell { margin-left: auto; color: var(--accent-text); display: inline-flex; }
.breaking { color: #E5484D; }

.notice { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); color: var(--soft-text); font-size: 14px; font-weight: 600; width: calc(100% - 32px); text-align: left; }
.notice > span { flex: 1; min-width: 0; }
.notice small { display: block; font-weight: 500; opacity: 0.8; font-size: 13px; margin-top: 1px; }

/* ── новость ── */
.ev { padding: 18px 20px 0; }
.ev-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 800; font-size: 27px; line-height: 1.2; }
.stats { margin: 18px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: 16px; padding: 12px 6px; }
.stats.card { background: var(--card); }
.stat { display: block; width: 100%; text-align: center; padding: 0 4px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--sep-strong); }
.stat b { display: block; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b.long { font-size: 15px; line-height: 24px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.stat span { display: block; font-size: 12px; color: var(--text2); margin-top: 2px; }
.seg { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--seg); border-radius: 12px; padding: 3px; }
.seg button { text-align: center; font-size: 14px; font-weight: 500; padding: 8px 0; color: var(--text2); border-radius: 10px; }
.seg button.on { font-weight: 600; background: var(--seg-on); color: var(--text); box-shadow: var(--shadow); }
.prose { margin: 16px 20px 0; font-size: 16px; line-height: 1.55; color: var(--text-body); white-space: pre-line; }
.making { margin: 12px 20px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hint); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ring); border-top-color: var(--accent-text); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.retry { color: var(--accent-text); font-weight: 600; }

.tl { margin: 10px 20px 0; }
.tl-item { display: flex; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.tl-dot.old { background: transparent; border: 2px solid var(--ring); }
.tl-line { width: 2px; flex: 1; background: var(--sep-strong); margin-top: 4px; }
.tl-body { padding-bottom: 14px; min-width: 0; }
.tl-when { font-size: 13px; color: var(--text2); }
.tl-text { margin-top: 3px; font-size: 15px; line-height: 1.45; }
.tl-item.old .tl-text { color: var(--chip-text); }
.refs { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.refs a { color: inherit; }

.facts { margin: 16px 20px 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: 0 0 14px 18px; font-size: 16px; line-height: 1.5; color: var(--text-body); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.conflict { margin: 4px 20px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.45; color: var(--text2); }
.conflict b { color: var(--text); }

.list { padding: 0 20px; }
.src { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--sep); width: 100%; text-align: left; }
.src:last-child { border-bottom: 0; }
.src-name { flex: 1; font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-name.first { font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; color: var(--soft-text); background: var(--soft); padding: 2px 8px; border-radius: 999px; }
.src-time { font-size: 14px; color: var(--text2); width: 44px; text-align: right; }
.src-note { font-size: 12px; color: var(--hint); }

/* ── слежу ── */
.fcard { display: block; margin: 12px 16px 0; padding: 16px 16px 14px; border: 1px solid var(--sep); border-radius: 18px; }
.fcard:first-of-type { margin-top: 16px; }
.fcard .count { color: var(--accent-text); letter-spacing: 0.02em; white-space: nowrap; }
.fcard .tl { margin: 14px 0 0; }
.fcard .tl-when { font-size: 12px; }
.fcard .tl-text { margin-top: 2px; font-size: 15px; line-height: 1.4; }
.fcard .refs { font-size: 12px; margin-top: 3px; }
.more { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text2); }

/* ── темы ── */
.estimate { margin: 16px 16px 6px; padding: 14px 16px; border-radius: 18px; background: var(--soft); display: flex; align-items: center; gap: 14px; }
.estimate b { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1; color: var(--soft-text); white-space: nowrap; }
.estimate strong { display: block; font-size: 15px; font-weight: 700; }
.estimate span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text2); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--sep); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle-text { flex: 1; min-width: 0; }
.toggle-text b { display: block; font-size: 16px; font-weight: 600; }
.toggle-text span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--switch-off); position: relative; margin: 0; flex: none; cursor: pointer; transition: background 0.15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(17, 18, 34, 0.25); transition: transform 0.15s; }
.sw:checked { background: var(--accent); }
.sw:checked::after { transform: translateX(18px); }

/* ── дайджест ── */
.dg-title { margin-top: 8px; }
.dg-date { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hint); }
.num { display: flex; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--sep); width: 100%; text-align: left; }
.num:last-child { border-bottom: 0; }
.num-n { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1; color: var(--accent-text); width: 18px; flex: none; }
.num-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.25; }
.num-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--text2); }
.night { margin-top: 8px; background: var(--surface); padding-bottom: 8px; }
.night .label { padding-top: 18px; }
.night-list { padding: 0 20px; }
.night-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sep-strong); font-size: 15px; line-height: 1.35; width: 100%; text-align: left; }
.night-row:last-child { border-bottom: 0; }
.night-row > span:first-child { flex: 1; min-width: 0; }
.chev { color: var(--hint); display: inline-flex; flex: none; }

/* ── профиль ── */
.who { display: flex; flex-direction: column; align-items: center; padding: 24px 20px 6px; text-align: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; font-size: 36px; }
.who-name { margin-top: 12px; font-family: var(--serif); font-weight: 800; font-size: 24px; }
.who-since { margin-top: 4px; font-size: 13px; color: var(--text2); }
.group-label { padding: 22px 32px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hint); }
.group { margin: 0 16px; background: var(--card); border-radius: 16px; padding: 0 16px; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--sep); width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item-text { flex: 1; font-size: 16px; font-weight: 500; min-width: 0; }
.item-text small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.item-value { font-size: 15px; color: var(--muted); white-space: nowrap; }
.item.toggle { padding: 12px 0; }
.foot-note { padding: 18px 32px 0; font-size: 12px; line-height: 1.45; color: var(--hint); }

/* ── формы ── */
.field { margin: 16px 16px 0; display: flex; gap: 8px; }
.input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--sep-strong); background: var(--card); color: var(--text); font: inherit; font-size: 16px; padding: 0 14px; outline: none; }
.input:focus { border-color: var(--accent-text); }
.suggest { margin: 12px 16px 0; }

/* ── пустые состояния ── */
.empty { padding: 40px 32px; text-align: center; color: var(--text2); font-size: 15px; line-height: 1.5; }
.empty b { display: block; color: var(--text); font-family: var(--serif); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 600; }
.btn.soft { background: var(--soft); color: var(--soft-text); }
.btn.wide { width: 100%; }
.empty .btn { margin-top: 18px; }

/* ── скелет загрузки ── */
.sk { padding: 14px 20px 16px; border-bottom: 1px solid var(--sep); }
.sk i { display: block; height: 12px; border-radius: 6px; background: var(--surface); margin-top: 10px; animation: pulse 1.2s ease-in-out infinite; }
.sk i:first-child { width: 40%; margin-top: 0; }
.sk i:nth-child(2) { height: 18px; width: 92%; }
.sk i:nth-child(3) { height: 18px; width: 70%; margin-top: 6px; }
@keyframes pulse { 50% { opacity: 0.5; } }
.sentinel { height: 1px; }

/* ── вкладки ── */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--tabs-h); padding-bottom: var(--safe-bottom); background: var(--tabs-bg); border-top: 1px solid var(--sep); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 8px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tab.on { color: var(--accent-text); font-weight: 600; }
.tab i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.tab.on i { background: var(--accent-text); }

/* ── кнопки внизу вне Telegram (в Telegram — MainButton и SecondaryButton) ── */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + var(--safe-bottom)); background: var(--bg); border-top: 1px solid var(--sep); display: flex; gap: 10px; }
.bar .btn { flex: 1.4; }
.bar .btn.soft { flex: 1; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs-h) + 12px); z-index: 20; margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: 14px; background: #111222; color: #FFFFFF; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 24px rgba(17, 18, 34, 0.25); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
:root[data-theme="dark"] .toast { background: #F1F1F5; color: #111222; }
.toast.show { opacity: 1; transform: none; }

/* ── страница вне Telegram ── */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-hero { background: var(--accent); color: #FFFFFF; padding: 56px 24px 40px; }
.landing-hero img { width: 72px; height: 72px; border-radius: 18px; display: block; }
.landing-hero h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1.02; letter-spacing: -0.01em; }
.landing-hero p { margin: 14px 0 0; font-size: 17px; line-height: 1.5; opacity: 0.9; max-width: 520px; }
.landing-body { padding: 8px 24px 40px; flex: 1; }
.landing-body .btn { margin-top: 28px; }
.feature { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--sep); }
.feature:last-of-type { border-bottom: 0; }
.feature svg { color: var(--accent-text); margin-top: 2px; }
.feature b { display: block; font-size: 16px; }
.feature span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.landing-foot { padding: 0 24px 28px; font-size: 12px; color: var(--hint); }
.boot { min-height: 60vh; }

@media (min-width: 700px) {
  .landing-hero, .landing-body, .landing-foot { padding-left: calc(50vw - 300px); padding-right: calc(50vw - 300px); }
}

/* ───────────── знакомство (design/miniapp/onboarding) ───────────── */

:root {
  --ob-ill: #F4F5FB; --ob-card: #FFFFFF; --ob-line: #E3E4EE; --ob-dot: #D9DAE3; --ob-q: #C9CBD8;
  --ob-night: #E4E6F7; --ob-moon: #5D63D6; --ob-sub: #5D6072; --ob-shadow: 0 6px 24px rgba(43, 51, 232, 0.12);
  --f1: #C3C5D2; --f1t: #8A8D9C; --f2: #8A8D9C; --f2t: #6E7183; --rail: linear-gradient(#E4E5EE, #B9BCF7);
}
:root[data-theme="dark"] {
  --ob-ill: #181920; --ob-card: #1F2029; --ob-line: #2E2F3A; --ob-dot: #34353F; --ob-q: #3A3B47;
  --ob-night: #20235A; --ob-moon: #8C92FF; --ob-sub: #A3A6B6; --ob-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --f1: #3E404C; --f1t: #7C7F92; --f2: #6E7183; --f2t: #A3A6B6; --rail: linear-gradient(#2A2B35, #4A4FA8);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  /* В «как в Telegram» фон любой — подложки и карточки иллюстраций считаются от него. */
  :root, :root[data-theme] {
    --ob-ill: color-mix(in srgb, #2B33E8 4%, color-mix(in srgb, var(--text) 3%, var(--bg)));
    --ob-line: color-mix(in srgb, var(--text) 12%, var(--bg));
  }
  :root[data-theme="dark"] {
    --ob-ill: color-mix(in srgb, #2B33E8 6%, color-mix(in srgb, var(--text) 6%, var(--bg)));
    --ob-card: color-mix(in srgb, var(--text) 10%, var(--bg));
  }
}

body.ob-blue { background: #2B33E8; }
.ob {
  min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh);
  display: flex; flex-direction: column; max-width: 560px; margin: 0 auto;
  padding-top: calc(12px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
}
.ob-text { padding: 26px 28px 0; flex: 1; }
.ob-text.top { flex: none; padding-top: 14px; }
.ob-dots { display: flex; gap: 7px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ob-dot); }
.ob-dots i.on { background: var(--accent-text); }
.ob-h { margin: 18px 0 0; font-family: var(--serif); font-weight: 900; font-size: 31px; line-height: 1.12; letter-spacing: -0.01em; }
.ob-p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--ob-sub); }
.ob-foot { position: sticky; bottom: 0; padding: 12px 16px calc(18px + var(--safe-bottom)); background: var(--bg); }
.ob-btn { height: 52px; border-radius: 14px; font-size: 17px; }
.ob-skip { display: block; width: 100%; height: 42px; text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }
.ob-note { text-align: center; font-size: 13px; color: var(--hint); margin-bottom: 12px; }

/* иллюстрация 358×388 из макета, масштаб --k ставит app.js */
.ill-wrap { --k: 1; position: relative; height: calc(388px * var(--k)); margin: 0 16px; overflow: hidden; border-radius: calc(28px * var(--k)); background: var(--ob-ill); flex: none; }
.ill { position: absolute; top: 0; left: calc(50% - 179px * var(--k)); width: 358px; height: 388px; transform: scale(var(--k)); transform-origin: top left; }
.ill svg { position: absolute; left: 0; top: 0; }
.ill-acc { fill: var(--accent); }
.ill-q { fill: var(--ob-q); }
.ill-line { fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-opacity: 0.45; stroke-linecap: round; }
.ill-card { position: absolute; background: var(--ob-card); border-radius: 18px; box-shadow: var(--ob-shadow); }
.ill-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text2); }
.ill-title { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.22; color: var(--text); }
.ill-title.sm { font-size: 16.5px; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ill-chips { position: absolute; left: 24px; right: 24px; top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.ill-chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ob-card); border: 1px solid var(--ob-line); font-size: 13px; font-weight: 600; color: var(--chip-text); display: flex; align-items: center; position: relative; z-index: 1; }
.ill-card-1 { left: 24px; top: 232px; width: 310px; padding: 14px 16px 15px; }
.ill-foot { margin-top: 9px; display: flex; gap: 8px; font-size: 12.5px; color: var(--text2); }
.ill-foot b { font-weight: 600; color: var(--accent-text); }

.ill-flow { position: absolute; left: 18px; top: 26px; width: 300px; display: flex; flex-direction: column; gap: 12px; }
.ill-flow .ill-card { position: static; }
.ill-msg { padding: 12px 14px 10px; border-radius: 16px 16px 16px 6px; box-shadow: 0 1px 2px rgba(17, 18, 34, 0.06); }
.ill-row { margin-top: 7px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.ill-row b { font-weight: 600; color: var(--accent-text); }
.ill-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ill-btns span { height: 34px; border-radius: 10px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--chip-text); display: flex; align-items: center; justify-content: center; gap: 5px; }
.ill-btns span.on { background: var(--accent); color: #FFFFFF; }
.ill-btns svg { position: static; width: 14px; height: 14px; }
.ill-reply { margin-top: 12px; box-shadow: var(--ob-shadow); padding-top: 10px; }
.ill-quote { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--soft); }
.ill-quote i { width: 3px; border-radius: 2px; background: var(--accent-text); flex: none; }
.ill-quote > span { min-width: 0; }
.ill-quote b { display: block; font-size: 12px; color: var(--soft-text); }
.ill-quote span span { display: block; font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ill-upd { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.ill-upd svg { position: static; }
.ill-text { margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ill-legend { position: absolute; left: 24px; right: 24px; top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ob-sub); }
.ill-legend > span:first-child { font-weight: 700; letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; color: var(--text2); }
.ill-legend i { display: inline-block; border-radius: 50%; margin: 0 5px 0 10px; vertical-align: -1px; }
.ill-legend i.l { width: 10px; height: 10px; background: var(--accent); margin-left: 0; }
.ill-legend i.q { width: 8px; height: 8px; background: var(--ob-q); }
.ill-night { fill: var(--ob-night); }
.ill-moon { stroke: var(--ob-moon); }
.ill-moon-t { fill: var(--ob-moon); font-family: var(--sans); }
.ill-ring { stroke: #8C92FF; }
.ill-axis { stroke: var(--ob-q); }
.ill-tick { fill: var(--muted); font-family: var(--sans); }
.ill-digest { left: 164px; top: 292px; width: 178px; padding: 11px 14px 12px; border-radius: 16px; }
.ill-digest .ill-kicker { font-size: 11px; letter-spacing: 0.06em; }
.ill-dg { margin-top: 4px; font-family: var(--serif); font-weight: 800; font-size: 17px; line-height: 1.15; }
.ill-urgent { position: absolute; left: 24px; top: 302px; width: 126px; display: flex; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--ob-sub); }
.ill-urgent i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 4px; }

/* заставка «Цифры» */
.ob-splash { padding-left: 28px; padding-right: 28px; }
.ob-splash .ob-foot { margin: 0 -12px; }
.ob-brand { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1; padding-top: 1px; }
.brand-mark i { width: 4px; height: 4px; border-radius: 50%; background: #FFFFFF; margin-left: 1px; align-self: flex-end; margin-bottom: 12px; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.ob-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 8px; min-height: 300px; }
.ob-splash .dg-date { margin-bottom: 18px; }
.funnel { position: relative; padding-left: 32px; }
.funnel::before { content: ""; position: absolute; left: 6px; top: 24px; bottom: 64px; width: 2px; background: var(--rail); }
.fstep { position: relative; margin-bottom: 30px; }
.fstep:last-child { margin-bottom: 0; }
.fstep::before { content: ""; position: absolute; left: -30px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--f1); }
.fstep b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 13vw, 54px); line-height: 1; color: var(--f1); white-space: nowrap; }
.fstep span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--f1t); }
.fstep.f2 b { color: var(--f2); }
.fstep.f2::before { background: var(--f2); }
.fstep.f2 span { color: var(--f2t); }
.fstep.f3 b { font-size: clamp(64px, 22vw, 92px); color: var(--accent-text); }
.fstep.f3::before { left: -33px; top: 38px; width: 16px; height: 16px; background: var(--accent); }
.fstep.f3 span { font-size: 16px; font-weight: 600; color: var(--text); }
.funnel-wait { height: 300px; }
.ob-tag { margin: 18px 0; font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.12; letter-spacing: -0.01em; }

/* светлая или тёмная */
.ob-theme .ob-text.top { padding-top: 22px; }
.opts { padding: 22px 16px 0; flex: 1; }
.opts-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; display: block; border-radius: 20px; border: 2px solid var(--ob-line); padding: 9px; cursor: pointer; transition: border-color 0.15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: #2B33E8; }
.opt:has(input:focus-visible) { outline: 2px solid #2B33E8; outline-offset: 2px; }
.rad { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hint); display: inline-flex; align-items: center; justify-content: center; }
.opt:has(input:checked) .rad { border-color: #2B33E8; background: #2B33E8; }
.opt:has(input:checked) .rad::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; }
.opt-label { display: flex; align-items: center; gap: 9px; padding: 11px 4px 3px; font-size: 15px; font-weight: 600; }
.opt-auto { margin-top: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.opt-text { flex: 1; min-width: 0; }
.opt-text b { display: block; font-size: 15px; font-weight: 600; }
.opt-text span { display: block; margin-top: 2px; font-size: 13px; color: var(--hint); }
.pv { display: block; height: clamp(170px, 30vh, 246px); border-radius: 13px; padding: 12px 11px; overflow: hidden; }
.pv-light { background: #FFFFFF; border: 1px solid #ECECF1; --pv-t: #111222; --pv-a: #2B33E8; --pv-m: #C9CBD8; --pv-s: #ECECF1; }
.pv-dark { background: #0F1015; border: 1px solid #23242D; --pv-t: #E4E5EC; --pv-a: #8C92FF; --pv-m: #3A3B47; --pv-s: #23242D; }
.pv-h { display: block; font-family: var(--serif); font-weight: 900; font-size: 16px; line-height: 1; color: var(--pv-t); }
.pv-h span { color: var(--pv-a); }
.pv-hero { display: block; margin-top: 9px; border-radius: 8px; background: #2B33E8; padding: 8px 8px 9px; }
.pv-hero i { display: block; height: 6px; border-radius: 3px; background: #FFFFFF; margin-top: 4px; }
.pv-hero i:first-child { width: 46%; height: 3px; margin-top: 0; background: rgba(255, 255, 255, 0.6); }
.pv-hero i:nth-child(2) { width: 92%; margin-top: 6px; }
.pv-hero i:nth-child(3) { width: 64%; }
.pv-row { display: block; padding: 9px 0 8px; border-bottom: 1px solid var(--pv-s); }
.pv-row i { display: block; height: 5px; border-radius: 3px; background: var(--pv-t); margin-top: 4px; }
.pv-row i:first-child { height: 3px; background: var(--pv-m); margin-top: 0; }
.pv-row i:nth-child(2) { margin-top: 6px; }
.pv-r1 i:nth-child(1) { width: 38%; } .pv-r1 i:nth-child(2) { width: 94%; } .pv-r1 i:nth-child(3) { width: 70%; }
.pv-r2 i:nth-child(1) { width: 30%; } .pv-r2 i:nth-child(2) { width: 88%; } .pv-r2 i:nth-child(3) { width: 56%; }
.pv-r3 i:nth-child(1) { width: 42%; } .pv-r3 i:nth-child(2) { width: 90%; } .pv-r3 i:nth-child(3) { width: 62%; }
.pv-tabs { display: flex; justify-content: space-around; padding-top: 10px; }
.pv-tabs i { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-m); }
.pv-tabs i.on { background: var(--pv-a); }

/* готово */
.ob-done { background: #2B33E8; color: #FFFFFF; padding-left: 30px; padding-right: 30px; }
.done-mark { margin-top: clamp(20px, 8vh, 80px); font-family: var(--serif); font-weight: 900; font-size: clamp(140px, 48vw, 210px); line-height: 1; white-space: nowrap; }
.done-mark i { display: inline-block; width: 0.23em; height: 0.23em; border-radius: 50%; background: #FFFFFF; margin-left: 0.04em; }
.done-text { flex: 1; margin-top: clamp(16px, 5vh, 56px); }
.done-text h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.01em; }
.done-text h1 i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; margin-left: 3px; }
.done-text p { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.done-pills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.done-pill { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.done-pill i { width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; }
.done-hint { font-size: 13px; padding: 7px 4px; color: rgba(255, 255, 255, 0.72); }
.ob-done .ob-foot { background: #2B33E8; margin: 0 -14px; }
.done-btn { height: 52px; border-radius: 14px; background: #FFFFFF; color: #2B33E8; font-size: 17px; font-weight: 700; }

@media (max-height: 700px) {
  .ob-h { font-size: 26px; margin-top: 12px; }
  .ob-p { font-size: 15px; margin-top: 8px; }
  .ob-text { padding-top: 16px; }
  .ob-tag { font-size: 26px; }
  .fstep { margin-bottom: 18px; }
}

/* ───────────── Админка ─────────────
   Палитра графиков — эталонная навыка dataviz с фирменным индиго первым цветом; проверена
   скриптом на различимость при дальтонизме: светлая — на #FFFFFF, тёмная — на #15161C.
   Статусы (норма/внимание/сбой) — свои цвета и всегда с подписью. */
:root {
  --c1: #2B33E8; --c2: #EB6834; --c3: #1BAF7A; --c4: #EDA100; --c5: #E87BA4; --c6: #008300;
  --c-other: #A3A5B3; --good: #006300; --bad: #D03B3B;
  --st-good: #0CA30C; --st-warning: #FAB219; --st-serious: #EC835A; --st-critical: #D03B3B; --st-idle: #9A9DAD;
  --grid: #ECECF1; --axis: #D9DAE3;
}
:root[data-theme="dark"] {
  --c1: #7B82FF; --c2: #D95926; --c3: #199E70; --c4: #C98500; --c5: #D55181; --c6: #0CA30C;
  --c-other: #5F6070; --good: #0CA30C; --bad: #E66767; --st-idle: #7C7F92;
  --grid: #23242D; --axis: #33343F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --c1: #7B82FF; --c2: #D95926; --c3: #199E70; --c4: #C98500; --c5: #D55181; --c6: #0CA30C;
    --c-other: #5F6070; --good: #0CA30C; --bad: #E66767; --st-idle: #7C7F92;
    --grid: #23242D; --axis: #33343F;
  }
}

.adm.wrap { max-width: 1120px; }
.adm .chips { padding-bottom: 6px; }
.adm-stamp { display: inline-flex; align-items: center; gap: 6px; color: var(--hint); }
.adm-sub { padding: 6px 20px 0; font-size: 13px; color: var(--text2); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 0; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--card); border: 1px solid var(--sep); border-radius: 16px; padding: 12px 14px 13px; min-width: 0; }
.tile-label { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile-note { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.tile-note.good { color: var(--good); }
.tile-note.bad { color: var(--bad); }
.meter { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--c1); }
.meter.over i { background: var(--bad); }
.sk-tile i { display: block; height: 10px; border-radius: 5px; background: var(--surface); margin-top: 8px; animation: pulse 1.2s ease-in-out infinite; }
.sk-tile i:first-child { width: 50%; margin-top: 0; }
.sk-tile i:nth-child(2) { height: 22px; width: 70%; }

.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px 0; }
@media (min-width: 760px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard.wide { grid-column: 1 / -1; } }
.pcard { background: var(--card); border: 1px solid var(--sep); border-radius: 18px; padding: 14px 14px 12px; min-width: 0; }
.p-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-head b { font-size: 15px; font-weight: 700; }
.p-head span { font-size: 12px; color: var(--hint); }
.p-empty { padding: 26px 0 18px; text-align: center; font-size: 14px; color: var(--hint); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.swatch.c1 { background: var(--c1); } .swatch.c2 { background: var(--c2); } .swatch.c3 { background: var(--c3); }
.swatch.c4 { background: var(--c4); } .swatch.c5 { background: var(--c5); } .swatch.c6 { background: var(--c6); }
.swatch.cother { background: var(--c-other); }

.chart { position: relative; margin-top: 10px; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .ytick, .chart .xtick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .vlabel { fill: var(--text); font-size: 11px; font-weight: 700; }
.chart .cross { stroke: var(--text2); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; top: 0; z-index: 2; min-width: 120px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--sep-strong); box-shadow: 0 6px 20px rgba(17, 18, 34, 0.16); font-size: 12px; pointer-events: none; }
.tip-h { font-weight: 700; margin-bottom: 4px; }
.tip div:not(.tip-h) { display: flex; align-items: center; gap: 6px; color: var(--text2); white-space: nowrap; }
.tip b { margin-left: auto; padding-left: 12px; color: var(--text); font-variant-numeric: tabular-nums; }

.bars { margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.bar-label { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; }
.bar-track i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c1); }
.bar-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tbl-wrap { margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 6px 8px 6px 0; text-align: left; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--hint); border-bottom: 1px solid var(--sep-strong); vertical-align: bottom; }
@media (max-width: 480px) { .tbl { font-size: 12px; } .tbl td { padding-right: 6px; } .tbl .r { padding-left: 6px; } }
.tbl td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--sep); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; padding-right: 0; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.st.good { background: var(--st-good); } .st.warning { background: var(--st-warning); }
.st.serious { background: var(--st-serious); } .st.critical { background: var(--st-critical); } .st.idle { background: var(--st-idle); }

.notes { margin: 12px 16px 0; background: var(--card); border: 1px solid var(--sep); border-radius: 16px; padding: 12px 14px; }
.notes summary { font-size: 14px; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.notes p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text2); }

.ulist { margin: 12px 16px 0; background: var(--card); border: 1px solid var(--sep); border-radius: 16px; padding: 0 14px; }
.urow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--sep); text-align: left; }
.urow:last-child { border-bottom: 0; }
.ava { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--soft); color: var(--soft-text); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.urow-main { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow-main small, .urow-side small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.urow-side { text-align: right; font-size: 12px; color: var(--text2); white-space: nowrap; }
.muted { color: var(--muted); }

.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 12px 16px 0; }
.fact { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.adm-actions { display: flex; justify-content: center; padding: 12px 16px 0; }
.adm-actions .btn { height: 40px; font-size: 14px; }
.net { padding: 12px 0; border-bottom: 1px solid var(--sep); }
.net:last-child { border-bottom: 0; }
.net-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.net-top span { color: var(--text2); white-space: nowrap; }
.net-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.net-others { margin-top: 6px; font-size: 13px; color: var(--text2); }
.link { color: var(--accent-text); font-weight: 600; }

.seg-chips { display: flex; gap: 6px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.seg-chip { flex: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.seg-chip.on { background: var(--soft); color: var(--soft-text); font-weight: 600; }
.logs { margin-top: 12px; }
.log { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sep); font-size: 14px; line-height: 1.4; }
.log:last-child, .logs .more { border-bottom: 0; }
.log.warn .log-what { color: var(--bad); font-weight: 600; }
.log-time { flex: none; width: 74px; font-size: 12px; color: var(--hint); padding-top: 2px; font-variant-numeric: tabular-nums; }
.log-body { min-width: 0; }
.log-detail { font-size: 12px; color: var(--muted); word-break: break-word; }
.log-title { margin-top: 2px; font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.logs .more { margin: 12px 0; }

.err { padding: 10px 0; border-bottom: 1px solid var(--sep); }
.err:last-child { border-bottom: 0; }
.err-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hint); }
.err-lvl { font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--chip-text); }
.err.error .err-lvl { background: var(--st-critical); color: #FFFFFF; }
.err.warn .err-lvl { background: var(--st-warning); color: #111222; }
.err-target { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err-msg { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-body); word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
