/* Касса Arthro Expert — общие стили. Цвета — в токенах :root, без инлайн-стилей (CSP style-src 'self'). */
:root {
  --ground: #F4F6F9; --surface: #FFFFFF; --soft: #F7F8FA;
  --border: #E3E7ED; --border-strong: #CDD4DE;
  --ink: #101828; --ink2: #344054; --muted: #5D6B7E;
  --accent: #2453D4; --accent-ink: #1D42AA; --accent-tint: #E9EEFB;
  --ok: #12805C; --ok-ink: #0E6B4D; --ok-tint: #E6F5EF;
  --warn-ink: #9A4A08; --warn-tint: #FFF4E5; --warn-border: #E8B27A;
  --bad: #B42318; --bad-tint: #FDECEA; --bad-border: #E5A29C;
  --nav: #0E1A2B; --nav2: #16253B; --nav-active: #22385A; --nav-ink: #C9D3E1; --nav-muted: #93A1B5;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 17px; font-weight: 700; }
h3 { margin: 0; font-size: 15px; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 232px; max-width: 100%; background: var(--nav); color: #E6ECF5; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .main { padding: 20px 16px 40px; } }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; text-decoration: none; color: #FFFFFF; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.brand b { display: block; font-size: 15px; }
.brand small { display: block; font-size: 12px; color: var(--nav-muted); }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nav-muted); padding: 0 6px; }
.side-branches { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.side-branches span { padding: 4px 10px; border-radius: 999px; background: var(--nav2); color: var(--nav-ink); font-size: 12px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--nav-ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--nav2); color: #FFFFFF; }
.nav a.active { background: var(--nav-active); color: #FFFFFF; font-weight: 600; }
.who { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--nav2); }
.who b { font-size: 13px; }
.who small { color: var(--nav-muted); font-size: 12px; }
.who .btn { background: transparent; border-color: #2C4266; color: var(--nav-ink); min-height: 36px; }
/* телефон (этап 4, интеграция 8.5): меню — компактная шапка, а не колонка на 700 px над экраном кабинета: строка
   «бренд · кто вошёл · Выйти», под ней разделы плашками в несколько строк; филиалы и подпись роли скрыты */
@media (max-width: 640px) {
  .side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 16px 12px; }
  .side .brand { flex: 1 1 auto; min-width: 0; padding: 0; }
  .side .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .side .brand small, .side-filials, .who small { display: none; }
  .who { order: 2; margin-top: 0; flex-direction: row; align-items: center; gap: 8px; padding: 0; background: transparent; }
  .who > div { max-width: 46vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--nav-ink); }
  .who br { display: none; }
  .nav { order: 3; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .nav a { min-height: 34px; padding: 0 10px; border-radius: 9px; background: var(--nav2); font-size: 13px; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .sub { display: block; margin-bottom: 4px; }
.sub, .muted { color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.card.dark { background: var(--nav); color: #E6ECF5; border-color: var(--nav); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .wide { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .narrow { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile b { font-size: 16px; }

.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn.danger { color: var(--bad); border-color: var(--bad-border); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.link { border-color: transparent; background: transparent; color: var(--accent); padding: 0 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 200px; min-width: 0; }
label.f { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], select, textarea {
  height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); width: 100%; color: var(--ink); font-size: 14px; }
textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
input.invalid, select.invalid { border-color: var(--bad); }
input.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--ink2); font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--bad); }

.tablebox { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.off td { color: var(--muted); }
table.t td.right, table.t th.right { text-align: right; }
table.t input { height: 38px; }

.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #EEF1F5; color: var(--ink2); white-space: nowrap; }
.chip.ok { background: var(--ok-tint); color: var(--ok-ink); }
.chip.warn { background: var(--warn-tint); color: var(--warn-ink); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
.chip.accent { background: var(--accent-tint); color: var(--accent-ink); }
.chip.wrap { white-space: normal; max-width: 280px; }   /* длинное сообщение в строке таблицы (прайс: «Снизить цену…») */
.no { font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 6px; background: #EEF1F5; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert.bad { background: var(--bad-tint); color: var(--bad); }
.alert.warn { background: var(--warn-tint); color: var(--warn-ink); }
.alert.ok { background: var(--ok-tint); color: var(--ok-ink); }
.alert.info { background: var(--accent-tint); color: var(--accent-ink); }

.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 128px 16px 1fr; gap: 12px; }
.timeline .when { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .dot { display: flex; flex-direction: column; align-items: center; }
.timeline .dot::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.timeline .dot::after { content: ""; flex: 1 1 auto; width: 2px; min-height: 16px; background: var(--border); }
.timeline li:last-child .dot::after { background: transparent; }
.timeline .what { padding-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }

details.fold { border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; background: var(--surface); }
details.fold > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] { padding-bottom: 16px; }

.list-cards { display: flex; flex-direction: column; gap: 10px; }
.pick { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-decoration: none; color: var(--ink); }
.pick:hover { border-color: var(--accent); color: var(--ink); }
.pick.active { border-color: var(--accent); background: var(--accent-tint); }
.pick .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #E8ECF1; }
.tabs a { min-height: 40px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total b { font-size: 24px; font-variant-numeric: tabular-nums; }

.secret { font-family: Consolas, "Cascadia Mono", monospace; font-size: 20px; letter-spacing: 0.04em; padding: 14px 16px; background: var(--nav); color: #FFFFFF; border-radius: 12px; word-break: break-all; user-select: all; }
.qr { width: 216px; height: 216px; padding: 8px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; }
.qr svg { width: 200px; height: 200px; display: block; }

.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--nav); }
.bare-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.bare-card .brand { color: var(--ink); padding: 0; }
.bare-card .brand small { color: var(--muted); }
.pager { display: flex; justify-content: center; padding: 8px 0; }

/* --- Этап 2: общие классы для модулей (раздел 4.6 спецификации). Стили модулей — registry/cashdesk/doctor.css --- */
.flash { position: sticky; top: 8px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.flash:empty { display: none; }
.chip.muted { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.hint.warn { color: var(--warn-ink); }

/* счётчики: <div class="stats"><div class="stat ok"><b>12</b><span>Пришли</span><small>без записи 2</small></div></div> */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stat b { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { font-size: 13px; color: var(--ink2); font-weight: 600; }
.stat small { font-size: 12px; color: var(--muted); }
.stat.ok b { color: var(--ok); }
.stat.bad b { color: var(--bad); }

/* «пилюли»: <div class="pills"><label class="pill"><input type="radio" name="method" value="cash">Наличные</label></div> */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink2); font-weight: 600; cursor: pointer; user-select: none; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pill:hover { border-color: var(--accent); }
.pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }

/* крупная кнопка планшета */
.btn.big { min-height: 56px; padding: 0 22px; font-size: 16px; border-radius: 14px; }

/* таблица + липкая правая панель; на узком экране — друг под другом */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 960px) { .split-side { position: static; max-height: none; overflow: visible; } }

/* цепочка «заявка → запись → приход → консультация»: <ol class="route"><li class="done"><b>Запись</b><span>…</span></li></ol> */
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.route > li { position: relative; padding: 0 0 16px 26px; display: flex; flex-direction: column; gap: 2px; }
.route > li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); box-sizing: border-box; }
.route > li::after { content: ""; position: absolute; left: 9px; top: 19px; bottom: 0; width: 2px; background: var(--border); }
.route > li:last-child { padding-bottom: 0; }
.route > li:last-child::after { display: none; }
.route > li.done::before { background: var(--ok); border-color: var(--ok); }
.route > li.now::before { background: var(--accent); border-color: var(--accent); }
.route > li.bad::before { background: var(--bad); border-color: var(--bad); }
.route > li > span { font-size: 13px; color: var(--muted); }

/* поля, которые появляются по выбору в той же форме (без скриптов):
   .only-free — выбран способ value="free"; .only-other — выбран value="other" (radio или option);
   .only-amount — отмечен флажок value="amount" («Согласовать другую сумму») */
.only-free, .only-other, .only-amount { display: none; }
form:has(input[value="free"]:checked) .only-free,
form:has(input[value="other"]:checked) .only-other,
form:has(option[value="other"]:checked) .only-other,
form:has(input[value="amount"]:checked) .only-amount { display: flex; }

/* --- Этап 3: общие классы курсов и кассы (раздел 5.7 спецификации). Стили модулей — courses/kassa/debts.css --- */
/* счётчик в плитке главной (фрагмент модуля): пустой — не виден */
.tile-count { font-size: 13px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.tile-count:empty { display: none; }

/* строки «подпись · сумма»: <dl class="money-lines"><div><dt>До скидки</dt><dd>880 000 ₸</dd></div>
   <div class="minus"><dt>Скидка 10 %</dt><dd>−88 000 ₸</dd></div><div class="sum"><dt>К оплате</dt><dd>…</dd></div></dl> */
.money-lines { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.money-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.money-lines dt { color: var(--muted); font-size: 13px; min-width: 0; }
.money-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.money-lines .minus dd { color: var(--ok-ink); }
.money-lines .bad dd { color: var(--bad); }
.money-lines .sum { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.money-lines .sum dt { color: var(--ink); font-size: 14px; font-weight: 700; }
.money-lines .sum dd { font-size: 22px; font-weight: 700; }

/* чек-лист «Перед передачей на кассу»: <ul class="checklist"><li class="ok"><b>…</b></li>
   <li class="bad"><b>…</b><span class="hint">что сделать</span></li></ul> — ✓ / ✗ символами, не картинками */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist > li { position: relative; padding-left: 32px; display: flex; flex-direction: column; gap: 2px; min-height: 22px; }
.checklist > li::before { content: "✗"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--bad-tint); color: var(--bad); }
.checklist > li.ok::before { content: "✓"; background: var(--ok-tint); color: var(--ok-ink); }
.checklist > li.wait::before { content: "…"; background: var(--warn-tint); color: var(--warn-ink); }
.checklist > li.ok > b { font-weight: 600; color: var(--ink2); }

/* карточки траншей; выбранная — :has(input:checked):
   <div class="tranches"><label class="tranche"><input type="radio" name="tranche_no" value="1" checked>
   <b>Транш 1</b><span class="money">264 000 ₸</span><span class="chip accent">Сегодня · транш 1</span></label></div> */
.tranches { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tranche { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
label.tranche { cursor: pointer; }
.tranche input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tranche b { font-size: 14px; }
.tranche .money { font-size: 18px; font-weight: 700; }
.tranche:hover { border-color: var(--accent); }
.tranche:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.tranche:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tranche:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.tranche.paid { background: var(--soft); }
.tranche .chip { white-space: normal; align-self: flex-start; }   /* «Просрочен N дн. · был до …» не вылезает за карточку */
.tranche.bad { border-color: var(--bad-border); }

/* плитки корзин возраста долга 0–30 / 31–60 / 61–90 / 90+ (.bad — 61+), выбранная — .on:
   <div class="buckets"><a class="bucket" href="?bucket=0-30"><span>0–30 дн.</span><b>3</b><small>528 000 ₸</small></a></div> */
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.bucket { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; }
.bucket:hover { border-color: var(--accent); color: var(--ink); }
.bucket > span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.bucket > b { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bucket > small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bucket.bad { border-color: var(--bad-border); background: var(--bad-tint); }
.bucket.bad > b { color: var(--bad); }
.bucket.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* --- Этап 4: общие классы кабинета, отдела заботы и справки (docs/STAGE4_SPEC.md 4.0, 5.7). Стили модулей —
   station/care/discharge/route.css --- */
/* крупная кнопка медсестры с телефона: «Сеанс проведён» — ≥ 56 px, на телефоне на всю ширину */
.bigbtn { min-height: 56px; padding: 0 22px; border-radius: 14px; font-size: 18px; font-weight: 700; }
@media (max-width: 640px) { .bigbtn { width: 100%; } }

/* поле сканера кабинета: <form class="scanbox"><input …><button class="btn primary bigbtn">…</button></form> */
.scanbox { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.scanbox input { flex: 1 1 220px; min-height: 56px; font-size: 18px; border-radius: 14px; }
@media (max-width: 640px) { .scanbox input { flex-basis: 100%; } }

/* путь возврата 1 · 2 · 3: <ol class="steps"><li class="done"><b>Сформировать</b><span>Отдел заботы</span></li>
   <li class="now">…</li><li>…</li></ol> — номер шага символом CSS-счётчика */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; counter-reset: step; }
.steps > li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 48px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  background: var(--soft); color: var(--muted); border: 1px solid var(--border-strong); }
.steps > li > span { font-size: 13px; color: var(--muted); }
.steps > li.done::before { content: "✓"; background: var(--ok-tint); color: var(--ok-ink); border-color: var(--ok); }
.steps > li.now { border-color: var(--accent); }
.steps > li.now::before { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.steps > li.bad::before { background: var(--bad-tint); color: var(--bad); border-color: var(--bad-border); }

/* чек-лист: жёлтый пункт «не блокирует» (контрольного осмотра нет, положен возврат) */
.checklist > li.warn::before { content: "!"; background: var(--warn-tint); color: var(--warn-ink); }
