/* Бизнес-радар — ответвление интернет-банка Альфа-Бизнес: оболочка (светлое меню, шапка с переключателем компании,
   белые карточки на светло-сером фоне, красный акцент) — как в банке; своё лицо радара — тёмный блок с глобусом,
   карта влияния и разборы. Скругления 12/16/20 px, плоские тени, сетка 8 px. Шрифт Inter (OFL) лежит в /static/fonts. */

@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
/* Styrene A — фирменный шрифт Альфа-Банка (файлы от организаторов). В нём нет кириллицы, поэтому он задаёт только цифры
   и знаки при числах (%, +, −, ₽, $) в заголовках и крупных числах; буквы, дефисы и пунктуация — Styrene B. */
@font-face { font-family: "Styrene A"; src: url("/static/fonts/StyreneAWeb-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0024-0025, U+002B, U+0030-0039, U+2212, U+20BD; }
@font-face { font-family: "Styrene A"; src: url("/static/fonts/StyreneAWeb-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0024-0025, U+002B, U+0030-0039, U+2212, U+20BD; }
@font-face { font-family: "Styrene A"; src: url("/static/fonts/StyreneAWeb-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0024-0025, U+002B, U+0030-0039, U+2212, U+20BD; }
@font-face { font-family: "Styrene A"; src: url("/static/fonts/StyreneAWeb-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0024-0025, U+002B, U+0030-0039, U+2212, U+20BD; }
/* Styrene B LC — фирменный шрифт на весь интерфейс: латиница и кириллица (файлы организаторов, подмножество fontTools) */
@font-face { font-family: "Styrene B"; src: url("/static/fonts/StyreneBLC-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Styrene B"; src: url("/static/fonts/StyreneBLC-Medium.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Styrene B"; src: url("/static/fonts/StyreneBLC-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Styrene B"; src: url("/static/fonts/StyreneBLC-Black.woff") format("woff"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/static/fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/static/fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --red: #dc2a1e; --red-2: #ef3124; --red-deep: #c4170c; --red-ink: #c4251b; --black: #0b0b0d;
  --bg: #f2f3f5; --surface: #ffffff; --ink: #0b0b0d; --ink2: #2f3238; --muted: #5f6670; --line: #e5e7eb;
  --soft: #f6f7f9; --soft2: #eef0f3; --sk1: #eceef1; --sk2: #f7f8fa;
  --accent: var(--red); --accent-ink: #ffffff; --on-ink: #ffffff;
  --risk: #c4251b; --risk-bg: #fdecea; --opp: #0b7a43; --opp-bg: #e3f6ec; --mixed: #9a5d00; --mixed-bg: #fdf1df;
  --watch: #2558b8; --watch-bg: #e7effc; --fact: #2558b8; --bank: var(--red-ink); --ai: #6f4ad1;
  --bank-bg: #fff1ef; --ai-bg: #f4f0ff; --hl: #fff6c2; --warn-bg: #fff5da; --warn-ink: #8a5b00; --warn-bg2: #ffe6bf; --warn-ink2: #8f3d00;
  --ind-bg: #f5f0e6; --ind-ink: #6d5422;
  --radius: 20px; --radius-m: 16px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 4px 16px rgba(16, 18, 22, .04);
  --shadow-lift: 0 2px 4px rgba(16, 18, 22, .05), 0 16px 40px rgba(16, 18, 22, .10);
  --sidebar: #ffffff; --sidebar-ink: #3d424a; --side-strong: #0b0b0d; --side-hover: #f2f3f5; --side-active: #eef0f3; --side-sep: #646a74;
  --top-bg: rgba(255, 255, 255, .92);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --num: "Styrene A", "Inter Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #16171a; --ink: #f2f3f5; --ink2: #c9ccd2; --muted: #8e949e; --line: #2a2c31;
  --soft: #1c1d21; --soft2: #232429; --sk1: #1c1d21; --sk2: #26272c; --on-ink: #0b0b0d;
  --risk: #ff5a4f; --risk-bg: #3a1b19; --opp: #34d17f; --opp-bg: #14301f; --mixed: #ffb340; --mixed-bg: #33261a;
  --watch: #6aa6ff; --watch-bg: #172338; --fact: #6aa6ff; --ai: #a98bff; --bank-bg: #2e1916; --ai-bg: #221c36;
  --bank: #ff7a6e; --red-ink: #ff7a6e;
  --hl: #3d3613; --warn-bg: #352b14; --warn-ink: #f2c46b; --warn-bg2: #3f2a12; --warn-ink2: #ffb36b; --ind-bg: #2e281d; --ind-ink: #e2c48a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35); --shadow-lift: 0 22px 48px rgba(0, 0, 0, .55);
  --sidebar: #111214; --sidebar-ink: #c9ccd2; --side-strong: #ffffff; --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(255, 255, 255, .1); --side-sep: #8e949e;
  --top-bg: rgba(22, 23, 26, .9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #16171a; --ink: #f2f3f5; --ink2: #c9ccd2; --muted: #8e949e; --line: #2a2c31;
    --soft: #1c1d21; --soft2: #232429; --sk1: #1c1d21; --sk2: #26272c; --on-ink: #0b0b0d;
    --risk: #ff5a4f; --risk-bg: #3a1b19; --opp: #34d17f; --opp-bg: #14301f; --mixed: #ffb340; --mixed-bg: #33261a;
    --watch: #6aa6ff; --watch-bg: #172338; --fact: #6aa6ff; --ai: #a98bff; --bank-bg: #2e1916; --ai-bg: #221c36;
  --bank: #ff7a6e; --red-ink: #ff7a6e;
    --hl: #3d3613; --warn-bg: #352b14; --warn-ink: #f2c46b; --warn-bg2: #3f2a12; --warn-ink2: #ffb36b; --ind-bg: #2e281d; --ind-ink: #e2c48a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35); --shadow-lift: 0 22px 48px rgba(0, 0, 0, .55);
    --sidebar: #111214; --sidebar-ink: #c9ccd2; --side-strong: #ffffff; --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(255, 255, 255, .1); --side-sep: #8e949e;
  --top-bg: rgba(22, 23, 26, .9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
b, strong { font-weight: 650; }
a { color: var(--watch); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-size: 26px; font-weight: 700; margin: 6px 0; }
.red { color: var(--red-ink); }
::selection { background: rgba(239, 49, 36, .22); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red-ink); font-weight: 700; }
.sub-h { font-weight: 700; font-size: 13px; margin: 16px 0 6px; }

select, input, textarea { font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); color: var(--ink); max-width: 320px; transition: border-color .15s; }
select:hover, input:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
select:focus, input:focus, textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(220, 42, 30, .22); }
textarea, input[type=url] { width: 100%; max-width: none; margin-bottom: 10px; }

/* ---------- кнопки */
.btn { background: var(--ink); color: var(--on-ink); border: 0; border-radius: 12px; padding: 9px 16px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { padding: 5px 11px; font-size: 13px; border-radius: 10px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); box-shadow: 0 10px 26px rgba(239, 49, 36, .38); }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.icon-btn { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; width: 38px; height: 36px; cursor: pointer; display: grid; place-items: center; transition: box-shadow .2s; }
.icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--red-ink); }

/* ---------- шапка */
.topbar { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--top-bg); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.brand { font-weight: 800; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(239, 49, 36, .35); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--red-ink); letter-spacing: 0; }
.proto { font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; letter-spacing: .02em; }
.session { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sw { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sw-cap { position: absolute; left: 13px; top: 5px; font-size: 10.5px; line-height: 1; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; pointer-events: none; }
.sw select { appearance: none; -webkit-appearance: none; border: 0; background: var(--soft2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%235f6670' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
  border-radius: var(--radius-s); padding: 17px 32px 5px 12px; font-size: 14px; font-weight: 650; max-width: 280px; cursor: pointer; text-overflow: ellipsis; }
.sw select:hover { background-color: var(--line); }
.sw-role select { max-width: none; font-weight: 600; }
.sess-user.m-only { display: none; }
.user-chip { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink); padding-left: 4px; min-width: 0; }
.user-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-txt b { font-weight: 650; max-width: 240px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.user-txt .link-btn { font-size: 12px; text-align: left; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--soft2); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.tour-btn svg { width: 14px; height: 14px; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.budget-badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 7px 12px; background: var(--soft2); white-space: nowrap; cursor: help; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.budget-badge.ok { background: var(--opp-bg); color: var(--opp); }
.budget-badge.mid { background: var(--mixed-bg); color: var(--mixed); }
.budget-badge.low { background: var(--risk-bg); color: var(--risk); }
.budget-badge.off { color: var(--muted); }

/* ---------- каркас */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - var(--top-h, 64px)); background: linear-gradient(90deg, var(--sidebar) 248px, var(--line) 248px, var(--line) 249px, transparent 249px); }
.sidebar { background: var(--sidebar); color: var(--sidebar-ink); padding: 16px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: var(--top-h, 64px); height: calc(100vh - var(--top-h, 64px)); overflow-y: auto; }
.nav-item { padding: 10px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; color: var(--sidebar-ink); display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 14.5px; position: relative; transition: background .15s, color .15s; }
.nav-item svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-item span:not(.badge) { flex: 1; }
.nav-item:hover { background: var(--side-hover); color: var(--side-strong); }
.nav-item.active { background: var(--side-active); color: var(--side-strong); font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red); }
.nav-item.active svg { color: var(--red); opacity: 1; }
.nav-item.muted { color: var(--side-sep); cursor: default; }
.nav-item.muted:hover { background: none; color: var(--side-sep); }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--side-sep); margin: 16px 12px 6px; font-weight: 700; }
.nav-foot { margin-top: auto; padding: 16px 12px 4px; font-size: 11px; color: var(--side-sep); line-height: 1.5; }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; flex: none !important; }
.badge:empty { display: none; }

main { padding: 24px 28px 28px; min-width: 0; }
.view { display: none; }
.view.active { display: block; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.page-head h2 { font-size: 34px; margin: 2px 0 0; }
.card, .feed-col, .impact-wrap, .scenarios, .tabs, .hero { scroll-margin-top: calc(var(--top-h, 64px) + 18px); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.skeleton { height: 120px; border-radius: 16px; background: linear-gradient(90deg, var(--sk1), var(--sk2), var(--sk1)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { color: var(--muted); padding: 48px 32px; text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.loading { color: var(--muted); padding: 20px; }
.notice { font-size: 12.5px; background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; margin: 8px 0; color: var(--warn-ink); }
.ok { color: var(--opp); }
.bad { color: var(--risk); }

/* ---------- герой главной */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px; align-items: center;
  background: radial-gradient(1200px 520px at 85% 40%, rgba(239, 49, 36, .20), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(239, 49, 36, .10), transparent 60%), #0b0b0d;
  color: #fff; border-radius: 28px; padding: 44px 44px 0; margin-bottom: 22px; overflow: hidden; min-height: 520px; isolation: isolate; }
:root[data-theme="dark"] .hero { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); } }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%); z-index: -1; }
.hero-copy { padding-bottom: 76px; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); text-transform: lowercase;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 6px 12px 6px 10px; border-radius: 999px; }
.hero-eyebrow span:last-child::first-letter { text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239, 49, 36, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(239, 49, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 49, 36, 0); } }
.hero h1 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 20px 0 16px; max-width: 12ch; }
.hero h1 .red { color: var(--red-2); display: block; }
.hero-sub { color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 54ch; margin: 0 0 26px; }
.hero-sub b { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; max-width: 560px; }
.hs { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; }
button.hs:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.hs b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hs span { font-size: 12.5px; color: rgba(255, 255, 255, .62); font-weight: 500; }
.hs.risk b { color: #ff5a4f; } .hs.risk:hover { border-color: rgba(255, 90, 79, .6); }
.hs.opportunity b { color: #34d17f; } .hs.opportunity:hover { border-color: rgba(52, 209, 127, .6); }
.hs.watch b { color: #6aa6ff; } .hs.watch:hover { border-color: rgba(106, 166, 255, .6); }
.hs.bank { cursor: default; } .hs.bank b { color: #fff; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-globe { position: relative; align-self: stretch; min-height: 460px; margin: -44px -44px 0 -20px; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: calc(100% - 48px); cursor: grab; touch-action: pan-y; }
.hero-globe canvas.grab { cursor: grabbing; }
.globe-legend { position: absolute; left: 24px; right: 24px; bottom: 62px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: rgba(255, 255, 255, .6); pointer-events: none; }
.globe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg.risk { background: #ff453a; box-shadow: 0 0 8px #ff453a; } .lg.opportunity { background: #30d178; box-shadow: 0 0 8px #30d178; }
.lg.watch { background: #64a8ff; box-shadow: 0 0 8px #64a8ff; } .lg.hq { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 49, 36, .35); }
.lg.partner { background: #fff; transform: rotate(45deg); border-radius: 1px; width: 7px; height: 7px; }
.globe-hint { position: absolute; top: 56px; right: 40px; font-size: 11px; color: rgba(255, 255, 255, .35); pointer-events: none; }
.globe-tip { position: absolute; z-index: 5; width: 300px; background: rgba(22, 23, 26, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); pointer-events: none; font-size: 14px; line-height: 1.4; }
.globe-tip .gt-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.globe-tip .muted { color: rgba(255, 255, 255, .7); }
.globe-tip .gt-why { color: rgba(255, 255, 255, .7); margin-top: 6px; }
.globe-tip .gt-cta { color: var(--red-2); font-weight: 600; font-size: 12px; margin-top: 8px; }
.ticker { grid-column: 1 / -1; margin: 0 -44px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); overflow: hidden; height: 48px; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 34px; white-space: nowrap; animation: tick 60s linear infinite; padding-left: 34px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.tk b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red-2); align-self: center; }
.tk-r { font-size: 11.5px; font-weight: 600; }
.tk-r.up { color: #ff7b70; } .tk-r.down { color: #5fe0a0; }

/* ---------- главная: карточки */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-col { display: grid; gap: 20px; min-width: 0; }
.radar-widget { position: relative; overflow: hidden; }
.radar-widget::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.widget-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.widget-head h2 { font-size: 26px; margin-top: 4px; }
.widget-list { display: flex; flex-direction: column; gap: 10px; }
.w-item { border-radius: 16px; padding: 14px 16px 14px 18px; cursor: pointer; background: var(--soft); position: relative; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.w-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--watch); }
.w-item.eff-risk::before { background: var(--risk); } .w-item.eff-opportunity::before { background: var(--opp); } .w-item.eff-mixed::before { background: var(--mixed); }
.w-item:hover { transform: translateX(4px); background: var(--surface); box-shadow: var(--shadow-lift); }
.w-item .title { margin: 6px 0 2px; font-size: 15.5px; line-height: 1.35; }
.w-item .why { font-size: 13px; color: var(--muted); margin-top: 4px; }
.w-item.read { opacity: .6; }
.w-item.read:hover { opacity: 1; }
.quiet { background: var(--opp-bg); color: var(--opp); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 10px; }

.pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-right: 6px; letter-spacing: .01em; }
.pill.risk { background: var(--risk-bg); color: var(--risk); }
.pill.opportunity { background: var(--opp-bg); color: var(--opp); }
.pill.mixed { background: var(--mixed-bg); color: var(--mixed); }
.pill.watch { background: var(--watch-bg); color: var(--watch); }
.pill.bank { background: var(--bank-bg); color: var(--bank); }
.pill.due { background: var(--warn-bg); color: var(--warn-ink); }
.pill.due.soon { background: var(--warn-bg2); color: var(--warn-ink2); }
.globe-tip .pill.risk { background: rgba(255, 69, 58, .2); color: #ff8a80; }
.globe-tip .pill.opportunity { background: rgba(48, 209, 120, .18); color: #6ee7a8; }
.globe-tip .pill.watch { background: rgba(100, 168, 255, .18); color: #9cc5ff; }
.globe-tip .pill.mixed { background: rgba(255, 179, 64, .18); color: #ffcd80; }
.legend { margin: 6px 0 12px; }

.radar-card { display: flex; flex-direction: column; gap: 6px; }
.radar-chart { display: grid; place-items: center; padding: 6px 0; }
.radar-svg { width: 100%; max-width: 320px; overflow: visible; }
.rd-grid { fill: none; stroke: var(--line); }
.rd-axis { stroke: var(--line); }
.rd-shape { fill: color-mix(in srgb, var(--red) 14%, transparent); stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.rd-label { font-size: 10px; fill: var(--muted); font-family: var(--font); font-weight: 500; }
.rd-dot { stroke: var(--surface); stroke-width: 2; opacity: .95; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }

.profile-card h3 { font-size: 20px; margin-top: 4px; }
.profile-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13.5px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; background: var(--soft2); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
button.chip { border: 0; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); transition: transform .15s, box-shadow .15s; }
button.chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.interest.more { background: var(--opp-bg); color: var(--opp); font-weight: 650; }
.chip.interest.mute { background: var(--soft); color: var(--muted); text-decoration: line-through; }
.chip.trust { font-weight: 650; }
.chip.trust.official { background: var(--bank-bg); color: var(--red-ink); }
.chip.trust.agency { background: var(--watch-bg); color: var(--watch); }
.chip.trust.demo { background: var(--ai-bg); color: var(--ai); }
.chip.geo { background: var(--opp-bg); color: var(--opp); }
.chip.ind { background: var(--ind-bg); color: var(--ind-ink); }
.overrides { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; }
.ov { border-radius: 8px; padding: 2px 8px; background: var(--soft2); }
.ov.more { background: var(--opp-bg); }
.ov.less, .ov.mute { background: var(--risk-bg); }
.mix-row, .peer-row { display: grid; grid-template-columns: 1fr 90px 40px; gap: 8px; align-items: center; font-size: 12px; margin: 4px 0; }
.peer-row { grid-template-columns: 1fr 80px 36px 46px; }
.mix-row i, .peer-row .bar i { display: block; height: 8px; border-radius: 4px; background: var(--ink); }
.mix-row i { grid-column: 2; }
.mix-row.unk i { background: var(--line); }
.peer-row .bar { background: var(--soft2); border-radius: 4px; height: 8px; overflow: hidden; }
.peer-row .bar i { background: var(--red); }
.mix-row b, .peer-row b { text-align: right; }

.bank-card { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--red) 6%, var(--surface))); }
.bank-card table.fc { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; }
.bank-card td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.bank-card td.num { font-weight: 750; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rev { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.rev.up { background: var(--risk-bg); color: var(--risk); }
.rev.down { background: var(--opp-bg); color: var(--opp); }
.spark { width: 100%; height: 86px; margin: 4px 0; }
.spark text { font-size: 10px; fill: var(--ink); font-family: var(--font); font-weight: 600; }
.spark text.lbl { fill: var(--muted); font-weight: 500; }

/* ---------- лента и разбор */
.radar-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.65fr); gap: 22px; align-items: start; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feed-head h2 { font-size: 24px; white-space: nowrap; }
.feed-head .btn { white-space: nowrap; }
.feed-tools { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--soft2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: 6px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 550; transition: background .15s, color .15s; }
.seg button:hover { color: var(--red-ink); }
.seg button.on { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tool-row input[type=search] { flex: 1 1 160px; min-width: 120px; }
.tool-row select { font-size: 13px; padding: 6px 8px; }
.chk { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.chk input { accent-color: var(--red); }
.rerank-note { min-height: 18px; color: var(--ai); }

.feed-item { background: var(--surface); border-radius: 18px; padding: 14px 16px 14px 20px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow); position: relative;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; animation: cardIn .45s var(--ease) both; }
.feed-item:nth-child(2) { animation-delay: .03s; } .feed-item:nth-child(3) { animation-delay: .06s; } .feed-item:nth-child(4) { animation-delay: .09s; }
.feed-item:nth-child(5) { animation-delay: .12s; } .feed-item:nth-child(n+6) { animation-delay: .15s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feed-item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--watch); }
.feed-item.eff-risk::before { background: var(--risk); } .feed-item.eff-opportunity::before { background: var(--opp); } .feed-item.eff-mixed::before { background: var(--mixed); }
.feed-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feed-item.active { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.feed-item .title { font-weight: 650; font-size: 15.5px; line-height: 1.35; margin-top: 6px; padding-right: 22px; }
.feed-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feed-item .reasons { font-size: 13px; margin-top: 8px; color: var(--ink2); font-weight: 500; }
.feed-item.read { background: var(--soft); box-shadow: none; }
.feed-item.read .title { color: var(--muted); font-weight: 550; }
.feed-item.read:not(.active) { opacity: .7; }
.feed-item.read.active .title { color: var(--ink); }
.feed-item.read:hover { opacity: 1; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(239, 49, 36, .18); }
.read-mark { font-size: 11px; color: var(--opp); font-weight: 650; margin-left: 6px; white-space: nowrap; }
.score-bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.score-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), var(--red)); border-radius: 3px; }
.hide-btn { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; transition: background .15s; }
.hide-btn:hover { background: var(--soft2); color: var(--ink); }
.unhide { position: absolute; top: 12px; right: 14px; }
.personal { font-size: 12px; color: var(--mixed); margin-top: 4px; }
.ai-note { font-size: 12px; color: var(--ai); margin-top: 6px; }
.ai-note .rel { letter-spacing: 1px; margin-left: 4px; }
.story-badge { margin-top: 8px; font-size: 12px; color: var(--watch); background: var(--watch-bg); border-radius: 8px; padding: 4px 10px; display: inline-block; font-weight: 550; }

.insight-col { position: sticky; top: calc(var(--top-h, 64px) + 16px); max-height: calc(100vh - var(--top-h, 64px) - 32px); overflow: auto; }
.insight { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; animation: viewIn .4s var(--ease); }
.insight > h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.025em; margin: 12px 0 0 !important; }
.takeaway { font-size: 17px; font-weight: 600; line-height: 1.45; background: #0b0b0d; color: #fff; border-radius: 18px; padding: 18px 20px; margin: 16px 0;
  position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.takeaway::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(rgba(239, 49, 36, .35), transparent 70%); }
.takeaway .claim-kind { color: #b9a2ff !important; font-weight: 800; letter-spacing: .06em; font-size: 11px; }
.takeaway .src { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.tab { padding: 10px 14px; cursor: pointer; border: 0; border-bottom: 2.5px solid transparent; background: transparent; font: inherit; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { border-color: var(--red); color: var(--ink); }
.q { margin: 22px 0; }
.q h4 { margin: 0 0 8px; font-size: 16px; display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.q h4 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; display: grid; place-items: center; font-family: var(--font); flex: none; }
.claim { padding: 9px 12px 9px 14px; border-left: 3px solid var(--line); margin: 6px 0; background: var(--soft); border-radius: 0 12px 12px 0; font-size: 14px; }
.claim.fact { border-color: var(--fact); }
.claim.assumption { border-color: var(--muted); color: var(--muted); font-style: italic; }
.claim.bank_view { border-color: var(--bank); background: var(--bank-bg); }
.claim.ai_inference { border-color: var(--ai); }
.claim .kind { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.claim.fact .kind { color: var(--fact); } .claim.bank_view .kind { color: var(--bank); } .claim.ai_inference .kind { color: var(--ai); } .claim.assumption .kind { color: var(--muted); }
.src { display: inline-block; font-size: 11px; background: var(--soft2); border-radius: 6px; padding: 1px 7px; margin: 4px 4px 0 0; cursor: pointer; color: var(--ink2); font-style: normal; font-weight: 550; transition: background .15s, color .15s; }
.src:hover { background: var(--ink); color: var(--on-ink); }
.src.bank, .src.forecast, .src.doc { background: var(--bank-bg); color: var(--red-ink); }
.conf { font-size: 11px; color: var(--muted); margin-left: 6px; }
.conf.low { color: var(--mixed); }
.conf-low { opacity: .85; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product { border: 1.5px dashed color-mix(in srgb, var(--red) 55%, transparent); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 14px; background: color-mix(in srgb, var(--red) 3%, var(--surface)); }
.product .lbl { font-size: 10.5px; color: var(--red-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product .btn { margin-top: 8px; }
.cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quality { font-size: 13px; padding-left: 18px; }
.quality li { margin: 3px 0; }
.sources-list { padding-left: 20px; }
.sources-list li { margin: 8px 0; font-size: 13.5px; }
.sources-list li.hl { background: var(--hl); border-radius: 8px; }
.trace-step { border-left: 2px solid var(--line); padding: 4px 0 10px 14px; margin-left: 6px; font-size: 13px; }
.trace-step .k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.trace-step pre { white-space: pre-wrap; word-break: break-word; background: var(--soft); border-radius: 10px; padding: 10px; max-height: 220px; overflow: auto; font-size: 12px; }
.feedback { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
#fbReasons { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#fbReasons[hidden] { display: none; }
.disclaimer { margin-top: 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.scale { margin-top: 8px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin: 6px 0 10px; color: var(--muted); }
.kinds span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-fact::before { background: var(--fact); } .k-assumption::before { background: var(--muted); }
.k-bank_view::before { background: var(--bank); } .k-ai_inference::before { background: var(--ai); }
details.story { margin: 12px 0; background: var(--soft); border-radius: 14px; padding: 12px 16px; }
details.story summary { cursor: pointer; font-weight: 650; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 8px 10px; cursor: pointer; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.cur { font-weight: 650; cursor: default; }
.timeline li.cur::before { background: var(--red); border-color: var(--red); }
.timeline li:hover:not(.cur) { color: var(--watch); }

/* прогресс агента */
.progress { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.progress li { padding: 6px 0 6px 28px; position: relative; }
.progress li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.progress li.run::before { background: var(--red); animation: pulse 1s infinite; box-shadow: 0 0 0 4px rgba(239, 49, 36, .18); }
.progress li.ok::before { background: var(--opp); }
.progress li.fallback::before { background: var(--mixed); }
@keyframes pulse { 50% { opacity: .35; } }

/* сценарии и «что если» */
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.scen { border-radius: 16px; padding: 14px; background: var(--soft); position: relative; overflow: hidden; }
.scen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.scen.watch::before { background: var(--watch); } .scen.risk::before { background: var(--risk); } .scen.opportunity::before { background: var(--opp); }
.scen-t { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.scen-v { font-family: var(--display); font-size: 24px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.whatif { margin-top: 14px; border-radius: 16px; padding: 14px 16px; background: var(--soft); }
.whatif summary { cursor: pointer; font-weight: 700; }
.wi-grid { display: grid; gap: 12px; margin: 14px 0; }
.wi-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 80px; gap: 4px 10px; align-items: center; font-size: 14px; }
.wi-row .small { grid-column: 2 / 4; margin-top: -4px; }
.wi-row input[type=range] { width: 100%; accent-color: var(--red); max-width: none; border: 0; padding: 0; }
.wi-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.wi-field { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
.wi-field input { width: 100%; max-width: none; }
.wi-out { background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.wi-total { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.wi-line { display: grid; grid-template-columns: minmax(150px, 260px) 110px 1fr; gap: 8px; font-size: 13px; padding: 3px 0; align-items: baseline; }

/* карта влияния */
.impact-wrap { margin: 14px 0; border-radius: 18px; padding: 14px 16px; background: var(--soft); }
.impact-wrap summary { cursor: pointer; font-weight: 700; }
.impact { position: relative; margin-top: 10px; }
.im-heads { position: relative; height: 16px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.im-heads span { position: absolute; top: 0; white-space: nowrap; }
.im-svg { width: 100%; height: auto; overflow: visible; }
.im-edge { fill: none; opacity: .55; transition: opacity .2s; }
.im-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; transition: opacity .2s; }
.im-node text { font-size: 13px; fill: var(--ink); font-family: var(--font); font-weight: 500; }
.im-node.ev rect { fill: var(--ink); stroke: var(--ink); }
.im-node.ev text { fill: var(--on-ink); font-weight: 600; }
.im-node.fa rect { stroke: var(--watch); }
.im-node.ba rect { stroke: var(--ai); }
.im-node.ba.ind rect { stroke-dasharray: 5 3; }
.im-node.ef.risk rect { fill: var(--risk-bg); stroke: var(--risk); }
.im-node.ef.opportunity rect { fill: var(--opp-bg); stroke: var(--opp); }
.im-node.ef.mixed rect { fill: var(--mixed-bg); stroke: var(--mixed); }
.im-node.ef.watch rect { fill: var(--watch-bg); stroke: var(--watch); }
.im-node.ef text { font-weight: 700; }
.im-node { cursor: default; outline: none; }
.im-edge.dim { opacity: .08; }
.im-node.dim { opacity: .3; }

/* таймлайн агента */
.tl { margin: 10px 0 14px; }
.tl-sum { font-weight: 650; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tl-legend { font-weight: 400; font-size: 12px; color: var(--muted); }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.tl-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr minmax(120px, 190px); gap: 8px; align-items: center; font-size: 13px; padding: 2px 0; }
.tl-track { position: relative; height: 12px; background: var(--soft2); border-radius: 6px; }
.tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; min-width: 3px; }
.tl-bar.llm, .tl-legend .llm { background: var(--ai); }
.tl-bar.tool, .tl-legend .tool { background: var(--watch); }
.tl-bar.rules, .tl-legend .rules { background: var(--muted); }

/* чат */
.chat { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.chat h4 { font-family: var(--display); font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }
.chat-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 90%; white-space: pre-wrap; font-size: 14px; animation: cardIn .3s var(--ease); }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; white-space: normal; }
.msg.typing::after { content: "…"; animation: pulse 1s infinite; }
.msg.bot p { margin: 0 0 8px; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg.bot ul, .msg.bot ol { margin: 0 0 8px; padding-left: 20px; }
.msg.bot li { margin: 3px 0; }
.chat-row { display: flex; gap: 8px; min-width: 0; }
.chat-row input { flex: 1 1 auto; min-width: 0; max-width: none; }
.chat-row .btn { flex: none; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.quick button { font: inherit; font-size: 12.5px; font-weight: 550; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: box-shadow .15s, color .15s; }
.quick button:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); }
.cite { display: inline-block; margin: 0 0 0 4px; padding: 0 7px; border-radius: 9px; font-size: 11px; line-height: 17px; vertical-align: 1px; background: var(--soft2); color: var(--muted); text-decoration: none; white-space: nowrap; cursor: help; font-weight: 600; }
a.cite { cursor: pointer; }
a.cite:hover { color: var(--red-ink); }
.cite.bank, .cite.forecast, .cite.doc { background: var(--bank-bg); color: var(--red-ink); }
.lbl { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-right: 2px; }
.lbl.bank { background: var(--bank-bg); color: var(--red-ink); }
.lbl.ai { background: var(--ai-bg); color: var(--ai); }

/* ---------- источники, дайджест, мониторинг */
.sources-card { margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table.sources { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sources th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
table.sources td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sources tr:last-child td { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { white-space: nowrap; font-weight: 650; }
.status.ok { color: var(--opp); } .status.mid { color: var(--mixed); } .status.bad { color: var(--risk); } .status.muted { color: var(--muted); font-weight: 400; }
.err { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.digest-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.dg-main h3 { font-size: 24px; margin-top: 4px; }
.dg-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.dg-list li { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.dg-list li[data-ev] { cursor: pointer; transition: transform .15s var(--ease); }
.dg-list li[data-ev]:hover { transform: translateX(3px); }
.dg-list li[data-ev]:hover b { text-decoration: underline; }
.dg-side { display: grid; gap: 20px; align-content: start; }
.email .em-head { border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 8px; }
.email .em-body { font-size: 14px; }
.em-btn { display: inline-flex; background: var(--red); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 650; border: 0; cursor: pointer; font: inherit; }
.push-n { margin-top: 8px; background: var(--soft2); border-radius: 16px; padding: 12px 14px; font-size: 14px; }

.mon-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mon-h { margin: 30px 0 0; font-size: 20px; }
.alerts { display: grid; gap: 8px; margin-top: 14px; }
.alert { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); font-weight: 500; }
.alert.warn { background: rgba(239, 160, 36, .12); border-color: rgba(239, 160, 36, .45); }
.alert.info { background: rgba(60, 130, 230, .09); border-color: rgba(60, 130, 230, .35); }
.alert.ok { background: rgba(40, 170, 90, .09); border-color: rgba(40, 170, 90, .35); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.metric { transition: transform .2s var(--ease), box-shadow .2s; }
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.metric .v { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.metric.good { box-shadow: inset 4px 0 0 #1fa463, var(--shadow); }
.metric.warn { box-shadow: inset 4px 0 0 #e0a024, var(--shadow); }
.funnel { margin-top: 14px; display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.fn-bar { height: 10px; background: var(--soft2); border-radius: 6px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-2)); border-radius: 6px; }
.fn-row b { text-align: right; }

/* ---------- диалоги, тур, онбординг, тосты */
dialog { border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); width: min(640px, 92vw); background: var(--surface); color: var(--ink); padding: 26px; }
dialog::backdrop { background: rgba(8, 8, 10, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: dlgIn .3s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
dialog h3 { font-size: 24px; margin: 4px 0 6px; }
dialog .row { display: flex; justify-content: flex-end; gap: 8px; }
.act-form { display: flex; flex-direction: column; gap: 8px; }
.act-form textarea { width: 100%; max-width: none; }
.act-form .row { display: flex; justify-content: flex-end; gap: 8px; }
#onboard { width: min(580px, 92vw); padding: 0; overflow: hidden; }
.ob { padding: 28px 30px; position: relative; }
.ob::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.ob h2 { margin: 6px 0 8px; font-size: 30px; }
.ob-list { padding-left: 22px; margin: 14px 0 20px; display: grid; gap: 10px; }
.ob-list li::marker { color: var(--red-ink); font-weight: 800; }
.ob .row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#tour { display: none; position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#tour.on { display: block; }
.tour-spot { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(8, 8, 10, .62); pointer-events: none; border: 2px solid var(--red); }
.tour-pop { position: fixed; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 64px rgba(0, 0, 0, .4); pointer-events: auto; z-index: 2; }
.tour-pop.corner { box-shadow: 0 0 0 2px var(--red), 0 24px 64px rgba(0, 0, 0, .45); }
.tour-pop h3 { margin: 4px 0 6px; font-size: 19px; }
.tour-pop p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.tour-pop .row { display: flex; justify-content: space-between; gap: 8px; }
.tour-n { font-size: 11px; color: var(--red-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  opacity: 0; transition: .3s var(--ease); pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lift); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-foot { margin-top: 36px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- вход */
body.logged-out .layout, body.logged-out .topbar { display: none; }

/* ---------- адаптив */
@media (min-width: 1101px) {
  #view-radar .radar-grid { height: calc(100vh - var(--top-h, 64px) - 48px); }
  body[data-view="radar"] main { padding-bottom: 24px; }
  body[data-view="radar"] .app-foot { display: none; }
  #view-radar .feed-col, #view-radar .insight-col { height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; position: static; padding: 0 6px 4px 2px; }
  #view-radar .feed-head { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 2px 0 6px; }
}
@media (min-width: 641px) { .topbar { flex-wrap: nowrap; } }
@media (max-width: 1600px) { .proto { display: none; } }
@media (max-width: 1380px) { .user-txt { display: none; } .tour-btn .t-long { display: none; } .tour-btn .t-short { display: inline; } }
@media (max-width: 1180px) { .tour-btn span { display: none !important; } .tour-btn { width: 38px; height: 36px; padding: 0; } .sw select { max-width: 220px; } .sw-role select { max-width: none; } }
@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; padding: 32px 28px 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-globe { margin: 0 -28px; min-height: 420px; }
  .ticker { margin: 0 -28px; }
  .globe-hint { display: none; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; background: none; }
  .sidebar { position: sticky; top: var(--top-h, 64px); height: auto; flex-direction: row; overflow-x: auto; padding: 8px; z-index: 20; }
  .nav-item { white-space: nowrap; gap: 8px; }
  .nav-item.active::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .nav-sep, .nav-foot, .nav-item.muted { display: none; }
  .proto, .brand-txt small { display: none; }
  .radar-grid, .cols { grid-template-columns: 1fr; }
  .radar-widget { grid-row: auto; }
  .insight-col { position: static; max-height: none; }
  main { padding: 16px; }
}
@media (max-width: 640px) {
  .hero { border-radius: 22px; padding: 26px 18px 0; min-height: 0; }
  .hero h1 { font-size: 38px; }
  .hero-globe { margin: 0 -18px; min-height: 340px; }
  .ticker { margin: 0 -18px; }
  .globe-legend { bottom: 56px; font-size: 11px; gap: 4px 10px; }
  .globe-hint { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hs b { font-size: 28px; }
  .budget-badge { display: none; }
  .topbar { gap: 10px 12px; padding: 10px 14px; }
  .top-actions { order: 1; }
  .session { order: 2; width: 100%; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .sess-user.m-only { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
  .sess-user .sw-cap { position: static; }
  .sw select { max-width: none !important; width: 100%; }
  .user-chip { display: none; }
  .page-head h2 { font-size: 28px; }
  .insight { padding: 18px; }
  .insight > h2 { font-size: 23px; }
  table.sources th:nth-child(n+4), table.sources td:nth-child(n+4) { display: none; }
  .wi-row { grid-template-columns: 1fr 70px; } .wi-row input[type=range] { grid-column: 1 / 3; } .wi-row .small { grid-column: 1 / 3; }
  .wi-line { grid-template-columns: 80px 1fr; } .wi-line .small { grid-column: 1 / 3; }
  .tl-row { grid-template-columns: 1fr; }
  .fn-row { grid-template-columns: 1fr 40px; } .fn-row .fn-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) { .digest-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* очищенный клиентский вид */
.w-dots { color: var(--red-ink); letter-spacing: 1px; font-size: 9px; margin-left: 4px; vertical-align: 1px; }
.trace-raw { margin-top: 14px; background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.trace-raw summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.trace-raw .trace-step { margin-top: 8px; }

/* ---- «Коротко», подробный разбор по кнопке, расхождения, исполнители и сроки действий */
.takeaway.short { display: grid; gap: 12px; }
.sh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sh-head .claim-kind { color: #ff8a80; font-weight: 800; letter-spacing: .1em; font-size: 11px; }
.sh-mat { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.sh-mat.m3 { background: rgba(255, 69, 58, .25); color: #ffb3ad; }
.sh-mat.m2 { background: rgba(100, 168, 255, .2); color: #b8d4ff; }
.sh-mat.m0, .sh-mat.m1 { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }
.sh-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: baseline; position: relative; z-index: 1; }
.sh-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }
.sh-v { font-size: 15.5px; font-weight: 550; line-height: 1.45; }
.sh-range { margin-top: 8px; font-size: 14px; font-weight: 550; }
.sh-range b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.sh-range b.neg { color: #ff8a80; } .sh-range b.pos { color: #6ee7a8; }
.takeaway.short .sh-head .claim-kind { color: #ff8a80 !important; }
.sh-note, .sh-meta { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .68); margin-top: 3px; }
.sh-src { position: relative; z-index: 1; }
.detail-toggle { width: 100%; margin: 14px 0 4px; padding: 12px 16px; justify-content: center; }
.diverge { border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; background: linear-gradient(90deg, var(--watch-bg), var(--bank-bg)); }
.dv-head { font-weight: 750; margin-bottom: 6px; }
.dv-row { font-size: 14px; margin: 4px 0; }
.act-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.act-meta span { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 2px 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.am-due { color: var(--red-ink); }
.ai-weak { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
.ai-strong { font-size: 12px; color: var(--red-ink); margin-top: 6px; font-weight: 650; }
@media (max-width: 640px) { .sh-row { grid-template-columns: 1fr; gap: 2px; } }

/* Эффект за 12 месяцев: график накопления и разбивка по рычагам */
.effect-chart { background: var(--soft); border-radius: 16px; padding: 12px 14px 8px; margin: 4px 0 10px; }
.ec-head { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.effect-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ec-grid { stroke: var(--line); stroke-width: 1; }
.ec-zero { stroke: var(--muted); stroke-width: 1.2; opacity: .6; }
.ec-ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ec-end { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ec-start { stroke: var(--ink2); stroke-dasharray: 3 3; opacity: .5; }
.ec-lbl { font-size: 11px; fill: var(--ink2); }
.ec-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.ec-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ec-legend i.negative { background: var(--risk); } .ec-legend i.base { background: var(--watch); } .ec-legend i.positive { background: var(--opp); }
.lever-wrap { overflow-x: auto; margin: 0 0 8px; }
.lever-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lever-table th { text-align: right; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lever-table th:first-child { text-align: left; }
.lever-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lever-table td:not(:first-child) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lever-table td.bad { color: var(--risk); } .lever-table td.ok { color: var(--opp); }
.lever-table .lt-f { font-size: 11px; margin-top: 2px; }
.lever-table .lt-total td { font-weight: 800; border-bottom: 0; }
.scen-note { margin-bottom: 8px; }
@media (max-width: 640px) { .lever-table .lt-f { display: none; } .ec-end { font-size: 10px; } }

/* «Слежу за», выученные интересы, уведомления */
.learned { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 6px; }
.learned li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.learned li.more { background: var(--opp-bg); } .learned li.less { background: var(--soft2); } .learned li.mute { background: var(--risk-bg); }
.chip.watch { display: inline-flex; align-items: center; gap: 4px; background: var(--watch-bg); color: var(--watch); font-weight: 600; }
.chip.watch .x { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.watch-add { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.watch-add select { flex: 0 0 auto; } .watch-add input { flex: 1 1 180px; min-width: 0; }
.personal.down { color: var(--muted); }
.card.notif { display: grid; gap: 8px; }
.notif-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Глобус: период, фильтр-легенда, подсказка кластера */
.globe-period { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); z-index: 2; }
.globe-period button { border: 0; background: none; color: rgba(255, 255, 255, .7); font: 600 12px var(--font); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.globe-period button.on { background: #fff; color: #0b0b0d; }
.globe-period button:focus-visible, .globe-legend button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.globe-legend { pointer-events: auto; }
.globe-legend button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.globe-legend button.off { opacity: .35; text-decoration: line-through; }
.globe-legend button:hover { color: #fff; }
#globe:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: -6px; border-radius: 24px; }
.gt-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12px; }
.gt-list .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .globe-period { top: 8px; } .globe-period button { padding: 5px 9px; font-size: 11px; } }

/* «Агент думает» */
.think { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; margin-top: 14px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--soft), var(--surface)); border: 1px solid var(--line); }
.think-orb { position: relative; width: 64px; height: 64px; }
.think-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: orb 2.4s var(--ease) infinite; }
.think-orb i:nth-child(2) { animation-delay: .8s; } .think-orb i:nth-child(3) { animation-delay: 1.6s; }
.think-orb::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 24px rgba(239, 49, 36, .6); }
@keyframes orb { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.think-now { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 10px; min-height: 1.3em; }
.think-now.swap { animation: thinkIn .45s var(--ease); }
@keyframes thinkIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.think-bar { height: 6px; border-radius: 3px; background: var(--soft2); overflow: hidden; }
.think-bar i { display: block; height: 100%; width: 6%; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width .6s var(--ease); }
.think-meta { margin-top: 8px; }
.think-steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.think-steps li { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--opp-bg); color: var(--opp); animation: thinkIn .35s var(--ease); }
.think-steps li.fallback { background: var(--mixed-bg); color: var(--mixed); }
.think-steps li::before { content: "✓ "; }
@media (prefers-reduced-motion: reduce) { .think-orb i, .think-now.swap, .think-steps li { animation: none; } .think-orb i:first-child { opacity: .5; transform: scale(.8); } }
@media (max-width: 640px) { .think { grid-template-columns: 1fr; } .think-orb { width: 48px; height: 48px; } .think-orb::after { inset: 16px; } .think-now { font-size: 17px; } }

/* Телефон и планшет: разбор — отдельный экран, компания и роль — в меню */
.m-back, .ctx-btn, .t-short { display: none; }
@media (max-width: 1100px) {
  .radar-grid { grid-template-columns: minmax(0, 1fr); }
  .insight-col { position: static; max-height: none; }
  .feed-head { flex-wrap: wrap; }
  .feed-head h2 { white-space: normal; }
  body.m-detail #view-radar .feed-col { display: none; }
  body:not(.m-detail) #view-radar .insight-col { display: none; }
  body.m-detail .m-back { display: block; position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; }
  .m-back .btn { box-shadow: var(--shadow-lift); background: var(--surface); padding: 10px 16px; font-weight: 650; }
}
@media (max-width: 640px) {
  .top-actions { flex: 1 1 auto; min-width: 0; margin-left: 4px; }
  .ctx-btn { display: inline-flex; gap: 6px; flex: 1 1 auto; min-width: 0; justify-content: space-between; }
  #ctxLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .topbar:not(.ctx-open) .session { display: none; }
  .topbar:not(.ctx-open) { flex-wrap: nowrap; }
  .brand { flex: none; }
  .topbar.ctx-open .session { display: grid; }
  .tour-btn { padding-inline: 10px; flex: none; } .t-long { display: none; } .t-short { display: inline; }
  .brand-txt { display: none; }
  .feed-head h2 { font-size: 22px; }
  .tool-row select { flex: 1 1 140px; min-width: 0; }
  .feed-item { overflow-wrap: anywhere; }
}


/* Действия у разбора и дайджеста */
.ins-actions { float: right; display: inline-flex; gap: 6px; }
.ph-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.print-head { display: none; }

/* PDF и печать: только документ, шапка Альфа-Бизнеса, без навигации и кнопок */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --bg: #fff; }
  body { background: #fff !important; color: #000; }
  .topbar, .sidebar, .app-foot, .toast, .feed-col, .m-back, #tourLayer, .tour, .login, dialog, .chat, .feedback, .cta, .whatif,
  .detail-toggle, .ins-actions, #refreshBtn, .tabs, .ph-actions, .dg-pdf, .dg-side .notif, .hide-btn, .think, .globe-tip { display: none !important; }
  .layout, main, .radar-grid { display: block !important; padding: 0 !important; margin: 0 !important; height: auto !important; }
  .view { display: none !important; }
  body[data-print="insight"] #view-radar, body[data-print="digest"] #view-digest { display: block !important; }
  .insight-col { display: block !important; position: static !important; max-height: none !important; overflow: visible !important; height: auto !important; }
  .print-head { display: flex !important; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #ef3124; padding: 0 0 8px; margin-bottom: 14px; font-size: 12px; color: #333; }
  .print-head b { font-size: 15px; color: #ef3124; white-space: nowrap; margin-right: 16px; }
  .insight, .card { box-shadow: none !important; border: 0 !important; padding: 0 !important; background: #fff !important; }
  .takeaway.short { background: #f4f4f6 !important; color: #000 !important; border: 1px solid #ddd; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .takeaway.short *, .sh-note, .sh-meta { color: #222 !important; }
  .claim, .scen, .effect-chart, .lever-table tr, .q { break-inside: avoid; }
  .pill, .scen, .effect-chart, .lever-table td, .src, .kind { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details > *:not(summary) { display: block; }
  details { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9px; color: #666; word-break: break-all; }
  .disclaimer { font-size: 9px; color: #555; border-top: 1px solid #ccc; padding-top: 6px; }
}

/* Шкала важности на карточке ленты */
.imp-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.imp-lbl { font-size: 11px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.imp-row .score-bar { flex: 1; margin-top: 0; height: 4px; }

.no-money { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink2); margin: 8px 0 10px; }
.imp-lbl.l3 { color: var(--red-ink); } .imp-lbl.l2 { color: var(--ink2); }
.imp-src { font-weight: 500; color: var(--muted); }
.score-bar > i.l1 { background: var(--muted); } .score-bar > i.l0 { background: var(--line); }

/* Деньги на кону */
.money-card h3 { margin: 4px 0 12px; }
.money-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mt { border-radius: 16px; padding: 12px 14px; background: var(--soft); display: grid; gap: 2px; }
.mt span { font-size: 12px; color: var(--muted); font-weight: 600; }
.mt b { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt i { font-style: normal; font-size: 12px; color: var(--muted); }
.mt.up b { color: var(--opp); } .mt.down b { color: var(--risk); } .mt.protect b { color: var(--watch); }
.money-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.money-list li { border-top: 1px solid var(--line); padding-top: 8px; }
.ml-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ml-range { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ml-range .bad { color: var(--risk); } .ml-range .ok { color: var(--opp); }
.ml-ev { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 2px; }
.ml-ev .link-btn { text-align: left; }
.ml-act { font-size: 13px; color: var(--watch); margin-top: 3px; }
@media (max-width: 640px) { .money-tiles { grid-template-columns: 1fr; } .mt b { font-size: 22px; } .ml-head { flex-direction: column; gap: 2px; } }

/* телефон: ничего не выходит за край экрана */
@media (max-width: 640px) {
  .insight, .insight-col, #insightPanel, .chat, .quick { min-width: 0; max-width: 100%; }
  .quick { display: flex; flex-wrap: wrap; gap: 6px; }
  .quick button { white-space: normal; text-align: left; }
  .chat-row .btn { padding-inline: 14px; }
}

/* ============================== Разделы банка ============================== */
.bk-hero { position: relative; border-radius: 24px; padding: 28px 32px; margin-bottom: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 380px at 90% 30%, rgba(239, 49, 36, .24), transparent 60%), #0b0b0d; }
:root[data-theme="dark"] .bk-hero { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.bk-hero h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 18px; letter-spacing: -.01em; }
.bk-hero h3 small { font-size: 15px; font-weight: 500; color: #b9b9c2; margin-left: 6px; letter-spacing: 0; }
.eyebrow.light { color: #ff8a80; }
.bk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bk-stat { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bk-stat span { font-size: 13px; color: #c9c9d1; }
.bk-stat b { font-size: 22px; }
.bk-stat i { font-style: normal; font-size: 12px; color: #9a9aa5; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bk-chips .chip { background: rgba(255, 255, 255, .1); color: #fff; }
.bk-note { margin-top: 14px; font-size: 13px; color: #b9b9c2; max-width: 860px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bk-col { display: flex; flex-direction: column; gap: 20px; }
.bk-evs { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-ev { padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.bk-ev:hover, .bk-ev:focus-visible { background: var(--soft); }
.bk-ev b { font-weight: 650; }
.bk-ev.read b { font-weight: 500; }
#view-bank .peer-row { grid-template-columns: 1fr 90px 40px; }
#navBadge[hidden] { display: none; }
#markAllRead { font-size: 13px; }
@media (max-width: 980px) { .bk-grid { grid-template-columns: 1fr; } .bk-hero { padding: 22px 20px; } }
.pending-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px;
  animation: pend 1.2s ease-in-out infinite; }
@keyframes pend { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pending-dot { animation: none; } }
.bell-wrap { position: relative; }
.bell { position: relative; }
.bell-n { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.bell-n[hidden] { display: none; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, 92vw); background: var(--surface); color: var(--ink);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .22); padding: 14px; z-index: 60; }
.bell-pop[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bell-pop ul { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.bell-pop li { padding: 9px 10px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.bell-pop li:hover, .bell-pop li:focus-visible { background: var(--soft); }
.bell-pop li b { font-weight: 600; font-size: 14px; }
.sens ul { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sens li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.sens li span { flex: 1 1 260px; }
.sens li b.bad { color: var(--risk); } .sens li b.ok { color: var(--opp); }
.sens-tag { font-style: normal; font-size: 12px; background: var(--watch-bg); color: var(--watch); border-radius: 999px; padding: 1px 8px; }
/* «Главное сейчас» на главной */
.focus-card { border: 1.5px solid var(--red); }
.focus-main { cursor: pointer; border-radius: 14px; margin: 8px -10px 0; padding: 10px; }
.focus-main:hover, .focus-main:focus-visible { background: var(--soft); }
.focus-main h3 { margin: 8px 0 6px; font-size: 21px; line-height: 1.25; }
.focus-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fchip { font-size: 13px; font-weight: 600; background: var(--soft2); border-radius: 999px; padding: 3px 10px; }
.fchip .bad, .w-money .bad { color: var(--risk); } .fchip .ok, .w-money .ok { color: var(--opp); }
.focus-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.w-money { font-size: 13px; font-weight: 600; margin-top: 4px; }
/* «Мои действия» */
.act-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px 2px; }
.badge.soft { background: var(--soft2); color: var(--ink); }
.badge[hidden] { display: none; }
.tasks-grid { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.tasks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.task { display: grid; grid-template-columns: 28px 1fr 36px; gap: 8px; align-items: start; padding: 10px 6px; border-radius: 12px; }
.task:hover { background: var(--soft); }
.task.done .task-body b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task.late { box-shadow: inset 3px 0 0 var(--risk); }
.task .bad { color: var(--risk); font-weight: 600; }
.task .icon-btn.small { width: 30px; height: 28px; font-size: 16px; }
/* Календарь компании */
.cal-card { max-width: 900px; }
.cal-month { margin: 18px 0 6px; font-size: 18px; }
.cal-month:first-child { margin-top: 0; }
.cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.cal-item.link { cursor: pointer; }
.cal-item.link:hover, .cal-item.link:focus-visible { background: var(--soft); }
.cal-date { display: flex; flex-direction: column; align-items: center; background: var(--soft2); border-radius: 12px; padding: 6px 0; }
.cal-date b { font-size: 22px; line-height: 1; } .cal-date span { font-size: 12px; color: var(--muted); }
.cal-body { display: flex; flex-direction: column; gap: 3px; } .cal-body .pill { align-self: flex-start; }
/* Прогнозы банка */
.fc-h { margin: 18px 0 10px; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fc-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fc-card.revised { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--bank); }
.fc-card .rev { white-space: normal; align-self: flex-start; line-height: 1.35; }
.fc-top span { min-width: 0; overflow-wrap: anywhere; }
.fc-card { min-width: 0; overflow-wrap: anywhere; }
.fc-new { font-size: 11px; font-weight: 700; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.bell-sec { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fc-top b { font-size: 22px; white-space: nowrap; }
.fc-spark { width: 100%; height: 54px; }
.fc-src { color: var(--muted); }
.fc-alert ul { margin: 6px 0; padding-left: 18px; }
.fc-more { margin-top: 18px; } .fc-more summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
/* «Как мы проверяли» */
.proof { margin-bottom: 20px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.pf-card { background: var(--soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pf-card b { font-size: 26px; color: var(--red-ink); }
.pf-t { font-weight: 650; }

/* контурные иконки в тексте (вместо эмодзи) */
.ico { width: 1.05em; height: 1.05em; vertical-align: -.16em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .ico { width: 16px; height: 16px; vertical-align: middle; }
.chip.geo .ico { margin-right: 3px; }

/* «Дела по радару» на главной — плитки-счётчики, как сводка в интернет-банке */
.home-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.hs-tile { display: flex; gap: 12px; align-items: center; text-align: left; border: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius-m); padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer; font: inherit; transition: transform .15s var(--ease), box-shadow .2s; min-width: 0; }
.hs-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.hs-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--soft2); color: var(--ink2); }
.hs-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hs-tile.alert .hs-ico.risk { background: var(--risk-bg); color: var(--risk); }
.hs-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hs-txt b { font: 800 22px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-txt span { font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .home-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-strip { gap: 8px; margin: 14px 0; } .hs-tile { padding: 12px; gap: 10px; } .hs-ico { width: 34px; height: 34px; } .hs-txt b { font-size: 18px; } .hs-txt span { font-size: 12px; } }
@media print { .home-strip { display: none; } }

/* лента: счётчики у фильтров и группы по дням */
.seg-n { margin-left: 6px; font-size: 11.5px; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; }
.seg button.on .seg-n { opacity: .75; }
.feed-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 4px 8px; }
.feed-day:first-child { margin-top: 4px; }

/* лента: узкая колонка — заголовок и кнопка переносятся, фильтры эффекта в одну строку с прокруткой */
.feed-head { flex-wrap: wrap; }
.feed-head h2 { white-space: normal; }
.feed-head .btn { padding: 7px 12px; font-size: 13.5px; }
.feed-tools .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.feed-tools .seg::-webkit-scrollbar { display: none; }
.feed-tools .seg button { white-space: nowrap; flex: none; }
.seg button.zero { display: none; }
.tool-row input[type=search] { flex: 1 1 100%; }
.widget-head .btn { white-space: nowrap; flex: none; }
@media (max-width: 1180px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-row input[type=search] { max-width: none; }

/* Разбор события: шапка, позиция банка, закреплённая панель действий */
.ins-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.ins-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1 1 260px; }
.ins-top .ins-actions { float: none; flex: none; }
.q h4 .n { background: var(--ink); color: var(--on-ink); }
.bv-card { border-radius: var(--radius-m); padding: 14px 16px; background: var(--bank-bg); box-shadow: inset 4px 0 0 var(--red); }
.bv-card .claim.bank_view { background: var(--surface); }
.bv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.bv-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.bv-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ins-bar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px -26px -26px; padding: 12px 26px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 980px) { .ins-bar { display: none; } }  /* на планшете и телефоне внизу — кнопка «К ленте» */
@media print { .ins-bar { display: none; } }

/* Прогнозы: название сверху, крупное значение под ним — длинные значения («−5,8 трлн руб.») не ломают слова */
.fc-top { flex-direction: column; align-items: flex-start; gap: 2px; }
.fc-top span { overflow-wrap: normal; font-weight: 600; color: var(--ink2); }
.fc-top b { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.fc-card { overflow-wrap: break-word; }
/* «Мои действия»: ссылка на событие — обычной строкой слева */
[data-tev], [data-focus-ev] { text-align: left; display: block; margin-top: 4px; }

/* Телефон: нижняя панель разделов, как в мобильном банке; «Ещё» — все разделы листом снизу */
.nav-more { display: none !important; }
@media (max-width: 640px) {
  body:not(.logged-out) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 35; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow: visible; background: var(--sidebar); }
  .sidebar .nav-item:not([data-primary]) { display: none; }
  .sidebar .nav-more { display: flex !important; }
  body.nav-open .sidebar .nav-item { display: flex; }
  .sidebar .nav-item { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 7px 2px 5px; font-size: 11px; font-weight: 600; border-radius: 12px; white-space: nowrap; }
  .sidebar .nav-item span:not(.badge) { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .sidebar .nav-item svg { width: 22px; height: 22px; }
  .sidebar .nav-item .badge { position: absolute; top: 2px; left: calc(50% + 5px); font-size: 10px; padding: 0 5px; min-width: 16px; }
  .sidebar .nav-item.active { background: none; color: var(--red-ink); }
  .sidebar .nav-item.active::before { display: none; }
  .nav-sep, .nav-foot { display: none; }
  body.nav-open .sidebar { flex-direction: column; justify-content: flex-start; max-height: 78vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 14px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 0 0 100vmax rgba(8, 8, 10, .45); }
  body.nav-open .sidebar .nav-item, body.nav-open .sidebar .nav-more { flex: none; flex-direction: row; gap: 12px; font-size: 15px; padding: 11px 12px; }
  body.nav-open .sidebar .nav-item .badge { position: static; }
  body.nav-open .sidebar .nav-sep { display: block; }
  body.nav-open .sidebar .nav-more { order: -1; justify-content: flex-start; color: var(--muted); }
  body.nav-open .sidebar .nav-more span::after { content: " — свернуть"; }
  body.m-detail .m-back { bottom: calc(78px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Связь с сервером пропала — полоса сверху */
#netBar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: var(--warn-bg2); color: var(--warn-ink2); text-align: center; font-size: 13px; font-weight: 600;
  padding: 6px 12px; transform: translateY(-100%); transition: transform .25s var(--ease); }
#netBar.on { transform: none; }
/* График эффекта: наведение на месяц — вертикальная линия и подсказка с суммами трёх сценариев */
.ec-hit rect { fill: transparent; cursor: crosshair; }
.ec-hit line { stroke: var(--ink); stroke-opacity: 0; stroke-width: 1; pointer-events: none; }
.ec-hit:hover line { stroke-opacity: .25; }

/* =====================================================================================================
   Стиль 2 (24.10): минимализм делового интернет-банка — тонкие линии вместо теней, спокойные заголовки,
   красный только как акцент (действие, активный пункт, риск). Плотная, но воздушная сетка 8 px.
   ===================================================================================================== */
:root { --radius: 16px; --radius-m: 14px; --radius-s: 10px; --bg: #f3f4f6; --line: #e5e7eb;
  --shadow: none; --shadow-lift: 0 10px 28px rgba(16, 18, 22, .08); --hair: 1px solid var(--line); }
:root[data-theme="dark"] { --line: #26282d; --shadow-lift: 0 10px 28px rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line: #26282d; --shadow-lift: 0 10px 28px rgba(0, 0, 0, .45); } }

/* поверхности: одна тонкая линия, без тени; интерактивные — мягкий подъём при наведении */
.card, .insight, .feed-item, .hs-tile, .fc-card, .empty, .qa, .bk-hero ~ .bk-grid .card { border: var(--hair); }
.feed-item:hover, .hs-tile:hover, .qa:hover { box-shadow: var(--shadow-lift); }
.hs-tile:hover { transform: none; }
.card { padding: 20px 22px; }

/* типографика: меньше крика — заголовки 700, подписи серые, красный — только смысловой */
h2 { font-size: 22px; font-weight: 750; }
.page-head h2 { font-size: 30px; font-weight: 800; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .07em; }
.focus-card .eyebrow, .bk-hero .eyebrow, .hero .eyebrow { color: var(--red-ink); }
.widget-head h2 { font-size: 20px; }
.radar-widget::before { display: none; }
.focus-card { border: var(--hair); box-shadow: inset 3px 0 0 var(--red); }
.w-item { background: transparent; border: var(--hair); }
.w-item:hover { transform: none; background: var(--soft); box-shadow: none; }

/* знак в шапке: плоский, без тени; официальный логотип (frontend/brand/logo.svg) — без подложки */
.brand-mark { box-shadow: none; border-radius: 10px; width: 34px; height: 34px; }
.brand-mark.official { background: none; border-radius: 0; }
.brand-mark.official img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* тёмный блок радара: компактный, целиком помещается в первый экран вместе с «Делами по радару» */
.hero { min-height: 0; height: clamp(400px, calc(100vh - var(--top-h, 64px) - 220px), 460px); padding: 28px 36px 0; border-radius: 22px; margin-bottom: 16px; }
.hero-copy { padding-bottom: 22px; align-self: center; }
.hero h1 { font-size: clamp(28px, 2.6vw, 40px); max-width: 18ch; margin: 14px 0 10px; letter-spacing: -.03em; }
.hero-sub { font-size: 14.5px; margin-bottom: 16px; line-height: 1.5; }
.hero-stats { gap: 8px; margin-bottom: 16px; max-width: 520px; }
.hs { padding: 9px 12px; border-radius: 12px; }
.hs b { font-size: 24px; }
.hs span { font-size: 12px; }
.hero-cta .btn-lg { padding: 10px 16px; font-size: 14.5px; border-radius: 12px; }
.hero-globe { min-height: 0; margin: -28px -36px 0 -20px; }
.globe-legend { bottom: 50px; }
.globe-hint { top: 50px; }
.ticker { margin: 0 -36px; height: 42px; }
@media (max-width: 1200px) {
  .hero { height: auto; padding: 26px 24px 0; }
  .hero-globe { min-height: 360px; margin: 0 -24px; }
  .ticker { margin: 0 -24px; }
}
@media (max-width: 640px) { .hero { padding: 22px 16px 0; } .hero-globe { min-height: 300px; margin: 0 -16px; } .ticker { margin: 0 -16px; } .hero h1 { font-size: 30px; } }

/* «Дела по радару» и быстрые действия — как сводка и ряд кнопок на главной интернет-банка */
.home-strip { margin: 0 0 12px; }
.home-quick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; background: var(--surface); border-radius: var(--radius-m);
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: center; line-height: 1.25; transition: box-shadow .2s, border-color .2s; }
.qa-i { width: 40px; height: 40px; border-radius: 50%; background: var(--soft2); color: var(--ink2); display: grid; place-items: center; transition: background .2s, color .2s; }
.qa-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qa:hover .qa-i { background: var(--red); color: #fff; }
@media (max-width: 1100px) { .home-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-quick { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
  .home-quick::-webkit-scrollbar { display: none; }
  .qa { flex: 0 0 92px; }
}

/* мини-карточки на главной: ближайшие даты и мои действия */
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mini-head h3 { font-size: 16px; margin: 0; }
.link-more { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap; }
.link-more:hover { color: var(--red-ink); }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; align-items: start; text-align: left; border: 0; border-top: var(--hair); background: none;
  color: var(--ink); font: inherit; padding: 10px 0; cursor: pointer; }
.mini-row:first-child { border-top: 0; }
.mini-row:hover .mini-t { color: var(--red-ink); }
.mini-date { grid-row: span 2; font-size: 12.5px; font-weight: 700; background: var(--soft2); border-radius: 8px; padding: 4px 6px; text-align: center; white-space: nowrap; }
.mini-dot { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--opp); margin: 7px 0 0 4px; }
.mini-t { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mini-s { font-size: 12.5px; color: var(--muted); }
.mini-row:has(.mini-dot) { grid-template-columns: 16px minmax(0, 1fr); }
.mini-empty { font-size: 13.5px; color: var(--muted); padding: 6px 0 2px; }
.skeleton.sm { height: 64px; }
.hero .globe-hint { display: none; }
/* нижняя панель на телефоне: короткие подписи, чтобы не обрезались */
@media (max-width: 640px) {
  body:not(.nav-open) .sidebar .nav-item[data-short] span:not(.badge) { display: none; }
  body:not(.nav-open) .sidebar .nav-item[data-short]::after { content: attr(data-short); }
}
.mini-dot { align-self: start; justify-self: start; flex: none; }

/* блок радара: высота по содержимому (лента прогнозов внизу не обрезается), выбор периода не закрывает глобус */
.hero { height: auto; min-height: clamp(380px, calc(100vh - var(--top-h, 64px) - 240px), 440px); grid-template-rows: minmax(0, 1fr) auto; }
.hero-globe canvas { top: 56px; height: calc(100% - 56px - 46px); }
.ticker { align-self: end; flex: none; }
@media (max-width: 1200px) { .hero { min-height: 0; } .hero-globe canvas { top: 48px; height: calc(100% - 48px - 40px); } }

/* Знак Альфа-Банка (официальный файл, frontend/brand): без тени и подложки; на светлом — красный, на тёмном — белый */
.brand-mark.alfa { background: none; box-shadow: none; border-radius: 0; width: 26px; height: 38px; color: var(--red-2); }
.brand-mark.alfa svg { width: 100%; height: 100%; }
.brand { gap: 12px; }
:root[data-theme="dark"] .topbar .brand-mark.alfa, .brand-light .brand-mark.alfa { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar .brand-mark.alfa { color: #fff; } }
/* фирменные серые из брендбука */
:root { --muted: #505759; }
/* «фундамент» — фирменная красная черта как акцент у заголовков разделов */
.page-head h2::after { content: ""; display: block; width: 36px; height: 4px; background: var(--red-2); margin-top: 10px; }
/* подписи легенды — под глобусом, а не поверх него */
.hero-globe canvas { height: calc(100% - 56px - 46px - 34px); }
.globe-legend { bottom: 54px; }
@media (max-width: 1200px) { .hero-globe canvas { height: calc(100% - 48px - 40px - 34px); } .globe-legend { bottom: 48px; } }
/* «фундамент» под заголовком тёмного блока — как черта под знаком и в иконках саббрендов банка */
.hero h1::after { content: ""; display: block; width: 48px; height: 5px; background: var(--red-2); margin-top: 14px; }

/* =====================================================================================================
   Визуальные блоки вместо текста (24.10): пульс ленты, цепочка влияния, диаграмма «деньги на кону»,
   шкала «что на кону», лента дат календаря, короткие причины и свёрнутый комментарий ИИ
   ===================================================================================================== */
/* пульс ленты */
.pulse-svg { width: 100%; height: auto; display: block; margin: 6px 0 4px; overflow: visible; }
.pc-hit { fill: transparent; }
.pc-col.on { cursor: pointer; }
.pc-col.on:hover .pc-hit, .pc-col.on:focus .pc-hit { fill: var(--soft2); }
.pc-col:focus { outline: none; }
.pc-empty { fill: var(--line); }
.pc-ax { font-size: 10px; fill: var(--muted); font-family: var(--font); }
.pc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.pc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pc-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* цепочка влияния: событие → фактор → через → деньги */
.chain { display: flex; align-items: stretch; gap: 4px; margin: 12px 0 4px; flex-wrap: nowrap; }
.ch-node { flex: 1 1 0; min-width: 0; background: var(--soft); border: var(--hair); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ch-node span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ch-node b { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.ch-node.eff-risk { background: var(--risk-bg); border-color: transparent; } .ch-node.eff-risk b { color: var(--risk); }
.ch-node.eff-opportunity { background: var(--opp-bg); border-color: transparent; } .ch-node.eff-opportunity b { color: var(--opp); }
.ch-node.eff-watch, .ch-node.eff-mixed { background: var(--watch-bg); border-color: transparent; } .ch-node.eff-watch b { color: var(--watch); }
.ch-node.money { background: var(--ink); border-color: var(--ink); } .ch-node.money span { color: color-mix(in srgb, var(--on-ink) 60%, transparent); } .ch-node.money b { color: var(--on-ink); }
.ch-node.calm b { color: var(--muted); font-weight: 600; }
.ch-arrow { width: 18px; flex: none; align-self: center; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .chain { flex-direction: column; } .ch-arrow { transform: rotate(90deg); margin: -2px auto; height: 14px; } }

/* «деньги на кону»: диаграмма по рычагам */
.mbars { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.mb-row { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; gap: 4px 14px; align-items: center; }
.mb-label { display: flex; flex-direction: column; min-width: 0; }
.mb-label b { font-size: 13.5px; line-height: 1.3; }
.mb-ev { font-size: 12px; text-align: left; }
.mb-bar { display: grid; grid-template-columns: 1fr 2px 1fr; align-items: center; height: 30px; }
.mb-half { position: relative; height: 22px; display: flex; align-items: center; }
.mb-half.neg { justify-content: flex-end; } .mb-half.pos { justify-content: flex-start; }
.mb-half i { display: block; height: 100%; min-width: 3px; }
.mb-half.neg i { background: var(--risk); border-radius: 6px 0 0 6px; } .mb-half.pos i { background: var(--opp); border-radius: 0 6px 6px 0; }
.mb-half em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; padding: 0 6px; font-variant-numeric: tabular-nums; }
.mb-half.neg em { order: -1; color: var(--risk); } .mb-half.pos em { color: var(--opp); }
.mb-zero { background: var(--ink); height: 30px; opacity: .5; }
.mb-more { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; padding: 6px 0 2px 12px; border-left: 2px solid var(--line); }
.mb-axis { display: grid; grid-template-columns: minmax(120px, 32%) 1fr 1fr 1fr; gap: 0 14px; font-size: 11px; color: var(--muted); }
.mb-axis span:first-child { grid-column: 2; } .mb-axis span:nth-child(2) { text-align: center; } .mb-axis span:last-child { text-align: right; }
.howcalc { margin-top: 6px; } .howcalc summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.howcalc p { margin: 6px 0 0; }
@media (max-width: 640px) { .mb-row { grid-template-columns: 1fr; } .mb-axis { grid-template-columns: 1fr 1fr 1fr; } .mb-axis span:first-child { grid-column: auto; } }

/* шкала «что на кону» в блоке «Коротко» */
.stake { margin: 4px 0 10px; max-width: 460px; }
.stake-track { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.stake-track i { position: absolute; top: 0; bottom: 0; }
.stake-track i.neg { background: #ff5a4f; border-radius: 999px 0 0 999px; } .stake-track i.pos { background: #34d17f; border-radius: 0 999px 999px 0; }
.stake-track b { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.stake-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255, 255, 255, .6); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* лента 90 дней в календаре */
.cal-strip { position: relative; height: 54px; margin: 4px 8px 18px; }
.cs-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.cs-month { position: absolute; top: 34px; transform: translateX(-50%); font-size: 11px; color: var(--muted); text-transform: capitalize; }
.cs-month::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 8px; background: var(--line); }
.cs-today { position: absolute; top: 34px; font-size: 11px; font-weight: 700; color: var(--red-ink); }
.cs-dot { position: absolute; top: 15px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--surface); cursor: pointer; padding: 0; background: var(--watch);
  box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.cs-dot:hover, .cs-dot:focus-visible { transform: scale(1.35); }
.cs-dot.norm { background: var(--risk); } .cs-dot.task { background: var(--opp); }
.cal-item.flash { animation: calFlash 1.4s ease; border-radius: 12px; }
@keyframes calFlash { 0%, 60% { background: var(--hl); } 100% { background: transparent; } }

/* короткие причины и свёрнутый комментарий ИИ */
.w-reason { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 6px; }
.rchip { font-size: 12px; font-weight: 600; background: var(--soft2); border-radius: 999px; padding: 2px 9px; }
.w-via { font-size: 12.5px; color: var(--muted); }
details.ai-note { font-size: 12.5px; color: var(--ai); margin-top: 6px; }
details.ai-note summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; gap: 5px; align-items: center; background: var(--ai-bg); border-radius: 999px; padding: 2px 10px; }
details.ai-note summary::-webkit-details-marker { display: none; }
details.ai-note[open] summary { margin-bottom: 4px; }

/* Styrene A широкий: заголовки — Medium/Bold (по брендбуку), чуть меньше трекинг и кегль, чем у Inter Display */
h1, h2, h3, .hs-txt b, .hs b, .mini-head h3 { letter-spacing: -.01em; }
h2 { font-weight: 700; } h3 { font-weight: 500; }
.page-head h2 { font-weight: 700; font-size: 28px; }
.hero h1 { font-weight: 700; letter-spacing: -.02em; font-size: clamp(26px, 2.35vw, 36px); }
.brand { font-family: var(--display); font-weight: 700; }
.brand-txt small { font-family: var(--font); }
/* кольцо по эффектам в дайджесте */
.donut-wrap { display: flex; align-items: center; gap: 18px; margin: 10px 0 12px; }
.donut { width: 104px; height: 104px; flex: none; }
.dn-n { font: 700 20px var(--display); fill: var(--ink); }
.dn-l { font-size: 9px; fill: var(--muted); font-family: var(--font); }
.dn-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.dn-legend li { display: flex; align-items: center; gap: 8px; }
.dn-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Разбор: часть утверждений свёрнута, самопроверка — одной строкой со счётчиком */
details.more-claims > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 2px; list-style: none; }
details.more-claims > summary::before { content: "+ "; }
details.more-claims[open] > summary::before { content: "− "; }
details.more-claims > summary::-webkit-details-marker { display: none; }
.qa-sum { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.qa-ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); flex: none; }
.qa-ring.ok { background: var(--opp-bg); color: var(--opp); box-shadow: inset 0 0 0 3px var(--opp); }
.qa-ring.warn { background: var(--mixed-bg); color: var(--mixed); box-shadow: inset 0 0 0 3px var(--mixed); }
.qa-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-sym { font-size: 12px; color: rgba(255, 255, 255, .6); margin: -4px 0 8px; max-width: 460px; }
/* «Проверить новость»: примеры в один клик и шаги ожидания */
.an-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.an-examples .chip { background: var(--soft2); }
.an-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.an-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.an-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.an-steps li.done { color: var(--ink); } .an-steps li.done::before { background: var(--opp); }
.an-steps li.now { color: var(--ink); font-weight: 600; } .an-steps li.now::before { background: var(--red-2); animation: live 1.6s infinite; }

/* Телефон и мелкий лоск */
/* вход: форма не шире экрана (длинные строки демо-учёток не растягивают колонку) */
/* колокольчик на телефоне: окно уведомлений по ширине экрана, а не от кнопки влево за край */
@media (max-width: 640px) {
  .bell-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--top-h, 64px) + 6px); width: auto; max-height: calc(100vh - var(--top-h, 64px) - 100px); overflow: auto; }
}
/* карта влияния: короткие подписи колонок на узком экране */
.im-heads i { font-style: normal; }
.im-short { display: none; }
@media (max-width: 760px) { .im-long { display: none; } .im-short { display: inline; } }
/* вкладки разбора на телефоне — в одну строку с прокруткой, без переносов */
@media (max-width: 640px) {
  .tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; padding: 10px 12px; font-size: 14px; }
  .kinds { font-size: 12px; }
}
body.m-detail .insight { padding-bottom: 84px; }

/* «Деньги на кону» v2: сигналы событий с направлением и причиной от ИИ, чувствительность компании */
.mb-tilt { font-size: 11.5px; font-weight: 600; }
.mb-tilt.neg { color: var(--risk); } .mb-tilt.pos { color: var(--opp); } .mb-tilt.even { color: var(--muted); }
.mb-sigs { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 2px 0 4px; }
.mb-sig { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; text-align: left; border: 0; background: var(--soft);
  border-radius: 10px; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.mb-sig:hover { background: var(--soft2); }
.mb-arrow { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--soft2); }
.mb-sig.worse .mb-arrow { background: var(--risk-bg); color: var(--risk); } .mb-sig.better .mb-arrow { background: var(--opp-bg); color: var(--opp); }
.mb-sig-t { display: flex; flex-direction: column; min-width: 0; }
.mb-sig-t b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.mb-sig-t i { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mb-str { font-size: 9px; letter-spacing: 1px; color: var(--red-2); padding-top: 5px; white-space: nowrap; }
.money-ai { font-size: 12.5px; color: var(--ai); margin: 8px 0 2px; display: flex; gap: 6px; align-items: center; }
.sens { margin-top: 8px; }
.sens-row { display: grid; grid-template-columns: minmax(0, 1fr) 30% auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.sens-bar { height: 8px; background: var(--soft2); border-radius: 999px; overflow: hidden; }
.sens-bar i { display: block; height: 100%; border-radius: 999px; } .sens-bar i.neg { background: var(--risk); } .sens-bar i.pos { background: var(--opp); }
.sens-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* пересмотры прогноза банка в «Деньгах на кону» */
.money-tiles.one { grid-template-columns: 1fr; }
.rev-money { margin-top: 12px; }
.rvm-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bank-bg); margin-top: 6px;
  box-shadow: inset 3px 0 0 var(--red); }
.rvm-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rvm-what b { font-size: 13.5px; }
.rvm-change { font: 700 15px var(--display); }
.rvm-eff { text-align: right; display: flex; flex-direction: column; flex: none; }
.rvm-eff b { font: 700 17px var(--display); white-space: nowrap; }
.rej { margin: 4px 0 0; padding-left: 18px; font-size: 13px; } .rej li { margin: 3px 0; }

/* ---- Проверяемость разбора */
.sh-lead { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(18px, 2.1vw, 22px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.sup, .asof { display: inline-block; font-size: 11px; font-weight: 650; border-radius: 999px; padding: 1px 8px; margin-left: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.sup.two { color: var(--opp); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--opp) 40%, transparent); }
.sup.none { color: var(--mixed); }
.asof.stale { color: var(--mixed); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mixed) 45%, transparent); }
abbr.gl { text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; cursor: help; }
abbr.gl:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.review-card, .nums-card, .delta-card { border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 2px; }
.rv-kind { font-weight: 750; }
.rv-score { font-family: var(--display); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 10px; background: var(--mixed-bg); color: var(--mixed); }
.rv-score.ok { background: var(--opp-bg); color: var(--opp); }
.rv-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.rv-list li.ok { color: var(--ink); } .rv-list li.ok::first-letter { color: var(--opp); }
.rv-list li.miss { color: var(--muted); }
.rv-facts { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nums-card { background: linear-gradient(90deg, var(--surface), var(--bank-bg)); }
.nm-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto 28px auto; gap: 10px; align-items: center; margin: 8px 0 4px; }
.nm-t { font-weight: 650; font-size: 14px; }
.nm-v { display: grid; text-align: right; }
.nm-v b { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1; }
.nm-v i { font-style: normal; font-size: 11px; color: var(--muted); }
.nm-v.bank b { color: var(--red-ink); }
.nm-vs { text-align: center; font-size: 18px; color: var(--muted); }
.delta-card { border-left: 4px solid var(--red); }
.dl-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 14px; margin: 6px 0; }
.dl-row.now span:last-child { font-weight: 600; }
.dl-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.dl-new { font-size: 13px; margin: 6px 0; } .dl-new b { font-family: var(--display); margin-right: 6px; color: var(--red-ink); }
@media (max-width: 640px) {
  .dl-row { grid-template-columns: 1fr; gap: 2px; }
  .nm-row { grid-template-columns: 1fr auto 22px auto; } .nm-v b { font-size: 18px; }
}
@media print { .sh-lead { color: #000 !important; } }

/* ---- Деньги и сценарии */
.nums-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none;
  border-radius: 999px; padding: 4px 11px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); vertical-align: middle; margin-left: 8px; }
.nums-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.nums-chip.on { background: var(--opp-bg); color: var(--opp); box-shadow: none; }
.nums-chip .ico { width: 14px; height: 14px; }
.calc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.calc-bar .nums-chip { margin-left: 0; }
.nums-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 14px 0 18px; }
.nums-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.nf { display: flex; align-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); padding-right: 10px; }
.nf input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: inherit; color: var(--ink); }
.nf input:focus { outline: none; } .nf:focus-within { box-shadow: inset 0 0 0 2px var(--red); }
.nf i { font-style: normal; font-size: 12px; color: var(--muted); }
.gauge { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; margin-top: 6px; max-width: 160px; }
.gauge i { display: block; height: 100%; border-radius: inherit; }
.gauge.low i { background: var(--opp); } .gauge.mid i { background: var(--mixed); } .gauge.high i { background: var(--risk); }
.buffers { margin-top: 14px; }
.bf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.bf { border-radius: 14px; padding: 10px 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.bf b { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.bf span { font-size: 12px; color: var(--muted); }
.peers-line { margin-top: 12px; font-size: 13px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.peers-line i { font-style: normal; color: var(--opp); font-weight: 650; }
.ml-prot { display: inline-flex; gap: 6px; align-items: baseline; margin-left: 8px; font-weight: 650; }
.ml-prot s { color: var(--risk); } .ml-prot b { color: var(--opp); } .ml-prot i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.lt-calc { font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; color: var(--ink); opacity: .8; margin-top: 3px; }
.hw-card[hidden] { display: none; }
.hw-row { display: grid; grid-template-columns: 1fr 1.2fr 64px; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.hw-row input { width: 100%; accent-color: var(--red); }
.hw-row b { text-align: right; font-family: var(--display); font-size: 13px; }
.hw-out { margin-top: 10px; }
.hw-total { font-family: var(--display); font-size: 24px; font-weight: 800; }
.hw-total.bad { color: var(--risk); } .hw-total.ok { color: var(--opp); }
.hw-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 4px; }
.hw-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hw-buf { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
@media (max-width: 640px) { .nums-grid { grid-template-columns: 1fr; } }

/* ---- Лента и персонализация */
.qf-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.qf { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 12px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; gap: 6px; align-items: center; }
.qf:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.qf.on { background: var(--black); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .qf.on { background: #fff; color: #000; }
.qf-n:empty { display: none; }
.qf-n { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 0 6px; background: var(--red); color: #fff; }
.pill.fresh { background: var(--red); color: #fff; }
.card-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 6px; }
.nfm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.nfm:hover { color: var(--red-ink); }
.why-me { flex: 1; min-width: 0; font-size: 12.5px; }
.why-me summary { cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; }
.why-me summary::-webkit-details-marker { display: none; }
.why-me summary::before { content: "▸ "; } .why-me[open] summary::before { content: "▾ "; }
.wm-list { display: grid; gap: 6px; margin: 8px 0 6px; }
.wm-row { display: grid; grid-template-columns: 120px 80px 1fr; gap: 8px; align-items: center; }
.wm-t { font-weight: 650; }
.wm-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.wm-bar i { display: block; height: 100%; background: var(--muted); border-radius: inherit; }
.wm-bar i.sp { background: var(--ink); } .wm-bar i.neg { background: var(--risk); }
.wm-w { color: var(--muted); font-size: 12px; line-height: 1.35; }
.story-mini { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--ink2); background: var(--soft2); border-radius: 999px; padding: 4px 11px 4px 9px; width: fit-content; max-width: 100%; }
.sm-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--watch); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sm-lbl { font-weight: 600; white-space: nowrap; }
.sm-dates { white-space: nowrap; color: var(--muted); } .sm-dates::before { content: "·"; margin-right: 6px; }
.filtered { margin: 14px 0 30px; border-radius: 16px; padding: 12px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.filtered summary { cursor: pointer; font-weight: 700; }
.fl-g { margin-top: 12px; }
.fl-h { display: grid; grid-template-columns: 44px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.fl-h b { font-family: var(--display); font-size: 18px; }
.fl-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.fl-bar i { display: block; height: 100%; background: var(--muted); }
.fl-g ul { margin: 4px 0 0 54px; padding: 0; list-style: none; font-size: 12.5px; display: grid; gap: 2px; }
@media (max-width: 640px) { .wm-row { grid-template-columns: 1fr 60px; } .wm-w { grid-column: 1 / -1; } .fl-g ul { margin-left: 0; } }

/* ---- Позиция банка и аналитика */
.asof.used { color: var(--bank); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bank) 35%, transparent); }
.doc-open { font-size: 12px; margin-left: 8px; }
.no-bank { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.nb-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.nb-ico .ico { width: 20px; height: 20px; }
.no-bank p { margin: 6px 0 10px; }
.nb-act { display: flex; gap: 8px; flex-wrap: wrap; }
.bank-search .bs-form { display: flex; gap: 8px; margin: 10px 0 8px; }
.bs-form input { flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 12px 14px; font: inherit; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.bs-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.bs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bs-chips .chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; }
.bs-res { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 10px; }
.bs-res li.top > div:first-child { font-weight: 650; font-size: 15px; }
.bs-q { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--bank); color: var(--muted); font-size: 13px; font-style: italic; }
.fc-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.rm-sub { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; }
.rm-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr 56px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.rm-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.rm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.rm-row.rk-bank .rm-bar i { background: var(--red); }
.rm-row b { text-align: right; font-family: var(--display); }
.rt { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rt li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: baseline; font-size: 13px; padding-left: 10px; border-left: 3px solid var(--line); }
.rt li.up { border-left-color: var(--risk); } .rt li.down { border-left-color: var(--opp); }
.rt-d { color: var(--muted); font-size: 12px; } .rt-v i { font-style: normal; color: var(--muted); } .rt-v b { font-family: var(--display); }
.lib-card { margin: 16px 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.lib-doc { text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--ink); border-radius: 16px; padding: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; transition: box-shadow .15s, transform .15s; }
.lib-doc:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-1px); }
.lib-doc b { font-size: 14px; line-height: 1.3; }
.ld-type { font-size: 11px; font-weight: 700; color: var(--bank); text-transform: uppercase; letter-spacing: .04em; }
.ld-n { font-size: 12px; color: var(--muted); }
.ld-stale { font-size: 11px; color: var(--mixed); }
.lib-doc.stale { opacity: .75; }
.pipe { margin-top: 14px; } .pipe summary { cursor: pointer; font-weight: 650; }
.pipe-svg { width: 100%; height: auto; margin: 12px 0 6px; }
.pipe-svg rect { fill: var(--bg); stroke: var(--line); }
.pipe-svg rect.fin { fill: var(--bank-bg); stroke: var(--bank); }
.pipe-svg .pt { font-weight: 750; font-size: 13px; fill: var(--ink); }
.pipe-svg .ps { font-size: 11px; fill: var(--muted); }
.pipe-svg .pa { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.fc-watch { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 4px; margin: 4px 0; }
.fc-watch .ico { width: 13px; height: 13px; }
.fc-watch.on { background: var(--bank-bg); color: var(--bank); box-shadow: none; }
.doc-dlg { max-height: 80vh; overflow: auto; }
.doc-body { display: grid; gap: 10px; margin: 12px 0; }
.doc-page { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-n { font-size: 12px; font-weight: 800; color: var(--bank); }
.dp-t { margin-bottom: 10px; font-size: 14px; }
dialog:has(.doc-dlg) { width: min(820px, 94vw); }
.bt-card[hidden] { display: none; }
.bt-list { display: grid; gap: 8px; margin: 10px 0 8px; }
.bt { text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--ink); border-radius: 14px; padding: 10px 12px; background: var(--bank-bg); display: grid; gap: 4px; border-left: 3px solid var(--bank); }
.bt-txt { font-size: 13.5px; line-height: 1.4; font-weight: 550; }
@media (max-width: 640px) { .rm-row { grid-template-columns: 1fr 70px 48px; } .doc-page { grid-template-columns: 1fr; gap: 4px; } .pipe-svg { min-width: 760px; } .pipe { overflow-x: auto; } }

/* ============================== Главная и навигация ============================== */
/* сводка дня одной фразой — на тёмной обложке, кликабельные части */
.day-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -6px 0 16px; font-size: 13.5px; color: rgba(255, 255, 255, .7); max-width: 62ch; }
.day-sum:empty { display: none; }
.ds-cap { font-weight: 600; color: #fff; }
.ds-part { border: 0; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: background .2s var(--ease); }
.ds-part:hover, .ds-part:focus-visible { background: rgba(255, 255, 255, .18); }
.ds-risk { box-shadow: inset 2px 0 0 #ff5a4f; } .ds-cal { box-shadow: inset 2px 0 0 #6aa6ff; } .ds-fc { box-shadow: inset 2px 0 0 #ff7a6e; } .ds-ok { box-shadow: inset 2px 0 0 #34d17f; }
.ds-sep { opacity: .4; }
@media (max-width: 640px) { .day-sum { font-size: 12.5px; margin: -4px 0 12px; } }

/* мини-графики в плитках */
.hs-spark { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--muted); font-size: 11px; flex: none; }
.mspark { width: 64px; height: 22px; overflow: visible; }
.mspark .sp-line { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mspark .sp-area { fill: var(--soft2); }
.mspark .sp-dot { fill: var(--muted); }
.mspark.risk .sp-line { stroke: var(--risk); } .mspark.risk .sp-dot { fill: var(--risk); } .mspark.risk .sp-area { fill: var(--risk-bg); }
.mspark.ring { width: 26px; height: 26px; }
.ring .rg-bg { fill: none; stroke: var(--soft2); stroke-width: 3; } .ring .rg-fg { fill: none; stroke: var(--watch); stroke-width: 3; stroke-linecap: round; }
.hs-prog { width: 64px; height: 5px; border-radius: 3px; background: var(--soft2); overflow: hidden; display: block; }
.hs-prog i { display: block; height: 100%; background: var(--opp); border-radius: 3px; }
@media (max-width: 900px) { .hs-spark { display: none; } }

/* фильтр ленты по месту с глобуса */
.place-chip { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--watch-bg); color: var(--watch); font-size: 13.5px; font-weight: 500; }
.place-chip[hidden] { display: none; }
.place-chip .ico { width: 16px; height: 16px; }
.place-chip .link-btn { margin-left: auto; font-size: 18px; line-height: 1; color: inherit; }

/* поиск Ctrl+K */
.cmd-btn { position: relative; width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.cmd-btn svg { width: 18px; height: 18px; }
.cmd-kbd { font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
@media (max-width: 1360px) { .cmd-kbd { display: none; } }
@media (max-width: 900px) { .cmd-btn { padding: 0; width: 38px; justify-content: center; } }
dialog#cmdk { width: min(640px, 94vw); padding: 0; margin-top: 10vh; overflow: hidden; }
dialog#cmdk::backdrop { background: rgba(11, 11, 13, .45); backdrop-filter: blur(3px); }
.cmd-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmd-in .ico { width: 20px; height: 20px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.cmd-in input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 16px var(--font); padding: 4px 0; }
.cmd kbd { font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin: 0 2px; background: var(--soft); }
.cmd-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.cmd-g { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.cmd-it { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.cmd-it.on { background: var(--soft2); }
.cmd-it .cmd-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-it .muted { flex: none; }
.eff-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--watch); }
.eff-dot.risk { background: var(--risk); } .eff-dot.opportunity { background: var(--opp); } .eff-dot.mixed { background: var(--mixed); }
.cmd-none { list-style: none; }
.cmd-bank { padding: 0 6px 6px; }
.cmd-bank:empty { display: none; }
.cmd-bk { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: var(--bank-bg); color: var(--ink); border-radius: 10px; padding: 9px 12px; margin-top: 4px; cursor: pointer; font: inherit; font-size: 14px; }
.cmd-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 640px) { .cmd-foot { display: none; } dialog#cmdk { margin-top: 4vh; } }

/* настройка главной */
.home-off { display: none !important; }
.hs-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; }
.hs-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--soft); }
.hs-list li.off { opacity: .55; }
.hs-list .chk { flex: 1; }
.hs-mv { display: flex; gap: 4px; }
.icon-btn.sm { width: 28px; height: 28px; font-size: 14px; }
.icon-btn.sm:disabled { opacity: .3; cursor: default; }

/* хлебные крошки в разборе */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs .link-btn { font-size: 13px; color: var(--muted); padding: 0; }
.crumbs .link-btn:hover { color: var(--ink); }
.crumbs .cr-now { color: var(--ink2); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crumbs .cr-back { margin-left: auto; }
@media (max-width: 1100px) { .crumbs .cr-now { max-width: none; } }

/* онбординг в 3 шага */
.ob-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.ob-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--soft2); }
.ob-dots i.on { background: var(--red); }
.ob-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.ob-role { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--font); cursor: pointer; }
.ob-role.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ob .row { flex-wrap: wrap; }

/* пустые состояния с иллюстрациями */
.e-state { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 18px; color: var(--muted); }
.e-state b { color: var(--ink); font-size: 16px; }
.e-state p { margin: 0 0 6px; max-width: 44ch; font-size: 14px; line-height: 1.5; }
.e-art { width: 120px; height: 96px; }
.e-art .a-soft { fill: var(--soft2); }
.e-art .a-line { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.e-art .a-red { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; }
.e-art .a-redfill { fill: var(--red); }
.e-art .a-cap { fill: var(--surface); stroke: var(--muted); stroke-width: 2.5; stroke-linejoin: round; }
.e-art .a-gap { fill: var(--surface); }
.mini-empty { display: flex; align-items: center; gap: 12px; }
.mini-empty .e-art { width: 64px; height: 52px; flex: none; }
.e-card { text-align: center; } .e-card .e-art { display: block; margin: 6px auto 4px; }
#insightPanel > .e-state { padding: 60px 24px; }
.sw-company.has-new { position: relative; }
.sw-company.has-new::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.home-tools { display: flex; justify-content: flex-end; margin: -12px 0 8px; }
.home-tools .link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.home-tools .link-btn:hover { color: var(--ink); }
.home-tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ============================== Чат ============================== */
.chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-head h4 { margin-bottom: 10px; }
.chat-note { margin: 10px 0 0; }
.msg.bot.guard { background: var(--warn-bg); color: var(--warn-ink); }
.msg-style { display: inline-block; margin-left: 8px; font-size: 11px; opacity: .7; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; }
.msg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -4px 0 4px 6px; font-size: 12.5px; }
.msg-tools .link-btn { font-size: 12.5px; color: var(--muted); padding: 0; }
.msg-tools .link-btn:hover { color: var(--red-ink); }
.msg-tools .link-btn:disabled { color: var(--opp); }
.msg-rate { display: inline-flex; gap: 2px; margin-left: auto; }
.msg-rate .icon-btn { color: var(--muted); }
.msg-rate .icon-btn.on { color: var(--red-ink); background: var(--bank-bg); }
.msg-rate .ico { width: 15px; height: 15px; }
span.cite[data-cid] { cursor: pointer; }
span.cite[data-cid]:hover { text-decoration: underline; }
button.cite { border: 0; font: inherit; cursor: pointer; }
.cite.ev { background: var(--watch-bg); color: var(--watch); }
.hl-pulse { animation: hlPulse 1.6s var(--ease) 2; }
@keyframes hlPulse { 50% { box-shadow: 0 0 0 4px var(--hl); } }
.cm-money { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cm-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.cm-bar { height: 8px; border-radius: 4px; background: var(--soft2); overflow: hidden; }
.cm-bar i { display: block; height: 100%; border-radius: 4px; }
.cm-bar i.neg { background: var(--risk); } .cm-bar i.pos { background: var(--opp); }
.cmp { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cmp summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cmp-row { display: flex; gap: 8px; margin: 10px 0; min-width: 0; }
.cmp-row select { flex: 1; min-width: 0; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-t td, .cmp-t th { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.cmp-t td:first-child { width: 28%; }
.cmp-verdict { margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--soft); font-size: 14px; }
.cmp-verdict .ico { width: 16px; height: 16px; color: var(--red); vertical-align: -3px; }
.fchat-card .mini-head h3 { display: flex; align-items: center; gap: 6px; }
.fchat-card .mini-head .ico { width: 17px; height: 17px; color: var(--red); }
.fchat-card .quick button { font-size: 12px; }
.fc-log { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.fc-log:empty { display: none; }
.fc-log .msg { max-width: 100%; }

/* ============================== Действия и связь с банком ============================== */
.act-v2 textarea { width: 100%; margin-top: 4px; }
.act-prev { margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--soft); }
.act-prev .sub-h { margin-top: 0; }
.act-prev dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 6px 0 8px; font-size: 13.5px; }
.act-prev dt { color: var(--muted); }
.act-prev dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.act-prev-t { white-space: pre-wrap; }
@media (max-width: 640px) { .act-prev dl { grid-template-columns: 1fr; gap: 2px; } .act-prev dd { margin-bottom: 6px; } }

.kb-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0 0 12px; }
.kb-tools .ico { width: 15px; height: 15px; vertical-align: -2px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 18px; }
.kb-col { background: var(--soft); border-radius: var(--radius-m); padding: 12px; min-height: 140px; transition: box-shadow .15s; }
.kb-col.over { box-shadow: inset 0 0 0 2px var(--red); }
.kb-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 10px; }
.kb-n { font: 600 12px var(--font); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.kb-col[data-col="doing"] .kb-head b { color: var(--watch); } .kb-col[data-col="done"] .kb-head b { color: var(--opp); }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kb-empty { color: var(--muted); font-size: 13px; padding: 14px 6px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-s); }
.kb-card { background: var(--surface); border: var(--hair, 1px solid var(--line)); border-radius: var(--radius-s); padding: 10px 12px; display: grid; gap: 6px; cursor: grab; font-size: 14px; }
.kb-card.drag { opacity: .5; }
.kb-card.late { box-shadow: inset 3px 0 0 var(--risk); } .kb-card.soon { box-shadow: inset 3px 0 0 var(--mixed); }
.kb-col[data-col="done"] .kb-card > b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.kb-money { font-size: 12.5px; color: var(--ink2); background: var(--bank-bg); border-radius: 8px; padding: 4px 8px; display: block; line-height: 1.5; }
.kb-money .ico { vertical-align: -2px; margin-right: 4px; }
.kb-money .ico, .kb-meta .ico { width: 14px; height: 14px; flex: none; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kb-owner { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); max-width: 100%; min-width: 0; }
.kb-owner select { font-size: 12.5px; padding: 2px 6px; border-radius: 8px; max-width: 100%; min-width: 0; }
.kb-meta .warn { color: var(--mixed); font-weight: 600; }
.kb-btns { display: flex; gap: 4px; justify-content: flex-end; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } .kb-card { cursor: default; } }

.req-card { max-width: 900px; }
.req-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.req-main { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.req.cancelled, .req.resolved { opacity: .7; }
.req-btns { display: flex; gap: 10px; }
.req-btns .link-btn { font-size: 13px; }
.pill.muted { background: var(--soft2); color: var(--muted); }

.ev-history:empty { display: none; }
.ev-history { margin: 12px 0 4px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--opp-bg); }
.ev-history .sub-h { margin-top: 0; }
.evh { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.evh-done { color: var(--muted); }

.report-print { display: none; }
@media print {
  body[data-print="report"] .report-print { display: block !important; font-size: 12.5px; color: #000; }
  .report-print h1 { font-size: 20px; margin: 0 0 4px; }
  .report-print h2 { font-size: 14px; margin: 14px 0 6px; color: #c4170c; border-bottom: 1px solid #ddd; padding-bottom: 3px; }
  .report-print ol, .report-print ul { margin: 0; padding-left: 18px; }
  .report-print li { margin: 0 0 6px; break-inside: avoid; }
  .report-print .rp-meta, .report-print .rp-why { color: #444; }
  .report-print .rp-disc { margin-top: 16px; font-size: 10px; color: #666; }
}

/* ============================== Агент и прозрачность ============================== */
.tr-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.tr-head .btn { flex: none; } .tr-head .ico { width: 15px; height: 15px; vertical-align: -2px; }
.ag-flow { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; counter-reset: ag; }
.ag-n { position: relative; display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 12px; counter-increment: ag; }
.ag-n::before { content: counter(ag); position: absolute; top: 6px; right: 8px; font: 600 10.5px var(--font); color: var(--muted); }
.ag-n b { font-size: 12.5px; padding-right: 14px; } .ag-x { color: var(--muted); font-weight: 600; } .ag-r { color: var(--red); font-weight: 700; }
.ag-m { color: var(--ink2); overflow-wrap: anywhere; } .ag-s { color: var(--muted); font-weight: 600; }
.ag-n.llm { border-color: var(--ai); background: var(--ai-bg); } .ag-n.tool { border-color: var(--watch); background: var(--watch-bg); }
.ag-n.off { border-style: dashed; background: transparent; opacity: .6; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin-bottom: 6px; }
.ag-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--line); }
.ag-legend i.llm { border-color: var(--ai); background: var(--ai-bg); } .ag-legend i.tool { border-color: var(--watch); background: var(--watch-bg); }
.ag-loopnote { color: var(--red-ink); font-weight: 600; }
.ag-notes { display: grid; gap: 4px; margin: 2px 0 12px; color: var(--ink2); }
.ag-notes .ico { width: 14px; height: 14px; color: var(--red); vertical-align: -2px; }
.df-wrap { margin: 6px 0 14px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--soft); }
.df-wrap summary { cursor: pointer; font-weight: 600; }
.df-sec { margin-top: 8px; }
.df-del, .df-add { font-size: 13.5px; padding: 4px 8px; border-radius: 8px; margin: 3px 0; line-height: 1.45; }
.df-del { background: var(--risk-bg); color: var(--risk); text-decoration: line-through; text-decoration-color: rgba(196, 37, 27, .4); }
.df-add { background: var(--opp-bg); color: var(--opp); }
.df-issues ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.imp-x { margin: -2px 0 10px; font-size: 13.5px; color: var(--ink2); }
.imp-x summary { cursor: pointer; color: var(--muted); font-size: 13px; display: inline; }
.imp-x summary:hover { color: var(--ink); }
.imp-x p { margin: 6px 0; } .imp-x ul { margin: 4px 0; padding-left: 18px; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .ops-grid { grid-template-columns: 1fr; } }
.ops-card .mini-head { flex-wrap: wrap; gap: 4px 10px; }
.ops-card .mini-head .ico { width: 16px; height: 16px; color: var(--red); vertical-align: -2px; }
.bud-bar { position: relative; height: 12px; border-radius: 6px; background: var(--soft2); margin: 10px 0 8px; overflow: hidden; }
.bud-bar i { position: absolute; top: 0; bottom: 0; } .bud-bar i.sp { left: 0; background: var(--red); border-radius: 6px 0 0 6px; }
.bud-bar i.pj { background: repeating-linear-gradient(45deg, rgba(220, 42, 30, .35) 0 4px, rgba(220, 42, 30, .15) 4px 8px); }
.bud-bar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
.bud-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink2); }
.bud-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bud-leg i.sp { background: var(--red); } .bud-leg i.pj { background: rgba(220, 42, 30, .3); } .bud-leg i.bg { background: var(--ink); opacity: .5; width: 3px; }
.sec-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.sec-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: baseline; font-size: 13.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.sec-list li.ok > span:first-child { color: var(--opp); font-weight: 700; } .sec-list li.bad > span:first-child { color: var(--risk); font-weight: 700; }
.mdl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0; }
.mdl td, .mdl th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mdl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.ms-row { display: flex; gap: 22px; margin: 8px 0; } .ms-row div { display: grid; } .ms-row b { font: 700 24px var(--display); }
.ms-rej { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ms-rej li { display: grid; gap: 1px; padding: 4px 0; border-bottom: 1px solid var(--line); }

/* ============================== Дизайн, доступность, телефон ============================== */
/* переходы между экранами: короткий кроссфейд, без рывков */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease); }
/* клавиатура в ленте */
.feed-item.kb-focus, .feed-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* свайпы на телефоне: подсказка цветом края */
.feed-item { transition: transform .18s var(--ease); touch-action: pan-y; }
.feed-item.sw-right { box-shadow: inset 4px 0 0 var(--opp); }
.feed-item.sw-left { box-shadow: inset -4px 0 0 var(--risk); opacity: .8; }
/* установка как приложение */
.install-btn[hidden] { display: none; }
@media (max-width: 900px) { .install-btn { display: none; } }
/* фирменный PDF: знак Альфа-Банка в шапке печати */
.ph-brand { display: inline-flex; align-items: center; gap: 8px; }
.ph-mark { display: inline-block; width: 14px; height: 20px; color: #ef3124; }
.ph-mark svg { width: 100%; height: 100%; display: block; }
@media print {
  .ph-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pill.risk, .pill.opportunity, .pill.watch, .df-add, .df-del, .cm-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .crumbs, .msg-tools, .imp-x summary, .ev-history .link-btn, .kb-btns { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9px; color: #666; word-break: break-all; }
}

/* высокая контрастность: темнее вторичный текст, заметнее границы и фокус */
:root[data-contrast="more"] { --muted: #2f3238; --ink2: #0b0b0d; --line: #8a9099; --soft: #eceef1; --soft2: #dfe2e6; --hair: 1.5px solid #6b717a; }
:root[data-contrast="more"][data-theme="dark"] { --muted: #d7dae0; --ink2: #ffffff; --line: #7c828c; --soft: #232429; --soft2: #2e3036; --hair: 1.5px solid #8e949e; }
:root[data-contrast="more"] :focus-visible { outline: 3px solid var(--red) !important; outline-offset: 2px; }
:root[data-contrast="more"] .pill, :root[data-contrast="more"] .cite, :root[data-contrast="more"] .btn.ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
:root[data-contrast="more"] .link-btn { text-decoration: underline; }
@media (forced-colors: active) { .mspark .sp-area, .e-art .a-soft { fill: none; } .kb-col, .df-wrap, .act-prev { border: 1px solid CanvasText; } }

/* единые скелетоны: ширина строк разная, как у настоящего текста */
.skeleton.sm { height: 64px; }
#opsBox:empty::before { content: ""; display: block; height: 180px; border-radius: var(--radius-m); background: linear-gradient(90deg, var(--sk1) 25%, var(--sk2) 50%, var(--sk1) 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.cmd-btn { flex: none; min-width: 38px; }

/* ============================== Тур для жюри ============================== */
.tour-prog { height: 3px; margin: 10px -2px -4px; border-radius: 2px; background: var(--soft2); overflow: hidden; display: none; }
#tour.auto .tour-prog { display: block; }
.tour-prog i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@keyframes tourProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-pop .row { flex-wrap: wrap; } .tour-pop .row > span { display: flex; flex-wrap: wrap; gap: 6px; }

/* после разбора к событию добавились публикации */
.news-added { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--watch-bg); color: var(--ink2); font-size: 13.5px; }
.news-added > span { flex: 1; min-width: 220px; }
.news-added .ico { width: 16px; height: 16px; color: var(--watch); flex: none; }

/* ============================== Правки интерфейса ============================== */
/* лента и разбор прокручиваются колесом и пальцем, но без видимой полосы прокрутки */
#view-radar .feed-col, #view-radar .insight-col, .insight-col { scrollbar-width: none; -ms-overflow-style: none; }
#view-radar .feed-col::-webkit-scrollbar, #view-radar .insight-col::-webkit-scrollbar, .insight-col::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* контраст в разборе и инфографике: легенда, подписи карты влияния, «цифры рядом», метки типов */
.kinds { color: var(--ink2); font-size: 12.5px; font-weight: 600; gap: 6px 8px; }
.kinds span { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--soft2); }
.kinds span::before { width: 9px; height: 9px; border-radius: 50%; }
.im-heads { color: var(--ink2); }
.im-node text { font-weight: 600; }
.im-edge { opacity: .8; }
.impact-wrap .muted, .impact-wrap .small { color: var(--ink2); }
.claim .kind { font-size: 11px; }
.claim.fact .kind { color: var(--fact); filter: saturate(1.2) brightness(1.1); }
.claim.assumption .kind { color: var(--ink2); }
.sup, .asof { font-size: 11.5px; color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--line); }
.nums-card { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), inset 4px 0 0 var(--red); }
.nm-t { color: var(--ink); }
.nm-v i { color: var(--ink2); font-size: 11.5px; }
.nm-vs { color: var(--ink2); }
:root[data-theme="dark"] .im-node:not(.ev) rect { fill: #1f2126; }
:root[data-theme="dark"] .im-node.ev rect { fill: #f2f3f5; stroke: #f2f3f5; } :root[data-theme="dark"] .im-node.ev text { fill: #0b0b0d; }
:root[data-theme="dark"] .im-node.ef.risk rect { fill: #4a1d1a; } :root[data-theme="dark"] .im-node.ef.watch rect { fill: #1b2b47; }
:root[data-theme="dark"] .im-node.ef.opportunity rect { fill: #173a26; } :root[data-theme="dark"] .im-node.ef.mixed rect { fill: #43321b; }
:root[data-theme="dark"] .kinds span { background: #26282e; }
/* прогнозы банка: хронология пересмотров во всю карточку, читаемые графики */
.rt-card { display: flex; flex-direction: column; }
.rt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rt { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; margin-top: 12px; }
.rt li { grid-template-columns: 62px 1fr minmax(150px, auto); align-items: center; font-size: 15px; padding: 10px 0 10px 14px; border-left-width: 4px; border-bottom: 1px solid var(--line); }
.rt li:last-child { border-bottom: 0; }
.rt-d { font-size: 13px; color: var(--ink2); }
.rt-t { font-weight: 600; display: grid; gap: 2px; } .rt-t small { font-weight: 400; font-size: 12.5px; color: var(--ink2); }
.rt-v { display: grid; justify-items: end; gap: 4px; } .rt-v b { font-size: 22px; line-height: 1; }
.rt-v em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.rt li.up .rt-v em { color: var(--risk); } .rt li.down .rt-v em { color: var(--opp); }
.rt-bar { width: 120px; height: 6px; border-radius: 3px; background: var(--soft2); overflow: hidden; display: flex; justify-content: flex-end; }
.rt-bar i { display: block; height: 100%; border-radius: 3px; } .rt li.up .rt-bar i { background: var(--risk); } .rt li.down .rt-bar i { background: var(--opp); }
@media (max-width: 640px) { .rt li { grid-template-columns: 52px 1fr; } .rt-v { grid-column: 2; justify-items: start; } }
.fc-spark { width: 100%; height: auto; max-height: 170px; margin: 8px 0 6px; display: block; }
.fc-lbl { font: 700 11px var(--font); fill: var(--ink); } .fc-dt { font: 500 10px var(--font); fill: var(--muted); }
.fc-flat { display: flex; gap: 6px; align-items: center; padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: var(--soft); color: var(--ink2); }
.fc-flat .ico { width: 14px; height: 14px; flex: none; }
.fc-why { font-weight: 400; font-size: 13px; color: var(--ink2); }
/* календарь: два месяца рядом, дни — скруглённые квадратики, превью события при наведении */
.cal-card { max-width: 1000px; }
.cal-grids { position: relative; margin-bottom: 8px; }
.cg-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cg-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--ink2); }
.cg-legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.cg-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cg-legend .cbr::before { background: var(--watch); } .cg-legend .norm::before { background: var(--risk); } .cg-legend .task::before { background: var(--opp); }
.cg-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .cg-wrap { grid-template-columns: 1fr; } }
.cg-title { font: 700 16px var(--display); margin: 0 0 8px; }
.cg-wd, .cg-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cg-wd span { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px; }
.cg-wd .we { color: var(--red-ink); }
.cg-d { position: relative; height: 54px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 5px 6px; min-width: 0; cursor: default; overflow: hidden; }
.cg-d.empty { background: transparent; }
.cg-d b { font-size: 13px; font-weight: 700; line-height: 1; }
.cg-d.we b { color: var(--red-ink); }
.cg-d.past { opacity: .45; }
.cg-d.today { box-shadow: inset 0 0 0 2px var(--red); }
.cg-d.has { cursor: pointer; color: #fff; transition: transform .15s var(--ease); }
.cg-d.has b { color: #fff; }
.cg-d.has:hover, .cg-d.has:focus-visible { transform: scale(1.06); z-index: 1; }
.cg-d.cbr { background: var(--watch); } .cg-d.norm { background: var(--risk); } .cg-d.task { background: var(--opp); }
.cg-t { font-size: 9.5px; font-weight: 700; line-height: 1.15; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cg-n { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 9.5px; font-weight: 800; }
@media (max-width: 640px) { .cg-t { display: none; } .cg-d { border-radius: 8px; } }
.cg-pop { position: absolute; z-index: 20; display: grid; gap: 8px; background: var(--surface); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28), 0 0 0 1px var(--line); overflow: hidden; animation: dlgIn .16s var(--ease); }
.cg-pop[hidden] { display: none; }
.cp-item { display: grid; }
.cp-band { height: 40px; }
.cp-item.watch .cp-band { background: linear-gradient(135deg, var(--watch), color-mix(in srgb, var(--watch) 55%, #000)); }
.cp-item.risk .cp-band { background: linear-gradient(135deg, var(--risk), color-mix(in srgb, var(--risk) 55%, #000)); }
.cp-item.opportunity .cp-band { background: linear-gradient(135deg, var(--opp), color-mix(in srgb, var(--opp) 55%, #000)); }
.cp-body { padding: 10px 14px 12px; display: grid; gap: 6px; font-size: 13.5px; }
.cp-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-body b { font-size: 14.5px; line-height: 1.35; } .cp-body p { margin: 0; color: var(--ink2); line-height: 1.45; }
.cp-cta { color: var(--red-ink); font-weight: 600; font-size: 13px; }
.cal-list-h { margin: 22px 0 4px; font-size: 16px; color: var(--ink2); }

/* ============================== Правки 24.10, вечер ============================== */
/* полосы прокрутки в цветах темы: тонкие, без белых «рельсов» в тёмной теме */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 70%, transparent); background-clip: content-box; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* вкладки ленты: прокрутка колесом и перетаскиванием, затухание у края, если есть ещё вкладки */
.feed-tools .seg { cursor: grab; }
.feed-tools .seg.dragging { cursor: grabbing; user-select: none; }
.feed-tools .seg.ov-r { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.feed-tools .seg.ov-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.feed-tools .seg.ov-l.ov-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* деньги при наведении на график накопления */
.effect-chart { position: relative; }
.effect-chart svg[data-ec] { cursor: crosshair; touch-action: pan-y; }
.ec-guide { stroke: var(--ink2); stroke-width: 1; stroke-dasharray: 3 3; }
.ec-tip { position: absolute; z-index: 5; min-width: 190px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 0 0 1px var(--line); pointer-events: none; font-size: 13px; }
.ec-tip[hidden] { display: none; }
.ec-tr { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.ec-tr i { width: 10px; height: 10px; border-radius: 3px; } .ec-tr b { font-variant-numeric: tabular-nums; }

/* макропрогноз банка: траектория ставки крупно */
.bank-traj { width: 100%; height: auto; display: block; margin: 8px 0 12px; }
.bt-area { fill: var(--red); opacity: .08; } .bt-base { stroke: var(--line); stroke-width: 1.5; }
.bt-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.bt-dot { fill: var(--surface); stroke: var(--red); stroke-width: 3; }
.bt-v { font: 800 15px var(--display); fill: var(--ink); } .bt-d { font: 600 12px var(--font); fill: var(--ink2); }

/* неочевидные последствия: цепочка шагов */
.hid-block { border-left: 3px solid var(--ai); padding-left: 14px; }
.hid-block h4 .n { background: var(--ai-bg); color: var(--ai); }
.hid-block h4 .n .ico { width: 14px; height: 14px; }
.hid-item { margin: 10px 0 12px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--soft); }
.hid-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.hid-top b { flex: 1; min-width: 200px; font-size: 15px; line-height: 1.4; }
.hid-chain { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; counter-reset: hc; }
.hid-chain li { position: relative; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.hid-chain li + li::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.hid-chain li + li { margin-left: 8px; }
.hid-item.risk .hid-chain li:last-child { box-shadow: inset 0 0 0 1.5px var(--risk); color: var(--risk); font-weight: 600; }
.hid-item.opportunity .hid-chain li:last-child { box-shadow: inset 0 0 0 1.5px var(--opp); color: var(--opp); font-weight: 600; }
.hid-meta .link-btn { font-size: 12.5px; padding: 0; }
.hid-meta .ico { width: 13px; height: 13px; vertical-align: -2px; }
.hid-wait { margin: 10px 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--ai-bg); color: var(--ai); }
.hid-wait .ico { width: 14px; height: 14px; vertical-align: -2px; animation: pulse 1.4s infinite; }
.mon-scope { display: block; font: 400 12.5px var(--font); color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: 2px; }
/* разделы банка: позиция Альфа-Банка на всю ширину — карточки с контуром, значения крупно */
.bkf-card { margin-top: 20px; }
.bkf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bkf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 10px; }
.bkf { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.bkf.rev-up { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--risk) 55%, var(--line)), inset 4px 0 0 var(--risk); }
.bkf.rev-down { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--opp) 55%, var(--line)), inset 4px 0 0 var(--opp); }
.bkf-t { font-weight: 600; font-size: 14px; color: var(--ink); display: grid; gap: 2px; } .bkf-t span { font-weight: 400; font-size: 12.5px; color: var(--ink2); }
.bkf-v { font: 800 28px/1.05 var(--display); color: var(--ink); }
.bkf-r { font-size: 13px; font-weight: 600; } .bkf-r.up { color: var(--risk); } .bkf-r.down { color: var(--opp); }

/* компания в шапке: одна компания — подпись во всю ширину блока, без выпадающего списка */
.sw-static { display: block; background: var(--soft2); border-radius: var(--radius-s); padding: 17px 14px 5px 12px; font-size: 14px; font-weight: 650; white-space: nowrap; color: var(--ink); min-width: 160px; }
.sw-static[hidden], .sw select[hidden] { display: none; }
#userAvatar, #userName { cursor: pointer; } #userName:hover { color: var(--red-ink); }
/* «Спросить про всю ленту» — над сеткой главной, на всю ширину */
.fchat-wide { margin: 0 0 14px; }
.fchat-wide .fc-log .msg { max-width: 900px; }
.fchat-wide .chat-row { max-width: 900px; }
#view-profile .profile-card { max-width: 1100px; }
.fc-spark .fc-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.fc-spark .fc-ax { font-size: 11px; fill: var(--muted); }
.fc-spark .fc-lbl { font-size: 12px; font-weight: 700; fill: var(--ink); }
.fc-spark .fc-dt { font-size: 11px; fill: var(--muted); }

/* =====================================================================================================
   Стиль 3 (25.10): как в интернет-банке Альфа-Бизнес — один ровный фон у шапки, меню и страницы,
   белые карточки без линий и теней, линии — только там, где они делят смысл (группы меню).
   Шрифт: текст — Inter (хорошо выглядит в мелком кегле на Windows), заголовки и крупные числа — Styrene.
   ===================================================================================================== */
:root { --bg: #f3f4f5; --sidebar: var(--bg); --top-bg: var(--bg); --hair: 0 solid transparent; --radius: 20px; --soft: #f3f4f5; --soft2: #eceef1; }
:root[data-theme="dark"] { --bg: #0b0b0d; --sidebar: var(--bg); --top-bg: var(--bg); --surface: #17181c; --soft: #1f2025; --soft2: #26272d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b0b0d; --sidebar: var(--bg); --top-bg: var(--bg); --surface: #17181c; --soft: #1f2025; --soft2: #26272d; } }
:root[data-contrast="more"] { --hair: 1.5px solid #6b717a; }
.topbar { border-bottom: 0; backdrop-filter: none; box-shadow: none; }
.layout { background: var(--bg); }
.sidebar { border-right: 0; }
.card, .insight, .feed-item, .fc-card, .empty { box-shadow: none; }
select, input, textarea { border-color: transparent; background-color: var(--soft2); }
.card select, .card input, .card textarea { background-color: var(--soft); }
select:hover, input:hover, textarea:hover { border-color: transparent; background-color: color-mix(in srgb, var(--soft2) 70%, var(--line)); }
.btn.ghost { box-shadow: none; background: var(--soft2); }
.btn.ghost:hover { box-shadow: none; background: color-mix(in srgb, var(--soft2) 60%, var(--line)); }
.icon-btn { box-shadow: none; background: transparent; }
.icon-btn:hover { box-shadow: none; background: var(--soft2); }
.icon-btn .ico { display: block; margin: 0; vertical-align: 0; }
.kb-btns .icon-btn.sm { border-radius: 50%; background: var(--soft); padding: 0; line-height: 1; }
.kb-btns .icon-btn.sm .ico { width: 15px; height: 15px; }

/* логотип — красный квадрат с белой «А», как в шапке Альфа-Бизнеса */
.topbar .brand-mark.alfa, .brand-light .brand-mark.alfa { width: 40px; height: 40px; border-radius: 11px; background: #ef3124; color: #fff; padding: 8px 11px 7px; box-shadow: none; }
:root[data-theme="dark"] .topbar .brand-mark.alfa { color: #fff; }
.topbar .brand-txt { font-size: 17px; }

/* компания в шапке больше не показывается: логин — в углу, отрасль и смена компании — в профиле */
.sw-company { display: none !important; }
.pf-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0 10px; }

/* меню: линия после «Главной», линия вместо «Банк», «Для команды банка» — внизу; без полосы прокрутки */
.sidebar { overflow-y: auto; scrollbar-width: none; padding: 12px 12px 14px; }
.sidebar::-webkit-scrollbar { display: none; }
.nav-line { border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); margin: 8px 12px; }
.nav-team { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-team .nav-sep { margin: 0 12px 6px; }
.nav-item { padding: 9px 12px; }
.nav-item.active { background: var(--surface); }
@media (max-height: 760px) { .nav-item { padding: 7px 12px; } .nav-line { margin: 4px 12px; } }
@media (max-width: 1100px) { .nav-line { display: none; } .nav-team { display: contents; } }

/* быстрые действия — ряд белых кнопок над чёрной плашкой */
.home-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.qa { flex-direction: row; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left; border: 0; }
.qa-i { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); }
.qa-i svg { width: 17px; height: 17px; }
.qa.qa-more .qa-i svg { fill: currentColor; stroke: none; }
.qa:hover { box-shadow: none; background: color-mix(in srgb, var(--surface) 88%, var(--line)); }
@media (max-width: 640px) { .home-quick { flex-wrap: nowrap; } .qa { flex: none; } }

/* чёрная плашка: деньги на кону — главное число, рядом «Дела по радару», справа глобус */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(250px, .8fr) minmax(0, 1fr); gap: 18px; height: auto; min-height: 430px; padding: 30px 30px 0; border-radius: 24px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: 26px; }
.hero h1 { font-size: clamp(26px, 2.3vw, 34px); margin: 0 0 18px; max-width: 16ch; }
.hm-cap { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); font-weight: 700; }
.hm-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 4px; font: 800 clamp(24px, 2.15vw, 36px)/1.05 var(--display); letter-spacing: -.02em;
  color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.hm-v .down { color: #ff6a5f; } .hm-v .up { color: #3ddc8a; } .hm-v b { white-space: nowrap; font-weight: 800; }
.hm-v.calm { font-size: clamp(22px, 2.2vw, 30px); cursor: default; }
.hm-dots { color: rgba(255, 255, 255, .35); font-weight: 600; }
.hm-sub { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.hm-sub b.down { color: #ff6a5f; } .hm-sub b.up { color: #3ddc8a; }
.skeleton-dark { display: inline-block; width: 260px; height: 34px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06)); background-size: 200% 100%; animation: sk 1.4s infinite; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; max-width: none; }
.hs { flex-direction: row; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 0; }
.hs b { font-size: 16px; letter-spacing: 0; } .hs span { font-size: 13px; }
button.hs:hover { transform: none; background: rgba(255, 255, 255, .14); }
.hero-deals { align-self: center; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px); margin-bottom: 26px; }
.hero-deals h3 { color: #fff; font-size: 16px; margin: 0 4px 8px; }
.deal { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 6px; border: 0; background: none; color: rgba(255, 255, 255, .88); font: inherit;
  font-size: 14px; text-align: left; border-radius: 10px; cursor: pointer; }
.deal:hover { background: rgba(255, 255, 255, .07); }
.deal > span:first-child { flex: 1; min-width: 0; }
.deal .dn { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font: 700 12.5px var(--font); background: rgba(255, 255, 255, .14); color: #fff; }
.deal .dn.red, .deal.alert .dn { background: var(--red-2); }
.deal-date b { font: 700 14px var(--display); color: #fff; white-space: nowrap; }
.deal .hs-spark { width: 48px; flex: none; display: none; }
.deal[data-strip=radar] .hs-spark { display: block; }
.deal .mspark .sp-line { stroke: #ff6a5f; } .deal .mspark .sp-area { fill: rgba(255, 106, 95, .14); } .deal .mspark .sp-dot { fill: #ff6a5f; }
.hero-globe { margin: -30px -30px 0 -8px; min-height: 380px; }
.globe-hint { top: 18px; right: 24px; }
.globe-period { top: 14px; }
.ticker { margin: 0 -30px; }
@media (max-width: 1280px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr); } .hero-globe { grid-column: 1 / -1; margin: 0 -30px; min-height: 320px; } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 22px 18px 0; } .hero-deals { margin-bottom: 8px; } .ticker { margin: 0 -18px; } .hero-globe { margin: 0 -18px; } }

/* «Деньги на кону»: ось — сразу под первой полосой */
.mb-row .mb-axis { grid-column: 2; display: grid; grid-template-columns: 1fr auto 1fr; margin-top: -2px; }
.mb-row .mb-axis span:first-child { grid-column: auto; } .mb-row .mb-axis span:last-child { text-align: right; }
.mini-dot { padding: 0 !important; border: 0 !important; box-sizing: content-box; width: 9px !important; height: 9px !important; min-width: 9px; max-height: 9px; border-radius: 50% !important; flex: 0 0 9px; aspect-ratio: 1; }

/* шкала доли выручки: плюс — зелёный, минус — красный */
.gauge.pos i { background: var(--opp); } .gauge.neg i { background: var(--risk); }

/* путь материалов банка — блоки с переносом текста */
.pipe-flow { display: flex; align-items: stretch; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.pf-step { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.pf-step b { font: 700 14px/1.25 var(--display); overflow-wrap: anywhere; }
.pf-step span { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.pf-step.fin { background: var(--bank-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bank) 45%, transparent); }
.pf-arrow { align-self: center; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .pf-arrow { display: none; } .pf-step { flex-basis: 45%; } }

/* тур: кнопки в одну строку */
.tour-row { flex-wrap: nowrap; gap: 8px; }
.tour-row > span { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.tour-row .btn { white-space: nowrap; }
.tour-pop { max-width: calc(100vw - 24px); }
@media (max-width: 480px) { .tour-pop { min-width: 0; } .tour-row { flex-wrap: wrap; } }

/* разделы банка: позиция Альфа-Банка — в правой колонке */
.bk-col .bkf-card { margin-top: 0; }
.bk-col .bkf-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 1280px) { .bk-col .bkf-grid { grid-template-columns: 1fr; } }

/* дайджест: правая колонка */
.dg-card h3 { font-size: 16px; }
.dg-nums { background: radial-gradient(420px 220px at 100% 0%, rgba(239, 49, 36, .28), transparent 65%), #0b0b0d; color: #fff; }
.dg-nums .eyebrow.light, .eyebrow.light { color: rgba(255, 255, 255, .6); }
.dn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.dn-cell { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.dn-cell b { font: 800 26px/1.1 var(--display); } .dn-cell span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.dn-cell.risk b { color: #ff6a5f; } .dn-cell.opp b { color: #3ddc8a; } .dn-cell.watch b { color: #6aa6ff; }
.dn-money { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .65); }
.dn-money b { font: 800 18px var(--display); color: #fff; } .dn-money i { font-style: normal; } .dn-money .down { color: #ff6a5f; } .dn-money .up { color: #3ddc8a; }
.dg-pdf { display: flex; gap: 14px; align-items: center; }
.dg-art { width: 96px; height: 96px; object-fit: contain; flex: none; }

/* мониторинг: служебное — в свёрнутом блоке */
.mon-more { margin-top: 18px; } .mon-more summary { cursor: pointer; font-weight: 650; }

/* 3D-иллюстрации (рендеры three.js, tools/art3d): тема события, разделы банка, мокап телефона */
.focus-main { position: relative; }
.focus-art { position: absolute; right: 8px; top: 8px; width: 120px; height: 120px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(16, 18, 22, .12)); }
.focus-main h3 { padding-right: 132px; }
.ins-banner { position: relative; display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; padding: 18px 20px; border-radius: 20px; min-height: 150px;
  background: linear-gradient(120deg, var(--soft) 0%, var(--soft) 55%, color-mix(in srgb, var(--watch) 14%, var(--soft)) 100%); overflow: hidden; }
.ins-banner.eff-risk { background: linear-gradient(120deg, var(--soft) 0%, var(--soft) 50%, color-mix(in srgb, var(--risk) 16%, var(--soft)) 100%); }
.ins-banner.eff-opportunity { background: linear-gradient(120deg, var(--soft) 0%, var(--soft) 50%, color-mix(in srgb, var(--opp) 16%, var(--soft)) 100%); }
.ins-banner.eff-mixed { background: linear-gradient(120deg, var(--soft) 0%, var(--soft) 50%, color-mix(in srgb, var(--mixed) 16%, var(--soft)) 100%); }
.ins-banner h2 { flex: 1; margin: 0; min-width: 0; }
.ins-art { width: 150px; height: 150px; flex: none; object-fit: contain; margin: -18px -10px -18px 0; filter: drop-shadow(0 16px 22px rgba(16, 18, 22, .14)); animation: artIn .7s var(--ease); }
@keyframes artIn { from { opacity: 0; transform: translateY(10px) scale(.94) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ins-art { width: 92px; height: 92px; } .ins-banner { min-height: 0; padding: 14px; } .focus-art { width: 76px; height: 76px; right: 6px; top: 6px; } .focus-main h3 { padding-right: 76px; } }
.bk-hero.has-art { position: relative; }
.bk-art { position: absolute; right: 22px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); animation: artFloat 6s ease-in-out infinite; }
.bk-hero.has-art .bk-stats { margin-right: 230px; }
.bk-hero.has-art > h3, .bk-hero.has-art > .bk-note { margin-right: 230px; }
@keyframes artFloat { 50% { transform: translateY(calc(-50% - 8px)); } }
@media (max-width: 1100px) { .bk-art { width: 140px; height: 140px; top: 18px; transform: none; animation: none; } .bk-hero.has-art .bk-stats, .bk-hero.has-art > h3, .bk-hero.has-art > .bk-note { margin-right: 0; } .bk-hero.has-art > h3 { margin-right: 140px; } }
.promo-card { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 8px; overflow: hidden; position: relative;
  background: radial-gradient(260px 200px at 100% 60%, rgba(239, 49, 36, .10), transparent 70%), var(--surface); }
.promo-card h3 { font-size: 19px; margin: 4px 0 6px; }
.promo-art { width: 190px; height: 190px; object-fit: contain; margin: -14px -24px -18px -14px; filter: drop-shadow(0 18px 22px rgba(16, 18, 22, .14)); }
@media (prefers-reduced-motion: reduce) { .bk-art, .ins-art { animation: none; } }
@media print { .ins-art, .focus-art, .bk-art, .promo-card { display: none !important; } }
.qa-i img { width: 34px; height: 34px; object-fit: contain; }
.qa .qa-i:has(img) { background: none; width: 34px; height: 34px; }
.qa:hover .qa-i:has(img) { background: none; transform: translateY(-1px) rotate(-4deg); }
.qa .qa-i { transition: transform .25s var(--ease); }
.focus-main h3 { min-height: 84px; }

/* моноширинные цифры — только там, где числа стоят столбцом или меняются на месте: в Inter tnum делает широким и дефис («Альфа - Банк») */
td.num, .num, .metric .v, .mt b, .hs b, .hm-v, .dn-cell b, .bkf-v, .fc-top b, .scen-v, .rvm-eff b, .mb-half em, .deal .dn, .bud-leg, .wi-total, .hw-total { font-variant-numeric: tabular-nums; }
.hm-v { flex-direction: column; align-items: flex-start; gap: 2px; }
.hm-line { display: flex; align-items: baseline; gap: 12px; }
.hm-line i { font: 500 13px var(--font); font-style: normal; color: rgba(255, 255, 255, .55); letter-spacing: 0; }

/* Шрифты (25.10, по отзыву): Styrene B в мелком кегле на Windows рендерится с «плавающими» буквами — буквы везде Inter / Inter Display.
   Фирменный Styrene A — только в крупных числах (в нём нет кириллицы). */
.hm-v b, .metric .v, .mt b, .hs b, .dn-cell b, .bkf-v, .fc-top b, .scen-v, .rvm-eff b, .wi-total, .hw-total, .bk-hero h3, .bf b, .nm-v b, .pf-card b, .deal-date b, .dn-money b { font-family: var(--num); }

/* липкая панель действий разбора: без щели снизу, сквозь которую был виден текст */
.ins-bar { bottom: -1px; box-shadow: 0 12px 0 0 var(--surface); }
/* подписи под глобусом — ниже, ближе к ленте прогнозов */
.hero .globe-legend { bottom: 14px; }
.hero-globe canvas { height: calc(100% - 40px); }
/* глобус на главной — во всю высоту плашки: без легенды и подсказки, период — вертикально слева */
.hero .globe-legend, .hero .globe-hint { display: none; }
.hero-globe canvas { height: 100% !important; }
.hero-globe { min-height: 400px; }
.hero .globe-period { top: 50%; left: 4px; transform: translateY(-50%); flex-direction: column; border-radius: 16px; padding: 4px; gap: 2px; }
.hero .globe-period button { text-align: left; }
@media (max-width: 1280px) { .hero .globe-period { top: 14px; left: 50%; transform: translateX(-50%); flex-direction: row; } }
.hero-globe { margin-right: -14px; }

/* главная, широкий экран: огромный глобус в правом нижнем углу плашки, поверх — текст и «Дела по радару» */
@media (min-width: 1281px) {
  .hero .hero-globe { position: absolute; inset: 0; margin: 0; min-height: 0; z-index: 0; }
  .hero .hero-globe canvas { top: 0; height: 100% !important; }
  .hero-copy, .hero-deals { position: relative; z-index: 2; }
  .hero .ticker { position: relative; z-index: 2; background: rgba(11, 11, 13, .55); backdrop-filter: blur(6px); }
  .hero .globe-period { top: 16px; right: 16px; left: auto; transform: none; flex-direction: column; }
  .hero { min-height: 470px; }
}

/* Кнопка «Подробный разбор» — главный следующий шаг после короткого вывода */
.detail-cta { display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0 10px; padding: 14px 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--red); color: #fff; font: inherit; text-align: left; box-shadow: 0 8px 22px rgba(239, 49, 36, .28); transition: transform .15s, box-shadow .15s; }
.detail-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(239, 49, 36, .36); }
.detail-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.detail-cta .dc-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.detail-cta .dc-ico svg { width: 22px; height: 22px; }
.detail-cta .dc-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.detail-cta b { font-size: 16px; font-weight: 700; }
.detail-cta small { font-size: 13px; opacity: .88; line-height: 1.35; }
.detail-cta .dc-arr { font-size: 20px; font-weight: 700; animation: dcNudge 1.8s ease-in-out infinite; }
@keyframes dcNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .detail-cta .dc-arr { animation: none; } }
@media print { .detail-cta { display: none !important; } }
.im-tip { position: absolute; z-index: 5; max-width: 300px; pointer-events: none; background: var(--ink); color: var(--on-ink); border-radius: 12px;
  padding: 9px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); display: grid; gap: 4px; }
.im-tip[hidden] { display: none; }
.im-tip span { opacity: .82; font-size: 12.5px; }

/* элементы мобильной раскладки (mobile.js) — на компьютере скрыты */
.m-id, .m-fab, .m-filt { display: none; }
/* Источники: таблица помещается в ширину без прокрутки — ошибки переносятся, заголовки в две строки */
table.sources th { white-space: normal; }
table.sources .err { max-width: 260px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; display: block; }

/* ---------- вход в Альфа-Бизнес: форма слева, глобус Бизнес-радара справа */
.login { position: fixed; inset: 0; background: #fff; color: #0b0b0d; overflow: auto; z-index: 40; }
.login[hidden] { display: none; }
.ln { min-height: 100%; display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); }
.ln-form { display: flex; flex-direction: column; padding: 32px clamp(28px, 4vw, 64px); min-height: 100vh; animation: lnIn .5s var(--ease); }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } }
.ln-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #0b0b0d; }
.ln-brand .brand-mark.alfa { width: 40px; height: 40px; border-radius: 11px; background: #ef3124; color: #fff; padding: 8px 11px 7px; box-shadow: none; }
.ln-body { margin: auto 0; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; padding: 40px 0; }
.ln-body h1 { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.ln-field { position: relative; display: block; }
.ln-field input { width: 100%; max-width: none; height: 56px; padding: 22px 16px 6px; border: 0; border-radius: 14px; background: #f2f3f5; color: #0b0b0d; font-size: 16px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background .15s; }
.ln-field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px #0b0b0d; }
.ln-field span { position: absolute; left: 16px; top: 18px; font-size: 16px; color: #5f6670; pointer-events: none; transition: all .15s var(--ease); }
.ln-field input:focus + span, .ln-field input:not(:placeholder-shown) + span { top: 8px; font-size: 12px; }
.ln-go { height: 56px; border-radius: 14px; font-size: 16px; margin-top: 4px; }
.login-err { color: #c4251b; font-size: 13px; } .login-err:empty { display: none; }
.ln-demo { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eceef1; }
.ln-demo-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5f6670; margin-bottom: 8px; }
.ln-demo-h span:first-child { color: #0b0b0d; font-weight: 600; }
.ln-people { display: grid; gap: 2px; margin: 0 -10px; }
.ln-person { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: #0b0b0d; cursor: pointer; background: none; border: 0; border-radius: 12px; padding: 9px 10px; transition: background .15s; }
.ln-person:hover, .ln-person:focus-visible { background: #f2f3f5; outline: none; }
.ln-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0b0b0d; background: #eceef1; }
.ln-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ln-who span b { font-weight: 600; font-size: 12px; color: #0b0b0d; font-family: var(--num); white-space: normal; }
.ln-who > b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ln-who span { font-size: 12px; color: #5f6670; }
.ln-arrow { color: #b0b5bc; transition: transform .15s var(--ease), color .15s; } .ln-person:hover .ln-arrow { color: var(--red-2); transform: translateX(3px); }
.ln-person.busy { background: #f2f3f5; pointer-events: none; } .ln-person.busy .ln-arrow { animation: lgSpin .8s linear infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.ln-foot { margin: 0; font-size: 12px; color: #5f6670; }
.ln-art { overflow: hidden; background: radial-gradient(900px 700px at 70% 45%, #1b0d0c 0%, #070708 60%); position: sticky; top: 0; height: 100vh; align-self: start; }
.ln-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 8, .85) 0%, transparent 38%); pointer-events: none; }
.login-globe { position: absolute; inset: -6% -14% 4% 0; width: 114%; height: 102%; }
.ln-art-txt { position: absolute; left: clamp(28px, 4vw, 64px); bottom: clamp(28px, 6vh, 64px); z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.ln-art-txt b { font-family: var(--display); font-size: clamp(44px, 5.4vw, 88px); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.ln-art-txt b::after { content: "."; color: var(--red-2); }
.ln-art-txt span { font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
  .ln { grid-template-columns: minmax(0, 1fr); }
  .ln-art { order: -1; position: relative; height: 240px; }
  .ln-people { margin: 0; } .ln-person { padding: 9px 0; } .ln-arrow { display: none; }
  .login-globe { inset: -40% -30% -40% 10%; width: 120%; height: 180%; }
  .ln-art-txt { left: 20px; bottom: 20px; } .ln-art-txt b { font-size: 40px; } .ln-art-txt span { font-size: 14px; }
  .ln-form { min-height: 0; padding: 20px 20px 28px; }
  .ln-brand { display: none; }
  .ln-body { max-width: none; padding: 8px 0 24px; margin: 0; } .ln-body h1 { font-size: 30px; margin-bottom: 4px; }
}

/* аватары демо-компаний */
.avatar.has-img { background: none; box-shadow: none; overflow: hidden; padding: 0; }
.avatar img, .ln-ava img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.ln-ava:has(img) { background: none; }
.bk-graph { margin-bottom: 20px; }
.bkg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
@media (max-width: 760px) { .bkg-cols { grid-template-columns: minmax(0, 1fr); } }
