/* ============================================================
   Инженерный калькулятор
   Оформление: композиция по брендбуку «Инженерная классика»
   (строгая сетка, тёмная шапка, зелёный акцент),
   палитра и типографика — веб-палитра
   (#324093 / #40AB35).

   Печатная палитра брендбука (#0B2A5B / #5C6B7A / #3E8E41)
   предназначена для полиграфии и документов — в вебе НЕ используется.
   Веб-палитру сайта не менять без решения Ивана.
   ============================================================ */
:root {
  /* --- Веб-палитра --- */
  --accent: #324093;        /* корп. синий — CTA, ссылки, активные */
  --accent-hover: #2A3A80;
  --accent-light: #B9C0E6;  /* светлый синий — рамки ghost */
  --accent-soft: #EEF0FA;   /* мягкий фон групп/выделений */
  --green: #40AB35;         /* корп. зелёный — статусы, акценты */
  --green-text: #2E7D32;
  --heading: #0D1B3A;       /* тёмно-синий — заголовки, шапка */
  --label: #1E2F4F;         /* текст подписей/полей */
  --body: #64748D;          /* основной текст/подписи */
  --muted: #94A3B8;         /* приглушённый текст */
  --bg: #F8FAFC;            /* фон страницы */
  --surface: #FFFFFF;       /* поверхности (карточки, поля) */
  --border: #E5EDF5;        /* границы */
  --danger: #C62828;        /* ошибки/критично */

  /* Тени и радиусы — как на сайте */
  --shadow-sm: rgba(23,23,23,0.08) 0px 12px 24px -12px;
  --radius: 6px;            /* карточки, шаги, таблицы */
  --radius-sm: 4px;         /* поля, кнопки */

  /* Алиасы для обратной совместимости (используются в app.js) */
  --blue: var(--accent);
  --steel: var(--body);
  --ink: var(--label);
  --line: var(--border);
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--label);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* ================= Шапка ================= */
.topbar { background: var(--heading); color: #fff; border-bottom: 3px solid var(--green); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; padding: 14px 22px; flex-wrap: wrap; }
.topbar .logo { font-weight: 700; font-size: 17px; letter-spacing: -.3px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 26px 22px 60px; }

/* ================= Шаги мастера ================= */
.steps {
  display: flex; margin: 18px 0 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step {
  flex: 1; text-align: center; padding: 13px 6px 12px; font-size: 12.5px; color: var(--body);
  border-right: 1px solid var(--border); position: relative; cursor: pointer;
  transition: background .15s, color .15s;
}
.step:last-child { border-right: none; }
.step .n { display: block; font-weight: 700; font-size: 15px; color: var(--accent); line-height: 1.3; }
.step:hover:not(.active) { background: var(--accent-soft); }
.step.active { background: var(--accent); color: #fff; }
.step.active .n { color: var(--green); }
.step.done { background: rgba(64,171,53,.08); }
.step.done::after { content: '✓'; position: absolute; top: 4px; right: 9px; color: var(--green); font-weight: 700; }

/* ================= Карточки ================= */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px 26px; margin-bottom: 18px;
}
.card h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--heading); margin-bottom: 4px; }
.card .sub { font-size: 12.5px; color: var(--body); margin-bottom: 16px; }
/* Заголовок подблока (заменяет инлайн-стили h3 в разметке) */
.block-title { font-size: 13px; font-weight: 600; color: var(--accent); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.block-title:first-child { margin-top: 2px; }
.sub-tight { font-size: 12.5px; color: var(--body); margin: 10px 0 6px; }

/* ================= Поля форм ================= */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--label); margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--body); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-top { margin-top: 14px; }  /* сетка сразу после таблицы/кнопки */
input, select {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--heading);
  transition: border-color .15s, box-shadow .15s;
}
/* Д-2 (аудит 15.09.2026). Радиокнопка и флажок — собственный размер.
   Без этого правила на них действовало общее `input { width: 100% }`: внутри
   подписи `<label style="display:inline-flex">` квадратик растягивался на всю
   ширину (например 154 px из 265 px колонки) и вытеснял текст подписи в узкий
   столбик — так «прямая: отказ → F_d» и «обратная: N → требуемый отказ»
   разваливались на куски. */
input[type="radio"], input[type="checkbox"] {
  width: 16px; height: 16px; padding: 0; flex: 0 0 auto; accent-color: var(--accent);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(50,64,147,.12); }
input::placeholder { color: var(--muted); }
input.unit { padding-right: 38px; }
.unit-wrap { position: relative; }
.unit-wrap .u { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
/* Пара полей в одну строку (слои свай h/f) */
.pair { display: flex; gap: 8px; }
/* Чекбокс-строка */
.field.chk { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.field.chk input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ================= Кнопки ================= */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; font-family: inherit; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-light); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: 13px; font-weight: 600; }
.btn-add-ige { margin-top: 10px; }  /* «+ Добавить слой (ИГЭ)» */
#calc-count { font-size: 13px; color: var(--body); }

/* ================= Результат ================= */
.result-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-row b { font-weight: 600; }
.pass { color: var(--green); font-weight: 700; }
.need { color: var(--danger); font-weight: 700; }
.fail { color: var(--danger); font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 2px; }
.badge.ok { background: rgba(64,171,53,.14); color: var(--green-text); }
.badge.no { background: rgba(198,40,40,.12); color: var(--danger); }
/* Предупреждение (смешение типов основания) */
.warn {
  display: none; margin: 6px 0; padding: 10px 14px;
  background: rgba(198,40,40,.08); border: 1px solid rgba(198,40,40,.3);
  border-radius: var(--radius-sm); color: var(--danger); font-size: 13px; font-weight: 500;
}

/* ================= Таблицы ================= */
table.checks { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
table.checks th { background: var(--accent); color: #fff; text-align: left; padding: 9px 10px; font-weight: 600; }
table.checks td { border: 1px solid var(--border); padding: 8px 10px; }
table.checks tr:nth-child(even) td { background: rgba(50,64,147,.03); }

.footer-note { font-size: 11.5px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.footer-note b { color: var(--label); }

/* Состав расчётов — таблица выбора */
#calc-table th { background: var(--accent); color: #fff; padding: 9px 10px; font-size: 12.5px; text-align: left; white-space: nowrap; }
#calc-table .grp td { background: var(--accent-soft); font-weight: 700; color: var(--accent); padding: 8px 10px; font-size: 13px; }
#calc-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
#calc-table td.num { text-align: center; width: 44px; color: var(--body); }
/* Д-3, Д-5 (аудит 15.09.2026): названия расчётов не обрезаются многоточием.
   Прежде white-space:nowrap + overflow:hidden + text-overflow:ellipsis + max-width:600px —
   четыре названия (расчёты 4, 22, 23, 26) шире колонки на 79…449 px и обрезались
   («… СП 2»), а заголовок «№ п/п» в колонке 50 px переносился по слогам («№ п/», «п»).
   Теперь: обычный перенос по словам, колонка номера 44 px, заголовок «№». */
#calc-table td.name { font-size: 13.5px; overflow-wrap: break-word; }
#calc-table td.st { text-align: center; width: 70px; }
#calc-table td.st input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }

/* Групповой выбор «Выбрать все / Снять все» в строке группы */
#calc-table .grp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#calc-table .grp-name { flex: 1; }
#calc-table .grp-all-lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: var(--accent); cursor: pointer; white-space: nowrap; }
#calc-table .grp-all { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
@media (max-width: 760px) {
  #calc-table .grp-row { flex-wrap: wrap; }
}

/* ============================================================
   ТАБЛИЦА ХАРАКТЕРИСТИК ГРУНТОВ (ИГЭ)
   Разметка и логика — Главспец/Программер (index.php + app.js:
   #ige-table, .ige-row, .ig-name/.ig-h/.ig-g/.ig-p/.ig-c/.ig-e,
   .btn-del, addIgeRow/removeIgeRow). Стили — Дизайнер.
   Колонки: № ИГЭ | Наименование | h, м | γII | φII | cII | E | [×]
   Числовые колонки центрированы, инпуты без рамок внутри ячеек,
   редактируемая ячейка подсвечивается при фокусе.
   ============================================================ */
.tbl-scroll { overflow-x: auto; margin-top: 10px; }
/* Д-6 (аудит 15.09.2026). Таблицы ввода переведены на table-layout: fixed:
   ширина колонки задаётся заголовком и равна ширине поля под ним, а не
   «как получится» из содержимого (прежде крайняя колонка прижималась к границе,
   а поле с широким заголовком уезжало). Заголовок «Мощность h, м» больше не
   переносится: колонка 96 px вмещает строку целиком. */
#ige-table { margin-top: 0; table-layout: fixed; }
#ige-table th { text-align: center; font-size: 12px; overflow-wrap: break-word; padding: 8px 6px; }
#ige-table th:nth-child(1) { width: 52px; }
#ige-table th:nth-child(2) { text-align: left; }
#ige-table th:nth-child(3) { width: 104px; }
#ige-table th:nth-child(4) { width: 84px; }
#ige-table th:nth-child(5) { width: 72px; }
#ige-table th:nth-child(6) { width: 76px; }
#ige-table th:nth-child(7) { width: 76px; }
/* Колонка ν (коэффициент поперечной деформации) — добавлена между E и кнопкой
   удаления, для расчёта крена (ф. 5.24–5.25 СП 22). Инпуты .ig-nu центрируются
   селектором #ige-table input[type="number"]. */
#ige-table th:nth-child(8) { width: 56px; }

#ige-table th:last-child { width: 40px; }  /* кнопка удаления — всегда последняя */
#ige-table td { padding: 0; vertical-align: middle; }
#ige-table td.num { text-align: center; font-size: 13px; color: var(--body); padding: 8px 4px; }
#ige-table td:last-child { text-align: center; width: 40px; }
#ige-table input {
  width: 100%; min-width: 0; border: none; background: transparent; border-radius: 0;
  padding: 9px 8px; font-size: 13.5px; box-shadow: none; height: 40px;
}
#ige-table .ig-name { text-align: left; }
#ige-table input[type="number"] { text-align: center; }
#ige-table input:hover { background: rgba(50,64,147,.04); }
#ige-table input:focus { background: rgba(50,64,147,.06); box-shadow: inset 0 0 0 2px var(--accent); }
#ige-table input::placeholder { color: var(--muted); }
/* Кнопка удаления слоя */
.btn-del {
  width: 28px; height: 28px; line-height: 1; font-size: 17px; font-weight: 600;
  border: none; border-radius: var(--radius-sm); background: transparent;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.btn-del:hover { background: rgba(198,40,40,.1); color: var(--danger); }

/* ================= Свайная грунтовая колонка (расчёт 12, fd) [NEW] =================
   Макет: design/макет_грунтовой_колонки_fd.md */
#fd-table { margin-top: 0; table-layout: fixed; }
#fd-table th { text-align: center; font-size: 11.5px; overflow-wrap: break-word; }
#fd-table th .unit2 { display: block; font-size: 10px; font-weight: 400; opacity: .8; margin-top: 2px; }
#fd-table th:nth-child(1) { width: 40px; }
#fd-table th:nth-child(2) { text-align: left; }
#fd-table th:nth-child(3) { width: 108px; }
#fd-table th:nth-child(4) { width: 68px; }
#fd-table th:nth-child(5) { width: 48px; }
#fd-table th:nth-child(6) { width: 56px; }
#fd-table th:nth-child(7) { width: 56px; }
#fd-table th:nth-child(8) { width: 56px; }
#fd-table th:nth-child(9) { width: 48px; }
#fd-table th:nth-child(10) { width: 88px; }
#fd-table th:nth-child(11) { width: 48px; }
#fd-table th:last-child { width: 40px; }
#fd-table td { padding: 0; vertical-align: middle; }
#fd-table td.num { text-align: center; font-size: 13px; color: var(--body); padding: 8px 4px; }
#fd-table td:last-child { text-align: center; width: 40px; }
#fd-table input, #fd-table select {
  width: 100%; min-width: 0; border: none; background: transparent; border-radius: 0;
  padding: 8px 6px; font-size: 12.5px; box-shadow: none; height: 40px; font-family: inherit;
}
#fd-table .fd-name { text-align: left; }
#fd-table input[type="number"] { text-align: center; }
#fd-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0 auto; display: block; accent-color: var(--accent); }
#fd-table select { text-align: left; cursor: pointer; text-overflow: ellipsis; }
#fd-table input:hover, #fd-table select:hover { background: rgba(50,64,147,.04); }
#fd-table input:focus, #fd-table select:focus { background: rgba(50,64,147,.06); box-shadow: inset 0 0 0 2px var(--accent); }
#fd-table tr.fix td { background: var(--accent-soft); border-top: 2px solid var(--border); }
#fd-table tr.fix .lbl { font-weight: 700; color: var(--heading); padding: 8px 10px; white-space: nowrap; }
#fd-table tr.fix input { font-weight: 600; }
.fd-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.fd-actions .soil-count { font-size: 13px; color: var(--body); }
.pile-params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.pile-size { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 4px; }

/* ================= Таблица ступеней нагружения (2.4, статические испытания) =================
   Д-6 (аудит 15.09.2026): прежде колонки делили ширину поровну — под «F_i, кН» и «s_i, мм»
   стояли поля шириной 100 % ячейки, а флажок «Непрерывное возрастание» (input.ps-flag)
   получал width:100 % от общего правила input и растягивался. Теперь таблица fixed:
   заголовок колонки и поле под ним одной ширины, флажок — 16 px. */
#ps-steps-table { table-layout: fixed; }
#ps-steps-table th { text-align: center; }
#ps-steps-table th:nth-child(1) { width: 44px; }
#ps-steps-table th:nth-child(2) { width: 170px; }
#ps-steps-table th:nth-child(3) { width: 170px; }
#ps-steps-table th:nth-child(4) { text-align: left; }   /* остаток ширины — колонке флажка */
#ps-steps-table th:last-child { width: 40px; }
#ps-steps-table td { padding: 0; vertical-align: middle; }
#ps-steps-table td.num { text-align: center; padding: 8px 4px; }
#ps-steps-table td:last-child { text-align: center; width: 40px; }
#ps-steps-table td:nth-child(4) { text-align: left; padding: 0 8px; }
#ps-steps-table input[type="number"] { border: none; border-radius: 0; height: 40px; text-align: center; font-size: 13.5px; }
#ps-steps-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
#ps-steps-table input[type="number"]:hover { background: rgba(50,64,147,.04); }
#ps-steps-table input[type="number"]:focus { background: rgba(50,64,147,.06); box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 760px) {
  .pile-params { grid-template-columns: 1fr; }
  #fd-table { min-width: 980px; }
}

/* ================= Адаптив ================= */
@media (max-width: 760px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(odd) { border-right: 1px solid var(--border); }
  .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* ============================================================
   Таблица усилий НДМ (запись № 22 накопителя замечаний; структура утверждена Иваном 17.09.2026
   по макету ndm/maket_usiliya_ndm.html). Оформление — в палитре калькулятора: вычисляемые поля
   отличаются пунктирной рамкой и светлым фоном (класс .calc), строка 2 выделена фоном .row-calc.
   ============================================================ */
.forces-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin-top: 6px; }
.forces-table th, .forces-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 12.5px; vertical-align: middle; }
.forces-table th { font-size: 12px; font-weight: 600; color: var(--label); text-align: center; background: var(--accent-soft); }
.forces-table th:first-child, .forces-table td:first-child { border-left: 1px solid var(--border); }
.forces-table th:last-child, .forces-table td:last-child { border-right: 1px solid var(--border); }
.forces-table thead tr:first-child th:first-child { border-top-left-radius: var(--radius-sm); }
.forces-table thead tr:first-child th:last-child { border-top-right-radius: var(--radius-sm); }
.forces-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.forces-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-sm); }
.forces-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-sm); }
.forces-table td.group { font-weight: 600; font-size: 12.5px; color: var(--label); }
.forces-table td.group small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.forces-table td.num { padding: 4px 6px; text-align: center; color: var(--body); }
.forces-table td.note { color: var(--body); font-size: 11.5px; text-align: left; }
.forces-table input.cell { width: 100%; padding: 7px 8px; font-size: 13.5px; font-family: inherit; color: var(--label);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-align: right; }
.forces-table input.cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* вычисляемое поле: пунктирная рамка и светлый фон — как на макете */
.forces-table input.cell.calc { background: #F4F7FE; border-style: dashed; border-color: var(--accent-light); }
.forces-table tr.row-calc td { background: #FBFDFF; }
.forces-table .calc-txt { display: inline-block; width: 100%; text-align: right; color: var(--body); font-size: 12.5px; }
.forces-legend { display: flex; gap: 18px; align-items: center; margin: 10px 0 2px; flex-wrap: wrap; font-size: 12.5px; color: var(--label); }
.forces-legend label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.tag-ok { display: inline-block; font-size: 11px; border-radius: 5px; padding: 2px 6px; background: #EAF6EC; color: var(--green-text); }
.tag-manual { display: inline-block; font-size: 11px; border-radius: 5px; padding: 2px 6px; background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   Экран разбора + таблица геометрических характеристик (записи № 23, 23-у накопителя замечаний).
   Слева — сечение из чертежа, справа — таблица характеристик (все величины в сантиметрах);
   при ширине ≤ 900 px таблица уходит ПОД сечение, чертёж не сжимается.
   ============================================================ */
.geom-split { display: grid; grid-template-columns: minmax(320px, 1fr) 430px; gap: 16px; align-items: start; margin-top: 8px; }
.geom-split .geom-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.geom-split .geom-card > h4 { margin: 0; padding: 9px 11px; font-size: 13px; font-weight: 600; color: var(--label);
  border-bottom: 1px solid var(--border); background: var(--accent-soft); }
.geom-split .geom-card > .geom-body { padding: 10px 11px; }
table.geom-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.geom-table th, table.geom-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); }
table.geom-table th { text-align: left; font-weight: 500; color: var(--body); }
table.geom-table td.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--label); font-weight: 600; }
table.geom-table td.u { text-align: left; color: var(--muted); font-size: 11.5px; padding-left: 6px; width: 52px; }
table.geom-table tr.sec td { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }
.geom-note { margin-top: 8px; color: var(--body); font-size: 11.5px; line-height: 1.45; }
@media (max-width: 900px) { .geom-split { grid-template-columns: 1fr; } }

/* ============================================================
   Строка прогресса расчёта и вердикт причины остановки (задача ИК-22, указание Ивана 25.09.2026).
   Проценты — по фактическому ходу этапов расчёта, без выдуманной плавности: строка показывает
   реальный этап и его шаг (ступень сетки, решение НДС из бюджета поиска). При нормальном завершении
   доходит до 100 % и убирается, при остановке остаётся на достигнутом проценте (красная полоса),
   а под ней выводится вердикт с причиной (таймаут / несходимость / исходные данные / внутренняя).
   ============================================================ */
#calc-progress { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); padding: 10px 12px; margin: 10px 0 12px; box-shadow: var(--shadow-sm); }
#calc-progress .cp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#calc-progress .cp-title { font-weight: 600; color: var(--label); font-size: 13px; }
#calc-progress .cp-pct { font-weight: 700; color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
#calc-progress .cp-bar { height: 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--accent-soft);
  margin: 7px 0 6px; overflow: hidden; }
#calc-progress .cp-fill { display: block; width: 0; height: 100%; background: var(--accent); transition: width .28s ease; }
#calc-progress .cp-stage { color: var(--label); font-size: 12.5px; }
#calc-progress .cp-note { color: var(--body); font-size: 11.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
#calc-progress.stopped { border-left-color: var(--danger); }
#calc-progress.stopped .cp-title, #calc-progress.stopped .cp-pct { color: var(--danger); }
#calc-progress.stopped .cp-fill { background: var(--danger); }
#calc-progress.done .cp-fill { background: var(--green); }
#calc-progress.done .cp-pct { color: var(--green-text); }

.verdict { border: 1px solid var(--border); border-left: 3px solid var(--danger); border-radius: var(--radius);
  background: var(--surface); padding: 11px 13px; margin: 0 0 12px; }
.verdict h3 { font-size: 13.5px; color: var(--danger); margin: 0 0 5px; }
.verdict .v-kind { display: inline-block; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1px 6px; margin-bottom: 6px; font-size: 11px; letter-spacing: .02em; color: var(--danger); }
.verdict p { color: var(--label); font-size: 12.5px; }
.verdict .v-meta { color: var(--body); font-size: 11.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
