:root {
  --bg: #f2f4f1; --panel: #ffffff; --panel-2: #eef3f1; --line: #dde3de; --line-2: #c9d2cc;
  --text: #121717; --muted: #4a5553; --faint: #56635f;
  --accent: #8fe3a0; --accent-hover: #b4f0b0; --accent-2: #e6f5e9; --accent-text: #1d7a4a; --on-accent: #0e1414;
  --ok: #1d7a4a; --ok-bg: #e6f5e9; --on-ok: #ffffff; --warn: #805d18; --warn-bg: #fcf3df; --bad: #ad452d; --bad-bg: #fff0eb;
  --mark: #fcebc6; --mark-strong: #f5c96a; --shadow: 0 1px 2px rgba(18,23,23,.06), 0 6px 24px rgba(18,23,23,.06);
  --k-decision: #1d7a4a; --k-agreement: #3566a8; --k-responsibility: #7950a3; --k-blocker: #ad452d;
  --k-incident: #ad452d; --k-risk: #805d18; --k-change: #805d18; --k-question: #3566a8;
  --s-loop: #3566a8; --s-jira: #0052cc; --s-confluence: #1d7a4a; --s-call: #7950a3;
  --radius: 12px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121717; --panel: #171e1e; --panel-2: #243030; --line: #2a3633; --line-2: #33423e;
    --text: #ffffff; --muted: #b7c4c0; --faint: #8e9d99;
    --accent: #8fe3a0; --accent-hover: #b4f0b0; --accent-2: #2e4a3a; --accent-text: #8fe3a0; --on-accent: #0e1414;
    --ok: #8fe3a0; --ok-bg: #2e4a3a; --on-ok: #0e1414; --warn: #f5c96a; --warn-bg: #382e1b; --bad: #ff8a6b; --bad-bg: #3c2621;
    --mark: #57421c; --mark-strong: #735824; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    --k-decision: #8fe3a0; --k-agreement: #7fb2ff; --k-responsibility: #d1a8ff; --k-blocker: #ff8a6b;
    --k-incident: #ff8a6b; --k-risk: #f5c96a; --k-change: #f5c96a; --k-question: #7fb2ff;
    --s-loop: #7fb2ff; --s-jira: #7fb2ff; --s-confluence: #8fe3a0; --s-call: #d1a8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121717; --panel: #171e1e; --panel-2: #243030; --line: #2a3633; --line-2: #33423e;
  --text: #ffffff; --muted: #b7c4c0; --faint: #8e9d99;
  --accent: #8fe3a0; --accent-hover: #b4f0b0; --accent-2: #2e4a3a; --accent-text: #8fe3a0; --on-accent: #0e1414;
  --ok: #8fe3a0; --ok-bg: #2e4a3a; --on-ok: #0e1414; --warn: #f5c96a; --warn-bg: #382e1b; --bad: #ff8a6b; --bad-bg: #3c2621;
  --mark: #57421c; --mark-strong: #735824; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  --k-decision: #8fe3a0; --k-agreement: #7fb2ff; --k-responsibility: #d1a8ff; --k-blocker: #ff8a6b;
  --k-incident: #ff8a6b; --k-risk: #f5c96a; --k-change: #f5c96a; --k-question: #7fb2ff;
  --s-loop: #7fb2ff; --s-jira: #7fb2ff; --s-confluence: #8fe3a0; --s-call: #d1a8ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); display: flex; flex-direction: column; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.strong { background: var(--mark-strong); box-shadow: 0 0 0 2px var(--mark-strong); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
[hidden], .hidden { display: none !important; }

/* ── Кнопки */
.btn { border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.icon { padding: 7px; }
.btn.small { padding: 4px 9px; font-size: 13px; }
.btn.on { background: var(--accent-2); border-color: var(--accent); color: var(--accent-text); }
.btn:focus-visible, .chip:focus-visible, .fn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ── Шапка */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 8px 9px 8px 8px; border: 3px solid var(--on-accent); border-left-width: 3px; border-radius: 0 9px 9px 0; }
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { display: flex; gap: 6px; flex: 1; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.stats::-webkit-scrollbar { display: none; }
.stat { flex: none; padding: 3px 10px; border-radius: 9px; background: var(--panel-2); white-space: nowrap; line-height: 1.25; }
.stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--muted); }
.top-actions { display: flex; gap: 6px; flex: none; }

/* ── Раскладка */
.layout { flex: 1; display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(300px, 400px); min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.panel.left { border-right: 1px solid var(--line); background: var(--panel); }
.panel.right { border-left: 1px solid var(--line); background: var(--panel); }
.panel-head { padding: 12px 14px 8px; border-bottom: 1px solid var(--line); flex: none; }
.panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.panel.right .panel-title { margin: 0; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px 14px 24px; overscroll-behavior: contain; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px 8px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 13px; }
.tab.on { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.tab .n { font-size: 11px; color: var(--faint); }
.sys-ico { width: 16px; height: 16px; }
.sys-loop { color: var(--s-loop); } .sys-jira { color: var(--s-jira); } .sys-confluence { color: var(--s-confluence); } .sys-call { color: var(--s-call); }

/* ── Список и лента источников */
.src-list { display: flex; flex-direction: column; gap: 2px; }
.src-item { text-align: left; border: 0; background: none; border-radius: 8px; padding: 7px 8px; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; }
.src-item:hover { background: var(--panel-2); }
.src-item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-item .s { grid-column: 2 / 4; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-item .c { font-size: 12px; color: var(--faint); }
.src-head { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; }
.src-head .t { font-weight: 700; }
.src-head .s { font-size: 12px; color: var(--muted); }
.day-sep { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; display: flex; gap: 8px; align-items: center; }
.day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px; border-radius: 9px; transition: background .4s; }
.msg.reply { margin-left: 22px; grid-template-columns: 22px 1fr; }
.msg.flash, .seg.flash { background: var(--accent-2); }
.msg.arrive { animation: arrive .7s ease-out; background: var(--ok-bg); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
.ava { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.msg.reply .ava { width: 22px; height: 22px; font-size: 10px; }
.msg .who { font-weight: 600; font-size: 13px; }
.msg .when { font-size: 11px; color: var(--faint); margin-left: 6px; font-weight: 400; }
.msg .txt { white-space: pre-wrap; word-break: break-word; }
.badge-new { font-size: 10px; background: var(--ok); color: var(--on-ok); border-radius: 6px; padding: 1px 6px; margin-left: 6px; font-weight: 700; }
.seg { padding: 8px; border-radius: 9px; transition: background .4s; }
.seg h4 { margin: 0 0 4px; font-size: 14px; }
.seg .meta { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.jira-fields { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; margin-bottom: 10px; padding: 10px; background: var(--panel-2); border-radius: 10px; }
.jira-fields dt { color: var(--muted); } .jira-fields dd { margin: 0; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; font-weight: 600; }
.hist { font-family: var(--mono); font-size: 12px; }
.win { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.win-h { display: flex; justify-content: space-between; padding: 5px 10px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.win-b { padding: 6px 10px; }
.tline { display: grid; grid-template-columns: 44px 92px 1fr; gap: 6px; padding: 2px 0; font-size: 13px; }
.tline .ts { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.spk { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; align-self: start; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk.anon { background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line-2); }
.spk.named { color: #fff; }
.speakers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.speakers > span { background: var(--panel-2); border-radius: 8px; padding: 3px 8px; }

/* ── Центр */
.panel.center { position: relative; }
.ask { padding: 28px 28px 8px; max-width: 860px; width: 100%; margin: 0 auto; transition: padding .3s; flex: none; }
.ask-title { font-size: 28px; letter-spacing: -.02em; margin: 0 0 14px; text-align: center; }
.ask.compact { padding-top: 14px; }
.ask.compact .ask-title { display: none; }
.ask-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.ask-box:focus-within { border-color: var(--accent-text); }
.ask-ico { color: var(--faint); width: 20px; height: 20px; }
.ask-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 8px 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.ask.compact .chips { display: none; }

.stage { flex: 1; overflow-y: auto; padding: 8px 28px 24px; max-width: 860px; width: 100%; margin: 0 auto; scroll-behavior: smooth; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.sc-card { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.sc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.sc-card .n { font-size: 11px; color: var(--faint); font-weight: 700; }
.sc-card .t { font-weight: 700; }
.sc-card .s { font-size: 13px; color: var(--muted); }
.home-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--panel-2); color: var(--muted); font-size: 13px; }

.q-bubble { margin: 10px 0 14px auto; max-width: 80%; width: fit-content; background: var(--accent); color: var(--on-accent); padding: 9px 14px; border-radius: 16px 16px 4px 16px; font-size: 15px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--muted); margin: 10px 0; font-size: 14px; border-left: 3px solid var(--accent); }
.block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.block-h { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }

.work-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.work-sys { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--panel-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.work-sys.busy svg { animation: pulse .7s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.work-status { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.done-ico { color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

.fact-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fact-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 9px; cursor: pointer; text-align: left; font-size: 13px; display: flex; flex-direction: column; gap: 2px; max-width: 260px; animation: fly .45s cubic-bezier(.2,.8,.3,1.2) both; }
.fact-chip:hover { border-color: var(--accent); }
.fact-chip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes fly { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.k-decision { color: var(--k-decision); } .k-agreement { color: var(--k-agreement); } .k-responsibility { color: var(--k-responsibility); }
.k-blocker { color: var(--k-blocker); } .k-incident { color: var(--k-incident); } .k-risk { color: var(--k-risk); }
.k-change { color: var(--k-change); } .k-question { color: var(--k-question); }
.st { font-size: 11px; border-radius: 6px; padding: 1px 6px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.st.good { background: var(--ok-bg); color: var(--ok); } .st.open { background: var(--warn-bg); color: var(--warn); }
.st.old { text-decoration: line-through; } .st.bad { background: var(--bad-bg); color: var(--bad); }
.meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }

.answer { font-size: 15px; }
.answer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.answer p { margin: 6px 0; }
.answer ul { margin: 4px 0; padding-left: 20px; }
.answer li { margin: 3px 0; }
.fn { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 6px; border: 0; background: var(--accent-2); color: var(--accent-text); font-size: 11px; font-weight: 700; cursor: pointer; vertical-align: 2px; }
.fn:hover, .fn.on { background: var(--accent); color: var(--on-accent); }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink .8s infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.origin { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.origin .o { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 7px; padding: 2px 8px; cursor: pointer; border: 0; font-size: 12px; color: var(--text); }

.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; }
.chain-node { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--panel); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; min-width: 0; opacity: .25; transition: opacity .4s, border-color .4s, transform .4s; transform: translateY(4px); }
.chain-node.lit { opacity: 1; transform: none; border-color: var(--accent); }
.chain-node .l { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.chain-node .v { font-size: 13px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chain-arrow { align-self: center; color: var(--faint); opacity: .25; transition: opacity .4s, color .4s; }
.chain-arrow.lit { opacity: 1; color: var(--accent); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 4px 0 12px; animation: fadein .35s both; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--k-decision); }
.tl-item.old::before { border-color: var(--line-2); }
.tl-item.cur::before { background: var(--k-decision); }
.tl-item.old .tl-t { color: var(--muted); }
.tl-t { font-weight: 600; }
.tl-link { display: inline-block; font-size: 12px; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: var(--accent-2); color: var(--accent-text); }

details.tree { border-left: 2px solid var(--line); padding-left: 12px; margin: 6px 0 6px 4px; }
details.tree > summary { cursor: pointer; font-weight: 600; padding: 3px 0; list-style: none; display: flex; gap: 6px; align-items: center; }
details.tree > summary::-webkit-details-marker { display: none; }
details.tree > summary::before { content: "▸"; color: var(--faint); transition: transform .2s; }
details.tree[open] > summary::before { transform: rotate(90deg); }
.tree-lines { margin: 2px 0 6px; padding-left: 18px; }
.tree-lines li { margin: 2px 0; }
.lvl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.live-new { animation: livein 1.4s ease-out; border-radius: 4px; }
@keyframes livein { 0% { background: var(--ok-bg); } 100% { background: transparent; } }

.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.pipe-s { border: 1px solid var(--line); border-radius: 10px; padding: 7px 6px; text-align: center; font-size: 12px; color: var(--faint); transition: all .35s; background: var(--panel); }
.pipe-s b { display: block; font-size: 15px; }
.pipe-s.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-2); }
.pipe-s.done { color: var(--ok); border-color: var(--ok); }
.stage-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); margin-top: 8px; animation: fadein .35s both; }
.stage-card .h { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.termmark { background: var(--accent-2); color: var(--accent-text); border-radius: 4px; padding: 0 3px; position: relative; }
.termmark small { font-size: 10px; margin-left: 4px; opacity: .8; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.verify { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; margin-top: 6px; }
.verify.no { color: var(--bad); }

.review-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); animation: fadein .35s both; }
.review-card .rh { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.rv-type { font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; background: var(--warn-bg); color: var(--warn); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.cmp > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.cmp .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 3px; }
.q-model { text-decoration: line-through wavy var(--bad); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.actions .btn.pressed { background: var(--ok); border-color: var(--ok); color: var(--on-ok); transform: scale(.97); }
.result { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; animation: fadein .3s both; }

/* ── Правая панель: факт */
.empty { color: var(--muted); padding: 20px 6px; text-align: center; font-size: 14px; }
.empty svg { width: 34px; height: 34px; color: var(--faint); display: block; margin: 0 auto 8px; }
.claim-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.claim-title { font-size: 17px; font-weight: 700; margin: 2px 0 6px; line-height: 1.3; }
.claim-stmt { margin: 0 0 10px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.person { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--panel-2); border-radius: 999px; padding: 2px 9px 2px 2px; }
.person .ava { width: 22px; height: 22px; font-size: 10px; }
.voice { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px dashed var(--line-2); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.ev { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.ev-h { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.ev-h b { color: var(--text); font-weight: 600; }
.ev-b { padding: 8px 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.ev-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 8px; font-size: 12px; }
.ok-line { color: var(--ok); display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.ok-line svg { width: 14px; height: 14px; }
.linkbtn { border: 0; background: none; color: var(--accent-text); cursor: pointer; padding: 0; font-size: 12px; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.rel { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rel button { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 6px 9px; cursor: pointer; font-size: 13px; }
.rel button:hover { border-color: var(--accent); }
.rel .rt { font-size: 11px; font-weight: 700; color: var(--accent-text); margin-right: 6px; }
.warnbox { padding: 8px 10px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); font-size: 13px; margin-bottom: 10px; }
.counters { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.counters .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.counters .v.bump { animation: bump .6s; color: var(--ok); }
@keyframes bump { 30% { transform: scale(1.35); } }
.sum-lines { padding-left: 18px; margin: 6px 0; }
.sum-lines li { margin: 4px 0; }

/* ── Меню, ведущий */
.toast { position: fixed; z-index: 40; left: 50%; top: 70px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.mnav { display: none; }

/* ── Телефон и узкие экраны */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(270px, 330px); }
  .stats .stat:nth-child(n+6) { display: none; }
}
@media (max-width: 900px) {
  body { overflow: hidden; }
  .top { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .brand-sub { white-space: normal; }
  .stats { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .stats .stat:nth-child(n+6) { display: block; }
  .top-actions { margin-left: auto; }
  .layout { display: block; position: relative; }
  .panel { position: absolute; inset: 0; border: 0 !important; display: none; }
  .panel.center { position: absolute; }
  .layout[data-tab="left"] .panel.left, .layout[data-tab="center"] .panel.center, .layout[data-tab="right"] .panel.right { display: flex; }
  .panel-body { padding: 12px 16px 80px; }
  .ask { padding: 16px 16px 4px; }
  .ask-title { font-size: 21px; }
  .ask-box { padding: 4px 4px 4px 12px; border-radius: 14px; }
  .ask-box input { font-size: 16px; }
  .ask-box .btn { padding: 7px 10px; }
  .stage { padding: 4px 16px 80px; }
  .chain { grid-template-columns: 1fr; }
  .chain-arrow { transform: rotate(90deg); justify-self: center; }
  .cmp { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(4, 1fr); }
  .tline { grid-template-columns: 38px 1fr; }
  .tline .spk { grid-column: 2; justify-self: start; }
  .tline .tx { grid-column: 1 / 3; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .mnav button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 4px; font-size: 13px; color: var(--muted); position: relative; cursor: pointer; }
  .mnav button.on { background: var(--accent-2); color: var(--accent-text); font-weight: 600; }
  .mnav .dot { display: none; position: absolute; top: 6px; right: 14%; width: 7px; height: 7px; border-radius: 50%; background: var(--k-incident); }
  .mnav button.ping .dot { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
