/* «Пилот · Командировки» — светлая фирменная тема сайта ipc-pilot.com:
   белый лист, чернильный текст, волосяные линии, Inter Tight, скругление 6px.
   Оранжевый #EC6220 из крыла знака — точечно: главная кнопка, прогресс, выбранное. */
@font-face { font-family: 'Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/intertight-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/intertight-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff; --bg-2: #f5f5f2; --surface: #efeeea;
  --text: #0b0b0b; --text-2: rgba(11, 11, 11, .66); --muted: rgba(11, 11, 11, .56);
  --line: rgba(11, 11, 11, .12); --line-strong: rgba(11, 11, 11, .32); --hover: rgba(11, 11, 11, .04);
  --accent: #ec6220; --accent-ink: #0b0b0b;
  --ok: #1f7a4d; --warn: #9a5b00; --warn-bg: #fbf3e6; --error: #c0392b;
  --font: 'Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r: 6px; --edge: clamp(16px, 3.6vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--edge); }

/* Шапка: тихая строка без подложки, как на сайте */
.hdr { display: flex; align-items: center; gap: 18px; height: 68px; border-bottom: 1px solid var(--line); }
.hdr__logo { display: flex; align-items: center; gap: 14px; }
.hdr__logo svg { height: 15px; width: auto; display: block; }
.hdr__logo .lg-ink { fill: var(--text); } .hdr__logo .lg-wing { fill: var(--accent); }
.hdr__name { padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: .95rem; color: var(--text-2); }
.hdr__nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.hdr__nav a { color: var(--text-2); padding-block: 6px; white-space: nowrap; }
.hdr__nav a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.hdr__who { color: var(--muted); font-size: .9rem; }

main { padding-block: clamp(28px, 5vw, 64px) 96px; }
.eyebrow { font-size: .9rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot.grey { background: var(--line-strong); }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--text-2); max-width: 54ch; margin-top: 16px; }

/* Кнопки — как .btn сайта: волосяная рамка, сплошная оранжевая для главного */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 13px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; font-weight: 500; font-size: .95rem; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--quiet { border-color: transparent; padding-inline: 10px; color: var(--text-2); }
.btn--quiet:hover { background: var(--hover); color: var(--text); border-color: transparent; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Поля */
.field { display: block; }
.field > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); outline: none; transition: border-color .2s var(--ease); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px 16px; font-size: .95rem; border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--text); color: var(--bg); }

/* Формула: суточные и аванс считаются на глазах */
.formula { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 6px 36px; align-items: end; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 26px; }
.formula small { display: block; color: var(--muted); font-size: .85rem; }
.formula b { font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.formula em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; }

/* Индексные списки — строки на волосяных линиях */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index > li { border-bottom: 1px solid var(--line); }
.trip-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr auto; gap: 20px; align-items: center; padding: 20px 4px; transition: background .2s var(--ease); }
.trip-row:hover { background: var(--hover); }
.trip-row b { font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; }
.trip-row small { display: block; color: var(--muted); font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }
.status { font-size: .85rem; display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); white-space: nowrap; }

/* Поездка */
.trip-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 28px 0 0; }
.progress span { padding-top: 10px; border-top: 2px solid var(--line); font-size: .85rem; color: var(--muted); }
.progress span.done { border-color: var(--text); color: var(--text-2); }
.progress span.now { border-color: var(--accent); color: var(--text); }
.figures { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 34px 0; }
.figures > div { padding: 20px 18px 20px 0; }
.figures > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.figures b { display: block; font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figures small { color: var(--muted); font-size: .85rem; }
.figures .accent b::after { content: ''; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 8px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; }

/* Приём файлов: одна большая зона, на телефоне — кнопка камеры */
.drop { display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 34px); border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--bg-2); margin-bottom: 30px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.drop.over { border-color: var(--accent); background: #fff6f1; }
.drop h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.drop p { margin: 0; color: var(--text-2); max-width: 52ch; }
.drop input { display: none; }
.reading { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.reading i { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.reading i::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: run 1.1s var(--ease) infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.report { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--text-2); }
.report li::before { content: '— '; color: var(--accent); }

.exp { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px 18px; padding: 16px 4px; align-items: start; }
.exp.todo { background: var(--warn-bg); padding-inline: 12px; border-radius: var(--r); }
.exp__date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.exp__what b { font-weight: 500; }
.exp__what small { color: var(--muted); }
.exp__sum { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.exp__sum small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.docs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .85rem; }
.docs a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.docs a:hover { color: var(--text); border-color: var(--text); }
.docs .miss { color: var(--warn); }
.docs .rec { color: var(--muted); }
.edit { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.edit .field input, .edit .field select { min-height: 42px; padding: 9px 11px; }

.notes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.notes li { padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); font-size: .93rem; }
.notes li.warn, .notes li.error { background: var(--warn-bg); color: var(--warn); }

.side { display: grid; gap: 30px; position: sticky; top: 24px; }
.side h3 { margin-bottom: 10px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: .93rem; }
.links a:hover { color: var(--accent); }
.links a::after { content: '↗'; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--text-2); display: grid; gap: 8px; }
.timeline span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }

.sheet-panel { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.done-banner { padding: 24px; background: var(--bg-2); border-radius: var(--r); margin-bottom: 30px; display: grid; gap: 8px; }
.done-banner b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }

/* Битрикс: как задача выглядит у бухгалтера */
.bx { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bx__head { padding: 18px 20px; background: #2fc6f6; color: #fff; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bx__head b { font-weight: 600; }
.bx__meta { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 20px; font-size: .88rem; color: var(--text-2); border-bottom: 1px solid var(--line); background: #f7f9fa; }
.bx__item { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bx__item:last-child { border-bottom: 0; }
.bx__item header { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.bx__text { white-space: pre-line; font-size: .93rem; line-height: 1.5; }
.bx__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bx__files a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 4px; background: #eef2f4; font-size: .85rem; color: #0b6e99; }
.bx__files a::before { content: ''; width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }

/* Вход */
.login { min-height: 100svh; display: grid; place-items: center; padding: var(--edge); }
.login__box { width: min(440px, 100%); }
.login__box svg { height: 18px; width: auto; margin-bottom: 40px; }
.login__box .lg-ink { fill: var(--text); } .login__box .lg-wing { fill: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--r); font-size: .93rem; z-index: 50; max-width: calc(100% - 32px); }
.toast.err { background: var(--error); }
.empty { padding: 40px 0; color: var(--muted); }
dialog { border: 0; border-radius: var(--r); padding: 28px; width: min(520px, calc(100% - 32px)); box-shadow: 0 24px 80px rgba(0, 0, 0, .18); }
dialog::backdrop { background: rgba(11, 11, 11, .35); }
dialog h2 { margin-bottom: 18px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figures > div { border-top: 1px solid var(--line); }
  .figures > div:nth-child(-n+2) { border-top: 0; }
  .figures > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .trip-row { grid-template-columns: 1fr auto; }
  .trip-row > :nth-child(2), .trip-row > :nth-child(3) { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .formula { grid-template-columns: 1fr 1fr; }
  .edit { grid-template-columns: 1fr 1fr; }
  .hdr__name { display: none; }
  .hdr__nav { gap: 14px; }
  .hdr__who { display: none; }
  .trip-head { grid-template-columns: 1fr; }
  .progress span { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── v2: профиль, порядок действий, правка, иные расходы ───────────────── */
.btn--small { min-height: 38px; padding: 9px 14px; font-size: .9rem; }
.btn--tiny { min-height: 28px; padding: 4px 8px; font-size: .85rem; }
.u { border-bottom: 1px solid var(--line-strong); }
.hint { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.case { margin-top: 18px; padding: 18px; background: var(--bg-2); border-radius: var(--r); }
.tick { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: .93rem; user-select: none; }
.tick input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* Чек-лист шагов: кружок, линия между шагами, текущий — оранжевый */
.steps { list-style: none; margin: 0 0 32px; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--line); }
.steps__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); position: relative; z-index: 1; }
.steps li.done .steps__mark { background: var(--text); border-color: var(--text); }
.steps li.done .steps__mark::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.now .steps__mark { border-color: var(--accent); border-width: 2px; }
.steps li.now .steps__mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.steps b { font-weight: 500; }
.steps li.done b { color: var(--text-2); }
.steps li:not(.done):not(.now) b { color: var(--muted); }
.steps p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.steps li.now { background: none; }
.steps__do { margin-top: 10px; gap: 8px 14px; }

/* Иные расходы: сколько закрыто чеками */
.of { font-size: .55em; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.meter { display: block; height: 3px; background: var(--line); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.leftover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leftover small { display: block; color: var(--muted); font-size: .82rem; }
.leftover b { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.leftover .accent b { color: var(--accent); }

/* Правка расхода */
.edit { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 10px 12px; align-items: end; padding: 14px; background: var(--bg-2); border-radius: var(--r); }
.edit__wide { grid-column: 1 / -1; }
.files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.files a { border-bottom: 1px solid var(--line-strong); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files select { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); font-size: .85rem; }
.dlg-err { color: var(--error); font-size: .9rem; margin: 10px 0 0; min-height: 1em; }
.hdr__who.on { color: var(--text); }
.figures > div { min-width: 0; }

@media (max-width: 900px) {
  .edit { grid-template-columns: 1fr 1fr; }
  .leftover { grid-template-columns: 1fr; }
}

/* Подтверждение входа: карточка «кто входит» */
.who-card { display: grid; gap: 4px; margin-top: 22px; padding: 18px 20px; background: var(--bg-2); border-radius: var(--r); border-left: 3px solid var(--accent); }
.who-card b { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; }
.who-card span { color: var(--text-2); }

/* ── v3: связь с бухгалтерией, окно чеков, администратор, «отправлено» ── */
.sendnote { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r); background: #fff6f1; color: var(--text); font-size: .9rem; border-left: 3px solid var(--accent); }
.sendnote.ok { background: #eef7f1; border-left-color: var(--ok); }
.btn--danger { color: var(--error); border-color: rgba(192, 57, 43, .4); }
.btn--danger:hover { background: var(--error); border-color: var(--error); color: #fff; }

.acc { margin: 28px 0 0; padding: 18px 20px; border-radius: var(--r); background: var(--bg-2); display: grid; gap: 12px; }
.acc__head { display: flex; gap: 12px; align-items: center; }
.acc__head b { display: block; font-weight: 500; }
.acc__head span { color: var(--muted); font-size: .88rem; }
.acc__ok { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.acc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--text-2); }
.acc__list span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.acc__list em { color: var(--error); font-style: normal; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: .88rem; }
.admin-bar > span { color: var(--muted); margin-right: 6px; }

table.check { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .95rem; }
table.check th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 12px 8px 0; vertical-align: top; width: 28%; }
table.check td { padding: 8px 0; border-bottom: 1px solid var(--line); }

.sent { max-width: 680px; }
.done-check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
ol.next { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); }
ol.next b { color: var(--text); font-weight: 500; }

/* Окно «Чеки»: на телефоне — на весь экран снизу вверх */
dialog.sheet { width: min(620px, calc(100% - 32px)); padding: 0; }
dialog.sheet.over { outline: 2px dashed var(--accent); outline-offset: -10px; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; }
.sheet__top h2 { margin: 0; }
.sheet__body { padding: 8px 22px 24px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 10px; }
.pick__big { display: grid; justify-items: center; gap: 4px; padding: 26px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease); }
.pick__big:hover { border-color: var(--accent); background: #fff6f1; }
.pick__big:first-child { background: var(--accent); border-color: var(--accent); }
.pick__big:first-child small { color: rgba(11, 11, 11, .7); }
.pick__icon { font-size: 1.8rem; line-height: 1; }
.pick__big b { font-weight: 600; }
.pick__big small { color: var(--muted); }
.progress-files { display: grid; gap: 8px; margin: 12px 0 16px; }
.pf { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text-2); }
.pf i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  dialog.sheet { width: 100%; max-width: 100%; height: auto; max-height: 92svh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .pick { grid-template-columns: 1fr; }
  .pick__big { padding: 22px 12px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1 1 auto; }
  .head-actions .btn--solid { flex-basis: 100%; }
  table.check th { width: 34%; }
  .drophint { display: none; }
  dialog { width: calc(100% - 20px); padding: 22px 18px; max-height: 90svh; overflow: auto; }
}

/* ── v3.1: правки после проверки на телефоне ── */
/* Скрытые радиокнопки транспорта растягивали страницу вбок на телефоне */
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
html, body { overflow-x: hidden; }
::placeholder { color: #b9b7b0; opacity: 1; }

/* Блок бухгалтерии — одна строка, история раскрывается */
details.acc { padding: 0; gap: 0; }
details.acc > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '›'; margin-left: auto; color: var(--muted); font-size: 1.3rem; transition: transform .2s var(--ease); }
details.acc[open] > summary::after { transform: rotate(90deg); }
details.acc > summary b { display: block; font-weight: 500; font-size: .95rem; }
details.acc > summary small { color: var(--muted); font-size: .84rem; }
details.acc > .acc__list, details.acc > .row { padding: 0 18px 14px; }
.acc--off .acc__ok { background: var(--line-strong); }
.acc--warn .acc__ok { background: var(--warn); }

details.paper { margin-top: 6px; font-size: .88rem; }
details.paper summary { cursor: pointer; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
details.paper ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }

/* Кнопки в диалогах всегда видны: закреплены внизу окна */
dialog form > .row:last-child { position: sticky; bottom: -28px; background: var(--bg); padding: 14px 0 6px; margin-bottom: -6px; }
.dlg-err:empty { display: none; }

@media (max-width: 900px) {
  .btn, .btn--small { min-height: 44px; }
  .btn--tiny { min-height: 40px; padding: 8px 12px; }
  .tick { min-height: 44px; padding-right: 6px; }
  .tick input { width: 22px; height: 22px; }
  .hdr__nav a { padding: 12px 2px; }
  .sheet__top .btn { min-width: 44px; min-height: 44px; }
  dialog form > .row:last-child { bottom: -22px; }
}
