/* BrainDesk — мини-приложение Telegram (1.9): iOS HIG + дизайн-гайдлайн Telegram Mini Apps.
   Все цвета — из темы Telegram (--tg-theme-*), запасные — системная тёмная тема iOS; safe-area —
   из Telegram (--tg-safe-area-*, --tg-content-safe-area-*) с запасом env(); цели касания ≥ 44 pt;
   типографика iOS (large title 28, body 17, subheadline 15, footnote 13, caption 12);
   inset-grouped списки, tab bar 49 pt, лист с «грипом». */
:root {
  --bg: var(--tg-theme-secondary-bg-color, #000000);            /* фон сгруппированного списка (iOS grouped) */
  --panel: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #1c1c1e));   /* ячейки/секции */
  --hdr-bg: var(--tg-theme-header-bg-color, var(--tg-theme-bg-color, #1c1c1e));
  --bar-bg: var(--tg-theme-bottom-bar-bg-color, var(--tg-theme-secondary-bg-color, #161618));
  --ink: var(--tg-theme-text-color, #ffffff); --ink-2: var(--tg-theme-subtitle-text-color, var(--tg-theme-hint-color, #aeaeb2));
  --mut: var(--tg-theme-hint-color, #8e8e93); --sec: var(--tg-theme-section-header-text-color, var(--tg-theme-hint-color, #8e8e93));
  --acc: var(--tg-theme-button-color, #0a84ff); --acc-ink: var(--tg-theme-button-text-color, #fff);
  --acc-text: var(--tg-theme-accent-text-color, var(--tg-theme-link-color, #0a84ff));
  --link: var(--tg-theme-link-color, #0a84ff); --line: var(--tg-theme-section-separator-color, color-mix(in srgb, var(--ink) 14%, transparent));
  --bad: var(--tg-theme-destructive-text-color, #ff453a);
  --ok: #30d158; --warn: #ff9f0a; --info: #64a8ff;
  --c-unassigned: #ff9f0a; --c-planned: #98989d; --c-working: #0a84ff; --c-waiting: #ffd60a; --c-done: #30d158;
  --sat: var(--tg-content-safe-area-inset-top, var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  --sab: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --tabs: 49px; --hdr: 44px; --side: 16px;
  accent-color: var(--acc);
}
/* 3.7 (D-0201) дизайн-код сотрудника «Bali Baza — рабочие программы» 1.0, вариант А: вне Telegram (клиент на маке,
   ?device=, ?t=) темы Telegram нет — вместо запасного системного синего токены BrainDesk 2.2 по системной теме.
   Внутри Telegram всё как было: --tg-theme-*. Класс html.notg ставит m.js до первой отрисовки. */
html.notg {
  --bg: #FAF9F6; --panel: #FFFFFF; --hdr-bg: #FAF9F6; --bar-bg: #FAF9F6;
  --ink: #242C28; --ink-2: #5A6660; --mut: #647068; --sec: #647068;
  --acc: #176B60; --acc-ink: #FFFFFF; --acc-text: #176B60; --link: #176B60; --line: #DDE2D9;
  --bad: #A44135; --ok: #176B60; --warn: #8B581D; --info: #176B60;
  --c-unassigned: #8B581D; --c-planned: #647068; --c-working: #176B60; --c-waiting: #8B581D; --c-done: #176B60;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { html.notg {
  --bg: #202421; --panel: #272D29; --hdr-bg: #202421; --bar-bg: #202421;
  --ink: #F0F2EC; --ink-2: #A8B4AA; --mut: #8C9890; --sec: #8C9890;
  --acc: #8BCEBB; --acc-ink: #202421; --acc-text: #8BCEBB; --link: #8BCEBB; --line: #3A443D;
  --bad: #F0A69A; --ok: #8BCEBB; --warn: #E7B773; --info: #8BCEBB;
  --c-unassigned: #E7B773; --c-planned: #8C9890; --c-working: #8BCEBB; --c-waiting: #E7B773; --c-done: #8BCEBB;
}}
/* на широком окне мака текст не тянется: колонка ≤ 760 px по центру, вкладки — той же ширины */
html.notg #hdr, html.notg #view { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
html.notg #tabs { padding-left: max(0px, calc((100% - 760px) / 2)); padding-right: max(0px, calc((100% - 760px) / 2)); }
html.notg .sheet-card { max-width: 760px; margin: 0 auto; }
html.notg .fab { box-shadow: 0 1px 2px rgba(36,44,40,.06), 0 12px 32px rgba(36,44,40,.10); }
/* одна строка словами вместо KPI-плиток (дизайн-код: «Мини-апп: … без KPI») */
.sumline { margin: 12px 2px 8px; font-size: 15px; color: var(--ink-2); }
.sumline b { color: var(--ink); font-weight: 600; }
.sumline .late { color: var(--warn); font-weight: 600; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif; overscroll-behavior: none; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }
a { color: var(--link); text-decoration: none; }
[hidden] { display: none !important; }
.mut { color: var(--mut); }
small { font-size: 13px; }
h1 { font-size: 28px; margin: 6px 0 2px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 20px var(--side) 6px; color: var(--sec); text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
p { margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#app { display: flex; flex-direction: column; min-height: 100%; }
#hdr { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: var(--hdr); padding: calc(var(--sat) + 6px) var(--side) 6px; background: color-mix(in srgb, var(--hdr-bg) 88%, transparent); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
#hdr .brand { font-size: 17px; font-weight: 600; }
#hdr .sub { flex: 1; font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); font-size: 26px; line-height: 44px; text-align: center; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fab:active { transform: scale(.94); opacity: .85; }
#view { flex: 1; padding: 4px var(--side) calc(var(--tabs) + var(--sab) + 20px); }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; min-height: var(--tabs); background: color-mix(in srgb, var(--bar-bg) 90%, transparent); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-top: 1px solid var(--line); padding-bottom: var(--sab); z-index: 6; }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 0 4px; font-size: 10px; font-weight: 500; color: var(--mut); position: relative; min-height: 49px; }
#tabs a span { font-size: 22px; line-height: 1; }
#tabs a svg.ico { width: 24px; height: 24px; display: block; }        /* 2.48: те же глифы, что в настольной панели; цвет — из темы Telegram */
#hdr .brand svg.ico { width: 22px; height: 22px; vertical-align: -5px; color: var(--acc-text); }
#tabs a.active { color: var(--acc-text); }
#tabs a:active { opacity: .6; }
/* 2.62 (M3, дизайн-код §3): красное — только у сбоя. Бейджи на вкладках — цвет кнопки темы (--acc),
   не destructive. Muted — серая точка. */
#tabs .pill { position: absolute; top: 3px; right: calc(50% - 24px); background: var(--acc); color: var(--acc-ink); border-radius: 999px; font-size: 11px; line-height: 16px; min-width: 16px; padding: 0 5px; font-weight: 600; text-align: center; }
#tabs .pill.muted { background: var(--mut); }
#tabs .pill.bad { background: var(--bad); color: #fff; }

.card { background: var(--panel); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.empty { color: var(--mut); text-align: center; padding: 18px; background: var(--panel); border-radius: 10px; font-size: 15px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; background: var(--panel); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: background .08s ease; }
.row:active { background: color-mix(in srgb, var(--panel) 70%, var(--line)); }
.row + .row { margin-top: -8px; border-radius: 0; position: relative; }
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; border-top: 1px solid var(--line); }
.row + .row:last-child, .row:last-child { border-radius: 0 0 10px 10px; }
.row:first-child { border-radius: 10px 10px 0 0; }
.row:only-child { border-radius: 10px; }
.row .t { flex: 1; min-width: 0; }
/* 2.62 (M1): название задачи на всю ширину, до двух строк. Ниже — исполнитель, срок, признаки текстом.
   Строка задачи (.row.two) получает 100% ширины .t за счёт того, что справа ничего не растягивается. */
.row .t b { display: block; font-weight: 500; font-size: 17px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.two .t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .t small { display: block; color: var(--mut); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.two .t small .due { padding: 0; background: transparent; font-weight: 500; }
/* 2.62 (M3, дизайн-код §3): срок — текстом (без пилюли-фона), просрочка — янтарь (--warn), не красный;
   красный (--bad) остаётся только у ошибок сервера и «Сбор с потерями». */
.due { font-size: 12px; padding: 0; border-radius: 0; white-space: nowrap; background: transparent; color: var(--mut); font-weight: 500; }
.due.overdue { color: var(--warn); font-weight: 600; }
.due.today { color: var(--ink); font-weight: 600; }
.due.tomorrow, .due.week { color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* 2.62 (M2): фраза дня, строка остатка, строки-счётчики «На контроле» */
.day-phrase { font: 300 20px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif; margin: 4px 0 8px; letter-spacing: -.01em; }
.day-phrase .sig { color: var(--warn); font-weight: 500; }
.rest { font-size: 13px; margin: 6px 2px 4px; line-height: 1.4; }
.rest a { color: var(--acc-text); border-bottom: 1px dotted currentColor; }
.row.ctl .k { font-size: 22px; font-weight: 600; letter-spacing: -.02em; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.row .ico-lg { display: inline-flex; align-items: center; justify-content: center; width: 28px; color: var(--acc-text); }
.row .ico-lg svg { width: 22px; height: 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.kpi { background: var(--panel); border-radius: 10px; padding: 10px 4px; text-align: center; }
.kpi b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { font-size: 11px; color: var(--mut); }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn); } .kpi.info b { color: var(--info); } .kpi.ok b { color: var(--ok); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--panel); border-radius: 999px; min-height: 32px; padding: 6px 14px; font-size: 15px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; }
.chip:active { opacity: .7; }
.chip.on { background: var(--acc); color: var(--acc-ink); font-weight: 500; }
.chip .cnt { opacity: .75; margin-left: 4px; }
.btn { border: 0; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc-text); border-radius: 12px; min-height: 44px; padding: 10px 16px; font-weight: 600; font-size: 17px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .1s ease, transform .1s ease; }
.btn:active { opacity: .7; transform: scale(.985); }
.btn.primary { background: var(--acc); color: var(--acc-ink); }
.btn.danger { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 15px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acts .btn { flex: none; }
.btn-row .btn { flex: 1; text-align: center; }
.warnbox { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.badbox { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.okbox { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.ritual { border: 0; background: color-mix(in srgb, var(--acc) 12%, var(--panel)); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.ritual .cand { min-height: 44px; }
.ritual .cand { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 8px; }
.ritual .cand .star { font-size: 18px; opacity: .3; }
.ritual .cand.on .star { opacity: 1; }
.ritual .cand .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cal .ev:last-child { border-bottom: 0; }
.cal .tm { color: var(--mut); font-variant-numeric: tabular-nums; }
textarea.inp, input.inp { width: 100%; border: 0; border-radius: 10px; background: var(--panel); padding: 11px 14px; outline: none; resize: vertical; min-height: 44px; font-size: 17px; -webkit-appearance: none; appearance: none; }
textarea.inp:focus, input.inp:focus { box-shadow: 0 0 0 2px var(--acc); }
.card .inp, .card textarea.inp, .card input.inp { background: color-mix(in srgb, var(--ink) 9%, var(--panel)); }   /* поле внутри секции того же цвета — иначе невидимо */
input.inp::placeholder, textarea.inp::placeholder { color: var(--mut); opacity: .8; }
.hint { font-size: 12.5px; color: var(--mut); margin-top: 6px; min-height: 16px; }
.hint b { color: var(--acc); }

/* лист (bottom sheet) */
#sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; }
.sheet-card { width: 100%; max-height: 92vh; background: var(--bg); border-radius: 16px 16px 0 0; padding: 6px var(--side) calc(var(--sab) + 16px); overflow: auto; animation: up .22s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(60px); } }
.grip { width: 36px; height: 5px; border-radius: 2.5px; background: color-mix(in srgb, var(--ink) 30%, transparent); margin: 4px auto 14px; }
.sheet-card h2 { font-size: 22px; margin: 0 0 8px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.sheet-card h3 { margin-left: 0; margin-right: 0; }
.f { margin-bottom: 12px; }
.f label { display: block; font-size: 13px; color: var(--sec); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px 2px; font-weight: 500; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 2.62 (M7): на узких телефонах (< 420) блок «Напомнить/Календарь» в одну колонку, чтобы кнопка «В календарь» не уезжала за край */
@media (max-width: 419px) { .f2.f-cal { grid-template-columns: 1fr; } }
/* чек-лист и вложения в карточке задачи (2.1): строки 44 pt, крестик — отдельная цель касания */
.msteps { display: flex; flex-direction: column; margin-bottom: 6px; }
.f .mstep { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.mstep:last-child { border-bottom: 0; }
.mstep input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--acc); flex: none; margin: 0; }
.mstep span { flex: 1; }
.mstep span.done { text-decoration: line-through; color: var(--mut); }
.xdel { flex: none; border: 0; background: transparent; color: var(--mut); font-size: 15px; min-width: 44px; min-height: 44px; }
.tlink { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.tlink a { flex: 1; color: var(--acc); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aclist { background: var(--panel); border-radius: 10px; margin-top: 6px; overflow: hidden; }
.aclist div { padding: 10px 14px; min-height: 44px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.aclist div:last-child { border-bottom: 0; }
.aclist div b { display: block; font-size: 15px; font-weight: 500; }
.aclist div small { color: var(--mut); font-size: 12px; }
.statuses { display: flex; gap: 6px; flex-wrap: wrap; }
/* 2.85 «Телефон до уровня стола»: срок и просрочка в «Команде» — второй строкой без nowrap; чипы в листе
   переносятся, а не уезжают за край; «Ещё…» в карточке задачи скрывает второстепенное. */
.row.two .t small.wrap { white-space: normal; }
.sheet-card .chips { flex-wrap: wrap; overflow-x: visible; }
.chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#ts-more[hidden] { display: none; }
.statuses .chip.on.open, .statuses .chip.on.unassigned { background: var(--c-planned); border-color: var(--c-planned); color: #fff; }
.statuses .chip.on.in_progress, .statuses .chip.on.sent { background: var(--c-working); border-color: var(--c-working); color: #fff; }
.statuses .chip.on.waiting { background: var(--c-waiting); border-color: var(--c-waiting); color: #fff; }
.statuses .chip.on.done { background: var(--c-done); border-color: var(--c-done); color: #fff; }
.statuses .chip.on.cancelled { background: var(--mut); border-color: var(--mut); color: #fff; }
.note { background: var(--panel); border-radius: 10px; padding: 8px 11px; font-size: 13.5px; margin-bottom: 6px; }
.note small { display: block; color: var(--mut); font-size: 11.5px; }
.bar { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); }
input[type=range] { width: 100%; }
.mstep { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: 17px; }
.mstep input { margin-top: 2px; width: 22px; height: 22px; flex: none; }
.mtxt { color: var(--ink-2); font-size: 16px; white-space: pre-wrap; background: var(--panel); border-radius: 10px; padding: 12px 14px; margin: 6px 0; }

/* чат */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.msg { display: flex; flex-direction: column; }
.msg.q { align-items: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; max-width: 92%; }
.msg.q .bubble { background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.a .bubble { background: var(--panel); border-bottom-left-radius: 4px; max-width: 100%; }
.msg small { font-size: 11px; color: var(--mut); margin-top: 3px; }
.msg .srcs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md h3, .md h4, .md h5 { margin: 8px 0 4px; text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ink); }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; }
.md code { font: 13px ui-monospace, Menlo, monospace; background: var(--line); border-radius: 4px; padding: 0 4px; }
.md pre { white-space: pre-wrap; background: var(--line); border-radius: 8px; padding: 8px 10px; font: 12.5px/1.45 ui-monospace, Menlo, monospace; }
.md blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--mut); }
.md a.wl { color: var(--link); border-bottom: 1px dotted var(--link); }
.md .tbl-wrap { overflow-x: auto; } .md table { border-collapse: collapse; font-size: 13px; } .md th, .md td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: top; }
/* 2.62 (M6): поле «Спросить» на всю ширину, кнопки — рядом снизу. Одна главная — «Отправить». */
.ask-box { position: sticky; bottom: calc(var(--tabs) + var(--sab) + 6px); display: flex; flex-direction: column; gap: 8px; background: var(--bg); padding-top: 6px; }
.ask-box textarea { width: 100%; min-height: 88px; max-height: 200px; }
.ask-box .ask-row { display: flex; gap: 8px; }
.ask-box .ask-row .btn { flex: 1; min-height: 44px; padding: 0 12px; }
.ask-box .ask-row .btn.primary { flex: 2; }
.rec-live { display: inline-flex; align-items: center; gap: 7px; color: var(--bad); font-weight: 600; }
.rec-live .dot { background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ещё */
.list-plain .row { cursor: pointer; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 15px; }
.kv b { color: var(--mut); font-weight: 500; }
#toast { position: fixed; bottom: calc(var(--tabs) + var(--sab) + 14px); left: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--ink) 90%, transparent); color: var(--bg); padding: 10px 18px; border-radius: 14px; z-index: 30; font-weight: 500; max-width: 86vw; font-size: 15px; backdrop-filter: blur(10px); }
#toast.bad { background: var(--bad); color: #fff; }
.board-cols { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
.board-cols::-webkit-scrollbar { display: none; }
.bcol { flex: 0 0 88%; scroll-snap-align: start; background: color-mix(in srgb, var(--panel) 50%, transparent); border-radius: 12px; padding: 10px; min-height: 40vh; }
.bcol .row { border-radius: 10px !important; margin: 0 0 8px !important; }
.bcol .row::before { display: none; }
.bcol .head { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 2px 4px 8px; font-size: 14px; }
.bcol .head .cnt { color: var(--mut); font-weight: 500; }
.bcol .row { margin-bottom: 6px; }

/* 2.90 (B-9): поле срока — своя строка с листом дат */
.datepick { position: relative; }
.datepick .dp-btn { width: 100%; min-height: 40px; padding: 8px 12px; text-align: left; border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.datepick .dp-btn.mut { color: var(--mut); }
.datepick .dp-btn:focus { outline: none; border-color: var(--acc); }
.datepick .dp-list { position: relative; margin-top: 6px; max-height: 320px; overflow: auto; background: var(--panel); border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 10px; padding: 4px; }
.datepick .dp-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.datepick .dp-opt small { color: var(--mut); }
.datepick .dp-opt.on { background: var(--acc); color: var(--acc-ink); }
.datepick .dp-opt.on small { color: var(--acc-ink); opacity: .8; }
.datepick .dp-none { color: var(--mut); border-top: 1px solid var(--line); margin-top: 4px; }
.datepick .dp-other { color: var(--mut); }
.datepick .dp-other input { width: 0; height: 0; opacity: 0; position: absolute; }
/* 3.7 (D-0201, Ж-4): длинное слово без пробелов в названии (номер счёта, ссылка) растягивало «Входящие» до 398 px при 390 */
.card.ibm, .card.ibm b, .row .t b { overflow-wrap: anywhere; }
