/* «Мозг компании» (round 17) — the page #/brain (screens/pf-brain-2.js), the shared windows (screens/pf-brain.js) and the
   windows of «+ Создать» (screens/pf-brain-ed.js): the editor, a link, a folder, the questions of the agents.
   Round 17 (owner, 08.11): the page of round 8 is back — the core panel «Сейчас в мозге» (ring, number, formats, «Место»,
   «Загрузки · 8 недель»), the document cards — without the upload strip and without the company text; folders — the row
   of the platform (css/folders.css) as in «Документы для клиентов»; «Рекомендуем» and the menu in one icon style.
   Pale lavender glass (css/core.css + core-pale.css), the light follows the pointer (--mx / --my), no grids, no dashes, no
   orange: an error is a soft rose-violet tint with a small ⓘ. Tokens only — light and dark work by themselves. Motion only
   on transform, opacity, filter; prefers-reduced-motion — everything still. Prefix .bm-
   Round G1 (docs/GLASS.md §3): the folders are big glass folders (css/glass-folder.css) in a grid that fills the width.
   Round G2 (§8.2): «Документы» is an explorer — the path with «‹», the glass folders of a level, the level slides when you
   go in or up; the document cards are again the ones before G1 (the owner liked them). */
.bm, .bm-up-win, .bm-pv-win, .bm-dropall, .bm-ed-win, .bm-lk-win, .bm-qa-win, .bm-mk-menu {
  --bm-a1: var(--acc); --bm-a2: var(--ai); --bm-glow: color-mix(in srgb, var(--acc) 32%, transparent);
  /* the calm «needs attention» tone: rose into violet, never orange */
  --bm-rose: color-mix(in srgb, #d9468f 62%, var(--acc)); --bm-rose-soft: color-mix(in srgb, #f472b6 7%, color-mix(in srgb, var(--acc) 4%, var(--l1)));
  --bm-rose-brd: color-mix(in srgb, #ec4899 18%, color-mix(in srgb, var(--acc) 16%, var(--line))); }
.bm { display: flex; flex-direction: column; gap: 20px; max-width: 1480px; container-type: inline-size; container-name: bm; position: relative; }

/* ── head ── */
.bm-head { display: flex; align-items: flex-end; gap: 16px; }
.bm-head-t { flex: 1 1 auto; min-width: 0; }
.bm-head h1 { margin: 2px 0 4px; font-size: 26px; line-height: 32px; font-weight: 680; letter-spacing: -.018em; color: var(--ink); }
.bm-head p { margin: 0; font-size: 13px; color: var(--mut); }
.bm-new { flex: 0 0 auto; height: 38px; padding: 0 14px 0 12px; gap: 7px; border-radius: 12px; font-weight: 650; }
.bm-new > svg:last-child { opacity: .7; margin-left: 1px; }

/* ── the document icon: a sheet, its fold, content lines, the format band ── */
.bm-fi { --t: var(--acc); display: inline-flex; flex: 0 0 auto; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--t) 16%, transparent)); }
.bm-fi[data-t="ai"] { --t: var(--ai); } .bm-fi[data-t="vyg"] { --t: var(--vyg); } .bm-fi[data-t="nei"] { --t: var(--nei); }
.bm-fi svg { display: block; overflow: visible; }
.bm-fi-p { fill: color-mix(in srgb, var(--t) 5%, var(--l1)); stroke: color-mix(in srgb, var(--t) 34%, var(--line)); stroke-width: 1.3; }
.bm-fi-f { fill: color-mix(in srgb, var(--t) 22%, var(--l1)); stroke: color-mix(in srgb, var(--t) 34%, var(--line)); stroke-width: 1.3; stroke-linejoin: round; }
.bm-fi-g { fill: none; stroke: color-mix(in srgb, var(--t) 38%, transparent); stroke-width: 1.6; stroke-linecap: round; }
.bm-fi-h { fill: none; stroke: var(--t); stroke-width: 3; stroke-linecap: round; }
.bm-fi-w { fill: none; stroke: var(--t); stroke-width: 1.6; stroke-linecap: round; }
.bm-fi-w circle { fill: color-mix(in srgb, var(--t) 10%, var(--l1)); }
.bm-fi[data-k="page"] .bm-fi-p { fill: color-mix(in srgb, var(--acc) 7%, var(--l1)); }
.bm-fi-b { fill: var(--t); }
.bm-fi-l { fill: var(--l1); font: 800 7.6px/1 var(--font, inherit); letter-spacing: .45px; }
/* a folder: lavender glass */
.bm-fo { display: inline-flex; flex: 0 0 auto; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--acc) 16%, transparent)); }
.bm-fo svg { display: block; overflow: visible; }
.bm-fo-b { fill: color-mix(in srgb, var(--acc) 22%, var(--l1)); stroke: color-mix(in srgb, var(--acc) 30%, var(--line)); stroke-width: 1.2; }
.bm-fo-s1 { stop-color: color-mix(in srgb, var(--acc) 6%, var(--l1)); } .bm-fo-s2 { stop-color: color-mix(in srgb, var(--acc) 14%, var(--l1)); }
.bm-fo-f { stroke: color-mix(in srgb, var(--acc) 30%, var(--line)); stroke-width: 1.2; }
.bm-fo-l { stroke: color-mix(in srgb, var(--acc) 26%, transparent); stroke-width: 1.4; stroke-linecap: round; }


/* ── 1. «Сейчас в мозге» — the core panel of round 8 (css/core.css) ── */
.bm-core { display: flex; flex-direction: column; gap: 18px; }
.bm-cg { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(250px, 300px); gap: 26px; align-items: center; }
.bm-cg-r { display: grid; place-items: center; }
.bm-cg-m { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bm-big b { font-size: 46px; }
.bm-big small { font-size: 18px; }
.bm-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


.bm-ping { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bm-ping 1.2s ease-out infinite; }
/* the bar by format — glowing segments; hover lights one, a click filters the cards */
.bm-fbar { display: flex; gap: 4px; height: 10px; margin-top: 2px; }
.bm-fbar-s { --c: 167, 139, 250; min-width: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, rgba(var(--c), .55), rgba(var(--c), 1)); box-shadow: 0 0 14px -2px rgba(var(--c), .55); transition: opacity .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out; }
.bm-fbar-s[data-g="docx"] { --c: 125, 211, 252; } .bm-fbar-s[data-g="sheets"] { --c: 94, 234, 212; } .bm-fbar-s[data-g="texts"] { --c: 240, 171, 252; }
.bm-core.is-hov .bm-fbar-s:not(.is-hot), .bm-fbar-s.is-dim { opacity: .28; box-shadow: none; }
.bm-fbar-s.is-hot, .bm-fbar-s.is-on { transform: scaleY(1.5); box-shadow: 0 0 20px 0 rgba(var(--c), .7); }
.bm-flg { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-flg-i { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 14px; border: 1px solid var(--k-line); background: var(--k-glass); font: inherit; color: var(--k-ink); cursor: pointer;
  transition: border-color .16s ease-out, background .16s ease-out, opacity .16s ease-out, transform .16s ease-out; }
.bm-flg-i > span { display: flex; align-items: baseline; gap: 6px; }
.bm-flg-i b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--k-hi); }
.bm-flg-i em { font-style: normal; font-size: 12.5px; color: var(--k-mut); }
.bm-flg-i .bm-fi { filter: none; }
.bm-flg-i:hover, .bm-flg-i.is-hot { border-color: rgba(var(--k-li), .45); background: var(--k-glass2); transform: translateY(-1px); }
.bm-flg-i.is-on { border-color: rgba(var(--k-li), .6); background: rgba(167, 139, 250, .16); }
.bm-flg-i.is-dim, .bm-core.is-hov .bm-flg-i:not(.is-hot) { opacity: .5; }
.bm-flg-x { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; align-self: center; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12.5px; color: var(--k-lilac); cursor: pointer; }
.bm-flg-x:hover { background: var(--k-glass2); }
.bm-cg-s { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bm-gl { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.bm-gl .core-big.is-s b { font-size: 24px; }
.bm-gl-sp { line-height: 0; }
.bm-gl-sp svg { width: 100%; height: 44px; }
.bm-gl-s { font-size: 12.5px; line-height: 17px; }
.bm-gl-d { padding: 0; border: 0; background: none; font: inherit; color: var(--k-ink); font-weight: 600; cursor: pointer; }
.bm-gl-d:hover { color: var(--k-lilac); text-decoration: underline; text-underline-offset: 3px; }

/* «N требует внимания» — a quiet link that filters (no pink chip, no orange) */
.bm-att { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--k-glass, var(--l2)); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--k-ink, var(--ink)); cursor: pointer; transition: background .15s ease-out; }
.bm-att svg { color: var(--bm-rose); }
.bm-att:hover, .bm-att.is-on { background: var(--k-glass2, var(--l1)); box-shadow: 0 0 0 1px rgba(var(--k-li, 124, 77, 230), .25); }
.bm-fbar-s[data-g="links"] { --c: 125, 211, 252; } .bm-fbar-s[data-g="texts"] { --c: 192, 132, 252; }

/* ── the one icon style — round T2 (docs/T2.md §1, owner: «просто делай чёрное, как в Sintra»): an ink line on a
   neutral tile (a faint grey fill, a hairline), never a lilac glass. The gradient defs of App.brainUi.glyph stay in the
   markup but are not used: the stroke is the currentColor. ── */
.bm-gt { --gs: 40px; display: inline-grid; place-items: center; width: var(--gs); height: var(--gs); flex: 0 0 auto; border-radius: calc(var(--gs) * .3); box-sizing: border-box;
  color: var(--ink-icon, var(--ink)); background: var(--ink-tile, var(--l2)); border: 1px solid var(--ink-tile-brd, var(--line));
  transition: border-color .2s ease-out, background-color .2s ease-out, transform .2s cubic-bezier(.2, .8, .2, 1); }
.bm-gt svg { display: block; overflow: visible; }
.bm-gt svg path { stroke: currentColor; stroke-width: 1.8; }

/* ── 2. «Рекомендуем» — crisp cards in the manner of the dashboard tiles ── */
.bm-rec { display: flex; flex-direction: column; gap: 12px; }
.bm-rec-h { display: flex; align-items: center; gap: 12px; }
.bm-rec-h h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 680; color: var(--ink); }
.bm-rec-n { font-size: 12.5px; color: var(--mut2); }
.bm-rec-m { width: 84px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--acc) 12%, var(--l2)); overflow: hidden; }
.bm-rec-m > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), #2dd4bf); }
.bm-rec-h .bm-lnk { margin-left: auto; color: var(--mut2); }
.bm-rcs { display: flex; flex-wrap: wrap; gap: 14px; }
.bm-rc { --mx: 30%; --my: 0%; position: relative; isolation: isolate; flex: 1 1 230px; min-width: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--acc) 11%, var(--line)); background: linear-gradient(170deg, var(--l1), color-mix(in srgb, var(--acc) 3%, var(--l1)));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--acc) 6%, transparent), 0 14px 30px -28px var(--bm-glow);
  transition: border-color .2s ease-out, box-shadow .25s ease-out, transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out; }
.bm-rc::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s ease-out; background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%); }
.bm-rc:hover { border-color: var(--acc-soft-brd); transform: translateY(-3px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 6%, transparent), 0 26px 46px -30px var(--bm-glow); }
.bm-rc:hover::before { opacity: 1; }
.bm-rc:hover .bm-gt { transform: translateY(-2px) rotate(-4deg); background: var(--ink-tile-hov, var(--l2)); }
.bm-rc.is-out { opacity: 0; transform: scale(.96); }
.bm-rc-m { display: flex; flex-direction: column; gap: 12px; width: 100%; height: 100%; min-height: 168px; padding: 18px 18px 16px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; box-sizing: border-box; }
.bm-rc-m:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 20px; }
.bm-rc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-right: 22px; }
.bm-rc:not(.is-ask) .bm-rc-top { justify-content: flex-start; }
.bm-rc-top .core-kick { color: var(--mut2); }
.bm-rc-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bm-rc-t b { font-size: 15px; line-height: 20px; font-weight: 680; letter-spacing: -.005em; }
.bm-rc-t em { font-style: normal; font-size: 12.5px; line-height: 17px; color: var(--mut); }
.bm-rc-f { display: flex; align-items: center; gap: 10px; margin-top: auto; min-width: 0; }
.bm-rc-for { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; font-size: 12px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.bm-rc { container-type: inline-size; container-name: bmrc; }
@container bmrc (max-width: 290px) { .bm-rc-for .bm-rc-nm { display: none; } }
.bm-rc-fm { display: inline-flex; flex: 0 0 auto; }
.bm-rc-fm > i { display: inline-grid; margin-left: -6px; } .bm-rc-fm > i:first-child { margin-left: 0; }
.bm-rc-go { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex: 0 0 auto; white-space: nowrap; height: 30px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 650; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 7%, var(--l1)); transition: background .2s ease-out, gap .2s ease-out; }
.bm-rc:hover .bm-rc-go { background: color-mix(in srgb, var(--acc) 12%, var(--l1)); gap: 8px; }
.bm-rc-x { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--l1); color: var(--mut2); cursor: pointer; opacity: 0; transition: opacity .15s ease-out; box-shadow: 0 2px 8px -4px var(--bm-glow); }
.bm-rc:hover .bm-rc-x, .bm-rc-x:focus-visible { opacity: 1; }
.bm-rc-x:hover { color: var(--ink); }
/* «Вопросы агентов» — the lead card: the lavender glass of the hero, the faces, the count, the first question */
.bm-rc.is-ask { flex: 1.8 1 360px; border-color: color-mix(in srgb, var(--acc) 18%, var(--line));
  background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, #a78bfa 16%, transparent), transparent 62%), radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, #5eead4 8%, transparent), transparent 60%), linear-gradient(165deg, var(--l1), color-mix(in srgb, var(--acc) 5%, var(--l1))); }
.bm-rc-fs { display: inline-flex; align-items: center; padding-right: 30px; filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--acc) 26%, transparent)); }
.bm-rc-fs > span { display: inline-grid; margin-left: -8px; transform: translateY(calc(var(--i) * 3px - 3px)) rotate(calc(var(--i) * 5deg - 5deg)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bm-rc-fs > span:first-child { margin-left: 0; }
.bm-rc.is-ask:hover .bm-rc-fs > span { transform: translateX(calc(var(--i) * 10px)); }
.bm-rc-big { display: flex; align-items: baseline; gap: 8px; margin-top: -4px; }
.bm-rc-big b { font-size: 40px; line-height: 44px; font-weight: 720; letter-spacing: -.03em; color: color-mix(in srgb, var(--acc) 72%, var(--ink)); font-variant-numeric: tabular-nums; }
.bm-rc-big small { font-size: 14px; font-weight: 560; color: var(--mut); }
.bm-rc-qq { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--l1) 82%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 12%, var(--line)); box-shadow: 0 8px 20px -18px var(--bm-glow); }
.bm-rc-qq > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 19px; font-weight: 560; color: var(--ink); }
.bm-rc-qq em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--mut2); }
.bm-rc-dots { display: inline-flex; gap: 5px; }
.bm-rc-dots i { width: 22px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--acc) 14%, var(--l2)); }
.bm-rc-dots i.is-done { background: linear-gradient(90deg, var(--acc), #2dd4bf); }

/* ── 3. «Документы» — the explorer (round G2, docs/GLASS.md §8.2): the path, the glass folders of a level, the cards ── */
.bm-sec { padding: 22px 24px 24px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--acc) 8%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 2.5%, var(--l1)), var(--l1) 30%); min-width: 0; }
.bm-sh { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 16px; min-height: 36px; }
.bm-sh-t { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bm-sh-t h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 680; color: var(--ink); }
.bm-sh-t > span { font-size: 13px; color: var(--mut); }
.bm-sh .bm-q { margin-left: auto; }
.bm-q { width: 240px; height: 34px; }
/* the path: «‹», then «Документы › Компания › …» — the earlier crumbs quiet and clickable (and drop targets), the current
   one in ink; a long path gives way in the middle crumbs first */
.bm-sh-t.is-path { align-items: center; gap: 6px; flex: 1 1 auto; }
.bm-uplv { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; margin-left: -8px; border: 0; border-radius: 10px; background: none; color: var(--mut); cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out, transform .22s cubic-bezier(.2, .8, .2, 1); }
.bm-uplv:hover { background: color-mix(in srgb, var(--acc) 8%, var(--l1)); color: var(--acc); transform: translateX(-2px); }
.bm-uplv:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bm-bc { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 0 1 auto; overflow: clip; overflow-clip-margin: 10px; }
.bm-bc-i { flex: 0 1 auto; min-width: 2.6em; max-width: 220px; height: 30px; padding: 0 7px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 18px; line-height: 30px; font-weight: 600;
  color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s ease-out, color .15s ease-out, box-shadow .15s ease-out; }
.bm-bc-i:first-child { flex-shrink: 0; min-width: 0; }
.bm-bc-i.is-more { flex: 0 0 auto; min-width: 0; padding: 0 8px; letter-spacing: .08em; }
.bm-bc-i:hover { color: var(--acc); background: color-mix(in srgb, var(--acc) 7%, var(--l1)); }
.bm-bc-i:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bm-bc-i.is-dropzone { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--l1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent), 0 8px 20px -10px var(--bm-glow); }
.bm-bc-s { display: inline-grid; place-items: center; flex: 0 0 auto; width: 16px; color: var(--mut2); opacity: .8; }
.bm-bc-c { flex: 0 1 auto; min-width: min(100%, 6em); margin: 0 0 0 7px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sh-n { flex: 0 0 auto; margin-left: 6px; font-size: 13px; color: var(--mut); white-space: nowrap; }
/* «+ Папка» in the head — while a level has no folders of its own (with folders it is the glass tile at their end) */
.bm-fadd { flex: 0 0 auto; height: 34px; gap: 7px; padding: 0 12px; border-radius: 11px; font-weight: 620; color: var(--acc);
  border-color: color-mix(in srgb, var(--acc) 16%, var(--line)); background: color-mix(in srgb, var(--acc) 3%, var(--l1)); }
.bm-sh .bm-fadd { margin-left: auto; }
.bm-sh .bm-fadd + .bm-q { margin-left: 0; }
.bm-fadd:hover { border-color: var(--acc-soft-brd); background: var(--acc-soft); }
.bm-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--acc-soft); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--acc); cursor: pointer; align-self: center; }
.bm-pill:hover { background: color-mix(in srgb, var(--acc) 16%, var(--l1)); }
.bm-none { margin: 0; padding: 30px 0; text-align: center; font-size: 13px; color: var(--mut); }
.bm-none.is-folder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px 26px; }
.bm-none.is-folder b { margin-top: 6px; font-size: 15px; color: var(--ink); }
.bm-none-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
/* FIN: режим сервера — мозг ещё не пришёл или не загрузился */
.bm-none.is-srv { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; }
.bm-none.is-srv b { font-size: 15px; color: var(--ink); }
/* a level: moving inside slides from the right, going up — from the left; the folder being entered stays, the rest steps back */
.bm-lv { position: relative; min-width: 0; }
.bm-lv.is-in { animation: bm-lv-in .38s cubic-bezier(.2, .8, .2, 1) backwards; }
.bm-lv.is-back { animation: bm-lv-back .38s cubic-bezier(.2, .8, .2, 1) backwards; }
.bm-lv .bm-gfs > .gf-root, .bm-lv .bm-cards, .bm-lv .bm-none { transition: opacity .3s ease-out; }
.bm-lv.is-going .bm-gfs > .gf-root:not(.is-go), .bm-lv.is-going .bm-cards, .bm-lv.is-going .bm-none { opacity: .22; }
/* the glass folders: the width of each is computed to fill the row (screens/pf-brain-2.js); room above for the open fan */
.bm-gfs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 30px 22px; margin: -4px 0 24px; padding-top: 8px; min-height: 150px; }
.bm-gfs:empty { min-height: 0; padding: 0; margin: 0; }
.bm-gfs .gf-root { --gf-sel: color-mix(in srgb, var(--acc) 82%, #a78bfa); }
.bm-gfs .gf-root[draggable="true"] { cursor: pointer; }
.bm-gfs .gf-root.is-drag { opacity: .35; }
.bm-gfs .gf-root.is-out, .bm-cd.is-out { opacity: 0; transform: scale(.94); transition: opacity .17s ease-out, transform .17s ease-out; }
/* «+ Папка»: a bare glass pocket, a little quieter than the folders */
.bm-gfs .bm-gf-new { opacity: .9; }
.bm-gfs .bm-gf-new:hover, .bm-gfs .bm-gf-new:focus-within { opacity: 1; }
.bm-gfs .bm-gf-new .gf-title { color: color-mix(in srgb, var(--acc) 70%, var(--gf-ink)); }
/* the cards — as before round G1 (the owner liked them): the format icon with its coloured label, the name, size, volume */
.bm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 14px; }
.bm-cd { --mx: 50%; --my: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--acc) 9%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 3%, var(--l1)), var(--l1) 60%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--acc) 5%, transparent);
  transition: border-color .2s ease-out, box-shadow .25s ease-out, transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out; }
.bm-cd::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s ease-out; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%); }
.bm-cd:hover, .bm-cd:focus-within { border-color: var(--acc-soft-brd); transform: translateY(-3px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 5%, transparent), 0 24px 40px -28px var(--bm-glow); }
.bm-cd:hover::before { opacity: 1; }
.bm-cd.is-drag { opacity: .45; transform: scale(.98); }
.bm.is-moving .bm-cd:not(.is-drag) { transform: none; }
.bm-cd-m { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 auto; padding: 16px 40px 12px 16px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.bm-cd-m:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 18px; }
.bm-cd-m .bm-fi { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bm-cd:hover .bm-cd-m .bm-fi { transform: translateY(-3px) rotate(-4deg) scale(1.03); }
.bm-cd-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 3px; }
.bm-cd-t b { font-size: 14px; line-height: 19px; font-weight: 640; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bm-cd-t em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut); overflow-wrap: anywhere; }
.bm-cd-t em.is-u { margin-top: -3px; color: var(--mut2); }
.bm-cd-x { position: absolute; top: 10px; right: 8px; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--mut2); cursor: pointer; }
.bm-cd-x:hover { background: var(--l1); color: var(--ink); }
/* «⋯» — always on a card that needs attention, on the others it comes with the hover (the resting card stays as before G1) */
.bm-cd:not(.is-err) .bm-cd-x { opacity: 0; transition: opacity .15s ease-out, background .15s ease-out; }
.bm-cd:not(.is-err):hover .bm-cd-x, .bm-cd:not(.is-err):focus-within .bm-cd-x { opacity: 1; }
/* the foot: who and when (in a search — the path) — on hover it turns into the quick actions */
.bm-cd-f { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 8px 14px 9px 16px; border-top: 1px solid color-mix(in srgb, var(--acc) 7%, var(--line)); font-size: 12px; color: var(--mut); }
.bm-cd-by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .14s ease-out, transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .14s; }
.bm-cd-fo { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--mut); overflow: hidden; }
.bm-cd-fo > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-cd-fo .fsv { flex: 0 0 auto; }
.bm-cd-fo.is-root { font-weight: 560; color: var(--mut2); }
.bm-cd-fo.is-root svg { flex: 0 0 auto; color: color-mix(in srgb, var(--acc) 60%, var(--mut2)); }
.bm-cd-q { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; background: var(--l1); opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; transition: opacity .16s ease-out, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .16s; }
.bm-cd:hover .bm-cd-q, .bm-cd:focus-within .bm-cd-q { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .16s ease-out, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.bm-cd:hover .bm-cd-by, .bm-cd:focus-within .bm-cd-by { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.bm-cd-qb { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 32px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; transition: background .15s ease-out, color .15s ease-out; }
.bm-cd-qb svg { opacity: .78; }
.bm-cd-qb:hover svg, .bm-cd-qb:focus-visible svg { opacity: 1; }
/* a tooltip of glass over the action */
.bm-cd-qb::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 3; padding: 4px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font-size: 11.5px; font-weight: 600; color: var(--ink); background: var(--l1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 16%, var(--line)), 0 10px 22px -12px var(--bm-glow);
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .14s ease-out, transform .18s cubic-bezier(.2, .8, .2, 1); }
.bm-cd-qb:hover::after, .bm-cd-qb:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.bm-cd:has(.bm-cd-qb:hover) { overflow: visible; }
.bm-cd-qb:hover, .bm-cd-qb:focus-visible { background: color-mix(in srgb, var(--acc) 9%, var(--l1)); color: var(--acc); }
.bm-cd-qb.is-del:hover { background: var(--bm-rose-soft); color: var(--bm-rose); }
.bm-cd-r { display: inline-flex; align-items: center; gap: 7px; color: var(--ai); font-weight: 600; }
.bm-cd-r i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); animation: bm-ping 1.2s ease-out infinite; }
.bm-cd-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ai) 12%, transparent) 45%, color-mix(in srgb, var(--acc) 10%, transparent) 55%, transparent 80%); transform: translateX(-100%); animation: bm-scan 1.8s ease-in-out infinite; }
.bm-cd.is-run { border-color: color-mix(in srgb, var(--ai) 26%, var(--line)); }
.bm-cd.is-new { animation: bm-ready 1.8s ease-out; }
/* an error — calm: a rose-violet tint, a small ⓘ, one line, one action */
.bm-cd.is-err { background: linear-gradient(180deg, var(--bm-rose-soft), var(--l1) 75%); border-color: var(--bm-rose-brd); }
.bm-cd.is-err .bm-cd-f { flex-wrap: wrap; border-top-color: var(--bm-rose-brd); }
.bm-cd-e { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--mut); }
.bm-cd-e > svg { flex: 0 0 auto; color: var(--bm-rose); }
.bm-cd-fix { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; flex: 0 0 auto; border: 1px solid var(--bm-rose-brd); border-radius: 9px; background: var(--l1); font: inherit; font-size: 12px; font-weight: 650; color: var(--acc); cursor: pointer; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.bm-cd-fix:hover { border-color: var(--acc-soft-brd); box-shadow: 0 6px 16px -10px var(--bm-glow); }
.bm-mi-fo { display: inline-flex; margin-right: 2px; }
/* «Переместить в» — the tree of folders: each level a step in, the place where it lies now ticked */
.bm-mv-menu { max-height: min(460px, calc(100vh - 32px)); overflow-y: auto; scrollbar-width: thin; }
.bm-tr-i { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; margin-left: calc(var(--d, 0) * 14px); color: var(--acc); }
.bm-tr-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-dropall b { font-size: 16px; }

/* ── the drop strip: calm glass, a soft glow under the pointer and while a file is over it — no dashes ── */
.bm-drop { position: relative; isolation: isolate; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 150px; padding: 18px; box-sizing: border-box; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--acc) 16%, var(--line)); border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 5%, var(--l1)), color-mix(in srgb, var(--ai) 3%, var(--l1)));
  font: inherit; color: var(--ink); text-align: center; cursor: pointer; transition: border-color .22s ease-out, box-shadow .22s ease-out, transform .22s ease-out; }
.bm-drop::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s ease-out;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%); }
.bm-drop:hover, .bm-drop.is-over, .bm.is-drag .bm-drop { border-color: color-mix(in srgb, var(--acc) 36%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 8%, transparent), 0 18px 40px -30px var(--bm-glow); }
.bm-drop:hover::before, .bm-drop.is-over::before, .bm.is-drag .bm-drop::before { opacity: 1; }
.bm-drop:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.bm-drop-o { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 14px; color: var(--ink-icon, var(--ink));
  background: var(--ink-tile, var(--l2)); box-shadow: inset 0 0 0 1px var(--ink-tile-brd, var(--line)); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }   /* round T2: ink, a neutral tile */
.bm-drop:hover .bm-drop-o, .bm-drop.is-over .bm-drop-o { transform: translateY(-2px); }
.bm-drop-o.is-big { width: 56px; height: 56px; border-radius: 18px; }
.bm-drop-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bm-drop-t b { font-size: 14.5px; font-weight: 680; }
.bm-drop-t em { font-style: normal; font-size: 12.5px; color: var(--mut); }
.bm-drop-f { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--mut2); }
.bm-drop.is-win { min-height: 200px; }
/* inside the core: the panel's own glass */
.bm-drop.is-core { min-height: 0; padding: 14px 16px; gap: 8px; color: var(--k-ink); border-color: var(--k-line); background: var(--k-glass); }
.bm-drop.is-core .bm-drop-t em { color: var(--k-mut); }
.bm-drop.is-core .bm-drop-f { color: var(--k-mut2); }
.bm-drop.is-core:hover, .bm-drop.is-core.is-over, .bm.is-drag .bm-drop.is-core { border-color: rgba(var(--k-li), .5); background: var(--k-glass2); box-shadow: 0 0 0 4px rgba(167, 139, 250, .10), 0 18px 40px -26px rgba(139, 92, 246, .6); }

/* drop anywhere: the page under glass, one calm card */
.bm-dropall { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .18s ease-out;
  background: color-mix(in srgb, var(--l0, var(--l1)) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bm-dropall > div { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(360px, calc(100vw - 48px)); padding: 30px 28px; box-sizing: border-box; text-align: center; border-radius: 24px;
  border: 1.5px solid color-mix(in srgb, var(--acc) 35%, var(--line)); background: var(--l1); box-shadow: 0 30px 80px -30px var(--bm-glow); transform: scale(.96); transition: transform .2s ease-out; }
.bm-dropall b { font-size: 16px; font-weight: 650; color: var(--ink); margin-top: 6px; }
.bm-dropall em { font-style: normal; font-size: 12px; color: var(--mut); }
.bm.is-drag .bm-dropall { opacity: 1; }
.bm.is-drag .bm-dropall > div { transform: none; }

/* ── an empty brain ── */
.bm-empty { display: flex; align-items: flex-start; gap: 22px; padding: 26px 28px; }
.bm-empty-mk { flex: 0 0 auto; filter: drop-shadow(0 14px 26px rgba(91, 47, 191, .35)); }
.bm-empty-t { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.bm-empty-t h2 { margin: 2px 0 2px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; color: var(--k-hi); }
.bm-empty-t .core-sub { max-width: 620px; margin: 0; }
.bm-site { display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 10px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--k-line); background: var(--k-glass2); transition: border-color .18s ease-out, box-shadow .18s ease-out; }
.bm-site:focus-within { border-color: rgba(var(--k-li), .55); box-shadow: 0 0 0 4px rgba(167, 139, 250, .14); }
.bm-site-l { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--k-mut); }
.bm-site-l svg { color: var(--k-lilac); }
.bm-site input { flex: 1 1 auto; min-width: 0; height: 34px; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--k-ink); }
.bm-site input::placeholder { color: var(--k-mut2); }
.bm-site-go { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 12px; color: #fff; cursor: pointer;
  background: linear-gradient(140deg, var(--k-violet, #8b5cf6), var(--k-deep, #5b2fbf)); box-shadow: 0 8px 18px -10px rgba(91, 47, 191, .7); transition: transform .18s ease-out; }
.bm-site-go:hover { transform: translateX(2px); }
.bm-empty-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 620px; margin-top: 10px; }
.bm-lnk { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--k-lilac, var(--acc)); cursor: pointer; }
.bm-lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.bm-lnk.is-s { font-size: 12px; }


/* ── windows: preview and upload ── */
.bm-pv { display: flex; flex-direction: column; gap: 14px; }
.bm-pv-top { display: flex; align-items: center; gap: 14px; }
.bm-pv-meta { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.bm-pv-meta b { font-size: 13.5px; font-weight: 620; color: var(--ink); overflow-wrap: anywhere; }
.bm-pv-meta span { font-size: 12px; color: var(--mut); }
.bm-pv-url { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--acc) 14%, var(--line)); background: color-mix(in srgb, var(--acc) 4%, var(--l1)); color: var(--acc); font-size: 13px; font-weight: 600; text-decoration: none; min-width: 0; }
.bm-pv-url span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-pv-url:hover { border-color: var(--acc-soft-brd); }
.bm-pv-k { display: flex; align-items: baseline; gap: 8px; }
.bm-pv-k b { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.bm-pv-k span { font-size: 12px; color: var(--mut2); }
.bm-pv-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; counter-reset: bmf; }
.bm-pv-facts li { counter-increment: bmf; position: relative; padding: 9px 12px 9px 40px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 4%, var(--l1)); border: 1px solid var(--line); font-size: 13.5px; line-height: 19px; color: var(--ink); }
.bm-pv-facts li::before { content: counter(bmf); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--acc); background: var(--acc-soft); }
.bm-pv-text { max-height: 340px; overflow: auto; padding: 14px 16px; border-radius: 14px; background: var(--l2); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.bm-pv-text.is-md { white-space: normal; }
.bm-pv-text p { margin: 0 0 4px; }
.bm-md-h1 { font-size: 16px; font-weight: 680; } .bm-md-h2 { font-size: 14px; font-weight: 650; margin-top: 6px !important; } .bm-md-gap { height: 4px; }
.bm-pv-note, .bm-pv-srv { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 17px; }
.bm-pv-note { padding: 0; color: var(--mut); }
.bm-pv-srv { background: var(--l2); border: 1px solid var(--line); color: var(--mut); }
.bm-pv-srv.is-run { background: color-mix(in srgb, var(--ai) 7%, var(--l1)); border-color: color-mix(in srgb, var(--ai) 22%, var(--line)); }
.bm-pv-srv > div { display: flex; flex-direction: column; gap: 2px; }
.bm-pv-srv b { color: var(--ink); }
/* the calm error line (preview, upload, link) */
.bm-err { display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 14px; border-radius: 14px; background: var(--bm-rose-soft); border: 1px solid var(--bm-rose-brd); font-size: 13px; line-height: 18px; color: var(--ink); }
.bm-err > svg { flex: 0 0 auto; color: var(--bm-rose); }
.bm-csv { max-height: 340px; overflow: auto; border-radius: 14px; border: 1px solid var(--line); }
.bm-csv table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.bm-csv th, .bm-csv td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.bm-csv th { position: sticky; top: 0; background: var(--l2); font-weight: 650; }
.bm-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 560; color: var(--mut); white-space: nowrap; }
.bm-st.is-ok svg { color: var(--vyg); }
.bm-st.is-run { color: var(--ai); }
.bm-st.is-run i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); animation: bm-ping 1.2s ease-out infinite; }
.bm-st.is-err { padding: 2px 9px; border-radius: 999px; color: var(--mut); background: var(--bm-rose-soft); border: 1px solid var(--bm-rose-brd); }
.bm-st.is-err svg { color: var(--bm-rose); }
.bm-demo { font-style: normal; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 650; color: var(--mut); background: var(--l2); border: 1px solid var(--line); }
.bm-up { display: flex; flex-direction: column; gap: 12px; }
.bm-up-room { margin: 0; font-size: 12.5px; color: var(--mut); }
.bm-up-list { display: flex; flex-direction: column; gap: 6px; }
.bm-up-f { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--l1); }
.bm-up-f.is-bad { background: var(--bm-rose-soft); border-color: var(--bm-rose-brd); }
.bm-up-x { display: inline-grid; place-items: center; width: 29px; height: 36px; color: var(--bm-rose); }
.bm-up-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.bm-up-t b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.bm-up-t em { font-style: normal; font-size: 12px; color: var(--mut); }
.bm-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--mut2); cursor: pointer; }
.bm-ib:hover { background: var(--l3); color: var(--ink); }
.bm-mut { margin: 0; font-size: 12.5px; color: var(--mut); }

/* ── «+ Создать» — the menu ── */
.bm-mk { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bm-mk b { font-size: 13.5px; font-weight: 640; color: var(--ink); }
.bm-mk em { font-style: normal; font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the editor (a large window, like «Add document» in Sintra — only calmer) ── */
.sheet.bm-ed-win { width: min(940px, 100%); height: min(860px, calc(100vh - 48px)); border-radius: 24px; }
.bm-ed-win .sb { display: flex; padding: 0; overflow: hidden; }
.bm-ed { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
.bm-ed-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px 22px; }
.bm-ed-ic { display: inline-flex; }
.bm-ed-k { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bm-ed-k > b { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); }
.bm-ed-fo { display: inline-flex; align-items: center; gap: 5px; max-width: 260px; height: 24px; padding: 0 8px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--acc) 7%, var(--l2)); font: inherit; font-size: 12px; font-weight: 600; color: var(--mut); cursor: pointer; }
.bm-ed-fo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-ed-fo svg { flex: 0 0 auto; color: var(--acc); }
.bm-ed-fo:hover { color: var(--ink); background: color-mix(in srgb, var(--acc) 12%, var(--l2)); }
.bm-ed-h .sp { flex: 1 1 auto; }
.bm-ed-h .btn-acc { height: 36px; border-radius: 11px; font-weight: 650; }
.bm-ed-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 11px; background: none; color: var(--mut2); cursor: pointer; }
.bm-ed-ib:hover { background: var(--l2); color: var(--ink); }
.bm-ed-ti { margin: 6px 0 0; padding: 6px 30px; border: 0; outline: 0; background: none; font: inherit; font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.bm-ed-ti::placeholder { color: color-mix(in srgb, var(--mut2) 70%, transparent); }
.bm-ed-tb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 8px 22px 0; padding: 5px; border-radius: 14px; background: color-mix(in srgb, var(--acc) 4%, var(--l2)); border: 1px solid color-mix(in srgb, var(--acc) 8%, var(--line)); }
.bm-ed-b { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; color: var(--mut); cursor: pointer; transition: background .12s ease-out, color .12s ease-out; }
.bm-ed-b b, .bm-ed-b i, .bm-ed-b s { font-size: 14px; }
.bm-ed-b:hover { background: var(--l1); color: var(--ink); }
.bm-ed-b.is-on { background: var(--l1); color: var(--acc); box-shadow: 0 1px 2px color-mix(in srgb, var(--acc) 20%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent); }
.bm-ed-ol { font-size: 13px !important; }
.bm-ed-sep { width: 1px; height: 20px; margin: 0 4px; background: color-mix(in srgb, var(--acc) 14%, var(--line)); }
.bm-ed-sc { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px 30px 40px; scrollbar-width: thin; }
.bm-ed-ce { position: relative; max-width: 72ch; min-height: 100%; margin: 0 auto 0 0; outline: 0; font-size: 15px; line-height: 26px; color: var(--ink); caret-color: var(--acc); overflow-wrap: anywhere; }
.bm-ed-ce.is-empty::before { content: 'Начните писать…'; position: absolute; left: 0; top: 0; color: var(--mut2); pointer-events: none; }
.bm-ed-ce > :first-child { margin-top: 0; }
.bm-ed-ce p { margin: 0 0 10px; }
.bm-ed-ce h1 { margin: 22px 0 8px; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; }
.bm-ed-ce h2 { margin: 20px 0 6px; font-size: 19px; line-height: 27px; font-weight: 680; }
.bm-ed-ce h3 { margin: 16px 0 4px; font-size: 16px; line-height: 24px; font-weight: 660; }
.bm-ed-ce ul, .bm-ed-ce ol { margin: 0 0 10px; padding-left: 24px; }
.bm-ed-ce ul { list-style: disc; } .bm-ed-ce ol { list-style: decimal; } .bm-ed-ce li { display: list-item; }
.bm-ed-ce ul ul { list-style: circle; }
.bm-ed-ce li::marker { color: var(--acc); }
.bm-ed-ce a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.bm-ed-ce hr { height: 1px; margin: 18px 0; border: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 30%, transparent), transparent); }
.bm-ed-ce ul[data-check] { list-style: none; padding-left: 4px; }
.bm-ed-ce ul[data-check] > li { position: relative; padding-left: 28px; }
.bm-ed-ce ul[data-check] > li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--acc) 45%, var(--line)); background: var(--l1); cursor: pointer; box-sizing: border-box; }
.bm-ed-ce ul[data-check] > li[data-on]::before { border-color: transparent; background: linear-gradient(140deg, var(--acc), var(--ai)) center / cover; }
.bm-ed-ce ul[data-check] > li[data-on]::after { content: ''; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); pointer-events: none; }
.bm-ed-ce ul[data-check] > li[data-on] { color: var(--mut); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--mut) 50%, transparent); }
.bm-ed-ce table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 6px 0 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 14%, var(--line)); font-size: 14px; }
.bm-ed-ce th, .bm-ed-ce td { padding: 8px 12px; text-align: left; vertical-align: top; min-width: 60px; border-bottom: 1px solid color-mix(in srgb, var(--acc) 7%, var(--line)); }
.bm-ed-ce tr:last-child > * { border-bottom: 0; }
.bm-ed-ce th { background: color-mix(in srgb, var(--acc) 6%, var(--l1)); font-weight: 650; }
.bm-ed-f { display: flex; align-items: center; gap: 12px; padding: 10px 22px 12px; border-top: 1px solid color-mix(in srgb, var(--acc) 7%, var(--line)); font-size: 12px; color: var(--mut2); }
.bm-ed-f .sp { flex: 1 1 auto; }
.bm-ed-kb { padding: 2px 7px; border-radius: 6px; background: var(--l2); font-size: 11px; }

/* ── small windows: a link, a folder ── */
.bm-lk { display: flex; flex-direction: column; gap: 14px; }
.bm-lk-f { display: flex; flex-direction: column; gap: 6px; }
.bm-lk-f > span { font-size: 12.5px; font-weight: 600; color: var(--mut); }
.bm-lk-f > span i { font-style: normal; font-weight: 400; color: var(--mut2); }
.bm-lk-in { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2, var(--line)); background: var(--l1); color: var(--acc); transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.bm-lk-in:focus-within, .bm-lk-i2:focus { border-color: var(--acc-soft-brd); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 12%, transparent); }
.bm-lk-in input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.bm-lk-i2 { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2, var(--line)); background: var(--l1); outline: 0; font: inherit; font-size: 14px; color: var(--ink); }
.bm-lk-n { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--bm-rose-soft); border: 1px solid var(--bm-rose-brd); font-size: 12.5px; color: var(--ink); }
.bm-lk-n[hidden] { display: none; }
.bm-lk-n svg { flex: 0 0 auto; color: var(--bm-rose); }
.bm-lk-h { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12.5px; line-height: 17px; color: var(--mut); }
.bm-lk-h svg { flex: 0 0 auto; margin-top: 2px; color: var(--acc); }
.bm-lk-s { display: flex; flex-direction: column; gap: 7px; }
.bm-lk-s > span { font-size: 12px; color: var(--mut2); }
.bm-lk-s > div { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-lk-s button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--acc) 14%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--acc) 4%, var(--l1)); font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.bm-lk-s button svg { color: var(--ink-icon, var(--ink)); }
.bm-lk-s button:hover { border-color: var(--acc-soft-brd); background: var(--acc-soft); }


/* «+ Создать» — round T2 (owner, with Sintra's «+ New»: «простые чёрные значки без подложек»): a plain ink icon (no
   tile), the title, a small grey line under it; the hover is the soft tint of every menu */
.bm-mk-menu { padding: 6px; border-radius: 16px; box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--acc) 34%, transparent), 0 2px 6px rgba(29, 31, 43, .06); }
.bm-mk-menu .menu-head { padding: 6px 10px 8px; }
.bm-mk-menu .mi { min-height: 50px; gap: 14px; padding: 7px 14px 7px 14px; border-radius: 11px; transition: background .16s ease-out; }
.bm-mk-menu .mi:hover, .bm-mk-menu .mi:focus { outline: 0; }
.bm-mk-menu .mi + .mi { margin-top: 1px; }
.bm-mk-menu .bm-gt { width: 22px; height: 22px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-icon, var(--ink)); }
.bm-mk-menu .bm-gt svg { width: 22px; height: 22px; }
.bm-mk-menu .bm-gt svg path { stroke-width: 2; }
.bm-mk-menu .bm-mk { gap: 0; }
.bm-mk-menu .bm-mk b { font-size: 14px; font-weight: 600; line-height: 19px; color: var(--ink-icon, var(--ink)); }
.bm-mk-menu .bm-mk em { font-size: 12px; line-height: 16px; color: var(--mut2); }

/* ── questions of the agents: a glass band, the agent's message, a reply bubble ── */
.sheet.bm-qa-win { width: min(640px, 100%); border-radius: 24px; overflow: hidden; }
.bm-qa-win .sb { padding: 0; }
.bm-qa-top { position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 20px 22px 18px; overflow: hidden;
  background: radial-gradient(60% 120% at 0% 0%, rgba(167, 139, 250, .22), transparent 62%), radial-gradient(50% 100% at 100% 0%, rgba(94, 234, 212, .12), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--acc) 4%, var(--l1)), color-mix(in srgb, var(--acc) 9%, var(--l1)));
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 12%, var(--line)); }
.bm-qa-top .core-fx { z-index: -1; }
.bm-qa-faces { display: inline-flex; align-items: center; flex: 0 0 auto; }
.bm-qa-f { display: inline-grid; margin-left: -4px; opacity: .9; transition: opacity .3s ease-out, transform .3s cubic-bezier(.2, .8, .2, 1); }
.bm-qa-f:first-child { margin-left: 0; }
.bm-qa-f.is-cur { position: relative; z-index: 1; opacity: 1; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--acc) 40%, transparent)); transform: translateY(-1px); }
.bm-qa-tt { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.bm-qa-tt b { font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bm-qa-dots { display: inline-flex; gap: 5px; margin-top: 3px; }
.bm-qa-dots i { width: 26px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--acc) 14%, var(--l2)); }
.bm-qa-dots i.is-done { background: color-mix(in srgb, var(--acc) 55%, var(--l2)); }
.bm-qa-dots i.is-cur { background: linear-gradient(90deg, var(--acc), #2dd4bf); box-shadow: 0 0 10px -2px color-mix(in srgb, var(--acc) 60%, transparent); }
.bm-qa-x { align-self: flex-start; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 11px; background: color-mix(in srgb, var(--l1) 70%, transparent); color: var(--mut); cursor: pointer; }
.bm-qa-x:hover { background: var(--l1); color: var(--ink); }
/* r31 (16.11, круг 3): сам разговор — языком «Ассистента» (css/chat-thread.css): вопрос агента — лицо и имя, текст без
   пузыря (вопрос сейчас — крупнее), ваш ответ — мягкий пузырь справа; ответ пишут в App.promptInput */
.bm-qa { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 20px; }
.bm-qa-th { --cth-gap: 22px; max-height: min(46vh, 420px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 8px 2px 4px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8px); mask-image: linear-gradient(to bottom, transparent 0, #000 8px); }
.bm-qa-th[hidden], .bm-qa-dock[hidden], .bm-qa-end[hidden] { display: none; }
.bm-qa-cur .cth-body { font-size: 18px; line-height: 26px; font-weight: 620; letter-spacing: -.01em; }
.bm-qa-why { margin: -2px 0 0; font-size: 13px; line-height: 19px; color: var(--mut2); text-wrap: pretty; }
.bm-qa-dock { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bm-qa-n { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 6px 0 8px; font-size: 12px; line-height: 17px; color: var(--mut2); }
.bm-qa-n > svg { flex: 0 0 auto; color: var(--ink-icon, var(--ink)); opacity: .55; }
.bm-qa-n > span { min-width: 0; text-wrap: pretty; }
.bm-qa-skip { flex: 0 0 auto; margin-left: auto; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--mut); cursor: pointer; transition: background .14s, color .14s; }
.bm-qa-skip:hover { background: var(--l2); color: var(--ink); }
.bm-qa-skip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bm-qa-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0 4px; }
.bm-qa-th:not([hidden]) + .bm-qa-dock[hidden] + .bm-qa-end { padding-top: 14px; border-top: 1px solid var(--line); }
.bm-qa-end h3 { margin: 4px 0 0; font-size: 17px; line-height: 23px; font-weight: 650; color: var(--ink); }
.bm-qa-end p { margin: 0; font-size: 13px; color: var(--mut); }
.bm-qa-ok { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, var(--acc), #2dd4bf); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 9%, transparent), 0 14px 26px -14px var(--bm-glow); }
.bm-qa-a { display: flex; gap: 8px; margin-top: 6px; }

/* ── motion ── */
@keyframes bm-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes bm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes bm-ready { 0% { box-shadow: 0 0 0 2px var(--acc), 0 0 30px -6px var(--bm-glow); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes bm-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes bm-lv-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes bm-lv-back { from { opacity: 0; transform: translateX(-26px); } }
@media (prefers-reduced-motion: reduce) {
  .bm-cd-scan, .bm-cd-r i, .bm-st.is-run i, .bm-cd.is-new, .bm-ping, .bm-lv.is-in, .bm-lv.is-back { animation: none; }
  .bm-cd, .bm-rc, .bm-gt, .bm-cd-m .bm-fi, .bm-fbar-s, .bm-flg-i, .bm-cd-q, .bm-cd-by, .bm-rc-fs > span, .bm-qa-f, .bm-uplv, .bm-bc-i, .bm-lv .bm-gfs > .gf-root, .bm-lv .bm-cards { transition: none; }
  .bm-cd:hover, .bm-cd:focus-within, .bm-cd:hover .bm-cd-m .bm-fi, .bm-uplv:hover { transform: none; }
}

/* ── narrower pages ── */
@container bm (max-width: 1180px) {
  .bm-cg { grid-template-columns: 170px minmax(0, 1fr); }
  .bm-cg-s { grid-column: 1 / -1; flex-direction: row; }
  .bm-cg-s > * { flex: 1 1 0; }
}
@container bm (max-width: 700px) {
  .bm-cg { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bm-cg-s { flex-direction: column; width: 100%; }
  .bm-sh .bm-q { margin-left: 0; width: 100%; }
  .bm-empty { flex-direction: column; }
  .bm-rc.is-ask { flex-basis: 100%; }
}
@container bm (max-width: 1000px) { .bm-rc.is-ask { flex-basis: 100%; } }

/* round 17: the danger of menus and windows opened on the brain page is the calm rose-violet of the error card, not the
   shared amber-orange (scoped to the brain: only while .bm is on the page) */
body:has(.bm) #layer { --zav: color-mix(in srgb, #c0398a 66%, #6d3fd6); --zav-soft: color-mix(in srgb, #f472b6 8%, var(--l1)); --zav-brd: color-mix(in srgb, #ec4899 22%, var(--line)); --zav-row: color-mix(in srgb, #f472b6 5%, var(--l1)); }
[data-theme="dark"] body:has(.bm) #layer, body:has(.bm)[data-theme="dark"] #layer { --zav: color-mix(in srgb, #f9a8d4 70%, #c4b5fd); --zav-soft: color-mix(in srgb, #f472b6 12%, var(--l1)); --zav-brd: color-mix(in srgb, #f472b6 30%, var(--line)); --zav-row: color-mix(in srgb, #f472b6 8%, var(--l1)); }

/* ── r31 (16.11): «Мозг компании» у агента Продажника ─────────────────────────────────────────────────────────────
   Знак мозга (App.brainUi.brainMark — три листа веером), строка «Мозг компании» в «Источниках знаний» агента
   (agents-editor.js), подпись «Свои источники агента», «Добавить источник» без пунктира, меню «Добавить источник»
   (App.brainUi.sourceMenu), блок «Знания» на схеме агента (agents-map.js). */
.bm-mark { position: relative; display: inline-block; flex: 0 0 auto; width: calc(var(--bs) * 1.12); height: var(--bs); }
.bm-mark > i { position: absolute; top: calc(var(--bs) * .1); left: calc(var(--i) * var(--bs) * .17); transform-origin: 50% 92%;
  transform: rotate(calc((var(--i) - 1) * 9deg)); filter: drop-shadow(0 3px 5px rgba(60, 40, 120, .13)); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.bm-mark > i .bm-fi { display: block; }
.ag-kr-brain:hover .bm-mark > i, .bm-src-menu .mi:hover .bm-mark > i, .am-row.is-brain:hover .bm-mark > i { transform: rotate(calc((var(--i) - 1) * 15deg)) translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .bm-mark > i { transition: none; } }

/* строка мозга: мягкое лавандовое стекло — отличается от своих источников, но тем же ритмом строки */
.ag-krs > .ag-kr.ag-kr-brain { margin: 0 -8px; padding: 11px 12px 11px 10px; border-radius: 14px; gap: 12px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 7%, var(--l1)), color-mix(in srgb, var(--ai) 5%, var(--l1)) 60%, var(--l1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 15%, transparent); }
.ag-krs > .ag-kr.ag-kr-brain:hover { background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 10%, var(--l1)), color-mix(in srgb, var(--ai) 7%, var(--l1)) 60%, var(--l1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 24%, transparent), 0 12px 24px -22px color-mix(in srgb, var(--acc) 60%, transparent); }
.ag-kr-brain + .ag-kr { margin-top: 6px; }
.ag-kr-bm { display: inline-flex; flex: 0 0 auto; width: 40px; justify-content: center; }
.ag-kr-brain .ag-kr-t b { display: inline-flex; align-items: center; }
.ag-kr-pend { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--acc); }
.ag-kr-open { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ag-krs > .ag-kr.ag-kr-brain.is-off { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.ag-kr-brain.is-off .bm-mark { opacity: .5; filter: grayscale(.7); }
.ag-kr-brain.is-off .ag-kr-t b { color: var(--mut); }

/* «Свои источники агента» — тихая подпись над своими строками; пусто — одна строка серым */
.ag-kb-own { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.ag-kb-own span { text-transform: none; letter-spacing: 0; font-weight: 450; font-size: 12px; color: var(--mut2); }
.ag-kb-own.is-empty { margin: 12px 2px 4px; text-transform: none; letter-spacing: 0; font-weight: 450; font-size: 12.5px; color: var(--mut2); }
.ag-krs + .ag-kb-none { margin-top: 12px; }

/* «Добавить источник»: спокойная стеклянная полоса (Кирилл не любит пунктир), как поле загрузки мозга */
.ag-c[data-ed="kb"] .ag-kb-f { margin-top: 12px; }
.ag-c[data-ed="kb"] .ag-kb-add { border: 1px solid color-mix(in srgb, var(--acc) 16%, var(--line)); background: color-mix(in srgb, var(--acc) 3%, transparent); color: var(--acc); }
.ag-c[data-ed="kb"] .ag-kb-add:hover { border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); background: color-mix(in srgb, var(--acc) 7%, transparent); }
[data-theme="light"] .ag-c[data-ed="kb"] .ag-kb-add { border-color: #e2d6fb; background: rgba(255, 255, 255, .6); }
[data-theme="light"] .ag-c[data-ed="kb"] .ag-kb-add:hover { border-color: #cdb8f7; background: #f7f2ff; }

/* меню «Добавить источник»: мозг сверху, подпись группы, строки как «+ Создать» */
.bm-src-menu { min-width: 330px; }
.bm-src-menu .bm-src-brain { display: inline-flex; width: 26px; justify-content: center; }
.bm-src-menu .menu-t:not(.menu-head) { padding: 10px 14px 4px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.bm-src-menu .mi.is-on { background: color-mix(in srgb, var(--acc) 6%, transparent); }

/* редактор мозга в режиме «свой текст агента»: вместо выбора папки — для кого текст */
.bm-ed-fo.is-ag { cursor: default; gap: 6px; }
.bm-ed-fo.is-ag .ai-mark, .bm-ed-fo.is-ag > span:first-child { flex: 0 0 auto; }

/* схема агента: строка «Мозг компании» в блоке «Знания» — знак мозга вместо значка, щелчок открывает мозг */
.am-row.is-brain { cursor: pointer; }
.am-ic.am-ic-brain { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: var(--s); height: var(--s); background: none; border: 0; box-shadow: none; }
.am-row.is-brain .am-t b { color: var(--ink); }
.am-row.is-brain:hover .am-t b { color: var(--acc); }

/* «Тест» агента: «Знания» ответа — ответ из мозга компании */
.ag-src.is-brain .ag-src-bm { display: inline-flex; flex: 0 0 auto; width: 30px; justify-content: center; }

/* знак мозга — без подписей форматов: листы лежат веером, подписи наезжали бы друг на друга; цвет полосы формата остаётся */
.bm-mark .bm-fi-l { display: none; }
