/* Палитра и шрифт — из боевого МИС Инвитро, чтобы текст ложился в привычную среду. */
@font-face { font-family: Gilroy; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/Gilroy-Regular.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/Gilroy-Medium.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/Gilroy-Semibold.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/Gilroy-Bold.woff2) format("woff2"); }

:root {
  --text: #143542;
  --text-mid: #435d68;
  --text-light: #88999e;
  --cell-text: #545454;
  --aqua: #2c96b5;
  --cyan: #08c3dc;
  --red: #f13334;
  --line: #e8eced;
  --border: #d2e9ef;
  --page: #f2f6f7;
  --cell: rgba(239, 239, 239, .3);
  --warn-bg: #fff5ed;
  --warn: #b5641a;
  --info-bg: #e7f6ff;
  --ok: #4c9a52;
  --ok-bg: #f2fbf3;
  --ok-border: #bfe3c0;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: Gilroy, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
}
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.nav { display: flex; gap: 24px; }
.nav button {
  border: 0; background: none; height: 64px; padding: 0 2px; font-size: 15px;
  font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent;
}
.nav button.on { color: var(--aqua); font-weight: 600; border-bottom-color: var(--aqua); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pad { padding: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600; background: var(--cyan); color: #fff;
}
.btn.big { height: 56px; padding: 0 32px; font-size: 16px; }
.btn.ghost { background: #fff; border: 1px solid var(--border); color: var(--text-mid); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field-label { font-size: 15px; font-weight: 500; color: var(--text-mid); margin-bottom: 8px; }
select {
  width: 100%; height: 52px; padding: 0 12px; font-family: inherit; font-size: 15px;
  color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 8px;
}

.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px;
  border-radius: 8px; font-size: 14px; line-height: 1.55;
}
.note.info { background: var(--info-bg); border: 1px solid var(--border); color: var(--text-mid); }
.note.warn { background: var(--warn-bg); border: 1px solid #f3d4bd; color: var(--warn); }

.timer { font-size: 56px; font-weight: 600; font-variant-numeric: tabular-nums; }
.levels { flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.levels span { flex: 1; background: #eda19b; border-radius: 2px; height: 10%; transition: height .1s; }

.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; border: 2px solid #dde4e5; }
.step.on .dot { border: 2.5px solid var(--aqua); border-right-color: #d6eaf0; border-bottom-color: #d6eaf0; }
.step.done .dot { background: var(--aqua); border-color: var(--aqua); }
.bar { height: 6px; border-radius: 3px; background: #e9eeef; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--aqua); border-radius: 3px; width: 0; }

.stats { display: flex; gap: 56px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { display: block; font-size: 22px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--text-light); }

.fld { display: grid; grid-template-columns: 300px minmax(0, 1fr) 150px; border-top: 1px solid var(--line); }
.fld:first-child { border-top: 0; }
.fld-name { font-size: 15px; font-weight: 500; color: var(--cell-text); padding: 14px 16px; background: var(--cell); }
.fld-val { font-size: 15px; line-height: 1.5; color: var(--cell-text); padding: 14px 16px; white-space: pre-wrap; }
.fld-act { padding: 12px 16px; display: flex; justify-content: flex-end; align-items: flex-start; }
.fld-val.empty { color: #9aa6a9; }
.tpl { color: #7d8b8f; border-bottom: 1px dotted #a9c3ca; }

.chip {
  display: inline-block; margin-top: 8px; font-size: 11px; line-height: 1;
  font-weight: 500; padding: 4px 7px; border-radius: 4px;
}
.chip.tpl-chip { background: #eef2f2; color: var(--text-light); }
.chip.warn-chip { background: var(--warn-bg); color: var(--warn); }
.chip.none-chip { background: #f1f3f3; color: #9aa6a9; }

.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 4px; background: #fff;
  color: var(--aqua); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.copy.done { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok); }

.hist { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px 200px 110px 190px;
        gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.hist.head { border-top: 0; background: var(--cell); padding: 13px 20px;
             font-size: 13px; font-weight: 600; color: var(--text-light); }
.badge { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 5px 8px; display: inline-block; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-border); }
.badge.part { color: var(--warn); background: var(--warn-bg); border: 1px solid #f3d4bd; }
.badge.new { color: var(--aqua); background: var(--info-bg); border: 1px solid var(--border); }
.badge.bad { color: #9aa6a9; background: #f1f3f3; border: 1px solid #e2e6e6; }

.muted { color: var(--text-light); font-size: 14px; }
.row { display: flex; align-items: center; gap: 16px; }
.grow { flex: 1; }
h1 { font-size: 22px; font-weight: 600; margin: 0; }
h2 { font-size: 19px; font-weight: 600; margin: 0; }

@media (max-width: 1100px) {
  .fld { grid-template-columns: 220px minmax(0, 1fr) 140px; }
  .hist { grid-template-columns: 120px minmax(0, 1fr) 150px 160px; }
  .hist > :nth-child(3), .hist > :nth-child(5) { display: none; }
}
