/* CRM Маркетосы — одна таблица стилей без фреймворка. Токены сверху, тёмная тема — по системе.
   Акцент — фирменный фиолетовый Маркетосов; семантика (красный, янтарный, зелёный) живёт отдельно и акцентом не служит. */

:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --hover: #f2f3f6;
  --line: #e3e5ea;
  --line-strong: #cfd3da;
  --text: #15171c;
  --text-2: #464b57;
  --text-3: #686e7b;
  --accent: #673085;
  --accent-hover: #572871;
  --accent-soft: #f2ebf7;
  --accent-text: #5b2a76;
  --on-accent: #ffffff;
  --chart: #7a3fa0;
  --chart-muted: #b9a5c9;
  --red: #c42b2b;
  --red-soft: #fdeded;
  --red-line: #f1b9b9;
  --red-badge: #c42b2b;
  --amber: #9a5b00;
  --amber-soft: #fdf3e2;
  --green: #1d7a4b;
  --green-soft: #e6f4ec;
  --nav-bg: #ffffff;
  --shadow-1: 0 1px 2px rgba(17, 20, 28, 0.05), 0 1px 3px rgba(17, 20, 28, 0.06);
  --shadow-2: 0 8px 24px -8px rgba(17, 20, 28, 0.18), 0 2px 6px rgba(17, 20, 28, 0.06);
  --shadow-drag: 0 18px 36px -10px rgba(40, 20, 60, 0.32), 0 4px 10px rgba(17, 20, 28, 0.08);
  --ring: 0 0 0 3px rgba(103, 48, 133, 0.28);
  --radius: 10px;
  --radius-sm: 7px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111216;
    --surface: #191b21;
    --surface-2: #1e2027;
    --hover: #23262e;
    --line: #2a2e37;
    --line-strong: #3a3f4b;
    --text: #e9eaee;
    --text-2: #b6bac4;
    --text-3: #969ba7;
    --accent: #8d55b3;
    --accent-hover: #9d68c2;
    --accent-soft: rgba(170, 120, 215, 0.14);
    --accent-text: #c9a6e8;
    --chart: #a676d4;
    --chart-muted: #5d4c6d;
    --red: #f07474;
    --red-soft: rgba(240, 116, 116, 0.13);
    --red-line: rgba(240, 116, 116, 0.42);
    --red-badge: #d23c3c;
    --amber: #e3ab4f;
    --amber-soft: rgba(227, 171, 79, 0.13);
    --green: #5fc690;
    --green-soft: rgba(95, 198, 144, 0.13);
    --nav-bg: #15171c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 10px 28px -8px rgba(0, 0, 0, 0.6);
    --shadow-drag: 0 18px 40px -10px rgba(0, 0, 0, 0.7);
    --ring: 0 0 0 3px rgba(170, 120, 215, 0.35);
  }
}

/* ---------- основа ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.45 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; caret-color: var(--accent);
}
::selection { background: var(--accent-soft); color: var(--text); }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a.link:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 15px; line-height: 1.3; }
h3 { font-size: 13.5px; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
.num, table.data td.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.green { color: var(--green); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- каркас ---------- */

.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px;
  background: var(--nav-bg); border-right: 1px solid var(--line); padding: 14px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-3); letter-spacing: 0; }
.nav a.item {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; transition: background 120ms, color 120ms;
}
.nav a.item:hover { background: var(--hover); color: var(--text); }
.nav a.item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.nav a.item .count { margin-left: auto; }
.nav .group { margin: 14px 10px 6px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.nav .bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--line); }
.count.hot { background: var(--red-badge); border-color: transparent; color: #fff; }

.main { min-width: 0; padding: 22px 28px 48px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--text-3); margin-top: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- элементы ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background 120ms, border-color 120ms;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.seg a { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px;
  color: var(--text-2); font-weight: 500; font-size: 13px; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

input, select, textarea {
  font: 400 14px/1.4 var(--font); color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; height: 34px; width: 100%;
  transition: border-color 120ms, box-shadow 120ms;
}
textarea { padding: 8px 10px; height: auto; resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.fields { display: grid; gap: 12px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > .head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel > .head .actions { margin-left: auto; display: flex; gap: 6px; }
.panel > .body { padding: 14px 16px; }
.panel > .body.flush { padding: 0; }
.form-foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }

.notice { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }
.notice.error { background: var(--red-soft); color: var(--red); }
.notice.ok { background: var(--green-soft); color: var(--green); }
.notice.warn { background: var(--amber-soft); color: var(--amber); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.pill.open .dot { background: var(--accent); }
.pill.won { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.won .dot { background: var(--green); }
.pill.lost { color: var(--text-3); }
.pill.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pill.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.pill.pay { background: var(--green-soft); color: var(--green); border-color: transparent; }

.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; }

.empty { padding: 28px 16px; text-align: center; color: var(--text-3); }
.empty strong { display: block; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }

/* ---------- списки задач (Сегодня, Задачи, карточка) ---------- */

.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: 54px 22px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 10px 16px; border-top: 1px solid var(--line); }
.tasks .task:first-child { border-top: 0; }
.task .when { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 500; padding-top: 1px; }
.task .when.red { color: var(--red); }
.task .kind { color: var(--text-3); padding-top: 1px; }
.task .what { min-width: 0; }
.task .what .title { color: var(--text); }
.task .what .meta { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.task .what .meta a:hover { color: var(--accent-text); }
.task form { margin: 0; }
.done-btn { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; color: transparent; transition: border-color 120ms, color 120ms, background 120ms; }
.done-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* ---------- Сегодня ---------- */

.today { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.money { display: grid; gap: 0; }
.money .row { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.money .row:first-child { border-top: 0; }
.money .row .label { color: var(--text-2); }
.money .row .value { margin-left: auto; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.money .row .note { display: block; font-size: 12px; color: var(--text-3); }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.alerts li:first-child { border-top: 0; }
.alerts .who { font-weight: 500; }
.alerts .i { color: var(--red); margin-top: 1px; }
.clients-mini { list-style: none; margin: 0; padding: 0; }
.clients-mini li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.clients-mini li:first-child { border-top: 0; }
.clients-mini a { font-weight: 500; }
.clients-mini a:hover { color: var(--accent-text); }
.clients-mini .right { margin-left: auto; }

/* ---------- доски (Продажи, Клиенты в работе) ---------- */

.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.col { width: 272px; flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: calc(100vh - 150px); transition: border-color 140ms, background 140ms; }
.col > header { padding: 11px 12px 9px; border-bottom: 1px solid var(--line); }
.col > header .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.col > header .name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.col.won > header .name .dot { background: var(--green); }
.col.lost > header .name .dot { background: var(--line-strong); }
.col > header .meta { display: flex; gap: 8px; margin-top: 3px; color: var(--text-3); font-size: 12.5px; }
.col > header .meta .sum { margin-left: auto; color: var(--text-2); font-weight: 500; }
.col .cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 64px; flex: 1; }
.col.drop-target { border-color: var(--accent); background: var(--accent-soft); }
.col.lost .card { opacity: 0.78; }
.col-empty { margin: 4px 0; padding: 14px 8px; text-align: center; color: var(--text-3); font-size: 12.5px;
  border: 1px dashed var(--line-strong); border-radius: 8px; }

.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px;
  box-shadow: var(--shadow-1); cursor: grab; transition: border-color 120ms, box-shadow 160ms, transform 160ms; }
.card:hover { border-color: var(--line-strong); }
.card.is-red { border-color: var(--red-line); }
.card.dragging { cursor: grabbing; transform: rotate(1.2deg) scale(1.02); box-shadow: var(--shadow-drag); }
.card .top { display: flex; align-items: flex-start; gap: 8px; }
.card .name { font-weight: 600; line-height: 1.3; }
.card .top .avatar { margin-left: auto; }
.card .sub { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.card .amount { margin-top: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card .step { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-2);
  display: flex; gap: 6px; align-items: flex-start; }
.card .step .i { color: var(--text-3); margin-top: 1px; }
.card .step.red, .card .step.red .i { color: var(--red); }
.card .step time { color: var(--text-3); white-space: nowrap; }
.card .step.red time { color: var(--red); font-weight: 500; }
.card .flags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card .ad { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: end;
  font-size: 12px; color: var(--text-3); }
.card .ad b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.card .ad svg { grid-row: span 2; }

/* ---------- таблицы ---------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-3); padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
table.data thead tr.group th { border-bottom: 0; padding-bottom: 0; color: var(--text-2); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--hover); }
table.data .num { text-align: right; white-space: nowrap; }
table.data th.num { text-align: right; }
table.data tr.total td { font-weight: 600; background: var(--surface-2); }
table.data .name { font-weight: 500; }
table.data .name:hover { color: var(--accent-text); }
table.data .sep { border-left: 1px solid var(--line); }
.cell-sub { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
table.data .pill { white-space: normal; height: auto; min-height: 22px; padding: 3px 8px; line-height: 1.3; align-items: flex-start; }
table.data .pill svg { margin-top: 1px; }
.flagline { margin-top: 6px; }
.summary { color: var(--text-3); }
.summary b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- графики ---------- */

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart .label { fill: var(--text-3); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .label.strong { fill: var(--text); font-weight: 600; }
.chart .bar { fill: var(--chart); }
.chart .bar.zero { fill: var(--line-strong); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { fill: var(--accent-hover); }
.spark { display: block; overflow: visible; }
.spark .line { fill: none; stroke: var(--chart-muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .end { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.spark .wash { fill: var(--chart); opacity: 0.09; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--text); color: var(--surface); border-radius: 7px;
  padding: 6px 9px; font-size: 12px; line-height: 1.35; box-shadow: var(--shadow-2); opacity: 0; transition: opacity 80ms;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip b { font-weight: 600; font-size: 13px; display: block; }
.tip.on { opacity: 1; }

/* ---------- карточка клиента ---------- */

.client { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  color: var(--text-2); border: 1px solid var(--line); }
.feed li.stage .ico { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.feed .meta { font-size: 12.5px; color: var(--text-3); margin-bottom: 2px; }
.feed .text { white-space: pre-line; overflow-wrap: anywhere; }
.feed li.stage .text { color: var(--text-2); }
.feed audio { width: 100%; margin: 4px 0 6px; }
.composer textarea { min-height: 72px; }
.composer .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px 150px; gap: 8px; margin-top: 10px; }
.composer .foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.composer .kinds { display: flex; gap: 4px; flex-wrap: wrap; }
.composer .kinds label { cursor: pointer; }
.composer .kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.composer .kinds span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.composer .kinds input:checked + span { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.composer .kinds input:focus-visible + span { box-shadow: var(--ring); }
.deal { padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.deal:first-child { border-top: 0; }
.deal .line { display: flex; align-items: center; gap: 8px; }
.deal .line .muted { margin-left: auto; font-size: 12px; }
.deal .inline { display: grid; grid-template-columns: 1fr 110px; gap: 6px; }
.contact { padding: 10px 16px; border-top: 1px solid var(--line); }
.contact:first-child { border-top: 0; }
.contact summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.contact summary::-webkit-details-marker { display: none; }
.contact .links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.contact .links a:hover { color: var(--accent-text); }
.contact form { margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.stage-grid { display: grid; grid-template-columns: 78px minmax(0, 1fr) 138px 78px 98px 190px; gap: 8px; align-items: center; }
.stage-grid.add { grid-template-columns: 78px minmax(0, 1fr) 138px 78px 98px 190px; }
.stage-row { padding: 6px 16px; border-top: 1px solid var(--line); }
.stage-row.stage-head { padding: 9px 16px; font-size: 12.5px; font-weight: 500; color: var(--text-3); border-top: 0; border-bottom: 1px solid var(--line); }
.stage-row.add { background: var(--surface-2); padding: 10px 16px; }
.stage-row .acts { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
details.more > summary { cursor: pointer; color: var(--text-3); font-size: 13px; list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { color: var(--text); }

/* ---------- вход ---------- */

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 360px; }
.login .brand { justify-content: center; padding-bottom: 22px; font-size: 17px; }
.login .panel { padding: 22px; box-shadow: var(--shadow-2); }

/* ---------- движение ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- узкие экраны ---------- */

@media (max-width: 1100px) {
  .today, .client { grid-template-columns: minmax(0, 1fr); }
  .composer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 4px;
    overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px 0 2px; }
  .brand > span { display: none; }
  .nav .group { display: none; }
  .nav a.item { flex: none; height: 34px; }
  .nav a.item .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav a.item[aria-current="page"] .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav .bottom { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; }
  .main { padding: 16px 14px 40px; }
  .fields.two { grid-template-columns: minmax(0, 1fr); }
  .composer .row { grid-template-columns: minmax(0, 1fr); }
  .col { width: 82vw; max-height: none; }
  .chart { overflow-x: auto; }
  .chart svg { min-width: 640px; }
  .stage-grid, .stage-grid.add { grid-template-columns: 64px minmax(0, 1fr) 120px; }
  .stage-row.stage-head { display: none; }
  .task { grid-template-columns: 46px 20px minmax(0, 1fr) auto; padding: 10px 12px; gap: 8px; }
}
