/* ServiceProof бета — дизайн-система макетов (V1 «суперапп-каталог»).
   Акцент — кобальт пилота #2457F5; фон, радиусы, смысловые цвета, типографика — RESEARCH.md §4.
   Подключается как ../ui.css из screens/*.html. Без inline-стилей и скриптов (CSP 'self'). */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: block;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}

:root {
  --bg: #F3F4F7;
  --card: #FFFFFF;
  --fill: #EEF0F5;
  --fill-2: #E4E7EE;
  --ink: #14161F;
  --ink-2: #4B4F5C;
  --muted: #5F6472;          /* подписи: 5.6:1 на белом, 5.1:1 на фоне */
  --accent: #2457F5;         /* кобальт пилота — единственный акцент */
  --accent-press: #1A45D1;
  --accent-soft: #E3EAFF;
  --accent-ink: #1A45D1;

  --ok: #12A150;   --ok-bg: #E6F6EC;   --ok-ink: #0B7A3B;
  --warn: #E8730C; --warn-bg: #FDF0E4; --warn-ink: #B54708;
  --bad: #D92D20;  --bad-bg: #FDECEA;  --bad-ink: #B42318;
  --mute: #6B7083; --mute-bg: #EEF0F5; --mute-ink: #4A5064;

  /* пастель плиток V1 — цвет предмета, не второй акцент */
  --t-blue: #DCE7FF; --t-green: #DAEFE1; --t-sand: #F1E6D2; --t-pink: #F8DCE6; --t-peach: #FFE3D0;

  --shadow-float: 0 1px 2px rgba(18,22,52,.04), 0 8px 24px rgba(18,22,52,.06);
  --shadow-bar: 0 -1px 0 rgba(18,22,52,.04), 0 -8px 24px rgba(18,22,52,.06);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 24px; --r-inner: 16px; --r-photo: 20px; --r-btn: 16px; --r-chip: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 21px; font-weight: 500;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
svg { display: block; flex: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Метка макета ─────────────────────────────── */
.mock-tag {
  position: fixed; z-index: 50; right: 8px; bottom: 8px;
  font-size: 11px; line-height: 14px; font-weight: 600; color: var(--mute-ink);
  background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 7px;
  pointer-events: none;
}
body.m .mock-tag { right: 6px; top: 6px; bottom: auto; }

/* ── Типографика ──────────────────────────────── */
.h1 { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -0.01em; }
.h3 { font-size: 17px; line-height: 22px; font-weight: 700; }
.sub { font-size: 15px; line-height: 21px; color: var(--muted); }
.cap { font-size: 13px; line-height: 18px; color: var(--muted); }
.cap-strong { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.sum { font-size: 20px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-xl { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.ink-ok { color: var(--ok-ink); } .ink-warn { color: var(--warn-ink); } .ink-bad { color: var(--bad-ink); } .ink-accent { color: var(--accent-ink); }

/* ── Телефон (390) ────────────────────────────── */
body.m { width: 390px; min-height: 844px; }
.app { min-height: 844px; display: flex; flex-direction: column; }
.statusbar { height: 44px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.statusbar__icons { display: flex; gap: 6px; align-items: center; }
.appbar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; min-height: 52px; }
.appbar__title { font-size: 17px; line-height: 22px; font-weight: 700; flex: 1; min-width: 0; }
.appbar__title .cap { display: block; font-weight: 500; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); }
.icon-btn--fill { background: var(--card); }
.content { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.content--pad-bar { padding-bottom: 200px; }
.content--pad-nav { padding-bottom: 96px; }
.content--pad-both { padding-bottom: 236px; }
.head { padding: 4px 4px 4px; display: flex; flex-direction: column; gap: 4px; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--top { align-items: flex-start; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 4px 0; }

/* Нижняя навигация клиента */
.tabbar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; width: 390px; height: 76px;
  background: var(--card); box-shadow: var(--shadow-bar);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px 14px;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--muted); border-radius: 14px; }
.tabbar a.is-active { color: var(--accent); }

/* Липкая нижняя панель решения */
.actionbar {
  position: fixed; z-index: 21; left: 0; bottom: 0; width: 390px;
  background: var(--card); box-shadow: var(--shadow-bar); border-radius: 24px 24px 0 0;
  padding: 12px 16px 22px; display: flex; flex-direction: column; gap: 10px;
}
.actionbar--over-nav { bottom: 76px; border-radius: 24px 24px 0 0; padding-bottom: 12px; }
.actionbar__links { display: flex; justify-content: center; gap: 24px; }

/* ── Десктоп (1440) ───────────────────────────── */
body.d { width: 1440px; min-height: 900px; }
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 900px; }
.side { background: var(--card); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 900px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 20px; }
.brand__org { font-size: 13px; color: var(--muted); line-height: 16px; }
.side a.nav { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 14px; font-weight: 700; color: var(--ink-2); }
.side a.nav.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.side a.nav .badge { margin-left: auto; }
.side__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg); }
.main { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.main__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.d .h1 { font-size: 40px; line-height: 44px; }
.cols { display: grid; gap: 20px; align-items: start; }
.cols--2 { grid-template-columns: 1fr 1fr; }
.cols--main-side { grid-template-columns: minmax(0, 1fr) 400px; }
.cols--side-main { grid-template-columns: 420px minmax(0, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.crumbs b { color: var(--ink); }

/* Клиент на десктопе: верхняя навигация вместо нижней */
.topnav { background: var(--card); height: 72px; display: flex; align-items: center; gap: 32px; padding: 0 48px; }
.topnav nav { display: flex; gap: 4px; }
.topnav nav a { height: 44px; padding: 0 16px; border-radius: 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.topnav nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.topnav__user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.page { max-width: 1200px; margin: 0 auto; padding: 32px 0 56px; display: flex; flex-direction: column; gap: 20px; }

/* ── Карточки ─────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card--tight { padding: 16px; gap: 10px; }
.card--flat { background: var(--fill); }
.card--float { box-shadow: var(--shadow-float); }
.card--ok { background: var(--ok-bg); }
.card--warn { background: var(--warn-bg); }
.card--bad { background: var(--bad-bg); }
.card--soft { background: var(--accent-soft); }
.card--dim { opacity: .45; }
.inset { background: var(--bg); border-radius: var(--r-inner); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.divider { height: 1px; background: var(--fill); margin: 2px 0; }

/* Карточка «чей ход» */
.turn-card { border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--card); }
.turn-card__label { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; }
.turn-card--mine { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(36,87,245,.28); }
.turn-card--mine .cap, .turn-card--mine .sub { color: rgba(255,255,255,.86); }
.turn-card--mine .chip { background: rgba(255,255,255,.18); color: #fff; }
.turn-card--mine .btn-primary { background: #fff; color: var(--accent-ink); }
.turn-card--mine .meta { color: rgba(255,255,255,.86); }
.turn-card--big .turn-card__label { font-size: 26px; line-height: 30px; }

/* Чипы состояния */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-chip); font-size: 13px; line-height: 16px; font-weight: 700; white-space: nowrap; background: var(--mute-bg); color: var(--mute-ink); }
.chip--ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip--warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip--bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip--muted { background: var(--mute-bg); color: var(--mute-ink); }
.chip--solid-bad { background: var(--bad); color: #fff; }
.chip--lg { height: 34px; font-size: 14px; padding: 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.badge--muted { background: var(--fill-2); color: var(--ink-2); }

/* Кнопки */
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; transition: background .16s var(--ease-out), transform .16s var(--ease-out); }
.btn-primary:active { background: var(--accent-press); transform: scale(.98); }
.btn-primary[disabled], .btn-primary.is-disabled { background: var(--fill-2); color: var(--mute-ink); cursor: not-allowed; }
.btn-primary--auto { width: auto; padding: 0 24px; }
.btn-primary--mech { height: 64px; font-size: 19px; border-radius: 18px; }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; width: 100%; border-radius: var(--r-btn); background: var(--fill); color: var(--ink); font-size: 16px; font-weight: 700; }
.btn-secondary--auto { width: auto; padding: 0 20px; }
.btn-secondary--sm { height: 44px; font-size: 15px; border-radius: 14px; padding: 0 16px; width: auto; }
.btn-secondary--mech { height: 64px; font-size: 18px; border-radius: 18px; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.btn-text--muted { color: var(--ink-2); }
.btn-text--bad { color: var(--bad-ink); }
.btn-hint { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; }

/* Плитки-входы */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--card); padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; box-shadow: var(--shadow-float); }
.tile--wide { grid-column: span 2; min-height: 96px; flex-direction: row; align-items: center; }
.tile__title { font-size: 17px; line-height: 22px; font-weight: 800; letter-spacing: -0.01em; }
.tile__num { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile__obj { position: absolute; right: -6px; bottom: -8px; }
.tile--blue { background: var(--t-blue); } .tile--green { background: var(--t-green); } .tile--sand { background: var(--t-sand); } .tile--pink { background: var(--t-pink); } .tile--peach { background: var(--t-peach); }
.tile--accent { background: var(--accent); color: #fff; }
.tile--accent .cap { color: rgba(255,255,255,.86); }

/* Строки-ссылки */
.link-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: var(--card); border-radius: 20px; }
.link-row__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); flex: none; }
.link-row__icon--warn { background: var(--warn-bg); color: var(--warn-ink); }
.link-row__icon--ok { background: var(--ok-bg); color: var(--ok-ink); }
.link-row__icon--accent { background: var(--accent-soft); color: var(--accent-ink); }
.chev { color: var(--muted); }

/* Машина */
.car-hero { border-radius: var(--r-card); background: var(--card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.car-art { border-radius: 20px; background: linear-gradient(180deg, #E9EEFB 0%, #F6F7FA 100%); height: 132px; display: grid; place-items: center; color: #1C1F29; }
.plate { display: inline-flex; align-items: center; height: 30px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); padding: 0 10px; font-weight: 800; font-size: 16px; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plate--xl { height: 40px; font-size: 22px; padding: 0 12px; border-radius: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fact b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Вкладки и сегменты */
.tabs { display: flex; gap: 4px; background: var(--fill); border-radius: 16px; padding: 4px; }
.tabs a { flex: 1; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.tabs a.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(18,22,52,.08); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg button { height: 48px; border-radius: 14px; background: var(--fill); font-weight: 700; font-size: 15px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.is-yes { background: var(--ok); color: #fff; }
.seg button.is-no { background: var(--card); color: var(--bad-ink); box-shadow: inset 0 0 0 2px var(--bad); }
.seg button.is-later { background: var(--ink-2); color: #fff; }
.seg button.is-on { background: var(--accent); color: #fff; }
.seg--mech button { height: 64px; font-size: 16px; border-radius: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 44px; padding: 0 16px; border-radius: 22px; background: var(--card); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pill.is-on { background: var(--accent); color: #fff; }
.pills--fill .pill { background: var(--fill); }
.pills--fill .pill.is-on { background: var(--accent); }

/* Позиция оценки / допработы */
.item { background: var(--card); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.item__top { display: flex; gap: 12px; align-items: flex-start; }
.item__why { font-size: 14px; line-height: 20px; color: var(--muted); }
.line { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.line + .line { border-top: 1px solid var(--fill); }
.line__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.line__icon--ok { background: var(--ok-bg); color: var(--ok-ink); }
.line__icon--warn { background: var(--warn-bg); color: var(--warn-ink); }
.line__icon--bad { background: var(--bad-bg); color: var(--bad-ink); }
.line__icon--mute { background: var(--mute-bg); color: var(--mute-ink); }
.line__icon--accent { background: var(--accent-soft); color: var(--accent-ink); }

/* «Было → добавилось → стало» */
.delta-bar { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; background: var(--bg); border-radius: 18px; padding: 10px 12px; }
.delta-bar__cell { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.delta-bar__cell .cap { font-size: 12px; line-height: 16px; }
.delta-bar__val { font-size: 18px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-bar__val--add { color: var(--warn-ink); }
.delta-bar__val--total { font-size: 22px; color: var(--accent-ink); }
.delta-bar__arrow { color: var(--muted); }
.delta-bar--lg { padding: 16px 20px; gap: 12px; }
.delta-bar--lg .delta-bar__val { font-size: 22px; line-height: 28px; }
.delta-bar--lg .delta-bar__val--total { font-size: 28px; line-height: 32px; }

/* Фото-плейсхолдеры (не реальные фото) */
.photo { position: relative; border-radius: var(--r-photo); background: repeating-linear-gradient(135deg, #DADDE5 0 12px, #D2D6DF 12px 24px); aspect-ratio: 16 / 10; display: grid; place-items: center; color: #4A5064; overflow: hidden; }
.photo__badge { position: absolute; left: 10px; bottom: 10px; background: rgba(20,22,31,.78); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; padding: 5px 9px; border-radius: 10px; }
.photo__zoom { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink); }
.photo-cap { font-size: 13px; line-height: 18px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 72px; height: 72px; border-radius: 14px; background: repeating-linear-gradient(135deg, #DADDE5 0 8px, #D2D6DF 8px 16px); display: grid; place-items: center; color: #4A5064; flex: none; position: relative; }
.thumb--add { background: var(--card); box-shadow: inset 0 0 0 2px var(--fill-2); color: var(--accent-ink); }
.thumb--sm { width: 56px; height: 56px; border-radius: 12px; }
.thumb__x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }

/* Цитата консультанта / механика */
.quote { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.quote__who { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.quote--accent { background: var(--accent-soft); }

/* Аватар-инициалы */
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; background: var(--t-blue); color: #1A2C66; }
.ava--sm { width: 28px; height: 28px; font-size: 12px; }
.ava--lg { width: 44px; height: 44px; font-size: 16px; }
.ava--green { background: var(--t-green); color: #1F4A2E; }
.ava--sand { background: var(--t-sand); color: #5A4520; }
.ava--pink { background: var(--t-pink); color: #6A2440; }
.ava--me { background: var(--ink); color: #fff; }

/* Лента событий */
.feed { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; }
.event + .event { border-top: 1px solid var(--fill); }
.event__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.event__who { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.event__time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.event__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Галочка-согласие */
.check { display: flex; gap: 14px; align-items: flex-start; }
.check__box { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 2.5px #9097A8; flex: none; display: grid; place-items: center; margin-top: 1px; background: var(--card); }
.check__box.is-on { background: var(--accent); box-shadow: none; color: #fff; }
.check--row { min-height: 48px; align-items: center; }

/* Подсказка протокола «Теперь сообщите…» */
.protocol { background: var(--card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-float); }
.protocol__title { display: flex; gap: 12px; align-items: center; font-size: 17px; line-height: 22px; font-weight: 800; }
.protocol__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.bubble { background: var(--bg); border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 15px; line-height: 21px; }
.protocol--inline { flex-direction: row; align-items: center; padding: 14px 16px; box-shadow: none; background: var(--accent-soft); }
.protocol--inline .protocol__title { font-size: 15px; flex: 1; }

/* Плашки */
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 20px; padding: 14px 16px; background: var(--card); }
.banner__icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.banner--warn { background: var(--warn-bg); } .banner--warn .banner__icon { background: #fff; color: var(--warn-ink); }
.banner--bad { background: var(--bad-bg); } .banner--bad .banner__icon { background: #fff; color: var(--bad-ink); }
.banner--ok { background: var(--ok-bg); } .banner--ok .banner__icon { background: #fff; color: var(--ok-ink); }
.banner--accent { background: var(--accent-soft); } .banner--accent .banner__icon { background: #fff; color: var(--accent-ink); }
.banner--dark { background: var(--ink); color: #fff; } .banner--dark .banner__icon { background: rgba(255,255,255,.14); color: #fff; } .banner--dark .cap { color: rgba(255,255,255,.8); }

/* Шаги заявки */
.steps { display: flex; gap: 6px; }
.steps i { height: 6px; flex: 1; border-radius: 3px; background: var(--fill-2); }
.steps i.is-done { background: var(--accent); }

/* Поля ввода */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.input { min-height: 52px; border-radius: 14px; background: var(--bg); padding: 14px 16px; font-size: 16px; line-height: 22px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.input--card { background: var(--card); }
.input--area { min-height: 104px; align-items: flex-start; font-weight: 500; }
.input--focus { box-shadow: inset 0 0 0 2px var(--accent); background: var(--card); }
.input--money { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.input__suffix { margin-left: auto; color: var(--muted); font-weight: 700; }
.select { justify-content: space-between; }
.toggle { width: 52px; height: 32px; border-radius: 16px; background: var(--fill-2); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.toggle.is-on { background: var(--accent); }
.toggle.is-on::after { left: 23px; }

/* Таблица (десктоп) */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 700; padding: 0 12px 10px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--fill); vertical-align: middle; }
.table tr.is-dim td { color: var(--muted); }
.table td.r, .table th.r { text-align: right; }

/* Очередь консультанта */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.counter { background: var(--card); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; min-height: 116px; justify-content: space-between; }
.counter__num { font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.counter--mine { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(36,87,245,.25); }
.counter--mine .cap { color: rgba(255,255,255,.86); }
.counter.is-active { box-shadow: inset 0 0 0 3px var(--accent); }
.qrow { display: grid; grid-template-columns: 148px minmax(0, 1fr) 190px 150px 24px; gap: 16px; align-items: center; min-height: 76px; padding: 12px 16px; border-radius: 18px; }
.qrow + .qrow { margin-top: 4px; }
.qrow:nth-child(odd) { background: var(--bg); }
.qrow__car { display: flex; flex-direction: column; gap: 4px; }
.qrow__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qrow__what b { font-size: 16px; line-height: 21px; }

/* Табло */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.board__col { background: var(--card); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 176px; }
.board__head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 16px; }
.board__empty { color: var(--muted); font-size: 14px; background: var(--bg); border-radius: 14px; padding: 12px; }
.mini { background: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.mini--warn { background: var(--warn-bg); }

/* Механик */
.mech-card { background: var(--card); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 64px; }
.mech-card__plate { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: .02em; }
.mech-card--stop { box-shadow: inset 6px 0 0 var(--bad); }
.mech-card--draft { box-shadow: inset 6px 0 0 var(--warn); }
.mech-card--now { box-shadow: inset 6px 0 0 var(--accent); }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { height: 76px; border-radius: 20px; background: var(--card); display: flex; align-items: center; gap: 12px; padding: 0 14px; font-weight: 700; font-size: 16px; line-height: 20px; text-align: left; }
.act__icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.act--wide { grid-column: span 2; }
.mech-big { font-size: 20px; line-height: 26px; font-weight: 800; }

/* Силуэты сторон машины (приёмка) */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-tile { background: var(--card); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.side-tile__art { height: 78px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; color: #2A2F3D; position: relative; }
.side-tile__mark { position: absolute; width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(217,45,32,.18); }
.side-tile__mark--hood { top: 26px; left: 50%; }
.side-tile__ok { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 13px; background: var(--ok); color: #fff; display: grid; place-items: center; }

/* Пустые и итоговые состояния */
.hero-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 16px 8px; }
.hero-state__icon { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; }
.hero-state__icon--ok { background: var(--ok-bg); color: var(--ok); }
.hero-state__icon--bad { background: var(--bad-bg); color: var(--bad); }
.big-same { display: flex; gap: 14px; align-items: center; }
.big-same__title { font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; }

/* Затемнение для состояния «Версия изменилась» */
.veil { position: fixed; inset: 0; background: rgba(20,22,31,.42); z-index: 30; display: grid; place-items: center; }
.dialog { width: 480px; background: var(--card); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 64px rgba(18,22,52,.24); }
.m .dialog { width: 358px; padding: 24px; }

/* Утилиты раскладки (без inline-стилей) */
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.ta-c { text-align: center; } .ta-r { text-align: right; }
.w-200 { width: 200px; } .w-160 { width: 160px; }
.span-2 { grid-column: span 2; }
.sticky-top { position: sticky; top: 24px; }
.only-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Уточнения после само-проверки ─────────────── */
.tile { justify-content: flex-start; }
.tile > .tile__title, .tile > .cap, .tile > span, .tile > div { position: relative; z-index: 1; }
.tile--wide { padding-right: 96px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tabs a { white-space: nowrap; padding: 0 14px; }
.counter--mine .cap-strong { color: #fff; }
.protocol__title .stack-4 { display: flex; flex-direction: column; gap: 2px; }
.d .feed .photo { max-width: 520px; }
.card--tight .line { min-height: 42px; }
.sides--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sides--4 .side-tile, .sides--4 .side-tile__art { min-width: 0; overflow: hidden; }
.sides--4 .side-tile { padding: 8px; gap: 6px; border-radius: 16px; }
.sides--4 .side-tile__art { height: 52px; border-radius: 12px; }
.sides--4 .side-tile__mark { width: 18px; height: 18px; font-size: 11px; top: 12px; }
.sides--4 b { font-size: 13px; }
.banner--tight { padding: 12px 14px; font-size: 14px; line-height: 20px; }
