/* Палитра и кнопки — как в интерфейсе Битрикс24 (общие с b24-focus и b24-crm-hygiene); компоновка — карточки, плитки, таблицы в рамке */
:root {
  --ground: #eef2f4;
  --surface: #fff;
  --ink: #333;
  --ink-2: #525c69;
  --muted: #6f7882;
  --line: #e4e8eb;
  --line-strong: #cfd5da;
  --chip-bg: #f5f7f8;
  --accent: #2fc6f6;
  --accent-dark: #11a9d9;
  --link: #2067b0;
  --cta: #bbed21;
  --cta-hover: #d2f95f;
  --danger: #ff5752;
  --ok-bg: #f1fbd0; --ok-ink: #4f7d00; --ok-mark: #7bb300;
  --err-bg: #ffe8e8; --err-ink: #d0312b; --err-mark: #ff5752;
  --info-bg: #e5f9ff; --info-ink: #0b8eb6;
  --warn-bg: #fff4d6; --warn-ink: #8a5a00; --warn-mark: #f5b400;
  --shadow: 0 1px 2px rgba(20, 24, 30, .06), 0 4px 14px rgba(20, 24, 30, .05);
  --radius: 12px;
  /* для тем оформления (/_frbs/themes.js): светлые значения — как было */
  --line-soft: #eef1f3;
  --accent-soft: #e5f9ff;
  --hover: #f7fbfd;
  --soft: #fafbfc;
  --pop: #fff;
  --sel-soft: #f2fbfe;
  --sel-bg: #eefaff;
  --sel-bg-hover: #dff5fd;
  --line-hover: #a8adb4;
  --strong: #2b333d;
  --on-strong: #fff;
  --star: #f5b400;
  --chart-grid: #e4e8eb;
  --chart-plan: #a8b1bb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.45 "Golos Text", "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.error { color: var(--err-ink); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.pad { padding: 24px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* ---------- каркас ---------- */
.app { max-width: 1240px; margin: 0 auto; padding: 16px clamp(12px, 3vw, 28px) 40px; display: flex; flex-direction: column; gap: 20px; }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 8px; white-space: nowrap; font-size: 14px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.page-head { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
.thesis { margin: 0; max-width: 78ch; color: var(--ink-2); }
.back { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--link); font-size: 14px; }
.back:hover { text-decoration: underline; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section { display: flex; flex-direction: column; gap: 14px; }

/* ---------- кнопки и поля (ui-btn Битрикс24) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-hover); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-cta { background: var(--cta); border-color: var(--cta); color: var(--ink-2); }
.btn-cta:hover:not(:disabled) { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-danger { color: var(--err-ink); border-color: #f3b7b5; }
.btn-l { height: 46px; border-radius: 23px; font-size: 13px; padding: 0 28px; }
.btn-s { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 11px; }
.x { border: 0; background: var(--surface); color: var(--ink-2); border-radius: 50%; width: 28px; height: 28px; font-size: 16px; line-height: 1; flex: none; }
.x:hover { background: var(--ink-2); color: #fff; }

/* поддержка */
.support { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--accent); }
.support .card-head { margin-bottom: 0; }
.support-ctx { color: var(--ink-2); }
textarea.input { resize: vertical; }

.input {
  width: 100%; min-height: 38px; padding: 7px 10px; font: inherit; font-size: 14px; color: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
}
.input:focus { outline: none; border-color: var(--accent); }
.input-s { min-height: 32px; padding: 5px 8px; }
select.input { width: auto; max-width: 100%; }
.num-input { width: 96px; }
.search { max-width: 320px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 13px; color: var(--ink-2); }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check-line input { accent-color: var(--accent); margin-top: 3px; flex: none; }

/* метки */
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 6px; white-space: nowrap; background: var(--chip-bg); color: var(--ink-2); }
.pill.info { background: var(--info-bg); color: var(--info-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.err { background: var(--err-bg); color: var(--err-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }

.dashed { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-2); background: var(--surface); }
.dashed b { color: var(--ink); font-weight: 600; }
.note { border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note.ok { background: var(--ok-bg); color: var(--ok-ink); }
.note.err { background: var(--err-bg); color: var(--err-ink); }
.note.info { background: var(--info-bg); color: var(--info-ink); }

.progress { height: 10px; background: var(--chip-bg); border-radius: 5px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 5px; transition: width .4s; }
/* ---------- фильтры и таблицы ---------- */
.toolbar { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.toolbar .right { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 14px; padding: 4px 11px; font-size: 13px; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }

.tablewrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; border: 1px solid var(--line-strong); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 13px; font-weight: 600; background: var(--chip-bg); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
td.title a { font-weight: 500; text-decoration: none; }
td.title a:hover { text-decoration: underline; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
.wide { min-width: 720px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
/* ---------- настройки, справка, отчёты ---------- */
.settings { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.settings .card { display: flex; flex-direction: column; gap: 10px; }
.settings .card-head { margin-bottom: 0; }
/* таблица полей в настройках — как в «Гигиене CRM» */
.fields-table { border: 1px solid var(--line-strong); border-radius: 10px; max-height: 420px; overflow-y: auto; overflow-x: hidden; background: var(--surface); }
.fields-table table { font-size: 14px; table-layout: fixed; }
.fields-table th:nth-child(2) { width: 48%; }
.fields-table th:nth-child(3) { width: 24%; }
.fields-table th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; }
.fields-table td { padding: 7px 10px; vertical-align: middle; overflow-wrap: anywhere; }
.fields-table td.badge-cell { overflow-wrap: normal; }
.fields-table tbody tr { cursor: pointer; }
.fields-table tbody tr:hover td { background: var(--hover); }
.fields-table tbody tr.on td { background: var(--info-bg); }
.fields-table tbody tr.off td { background: var(--chip-bg); color: var(--muted); }
.fields-table td.code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.fields-table td.badge-cell .pill { white-space: normal; }
.fields-table th.cb, .fields-table td.cb { width: 36px; padding-right: 0; }
.fields-table td.cb input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; vertical-align: middle; }
.hl-table tbody tr { cursor: default; }
.field-badge { font-size: 11px; padding: 1px 7px; }
.fields-table td.badge-cell .pill { margin: 2px 4px 2px 0; }
.hl-table th:nth-child(1) { width: 36%; }
.hl-table th:nth-child(2) { width: 22%; }
.hl-table th:nth-child(3) { width: auto; }
.hl-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hl-preview .pill { margin: 0; }
.hl-table .swatches { flex-wrap: nowrap; }
@media (max-width: 640px) {
  .fields-table th, .fields-table td { padding-left: 6px; padding-right: 6px; }
  .fields-table table { font-size: 13px; }
  .fields-table th:nth-child(3), .fields-table td.code { display: none; }
  .fields-table th:nth-child(2) { width: auto; }
  .hl-table th:nth-child(2) { display: none; }
}
/* сохранение настроек — как в «Гигиене CRM»: значок состояния рядом с заголовком блока */
.head-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.save-status { font-size: 13px; color: var(--muted); }
.save-status.ok { color: var(--ok-ink); }
.save-status.err { color: var(--err-ink); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.req-group > summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.req-group[open] > summary { margin-bottom: 8px; }
.req-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.field-name { display: flex; flex-direction: column; min-width: 0; }
.card-sub { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.card-sub b { color: var(--ink); }
.field-code { font-size: 11px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notes ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
.notes b { color: var(--ink); }

/* ---------- журнал изменений ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-size: 34px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-value.small { font-size: 18px; line-height: 1.3; }
.kpi .hint { margin-top: auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok-mark); }
.dot.warn { background: var(--warn-mark); }
.dot.err { background: var(--err-mark); }

/* одна правка — одна группа строк: дата и автор только в первой, между группами линия плотнее */
/* сетка как в списках Битрикс24: вертикальные линии между колонками, сохранение — отдельный блок */
.log { table-layout: fixed; min-width: 760px; }
.log th + th, .log td + td, .log td.fcell { border-left: 1px solid var(--line); }
.log tbody td { border-top: 1px solid var(--line); }
.log tr.first td { border-top: 1px solid var(--line-strong); }
.log tbody tr:first-child td { border-top: 0; }
.log tr.alt td { background: #f7f9fa; }
.log td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.log td.when .muted { font-size: 13px; }
.log td.who { color: var(--ink-2); }
.log td.fcell { font-weight: 500; overflow-wrap: anywhere; }
.log td.fcell .field-code { font-weight: 400; }
.log td.rec a { font-weight: 500; text-decoration: none; }
.log td.rec a:hover { text-decoration: underline; }
.log td.rec .hint { margin-top: 2px; }
.val { overflow-wrap: anywhere; white-space: pre-line; }
.val.old { color: var(--muted); }
.val .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.val div { cursor: pointer; }
.val .empty { font-style: italic; color: var(--muted); }
.val a { text-decoration: none; }
.val a:hover { text-decoration: underline; }
.log mark { background: var(--warn-bg); color: inherit; border-radius: 2px; }

.tab { padding: 14px clamp(10px, 2vw, 20px) 28px; gap: 14px; max-width: none; }
.tab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.tab-head h1 { font-size: 20px; }
.since { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.filters { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; }
.filters .search { flex: 1 1 220px; }
.dates { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dates .input { width: auto; }
.empty-state { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- знакомство с приложением ---------- */
/* ярлычок у правого края, как в «Гигиене CRM»: окно приложения растянуто по содержимому, поэтому он стоит у верха, рядом с меню */
.tour-tab { position: fixed; right: 0; top: 96px; z-index: 5; writing-mode: vertical-rl; transform: rotate(180deg); border: 0; border-radius: 0 8px 8px 0;
  background: var(--accent); color: #fff; padding: 12px 5px; font-size: 13px; box-shadow: var(--shadow); }
.tour-tab:hover { background: var(--accent-dark); }
@media (max-width: 700px) { .tour-tab { display: none; } }
.ob-overlay { position: fixed; inset: 0; background: rgba(20, 24, 30, .45); display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; overflow-y: auto; z-index: 100; }
.ob { position: relative; background: var(--surface); border-radius: 16px; box-shadow: 0 12px 40px rgba(20, 24, 30, .25); width: 100%; max-width: 760px; overflow: hidden; }
.ob-x { position: absolute; top: 10px; right: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); z-index: 1; }
.ob-pic { background: var(--ground); border-bottom: 1px solid var(--line); height: 300px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.ob-pic img { width: 100%; height: auto; display: block; }
.ob-pic.small { align-items: center; background: linear-gradient(135deg, #e6eaff, #f1e7fd); }
.ob-pic.fit { height: auto; padding: 16px 16px 0; }
.ob-pic.fit img { border-radius: 10px 10px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: var(--shadow); }
.ob-pic.small img { width: 120px; border-radius: 26px; box-shadow: 0 8px 24px rgba(46, 68, 184, .25); }
.ob-body { padding: 18px 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.ob-body h2 { font-size: 20px; }
.ob-body p { margin: 0; color: var(--ink-2); }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ob-dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }
.ob-skip { border-color: transparent; color: var(--muted); }
.ob-tag { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 1px 8px; margin-right: 8px; letter-spacing: .04em; }
.ob-path { font-size: 14px; background: var(--chip-bg); border-radius: 8px; padding: 8px 12px; color: var(--ink); }

/* ---------- другие наши приложения ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-card { display: flex; flex-direction: column; gap: 12px; }
.app-head { display: flex; gap: 14px; align-items: center; }
.app-head img { border-radius: 14px; flex: none; }
.app-slogan { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.app-about { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 760px) {
  .kpis, .notes, .apps { grid-template-columns: minmax(0, 1fr); }
  .ob-pic { height: 180px; }
  .toolbar .right { margin-left: 0; }
  .card { padding: 16px; }
}

/* ---------- выделение полей цветом: плашка на названии, значения не трогаем ---------- */
.fname { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 500; }
.hl-red { background: #ffe5e4; color: #b42318; }
.hl-orange { background: #fff0dc; color: #9a4a00; }
.hl-yellow { background: #fff6c7; color: #7a5d00; }
.hl-green { background: #eaf7cf; color: #3f6b00; }
.hl-teal { background: #dcf7f3; color: #0b6e63; }
.hl-blue { background: #e0f6fe; color: #0b7ea8; }
.hl-indigo { background: #e6eaff; color: #2e44b8; }
.hl-purple { background: #f1e7fd; color: #6b2fb3; }
.hl-list { display: flex; flex-direction: column; }
.hl-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--line); }
.hl-row:first-child { border-top: 0; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; flex: none; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink-2); }
.sw.none { background: var(--surface); border: 1.5px dashed var(--line-strong); }
.sw.none[aria-pressed="true"] { box-shadow: none; border-style: solid; border-color: var(--muted); }
.sw-red { background: #ff5752; }
.sw-orange { background: #ff9f2e; }
.sw-yellow { background: #f5c400; }
.sw-green { background: #7bb300; }
.sw-teal { background: #1ec6b4; }
.sw-blue { background: #2fc6f6; }
.sw-indigo { background: #4f6bed; }
.sw-purple { background: #a56ee8; }

/* уведомления: список правил и форма правила */
.rules { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.rule { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-top: 1px solid var(--line); }
.rule:first-child { border-top: 0; }
.rule.off .rule-main { opacity: .55; }
.rule-on input { accent-color: var(--accent); width: 16px; height: 16px; margin: 3px 0 0; }
.rule-main { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rule-when b { font-weight: 600; }
.rule-to { color: var(--ink-2); }
.rule-stat { font-size: 12px; }
.rule-actions { display: flex; gap: 6px; }
.rule-form { margin-top: 14px; border: 1.5px solid var(--accent); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--chip-bg); }
.rule-form h3 { margin: 0; font-size: 16px; }
.rule-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rule-label { min-width: 84px; font-size: 13px; color: var(--muted); }
.rule-line select.input { max-width: 340px; }
.combo { position: relative; display: inline-block; width: 320px; max-width: 100%; }
.combo .input { width: 100%; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max(100%, 360px); max-width: 90vw; max-height: 280px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.combo-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.combo-item:hover, .combo-item.active { background: var(--info-bg); }
.combo-item[aria-selected="true"] { font-weight: 600; }
.combo-hint { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.combo-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.rule-preview { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.rules-add { margin-top: 14px; }
.chip-x { border: 0; background: none; padding: 0 0 0 2px; font-size: 15px; line-height: 1; color: var(--muted); cursor: pointer; }
.chip-x:hover { color: var(--err-ink); }
.err-text { color: var(--err-ink); }
@media (max-width: 640px) {
  .rule { grid-template-columns: 24px minmax(0, 1fr); }
  .rule-actions { grid-column: 2; }
  .rule-label { min-width: 0; width: 100%; }
}

/* «Поможем настроить журнал» — компактная плашка с вопросом в чат поддержки (как в «Премиях» и «Особых полях», но меньше) */
.cta-chat { margin: 0; max-width: 820px; padding: 9px 12px 9px 10px; border-radius: 10px; color: #fff;
  background: linear-gradient(120deg, #4aa3ff 0%, #1269d3 100%); box-shadow: 0 3px 10px rgba(30, 136, 255, .2); }
.cta-main { display: flex; align-items: center; gap: 10px; }
.cta-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: rgba(255,255,255,.92); }
.cta-title { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.cta-free { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #ffe066; color: #5c4400; border-radius: 5px; padding: 1px 6px; }
.cta-act { flex: none; display: flex; align-items: center; }
.btn.cta-btn { height: 30px; padding: 0 14px; background: #fff; color: #1265c7; border: 0; font-weight: 700; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.btn.cta-btn:hover { background: #eef6ff; }
.btn.cta-btn:disabled { opacity: .7; cursor: default; }
.cta-link { border: 0; background: none; padding: 0; color: #fff; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cta-form { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
.cta-form .input { border-color: transparent; color: #333; }
.cta-form-row { display: flex; align-items: center; gap: 14px; }
.cta-msg { margin-top: 6px; font-size: 13px; color: #fff; font-weight: 500; }
@media (max-width: 720px) { .cta-main { flex-wrap: wrap; } .cta-act { width: 100%; } }
.cta-chat [hidden] { display: none !important; }

/* --- тёмные темы оформления (/_frbs/themes.js): правила только для data-mode="dark", классическая тема не меняется --- */
:root[data-mode="dark"] .btn-danger { border-color: color-mix(in srgb, var(--err-ink) 45%, transparent); }
:root[data-mode="dark"] .x:hover { color: var(--on-strong); }
:root[data-mode="dark"] .log tr.alt td { background: var(--soft); }
/* подсветка полей (цвет выбирает пользователь): в тёмных темах тот же оттенок, но приглушённый фон и светлый текст */
:root[data-mode="dark"] .hl-red { background: color-mix(in srgb, #ff5752 24%, transparent); color: #ff9e9b; }
:root[data-mode="dark"] .hl-orange { background: color-mix(in srgb, #ff9f2e 24%, transparent); color: #ffc078; }
:root[data-mode="dark"] .hl-yellow { background: color-mix(in srgb, #f5c400 22%, transparent); color: #f2d461; }
:root[data-mode="dark"] .hl-green { background: color-mix(in srgb, #7bb300 24%, transparent); color: #b0dc5a; }
:root[data-mode="dark"] .hl-teal { background: color-mix(in srgb, #1ec6b4 22%, transparent); color: #6fe0d4; }
:root[data-mode="dark"] .hl-blue { background: color-mix(in srgb, #2fc6f6 22%, transparent); color: #7fd8f7; }
:root[data-mode="dark"] .hl-indigo { background: color-mix(in srgb, #4f6bed 28%, transparent); color: #a6b5ff; }
:root[data-mode="dark"] .hl-purple { background: color-mix(in srgb, #a56ee8 26%, transparent); color: #d0aef7; }
/* обложка первого шага знакомства: тот же сиренево-синий градиент, но тёмный */
:root[data-mode="dark"] .ob-pic.small { background: linear-gradient(135deg, color-mix(in srgb, #4f6bed 24%, var(--surface)), color-mix(in srgb, #a56ee8 22%, var(--surface))); }

/* ================= Защита полей ================= */
/* правило в списке: замок, что закрыто, когда, кто может */
.lock { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--info-bg); color: var(--info-ink); }
.lock svg { width: 18px; height: 18px; }
.lock.stage { background: #e6eaff; color: #2e44b8; }
.rule.off .lock { background: var(--chip-bg); color: var(--muted); }
.g-rule { grid-template-columns: 28px 34px minmax(0, 1fr) auto; padding: 14px 16px; }
.g-rule .rule-main { gap: 6px; }
.rule-what { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.rule-what .fname { background: var(--chip-bg); color: var(--ink); }
.rule-what .tname { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.rule-meta { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3px 10px; font-size: 14px; color: var(--ink-2); }
.rule-meta .k { color: var(--muted); font-size: 13px; padding-top: 1px; }
.rule-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rule-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rule-count b { color: var(--ink); font-weight: 600; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* редактор правила */
.editor { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.ed-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px 56px; padding: 16px 20px; border-top: 1px solid var(--line); }
.ed-row:first-child { border-top: 0; }
.ed-label { font-size: 14px; font-weight: 600; color: var(--ink); padding-top: 6px; }
.ed-label .hint { font-weight: 400; margin-top: 3px; }
.ed-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ed-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px; background: var(--chip-bg); border-top: 1px solid var(--line); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 14px; background: var(--surface); }
.opt input { accent-color: var(--accent); margin: 3px 0 0; flex: none; }
.opt.on { border-color: var(--accent); background: var(--sel-bg); }
.opt-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.opt-title { font-weight: 500; color: var(--ink); }
.opt .hint { font-size: 13px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.token { display: inline-flex; align-items: center; gap: 4px; background: var(--info-bg); color: var(--info-ink); border-radius: 14px; padding: 4px 6px 4px 11px; font-size: 13px; font-weight: 500; }
.token.user { background: #e6eaff; color: #2e44b8; }
.token.dept { background: #eaf7cf; color: #3f6b00; }
.token.sys { background: var(--chip-bg); color: var(--ink-2); }
.token .chip-x { color: inherit; opacity: .6; }
.add-token { border: 1px dashed var(--line-strong); background: var(--surface); color: var(--link); border-radius: 14px; padding: 4px 11px; font-size: 13px; }
.add-token:hover { border-color: var(--accent); }
/* шкала стадий: закрытые стадии — с замком */
.stages { display: flex; flex-wrap: wrap; gap: 4px; }
.stg { position: relative; border: 0; padding: 6px 14px 6px 12px; font-size: 13px; background: var(--chip-bg); color: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); padding-left: 16px; }
.stg:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-left: 12px; }
.stg.on { background: var(--accent); color: #fff; }
.stg.on::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.stg.won { box-shadow: inset 0 -3px 0 #7bb300; }
.stg.lost { box-shadow: inset 0 -3px 0 #ff5752; }
.stg.cur { outline: 2px solid var(--ink-2); outline-offset: -2px; }
.preview { display: flex; gap: 12px; align-items: flex-start; margin: 0 20px 16px; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--ink); font-size: 14px; }
.preview .lock { background: var(--surface); }

/* журнал попыток */
.att { table-layout: fixed; min-width: 900px; }
.att th + th, .att td + td { border-left: 1px solid var(--line); }
.att td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.att td.when .muted { font-size: 13px; }
.att td.rec a { font-weight: 500; text-decoration: none; }
.att .tried { text-decoration: line-through; text-decoration-color: var(--err-mark); color: var(--muted); }
.att .res { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.att .rule-ref { font-size: 12px; color: var(--muted); }

/* вкладка в карточке */
.locked { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.locked-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.locked-row:first-child { border-top: 0; }
.locked-row.open .lock { background: var(--chip-bg); color: var(--muted); }
.locked-name { font-weight: 600; }
.locked-why { font-size: 13px; color: var(--ink-2); }

/* пример уведомления: сообщение в чате Битрикс24 */
.bubble-wrap { display: flex; gap: 10px; align-items: flex-start; background: #dbe5ee; border-radius: 12px; padding: 16px; }
.bubble-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #5fd8ff, #1d5fb8); display: grid; place-items: center; color: #fff; }
.bubble-ava svg { width: 18px; height: 18px; }
.bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: 14px; max-width: 560px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble-name { font-size: 13px; font-weight: 600; color: #2067b0; margin-bottom: 4px; }
.bubble p { margin: 0 0 6px; }
.bubble .time { font-size: 11px; color: #a8adb4; text-align: right; margin-top: 2px; }
.tl-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: var(--surface); }
.tl-item .lock { width: 28px; height: 28px; border-radius: 50%; }
:root[data-mode="dark"] .bubble-wrap { background: var(--soft); }
:root[data-mode="dark"] .bubble { background: var(--surface); }
@media (max-width: 760px) {
  .ed-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .g-rule { grid-template-columns: 24px 34px minmax(0, 1fr); }
  .rule-side { grid-column: 3; align-items: flex-start; }
}

/* закрыто полностью: ввод в карточке выключен настройкой поля */
.lock.full { background: #0b6e63; color: #fff; }
.pill.full { background: #dcf7f3; color: #0b6e63; }
.opt.disabled { cursor: not-allowed; background: var(--chip-bg); }
.opt.disabled .opt-title { color: var(--muted); }
.locked-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.locked-side .input { width: 160px; }
.locked-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.locked-row.full { background: #f3fbf9; }
:root[data-mode="dark"] .locked-row.full { background: var(--soft); }

/* ---------- стадии в редакторе: воронки, наборы, кисть ---------- */
.stg-ed { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.stg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.stg-k { font-size: 13px; color: var(--muted); min-width: 92px; }
.seg-s { box-shadow: none; border: 1px solid var(--line-strong); }
.seg-s button { padding: 4px 11px; font-size: 13px; }
.seg .n { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--info-bg); color: var(--info-ink); font-size: 11px; font-weight: 600; }
.seg button[aria-pressed="true"] .n { background: rgba(255,255,255,.3); color: #fff; }
.stg.s-lock { background: var(--accent); color: #fff; }
.stg.s-lock::before, .stg.on::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.stg.s-empty { background: repeating-linear-gradient(135deg, #d6f4fd 0 6px, #eafaff 6px 12px); color: var(--info-ink); }
.stg.s-empty::before { content: "✎"; margin-right: 5px; }

/* ---------- карта полей ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.cell-mini { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--chip-bg); border: 1px solid var(--line); color: #fff; }
.cell-mini svg { width: 12px; height: 12px; }
.cell-mini.c-lock { background: var(--accent); border-color: var(--accent); }
.cell-mini.c-empty { background: repeating-linear-gradient(135deg, #d6f4fd 0 4px, #eafaff 4px 8px); color: var(--info-ink); border-color: #bdeaf8; }
.cell-mini.c-full { background: #0b6e63; border-color: #0b6e63; }
.map-wrap { overflow-x: auto; }
.map { table-layout: fixed; min-width: 760px; user-select: none; }
.map th, .map td { border-left: 1px solid var(--line); }
.map th.map-field { width: 190px; text-align: left; background: var(--surface); font-weight: 600; white-space: normal; border-left: 0; }
.map thead th.map-field { background: var(--chip-bg); }
.map th.map-stg { text-align: center; font-weight: 500; font-size: 12px; white-space: normal; line-height: 1.25; vertical-align: bottom; }
.map th.map-stg.won { box-shadow: inset 0 -3px 0 #7bb300; }
.map th.map-stg.lost { box-shadow: inset 0 -3px 0 #ff5752; }
.map td.cell { height: 46px; padding: 0; text-align: center; vertical-align: middle; cursor: pointer; }
.map td.cell:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.map td.cell .ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.map td.cell .ic svg { width: 15px; height: 15px; }
.map td.cell .dotc { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.map td.cell.c-lock { background: #e5f9ff; }
.map td.cell.c-lock .ic { background: var(--accent); color: #fff; }
.map td.cell.c-empty { background: repeating-linear-gradient(135deg, #eefbff 0 7px, #f8fdff 7px 14px); }
.map td.cell.c-empty .ic { color: var(--info-ink); background: #d6f4fd; }
.map td.cell.c-cond { color: var(--warn-ink); background: var(--warn-bg); font-size: 12px; font-weight: 600; }
.map td.cell.fixed { cursor: alias; }
.map td.cell.hl { box-shadow: inset 0 0 0 3px #ff9f2e; }
.map tr.map-full td.band { background: #f3fbf9; color: #0b6e63; font-size: 14px; padding: 8px 12px; cursor: pointer; }
.map tr.map-full td.band .lock { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; vertical-align: middle; margin-right: 10px; }
.map tr.map-full td.band .lock svg { width: 14px; height: 14px; }
.map tr.map-stage td.cell.back.on { background: #eef0ff; }
.map tr.map-stage td.cell.back .ic { color: #2e44b8; }
.map tr.map-stage th { border-top: 1px solid var(--line-strong); }
.map-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.map-foot .right { margin-left: auto; }
.map-info { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; min-height: 58px; }
.map-info .lock.open { background: var(--chip-bg); color: var(--muted); }
:root[data-mode="dark"] .map td.cell.c-lock { background: var(--sel-soft); }
:root[data-mode="dark"] .map td.cell.c-empty, :root[data-mode="dark"] .stg.s-empty { background: var(--soft); }
:root[data-mode="dark"] .map tr.map-full td.band { background: var(--soft); }
/* «Все» / «Снять» у поля на карте */
.map .mf { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.row-acts { display: inline-flex; gap: 3px; flex: none; }
.mini { border: 1px solid var(--line-strong); background: var(--surface); color: var(--link); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.mini:hover:not(:disabled) { border-color: var(--accent); background: var(--sel-bg); }
.mini:disabled { color: var(--muted); opacity: .45; cursor: default; }
.map th.map-field { width: 214px; }
/* главный экран: строка сводки над картой */
.statusline { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; font-size: 14px; color: var(--ink-2); }
.statusline b { color: var(--ink); font-weight: 600; }
/* длинные названия стадий переносятся по слогам и не налезают на соседние */
.map th.map-stg { overflow-wrap: anywhere; hyphens: auto; padding-left: 6px; padding-right: 6px; }

/* ---------- один экран: карта + панель поля ---------- */
.app { max-width: 1320px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.map tr.sel th.map-field { box-shadow: inset 4px 0 0 var(--accent); background: var(--sel-bg); }
.map th.map-field .fname-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.map th.map-field .fname-btn:hover { color: var(--link); text-decoration: underline; }
.map .shared { margin-left: 5px; font-size: 11px; color: var(--muted); }
.map td.cell.with-cond { position: relative; }
.map td.cell.with-cond::after { content: "усл."; position: absolute; right: 3px; bottom: 2px; font-size: 9px; font-weight: 600; color: var(--warn-ink); }
.map.single th.map-stg { width: 380px; text-align: left; }
.map td.tri-cell { padding: 8px 12px; }
.map td.who-cell { font-size: 14px; color: var(--ink-2); vertical-align: middle; }
.seg.tri button.v-lock[aria-pressed="true"] { background: var(--accent); }
.seg.tri button.v-empty[aria-pressed="true"] { background: #d6f4fd; color: var(--info-ink); }
.seg.tri button[aria-pressed="true"]:not(.v-lock):not(.v-empty) { background: var(--chip-bg); color: var(--ink); }
.panel { background: var(--surface); border-radius: 14px; box-shadow: 0 10px 34px rgba(20, 40, 70, .14); overflow: hidden; }
.p-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.p-head h2 { font-size: 20px; }
.p-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.p-head .x { margin-left: auto; background: var(--chip-bg); }
.p-sec { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.p-sec h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.p-sec .seg { align-self: flex-start; }
.p-sec .stages { gap: 3px; }
.p-sec .stg { font-size: 12px; padding: 5px 12px 5px 14px; }
.p-stages { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.p-stages .ln { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.p-stages .k { color: var(--muted); font-size: 13px; }
.also { display: flex; flex-wrap: wrap; gap: 6px; }
.p-foot { padding: 14px 18px; background: var(--chip-bg); display: flex; flex-direction: column; gap: 10px; }
.stat { font-size: 13px; color: var(--ink-2); }
.stat b { color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; margin-left: auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 34px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { left: 17px; }
.special { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; }
.special:hover { border-color: var(--accent); }
.special b { font-weight: 600; }
.special .hint { margin-top: 2px; }
.special .arr { color: var(--link); font-size: 18px; }
.exc { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.exc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
@media (max-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr); } .panel { position: static; } }
.map .shared { display: inline-flex; vertical-align: -2px; color: var(--accent-dark); }
.map .shared svg { width: 13px; height: 13px; }

/* ---------- роли, условия, согласования, надёжность ---------- */
.add-sel { appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; font-size: 13px; }
.conds { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cond-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.cond-row + .cond-row::before { content: "и"; order: -1; font-size: 12px; color: var(--muted); margin-right: 2px; }
.cond-val { width: 140px; }
.dry { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dry-out b { color: var(--ink); }
.statusline .paused { color: var(--warn-ink); }
.topbar .seg .n { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; }
.appr-list { display: flex; flex-direction: column; gap: 12px; }
.appr { display: flex; flex-direction: column; gap: 10px; }
.appr-head { display: flex; gap: 12px; align-items: flex-start; }
.appr-title { font-size: 15px; }
.appr-change { display: flex; align-items: center; gap: 10px; font-size: 16px; padding-left: 46px; }
.appr-change .old { color: var(--muted); text-decoration: line-through; }
.appr-change .new { font-weight: 600; background: var(--ok-bg); color: var(--ok-ink); padding: 2px 8px; border-radius: 6px; }
.appr-change .arr { color: var(--muted); }
.appr-reason { padding-left: 46px; color: var(--ink-2); font-style: italic; }
.appr-act { padding-left: 46px; }
.locked-item { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.locked-item:first-child { border-top: 0; }
.locked-item .locked-row { border-top: 0; }
.ask-form { padding: 10px 14px 12px 60px; background: var(--sel-soft); display: flex; flex-direction: column; gap: 6px; }
.ask-form .input { width: 150px; }
.ask-form .input.grow { flex: 1; min-width: 220px; }
.pause-row { margin-top: 4px; }
.robot-list { display: flex; flex-direction: column; gap: 8px; }
.robot { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.num-line { margin: 0; font-size: 14px; line-height: 2.1; color: var(--ink); }
.num-line .num-input { display: inline-block; width: 70px; min-height: 30px; padding: 3px 8px; vertical-align: middle; }
