/* MOMMY ERP — новый дизайн (07.10.2026): светящийся фон, стеклянные карточки, плавающая капсула меню на телефоне,
   подвижные подложки активного пункта, логотипы каналов. Только оформление: разметка и логика разделов не меняются.
   Все правила — под html.ui-new (ставит design-system/boot.js); без класса ERP выглядит как раньше. */

/* ---------- токены: светлая тема (по умолчанию) ---------- */
html.ui-new {
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --fill: rgba(118, 118, 128, .10);
  --fill-strong: rgba(118, 118, 128, .18);
  --text: #1C1C1E;
  --muted: #6E6E73;
  --sep: rgba(60, 60, 67, .12);
  --ink: #1C1C1E;
  --ink-contrast: #FFFFFF;
  --glass: rgba(250, 250, 252, .72);
  --glass-surface: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 20px rgba(0, 0, 0, .045);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
  --radius: 18px;
  /* свои */
  --ds-html: #F2F3F5;
  --ds-base: linear-gradient(180deg, #FAFAFB 0%, #F2F3F5 100%);
  --ds-spot-1: rgba(160, 195, 250, .16);
  --ds-spot-2: rgba(255, 215, 195, .15);
  --ds-spot-3: rgba(200, 230, 220, .12);
  --ds-card: rgba(255, 255, 255, .74);
  --ds-edge: rgba(255, 255, 255, .75);
  --ds-hair: rgba(0, 0, 0, .05);
  --ds-nested: rgba(118, 118, 128, .07);
  --ds-chrome: rgba(250, 250, 252, .74);
  --ds-pill: rgba(0, 0, 0, .06);
  --ds-pill-drag: rgba(0, 0, 0, .11);
  --ds-sheen: rgba(255, 255, 255, .5);
  --ds-brand: #B05A82;
  --ds-orders: #007AFF;
  --ds-money: #34C759;
  --ds-mkt: #FF2D55;
  --ds-care: #FF9500;
  --ds-ease: cubic-bezier(.32, .72, 0, 1);
  --ds-spring: cubic-bezier(.3, 1.5, .45, 1);
}
/* тёмная — «как в системе» при тёмной системе и явный выбор «Тёмная» (специфичность выше старых тёмных правил) */
@media (prefers-color-scheme: dark) {
  html.ui-new:not([data-theme="light"]) {
    --bg: #0A0A0C; --surface: #1C1C1E; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
    --text: #F5F5F7; --muted: #98989D; --sep: rgba(84, 84, 88, .5); --ink: #F5F5F7; --ink-contrast: #000000;
    --glass: rgba(20, 20, 22, .72); --glass-surface: rgba(28, 28, 30, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-pop: 0 12px 32px rgba(0, 0, 0, .6);
    --ds-html: #0A0A0C; --ds-base: linear-gradient(180deg, #0A0A0C 0%, #121218 100%);
    --ds-spot-1: rgba(80, 140, 255, .12); --ds-spot-2: rgba(255, 150, 110, .06); --ds-spot-3: rgba(90, 190, 170, .06);
    --ds-card: rgba(28, 28, 30, .66); --ds-edge: rgba(255, 255, 255, .07); --ds-hair: rgba(0, 0, 0, .4); --ds-nested: rgba(255, 255, 255, .05);
    --ds-chrome: rgba(28, 28, 30, .74); --ds-pill: rgba(255, 255, 255, .10); --ds-pill-drag: rgba(255, 255, 255, .16); --ds-sheen: rgba(255, 255, 255, .05);
    --ds-brand: #F0A6C6; --ds-orders: #0A84FF; --ds-money: #30D158; --ds-mkt: #FF375F; --ds-care: #FF9F0A;
  }
}
html.ui-new[data-theme="dark"] {
  --bg: #0A0A0C; --surface: #1C1C1E; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
  --text: #F5F5F7; --muted: #98989D; --sep: rgba(84, 84, 88, .5); --ink: #F5F5F7; --ink-contrast: #000000;
  --glass: rgba(20, 20, 22, .72); --glass-surface: rgba(28, 28, 30, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-pop: 0 12px 32px rgba(0, 0, 0, .6);
  --ds-html: #0A0A0C; --ds-base: linear-gradient(180deg, #0A0A0C 0%, #121218 100%);
  --ds-spot-1: rgba(80, 140, 255, .12); --ds-spot-2: rgba(255, 150, 110, .06); --ds-spot-3: rgba(90, 190, 170, .06);
  --ds-card: rgba(28, 28, 30, .66); --ds-edge: rgba(255, 255, 255, .07); --ds-hair: rgba(0, 0, 0, .4); --ds-nested: rgba(255, 255, 255, .05);
  --ds-chrome: rgba(28, 28, 30, .74); --ds-pill: rgba(255, 255, 255, .10); --ds-pill-drag: rgba(255, 255, 255, .16); --ds-sheen: rgba(255, 255, 255, .05);
  --ds-brand: #F0A6C6; --ds-orders: #0A84FF; --ds-money: #30D158; --ds-mkt: #FF375F; --ds-care: #FF9F0A;
}

/* ---------- фон: тихий градиент, не прокручивается (через ::before — background-attachment: fixed в iOS не работает) ---------- */
html.ui-new { background: var(--ds-html); }
html.ui-new body { background: transparent; }
html.ui-new body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 85% -10%, var(--ds-spot-1), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, var(--ds-spot-2), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, var(--ds-spot-3), transparent 55%),
    var(--ds-base);
}

/* ---------- стекло: крупные блоки. Рамка — тенью, чтобы размеры не менялись ни на пиксель ---------- */
html.ui-new :is(.card, .sp-main, .sp-side:not(.on), .login-card) {
  background: var(--ds-card);
  box-shadow: inset 0 0 0 1px var(--ds-edge), 0 0 0 .5px var(--ds-hair), var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
/* внутри стекла — без второго размытия */
html.ui-new :is(.card, .sheet, .sp-main) .card { background: var(--ds-nested); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* плотные рабочие таблицы — на непрозрачном, цифры не «плывут» на градиенте */
html.ui-new .card:has(table thead):not(:has(.hm-tbl)) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* много карточек на экране (длинные списки) — без размытия, чтобы не тормозило */
html.ui-new #view.ds-many .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.ui-new :is(.card, .sp-main, .sp-side:not(.on), .login-card) { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  html.ui-new :is(.card, .sp-main, .sp-side:not(.on), .login-card, .sidebar, .tabbar, .mhead) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
html.ui-new .sp-tile:not(.on) { background: var(--ds-nested); }
html.ui-new .hm-nums > div, html.ui-new .hm-tile:not(.bad) { background: var(--ds-nested); }
html.ui-new .hm-tile:hover { background: var(--fill); }

/* блик на стекле под курсором (только компьютер с мышью) */
@media (hover: hover) and (pointer: fine) {
  html.ui-new .card.ds-sheen { position: relative; isolation: isolate; }
  html.ui-new .card.ds-sheen::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--ds-sheen), transparent 65%); }
  html.ui-new .card.ds-sheen:hover::after { opacity: 1; }
}

/* ---------- типографика: крупные цифры одной ширины ---------- */
html.ui-new :is(.kpi .value, .hm-nums .value, .hm-tile .num, .sp-val, .ch-value, .ty-kpi b) { font-variant-numeric: tabular-nums; letter-spacing: -.025em; }

/* ---------- боковое меню: стекло и подложка активного пункта, которая переезжает ---------- */
html.ui-new .sidebar { background: var(--ds-chrome); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); }
html.ui-new .nav-link { z-index: 1; transition: color .2s, background .2s; }
html.ui-new .nav-link.active { background: transparent; color: var(--text); font-weight: 600; }
html.ui-new .nav-link.active svg { color: var(--ds-acc, var(--text)); stroke-width: 2.1; }
html.ui-new .sidebar:has(.ds-side-pill) .nav-link.active:hover { background: transparent; }
.ds-side-pill { position: absolute; left: 12px; right: 12px; top: 0; height: 0; border-radius: 10px; background: var(--ds-pill); pointer-events: none; z-index: 0; will-change: transform, height; }
html.ui-new .sb-auto .ds-side-pill { left: 8px; right: 8px; }
/* акцент раздела: Главная — фирменный, Продажи — синий, Финансы — зелёный, Маркетинг — розовый, Забота — оранжевый */
html.ui-new [data-route="home"] { --ds-acc: var(--ds-brand); }
html.ui-new [data-route="sales"] { --ds-acc: var(--ds-orders); }
html.ui-new [data-route="finance"] { --ds-acc: var(--ds-money); }
html.ui-new [data-route="marketing"] { --ds-acc: var(--ds-mkt); }
html.ui-new :is([data-route="care"], [data-crsub]) { --ds-acc: var(--ds-care); }

/* ---------- переключатели: белая «таблетка» переезжает к выбранному ---------- */
html.ui-new .seg.ds-seg { position: relative; }
html.ui-new .seg.ds-seg > :not(.ds-thumb) { position: relative; z-index: 1; }
html.ui-new .seg.ds-seg > .on { background: transparent; box-shadow: none; }
.ds-thumb { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 8px; background: var(--surface); pointer-events: none; z-index: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); will-change: transform, width, height; }

/* ---------- нажатие: слегка проседает и пружинит обратно ---------- */
html.ui-new :is(.hm-tile, .hm-task, .hm-chip, .chip, .sp-tile, .sp-side, .ch-card, .more-item, .mk-nav-item, .ty-row, .cr-subnav-item, .btn) {
  transition: transform .4s var(--ds-spring), background .2s, color .2s, box-shadow .2s, opacity .2s;
}
html.ui-new :is(.hm-tile, .hm-task, .hm-chip, .chip, .sp-tile, .sp-side, .ch-card, .more-item, .mk-nav-item, .ty-row, .cr-subnav-item, .btn):active:not(:disabled) {
  transform: scale(.97); transition-duration: .12s;
}

/* ---------- логотипы каналов вместо цветных точек и рядом с подписями ---------- */
html.ui-new .dot:is(.dot-wb, .dot-ozon, .dot-site, .dot-ga) { width: 18px; height: 18px; border-radius: 5px; background-color: #fff; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 0 0 .5px var(--sep); }
html.ui-new .dot.dot-wb { background-image: url("/design-system/logos/wb.png"); }
html.ui-new .dot.dot-ozon { background-image: url("/design-system/logos/ozon.svg"); }
html.ui-new .dot.dot-ga { background-image: url("/design-system/logos/ga.png"); }
html.ui-new .dot.dot-site { background-image: url("/icons/icon-192.png"); }
html.ui-new .chip.on .dot:is(.dot-wb, .dot-ozon, .dot-site, .dot-ga) { box-shadow: 0 0 0 1.5px var(--ink-contrast); }
html.ui-new .sp-crumb .dot:is(.dot-wb, .dot-ozon, .dot-site, .dot-ga) { width: 22px; height: 22px; border-radius: 6px; }
html.ui-new .mp:is(.mp-wb, .mp-ozon, .mp-site, .mp-ga) { display: inline-flex; align-items: center; gap: 5px; padding-left: 3px; }
html.ui-new .mp:is(.mp-wb, .mp-ozon, .mp-site, .mp-ga)::before { content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none; background-color: #fff; background-position: center; background-size: cover; background-repeat: no-repeat; }
html.ui-new .mp-wb::before { background-image: url("/design-system/logos/wb.png"); }
html.ui-new .mp-ozon::before { background-image: url("/design-system/logos/ozon.svg"); }
html.ui-new .mp-ga::before { background-image: url("/design-system/logos/ga.png"); }
html.ui-new .mp-site::before { background-image: url("/icons/icon-192.png"); }

/* ---------- графики: столбики вырастают один раз при появлении, подсказка — белая карточка ---------- */
html.ui-new .chart svg.ds-grow .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: ds-grow .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 12ms); }
@keyframes ds-grow { from { transform: scaleY(0); } }
html.ui-new .tooltip { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 12px; }

/* ---------- Главная: спокойная шапка, кольцо плана, «Ещё на мне» ---------- */
html.ui-new .hm-hero.ds-greet { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px 2px 0; gap: 14px; flex-wrap: nowrap; }
html.ui-new .hm-hero .hm-photo { width: 72px; height: 72px; }
html.ui-new .hm-hero .hm-initials { font-size: 24px; }
html.ui-new .hm-hello { min-width: 0; }
html.ui-new .hm-hello h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 2px; }
/* Главная без заголовка «Главная»: сверху сразу приветствие, край ровно по карточкам */
html.ui-new body[data-route="home"] #page-title { display: none; }
html.ui-new body[data-route="home"] .topbar:has(#page-actions:empty) { display: none; }
html.ui-new .hm-hero.ds-greet { padding: 0; }
@media (max-width: 860px) { html.ui-new .hm-hero.ds-greet { padding-top: 8px; } }
/* шапка телефона на Главной: вместо чёрного логотипа — переливающийся (тот, что был над приветствием) */
html.ui-new .ds-mlogo { display: none; }
@media (max-width: 860px) {
  html.ui-new body[data-route="home"] .mhead > a > svg { display: none; }
  html.ui-new body[data-route="home"] .mhead .ds-mlogo { display: block; height: 32px; width: auto; aspect-ratio: 667.86 / 349.56; }
  html.ui-new body[data-route="home"] .hm-hero.ds-greet .hm-brand { display: none; }
}
/* переливающийся логотип MOMMY — как раньше: справа на компьютере, по центру над приветствием на телефоне */
html.ui-new .hm-hero.ds-greet .hm-brand { margin-left: auto; width: 128px; flex: none; }
@media (max-width: 600px) {
  html.ui-new .hm-hero.ds-greet { flex-wrap: wrap; row-gap: 10px; }
  html.ui-new .hm-hero.ds-greet .hm-brand { order: -1; flex: 0 0 100%; width: 100%; height: 50px; aspect-ratio: auto; margin: 0;
    -webkit-mask-size: contain; mask-size: contain; }
}
html.ui-new .ds-also { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); }
html.ui-new .ds-also > span { font-size: 13px; color: var(--muted); margin-right: 2px; }
html.ui-new .ds-also .hm-chip { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
html.ui-new .ds-also .hm-chip b { font-size: 14px; }
html.ui-new .ds-ringbox { display: flex; align-items: center; gap: 16px; }
html.ui-new .ds-ring { position: relative; display: grid; place-items: center; flex: none; }
html.ui-new .ds-ring svg { display: block; }
html.ui-new .ds-ring circle { fill: none; stroke-linecap: round; }
html.ui-new .ds-ring .val { transition: stroke-dashoffset .8s ease-out; }
html.ui-new .ds-ring b { position: absolute; font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.ui-new .ds-ringbox .hm-plan-top { flex: 1; min-width: 0; display: grid; gap: 2px; }
html.ui-new .hm-plan.ds-has-ring .hm-bar { display: none; }
html.ui-new .ds-cu { display: inline-block; }

/* ---------- Мессенджер закреплён, как в Telegram: страница не прокручивается и не «пружинит», листается только список и переписка ---------- */
html.ui-new:has(body[data-route="chat"]), html.ui-new body[data-route="chat"] { overflow: hidden; overscroll-behavior: none; }
html.ui-new body[data-route="chat"] :is(.ms-list, .ms-feed) { overscroll-behavior: contain; }
/* компьютер: страница под мессенджером не прокручивается вообще — даже когда браузер сам «докручивает» к сообщению или полю ввода */
@media (min-width: 861px) {
  html.ui-new:has(body[data-route="chat"]), html.ui-new body[data-route="chat"] { overflow: clip; height: 100%; }
  /* список чатов и переписка не «болтаются» под тачпадом: без сдвига вбок и без резинки на краях */
  html.ui-new body[data-route="chat"] :is(.ms-side, .ms-pane) { overflow: hidden; }
  html.ui-new body[data-route="chat"] :is(.ms-list, .ms-feed) { overflow-x: hidden; overscroll-behavior: none; }
}
@media (max-width: 860px) {
  /* iPhone: тело страницы на экране чатов прибито к экрану — Safari не может «потянуть» его резинкой */
  html.ui-new body[data-route="chat"] { position: fixed; inset: 0; width: 100%; }
  html.ui-new body[data-route="chat"] .ms:not(.has-open) { position: fixed; left: 16px; right: 16px; top: var(--ds-ms-top, calc(105px + env(safe-area-inset-top)));
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 4px); height: auto; min-height: 0; z-index: 1; }
  /* список чатов листается только вверх-вниз: вбок экран не сдвигается */
  html.ui-new:has(body[data-route="chat"]), html.ui-new body[data-route="chat"] { overflow-x: hidden; overscroll-behavior-x: none; }
  html.ui-new body[data-route="chat"] .ms:not(.has-open) { overflow: hidden; touch-action: pan-y; }
  html.ui-new body[data-route="chat"] .ms:not(.has-open) .ms-list { overflow-x: hidden; touch-action: pan-y; }
}

/* ---------- окна: на телефоне — «ручка» сверху, смахивание вниз, приложение под окном отъезжает «стопкой» ---------- */
@keyframes ds-up { from { transform: translateY(100%); } }
.ds-grab { display: none; }
@media (max-width: 860px) {
  html.ui-new .sheet, html.ui-new .sheet.wide { border-radius: 26px 26px 0 0; animation: ds-up .5s cubic-bezier(.2, 1.02, .3, 1); }
  html.ui-new .ds-grab { display: block; position: absolute; top: 0; left: 25%; right: 25%; height: 24px; z-index: 3; touch-action: none; cursor: grab; }
  html.ui-new .ds-grab::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-strong); }
  html.ui-new main { transition: transform .45s var(--ds-ease), border-radius .45s var(--ds-ease), filter .45s; }
  html.ui-new body.sheet-open:not([data-route="chat"]):not(:has(.ib.cr.has-chat)) main { transform: scale(.94); transform-origin: 50% var(--ds-origin, 50vh); border-radius: 20px; filter: brightness(.94); }
}

/* ---------- телефон: шапка и плавающая капсула меню ---------- */
@media (max-width: 860px) {
  html.ui-new { --tabbar-h: 78px; }
  html.ui-new .mhead { background: var(--ds-chrome); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); }
  html.ui-new .mhead { position: sticky; }
  html.ui-new .mhead > a { transition: opacity .25s, transform .25s; }
  html.ui-new .ds-mtitle { position: absolute; left: 60px; right: 60px; bottom: 0; height: 48px; display: grid; place-items: center; font-size: 17px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
  html.ui-new .mhead.ds-titled > a { opacity: 0; transform: translateY(-6px); }
  html.ui-new .mhead.ds-titled .ds-mtitle { opacity: 1; transform: none; }

  html.ui-new .tabbar {
    left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 64px; padding: 6px; border-top: 0; border-radius: 32px;
    background: var(--ds-chrome); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
    box-shadow: inset 0 0 0 1px var(--ds-edge), 0 0 0 .5px var(--ds-hair), 0 12px 32px rgba(0, 0, 0, .12);
    touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .25s ease, opacity .2s ease;
  }
  html.ui-new .tab { z-index: 1; border-radius: 26px; font-size: 10.5px; font-weight: 600; color: var(--muted); transition: color .2s; -webkit-touch-callout: none; }
  html.ui-new .tab.active { color: var(--ds-acc, var(--text)); }
  html.ui-new .tab.active svg { animation: ds-pop .22s ease-out; }
  html.ui-new .tab .nav-badge { top: 1px; box-shadow: 0 0 0 2px var(--surface); }
  html.ui-new .tabbar.ds-drag .tab.active:not(.ds-hover) { color: var(--muted); }
  html.ui-new .tabbar.ds-drag .tab.ds-hover { color: var(--ds-acc, var(--text)); }
  html.ui-new .tabbar.ds-drag .ds-tab-pill { background: var(--ds-pill-drag); }
  /* клавиатура открыта — капсула уезжает вниз, а не пропадает рывком */
  html.ui-new body.kb-open .tabbar { display: grid; transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
}
.ds-tab-pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 26px; background: var(--ds-pill); pointer-events: none; z-index: 0; will-change: transform, width; transition: background .2s; }
@keyframes ds-pop { 50% { transform: scale(1.08); } }

html.ui-new textarea { font: inherit; }  /* описание и комментарии — тем же шрифтом, а не моноширинным */
/* ================= Задачи (07.10.2026): крупно, коробками, окошки-галочки ================= */
html.ui-new .tk-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
html.ui-new .tk-count.tk-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 18px; background: var(--ds-card); color: var(--text); box-shadow: inset 0 0 0 1px var(--ds-edge), 0 0 0 .5px var(--ds-hair), var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
html.ui-new .tk-tile .ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tc); }
html.ui-new .tk-tile .ic svg { width: 19px; height: 19px; }
html.ui-new .tk-tile b { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.ui-new .tk-tile .l { font-size: 14px; color: var(--muted); line-height: 1.25; }
html.ui-new .tk-tile.tk-bad { --tc: #FF3B30; } html.ui-new .tk-tile.tk-new { --tc: var(--ds-orders); } html.ui-new .tk-tile.tk-warn { --tc: var(--ds-care); } html.ui-new .tk-tile.tk-msg { --tc: var(--ds-money); }
html.ui-new .tk-tile.zero .ic { opacity: .45; }  /* ноль — тот же цвет, только бледнее: плитки выглядят одинаково */
html.ui-new .tk-tile.zero b { color: var(--muted); }
html.ui-new .task-bar .search { min-height: 40px; }
html.ui-new .tk-fbtn { display: none; }
html.ui-new .tk-fbtn .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--ink-contrast); display: grid; place-items: center; flex: none; }
html.ui-new .tk-fbtn .fi svg { width: 18px; height: 18px; }
html.ui-new .tk-fbtn .fx { display: grid; min-width: 0; }
html.ui-new .tk-fbtn .fx small { font-size: 13px; color: var(--muted); }
html.ui-new .tk-fbtn .fx b { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-new .tk-fbtn .chev { margin-left: auto; color: var(--muted); }
html.ui-new .tk-fbtn .chev svg { width: 18px; height: 18px; }
/* окно фильтра */
html.ui-new .tk-fsheet { display: grid; gap: 8px; }
html.ui-new .tk-fcap { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
html.ui-new .tk-fgrp2 { border-radius: 14px; background: var(--bg); overflow: hidden; }
html.ui-new .tk-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; width: 100%; min-height: 54px; padding: 0 14px; border: 0;
  background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
html.ui-new .tk-opt + .tk-opt { border-top: .5px solid var(--sep); }
html.ui-new .tk-opt:active { background: var(--fill); }
html.ui-new .tk-opt .oi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); }
html.ui-new .tk-opt .oi svg { width: 18px; height: 18px; }
html.ui-new .tk-opt b { font-size: 16px; font-weight: 500; }
html.ui-new .tk-opt small { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
html.ui-new .tk-opt .ok { color: var(--ds-orders); opacity: 0; transition: opacity .15s; }
html.ui-new .tk-opt .ok svg { width: 20px; height: 20px; }
html.ui-new .tk-opt.on b { font-weight: 700; }
html.ui-new .tk-opt.on .ok { opacity: 1; }
html.ui-new .tk-opt.on .oi { background: var(--ink); color: var(--ink-contrast); }
html.ui-new .tk-fdone { width: 100%; min-height: 50px; margin-top: 6px; font-size: 16px; }

html.ui-new .tk-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
html.ui-new .tk-box { display: grid; gap: 12px; padding: 16px 16px 14px; border-radius: 20px; background: var(--surface); cursor: pointer; min-width: 0;
  box-shadow: 0 0 0 .5px var(--ds-hair), 0 2px 10px rgba(0, 0, 0, .05); transition: transform .4s var(--ds-spring), box-shadow .2s; }
html.ui-new .tk-box:hover { box-shadow: 0 0 0 .5px var(--ds-hair), 0 8px 24px rgba(0, 0, 0, .08); }
html.ui-new .tk-box:active { transform: scale(.985); transition-duration: .12s; }
html.ui-new .tk-box.late { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #FF3B30 45%, transparent), 0 2px 10px rgba(0, 0, 0, .05); }
html.ui-new .tk-box-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html.ui-new .tk-box-top .badge { font-size: 13.5px; padding: 4px 11px; border-radius: 9px; margin: 0; }
html.ui-new .tk-when { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
html.ui-new .tk-when svg { width: 16px; height: 16px; }
html.ui-new .tk-when .deadline.overdue { color: var(--neg); }
html.ui-new .tk-box-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
html.ui-new .tk-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
html.ui-new .tk-pbar { display: block; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
html.ui-new .tk-pbar i { display: block; height: 100%; border-radius: 4px; background: var(--ds-money); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
html.ui-new .tk-prog.full { color: var(--pos); }
html.ui-new .tk-open { display: grid; gap: 2px; }
html.ui-new .tk-ck { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; padding: 4px 2px; border: 0; background: none;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 10px; }
html.ui-new .tk-ck .tx { font-size: 15.5px; line-height: 1.35; transition: color .25s; overflow-wrap: anywhere; }
html.ui-new .tk-ck.done .tx { color: var(--muted); text-decoration: line-through; }
html.ui-new .tk-more { font-size: 14px; color: var(--muted); padding-left: 40px; }
html.ui-new .tk-foot { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
html.ui-new .tk-foot > span:not(.tk-who) { display: inline-flex; align-items: center; gap: 6px; }
html.ui-new .tk-foot svg { width: 17px; height: 17px; }
html.ui-new .tk-who { margin-left: auto; display: flex; align-items: center; gap: 6px; }
html.ui-new .tk-who .avatar.sm { width: 30px; height: 30px; font-size: 11px; }
/* квадратное окошко-галочка 28 px — в коробке и в карточке задачи */
html.ui-new .ckb { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--muted); display: grid; place-items: center; background: var(--surface);
  transition: background .2s, box-shadow .2s, transform .35s cubic-bezier(.3, 1.6, .4, 1); }
html.ui-new .ckb svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html.ui-new .ckb path { stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .3s .05s ease-out; }
html.ui-new .done > .ckb { background: var(--ds-money); box-shadow: none; transform: scale(1.06); }
html.ui-new .done > .ckb path { stroke-dashoffset: 0; }
html.ui-new .check-item { padding: 10px 4px; min-height: 52px; gap: 12px; }
html.ui-new .check-item > span { font-size: 16px; }
html.ui-new .check-item input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin: 0; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--muted);
  background: var(--surface) center / 16px 16px no-repeat; cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .35s cubic-bezier(.3, 1.6, .4, 1); }
html.ui-new .check-item input[type="checkbox"]:checked { background-color: var(--ds-money); box-shadow: none; transform: scale(1.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.8 11.6 12.6 4.8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html.ui-new .check-item input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
html.ui-new .ck-who { font-size: 13px; }
html.ui-new .ck-bar { height: 8px; border-radius: 4px; }
/* несколько чек-листов: окошко «выполнен целиком», название, процент, полоска, «Добавить пункт» */
html.ui-new .ckl-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
html.ui-new .ckl-head .sub-h { margin: 0; }
html.ui-new .ckl-head .muted { font-size: 15px; font-weight: 600; }
html.ui-new .ckl { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: var(--ds-nested); }
html.ui-new .ckl-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
html.ui-new .ckl-all { border: 0; padding: 0; background: none; cursor: pointer; display: grid; }
html.ui-new .ckl-all:disabled { cursor: default; opacity: .5; }
html.ui-new .ckl-name { border: 0; background: transparent; font: inherit; font-size: 17px !important; font-weight: 700; color: var(--text); padding: 6px 8px; margin-left: -8px;
  border-radius: 10px; min-width: 0; width: 100%; outline: none; }
html.ui-new .ckl-name:not([readonly]):hover, html.ui-new .ckl-name:focus { background: var(--fill); }
html.ui-new .ckl-pct { min-width: 60px; height: 34px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--pos); background: color-mix(in srgb, var(--ds-money) 14%, transparent); }
html.ui-new .ckl-pct.full { color: #fff; background: var(--ds-money); }
html.ui-new .ckl-bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
html.ui-new .ckl-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ds-money); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
html.ui-new .ckl .checklist { gap: 0; }
html.ui-new .ckl .check-item { border-top: .5px solid var(--sep); border-radius: 0; }
html.ui-new .ckl-add { margin-top: 2px; }
html.ui-new .ckl-add .input { min-height: 44px; background: var(--surface); }
html.ui-new .ckl-new { width: 100%; min-height: 48px; justify-content: center; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--sep);
  border: 0; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
html.ui-new .ckl-new:hover { background: var(--fill); }

/* роли «Делаю / Поручил / Помогаю / Наблюдаю / Все» — одним блоком-переключателем, белая таблетка переезжает */
html.ui-new .seg.tk-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; padding: 3px; border-radius: 14px; gap: 2px; }
html.ui-new .seg.tk-roles > button { min-height: 40px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; }
html.ui-new .seg.tk-roles > .ds-thumb { border-radius: 11px; }
html.ui-new .tk-roles .chip-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--fill-strong); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* канбан */
html.ui-new .board-col { background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-edge), 0 0 0 .5px var(--ds-hair); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: 20px; }
html.ui-new .board-col header .badge { font-size: 13.5px; padding: 4px 11px; border-radius: 9px; }
html.ui-new .board-card { gap: 8px; padding: 14px; border-radius: 16px; box-shadow: 0 0 0 .5px var(--ds-hair), 0 2px 8px rgba(0, 0, 0, .05); }
html.ui-new .board-card b { font-size: 15.5px; line-height: 1.3; }
html.ui-new .board-card .tk-pbar { height: 6px; }
html.ui-new .board-card .task-meta { font-size: 14px; }
html.ui-new .board-card-foot .avatar.sm { width: 28px; height: 28px; font-size: 11px; }
/* карточка задачи */
html.ui-new .task-title-view { font-size: 24px; letter-spacing: -.02em; }
html.ui-new .task-actions .btn { min-height: 40px; }
html.ui-new .task-side { background: var(--ds-nested); border-radius: 16px; }
html.ui-new .side-field > span:first-child { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
html.ui-new .comment > div { background: var(--ds-nested); border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-size: 15px; }
html.ui-new .task-head .badge { font-size: 13.5px; padding: 4px 11px; border-radius: 9px; }
@media (max-width: 860px) {
  /* четыре плитки — строго одинаковые: равные колонки и строки, подпись не больше двух строк */
  html.ui-new .tk-counters { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
  html.ui-new .tk-count.tk-tile { width: 100%; max-width: none; margin: 0; height: 100%; min-height: 84px; padding: 12px 14px; align-content: center; gap: 2px 12px; }
  html.ui-new .tk-tile .ic { width: 36px; height: 36px; }
  html.ui-new .tk-tile b { font-size: 24px; }
  html.ui-new .tk-tile .l { font-size: 13px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* под подпись всегда место на две строки — цифры и иконки во всех плитках на одной высоте */
  html.ui-new .tk-count.tk-tile { align-items: center; }
  html.ui-new .tk-tile b { align-self: end; }
  html.ui-new .tk-tile .l { align-self: start; }
  html.ui-new #view .task-bar .seg.tk-status { display: none; }
  /* фильтр задач — одной кнопкой «Фильтр · Делаю · Активные», выбор — в окне снизу */
  html.ui-new #view .seg.tk-roles { display: none; }
  html.ui-new .tk-fbtn { display: flex; align-items: center; gap: 12px; width: 100%; height: 58px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--surface);
    box-shadow: 0 0 0 .5px var(--ds-hair), var(--shadow); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
  html.ui-new .tk-fbtn:active { transform: scale(.98); }
  html.ui-new .tk-box-title { font-size: 16.5px; }
  /* карточка задачи: поля (срок, ответственный) — сразу под кнопками, а не после комментариев */
  html.ui-new .task-grid { grid-template-columns: minmax(0, 1fr); }
  html.ui-new .task-side:not(:has(select, input, textarea)) { order: -1; }  /* только просмотр; с полями для правки — после чек-листа, чтобы он не уезжал вниз */
}

/* ================= Продажи (07.10.2026) ================= */
/* каналы: «Все каналы» — большой плиткой, остальные — сеткой; выбранная — рамкой (а не чёрной заливкой) */
html.ui-new .sales-panel { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html.ui-new .sales-panel > .sp-main.sp-main { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; display: grid; gap: 10px; border-radius: 0; }  /* сильнее общего правила стекла */
html.ui-new .sp-head { margin: 0 2px; }
html.ui-new .sp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html.ui-new .sp-tile { grid-column: auto; min-height: 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 .5px var(--ds-hair), var(--shadow); gap: 6px; }
html.ui-new .sp-tile:first-child { grid-column: 1 / -1; padding: 16px 116px 16px 18px; min-height: 112px; }
html.ui-new .sp-tile:first-child .sp-val { font-size: 30px; }
html.ui-new .sp-tile .sp-name { font-size: 14px; color: var(--muted); }
html.ui-new .sp-tile .sp-val { font-size: 21px; letter-spacing: -.02em; margin-top: 0; }
html.ui-new .sp-tile .sp-sub { font-size: 13.5px; display: flex; align-items: center; gap: 8px; overflow: visible; }
html.ui-new .sp-tile .dot { width: 22px; height: 22px; border-radius: 6px; }
html.ui-new .sales-panel .sp-tile:not(.on) { background: var(--surface); }
html.ui-new .sp-tile.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text), var(--shadow); }
html.ui-new .sp-tile.on .sp-sub { color: var(--muted); opacity: 1; }
html.ui-new .sp-tile .pos, html.ui-new .sp-tile .neg, html.ui-new .kpi .sub .pos, html.ui-new .kpi .sub .neg { display: inline-flex; align-items: center; min-height: 22px; max-width: 100%; padding: 2px 7px; line-height: 1.3; overflow-wrap: anywhere; border-radius: 7px; font-size: 12.5px; font-weight: 700; }
html.ui-new .sp-tile .pos, html.ui-new .kpi .sub .pos { background: color-mix(in srgb, var(--ds-money) 15%, transparent); color: var(--pos); }
html.ui-new .sp-tile .neg, html.ui-new .kpi .sub .neg { background: color-mix(in srgb, #FF3B30 12%, transparent); color: var(--neg); }
html.ui-new .sp-tile.on .pos { color: var(--pos); } html.ui-new .sp-tile.on .neg { color: var(--neg); }
html.ui-new .sp-share { margin: 0; height: 10px; border-radius: 5px; gap: 3px; }
html.ui-new .sp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: -2px 2px 0; }
html.ui-new .sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
html.ui-new .sp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
html.ui-new .sp-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
html.ui-new .sp-side, html.ui-new .sp-side.on { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; flex-wrap: wrap; }
html.ui-new .sp-side.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text), var(--shadow); }
html.ui-new .sp-side svg { order: -1; width: 36px; height: 36px; padding: 8px; margin: 0; border-radius: 10px; background: color-mix(in srgb, #AF52DE 14%, transparent); color: #8944AB; }
html.ui-new .sp-side .sp-title { display: none; }
html.ui-new .sp-side .sp-name { font-size: 16px; }
/* кольцо выполнения плана справа в плитке «Все каналы» — за выбранный период */
html.ui-new .sales-panel .sp-tile:first-child { position: relative; padding-right: 116px; }
html.ui-new .sp-ring { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 4px; width: 88px; text-align: center; }
html.ui-new .sp-ring[hidden] { display: none; }
html.ui-new .sp-ring .ring { position: relative; display: grid; place-items: center; width: 68px; height: 68px; }
html.ui-new .sp-ring svg { position: absolute; inset: 0; width: 68px; height: 68px; }
html.ui-new .sp-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
html.ui-new .sp-ring .trk { stroke: var(--ds-money); stroke-opacity: .16; }
html.ui-new .sp-ring .val { stroke: var(--ds-money); transition: stroke-dashoffset .9s cubic-bezier(.22, 1, .36, 1); }
html.ui-new .sp-ring b { position: relative; font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
html.ui-new .sp-ring small { font-size: 12px; line-height: 1.25; color: var(--muted); white-space: nowrap; }
html.ui-new .sp-ring.none .ring { border-radius: 50%; box-shadow: inset 0 0 0 8px var(--fill); }
html.ui-new .sp-ring.none b { color: var(--muted); }

/* вкладки канала — переключателем */
html.ui-new .sp-row { flex-wrap: wrap; gap: 10px; }
html.ui-new .sp-crumb { font-size: 20px; letter-spacing: -.02em; }
html.ui-new .sp-crumb .dot { width: 28px; height: 28px; border-radius: 8px; }
html.ui-new #view .mk-nav.an-subnav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); width: 100%; overflow: visible; }
html.ui-new #view .an-subnav .mk-nav-item { justify-content: center; border-radius: 10px; height: 38px; padding: 0 10px; background: transparent; color: var(--text); font-weight: 600; box-shadow: none; text-align: center; }
html.ui-new #view .an-subnav .mk-nav-item.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
/* план на месяц — одной тонкой карточкой */
html.ui-new .sp-plan:empty { display: none; }
html.ui-new .sp-plan-btn { display: grid; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 .5px var(--ds-hair), var(--shadow);
  font: inherit; color: var(--text); text-align: left; cursor: pointer; margin-bottom: 4px; }
html.ui-new .sp-plan-btn .r1 { display: flex; align-items: baseline; gap: 10px; }
html.ui-new .sp-plan-btn .r1 b { font-size: 16px; }
html.ui-new .sp-plan-btn .pc { margin-left: auto; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
html.ui-new .sp-plan-btn .chev { color: var(--muted); font-size: 22px; line-height: 1; }
html.ui-new .sp-plan-btn .r3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
html.ui-new .sp-pbar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--fill); }
html.ui-new .sp-pbar i { display: block; height: 100%; border-radius: 5px; background: var(--ds-money); }
html.ui-new .sp-pbar u { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--text); opacity: .55; }
html.ui-new .sp-pst { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 13px; font-weight: 600; }
html.ui-new .sp-plan-btn .r1 .sp-pst { margin-left: auto; }
html.ui-new .sp-pst.ok { background: color-mix(in srgb, var(--ds-money) 15%, transparent); color: var(--pos); }
html.ui-new .sp-pst.lag { background: color-mix(in srgb, var(--ds-care) 16%, transparent); color: #B25000; }
html.ui-new .sp-pst.none { background: var(--fill); color: var(--muted); }
html.ui-new .sp-pl-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
html.ui-new .sp-pl-nums div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ds-nested); }
html.ui-new .sp-pl-nums span { font-size: 12.5px; color: var(--muted); }
html.ui-new .sp-pl-nums b { font-size: 16px; white-space: nowrap; }
html.ui-new .sp-pl-ch { display: grid; border-radius: 14px; background: var(--ds-nested); overflow: hidden; margin-bottom: 10px; }
html.ui-new .sp-pl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 14px; }
html.ui-new .sp-pl-row + .sp-pl-row { border-top: .5px solid var(--sep); }
html.ui-new .sp-pl-row .dot { width: 26px; height: 26px; border-radius: 7px; }
html.ui-new .sp-pl-row .sp-pbar { grid-column: 2 / -1; height: 6px; }
html.ui-new .sp-pl-row small { grid-column: 2 / -1; font-size: 12.5px; margin-top: -2px; }
/* показатели обзора — четыре одинаковые плитки с иконкой */
html.ui-new body[data-route="sales"] .grid.kpis .kpi { position: relative; padding: 14px 16px 14px 66px; min-height: 96px; }
html.ui-new body[data-route="sales"] .grid.kpis .kpi::before { content: ""; position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--kc, var(--ds-orders)); }
html.ui-new body[data-route="sales"] .grid.kpis .kpi::after { content: ""; position: absolute; left: 26px; top: 26px; width: 18px; height: 18px; background: #fff; -webkit-mask: var(--ki) center / contain no-repeat; mask: var(--ki) center / contain no-repeat; }
html.ui-new body[data-route="sales"] .grid.kpis .kpi:nth-child(1) { --kc: var(--ds-orders); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4zM3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
html.ui-new body[data-route="sales"] .grid.kpis .kpi:nth-child(2) { --kc: var(--ds-money); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 9.5c-.5-.9-1.4-1.5-2.5-1.5-1.5 0-2.5.8-2.5 2s1 1.7 2.5 2 2.5.9 2.5 2.1-1 2-2.5 2c-1.2 0-2.1-.6-2.6-1.5M12 6.5V8M12 16v1.5'/%3E%3C/svg%3E"); }
html.ui-new body[data-route="sales"] .grid.kpis .kpi:nth-child(3) { --kc: var(--ds-money); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
html.ui-new body[data-route="sales"] .grid.kpis .kpi:nth-child(4) { --kc: #AF52DE; --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5 5 19'/%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='17' r='2.5'/%3E%3C/svg%3E"); }
html.ui-new body[data-route="sales"] .grid.kpis .kpi .value { font-size: 26px; margin-top: 2px; white-space: nowrap; }
html.ui-new body[data-route="sales"] .grid.kpis .kpi .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* заказы: статусы плитками (число сверху), заказы — карточками по дням с логотипом канала */
html.ui-new body[data-route="sales"] .filters .seg:has([data-status]) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; width: 100%; overflow: visible; }
html.ui-new body[data-route="sales"] .seg [data-status] { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 .5px var(--ds-hair), var(--shadow); font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; }
html.ui-new body[data-route="sales"] .seg [data-status] .muted { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
html.ui-new body[data-route="sales"] .seg [data-status].on { background: var(--ink); color: var(--ink-contrast); box-shadow: none; }
html.ui-new body[data-route="sales"] .seg [data-status].on .muted { color: inherit; }
html.ui-new body[data-route="sales"] .seg:has([data-status]) > .ds-thumb { display: none; }
html.ui-new #o-list { gap: 8px; }
html.ui-new .o-day { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 4px 0; }
html.ui-new #o-list .row.o-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-top: 0; border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 .5px var(--ds-hair), 0 2px 8px rgba(0, 0, 0, .04); }
html.ui-new #o-list .o-logo { width: 44px; height: 44px; border-radius: 12px; }
html.ui-new #o-list .o-card .title { font-size: 15.5px; font-weight: 600; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.ui-new #o-list .o-card .meta .mp { display: none; }
html.ui-new #o-list .o-card .right { display: grid; justify-items: end; gap: 6px; }
html.ui-new #o-list .o-card .right .num { font-size: 17px; font-weight: 700; }
html.ui-new #o-list .o-card .badge { font-size: 13px; padding: 4px 10px; border-radius: 8px; }
html.ui-new body[data-route="sales"] #view > .card:has(#o-list) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
/* период одной кнопкой (телефон) и окно периода */
html.ui-new .period-btn { display: none; }
html.ui-new .ps-grp { border-radius: 14px; background: var(--ds-nested); overflow: hidden; margin-bottom: 12px; }
html.ui-new .ps-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); cursor: pointer; }
html.ui-new .ps-opt + .ps-opt { border-top: .5px solid var(--sep); }
html.ui-new .ps-opt .ok { color: var(--ds-orders); font-weight: 700; opacity: 0; }
html.ui-new .ps-opt.on { font-weight: 700; } html.ui-new .ps-opt.on .ok { opacity: 1; }
html.ui-new .ps-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
html.ui-new .ps-dates label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
html.ui-new .ps-dates input { height: 46px; border-radius: 12px; border: 0; background: var(--fill); padding: 0 10px; color: var(--text); font: inherit; }
html.ui-new .ps-done { width: 100%; min-height: 50px; font-size: 16px; }
@media (max-width: 860px) {
  html.ui-new .sp-tiles { grid-template-columns: 1fr 1fr; }
  html.ui-new .sp-tile:first-child .sp-val { font-size: 28px; }
  html.ui-new .sp-tile .sp-val { font-size: 19px; }
  html.ui-new #view .mk-nav.an-subnav:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  html.ui-new #view .filters .chips-period, html.ui-new #view .period-select { display: none !important; }
  html.ui-new .period-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 58px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--surface);
    box-shadow: 0 0 0 .5px var(--ds-hair), var(--shadow); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
  html.ui-new .period-btn .pi { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--ink-contrast); display: grid; place-items: center; flex: none; }
  html.ui-new .period-btn .pi svg { width: 18px; height: 18px; }
  html.ui-new .period-btn .px { display: grid; min-width: 0; } html.ui-new .period-btn .px small { font-size: 13px; color: var(--muted); }
  html.ui-new .period-btn .px b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.ui-new .period-btn .chev { margin-left: auto; color: var(--muted); font-size: 22px; }
  html.ui-new #view .filters .period-label { display: none; }
  html.ui-new body[data-route="sales"] .grid.kpis { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  html.ui-new body[data-route="sales"] .grid.kpis .kpi { padding: 56px 14px 12px; min-height: 0; }
  html.ui-new body[data-route="sales"] .grid.kpis .kpi::before { left: 14px; top: 12px; width: 32px; height: 32px; }
  html.ui-new body[data-route="sales"] .grid.kpis .kpi::after { left: 22px; top: 20px; width: 16px; height: 16px; }
  html.ui-new body[data-route="sales"] .grid.kpis .kpi .value { font-size: 21px; }
  html.ui-new body[data-route="sales"] .grid.kpis .kpi-prev { display: none; }  /* сравнение — плашкой «+8 %», полная строка «было …» — на компьютере */
  html.ui-new body[data-route="sales"] #view .filters .seg:has([data-status]) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html.ui-new body[data-route="sales"] #view .seg [data-status]:nth-child(-n+3) { grid-column: span 2; }
  html.ui-new body[data-route="sales"] #view .seg [data-status]:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- Настройки → Оформление ---------- */
.ds-look .ds-look-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: .5px solid var(--sep); }
.ds-look .ds-look-row:first-of-type { border-top: 0; }
.ds-look .ds-look-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.ds-look .muted { font-size: 13px; }

/* ---------- меньше движения — всё мгновенно ---------- */
@media (prefers-reduced-motion: reduce) {
  html.ui-new *, html.ui-new *::before, html.ui-new *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ===== Забота: прежняя структура, спокойное оформление ===== */
html.ui-new .cr-i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
html.ui-new .cr-ch-ico { color: var(--text); background: var(--fill); }
html.ui-new .cr-ch-ico .cr-i { width: 20px; height: 20px; }
html.ui-new .cr-ch-badge { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; color: var(--text); box-shadow: 0 0 0 2px var(--surface); }
html.ui-new .cr-ch-badge .cr-i { width: 13px; height: 13px; }
html.ui-new .cr-two .row .title .cr-i { width: 16px; height: 16px; margin-right: 4px; color: var(--muted); }
html.ui-new .cr-head .muted .cr-i { width: 14px; height: 14px; }
/* сводка: все плитки одной высоты, цифра крупно */
html.ui-new #view .mk-kpis { grid-auto-rows: 1fr; }
html.ui-new #view .mk-kpis .kpi { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; }
@media (max-width: 700px) { html.ui-new #view .mk-kpis .kpi { min-height: 150px; } }
html.ui-new #view .mk-kpis .kpi .label { font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--muted); min-height: 2.5em; }
html.ui-new #view .mk-kpis .kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; }
html.ui-new #view .mk-kpis .kpi .sub { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
html.ui-new #view .mk-kpis .cr-warn .value { color: #b26a00; }
html.ui-new #view .mk-kpis .cr-bad .value { color: var(--neg); }
html.ui-new .cr-work { font-weight: 500; }
/* «Команда сейчас»: таблица помещается на телефоне без прокрутки */
@media (max-width: 700px) {
  html.ui-new body[data-route="care"] #view .cr-two .tbl { width: 100%; table-layout: fixed; font-size: 14px; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl th { font-size: 11px; line-height: 1.2; white-space: normal; overflow-wrap: normal; word-break: normal; letter-spacing: -.01em; vertical-align: bottom; padding: 6px 0 6px 4px; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl th:first-child { width: 34%; padding-left: 0; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl td:first-child { padding-left: 0; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl td { padding: 9px 2px; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.ui-new body[data-route="care"] #view .cr-two .tbl .avatar { display: none; }
  html.ui-new body[data-route="care"] #view .cr-two .scroll-x { overflow: visible; }
}
/* обращение: полоса заказа и заметки — нейтрально */
html.ui-new .cr-order-strip { background: var(--surface); color: var(--text); box-shadow: 0 0 0 .5px var(--sep); gap: 8px; }
html.ui-new .cr-order-strip span { color: var(--muted); opacity: 1; }
html.ui-new .cr-order-strip i { color: var(--muted); font-size: 22px; }
html.ui-new .cr-notemsg { background: var(--surface); border-left: 3px solid #ff9f0a; box-shadow: 0 0 0 .5px var(--sep); }
html.ui-new .cr-notehead { display: flex; align-items: center; gap: 5px; color: #b26a00; }
html.ui-new .cr-notehead .cr-i { width: 14px; height: 14px; }
html.ui-new .cr-timer .cr-i, html.ui-new .cr-sla .cr-i { width: 13px; height: 13px; vertical-align: -2px; }
html.ui-new .cr-timer.bad { animation: none; }
html.ui-new .ib-send { display: grid; place-items: center; background: var(--ink); color: var(--ink-contrast); }
html.ui-new .ib-send .cr-i { width: 20px; height: 20px; stroke-width: 2.2; }
html.ui-new .cr-modes .cr-ai-btn, html.ui-new .cr-modes .cr-esc-btn { color: var(--text) !important; background: var(--fill) !important; }
html.ui-new .cr-modes .cr-esc-btn .cr-i { width: 16px; height: 16px; }
html.ui-new .cr-info-btn .cr-i { width: 17px; height: 17px; }
/* обращение: стадия, тема, ответственный, срочно — за маленькой кнопкой; «Ответ / Заметка» убраны */
html.ui-new .cr-pills, html.ui-new .cr-modes [data-mode], html.ui-new .cr-bar select, html.ui-new #cr-prio { display: none !important; }
html.ui-new .cr-bar:not(:has(.cr-bar-tags > *)) { display: none; }
html.ui-new .cr-modes { align-items: center; }
html.ui-new .cr-modes .cr-ai-btn { margin-left: auto; }
html.ui-new .cr-props-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 46%; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
html.ui-new .cr-props-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-new .cr-props-btn .cr-i { width: 16px; height: 16px; }
html.ui-new .cr-props-btn.hot { color: var(--neg); background: rgba(255, 59, 48, .1); }
html.ui-new .cr-props { display: grid; gap: 14px; }
html.ui-new .cr-props label { display: grid; gap: 6px; }
html.ui-new .cr-props label span { font-size: 13px; font-weight: 600; color: var(--muted); }
html.ui-new .cr-props select { width: 100%; height: 48px; font-size: 16px; border-radius: 12px; }
html.ui-new .cr-props-prio { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--fill); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
html.ui-new .cr-props-prio i { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-strong); transition: background .2s; }
html.ui-new .cr-props-prio i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
html.ui-new .cr-props-prio.on i { background: var(--neg); }
html.ui-new .cr-props-prio.on i::after { transform: translateX(20px); }
/* телефон: список обращений — одной прокруткой со страницей (без «экрана в экране»); открытое обращение стоит намертво, как мессенджер */
@media (max-width: 760px) {
  html.ui-new body[data-route="care"] .ib.cr:not(.has-chat), html.ui-new body[data-route="care"] .ib.cr:not(.has-chat) :is(.ib-left, .ib-list) { height: auto; max-height: none; overflow: visible; }
  html.ui-new:has(body[data-route="care"] .ib.cr.has-chat), html.ui-new body[data-route="care"]:has(.ib.cr.has-chat) { overflow: hidden; overscroll-behavior: none; }
  html.ui-new body[data-route="care"]:has(.ib.cr.has-chat) { position: fixed; inset: 0; width: 100%; }
}

/* ---------- меню раздела на телефоне: одна кнопка «Раздел: … ▾» + окно выбора снизу (аудит 25.10, п. 13) ---------- */
.ds-secbtn { display: none; }
@media (max-width: 760px) {
  html.ui-new #view .mk-nav.ds-sec { display: none !important; }
  html.ui-new .ds-secbtn { display: flex; align-items: center; gap: 12px; width: 100%; height: 58px; margin: 0 0 16px; padding: 0 14px; border: 0; border-radius: 16px;
    background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 0 .5px var(--ds-hair, var(--sep)), var(--shadow); }
  html.ui-new .ds-secbtn:active { transform: scale(.98); }
  html.ui-new .ds-secbtn .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--ink-contrast); display: grid; place-items: center; flex: none; }
  html.ui-new .ds-secbtn .fi:empty { display: none; }
  html.ui-new .ds-secbtn .fi svg { width: 18px; height: 18px; }
  html.ui-new .ds-secbtn .fx { display: grid; min-width: 0; }
  html.ui-new .ds-secbtn .fx small { font-size: 13px; color: var(--muted); }
  html.ui-new .ds-secbtn .fx b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.ui-new .ds-secbtn .chev { margin-left: auto; color: var(--muted); display: grid; }
  html.ui-new .ds-secbtn .chev svg { width: 20px; height: 20px; }
  html.ui-new .ds-secbtn .ds-secn { margin-left: auto; }
  html.ui-new .ds-secbtn .ds-secn + .chev { margin-left: 0; }
}
html.ui-new .ds-secn { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 600;
  display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
html.ui-new .ds-secgrp { border-radius: 14px; background: var(--bg); overflow: hidden; }
html.ui-new .ds-secopt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; width: 100%; min-height: 54px; padding: 0 14px; border: 0;
  background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
html.ui-new .ds-secopt + .ds-secopt { border-top: .5px solid var(--sep); }
html.ui-new .ds-secopt:active { background: var(--fill); }
html.ui-new .ds-secopt .oi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); }
html.ui-new .ds-secopt .oi:empty { visibility: hidden; }
html.ui-new .ds-secopt .oi svg { width: 18px; height: 18px; }
html.ui-new .ds-secopt b { font-size: 16px; font-weight: 500; }
html.ui-new .ds-secopt .ok { color: var(--ds-orders, var(--ink)); opacity: 0; display: grid; }
html.ui-new .ds-secopt .ok svg { width: 20px; height: 20px; }
html.ui-new .ds-secopt.on b { font-weight: 700; }
html.ui-new .ds-secopt.on .ok { opacity: 1; }
html.ui-new .ds-secopt.on .oi { background: var(--ink); color: var(--ink-contrast); }

/* ---------- телефон: всё крупнее (аудит 25.10, п. 7–8). Касание — от 44 px, подписи — от 13 px ---------- */
:root { --fs-caption: 13px; --fs-text: 16px; --tap: 44px; }
@media (max-width: 860px) {
  /* кнопки, переключатели, поля, крестик окна — не меньше пальца */
  html.ui-new :is(.btn, .btn-sm, .input-sm, select.input-sm, .chip, .hm-chip) { min-height: var(--tap); }
  html.ui-new .btn-sm { padding-left: 14px; padding-right: 14px; font-size: 15px; }
  html.ui-new :is(a, label, span):is(.chip, .hm-chip):not([hidden], .hidden) { display: inline-flex; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
  html.ui-new a:is(.btn, .btn-sm):not([hidden], .hidden) { display: inline-flex; align-items: center; justify-content: center; }
  html.ui-new .input-sm { font-size: 16px; }
  html.ui-new .seg > :is(button, a) { min-height: var(--tap); }
  html.ui-new #view .mk-nav.an-subnav .mk-nav-item { min-height: var(--tap); }
  html.ui-new .sheet-close { width: var(--tap); height: var(--tap); }
  /* «?» и текстовые ссылки остаются аккуратными, но ловят касание с запасом вокруг */
  html.ui-new .help { width: 26px; height: 26px; font-size: 14px; position: relative; }
  html.ui-new :is(.help, .link-btn)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--tap)); height: max(100%, var(--tap)); transform: translate(-50%, -50%); }
  html.ui-new .link-btn { position: relative; }
  /* мелкие подписи — до 13 px */
  html.ui-new :is(.ib-tag, .mp, .badge, .cr-flag, .hm-sub, .pos, .neg, .pct, .label, .tbl th, time, small, .small, .meta, .ib-time, .ib-meta) { font-size: var(--fs-caption); }
  html.ui-new :is(.mk-badge, .nav-badge, .ms-badge, .ib-unread) { font-size: 13px; min-width: 20px; height: 20px; line-height: 20px; }
  html.ui-new .ib-tag, html.ui-new .mp { padding: 3px 8px; }
}

/* ---------- переход между разделами: пыль → логотип → новый раздел (26.10.2026) ---------- */
.ds-morph { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 19; }
html.ui-new body.ds-morphing main :is(.topbar, #view) { visibility: hidden; }

/* полоски «Куда уходят деньги», «Темы»: сумма с процентом не вылезает за карточку (на компьютере колонка суммы была 44 px) */
html.ui-new .mk-bar { grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto; }
html.ui-new .mk-bar > .mk-bar-num { white-space: nowrap; }
/* ---------- телефон: ничего не уезжает за край и не рвётся посреди числа (проверка всех разделов 26.10.2026) ---------- */
@media (max-width: 760px) {
  /* полоски «Куда уходят деньги», «Темы за 30 дней»: название и сумма — строкой, полоска — под ними на всю ширину */
  html.ui-new .mk-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l n" "t t"; gap: 6px 12px; }
  html.ui-new .mk-bar > .mk-bar-label { grid-area: l; min-width: 0; }
  html.ui-new .mk-bar > .mk-bar-num { grid-area: n; white-space: nowrap; }
  html.ui-new .mk-bar > .mk-bar-track { grid-area: t; }
  /* числа в таблицах не разрываются посередине («18 091 3 / 27»): широкая таблица листается внутри карточки */
  html.ui-new .tbl td.num, html.ui-new .tbl th.num { white-space: nowrap; }
  html.ui-new .tbl :is(td, th).num { padding-left: 12px; }
  /* статус документа ЭДО и ссылка — переносом, а не за край */
  html.ui-new .ty-row .ty-when { grid-auto-flow: row; grid-template-columns: minmax(0, auto) auto; justify-content: space-between; align-items: center; gap: 8px; }
  html.ui-new .ty-row .ty-when > .ty-st { justify-self: start; }
  html.ui-new .ty-st { white-space: normal; height: auto; line-height: 1.3; padding: 4px 10px; }
}

/* ---------- Настройки как в iPhone (26.10.2026) ---------- */
html.ui-new .ds-setwrap { display: grid; gap: 20px; }
html.ui-new .ds-set { display: grid; gap: 8px; align-content: start; }
html.ui-new .ds-setme { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 0 0 .5px var(--ds-hair, var(--sep)), var(--shadow); margin-bottom: 12px; }
html.ui-new .ds-setav { width: 58px; height: 58px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 22px; font-weight: 600; flex: none; }
html.ui-new .ds-setmx { display: grid; min-width: 0; gap: 1px; }
html.ui-new .ds-setmx b { font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui-new .ds-setmx small { font-size: 14px; color: var(--muted); }
html.ui-new .ds-setcap { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 16px 0; }
html.ui-new .ds-setgrp { border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 0 0 .5px var(--ds-hair, var(--sep)); margin-bottom: 12px; }
html.ui-new .ds-setrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 16px;
  color: var(--text); text-decoration: none; text-align: left; cursor: pointer; position: relative; }
html.ui-new .ds-setrow + .ds-setrow::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: .5px solid var(--sep); }
html.ui-new .ds-setrow:active, html.ui-new .ds-setme:active { background: var(--fill); }
html.ui-new .ds-setico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--text); flex: none; }  /* монохромно, свой стиль */
html.ui-new .ds-setico svg { width: 18px; height: 18px; stroke-width: 2; }
html.ui-new .ds-setrow.on .ds-setico { background: var(--ink); color: var(--ink-contrast); }
html.ui-new .ds-settl { flex: 1; min-width: 0; }
html.ui-new .ds-setchev { width: 18px; height: 18px; color: var(--muted); opacity: .6; margin-left: auto; flex: none; }
html.ui-new .ds-setout { justify-content: center; color: var(--neg); font-weight: 500; }
html.ui-new .ds-setback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -6px 0 6px -6px; padding: 0 8px 0 0; font-size: 17px; color: var(--ds-orders, #0a84ff); text-decoration: none; }
html.ui-new .ds-setback svg { width: 24px; height: 24px; }
html.ui-new .ds-setpane .ds-setcard { margin: 0; }
html.ui-new .ds-setpane .ds-setcard[hidden] { display: none !important; }
@media (max-width: 860px) {
  html.ui-new .ds-setwrap.has-open > .ds-set { display: none; }
  html.ui-new .ds-setwrap:not(.has-open) > .ds-setpane { display: none; }
}
@media (min-width: 861px) {
  /* компьютер: список слева, выбранный раздел справа — как «Системные настройки» на Mac */
  html.ui-new .ds-setwrap { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  html.ui-new .ds-set { position: sticky; top: 16px; }
  html.ui-new .ds-setrow.on, html.ui-new .ds-setme.on { background: var(--fill); }
  html.ui-new .ds-setme { margin-bottom: 4px; }
}
@media (max-width: 860px) {
  /* экран раздела настроек: заголовок уже в шапке — повторный внутри карточки прячем */
  html.ui-new .ds-setsub .ds-setcard > h2, html.ui-new .ds-setsub .ds-setcard > .card-head > h2 { display: none; }
  html.ui-new .ds-setsub .ds-setcard > .card-head { justify-content: flex-end; }
  /* сотрудники: строка с именем и стрелкой, кнопки — в окне снизу */
  html.ui-new .ds-setsub .ds-urow { display: flex; align-items: center; gap: 10px; min-height: 60px; cursor: pointer; }
  html.ui-new .ds-setsub .ds-urow > .user-actions { display: none; }
  html.ui-new .ds-setsub .ds-urow > div:first-child { flex: 1; min-width: 0; }
  html.ui-new .ds-usheet .user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  html.ui-new .ds-usheet .user-actions > select { grid-column: 1 / -1; width: 100%; height: 48px; }
  html.ui-new .ds-usheet .user-actions > .btn { width: 100%; height: 48px; }
  html.ui-new .ds-usheet .user-actions > [data-more] { grid-column: 1 / -1; }
  html.ui-new .ds-umeta { margin: -6px 0 14px; font-size: 15px; }
}
html.ui-new .ds-urow > .ds-setchev { display: none; }
@media (max-width: 860px) { html.ui-new .ds-setsub .ds-urow > .ds-setchev { display: block; } }
html.ui-new .ds-rlist { display: none; }
@media (max-width: 860px) {
  /* роли: список вместо таблицы */
  html.ui-new .ds-setsub .ds-rlist { display: block; border-radius: 14px; background: var(--bg); overflow: hidden; margin: 6px 0 14px; }
  html.ui-new .ds-setsub .ds-rlist + .scroll-x { display: none; }
  html.ui-new .ds-rrow .ds-settl { display: grid; gap: 1px; }
  html.ui-new .ds-rrow small { font-size: 13px; color: var(--muted); }
  html.ui-new .ds-rrow { min-height: 60px; }
  html.ui-new .ds-rrow + .ds-rrow::before { left: 14px; }
  html.ui-new .ds-rsheet .ds-setgrp { background: var(--bg); box-shadow: none; }
  html.ui-new .ds-rsw { cursor: pointer; } html.ui-new .ds-rsw + .ds-rsw::before { left: 14px; }
  html.ui-new .ds-rname { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
  html.ui-new .ds-rname input { height: 48px; font-size: 16px; }
  html.ui-new .ds-rhint { margin: 4px 4px 12px; }
  html.ui-new .ds-rdel { color: var(--neg); font-size: 16px; min-height: 44px; }
}

/* ---------- свои окна подтверждения и ввода (аудит п. 6) ---------- */
html.ui-new .ds-ask { display: grid; gap: 12px; }
html.ui-new .ds-ask .sheet-title { margin-bottom: 0; line-height: 1.25; }
html.ui-new .ds-askbody { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
html.ui-new .ds-askin { height: 50px; font-size: 16px; }
html.ui-new .ds-askbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
html.ui-new .ds-askbtns .btn { min-height: 50px; font-size: 16px; font-weight: 600; justify-content: center; }
html.ui-new .ds-askdanger { background: var(--neg); color: #fff; border: 0; }
@media (min-width: 861px) { html.ui-new .sheet:has(.ds-ask) { max-width: 440px; } }

/* ---------- единые метки, стиль «Точка» (как Linear/Stripe; владелец 26.10.2026): серая капсула, цвет — только у точки слева ---------- */
:root {
  --lb-bg: rgba(118, 118, 128, .12); --lb-text: #1c1c1e;
  --lbd-ok: #34c759; --lbd-warn: #ff9f0a; --lbd-bad: #ff3b30; --lbd-info: #0a84ff; --lbd-neutral: #aeaeb2; --lbd-accent: #af52de; --lbd-return: #ff6b00;
  /* каналы: у каждого свой цвет; «Сайт» — графит, как логотип MOMMY (раньше совпадал с «Возвратом»), у Аэромара — свой */
  --lb-wb: #8944ab; --lb-ozon: #0062cc; --lb-site: #2c2c2e; --lb-ga: #7a5f12; --lb-aero: #0b7a75;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lb-bg: rgba(118, 118, 128, .26); --lb-text: #f2f2f7; --lbd-neutral: #8e8e93;
  --lb-wb: #d68cff; --lb-ozon: #64a8ff; --lb-site: #e5e5ea; --lb-ga: #e0c068; --lb-aero: #4fd1c5; } }
:root[data-theme="dark"] { --lb-bg: rgba(118, 118, 128, .26); --lb-text: #f2f2f7; --lbd-neutral: #8e8e93;
  --lb-wb: #d68cff; --lb-ozon: #64a8ff; --lb-site: #e5e5ea; --lb-ga: #e0c068; --lb-aero: #4fd1c5; }
/* форма: одна капсула */
html.ui-new :is(#view, .sheet) :is(.badge, .ib-tag, .cr-flag, .st-pill, .cr-hub-chip, .mb-st, .st-area, .sp-pst, .mp, .ty-st, .cr-work, .lb-chip) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px 2px 9px; border-radius: 999px; border: 0;
  font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0; vertical-align: middle; align-self: center; width: fit-content;
  color: var(--lb-text); background: var(--lb-bg); }
/* точка смысла; у меток каналов вместо точки — логотип, у меток со своим значком — значок */
html.ui-new :is(#view, .sheet) :is(.badge, .ib-tag, .cr-flag, .cr-hub-chip, .mb-st, .st-area, .sp-pst, .ty-st, .cr-work, .lb-chip):not(:has(svg))::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lbd, var(--lbd-neutral)); flex: none; }
html.ui-new :is(#view, .sheet) :is(.cr-flag, .ib-tag, .cr-sla) svg { color: var(--lbd, var(--lbd-neutral)); }
/* смысл → цвет точки */
html.ui-new :is(.badge.st-sold, .ib-tag.ib-st-ok, .st-pill.st-ok, .cr-hub-chip.ok, .sp-pst.ok, .cr-work.on, .badge.ts-done) { --lbd: var(--lbd-ok); }
html.ui-new :is(.ib-tag.ib-st-warn, .cr-flag.warn, .cr-sla.warn, .cr-hub-chip.pending, .mb-st.mb-reserved, .badge.ts-in_progress, .st-pill.st-warnp, .st-pill.st-warn) { --lbd: var(--lbd-warn); }
html.ui-new :is(.ib-tag.ib-st-bad, .cr-flag.bad, .cr-sla.bad, .st-pill.st-bad, .cr-hub-chip.error, .badge.ts-high, .badge.st-error) { --lbd: var(--lbd-bad); }
html.ui-new :is(.badge.st-new, .ib-tag.ib-st-new, .badge.ts-new) { --lbd: var(--lbd-info); }
html.ui-new :is(.badge.ts-review) { --lbd: var(--lbd-accent); }
html.ui-new :is(.badge.st-returned) { --lbd: var(--lbd-return); }
/* просрочка — единственное место, где и текст красный: её нельзя пропустить */
html.ui-new :is(#view, .sheet) :is(.cr-flag.bad, .cr-sla.bad) { color: var(--lbd-bad); font-weight: 600; }
/* важная отметка — тёмная заливка, точка светлая */
html.ui-new :is(#view, .sheet) :is(.ib-tag.ib-st-deal, .mb-st.mb-spent) { color: var(--ink-contrast); background: var(--ink); --lbd: var(--ink-contrast); }
/* каналы: текст цвета канала, фон серый, слева логотип (где он есть) */
html.ui-new :is(#view, .sheet) .mp.mp-wb { color: var(--lb-wb); } html.ui-new :is(#view, .sheet) .mp.mp-ozon { color: var(--lb-ozon); }
html.ui-new :is(#view, .sheet) .mp.mp-site { color: var(--lb-site); } html.ui-new :is(#view, .sheet) .mp.mp-ga { color: var(--lb-ga); }
html.ui-new :is(#view, .sheet) .mp.mp-aero { color: var(--lb-aero); }
html.ui-new :is(#view, .sheet) .mp:is(.mp-wb, .mp-ozon, .mp-site, .mp-ga, .mp-aero) { font-weight: 600; }

/* ---------- общий график dsChart (аудит п. 5): размеры в настоящих пикселях, подсказка по касанию ---------- */
.ds-chart { position: relative; }
.ds-chart-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.ds-chart-svg .ax { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ds-chart-svg .grid { stroke: var(--sep); stroke-width: 1; }
.ds-chart-svg .zero { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; }
.ds-chart-svg .hit { fill: transparent; cursor: crosshair; }
.ds-chart-svg .bar { transition: opacity .12s; }
.ds-chart-svg .bar.dim { opacity: .28; }
.ds-ctip { position: absolute; top: -6px; transform: translateY(-100%); z-index: 5; min-width: 150px; max-width: 260px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 8px 30px rgba(0, 0, 0, .18), 0 0 0 .5px var(--sep); font-size: 14px; line-height: 1.4; pointer-events: none; }
.ds-ctip b:first-child { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ds-ctip div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ds-ctip i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); flex: none; }
.ds-ctip i.cr-ok { background: var(--pos); } .ds-ctip i.fn-g { background: #8e8e93; }

/* ---------- доступность (аудит п. 6): видимая рамка фокуса при работе с клавиатуры ---------- */
html.ui-new :is(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible { outline: 2.5px solid #0a84ff; outline-offset: 2px; }
html.ui-new :is(.input, input, select, textarea):focus-visible { outline-offset: 0; }
html.ui-new .sheet:focus, html.ui-new .sheet:focus-visible { outline: none; }
html.ui-new .toast.toast-err { cursor: pointer; }

/* ---------- крупный текст (аудит п. 11): содержимое экрана увеличивается целиком, шапка и нижнее меню — прежние ---------- */
html.ui-new[data-text] #view { zoom: var(--tz, 1); }
html.ui-new[data-text] body[data-route="chat"] #view { zoom: 1; }  /* мессенджер закреплён по экрану и так крупный — не трогаем */
@media (max-width: 760px) {
  /* открытое обращение закреплено по экрану: отступы делим на масштаб, чтобы окно встало ровно между шапкой и меню */
  html.ui-new[data-text] body[data-route="care"] .ib.cr.has-chat {
    inset: calc((48px + env(safe-area-inset-top)) / var(--tz)) 0 calc((var(--tabbar-h) + env(safe-area-inset-bottom)) / var(--tz)) 0; }
}
html.ui-new #view :is(#ds-text, #ds-theme).seg { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
/* крупный текст: строка плана на Главной переносится, а не уходит за край */
html.ui-new .ds-ringbox { min-width: 0; }
html.ui-new .ds-ringbox .hm-plan-top > * { min-width: 0; overflow-wrap: anywhere; }
html.ui-new[data-text] .ds-ringbox .hm-plan-top b { white-space: normal; }

/* ---------- Экран владельца: в общем стиле ---------- */
html.ui-new .ow-light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; background: var(--lbd-neutral); }
html.ui-new .ow-light.ow-green { background: var(--lbd-ok); } html.ui-new .ow-light.ow-yellow { background: var(--lbd-warn); } html.ui-new .ow-light.ow-red { background: var(--lbd-bad); }
html.ui-new .ow-warn { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 760px) {
  /* «Маржа каналов» (на Главной в #hm-owner и на прежнем экране владельца): вся таблица на экране, без прокрутки вбок */
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl { width: 100%; table-layout: fixed; font-size: 14px; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl th { font-size: 12px; white-space: normal; padding: 6px 2px 6px 4px; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl :is(th, td):first-child { width: 30%; padding-left: 0; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl td { padding: 9px 2px 9px 4px; vertical-align: top; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl td:first-child { overflow-wrap: anywhere; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .tbl td.num { white-space: nowrap; font-size: 13.5px; }
  html.ui-new :is(body[data-route="owner"] #view, #hm-owner) .scroll-x { overflow: visible; }
}

/* ---------- метки говорят больше: цифра внутри, бледнее («Просрочено · 25 мин»); срок задачи — меткой ---------- */
html.ui-new .lb-k { font-weight: 500; opacity: .62; margin-left: 4px; }
html.ui-new .lb-k::before { content: "· "; }
html.ui-new .lb-chip.bad { --lbd: var(--lbd-bad); color: var(--lbd-bad); font-weight: 600; }
html.ui-new .lb-chip.warn { --lbd: var(--lbd-warn); }
html.ui-new .cr-flag.ai { --lbd: var(--lbd-accent); }
html.ui-new .cr-flag.b24 { --lbd: var(--lbd-neutral); }
html.ui-new .tk-when:has(.lb-chip) > svg { display: none; }

/* ---------- Маркетинг → Инфлюенс: вкладки плитками — все одного размера (правила плиток «Продаж» тут не действуют) ---------- */
html.ui-new #view .mk-itiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0 0 14px; }
html.ui-new #view .mk-itiles > .sp-tile { grid-column: auto; grid-row: auto; min-width: 0; min-height: 84px; height: 100%; margin: 0; padding: 12px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; overflow: hidden; }
html.ui-new #view .mk-itiles .sp-tile-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
html.ui-new #view .mk-itiles .sp-name { font-size: 15px; font-weight: 600; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
html.ui-new #view .mk-itiles .sp-sub { font-size: 13px; line-height: 1.25; color: var(--muted); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.ui-new #view .mk-itiles .sp-tile.on .sp-sub { color: inherit; opacity: .7; }
html.ui-new #view .mk-itiles .mk-badge { position: absolute; top: 8px; right: 8px; }
@media (max-width: 760px) {
  html.ui-new #view .mk-itiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .mk-itiles > .sp-tile { min-height: 76px; padding: 10px; border-radius: 14px; }
  html.ui-new #view .mk-itiles .sp-name { font-size: 14px; }
  html.ui-new #view .mk-itiles .sp-sub { display: none; }
}

/* ---------- Маркетинг: аудит 26.10.2026 — ничего не наезжает и не обрезается ---------- */
/* длинный переключатель (5+ вариантов) на телефоне — одна кнопка с выбором; на компьютере как был */
.ds-segpick { display: none; }
html.ui-new .ds-pickopt { grid-template-columns: minmax(0, 1fr) auto 22px; }
html.ui-new .ds-pickopt b { font-weight: 500; text-align: left; }
html.ui-new .ds-pickopt .pc { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  html.ui-new #view .seg.ds-picked { display: none !important; }
  html.ui-new #view .ds-segpick { display: inline-flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin: 0 0 10px; padding: 0 14px; border: 0; border-radius: 14px;
    background: var(--card); color: var(--text); font: inherit; font-size: 16px; text-align: left; box-shadow: 0 0 0 .5px var(--sep); cursor: pointer; }
  html.ui-new #view .ds-segpick b { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.ui-new #view .ds-segpick .pc { color: var(--muted); font-variant-numeric: tabular-nums; }
  html.ui-new #view .ds-segpick .chev { margin-left: auto; color: var(--muted); display: grid; }
  html.ui-new #view .ds-segpick .chev svg { width: 18px; height: 18px; }
  html.ui-new #view .ds-segpick:active { transform: scale(.98); }
}

/* список обращений: длинное имя и текст обрезаются многоточием, время и синяя точка всегда на месте */
html.ui-new #view .ib-dlg-main { grid-template-columns: minmax(0, 1fr); }
html.ui-new #view .ib-dlg-top b { min-width: 0; }
html.ui-new #view .ib-dlg-top .ib-time { flex: none; }
html.ui-new #view .ib-tag.ld-ch::before { display: none; }

/* «Эффективность интеграций»: подпись окна в одну строку над переключателем, а не столбиком сбоку */
html.ui-new #view .mk-eff-tools { flex-wrap: wrap; row-gap: 6px; }
html.ui-new #view .mk-eff-tools > .muted { white-space: nowrap; }

/* бюджет месяца: три суммы на телефоне — строками «название · сумма · доля», сумма не переносится */
html.ui-new #view .mb-t b { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) {
  html.ui-new #view .mb-tiles { grid-template-columns: 1fr; gap: 8px; }
  html.ui-new #view .mb-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "e v"; align-items: center; column-gap: 12px; }
  html.ui-new #view .mb-t small { grid-area: l; }
  html.ui-new #view .mb-t b { grid-area: v; font-size: 20px; }
  html.ui-new #view .mb-t em { grid-area: e; }
}

/* таблицы маркетинга на телефоне (прокрутка вбок): имя — до двух строк, даты, суммы и метки — в одну строку */
@media (max-width: 760px) {
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl :is(td, th) { white-space: nowrap; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:first-child:not(.nowrap) { white-space: normal; min-width: 140px; max-width: 220px; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:first-child:is(:has(> b), :has(.avatar), [style*="text-align:left"]) { min-width: 150px; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:first-child > b,
  html.ui-new body[data-route="marketing"] #view .mk-eff-who b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:first-child > b + br { display: none; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:last-child:has(> .small) { white-space: normal; min-width: 320px; }
  html.ui-new body[data-route="marketing"] #view .mk-eff-who { min-width: 250px; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:first-child:has(.mk-eff-who) { max-width: none; }
}
/* фильтры блогеров на телефоне: поиск и сортировка — во всю ширину, остальные списки по два в ряд одной ширины */
@media (max-width: 760px) {
  html.ui-new #view .mk-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .mk-filters > * { width: 100% !important; min-width: 0; margin: 0; }
  html.ui-new #view .mk-filters > :is(.mk-search, .bf-sort) { grid-column: 1 / -1; }
  html.ui-new #view .mk-filters > select { text-overflow: ellipsis; }
}
/* плитки-показатели на телефоне: подпись всегда в две строки высотой — цифры в одном ряду стоят на одной линии */
@media (max-width: 760px) {
  html.ui-new body[data-route="marketing"] #view .kpis .kpi > .label { min-height: 2.5em; line-height: 1.25; }
  html.ui-new body[data-route="marketing"] #view .kpis .kpi { justify-content: flex-start; }
  html.ui-new body[data-route="marketing"] #view .mk-eff-who { min-width: 220px; }
  /* фильтры реестра документов: менеджер во всю ширину, месяц и год рядом, счётчик — под ними */
  html.ui-new #view .chips:has(> #reg-manager) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .chips:has(> #reg-manager) > select { width: 100% !important; min-width: 0; margin: 0; }
  html.ui-new #view .chips:has(> #reg-manager) > #reg-manager { grid-column: 1 / -1; }
  html.ui-new #view .chips:has(> #reg-manager) > :not(select) { grid-column: 1 / -1; align-self: center; }
}
/* узкие таблицы маркетинга (3–4 колонки) на телефоне — строкой-карточкой: название сверху во всю ширину, цифры под ним в ряд; без прокрутки вбок */
@media (max-width: 760px) {
  html.ui-new body[data-route="marketing"] #view .scroll-x:has(> .tbl > * > tr > :nth-child(3):last-child, > .tbl > * > tr > :nth-child(4):last-child) { overflow: visible; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) { display: block; width: 100%; min-width: 0; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) > :is(thead, tbody, tfoot) { display: block; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) tr { display: grid; column-gap: 10px; row-gap: 4px; padding: 10px 0; border-bottom: .5px solid var(--sep); align-items: baseline; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(3):last-child) tr { grid-template-columns: minmax(0, 1fr) auto; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(4):last-child) tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) :is(td, th) { display: block; padding: 0; border: 0; min-width: 0; max-width: none; text-align: right; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) :is(td, th):first-child { grid-column: 1 / -1; text-align: left; white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(3):last-child) :is(td, th):nth-child(2) { text-align: left; white-space: normal; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(3):last-child) :is(td, th):nth-child(3):not(.num) { white-space: normal; max-width: 46vw; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) td.num { font-size: 14px; white-space: nowrap; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) td.num:has(> :not(br)) { white-space: normal; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) thead th:first-child:empty { display: none; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:is(:has(tr > :nth-child(3):last-child), :has(tr > :nth-child(4):last-child)) thead tr:not(:has(th:not(:empty))) { display: none; }
}
/* строки-ссылки списков (письма и т. п.) — без подчёркивания; карточки подряд в простом блоке — с ровным зазором */
html.ui-new #view a.row, html.ui-new #view a.row * { text-decoration: none; }
html.ui-new body[data-route="marketing"] #view div:not([class]) > :is(.card, details.card) + :is(.card, details.card) { margin-top: 12px; }
html.ui-new #view .tbl td > a:first-child { text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td:has(> a:first-child) { white-space: normal; min-width: 200px; max-width: 240px; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td > a:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl td > a:first-child + .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* группы клиентов на телефоне — ровной сеткой в два столбца: название слева, число справа */
@media (max-width: 760px) {
  html.ui-new #view .chips:has(> [data-cl-cohort]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .chips > [data-cl-cohort] { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; margin: 0; }
}
@media (max-width: 760px) {
  html.ui-new #view .scroll-x > .tbl td .ds-cl { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  /* период рекламы: три готовых периода в ряд одной ширины, «Свой период» — под ними во всю ширину */
  html.ui-new #view .chips:has(> [data-ads-preset]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .chips > [data-ads-preset] { margin: 0; min-width: 0; justify-content: center; text-align: center; }
  html.ui-new #view .chips > [data-ads-preset="custom"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html.ui-new #view .chips:has(> [data-utm-preset]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html.ui-new #view .chips > [data-utm-preset] { margin: 0; min-width: 0; padding-left: 6px; padding-right: 6px; justify-content: center; text-align: center; }
  html.ui-new #view .chips > [data-utm-preset="custom"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* 4 колонки, где вторая — текст (кампания): текст второй строкой во всю ширину, цифры — третьей строкой справа */
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(4):last-child):has(td:nth-child(2):not(.num)) :is(td, th):nth-child(2) { grid-column: 1 / -1; text-align: left; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(4):last-child):has(td:nth-child(2):not(.num)) :is(td, th):nth-child(3) { grid-column: 2; }
  html.ui-new body[data-route="marketing"] #view .scroll-x > .tbl:has(tr > :nth-child(4):last-child):has(td:nth-child(2):not(.num)) :is(td, th):nth-child(4) { grid-column: 3; }
}
/* шапка месяца (‹ Название · 2026-10 ›) на телефоне: стрелки по краям, название между ними, выбор месяца — строкой ниже */
@media (max-width: 760px) {
  html.ui-new #view .mb-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
  html.ui-new #view .mb-head > .mb-title { margin: 0; font-size: 16px; line-height: 1.25; text-align: center; text-wrap: balance; letter-spacing: -.01em; }
  html.ui-new #view .mb-head > :not(.sc-nav, .mb-title) { grid-column: 1 / -1; width: 100%; }
}
html.ui-new #view details.card.cl-uni { margin-bottom: 12px; }
/* таблица прямо в карточке (без прокрутки): длинная метка без пробелов переносится, а не распирает страницу */
html.ui-new body[data-route="marketing"] #view .grid > .card { min-width: 0; }
html.ui-new body[data-route="marketing"] #view .card > .tbl td:not(.num) { overflow-wrap: anywhere; }

/* ---------- Инфлюенс → Обзор (26.10.2026): период под плитками, большой график всплесков, карточки выходов ---------- */
html.ui-new #view .mk-itiles .sp-tile-top svg { width: 24px; height: 24px; }
html.ui-new #view .mk-itiles > .sp-tile { justify-content: space-between; }
html.ui-new #view .seg.mk-period { margin: 0 0 14px; }
@media (min-width: 761px) { html.ui-new #view .seg.mk-period { width: max-content; } }
html.ui-new #view .mk-eff-chart { display: grid; gap: 10px; min-width: 0; }
html.ui-new #view .mk-eff-ch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
html.ui-new #view .mk-eff-ch h2 { margin: 0; }
html.ui-new #view .mk-eff-ch select { width: auto; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
html.ui-new #view .mk-eff-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
html.ui-new #view .mk-eff-legend span::before { content: ""; display: inline-block; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
html.ui-new #view .mk-eff-legend .l-line::before { width: 16px; height: 3px; background: var(--ink); }
html.ui-new #view .mk-eff-legend .l-band::before { width: 16px; height: 10px; background: color-mix(in srgb, var(--ink) 10%, transparent); border-top: 1.5px dashed var(--muted); }
html.ui-new #view .mk-eff-legend .l-spike::before { width: 16px; height: 10px; background: color-mix(in srgb, var(--pos) 28%, transparent); }
html.ui-new #view .mk-eff-legend .l-mark::before { width: 12px; height: 12px; border-radius: 50%; background: #0a84ff; }
html.ui-new #view .mk-eff-plot, html.ui-new #view .mk-eff-mini { width: 100%; min-width: 0; overflow: hidden; }
html.ui-new #view .mk-eff-svg { display: block; width: 100%; height: auto; }
html.ui-new #view .mk-eff-grid { stroke: var(--sep); stroke-width: 1; }
html.ui-new #view .mk-eff-band { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
html.ui-new #view .mk-eff-base { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
html.ui-new #view .mk-eff-spike { fill: color-mix(in srgb, var(--pos) 26%, transparent); }
html.ui-new #view .mk-eff-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
html.ui-new #view .mk-eff-vl { stroke: #0a84ff; stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .7; }
html.ui-new #view .mk-eff-vl.on { stroke-dasharray: none; opacity: 1; }
html.ui-new #view .mk-eff-dot { fill: #0a84ff; }
html.ui-new #view .mk-eff-ini { fill: #fff; font-size: 10px; font-weight: 700; pointer-events: none; }
html.ui-new #view .mk-eff-tick { fill: var(--muted); font-size: 11px; }
html.ui-new #view .mk-eff-m { cursor: pointer; outline: none; }
html.ui-new #view .mk-eff-m:is(:hover, :focus-visible) .mk-eff-dot { fill: var(--ink); }
html.ui-new #view .mk-eff-m:is(:hover, :focus-visible) .mk-eff-vl { opacity: 1; stroke-dasharray: none; }
html.ui-new #view .mk-eff-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
html.ui-new #view .mk-eff-card { display: grid; gap: 12px; min-width: 0; margin: 0; transition: box-shadow .3s; }
html.ui-new #view .mk-eff-card.flash { box-shadow: 0 0 0 3px #0a84ff; }
html.ui-new #view .mk-eff-ct { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
html.ui-new #view .mk-eff-ct .mk-play { width: 56px; height: 96px; }
html.ui-new #view .mk-eff-cn { display: grid; gap: 3px; min-width: 0; justify-items: start; }
html.ui-new #view .mk-eff-cn b { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
html.ui-new #view .mk-eff-cn small { font-size: 13px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
html.ui-new #view .mk-eff-cn .mk-eff-pr { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ui-new #view .mk-eff-st { margin-top: 4px; }
html.ui-new #view .mk-eff-st.ok { --lbd: var(--lbd-ok); }
html.ui-new #view .mk-eff-st.mid { --lbd: var(--lbd-warn); }
html.ui-new #view .mk-eff-calc { display: grid; font-size: 14px; }
html.ui-new #view .mk-eff-calc > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; border-top: .5px solid var(--sep); }
html.ui-new #view .mk-eff-calc > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.ui-new #view .mk-eff-calc > div.muted { color: var(--muted); }
html.ui-new #view .mk-eff-calc > div.msg { color: var(--muted); }
html.ui-new #view .mk-eff-calc > div.msg > span:first-child { grid-column: 1 / -1; }
html.ui-new #view .mk-eff-calc > div.msg > span:last-child:empty { display: none; }
html.ui-new #view .mk-eff-calc > div.tot { font-weight: 700; font-size: 16px; }
html.ui-new #view .mk-eff-calc > div.tot.pos > span:last-child { color: var(--pos); }
html.ui-new #view .mk-eff-calc small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
html.ui-new #view .mk-eff-brand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 14px; }
html.ui-new #view .mk-eff-brand b { font-size: 16px; font-variant-numeric: tabular-nums; }
html.ui-new #view .mk-eff-brand b.pos { color: var(--pos); }
html.ui-new #view .mk-eff-brand small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
html.ui-new #view .mk-eff-exact { font-size: 13px; color: var(--muted); }
html.ui-new #view .mk-eff-exact b { color: var(--text); font-variant-numeric: tabular-nums; }
html.ui-new #view .mk-eff-card > .link-btn { justify-self: start; }
@media (max-width: 760px) {
  html.ui-new #view .mk-eff-cards { grid-template-columns: 1fr; }
  html.ui-new #view .mk-eff-ch select { width: 100%; }
}
html.ui-new #view .mk-eff-calc > div.tail > span:last-child { white-space: normal; }

/* ---------- Календарь «Выходы интеграций» (26.10.2026): сумма всегда видна, несколько сделок в день, на телефоне — список по дням ---------- */
html.ui-new #view .ic-chip .ic-p { white-space: nowrap; overflow: visible; }
html.ui-new #view .ic-chip .ic-p b { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
html.ui-new #view .ic-chip .ic-ps { display: none; }
html.ui-new #view .ic-chip .ic-ct { font-size: 12px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-new #view .ic-chip .ic-n { -webkit-line-clamp: 1; }
@container (max-width: 980px) {
  html.ui-new #view .sc-cal .ic-chip .ic-pf { display: none; }
  html.ui-new #view .sc-cal .ic-chip .ic-ps { display: inline; }
  html.ui-new #view .sc-cal .ic-chip { padding: 6px 7px; }
}
html.ui-new #view .ic-day .sc-more { font-weight: 600; color: var(--text); padding: 4px 6px; border-radius: 8px; background: var(--surface); }
html.ui-new #view .ic-day .ic-cnt { font-size: 12px; }
/* телефон: список по дням */
html.ui-new #view .ic-wk { display: grid; gap: 0; padding: 14px; }
html.ui-new #view .ic-wk .sc-wtop { font-size: 17px; margin: 0 2px 6px; gap: 10px; }
html.ui-new #view .ic-ag { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: .5px solid var(--sep); }
html.ui-new #view .ic-ag-d { display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 2px; text-align: center; }
html.ui-new #view .ic-ag-d span { font-size: 13px; color: var(--muted); text-transform: uppercase; }
html.ui-new #view .ic-ag-d b { font-size: 26px; line-height: 1; }
html.ui-new #view .ic-ag-d small { font-size: 12px; color: var(--muted); line-height: 1.2; }
html.ui-new #view .ic-ag.today .ic-ag-d b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-contrast); font-size: 20px; }
html.ui-new #view .ic-ag.past:not(.today) .ic-ag-d b { color: var(--muted); }
html.ui-new #view .ic-ag-l { display: grid; gap: 8px; min-width: 0; }
html.ui-new #view .ic-ag-none { padding: 10px 0; font-size: 15px; }
html.ui-new #view .ic-ag .ic-chip { padding: 12px 14px; gap: 12px; border-radius: 14px; align-items: center; margin: 0; }
html.ui-new #view .ic-ag .ic-av { display: grid; width: 40px; height: 40px; font-size: 14px; }
html.ui-new #view .ic-ag .ic-n { font-size: 17px; -webkit-line-clamp: 2; }
html.ui-new #view .ic-ag .ic-p b { font-size: 17px; }
html.ui-new #view .ic-ag .ic-ct, html.ui-new #view .ic-ag .ic-s { font-size: 14px; }
@container (max-width: 980px) { html.ui-new #view .sc-cal .ic-d { flex-wrap: wrap; row-gap: 4px; } }

/* ---------- Маркетинг → Обзор (26.10.2026): ровная таблица по месяцам, реклама на маркетплейсах одним блоком ---------- */
html.ui-new #view .mko .card + .card, html.ui-new #view .mko .grid + .card, html.ui-new #view .mko .card + p { margin-top: 12px; }
html.ui-new #view .mko-tbl { width: 100%; font-variant-numeric: tabular-nums; }
html.ui-new #view .mko-tbl th { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; padding: 0 12px 10px; border-bottom: .5px solid var(--sep); }
html.ui-new #view .mko-tbl th:first-child, html.ui-new #view .mko-tbl td:first-child { padding-left: 0; text-align: left; }
html.ui-new #view .mko-tbl th.num, html.ui-new #view .mko-tbl td.num { text-align: right; white-space: nowrap; }
html.ui-new #view .mko-tbl th:last-child, html.ui-new #view .mko-tbl td:last-child { padding-right: 0; }
html.ui-new #view .mko-tbl td { padding: 11px 12px; border-bottom: .5px solid var(--sep); vertical-align: middle; }
html.ui-new #view .mko-tbl tr.mko-total td { font-weight: 700; border-top: 1px solid var(--text); border-bottom: 0; }
html.ui-new #view .mko-tbl tr.mko-share td { border-bottom: 0; padding-top: 2px; font-size: 14px; color: var(--muted); }
html.ui-new #view .mko-tbl tr.mko-share td.mko-good { color: var(--pos); font-weight: 600; }
html.ui-new #view .mko-tbl tr.mko-share td.mko-bad { color: var(--neg); font-weight: 600; }
html.ui-new #view .mko .kpi .value.mko-bad { color: var(--neg); }
html.ui-new #view .mko-tbl tr.mko-rev td { color: var(--muted); font-size: 14px; border-top: .5px solid var(--sep); border-bottom: 0; }
html.ui-new #view .mko-foot { margin-top: 10px; }
html.ui-new #view .mko-mp { display: grid; gap: 0; }
html.ui-new #view .mko-mp-lead { margin: -4px 0 6px; }
html.ui-new #view .mko-mp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 0; border-top: .5px solid var(--sep); }
html.ui-new #view .mko-mp-t { display: grid; gap: 2px; min-width: 0; }
html.ui-new #view .mko-mp-t b { font-size: 16px; }
html.ui-new #view .mko-mp-t span { font-size: 14px; color: var(--muted); }
html.ui-new #view .mko-mp-t small { font-size: 13.5px; color: var(--text); line-height: 1.4; margin-top: 4px; }
html.ui-new #view .mko-mp-v { display: grid; justify-items: end; gap: 4px; text-align: right; }
html.ui-new #view .mko-mp-v b { font-size: 20px; white-space: nowrap; }
html.ui-new #view .mko-mp-v a { font-size: 13px; }
@media (max-width: 760px) {
  html.ui-new #view .mko-mp-row { grid-template-columns: 1fr; gap: 6px; }
  html.ui-new #view .mko-mp-v { grid-auto-flow: column; justify-content: space-between; align-items: baseline; justify-items: start; }
  html.ui-new body[data-route="marketing"] #view .mko-tbl tr.mko-total { border-top: 1px solid var(--text); }
  html.ui-new body[data-route="marketing"] #view .mko-tbl tr.mko-total td, html.ui-new body[data-route="marketing"] #view .mko-tbl tr.mko-share td, html.ui-new body[data-route="marketing"] #view .mko-tbl tr.mko-rev td { border: 0; padding-top: 0; }
}
