@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0d0d12;
  --muted: #6f6f6f;
  --line: #ededed;
  --border: #c7c7c7;
  --paper: #f6f6f6;
  --white: #fff;
  --blue: #008cff;
  --blue-deep: #0070d6;
  --blue-light: #9ad1ff;
  --blue-tint: #f0f7ff;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #d82c20;
  --red-light: #ffcfcf;
  --dark-elevated: #15161c;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --content-max: 1440px;
  --shadow-sm: 0 2px 8px rgba(13, 13, 18, .06);
  --shadow-md: 0 8px 40px rgba(13, 13, 18, .12);
  color: var(--ink);
  background: var(--white);
  font-family: "Golos Text", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}


/* Shared visual language with crm.osno-va.com/sales; CRM-specific layout. */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:320px;font-size:15px;line-height:1.55;background:var(--white)}
a{color:var(--blue-deep);text-decoration:none;text-underline-offset:3px}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:100;padding:10px 16px;background:white;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.topbar{position:sticky;top:0;z-index:10;background:rgba(13,13,18,.96);color:var(--white);border-bottom:1px solid rgba(255,255,255,.12)}
.topbar__inner{display:flex;gap:24px;align-items:center;min-height:52px;padding:6px clamp(16px,4vw,64px);flex-wrap:nowrap}
.brand{display:inline-flex;align-items:center;gap:14px;color:white;white-space:nowrap}
.brand__name{font-size:24px;font-weight:600;letter-spacing:-.04em}
.brand__product{border-left:1px solid #ffffff42;padding-left:14px;color:#ffffffb3;font-size:14px}
nav{display:flex;gap:22px;flex:1;flex-wrap:wrap}
nav a{padding:8px 2px;color:#ffffffc2;font-size:15px}
.topbar nav a:hover,.topbar nav a[aria-current=page]{color:white;text-decoration:none}
.topbar nav a[aria-current=page]{box-shadow:inset 0 -2px var(--blue)}
.user-menu{font-size:12px;color:#ffffffb3;white-space:nowrap}
/* Rev. 235: one-row top menu; overflow moves the rest behind the burger, then hides the primary labels. */
.topnav{display:flex;align-items:center;gap:20px;flex:1;min-width:0;flex-wrap:nowrap;position:relative}
.topnav__rest{display:flex;align-items:center;gap:20px}
.topnav a{white-space:nowrap}
.topnav__primary{display:inline-flex;align-items:center;gap:6px}
.topnav__icon,.topnav__toggle svg,.stat__icon{flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topnav__toggle{display:inline-flex;margin-left:auto;padding:6px 8px;min-height:36px;border:0;border-radius:8px;background:none;color:#ffffffc2}
.topnav__toggle[hidden]{display:none}
.topnav__toggle:hover,.topbar.is-open .topnav__toggle{background:#ffffff1f;color:white}
.topbar.is-collapsed .topnav__rest{display:none;position:absolute;top:calc(100% + 10px);right:0;z-index:30;flex-direction:column;align-items:stretch;gap:0;min-width:230px;padding:6px;border:1px solid #ffffff26;border-radius:12px;background:#15151c;box-shadow:0 12px 32px #0006}
.topbar.is-collapsed.is-open .topnav__rest{display:flex}
.topbar.is-collapsed .topnav__rest a{padding:10px 12px;border-radius:8px}
.topbar.is-collapsed .topnav__rest a:hover{background:#ffffff14}
.topbar.is-collapsed .topnav__rest a[aria-current=page]{box-shadow:inset 3px 0 var(--blue)}
.topbar.is-iconic .topnav__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.topbar.is-iconic .topnav{gap:14px}
.topbar.is-iconic .brand__product,.topbar.is-iconic .user-menu{display:none}
main,footer{width:100%;max-width:1800px;margin:auto;padding:24px clamp(20px,4vw,64px)}
main{padding-top:14px}
main{min-height:calc(100vh - 140px)}
footer{padding-top:12px;padding-bottom:24px;font-size:11px;color:var(--muted)}
footer a{color:inherit}
h1,h2,h3{font-weight:500;line-height:1.15;letter-spacing:-.025em}
h1{font-size:clamp(30px,4vw,48px);margin:0 0 22px}
h2{font-size:23px;margin:0 0 14px}
h3{font-size:17px;margin:0 0 8px}
.login{max-width:800px;padding-top:12vh}
.public-information{max-width:800px;font-size:16px;padding-top:32px;overflow-wrap:anywhere}
.public-information nav{display:flex;flex-wrap:wrap;gap:8px 24px;margin-bottom:40px}
.public-information nav a{padding:8px 0;color:var(--blue-deep)}
.public-information nav a[aria-current=page]{color:var(--ink);font-weight:600}
.public-information h2{margin-top:32px}
.login h1{font-size:clamp(36px,5vw,60px)}
.button,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 18px;border:1.5px solid transparent;border-radius:100px;background:var(--blue);color:white;cursor:pointer;line-height:1.2}
.button:hover,button:hover{background:var(--blue-deep);text-decoration:none}
button.secondary{border-color:var(--blue);background:white;color:var(--blue-deep)}
button.secondary:hover,button.secondary:focus-visible{border-color:var(--blue-deep);background:var(--blue-tint);color:var(--blue-deep)}
button.secondary:active{border-color:#005fb8;background:#ddecff;color:#005fb8}
button:disabled{opacity:.45;cursor:default}
input,select,textarea{padding:10px 12px;border:1.5px solid var(--border);border-radius:8px;background:white;color:var(--ink);max-width:100%;min-height:40px}
textarea{width:100%;min-height:96px;resize:vertical}
label{display:block;margin:10px 0;color:var(--muted);font-size:13px}
label>input,label>select{display:block;width:100%;color:var(--ink)}
.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.filter-bar{background:var(--paper);border-radius:16px;padding:8px 10px;margin:8px 0 10px;gap:8px}
.filter-bar input{flex:1;min-width:200px}
.board-head{display:flex;align-items:center;gap:4px 16px;flex-wrap:wrap;min-height:30px;padding:0 0 6px;border-bottom:1px solid var(--line)}
.board-stats{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-left:auto}
.stat{display:inline-flex;align-items:center;gap:4px;min-height:26px;padding:2px 7px;border-radius:100px;font-size:12px;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.stat__icon{width:14px;height:14px;stroke-width:2;color:var(--muted)}
.stat.is-zero{color:var(--muted)}.stat.is-zero .stat__icon{opacity:.55}
.stat.is-alert,.stat.is-alert .stat__icon{color:#9b1c14}
button.stat.chip{min-height:26px;padding:2px 9px;font-size:12px}
.chip[aria-pressed="true"] .stat__icon{color:inherit}
.chip--today{gap:5px}.chip--today.is-zero .task-light{opacity:.55}
/* Rev. 297 (owner 09.10.2026): header chips keep their own look — the generic button:hover (solid blue) never reaches them. */
#waiting-chip{--chip-ink:#8a5a00;--chip-tint:#fbefd4;--chip-line:#ecd08f}
#overdue-chip{--chip-ink:#9b1c14;--chip-tint:#fdeceb;--chip-line:#f2b5ae}
#hold-chip{--chip-ink:#005fb8;--chip-tint:#e6f2ff;--chip-line:#9ad1ff}
#today-chip{--chip-ink:#1d6b3d;--chip-tint:#e3f4ea;--chip-line:#a9d9bb}
button.stat.chip:hover{background:var(--paper);border-color:var(--border)}
button.stat.chip[aria-pressed="true"]{background:var(--chip-tint);border-color:var(--chip-line);color:var(--chip-ink);font-weight:600}
button.stat.chip[aria-pressed="true"]:hover{border-color:var(--chip-ink)}
button.stat.chip[aria-pressed="true"] .stat__ai{color:inherit}
.stat__ai{position:relative;font-size:10px;font-weight:700;letter-spacing:.02em;color:var(--muted)}
.stat__ai::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;border-top:1.5px solid currentColor;transform:rotate(-24deg)}
.stat--sync{color:var(--muted)}
.pager{display:inline-flex;align-items:center;gap:6px}.pager[hidden]{display:none}
.pager button{min-height:32px;padding:5px 12px;font-size:13px}
.traffic{display:flex;align-items:center;gap:4px 14px;flex-wrap:wrap;flex:1 1 auto;min-width:0;font-size:11px;line-height:1.5;color:var(--muted)}
.traffic__site{display:contents;font-variant-numeric:tabular-nums}
.traffic__site>strong{font-size:12px;color:var(--ink);font-weight:500;white-space:nowrap}
.traffic__site~.traffic__site>strong{padding-left:12px;border-left:1px solid var(--line)}
.traffic__metrika{display:inline-flex;align-items:center;color:var(--muted)}
.traffic__metrika:hover{color:var(--blue-deep)}
.traffic__icon{fill:currentColor}
.traffic__value{white-space:nowrap}
.traffic__value b{font-weight:500;color:var(--ink)}
.traffic__delta{font-size:10px}
.traffic__delta.up{color:#15803d}
.traffic__delta.down{color:var(--red)}
.traffic__period{font-size:10px;white-space:nowrap}
/* Rev. 237: on a phone the main site's numbers stay in one line; the other sites, the period and the Metrika links fold behind «+N». */
button.traffic__more{display:none;min-height:24px;min-width:28px;padding:1px 7px;border:1px solid var(--line);border-radius:100px;background:none;color:var(--ink);font-size:11px;line-height:1}
button.traffic__more:hover,button.traffic__more:focus-visible{background:var(--paper);color:var(--ink)}
.traffic__warning{color:#9a6700}
.board{display:flex;align-items:stretch;overflow-x:auto;gap:12px;padding:2px 2px 14px;scroll-snap-type:x proximity;scrollbar-gutter:stable}
.column{flex:1 0 276px;min-width:276px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--paper);scroll-snap-align:start}
.column.is-empty{flex:0 0 60px;min-width:60px;min-height:264px;padding:12px 10px;border-style:dashed;background:white}
.column__head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;margin-bottom:12px}
.column__head h2{margin:0;font-size:14px;line-height:1.25;letter-spacing:0}
.column__count{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex-shrink:0;white-space:nowrap;min-width:24px;height:24px;padding:0 6px;box-sizing:border-box;background:white;border-radius:100px;font-size:12px;color:var(--muted)}
.column.is-empty .column__head{min-height:216px;flex-direction:column;justify-content:flex-start;gap:12px;margin-bottom:0}
.column.is-empty h2{writing-mode:vertical-rl;text-orientation:mixed;max-height:min(60vh,420px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.column.is-empty .column__count{order:-1;flex-shrink:0}
.column.is-success{background:#ecfdf3;border-color:#86efac}
.column.is-success .column__head{color:#166534}
.column.is-success .column__count{background:#dcfce7;color:#166534}
.column.is-failure{background:#fff1f2;border-color:#fca5a5}
.column.is-failure .column__head{color:#991b1b}
.column.is-failure .column__count{background:#fee2e2;color:#991b1b}
.column.is-drop-target{border-color:var(--blue);background:var(--blue-tint)}
.card{display:grid;gap:7px;min-width:0;overflow:hidden;padding:12px;margin-bottom:10px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:var(--shadow-sm)}
.card>*{min-width:0;max-width:100%}
.card.is-dragging{opacity:.55}
.card:hover{border-color:var(--blue-light);box-shadow:0 4px 16px #0d0d1214}
.card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:15px;margin:0;line-height:1.3;overflow-wrap:anywhere}
.card h3 a{color:var(--ink)}
.card h3 a:hover{color:var(--blue)}
.card__owner{display:grid;gap:1px;font-size:11px;color:var(--muted)}
.card__owner strong{font-weight:500;font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.card .amount{font-weight:500;color:var(--blue-deep);font-size:13px}
.card__nurture{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#475569;line-height:1.4;margin:0}
.card__nurture summary{font-size:11px;color:var(--muted)}
.kanban-checklist{display:grid;gap:4px;margin-top:4px;padding-top:7px;border-top:1px solid var(--line);color:#475569;font-size:11px;line-height:1.3}
.kanban-checklist__title{color:var(--muted);font-size:10px}
.kanban-checklist__items{display:flex;flex-wrap:wrap;gap:3px 10px;list-style:none;margin:0;padding:0}
.kanban-checklist__item{display:inline-flex;align-items:center;gap:5px;color:inherit}
.kanban-checklist__item::before{width:7px;height:7px;flex:none;border:1px solid var(--muted);border-radius:50%;content:""}
.kanban-checklist__item.is-complete{color:var(--muted);text-decoration:line-through}
.kanban-checklist__item.is-complete::before{border-color:var(--green);background:var(--green);box-shadow:inset 0 0 0 2px white}
.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:16px}
.muted,.meta{font-size:12px;color:var(--muted)}
.badge{display:inline-block;background:var(--blue-tint);border-radius:5px;font-size:11px;margin:3px;padding:2px 6px}
.warn{color:#9a6700;background:#fffbeb;padding:10px 12px;border:1px solid #fde68a;border-radius:8px;font-size:13px}
.grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}
.deal-workspace{grid-template-columns:minmax(280px,1fr) minmax(0,2fr);align-items:start}
.deal-workspace>aside{grid-column:1;grid-row:1}
.deal-workspace>section{grid-column:2;grid-row:1}
.deal-facts dl{display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr);gap:7px 12px;margin:0;font-size:13px}
.deal-facts dt{color:var(--muted)}
.deal-facts dd{margin:0;overflow-wrap:anywhere}
.attachments ul,.other-sources ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.attachments li,.other-sources li{display:grid;gap:1px;padding-bottom:7px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.attachments small,.other-sources small{color:var(--muted)}
.other-sources h3{font-size:13px;margin:12px 0 6px}
.other-sources li>button{justify-self:start;margin-top:4px}
.conversation{border:1px solid var(--line);border-radius:10px;padding:7px 12px;margin:8px 0}
.conversation>summary{font-weight:500}
.metrics{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:18px}
.metric{font-size:36px;font-weight:500;letter-spacing:-.03em}
.message{border-bottom:1px solid var(--line);padding:14px 0;white-space:pre-wrap}
.message.out{border-left:3px solid var(--blue-light);padding-left:12px}
.message button{font-size:12px;padding:3px 10px;min-height:28px}
.message p{margin:6px 0;overflow-wrap:anywhere}
pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--paper);border-radius:8px;padding:12px;font-size:12px}
details{margin:8px 0}summary{cursor:pointer}
table{border-collapse:collapse;width:100%}td,th{text-align:left;border-bottom:1px solid var(--line);padding:9px}
.client-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:18px}
.client-heading h1{margin-bottom:6px}
.client-heading dl{display:flex;gap:28px;margin:0}
.client-heading dl div{min-width:70px}
.client-heading dt{font-size:11px;color:var(--muted)}
.client-heading dd{margin:0;font-size:24px;font-variant-numeric:tabular-nums}
.client-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(260px,1fr);gap:20px;align-items:start}
.client-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin:0;font-size:13px}
.client-details dt{color:var(--muted)}
.client-details dd{margin:0;overflow-wrap:anywhere}
.table-scroll{overflow-x:auto}
.table-scroll th{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}
.table-scroll td{font-size:13px;vertical-align:top}
.table-scroll details{font-size:12px;margin-top:5px}
.project-grouping{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 10px;color:var(--muted);font-size:12px}
.project-grouping button{flex:none}.project-table th:first-child,.project-table td:first-child{width:34px;padding-right:2px}
.project-row{transition:background .12s ease,opacity .12s ease}.project-row:not(.is-dragging){cursor:grab}.project-row.is-dragging{opacity:.45}
.project-row.is-drop-before td{border-top:2px solid var(--blue)}.project-row.is-drop-after td{border-bottom:2px solid var(--blue)}.project-grab{white-space:nowrap;color:var(--muted)}
.project-handle{display:inline-block;margin-right:5px;font-size:16px;line-height:1;vertical-align:middle;cursor:grab}.project-handle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.project-grab input{margin:0;vertical-align:middle}
.project-classification{width:176px;min-height:30px;padding:3px 24px 3px 7px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.project-classification:hover{border-color:#aaaab1}.project-classification:focus-visible{border-color:var(--ink);outline:2px solid #1112;outline-offset:1px}.project-classification:disabled{opacity:.55;cursor:wait}
.project-team{display:grid;gap:2px;min-width:170px}.project-team span{font-size:12px}.project-team b{font-weight:500;color:var(--muted)}
.readonly-field{display:block;min-height:40px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-sizing:border-box}
#project-group-dialog{width:min(520px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 24px 70px #0003}
#project-group-dialog::backdrop{background:#1118}#project-group-dialog h2{margin-top:0}#project-group-dialog label{display:block;margin:14px 0}#project-group-dialog input,#project-group-dialog select{width:100%;box-sizing:border-box}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hypothesis{padding:12px 0;border-bottom:1px solid var(--line)}
.hypothesis:last-child{border-bottom:0}
.hypothesis p{margin:6px 0}
.hypothesis-owner{display:flex;align-items:center;gap:8px;margin:8px 0;width:min(100%,320px)}.hypothesis-owner select{width:auto;min-width:210px;flex:1;padding:6px 28px 6px 8px}
.hypothesis blockquote{margin:10px 0;padding-left:14px;border-left:2px solid var(--border)}
.hypothesis blockquote footer{font-size:11px;color:var(--muted)}
.signal-review-panel>p{margin-top:-4px}.signal-review{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:20px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}.signal-review:last-child{border-bottom:0}.signal-review p{margin:6px 0}.signal-review__meta{font-size:12px;color:var(--muted)}.signal-review details{margin-top:10px}.signal-review blockquote{margin:10px 0 0;padding-left:14px;border-left:2px solid var(--border)}.signal-review blockquote p{margin:0}.signal-review blockquote footer{margin-top:5px;font-size:11px;color:var(--muted)}.signal-review__decision{margin:0;font-size:12px;color:var(--muted)}.signal-review__decision select{width:100%;margin-top:6px;color:var(--ink);background:var(--white)}.signal-review.is-resolved{opacity:.45;pointer-events:none}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{margin:0}
.quick-hypothesis{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:10px 12px;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fafafa}
.quick-hypothesis[hidden]{display:none}.quick-hypothesis label{margin:0}.quick-hypothesis input,.quick-hypothesis select,.quick-hypothesis textarea{width:100%;box-sizing:border-box;margin-top:5px}.quick-hypothesis__heard,.quick-hypothesis>p{grid-column:1/-1}.quick-hypothesis__heard textarea{min-height:72px}.quick-hypothesis__actions{grid-column:1/-1;margin:0}.hypothesis-paraphrase{margin:10px 0;padding:9px 12px;border-left:2px solid var(--line);background:#fafafa}.hypothesis-paraphrase p{margin-top:0}.hypothesis-paraphrase footer{font-size:11px;color:var(--muted)}
.stakeholder-fields{display:contents}.stakeholder-fields[hidden]{display:none}
.clients-page{--clients-ink:#17212f;--clients-muted:#64748b;--clients-heading:#475569;--clients-blue:#0066cc;--clients-border:#d6dee8;--clients-line:#e8edf3;--clients-head-bg:#f8fafc;--clients-active:#eaf3ff;background:#f7f9fc;color:var(--clients-ink)}.clients-page main{max-width:none;padding:24px 32px 32px}.clients-page footer{max-width:none;padding-left:32px;padding-right:32px}
.clients-heading{margin:0 0 20px}.clients-heading h1{margin:0;font-size:36px;line-height:44px;font-weight:600}.clients-heading p{margin:4px 0 0;color:var(--clients-muted);font-size:14px;line-height:20px}.clients-heading p span{margin-left:12px}
.registry-tools{display:flex;align-items:center;gap:12px;min-height:44px;margin-bottom:16px;flex-wrap:wrap}.registry-search{display:flex;align-items:center;gap:10px;width:min(480px,100%);height:44px;padding:0 14px;border:1px solid var(--clients-border);border-radius:8px;background:white}.registry-search:focus-within{border-color:var(--clients-blue);outline:2px solid #0066cc26;outline-offset:1px}.registry-search svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--clients-muted);stroke-width:1.8;stroke-linecap:round}.registry-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--clients-ink);font-size:14px}button.registry-filter-button,button.registry-filter-button:hover,button.registry-filter-button:focus-visible{min-width:0;min-height:44px;padding:8px 16px;border:1px solid var(--clients-border);border-radius:8px;background:white;color:var(--clients-ink);font-size:14px;font-weight:500}button.registry-filter-button:hover,button.registry-filter-button:focus-visible{border-color:#aebdce;background:#f8fafc;color:var(--clients-ink)}button.registry-filter-button.is-active,button.registry-filter-button.is-active:hover,button.registry-filter-button.is-active:focus-visible{border-color:#b7d4f6;background:var(--clients-active);color:var(--clients-blue)}button.registry-filter-button:active{background:#e1efff}.registry-filter-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.registry-filter-button b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--clients-blue);color:white;font-size:12px}.registry-chip{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:8px 12px;border-radius:8px;background:#edf2f8;color:var(--clients-ink);font-size:13px}.registry-chip:hover,.registry-chip:focus-visible{background:#e0e8f1;color:var(--clients-ink);text-decoration:none}.registry-reset{color:var(--clients-blue);font-size:14px;font-weight:400;text-decoration:none}.registry-reset:hover,.registry-reset:focus-visible{color:#0056ad;text-decoration:underline}.registry-filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:14px;margin:0 0 16px;padding:16px;border:1px solid var(--clients-border);border-radius:8px;background:white}.registry-filters label{margin:0;font-size:12px;color:var(--clients-muted)}.registry-filters select{width:100%;margin-top:5px}.registry-filter-actions{display:flex;align-items:end;gap:12px;grid-column:1/-1}.registry-filter-actions button{border-radius:8px}.registry-filter-actions a{padding-bottom:8px;font-size:13px}
.registry-segments{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}.registry-segments a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:40px;padding:8px 12px;border:1px solid var(--clients-border);border-radius:8px;background:white;color:var(--clients-heading);white-space:nowrap;font-size:14px;font-weight:500}.registry-segments a:hover,.registry-segments a:focus-visible{border-color:#aebdce;background:#f8fafc;color:#34445b;text-decoration:none}.registry-segments a.is-active,.registry-segments a.is-active:hover,.registry-segments a.is-active:focus-visible{border-color:#b7d4f6;background:var(--clients-active);color:var(--clients-blue);font-weight:600;box-shadow:none}.registry-segments span{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border-radius:6px;background:#f1f5f9;color:var(--clients-muted);font-size:12px;font-weight:500}.registry-segments .is-active span{background:white;color:var(--clients-blue)}
.registry-table-wrap{overflow:hidden;border:1px solid var(--clients-border);border-radius:10px;background:white}.client-registry{table-layout:fixed}.registry-col-client{width:35%}.registry-col-open{width:40px}.registry-col-number{width:auto}.client-registry th,.client-registry td{padding:7px 16px;border-color:var(--clients-line);vertical-align:middle}.client-registry th{height:44px;background:var(--clients-head-bg);color:var(--clients-heading);font-size:13px;line-height:20px;font-weight:600}.client-registry td{height:60px}.client-registry tbody tr:hover{background:#f8fbff}.client-registry th:first-child,.client-registry td:first-child{padding-left:20px}.client-registry th:not(:first-child),.client-registry td:not(:first-child){text-align:center}.client-registry th:last-child,.client-registry td:last-child{padding-left:4px;padding-right:4px}.registry-sort{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--clients-heading);font-size:13px;font-weight:600;white-space:nowrap}.client-registry th:first-child .registry-sort{justify-content:flex-start}.registry-sort:hover{text-decoration:none;color:var(--clients-blue)}.registry-sort__icon{display:inline-block;width:14px;color:#7a8797;font-size:14px;line-height:14px;text-align:center}.registry-sort__icon.is-active{color:var(--clients-blue)}.registry-client{display:flex;flex-direction:column;width:max-content;max-width:100%;line-height:1.2}.registry-client strong{overflow-wrap:anywhere;color:var(--clients-blue);font-size:15px;line-height:22px;font-weight:600}.registry-client span{margin-top:4px;color:var(--clients-muted);font-size:13px;line-height:18px}.registry-count{color:var(--clients-blue);font-size:15px;line-height:22px;font-weight:500;font-variant-numeric:tabular-nums}.registry-zero{color:var(--clients-muted);font-size:15px;line-height:22px;font-weight:400;font-variant-numeric:tabular-nums}.registry-open a{display:inline-grid;place-items:center;width:32px;height:32px;color:var(--clients-muted);font-size:24px;line-height:16px}.registry-open a:hover,.registry-open a:focus-visible{color:var(--clients-blue);text-decoration:none}.registry-empty{text-align:center!important;color:var(--clients-muted)}.registry-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;min-height:68px;padding:12px 20px;color:var(--clients-muted);font-size:12px}.registry-pagination nav{display:flex;gap:5px}.registry-pagination>label{justify-self:end;display:flex;align-items:center;gap:8px}.registry-pagination select{min-height:36px;padding:5px 30px 5px 11px}.registry-page{display:inline-grid;place-items:center;min-width:36px;height:36px;border:1px solid transparent;border-radius:6px;color:var(--clients-ink)}.registry-page:hover,.registry-page:focus-visible{border-color:#b9c9da;background:#f1f5f9;color:var(--clients-blue);text-decoration:none}.registry-page.is-current,.registry-page.is-current:hover,.registry-page.is-current:focus-visible{border-color:var(--clients-blue);background:var(--clients-blue);color:white}.registry-page.is-disabled{pointer-events:none;color:#a8b3c0}.registry-page-gap{align-self:center;padding:0 3px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-head h2{margin:0}
.table-scroll{overflow-x:auto}.employee-directory table{min-width:680px}.employee-directory tr.is-inactive{color:var(--muted)}
.employee-directory td:last-child,.employee-directory th:last-child{text-align:right}.employee-directory button{min-height:32px;padding:5px 12px}
dialog{width:min(480px,calc(100vw - 24px));padding:0;border:1px solid var(--border);border-radius:12px;background:white;color:var(--ink);box-shadow:var(--shadow-md)}
dialog::backdrop{background:rgba(13,13,18,.46)}dialog form{padding:20px}.dialog-head,.dialog-actions{display:flex;align-items:center;gap:10px}.dialog-head{justify-content:space-between}.dialog-head h2{margin:0}.dialog-close{width:36px;padding:0;font-size:22px}.dialog-actions{justify-content:flex-end;margin-top:20px}
fieldset{border:1px solid var(--line);border-radius:8px;margin:14px 0;padding:8px 12px}legend{padding:0 4px;color:var(--muted);font-size:13px}.check{display:flex;align-items:center;gap:8px;color:var(--ink)}.check input{width:auto;min-height:0;margin:0}
#notice{position:fixed;bottom:20px;right:20px;max-width:min(550px,90vw);background:var(--ink);color:white;border-radius:8px;z-index:30}
#notice:not(:empty){padding:14px 20px}
progress{width:100%;accent-color:var(--blue)}
.inline{display:flex;gap:10px}.inline>*{flex:1}
@media(max-width:900px){.grid,.metrics,.deal-workspace,.client-layout{grid-template-columns:1fr}.deal-workspace>aside,.deal-workspace>section{grid-column:1;grid-row:auto}.client-heading{align-items:start;flex-direction:column}.topbar__inner{gap:10px 20px}nav{order:3;flex-basis:100%;gap:16px}.user-menu{margin-left:auto}main{padding:18px 20px}.inline{flex-wrap:wrap}}
@media(max-width:600px){main{padding-left:12px;padding-right:12px}.board{display:flex;overflow-x:auto}.column:not(.is-empty){flex-basis:min(86vw,276px);min-width:min(86vw,276px);padding:12px}.traffic{gap:2px 8px}.traffic--single .traffic__site>strong{display:none}button.traffic__more{display:inline-flex;align-items:center;justify-content:center}.traffic:not(.is-open):not(.traffic--single){gap:2px 6px}.traffic:not(.is-open):not(.traffic--single) :is(.traffic__site--more,.traffic__period,.traffic__site>strong,.traffic__metrika){display:none}.board-stats{margin-left:0}.filter-bar select{flex:1 1 40%;min-width:0}.filter-bar input{flex:1 1 140px;min-width:0}.filter-bar #light-filter{flex:0 0 76px;padding:8px 4px;font-size:12px}.filter-bar #new-lead{min-width:44px;padding:8px 12px}.new-lead__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.card__order{grid-template-columns:1fr}.card__order button{width:100%}.project-grouping{align-items:stretch;flex-direction:column}.project-grouping button{width:100%}.panel-heading{align-items:flex-start;flex-direction:column}.quick-hypothesis{grid-template-columns:1fr}.signal-review{grid-template-columns:1fr;gap:10px}}
@media(max-width:900px){.registry-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}.registry-pagination{grid-template-columns:1fr auto}.registry-pagination>label{grid-column:1/-1;justify-self:start}}
@media(max-width:700px){.clients-heading p span{display:block;margin-left:0}.registry-search{width:100%}.registry-tools{align-items:stretch}.registry-filters{grid-template-columns:1fr}.registry-segments a{min-width:max-content}.registry-table-wrap{border:0;overflow:visible}.client-registry,.client-registry tbody,.client-registry tr,.client-registry td{display:block}.client-registry thead{display:none}.client-registry tr{display:grid;grid-template-columns:repeat(5,1fr) 30px;margin-bottom:10px;padding:12px;border:1px solid #d9e1ea;border-radius:8px}.client-registry td{height:auto!important;padding:5px 4px!important;border:0;text-align:left!important}.client-registry td:first-child{grid-column:1/-1;width:auto}.client-registry td:not(:first-child):not(:last-child)::before{content:attr(data-label);display:block;margin-bottom:2px;color:#6b788d;font-size:10px}.client-registry td:last-child{grid-column:6;grid-row:2;align-self:center;width:auto}.registry-pagination{grid-template-columns:1fr;padding:12px 4px}.registry-pagination nav{order:3;justify-content:center}.registry-pagination>label{grid-column:auto}}
@media(max-width:600px){.employee-directory table{min-width:0}.employee-directory thead{display:none}.employee-directory tbody,.employee-directory tr,.employee-directory td{display:block}.employee-directory tr{padding:12px 0;border-bottom:1px solid var(--line)}.employee-directory td{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:3px 8px;border:0;overflow-wrap:anywhere}.employee-directory td::before{content:attr(data-label);color:var(--muted);font-size:12px}.employee-directory td:last-child{display:flex;justify-content:flex-start;padding-top:8px}.employee-directory td:last-child::before{display:none}}

.card__task{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:500}
.task-light{width:10px;height:10px;border-radius:50%;flex:none}
.task-light--none .task-light{background:#e8b53a}.task-light--today .task-light{background:#2f9e5b}
.task-light--overdue .task-light{background:var(--red)}.task-light--overdue{color:var(--red)}
.tasks-board .task-card h3{font-size:13px;margin:4px 0}
.card__undelivered{margin:0;font-size:12px;font-weight:600;color:var(--red)}
.delivery-failed{border-left:4px solid var(--red);background:#fff7f7}
.card--waiting{border-left:3px solid #e0a94a}
.card--overdue{border-left-color:var(--red);background:#fff7f7}
.card__attention-row{display:flex;gap:6px;flex-wrap:wrap}
.card__attention{font-size:11px;font-weight:500;padding:2px 8px;border-radius:100px;background:#fbefd4;color:#8a5a00;white-space:nowrap}
.card__attention.is-overdue{background:var(--red-light);color:#9b1c14}
.card__last{font-size:12px;margin:0;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.column__waiting{color:#9b1c14;font-weight:500;white-space:nowrap}
.card__pause{margin:4px 0 0;font-size:12px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.pause-form label{display:grid;gap:4px;margin:12px 0}.pause-form input{width:100%;box-sizing:border-box}
.chip{border-radius:100px;font-size:13px;padding:6px 12px;background:white;border:1px solid var(--line);color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--red-light);color:#9b1c14;border-color:transparent}

.card__order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;overflow:hidden}
.card__order input{width:100%;min-width:0;font-size:12px;padding:5px 9px}
.card__order button{max-width:100%;font-size:12px;padding:5px 10px;white-space:nowrap}
.card__move{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:var(--muted);font-size:10px}
.card__move button.move-stage{width:28px;min-height:26px;padding:2px 6px;font-size:13px}
.card__draft{border-top:1px dashed var(--line);padding-top:7px;display:grid;gap:5px}
.card__draft-head{margin:0;font-size:11px;color:var(--muted)}
.card__draft-text{margin:0;font-size:12.5px;line-height:1.4;max-height:4.4em;overflow:hidden}
.card__draft-actions{display:flex;gap:6px;flex-wrap:wrap}
.card__draft-actions button{font-size:12px;padding:5px 10px}

.access{border-top:1px solid var(--line);padding:6px 0;font-size:13px}
.access summary{cursor:pointer}
.access.is-missing summary{color:#9b1c14}
.access.is-ok summary{color:#15803d}

/* Card actions share one compact treatment; controls retain their native semantics. */
.lead-page button,.lead-page .button,.lead-actions a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:3px 0;border:0;border-bottom:1px dashed currentColor;border-radius:0;background:transparent;color:var(--blue,#008cff);font:inherit;font-size:13px;line-height:22px;text-decoration:none;box-sizing:border-box;white-space:nowrap}
.lead-page button:hover,.lead-page .button:hover,.lead-actions a:hover{background:transparent;border-bottom-style:solid;color:#005fb8}
.lead-page button:disabled{opacity:.45;cursor:default}
.lead-page button:focus-visible,.lead-actions a:focus-visible{outline:2px solid #008cff;outline-offset:3px}
.lead-actions{gap:8px 18px;margin:6px 0 14px}.lead-actions .badge{background:none}
.channel-icon{font-size:11px;font-weight:650}.card-stage{gap:10px;margin:0 0 16px}.card-stage label{margin:0;font-size:13px}.card-stage select{width:auto;max-width:min(100%,420px);min-height:30px;padding:3px 8px;font-size:13px}
.company-panel h2{font-size:16px}.company-contacts{list-style:none;padding:0;margin:8px 0}.company-contacts li{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}.company-contacts a{white-space:normal}
.stakeholder-title{font:inherit;font-size:13px;font-weight:400;color:var(--ink)}
.company-contacts--compact li{margin:0;border-top:1px solid var(--line)}.company-contacts--compact li:first-child{border-top:0}.contact-link{display:block;padding:10px 0;color:var(--ink);text-decoration:none}.contact-link strong,.contact-link span{display:block}.contact-link:hover strong{text-decoration:underline;text-underline-offset:3px}.contact-link .stakeholder-title{margin-top:1px;color:var(--muted)}
.contact-heading{margin-bottom:20px}.contact-heading h1{margin-bottom:4px}.contact-heading p{margin:0}.contact-layout{display:grid;grid-template-columns:minmax(0,720px) minmax(260px,340px);gap:20px;align-items:start}.contact-form{display:grid;gap:16px}.contact-form label{margin:0}.contact-form textarea{width:100%;resize:vertical}.contact-form__actions{display:flex;justify-content:flex-start;padding-top:4px}.contact-meta h2,.contact-danger h2{margin-top:0}.contact-danger{margin-top:16px;padding:18px;border-top:1px solid var(--line)}.contact-danger .danger{background:var(--red);border-color:var(--red);color:#fff}
.client-project-section{margin-bottom:16px}.completed-projects{margin-bottom:16px}.completed-projects>summary{cursor:pointer;font-size:18px}.completed-projects[open]>summary{margin-bottom:16px}.client-project-section+.client-project-section{margin-top:0}
.text-button{padding:0;border:0;border-bottom:1px dashed currentColor;border-radius:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:1.4}.text-button:hover{color:var(--ink);border-bottom-style:solid}.client-archive{margin-top:14px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted)}.client-archive>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}
#archive-dialog{width:min(440px,calc(100vw - 32px));padding:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);box-shadow:var(--shadow-md)}#archive-dialog::backdrop{background:rgba(13,13,18,.56)}#archive-dialog form{margin:0;padding:20px 24px 24px}.archive-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}#archive-dialog h2{margin:0;font-size:21px}.archive-dialog__close{min-width:32px;min-height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:24px;font-weight:400}.archive-dialog__close:hover{background:var(--paper);color:var(--ink)}.archive-dialog__message{margin:18px 0 12px;font-size:15px}.archive-dialog__choice{display:flex;align-items:flex-start;gap:10px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.archive-dialog__choice input{width:18px;min-height:18px;margin:2px 0 0;flex:0 0 auto}.archive-dialog__note{margin:12px 0 20px;color:var(--muted);font-size:13px}.archive-dialog__actions{display:flex;justify-content:flex-end;gap:10px}.archive-dialog__actions button{min-height:38px;border-radius:8px}.archive-dialog__actions .danger{background:var(--red);border-color:var(--red);color:#fff}.archive-dialog__actions .danger:hover{background:#b8241a}.archive-dialog__actions .danger:disabled{background:#b9b9b9;border-color:#b9b9b9}
.card__draft-edit{width:100%;min-width:0;box-sizing:border-box;font:inherit}
@media(max-width:760px){.contact-layout{grid-template-columns:1fr}}
.pay-months meter{width:min(240px,40vw);vertical-align:middle;margin-right:8px}

/* Rev. 179: possible duplicates */
.duplicates ul{list-style:none;padding:0;margin:0}.duplicates li{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--line,#ddd)}.duplicates .dup-actions{display:flex;flex-wrap:wrap;gap:6px}

/* Rev. 200: the board uses the whole screen; a wide screen shows more of each card, not empty margins. */
main:has(.board){max-width:none}
.card__move{display:flex;align-items:center;justify-content:space-between;gap:8px}
.card__arrows{display:flex;align-items:center;gap:6px;margin-left:auto}
.card__order textarea{width:100%;resize:vertical;min-height:52px}
.card__order-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.card__draft-pending{margin:0;font-size:12px;font-weight:600;color:#b26a00}
button.is-busy{position:relative;padding-left:30px;cursor:progress}
button.is-busy::before{content:"";position:absolute;left:10px;top:50%;width:12px;height:12px;margin-top:-6px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:crm-spin .8s linear infinite}
@keyframes crm-spin{to{transform:rotate(360deg)}}
.draft-approve.is-waiting{animation:crm-pulse 1.6s ease-in-out infinite}
@keyframes crm-pulse{0%,100%{box-shadow:0 0 0 0 rgba(224,169,74,.0)}50%{box-shadow:0 0 0 6px rgba(224,169,74,.55)}}
@media (prefers-reduced-motion:reduce){.draft-approve.is-waiting,button.is-busy::before{animation:none}}

/* Rev. 201: «Ввести сообщение» opens the whole card as the message field. */
.linklike{background:none;border:0;padding:0;min-height:0;color:var(--blue);font-size:12px;text-decoration:underline dashed;text-underline-offset:3px;cursor:pointer;justify-self:start}
.linklike:hover{color:var(--blue-deep)}
.card.is-composing>*:not(.card__order):not(.card__move):not(h3){display:none}
.card.is-composing .card__order{display:grid;grid-template-columns:1fr;gap:6px}
.card.is-composing .card__order textarea{min-height:180px;font-size:13px;line-height:1.4;resize:vertical}
.card__order-actions{display:flex;align-items:center;gap:6px;margin-top:0}
.card__order-actions .card__order-status{font-size:11px;flex:1}
button.icon{min-width:32px;min-height:32px;padding:4px 8px;font-size:15px;line-height:1}
button.icon.is-busy{padding-left:26px}
.card__order[hidden]{display:none}

/* Rev. 205: the card's top row — light, «amo», amount. */
.card__move{gap:10px;justify-content:flex-start}
.card__amo{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.card__amount{margin-left:auto;font-size:13px;font-weight:500;color:var(--blue-deep)}
button.card__amount.linklike{font-size:13px;color:var(--blue-deep)}
/* Rev. 213: hovering the amount shows a pointer and nothing else — no button fill. */
button.card__amount.linklike:hover,button.card__amount.linklike:focus-visible{background:none;color:var(--blue-deep);box-shadow:none}
.linklike{cursor:pointer}.linklike:hover{background:none}

/* Rev. 210: the amount is a text button — never squeezed to the old 28 px stage-arrow width; the row wraps on a narrow card. */
.card__move{flex-wrap:wrap;row-gap:4px;min-width:0}
.card__amount{white-space:nowrap;width:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* Rev. 222: a column's month groups — this month and the previous one open, «other months» folded and read on opening. */
.month-group+.month-group{margin-top:8px}
.month-group__head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:28px;margin:0 0 8px;padding:4px 8px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--muted);font-size:12px;font-weight:500;box-shadow:none}
.month-group__head:hover,.month-group__head:focus-visible{background:white;color:var(--blue-deep)}
.month-group__head::before{content:"▾";margin-right:2px}
.month-group__head[aria-expanded="false"]::before{content:"▸"}
.month-group__head span:first-child{margin-right:auto}
.month-group__count{min-width:20px;text-align:center}
.month-group__more{width:100%;margin-top:4px}
.column.is-empty .month-group{display:none}

/* Rev. 233: «ИИ не отвечает» — one compact icon in the card's top row: red crossed «ИИ» by hand, crossed «ИИ» ⏱ time auto. */
.ai-hold{display:inline-flex;align-items:center;gap:3px;min-height:20px;padding:1px 5px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap}
button.ai-hold:hover,button.ai-hold:focus-visible{background:var(--paper);color:inherit;box-shadow:none}
.ai-hold__ai{position:relative;letter-spacing:.02em}
.ai-hold.is-manual,.ai-hold.is-manual:hover{background:var(--red-light);color:#9b1c14}
.ai-hold.is-auto,.ai-hold.is-auto:hover{background:#fff3d6;color:#8a5300}
.ai-hold:not(.is-free) .ai-hold__ai::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;border-top:1.5px solid currentColor;transform:rotate(-24deg)}
.ai-hold__time{font-weight:500;font-variant-numeric:tabular-nums}
.ai-hold--page,.lead-page button.ai-hold--page{vertical-align:middle;font-size:14px;min-height:26px;padding:2px 8px;border:0;border-radius:6px;letter-spacing:0}
.lead-page button.ai-hold--page.is-manual{color:#9b1c14}.lead-page button.ai-hold--page.is-auto{color:#8a5300}.lead-page button.ai-hold--page.is-free{color:var(--muted)}
/* Rev. 238: «требуется человек» — amber «ИИ» with a person; one popover for every switch of the AI state. */
.ai-hold.is-human,.ai-hold.is-human:hover,.lead-page button.ai-hold--page.is-human{background:#ffe0b2;color:#8a4500}
.ai-hold__person{width:11px;height:11px;fill:currentColor}
.ai-menu{position:fixed;z-index:60;display:grid;gap:6px;max-height:calc(100vh - 16px);overflow:auto;padding:10px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 12px 32px rgba(16,24,40,.18);font-size:13px;color:var(--ink)}
.ai-menu__title{margin:0 0 2px;font-weight:600}
.ai-menu [role=menu]{display:grid;gap:2px}
#ai-menu button{white-space:normal;font-size:13px;line-height:1.3;text-decoration:none}
#ai-menu button.ai-menu__item{display:grid;justify-items:start;justify-content:stretch;gap:1px;min-height:44px;width:100%;padding:6px 10px;border:0;border-radius:10px;background:none;color:var(--ink);text-align:left;font-weight:500}
#ai-menu button.ai-menu__item:hover,#ai-menu button.ai-menu__item:focus-visible{background:var(--paper);color:var(--ink)}
#ai-menu button.ai-menu__item[aria-checked=true]{background:#e8f3ff;color:var(--blue-deep)}
#ai-menu button.ai-menu__item[aria-checked=true]>span:first-child::before{content:"✓ "}
.ai-menu__auto{display:grid;gap:1px;margin:0;padding:6px 10px;border-radius:10px;color:var(--muted)}
.ai-menu__auto.is-current{background:#fff3d6;color:#8a5300}
.ai-menu__hint{font-size:11px;font-weight:400;color:var(--muted);margin:0}
.ai-menu__form{display:grid;gap:8px}
.ai-menu__form label{margin:0}
.ai-menu__picks{display:flex;flex-wrap:wrap;gap:4px}
#ai-menu button.ai-menu__pick{min-height:28px;padding:3px 9px;border:1px solid var(--line);border-radius:100px;background:none;color:var(--ink);font-size:12px}
#ai-menu button.ai-menu__pick:hover,#ai-menu button.ai-menu__pick:focus-visible{background:var(--paper);color:var(--ink)}
.ai-menu__actions{display:flex;gap:6px;flex-wrap:wrap}
#ai-menu .ai-menu__actions button{min-height:36px;padding:7px 14px;border:1.5px solid transparent;border-radius:100px;background:var(--blue);color:white}
#ai-menu .ai-menu__actions button:hover{background:var(--blue-deep)}
#ai-menu .ai-menu__actions button.secondary{border-color:var(--blue);background:white;color:var(--blue-deep)}
.ai-menu__error{margin:0;color:#9b1c14;font-size:12px}.ai-menu__error:empty{display:none}

/* Rev. 240: whose move — one status at the top of the deal page; the words carry it, the colour repeats them. */
.turn{display:grid;gap:6px;margin:0 0 12px;padding:12px 16px;border:1px solid var(--line);border-left:4px solid var(--border);border-radius:var(--radius);background:var(--white)}
.turn--us{border-left-color:var(--amber);background:#fffaf0}
.turn--us.is-overdue{border-left-color:var(--red);background:#fff7f7}
.turn--client{border-left-color:var(--blue-light)}
.turn p{margin:0}
.turn__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:15px;line-height:1.4}
.turn__tag{font-size:12px;font-weight:600;padding:1px 8px;border-radius:var(--radius-pill);background:var(--paper);color:#4b4b4b;white-space:nowrap}
.turn__tag.is-overdue{background:var(--red-light);color:#9b1c14}
.turn__tag.is-human{background:#ffe0b2;color:#8a4500}
.turn__tag.is-hold{background:#fff3d6;color:#8a5300}
.turn__quote{margin:0;padding-left:10px;border-left:2px solid var(--border);font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.turn__meta{font-size:13px;color:var(--muted)}
.turn__actions{display:flex;flex-wrap:wrap;gap:8px 18px}
.lead-page button.turn__primary{padding:4px 16px;border:0;border-radius:var(--radius-pill);background:var(--blue-deep);color:#fff;font-weight:600}
.lead-page button.turn__primary:hover{background:#005fb8;color:#fff}
/* The conversation: the client's messages and ours on different sides of the marker, the latest one labelled. */
.message.in{border-left:3px solid var(--amber);padding-left:12px}
.message.is-agent{border-left-style:dashed}
.message.is-last{border-left-width:5px;background:var(--blue-tint);padding-right:8px}
.message__last{font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--blue-deep)}
/* Rev. 240: the document package. */
.doc-package{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.doc-package h3{margin:0 0 8px;font-size:15px}
.doc-package fieldset{border:0;margin:0 0 8px;padding:0;display:grid;gap:4px}
.doc-package__choice,.doc-package__edo{display:flex;align-items:baseline;gap:8px;font-size:14px}
.doc-package__choice input,.doc-package__edo input{width:auto;min-height:0}
.doc-package__items{margin:10px 0;padding-left:18px;font-size:14px}
.doc-package__items li{margin:4px 0;overflow-wrap:anywhere}
.doc-package__items .is-missing{color:#9b1c14}

/* Rev. 245: pasted requisites — the preview before saving */
.rq-paste{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.rq-paste h3{margin:0 0 8px;font-size:15px}
.rq-paste textarea{min-height:96px}
.rq-form{display:grid;gap:6px;margin:12px 0}
.rq-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 22px;gap:4px 8px;align-items:center}
.rq-row label{font-size:13px;color:var(--muted);margin:0}
.rq-row input{min-height:34px}
.rq-mark{font-weight:700;text-align:center}
.rq-meta{grid-column:2/4;font-size:12px;color:var(--muted);margin-top:-2px}
.rq-meta:empty{display:none}
.rq-ok .rq-mark{color:var(--green)}
.rq-bad .rq-mark,.rq-bad .rq-meta{color:var(--red)}
.rq-bad input{border-color:var(--red)}
.rq-warn .rq-mark,.rq-warn .rq-meta{color:#9a6700}
.rq-warn input{border-color:var(--amber)}
.rq-choice{border:1px solid var(--line);border-radius:var(--radius);margin:10px 0;padding:8px 12px;display:grid;gap:4px}
.rq-choice legend{font-size:13px;padding:0 4px}
.rq-choice label{display:flex;gap:8px;align-items:baseline;font-size:14px;overflow-wrap:anywhere}
.rq-choice input{width:auto;min-height:0}
.rq-done{color:#15803d;font-weight:600}
@media (max-width:640px){.rq-row{grid-template-columns:1fr 22px}.rq-row label{grid-column:1/3}.rq-meta{grid-column:1/3}}

/* Rev. 274: «Записать контакт» — the inline mini-form on the kanban card and the deal page */
.contact-quick-open{display:inline-flex;align-items:center;min-height:20px;padding:1px 5px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:12px;line-height:1.2;box-shadow:none}
.contact-quick-open:hover,.contact-quick-open:focus-visible{background:var(--paper);color:inherit}
/* Rev. 278: one shrinkable column — the select and the textarea no longer overflow the card and get clipped. */
.contact-quick{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:6px 0;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.contact-quick__row,.contact-quick__actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.contact-quick select,.contact-quick input[type=date]{width:auto;max-width:100%;min-height:32px}
.contact-quick textarea{width:100%;min-height:56px}.cq-wait-label{display:flex;align-items:center;gap:6px;font-size:13px}
.cq-hint{font-size:11px}.cq-more summary{cursor:pointer;font-size:13px}
@media(max-width:600px){.contact-quick__row{flex-direction:column;align-items:stretch}.cq-wait-label{flex-wrap:wrap}.contact-quick select,.contact-quick input[type=date]{width:100%}.cq-hint{display:none}}
.card__tasks{position:relative;display:inline-flex;align-items:center;min-height:20px;padding:1px 5px;border-radius:6px;color:var(--muted);font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap}
.card__tasks:hover,.card__tasks:focus-visible{background:var(--paper);color:inherit}
/* Rev. 280: «☑ 0» — a deal without open tasks, muted; «+ Добавить задачу» — an underlined text link. */
/* Rev. 294: the light and the count are one control — the dot keeps its colour, overdue text is red. */
.card__tasks.card__task{gap:5px}.card__tasks.task-light--overdue{color:var(--red)}
.card__tasks.is-zero{opacity:.55;font-weight:500}.card__tasks.is-zero:hover,.card__tasks.is-zero:focus-visible{opacity:1}
.card__tasks-tip button.task-tip__add{justify-self:start;min-height:24px;padding:2px 0;border:0;background:none;box-shadow:none;color:var(--ink);font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.card__tasks-tip button.task-tip__add:hover,.card__tasks-tip button.task-tip__add:focus-visible{color:var(--blue-deep)}
/* Rev. 278: a body-level layer, fixed at the badge (floatPlace) — not clipped by the card or the column. */
.card__tasks-tip{position:fixed;z-index:60;top:0;left:0;display:grid;gap:4px;width:max-content;max-width:min(360px,calc(100vw - 16px));max-height:min(60vh,420px);overflow:auto;overflow-wrap:anywhere;font-size:12px;line-height:1.35;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:white;color:var(--ink);box-shadow:var(--shadow-md);font-weight:400;white-space:normal;text-align:left}
.card__tasks-tip[hidden]{display:none}.card__tasks-tip .is-overdue{color:#b42318}
.task-tip__row{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.card__tasks-tip button.task-tip__x{flex:none;min-width:24px;min-height:24px;padding:0 4px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:16px;line-height:1;box-shadow:none}
.card__tasks-tip button.task-tip__x:hover,.card__tasks-tip button.task-tip__x:focus-visible{background:var(--paper);color:var(--ink)}
.task-tip__close{display:grid;gap:6px;margin:0;padding:6px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.task-tip__close input:not([type=checkbox]),.task-tip__close select{width:100%;min-height:32px;font-size:12px}
.task-tip__close .check{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}
.task-tip__actions{display:flex;flex-wrap:wrap;gap:6px}.task-tip__actions button{min-height:30px;padding:4px 10px;font-size:12px}
.task-tip__error{color:#9b1c14;font-size:12px}.task-tip__error:empty{display:none}

/* Rev. 282: a draft nobody approved for a working hour — the card blinks red; reduced motion keeps a static red frame. */
.card--draft-stale{border-color:#c62828;box-shadow:0 0 0 2px #c62828;animation:draft-stale 1.2s ease-in-out infinite alternate}
@keyframes draft-stale{from{box-shadow:0 0 0 2px #c62828}to{box-shadow:0 0 0 2px transparent}}
.card__draft-stale{color:#c62828}
@media (prefers-reduced-motion:reduce){.card--draft-stale{animation:none}}

/* Rev. 282: each task of the «☑ N» popup links to the task itself; the linked task is marked on /tasks. */
.task-tip__link{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:2px}
.task-tip__link:hover,.task-tip__link:focus-visible{text-decoration-color:currentColor}
.task-card.is-target{outline:2px solid var(--blue-deep);outline-offset:2px}

/* Rev. 284: the task card's top line — when (a dotted link) · who · the deal; the date's popover; «Выполнено». */
.task-head{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:0;font-size:12px;font-weight:500;color:var(--muted)}
.task-head>.task-head__who,.task-head>.task-head__deal{min-width:0;overflow-wrap:anywhere}
.task-head>.task-due+*::before,.task-head>.task-head__who+*::before{content:"·";margin-right:6px;color:var(--muted)}
.task-head.task-light--overdue .task-due{color:var(--red)}
button.task-due{min-height:24px;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);font:inherit;font-weight:600;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer}
button.task-due:hover,button.task-due:focus-visible{color:var(--blue-deep);background:none}
.task-due.is-static{color:var(--ink);font-weight:600}
.task-head__deal{color:inherit}
.task-tip__body{display:grid;gap:2px;min-width:0}
.task-move{display:grid;gap:6px;min-width:min(280px,calc(100vw - 40px))}
.task-move__row{display:flex;gap:6px}.task-move__row input{flex:1;min-width:0;min-height:32px;font-size:13px}
.task-move__row button{min-height:32px;padding:4px 10px;font-size:12px}
.task-move__chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.task-move__chips .chip{min-height:28px;padding:2px 10px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);font-size:12px;box-shadow:none}
.task-move__chips .chip:hover,.task-move__chips .chip:focus-visible{border-color:var(--blue);color:var(--blue-deep);background:white}
.task-move__drop{margin-left:auto}
.task-move__why{display:flex;gap:6px}.task-move__why[hidden]{display:none}.task-move__why input{flex:1;min-width:0;min-height:30px;font-size:12px}
.task-move__why button{min-height:30px;padding:4px 10px;font-size:12px}
.task-move__hint{font-size:11px}
.task-move-layer{padding:10px}
.task-contact select{display:block;width:100%;margin-top:4px}
.task-tip__close .task-contact{margin:0;font-size:12px}
.done-tasks .is-cancelled strong{text-decoration:line-through;color:var(--muted)}
@media (hover:none){.task-move__hint{display:none}}
.task-move__why .danger{background:var(--red);border-color:var(--red);color:#fff}.task-move__why .danger:hover{background:#b8241a}
/* The page's own button style (.lead-page button — text links) must not turn the popover's actions into links. */
.task-move .task-move__row button[type=submit]{padding:4px 14px;border:0;border-radius:var(--radius,8px);background:var(--blue-deep);color:#fff;text-decoration:none;font-weight:600}
.task-move .task-move__row button[type=submit]:hover{background:#005fb8;color:#fff}
.task-move .task-move__chips button.chip{border:1px solid var(--line);text-decoration:none}
.task-move .task-move__why button.danger{border:0;text-decoration:none}

/* Rev. 290: the command assistant */
.assistant-open{background:#fff;border:1px solid #ffffff4d;color:var(--ink);border-radius:var(--radius-pill);padding:4px 8px;margin-right:8px;line-height:0;animation:assistant-pulse 2.4s ease-in-out infinite alternate}
/* Rev. 299: owner 09.10.2026 — «сама кнопка будет мигать с белого на синий, а микрофон будет черным всегда»: the pill breathes white ↔ light blue (#9ad1ff: the black glyph 12:1 at its bluest), the glyph never changes; red with a white glyph while recording (4.9:1). */
@keyframes assistant-pulse{from{background:#fff}to{background:var(--blue-light)}}
.assistant-open:hover,.assistant-open:focus-visible{animation:none;background:var(--blue-light)}
.assistant-open.is-recording{animation:none;background:var(--red);border-color:var(--red);color:#fff}.assistant-mic.is-recording{background:var(--red);border-color:var(--red);color:#fff}
@media (prefers-reduced-motion:reduce){.assistant-open{animation:none;background:var(--blue-light)}}
.assistant-open svg{fill:none;stroke:currentColor;stroke-width:2}
.assistant-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);border:0;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:20px}
.assistant-dialog textarea{width:100%;box-sizing:border-box}
.assistant-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.assistant-actions .assistant-close{margin-left:auto}
.assistant-steps{padding-left:20px}.assistant-step{margin:10px 0}.assistant-step.is-invalid{opacity:.65}
.assistant-step label{margin:4px 0}.assistant-step input:not([type=checkbox]){width:100%;box-sizing:border-box}
.assistant-step__head{color:var(--ink)!important;font-size:14px!important}
.tag--ok{background:#dcfce7}.tag--bad{background:var(--red-light)}
.assistant-row summary{cursor:pointer}.assistant-row audio{display:block;margin:8px 0;max-width:100%}
.assistant-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
/* Rev. 300: a test deal, seen only with an administrator's ?test=1 */
.test-badge{display:inline-block;margin-right:4px;padding:0 5px;border:1px solid #b45309;border-radius:4px;color:#92400e;background:#fffbeb;font-size:11px;font-weight:700;letter-spacing:.04em;vertical-align:1px}
.test-mode{margin:0;padding:6px 16px;background:#fffbeb;border-bottom:1px solid #fcd34d;color:#92400e;font-size:13px}
/* Rev. 301: task cards move between the /tasks columns by drag; «Просрочено» says no */
.tasks-board .task-card[draggable="true"]{cursor:grab}
.column.is-drop-forbidden{border-color:var(--red);background:#fff5f5;cursor:not-allowed}
/* Rev. 302: the deal filter on /tasks — a funnel beside the deal, pressed while on; a chip that clears it */
.task-filter{display:inline-flex;align-items:center;justify-content:center;min-height:0;width:22px;height:22px;padding:0;margin-left:2px;border:1px solid transparent;border-radius:5px;background:none;color:var(--muted,#6b7280);cursor:pointer;vertical-align:middle}
.task-filter svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.task-filter:hover{background:#f3f4f6;color:var(--blue)}
.task-filter[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-tint);color:var(--blue)}
.task-filter[aria-pressed="true"] svg{fill:currentColor}
.task-filter-chip{display:inline-flex;align-items:center;gap:4px}
.task-filter-clear{min-height:0;padding:0 4px;border:0;background:none;font-size:15px;line-height:1;cursor:pointer;color:inherit}
