/* Страница «Проверка договоров» + конструктор документов. Владелец - зона CONTRACTS.
   Общие классы - css/base.css; здесь только свои правила с префиксом .ct-.
   Язык «Регистр»: строки-полосы с волосяными линиями, счётчики-плитки,
   таблетки, моно-микроподписи; лайм - только заливкой на главном действии. */

/* ─────────────────────────── шапка и сегменты ─────────────────────────── */

.ct-head { margin-bottom: 18px; }
.ct-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.ct-head .page-head__actions { margin-left: auto; }
.ct-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--hair); }
.ct-seg__item { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ct-seg__item:hover { color: var(--ink); }
.ct-seg__item.is-on { background: var(--surface); border-color: var(--hair); color: var(--ink); font-weight: 600; }
.ct-seg__item .cnt { font-family: var(--mono); font-size: 10.5px; color: var(--faint); background: var(--surface-3);
  border-radius: 999px; padding: 0 6px; line-height: 17px; }
.ct-seg__item.is-on .cnt { background: var(--ink); color: #fff; }
.ct-hint { font-size: 12.5px; color: var(--faint); }
.ct-sep { font-style: normal; color: var(--faint-2); }

/* ─────────────────────────── счётчики ─────────────────────────── */

.ct-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ct-counters--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ct-counter { text-align: left; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-tile);
  padding: 13px 18px 14px; min-width: 0; color: var(--ink); display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--dur-fast) var(--ease); }
button.ct-counter { cursor: pointer; }
button.ct-counter:hover { border-color: #C8C8CE; }
button.ct-counter.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ct-counter__label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: #9A9AA0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-counter__row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ct-counter__row b { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; flex: none; }
.ct-counter__row b small { font-size: 17px; color: var(--faint); letter-spacing: -.02em; font-weight: 500; }
.ct-counter__row span { font-size: 12.5px; color: var(--muted); min-width: 0; line-height: 1.35; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ct-counter--alarm { background: var(--rust-wash); border-color: var(--rust-line); }
.ct-counter--alarm .ct-counter__label { color: var(--rust); }
.ct-counter--alarm b { color: var(--rust); }
.ct-counter--lime { background: var(--lime-wash); border-color: var(--lime-line); }
.ct-counter--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-counter--dark .ct-counter__label { color: rgba(255,255,255,.55); }
.ct-counter--dark .ct-counter__row span { color: rgba(255,255,255,.62); }

/* ─────────────────────────── загрузка и фильтры ─────────────────────────── */

.ct-drop { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 22px; }
.ct-drop b { font-size: 14.5px; margin-bottom: 2px; }
.ct-drop__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair);
  display: grid; place-items: center; flex: none; color: var(--ink-2); }
.ct-drop__ico svg { width: 18px; height: 18px; }
.ct-drop__busy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-drop__busy b { margin: 0; }

.ct-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.ct-search { width: 320px; max-width: 100%; }

/* ─────────────────────────── группы и строки ─────────────────────────── */

.ct-group { margin-top: 22px; }
.ct-group__head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; min-width: 0; }
.ct-group__head b { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ct-group__cnt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--hair); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.ct-group__note { font-size: 12.5px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-group__head::after { content: ''; flex: 1; min-width: 20px; border-top: 1px solid var(--hair); }

.ct-list { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 3px minmax(0, 1fr) 210px auto; align-items: center; gap: 18px;
  padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hair-sep); min-height: 68px;
  transition: background-color var(--dur-fast) var(--ease); }
.ct-row:last-child { border-bottom: 0; }
.ct-row:hover { background: #FCFCFD; }
.ct-row__bar { align-self: stretch; margin: -14px 0; background: transparent; }
.ct-row--rust .ct-row__bar { background: var(--rust); }
.ct-row--amber .ct-row__bar { background: #D9A441; }
.ct-row--moss .ct-row__bar { background: var(--moss); }
.ct-row__main { min-width: 0; }
.ct-row__title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: -.01em; }
.ct-row__title:hover { color: var(--teal); text-decoration: none; }
.ct-row__title--btn { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit;
  font-size: 15px; font-weight: 600; }
.ct-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.ct-row__file { font-size: 11px; color: var(--faint); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-row__hint { font-size: 12.5px; color: var(--faint); margin-top: 4px; max-width: 760px; }
.ct-row__warn { color: var(--amber); }
.ct-row__acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ct-state { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-state__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-state__sub { font-size: 12px; color: var(--faint); }
.ct-state__none { font-size: 12.5px; color: var(--faint-2); }
.ct-empty { padding: 28px 20px; }

.ct-skel { display: grid; gap: 12px; }
.ct-skel i { display: block; height: 64px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hair);
  animation: ct-breathe 1.2s var(--ease) infinite alternate; }
.ct-skel--doc i:first-child { height: 90px; }
.ct-skel--doc i:last-child { height: 420px; }
@keyframes ct-breathe { from { opacity: 1; } to { opacity: .45; } }

/* ─────────────────────────── документ: шапка ─────────────────────────── */

.ct-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 10px; flex-wrap: wrap; }
.ct-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ct-crumbs a svg { width: 14px; height: 14px; transform: rotate(180deg); }
.ct-crumbs a:hover { color: var(--ink); text-decoration: none; }
.ct-dochead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.ct-dochead__txt { min-width: 0; flex: 1 1 520px; }
.ct-dochead h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.ct-dochead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.ct-dochead__plain { font-size: 12.5px; color: var(--muted); }
.ct-dochead__plain.mono { font-size: 11px; color: var(--faint); overflow-wrap: anywhere; }
.ct-dochead__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--teal-wash);
  color: var(--teal); font-size: 13px; margin-bottom: 14px; }
.ct-note svg { width: 16px; height: 16px; flex: none; }

/* ── параметры проверки ── */
.ct-params { padding: 18px 22px; }
.ct-params__grid { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.ct-params__label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #9A9AA0; padding-top: 10px; }
.ct-params__val { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ct-params__outs { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; padding-top: 7px; }
.ct-select { max-width: 560px; }
.ct-params__go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-sep); }

/* ── ход проверки ── */
.ct-run { padding: 18px 22px; }
.ct-run__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-run__head b { font-size: 15px; }
.ct-run__sec { font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.ct-run__head .ct-hint { margin-left: auto; }
.ct-run__bar { height: 3px; border-radius: 99px; background: var(--surface-3); margin: 14px 0 14px; overflow: hidden; }
.ct-run__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transition: transform .9s var(--ease); }

/* ── итог проверки ── */
.ct-result .ct-counters { margin-bottom: 12px; }
.ct-verdict { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 18px 22px; }
.ct-verdict__txt p { font-size: 14.5px; line-height: 1.6; margin-top: 6px; max-width: 820px; }
.ct-verdict__facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 10px; }
.ct-verdict__facts span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .02em; }
.ct-verdict__facts span + span::before { content: '·'; margin: 0 8px; color: var(--faint-2); }
.ct-verdict__acts { display: flex; flex-direction: column; gap: 8px; }
.ct-verdict__acts .btn { width: 100%; justify-content: flex-start; }
.ct-verdict--final { background: var(--moss-wash); border-color: #CFE3D5; }

/* ─────────────────────────── рабочая область ─────────────────────────── */

.ct-work { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 20px; align-items: start; margin-top: 18px; }
.ct-work.is-wide { grid-template-columns: minmax(0, 1fr); }
.ct-main { min-width: 0; }
.ct-modebar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.ct-legend { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ct-legend del.rl, .ct-legend ins.rl { font-family: var(--sans); }
.ct-legend__acc { display: inline-flex; align-items: center; gap: 6px; }
.ct-legend__acc::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--moss); }

/* ── лист документа ──
   Типографская шкала: наименование - подзаголовок - шапка - раздел - пункт.
   Шрифт листа - книжный, как в договоре; оболочка остаётся на Onest. */
.ct-sheet { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 30px 60px 60px 76px;
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif; font-size: 16px; line-height: 1.6; color: var(--ink);
  min-width: 0; overflow-wrap: anywhere; }
.ct-sheet__cap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint-2); padding-bottom: 12px; margin: 0 -24px 34px -40px; padding-left: 40px; padding-right: 24px;
  border-bottom: 1px solid var(--hair-sep); }
.ct-sheet__cap span:first-child { white-space: nowrap; flex: none; }
.ct-sheet__cap span:last-child { text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.ct-blk { position: relative; margin-bottom: 10px; text-align: justify; scroll-margin-top: 96px; border-radius: 8px;
  transition: background-color var(--dur-fast) var(--ease); }
.ct-blk--title { font-size: 18px; font-weight: 700; text-align: center; line-height: 1.3; margin: 0 0 6px; letter-spacing: .01em; }
.ct-blk--title ~ .ct-blk--title { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--hair); }
.ct-blk--subtitle { font-size: 16px; text-align: center; color: var(--ink-2); margin-bottom: 4px; line-height: 1.4; }
.ct-blk--meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.ct-blk--meta.is-long { font-family: inherit; font-size: 14px; text-align: center; }
.ct-blk--meta + .ct-blk:not(.ct-blk--meta):not(.ct-blk--subtitle) { margin-top: 24px; }
.ct-blk--h1 { font-weight: 700; text-transform: uppercase; text-align: left; margin: 28px 0 12px; letter-spacing: .01em; }
.ct-blk--h2 { font-weight: 700; text-align: left; margin: 18px 0 8px; }
.ct-blk--p { padding-left: 3em; text-indent: -3em; }
.ct-blk--p:not(:has(.ct-n)) { padding-left: 0; text-indent: 1.25em; }
.ct-n { display: inline-block; min-width: 3em; font-weight: 700; text-indent: 0; }
.ct-blk--li { padding-left: 24px; text-align: left; margin-bottom: 6px; }
.ct-blk--li::before { content: ''; position: absolute; left: 8px; top: .8em; width: 8px; height: 1px; background: var(--ink-2); }
.ct-blk--sign { font-size: 15px; text-align: left; margin-bottom: 4px; color: var(--ink-2); }

.ct-blk.is-touched { background: #FFFDF2; margin-left: -18px; margin-right: -14px; padding: 8px 14px 8px 18px;
  box-shadow: inset 3px 0 0 var(--amber); }
.ct-blk.is-touched.ct-blk--p:has(.ct-n) { padding-left: calc(3em + 18px); }
.ct-blk.is-high { box-shadow: inset 3px 0 0 var(--rust); }
.ct-blk.is-low { box-shadow: inset 3px 0 0 var(--steel); }
.ct-blk.is-virtual { outline: 1px dashed #E3C565; outline-offset: -1px; }
.ct-blk.is-accepted:not(.is-touched) { margin-left: -18px; padding-left: 18px; box-shadow: inset 2px 0 0 var(--moss); }
.ct-blk.is-accepted.ct-blk--p:has(.ct-n):not(.is-touched) { padding-left: calc(3em + 18px); }
.ct-blk.is-picked { background: var(--steel-wash); box-shadow: inset 3px 0 0 var(--ink); }

.ct-mks { position: absolute; left: -46px; top: 8px; display: flex; flex-direction: column; gap: 4px; text-indent: 0; }
.ct-mk { width: 22px; height: 22px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 1; padding: 0;
  transition: transform var(--dur-fast) var(--ease); }
.ct-mk:hover { transform: scale(1.12); }
.ct-mk--high { background: var(--rust-wash); color: var(--rust); }
.ct-mk--medium { background: var(--amber-wash); color: var(--amber); }
.ct-mk--low { background: var(--steel-wash); color: var(--steel); }

del.rl { color: var(--rust); text-decoration: line-through; text-decoration-thickness: 1px; background: var(--rust-wash); }
ins.rl { color: var(--ink); text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 2px;
  background: #FFF0A3; padding: 0 1px; }
.ct-sheet.is-clean del.rl { display: none; }
.ct-sheet.is-clean ins.rl { background: none; text-decoration: none; }
.ct-sheet.is-clean .ct-blk.is-touched, .ct-sheet.is-clean .ct-blk.is-accepted { background: none; box-shadow: none; }

.ct-tblwrap { overflow-x: auto; margin: 14px 0 18px; border-radius: 8px; }
.ct-doctbl { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 12.5px; line-height: 1.45; }
.ct-doctbl td { border: 1px solid var(--hair); padding: 6px 10px; vertical-align: top; text-align: left; overflow-wrap: normal; word-break: normal; white-space: pre-line; }
.ct-doctbl td:empty { padding: 0; width: 1px; }
.ct-doctbl tr:first-child td { background: var(--surface-2); font-weight: 600; }
/* таблицы документов из форм (fmt): шапка, итоги, выравнивание, подписи без рамок */
.ct-doctbl.is-form { table-layout: fixed; }
.ct-doctbl.is-form tr:first-child td { background: transparent; font-weight: 400; }
.ct-doctbl.is-form tr.is-head td { background: var(--surface-2); font-weight: 600; text-align: center; }
.ct-doctbl tr.is-total td { font-weight: 600; }
.ct-doctbl td.is-r { text-align: right; font-variant-numeric: tabular-nums; }
.ct-doctbl td.is-c { text-align: center; }
.ct-doctbl.is-plain td { border-color: transparent; padding: 3px 10px 3px 0; }
.ct-doctbl.is-plain tr.is-head td { background: transparent; text-align: left; letter-spacing: .02em; }
.ct-doctbl.is-sign { margin-top: 10px; }
.ct-doctbl tr.is-touched td { background: #FFFDF2; }
.ct-doctbl tr.is-picked td { background: var(--steel-wash); }

/* ── протокол разногласий ── */
.ct-proto__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ct-proto__head b { font-size: 16px; display: block; }
.ct-proto__head span { font-size: 12.5px; color: var(--faint); }
.ct-proto__wrap { max-width: 100%; }
.ct-proto__tbl { min-width: 860px; table-layout: fixed; font-size: 13.5px; }
.ct-proto__tbl th:nth-child(1) { width: 44px; } .ct-proto__tbl th:nth-child(2) { width: 112px; }
.ct-proto__tbl th:nth-child(5) { width: 24%; }
.ct-proto__tbl td { line-height: 1.5; }
.ct-proto__n { color: var(--faint); }
.ct-proto__where { font-weight: 600; font-size: 12.5px; }
.ct-proto__where .tag { margin-top: 6px; white-space: normal; text-align: left; }
.ct-proto__old { color: var(--ink-2); }
.ct-proto__tbl td.ct-proto__new { background: #FFFBE6; color: var(--ink); }
.ct-proto__tbl tbody tr:hover td.ct-proto__new { background: #FFF7D6; }
.ct-proto__basis { font-size: 12.5px; color: var(--muted); }
.ct-proto__basis div { margin-top: 6px; }
.ct-proto__tbl tr.is-acc td { background: #FBFDF9; }

/* ── боковая панель ── */
.ct-side { position: sticky; top: 72px; max-height: calc(100vh - 88px); display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.ct-side__tabs { display: flex; border-bottom: 1px solid var(--hair); flex: none; padding: 0 6px; }
.ct-side__tab { flex: 1; height: 46px; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--faint);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.ct-side__tab:hover { color: var(--ink); }
.ct-side__tab.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.ct-side__tab .cnt { font-family: var(--mono); font-size: 10.5px; background: var(--surface-3); color: var(--muted); border-radius: 999px; padding: 0 6px; line-height: 17px; }
.ct-side__bulk { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--hair-sep);
  font-size: 12.5px; color: var(--muted); background: var(--surface-2); flex: none; flex-wrap: wrap; }
.ct-side__bulk > span { flex: 1; min-width: 0; white-space: nowrap; }
.ct-side__bulkacts { display: flex; gap: 2px; flex: none; }
.ct-side__body { overflow-y: auto; flex: 1; position: relative; overscroll-behavior: contain; }

.ct-rev { position: relative; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--hair-sep); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease); }
.ct-rev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.ct-rev--high::before { background: var(--rust); }
.ct-rev--medium::before { background: #D9A441; }
.ct-rev--low::before { background: var(--steel); }
.ct-rev:hover { background: #FCFCFD; }
.ct-rev.is-picked { background: var(--steel-wash); }
.ct-rev.is-accepted::before { background: var(--moss); }
.ct-rev.is-rejected { opacity: .55; }
.ct-rev.is-rejected::before { background: var(--hair-2); }
.ct-rev.is-rejected .ct-rev__txt { text-decoration: line-through; text-decoration-color: var(--faint-2); }
.ct-rev__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-rev__n { width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; flex: none; }
.ct-rev.is-accepted .ct-rev__n { background: var(--moss); }
.ct-rev.is-rejected .ct-rev__n { background: var(--faint-2); }
.ct-rev__where { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; }
.ct-rev__txt { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 9px 0 8px; }
.ct-basis { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ct-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--teal); font-size: 12.5px; font-weight: 600; text-align: left; }
.ct-link:hover { text-decoration: underline; }
.ct-basis__src { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ct-basis__law { font-family: var(--mono); font-size: 11px; color: var(--faint); line-height: 1.5; }
.ct-rev__acts { display: flex; align-items: center; gap: 6px; margin-top: 11px; }

.ct-cov__head { padding: 14px 16px; border-bottom: 1px solid var(--hair-sep); }
.ct-cov__head b { display: block; font-size: 13.5px; }
.ct-cov__head span { font-size: 12px; color: var(--faint); }
.ct-sec { border-bottom: 1px solid var(--hair-sep); }
.ct-sec summary { display: flex; align-items: center; gap: 9px; padding: 10px 16px; cursor: pointer; list-style: none; font-size: 13px; }
.ct-sec summary::-webkit-details-marker { display: none; }
.ct-sec summary:hover { background: #FCFCFD; }
.ct-sec__num { width: 18px; font-size: 11px; color: var(--faint); flex: none; }
.ct-sec__title { flex: 1; min-width: 0; }
.ct-sec__cnt { font-family: var(--mono); font-size: 10.5px; color: var(--faint-2); }
.ct-sec ul { list-style: none; padding: 0 16px 10px 52px; display: flex; flex-direction: column; gap: 5px; }
.ct-sec li { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); align-items: baseline; }
.ct-sec li .ct-link { font-family: var(--mono); font-size: 11px; font-weight: 500; flex: none; }
.ct-sec li span { flex: 1; }
.ct-sec__hit { font-family: var(--mono); font-size: 10.5px; color: var(--rust); }
.ct-dot--high { color: var(--rust); } .ct-dot--medium { color: #D9A441; } .ct-dot--low { color: var(--steel); } .ct-dot--none { color: var(--hair-2); }

.ct-info { padding: 4px 0; }
.ct-kv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--hair-sep); font-size: 13px; }
.ct-kv > span { font-size: 12px; color: var(--faint); }
.ct-kv > div { min-width: 0; overflow-wrap: anywhere; }
.ct-info__acts { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; align-items: flex-start; }

/* ── окна ── */
.ct-modal-p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.ct-modal-p code { font-family: var(--mono); font-size: 12px; background: var(--surface-3); border-radius: 5px; padding: 1px 5px; color: var(--ink); }
.modal .ct-kv { padding-left: 0; padding-right: 0; }
.ct-pos .row { margin-bottom: 14px; }
.ct-pos .tag { white-space: normal; }
.ct-pos__req { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.ct-xml { font-family: var(--mono); font-size: 12px; line-height: 1.6; background: var(--ink); color: #E8E8EA; border-radius: 12px;
  padding: 16px 18px; overflow: auto; max-height: 60vh; white-space: pre; max-width: min(1036px, calc(100vw - 44px)); }
.ct-xml .x-ins { color: var(--lime); } .ct-xml .x-del { color: #F2A48F; } .ct-xml .x-tg { color: #93BFD6; }
.ct-xml .x-cm { color: #8A8A90; } .ct-xml .x-com { color: #C9BCF2; }

/* ─────────────────────────── правки контрагента ───────────────────────────
   Фиолетовый - правки контрагента (от его имени), жёлтый - наши правки (LEX
   и ответ МФГ). Сводка над листом, карточки во вкладке, раунды переговоров. */

.ct-row__cp { color: var(--violet); }
del.rl.rl--cp { color: var(--violet); background: var(--violet-wash); text-decoration-color: var(--violet); }
ins.rl.rl--cp { color: var(--ink); background: var(--violet-wash); text-decoration: underline; text-decoration-color: var(--violet);
  text-decoration-thickness: 1.5px; }
.rl-acc { text-decoration: underline dotted; text-decoration-color: #B9B0DC; text-underline-offset: 3px; }
.ct-legend ins.rl.rl--cp { padding: 0 3px; }
.ct-sheet.is-clean .rl-acc { text-decoration: none; }

.ct-mk--cp { width: auto; min-width: 22px; padding: 0 5px; background: var(--violet-wash); color: var(--violet); }
.ct-mk--cp.is-accepted { background: var(--moss-wash); color: var(--moss); }
.ct-mk--cp.is-rejected { background: var(--rust-wash); color: var(--rust); }
.ct-mk--cp.is-compromise { background: var(--amber-wash); color: var(--amber); }
.ct-mk.is-picked { box-shadow: 0 0 0 2px var(--ink); }
.ct-blk.is-cp { margin-left: -18px; margin-right: -14px; padding: 8px 14px 8px 18px; box-shadow: inset 3px 0 0 var(--violet); }
.ct-blk.is-cp.is-cp-done { box-shadow: inset 3px 0 0 var(--hair-2); }
.ct-blk.is-cp.ct-blk--p:has(.ct-n) { padding-left: calc(3em + 18px); }
.ct-blk.is-cp.is-picked { background: var(--steel-wash); box-shadow: inset 3px 0 0 var(--ink); }
.ct-doctbl tr.is-cp td { background: #FBFAFE; }
.ct-blk.is-silent { margin-left: -18px; margin-right: -14px; padding: 8px 14px 8px 18px; background: var(--rust-wash); box-shadow: inset 3px 0 0 var(--rust); }
.ct-blk.is-silent.ct-blk--p:has(.ct-n) { padding-left: calc(3em + 18px); }
.ct-silent { display: block; text-indent: 0; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); margin-bottom: 4px; }
.ct-doctbl td .ct-mk--cp { height: 20px; margin-right: 6px; vertical-align: 1px; display: inline-grid; }

/* ── сводка над листом ── */
.ct-neg { padding: 18px 22px; margin-bottom: 14px; border-color: #DCD6EE; }
.ct-neg--thin { padding: 12px 18px; }
.ct-neg__top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.ct-neg__txt { min-width: 0; }
.ct-neg__txt .dt { color: var(--violet); }
.ct-neg__line { font-size: 15px; line-height: 1.5; margin-top: 6px; }
.ct-neg__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ct-neg__pill { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color var(--dur-fast) var(--ease); }
.ct-neg__pill b { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.ct-neg__pill::before { content: ''; width: 7px; height: 7px; border-radius: 99px; flex: none; }
.ct-neg__pill--accept::before { background: var(--moss); }
.ct-neg__pill--reject::before { background: var(--rust); }
.ct-neg__pill--compromise::before { background: #D9A441; }
.ct-neg__pill--business::before { background: var(--steel); }
.ct-neg__pill:hover { border-color: #C8C8CE; }
.ct-neg__pill.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ct-neg__bar { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden; margin: 12px 0 10px; max-width: 640px; }
.ct-neg__seg { display: block; min-width: 6px; }
.ct-neg__seg--accept { background: var(--moss); }
.ct-neg__seg--reject { background: var(--rust); }
.ct-neg__seg--compromise { background: #D9A441; }
.ct-neg__seg--business { background: var(--steel); }
.ct-neg__facts { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ct-neg__engine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.ct-neg__sum { flex-basis: 100%; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ct-neg__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-neg__done { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--hair-sep); }
.ct-neg__done b { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.ct-neg__done b small { font-size: 17px; color: var(--faint); }
.ct-neg__acts { display: flex; flex-direction: column; gap: 8px; }
.ct-neg__acts .btn, .ct-neg__side > .btn { width: 100%; justify-content: flex-start; }
.ct-neg__acts .btn .cnt { margin-left: auto; font-family: var(--mono); font-size: 11px; opacity: .7; }

.ct-rounds { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-sep); }
.ct-neg--thin .ct-rounds { margin-top: 0; padding-top: 0; border-top: 0; }
.ct-rounds > .ct-counter__label { margin-right: 4px; }
.ct-round { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; border-radius: 12px;
  border: 1px solid var(--hair); background: var(--surface-2); cursor: pointer; text-align: left; min-width: 0; max-width: 100%; }
.ct-round b { font-size: 12.5px; }
.ct-round span { font-size: 11.5px; color: var(--faint); }
.ct-round.is-on { border-color: #CFC7EA; background: var(--violet-wash); }
.ct-round:hover { border-color: #C8C8CE; }
.ct-round__arrow { font-style: normal; color: var(--faint-2); }

/* ── вкладка «Правки контрагента» ── */
.ct-side__tabs.is-4 { padding: 0 2px; overflow-x: auto; scrollbar-width: none; }
.ct-side__tabs.is-4::-webkit-scrollbar { display: none; }
.ct-side__tabs.is-4 .ct-side__tab { flex: 1 0 auto; padding: 0 6px; font-size: 12px; gap: 4px; }
.ct-tab__short { display: none; }
.ct-side__tabs.is-4 .ct-side__tab .cnt { padding: 0 5px; }
.ct-side__tab--cp.is-on { box-shadow: inset 0 -2px 0 var(--violet); }
.ct-side__tab--cp .cnt { background: var(--violet-wash); color: var(--violet); }
.ct-cpbar { gap: 8px; padding: 8px 10px; flex-wrap: nowrap; }
.ct-cpbar__pills { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: none; }
.ct-cpbar__pills::-webkit-scrollbar { display: none; }
.ct-cpbar .pill { height: 26px; padding: 0 9px; font-size: 12px; flex: none; gap: 5px; }

.ct-cp { position: relative; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--hair-sep); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease); }
.ct-cp::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--violet); }
.ct-cp.is-accepted::before { background: var(--moss); }
.ct-cp.is-rejected::before { background: var(--rust); }
.ct-cp.is-compromise::before { background: #D9A441; }
.ct-cp:hover { background: #FCFCFD; }
.ct-cp.is-picked { background: var(--steel-wash); }
.ct-cp__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-cp__n { height: 22px; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; display: grid;
  place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; flex: none; }
.ct-cp.is-accepted .ct-cp__n { background: var(--moss); }
.ct-cp.is-rejected .ct-cp__n { background: var(--rust); }
.ct-cp.is-compromise .ct-cp__n { background: #B7862E; }
.ct-cp__diff { font-family: 'Times New Roman', Times, 'Liberation Serif', serif; font-size: 15px; line-height: 1.55; color: var(--ink);
  margin: 10px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hair-sep);
  overflow-wrap: anywhere; }
.ct-cp__diff.is-long { max-height: 9.6em; overflow: hidden; }
.ct-cp__diff.is-long.is-open { max-height: none; }
.ct-cp.is-picked .ct-cp__diff.is-long { max-height: 22em; }
.ct-cp__more { font-size: 12px; font-weight: 500; }
.ct-cp__who { font-size: 11px; color: var(--faint); margin-top: 4px; }
.ct-cp .ct-rev__txt { margin: 8px 0 6px; }
.ct-cp__comp { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FFFBE6; border: 1px solid #F1E3A6; }
.ct-cp__comp p { font-family: 'Times New Roman', Times, 'Liberation Serif', serif; font-size: 14.5px; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
.ct-cp__file, .ct-cp__their { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface-3); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.ct-cp__their { background: var(--violet-wash); }
.ct-cp__by { font-size: 11.5px; color: var(--faint); }
.ct-cp__file .ct-counter__label, .ct-cp__their .ct-counter__label, .ct-cp__comp .ct-counter__label, .ct-cp__edit .ct-counter__label { white-space: normal; letter-spacing: .08em; }
.ct-cp__over { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 7px 10px; border-radius: 10px;
  background: var(--steel-wash); color: var(--steel); font-size: 12.5px; line-height: 1.45; }
.ct-cp__over svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ct-cp__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.ct-cp__edit { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ct-cp__ta { min-height: 72px; font-family: 'Times New Roman', Times, 'Liberation Serif', serif; font-size: 15px; }

/* ── раунд: окно сравнения ── */
.ct-rd__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ct-rd__tiles > div { border: 1px solid var(--hair); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-rd__tiles b { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.ct-rd__tiles .is-moss { background: var(--moss-wash); border-color: #CFE3D5; }
.ct-rd__tiles .is-rust { background: var(--rust-wash); border-color: var(--rust-line); }
.ct-rd__tiles .is-violet { background: var(--violet-wash); border-color: #DCD6EE; }
.ct-rd__tiles .ct-counter__label { white-space: normal; }
.ct-rd { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.ct-rd__row { padding: 10px 14px; border-bottom: 1px solid var(--hair-sep); }
.ct-rd__row:last-child { border-bottom: 0; }
.ct-rd__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-rd__head b { font-size: 13px; }
.ct-rd__txt { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ct-rd__txt p { margin-top: 2px; overflow-wrap: anywhere; }
.ct-rd__txt.is-theirs p { color: var(--violet); }
.ct-rd__diff { margin-top: 6px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.ct-rd__sec { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); margin: 4px 0 8px; }

/* ─────────────────────────── конструктор ─────────────────────────── */

.ct-ask { padding: 18px 22px; }
.ct-ask__lab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-ask__row { display: flex; gap: 12px; align-items: stretch; }
.ct-ask__row .textarea { min-height: 64px; flex: 1; font-size: 15px; }
.ct-ask__row .btn { height: auto; min-height: 44px; }
.ct-ask__ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ct-chip { border: 1px solid var(--hair); background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; text-align: left; transition: border-color var(--dur-fast) var(--ease); }
.ct-chip:hover { border-color: #C8C8CE; color: var(--ink); }

.ct-bench { margin-top: 16px; padding: 20px 22px; scroll-margin-top: 76px; }
#ctPanel { scroll-margin-top: 76px; }
.ct-bench__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ct-bench__head h3 { font-size: 20px; margin-top: 8px; letter-spacing: -.025em; }
.ct-bench__head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; max-width: 780px; }
.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0 18px; }
.ct-bench__acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 16px; border-top: 1px solid var(--hair-sep); }
.ct-bench--done { border-color: #CFE3D5; }
.ct-prev { margin: 16px 0 16px; max-height: 440px; overflow: auto; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hair); padding: 16px; }
.ct-sheet--mini { padding: 30px 36px; font-size: 14.5px; max-width: 820px; margin: 0 auto; }
.ct-prev__tr { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--hair); padding: 5px 10px; margin-top: -1px; }
.ct-prev__more { font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: center; margin-top: 18px; }
.ct-row--form { grid-template-columns: 3px minmax(0, 1fr) 90px auto; }
.ct-row--form .ct-row__bar { background: transparent; }

/* ─────────────────────────── адаптив ─────────────────────────── */

@media (max-width: 1320px) {
  .ct-work { grid-template-columns: minmax(0, 1fr) 340px; }
  .ct-tab__full { display: none; } .ct-tab__short { display: inline; }
  .ct-sheet { padding: 28px 44px 52px 64px; }
  .ct-sheet__cap { margin-left: -28px; padding-left: 28px; margin-right: -12px; padding-right: 12px; }
  .ct-row { grid-template-columns: 3px minmax(0, 1fr) 180px auto; }
}
@media (max-width: 1100px) {
  .ct-tab__full { display: inline; } .ct-tab__short { display: none; }
  .ct-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-counters--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ct-counters--5 > :nth-child(-n+3) { grid-column: span 2; }
  .ct-counters--5 > :nth-child(n+4) { grid-column: span 3; }
  .ct-work { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; max-height: none; }
  .ct-side__body { max-height: 640px; }
  /* лист прокручивается внутри блока - правки сразу под ним */
  .ct-sheet { max-height: 76vh; overflow-y: auto; overscroll-behavior: contain; }
  .ct-sheet--mini { max-height: none; overflow: visible; }
  .ct-verdict { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ct-verdict__acts { flex-direction: row; flex-wrap: wrap; }
  .ct-verdict__acts .btn { width: auto; }
  .ct-neg__top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ct-neg__acts { flex-direction: row; flex-wrap: wrap; }
  .ct-neg__acts .btn, .ct-neg__side > .btn { width: auto; }
  .ct-neg__done { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .ct-rd__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ct-dochead h1 { font-size: 26px; }
  .ct-sheet { padding: 22px 28px 40px 52px; }
  .ct-sheet__cap { margin-left: -24px; padding-left: 24px; margin-right: 0; padding-right: 0; }
  .ct-row { grid-template-columns: 3px minmax(0, 1fr) auto; }
  .ct-row .ct-state { display: none; }
  .ct-row--form .ct-state { display: none; }
}
@media (max-width: 720px) {
  .ct-head .page-head__actions { width: 100%; }
  .ct-head .ct-seg { flex: 1; }
  .ct-head .ct-seg__item { flex: 1; justify-content: center; height: 38px; }
  .ct-head [data-upload] { width: 100%; height: 44px; }
  .ct-counters, .ct-counters--5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; scroll-padding: 0 16px; scrollbar-width: none; }
  .ct-counters::-webkit-scrollbar { display: none; }
  .ct-counter { flex: 0 0 74%; scroll-snap-align: start; }
  .ct-drop { padding: 14px 16px; align-items: flex-start; }
  .ct-drop span { display: block; }
  .ct-filters { flex-direction: column; align-items: stretch; }
  .ct-filters .pills { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); scroll-padding: 0 16px; scrollbar-width: none; }
  .ct-filters .pill { flex: none; }
  .ct-search { width: 100%; }
  .ct-group__note { display: none; }
  .ct-row, .ct-row--form { grid-template-columns: 3px minmax(0, 1fr); gap: 10px 14px; padding: 14px 14px 14px 0; }
  .ct-row .ct-state { display: flex; grid-column: 2; }
  .ct-row--form .ct-state { display: none; }
  .ct-row__acts { grid-column: 2; justify-content: flex-start; }
  .ct-row__bar { grid-row: span 3; margin: -14px 0; }
  .ct-row__acts .btn { height: 40px; }

  .ct-dochead h1 { font-size: 24px; }
  .ct-dochead__acts .btn { height: 40px; }
  .ct-params, .ct-run, .ct-verdict, .ct-ask, .ct-bench { padding: 16px; }
  .ct-params__grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ct-params__label { padding-top: 10px; }
  .ct-params .pills { flex-wrap: wrap; }
  .ct-params__go .btn--lime { width: 100%; height: 48px; }
  .ct-verdict__acts { flex-direction: column; }
  .ct-verdict__acts .btn { width: 100%; height: 44px; }
  .ct-neg { padding: 16px; }
  .ct-neg__acts { flex-direction: column; }
  .ct-neg__acts .btn, .ct-neg__side > .btn { width: 100%; height: 44px; }
  .ct-dochead__acts { width: 100%; }
  .ct-dochead__acts .btn { flex: 1 1 auto; justify-content: center; }
  .ct-blk.is-cp { margin-left: -10px; margin-right: -8px; padding: 8px 8px 8px 12px; }
  .ct-blk.is-cp.ct-blk--p:has(.ct-n) { padding-left: 12px; }
  .ct-rd__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-round { flex: 1 1 100%; }
  .ct-round__arrow { display: none; }
  .ct-modebar .ct-seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ct-modebar .ct-seg__item { flex: 1 0 auto; height: 36px; }

  .ct-sheet { padding: 18px 16px 28px 16px; font-size: 16px; text-align: left; border-radius: 14px; }
  .ct-sheet__cap { margin: 0 0 22px; padding-left: 0; padding-right: 0; }
  .ct-sheet__cap span:last-child { display: none; }
  .ct-blk { text-align: left; }
  .ct-blk--p, .ct-blk--p:not(:has(.ct-n)) { padding-left: 0; text-indent: 0; }
  .ct-n { min-width: 0; margin-right: .4em; }
  .ct-blk.is-touched, .ct-blk.is-accepted:not(.is-touched) { margin-left: -10px; margin-right: -8px; padding: 8px 8px 8px 12px; }
  .ct-blk.is-touched.ct-blk--p:has(.ct-n), .ct-blk.is-accepted.ct-blk--p:has(.ct-n):not(.is-touched) { padding-left: 12px; }
  .ct-mks { position: static; display: inline-flex; flex-direction: row; vertical-align: 1px; margin-right: 6px; }
  .ct-side__body { max-height: 70vh; }
  .ct-side__tab { font-size: 12.5px; }
  .ct-side__tabs.is-4 { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; }
  .ct-side__tabs.is-4 .ct-side__tab { height: 42px; border-bottom: 1px solid var(--hair-sep); }
  .ct-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  /* протокол - карточками */
  .ct-proto__wrap { border: 0; background: none; overflow: visible; }
  .ct-proto__tbl, .ct-proto__tbl tbody, .ct-proto__tbl tr, .ct-proto__tbl td { display: block; min-width: 0; width: auto; }
  .ct-proto__tbl thead { display: none; }
  .ct-proto__tbl tr { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-tile); margin-bottom: 10px; overflow: hidden; }
  .ct-proto__tbl td { border-bottom: 1px solid var(--hair-sep); padding: 10px 14px; }
  .ct-proto__tbl td:last-child { border-bottom: 0; }
  .ct-proto__tbl td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: .1em; color: #9A9AA0; margin-bottom: 4px; }
  .ct-proto__n { display: none !important; }
  .ct-proto__where { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; }
  .ct-proto__where .tag { margin-top: 0; }
  .ct-ask__row { flex-direction: column; }
  .ct-ask__row .btn { width: 100%; }
  .ct-form { grid-template-columns: minmax(0, 1fr); }
  .ct-bench__acts .btn { width: 100%; }
  .ct-sheet--mini { padding: 18px 16px; }
  .ct-prev { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-skel i { animation: none; }
  .ct-run__bar i { transition: none; }
}
