/* «Лайт» · дизайн-система v1 (design/ds.css) + совместимость со старыми классами шаблонов.
   Телефон: верхняя строка + нижняя панель. Компьютер (≥ 1024 px): левое меню, контент до 1240 px. */


:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #eef0f3; --text: #1b2027; --text-2: #5d6774; --text-3: #8a939e;
  --line: #e0e3e8; --line-strong: #c9ced6; --accent: #f2a900; --accent-hover: #dc9900; --accent-ink: #1b2027; --on-accent: #1b2027; --accent-soft: #fff4d4;
  --focus: #1f6feb; --ok: #1d7f47; --ok-soft: #e2f3e9; --warn: #a8620a; --warn-soft: #fcefd8; --err: #c0392b; --err-soft: #fbe6e3;
  --info: #2a67a8; --info-soft: #e4edf8; --muted-c: #5b6b7d; --muted-soft: #eceff3; --overlay: rgba(17, 20, 24, .45);
  --shadow-1: 0 1px 2px rgba(17, 20, 24, .06); --shadow-2: 0 8px 24px rgba(17, 20, 24, .14), 0 2px 6px rgba(17, 20, 24, .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --tap: 44px; --h-sm: 36px; --h-md: 44px; --h-lg: 52px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* старые имена — для шаблонов, которые ещё не переделаны */
  --card: var(--surface); --muted: var(--text-2); --accent-text: var(--on-accent); --radius: var(--r-lg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #1a1f25; --surface-2: #232931; --text: #eceff2; --text-2: #9aa3ad; --text-3: #6f7883;
    --line: #2b323a; --line-strong: #3a434d; --accent: #f2b01e; --accent-hover: #ffc23d; --accent-soft: #3a2f10; --focus: #5b9bff;
    --ok: #4cc27f; --ok-soft: #16301f; --warn: #e9b04d; --warn-soft: #382c14; --err: #ef7a6c; --err-soft: #3a1e1b;
    --info: #6aa6e8; --info-soft: #182a3e; --muted-c: #a7b3c0; --muted-soft: #252b33; --overlay: rgba(0, 0, 0, .6);
    --shadow-1: none; --shadow-2: 0 8px 24px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}

/* ---------- основа ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 26px; line-height: 32px; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 19px; line-height: 26px; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0 0 6px; }
@media (min-width: 1024px) { h1 { font-size: 28px; line-height: 34px; } }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; } .ic-lg { width: 24px; height: 24px; }
.num, .t td.n, .t .n, .kpi b, .tile b { font-variant-numeric: tabular-nums; }
.hint, .muted { color: var(--text-2); font-size: 14px; }
.small { font-size: 13px; } .cap { font-size: 12px; line-height: 16px; color: var(--text-2); }
.label { font: 600 12px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.center { text-align: center; } .nowrap { white-space: nowrap; } .mt { margin-top: 12px; }
.warn { color: var(--err); }
.code { font-family: ui-monospace, monospace; font-size: 1.3rem; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; display: inline-block; }

/* ---------- каркас ---------- */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 16px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 14px 16px; }
.foot { flex-wrap: wrap; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px;
  text-decoration: none; font: 500 11px/1.2 var(--font); color: var(--text-2); text-align: center; }
.tab.plus .pl { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.tab.plus .ic { width: 26px; height: 26px; }
kbd { font: 500 11px/1 var(--font); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-2); }
.avatar, .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--text); font: 600 14px/1 var(--font); object-fit: cover; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h-md); padding: 0 18px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font: 600 16px/1.2 var(--font); cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover, .btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn.danger, .btn--danger { background: var(--surface); color: var(--err); border-color: var(--line-strong); }
.btn.danger:hover, .btn--danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn.small, .btn.xs, .btn--sm { min-height: var(--h-sm); padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.big, .btn--lg { min-height: var(--h-lg); padding: 0 24px; font-size: 17px; }
.btn.wide, .btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: var(--h-md); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn .spin, .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) { .btn.small, .btn.xs, .btn--sm { min-height: var(--tap); } }
.link { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font: inherit; text-decoration: underline; }
.link.danger { color: var(--err); }

/* ---------- поля ---------- */
.input { width: 100%; min-height: var(--h-md); padding: 0 12px; margin: 0 0 12px; font: 16px var(--font); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
textarea.input { padding: 10px 12px; line-height: 1.5; min-height: 88px; resize: vertical; }
select.input { padding-right: 8px; }
input[type="file"].input { padding: 9px 12px; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input.big { min-height: 56px; font-size: 22px; font-weight: 600; }
.input.qty { width: 90px; text-align: right; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .form-row label, .work-row label { display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.3 var(--font); color: var(--text); }
.stack .input, .form-row .input, .work-row .input { margin: 0; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 12px 0; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; min-height: var(--tap); color: var(--text) !important; font-weight: 400 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 12px; margin: 0; }
legend { font-size: 14px; color: var(--text-2); padding: 0 4px; }
.inline { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.inline .input { margin: 0; flex: 1; min-width: 120px; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }
.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--r); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 15px; }
.seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.seg.kinds { margin-bottom: 14px; }
.seg.kinds a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.seg.kinds a.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }

/* ---------- чипы, статусы, счётчики ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); text-decoration: none; font: 500 14px var(--font); cursor: pointer; }
.chip.on, .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (pointer: coarse) { .chip { min-height: var(--tap); } }
.status, .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font);
  white-space: nowrap; background: var(--muted-soft); color: var(--muted-c); }
.status::before, .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok, .s-accepted, .s-ok, .s-paid, .s-активно { background: var(--ok-soft); color: var(--ok); }
.status--warn, .s-new, .pill.hot { background: var(--warn-soft); color: var(--warn); }
.status--err, .s-rejected { background: var(--err-soft); color: var(--err); }
.status--info, .s-issued, .s-sent { background: var(--info-soft); color: var(--info); }
.status--accent, .s-viewed { background: var(--accent-soft); color: var(--text); }
.status--accent::before, .s-viewed::before { background: var(--accent); }
.s-cancelled, .s-draft { background: var(--muted-soft); color: var(--muted-c); }
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--font); }
.dot { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--err); color: #fff; font: 700 11px/1 var(--font); }
.lock { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.badge { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0 0 16px; }

/* ---------- карточки, плитки, показатели ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-1); }
@media (max-width: 520px) { .card { padding: 14px; } }
main > .card + .card, main > section.card + section.card, main > nav.tiles + section.card, main > .hint + section.card, main > .grid + .card, main > .card + .grid { margin-top: 16px; }
.narrow { max-width: 520px; margin: 24px auto; }
.text { max-width: 720px; margin: 0 auto; }
.text h2 { margin-top: 20px; }
.tiles, .kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 16px 0; }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; } }
.tile, .kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; text-decoration: none; min-width: 0; }
.tile small, .kpi small { color: var(--text-2); font-size: 13px; }
.tile b, .kpi b { font-size: 24px; line-height: 30px; font-weight: 700; }
.tile.hot { border-color: var(--accent); }
.kpi.alert { border-color: var(--err); }
a.tile:hover, a.kpi:hover { border-color: var(--line-strong); }
.fin .kpis.k3 { grid-template-columns: repeat(3, 1fr); margin: 10px 0; }
@media (max-width: 520px) { .fin .kpis.k3 { grid-template-columns: 1fr 1fr; } .fin .kpis.k3 .kpi:first-child { grid-column: span 2; } }
.grid, .features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin: 16px 0; }
.features article, .features a.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; color: inherit; text-decoration: none; display: block; }
.features p { margin: 0; color: var(--text-2); }
.bar, .progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 4px 0; }
.bar i, .progress > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.adv .bar { height: 10px; }

/* ---------- списки и таблицы ---------- */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li a { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.list li a:hover b { text-decoration: underline; }
.list small { color: var(--text-2); }
.list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.list li > span:last-child { white-space: nowrap; }
.list li.off, .list li.off * { opacity: .55; }
.table-wrap { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.t th, .t td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t thead th, .t th { color: var(--text-2); font: 600 12px/16px var(--font); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.t tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.t .n { text-align: right; white-space: nowrap; }
.t .stage td { background: var(--surface-2); font-weight: 600; }
.t tfoot td { font-weight: 600; border-top: 2px solid var(--line-strong); border-bottom: 0; }
.t tr.total td { border-top: 2px solid var(--line-strong); }
.t tr.off td { opacity: .45; }
.t.small { font-size: 13px; margin: 8px 0; }
.t.kv th { width: 38%; white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; }
@media (max-width: 600px) { .t .opt { display: none; } .t th, .t td { padding-left: 6px; padding-right: 6px; } }
.back { margin: 0 0 8px; }
.back a { color: var(--text-2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }

.back a:hover { color: var(--text); }
.sec { font: 600 12px/16px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 20px 0 8px; }
.sec a { text-transform: none; letter-spacing: 0; font-weight: 500; text-decoration: none; }
h3.sub { font: 600 12px/16px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 16px 0 4px; }

/* ---------- сообщения в потоке ---------- */
.messages { display: none; }
.msg { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); margin: 8px 0; background: var(--info-soft); color: var(--text); font-size: 15px; }
.msg-success { background: var(--ok-soft); }
.msg-error { background: var(--err-soft); }
.msg-warning { background: var(--warn-soft); }

/* ---------- всплывающие плашки ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px));
  width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 1024px) { .toasts { left: auto; right: 24px; transform: none; top: auto; bottom: 24px; } }
.toasts__bar { display: flex; gap: 8px; pointer-events: auto; }
.toasts__bar button { flex: 1; height: 36px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--text); font: 500 14px var(--font); box-shadow: var(--shadow-2); cursor: pointer; }
.toasts.collapsed .toast ~ .toast { display: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; min-height: 56px;
  border-radius: var(--r-lg); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: toast-in .25s var(--ease); }
.toast__text { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.toast__text b { display: block; font-size: 15px; font-weight: 600; }
.toast__text span { display: block; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }   /* 4.7 Н1: ссылку из плашки можно выделить */
.toast .ic-state { width: 22px; height: 22px; }
.toast--run .ic-state { color: var(--info); animation: spin 1s linear infinite; }
.toast--ok .ic-state { color: var(--ok); } .toast--err .ic-state { color: var(--err); } .toast--info .ic-state, .toast--warn .ic-state { color: var(--info); }
.toast--warn .ic-state { color: var(--warn); }
.toast__time { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ok); width: 100%; transform-origin: left; }
.toast--run .toast__time { background: var(--info); animation: run 1.6s ease-in-out infinite; width: 40%; }
.toast--err .toast__time { background: var(--err); } .toast--info .toast__time { background: var(--info); } .toast--warn .toast__time { background: var(--warn); }
.toast__action { font: 600 14px var(--font); color: var(--info); background: none; border: 0; height: 36px; padding: 0 12px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.toast__action:hover { background: var(--surface-2); }
.toast__close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- поиск Ctrl+K ---------- */
.palette-back { position: fixed; inset: 0; background: var(--overlay); z-index: 95; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 12px 12px; }
.palette { width: 620px; max-width: 100%; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line); }
.palette .pq { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.palette .pq .ic { position: absolute; left: 16px; color: var(--text-3); }
.palette .pq input { flex: 1; height: 56px; border: 0; padding: 0 16px 0 48px; font: 17px var(--font); background: transparent; color: var(--text); outline: none; }
.palette .res { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.palette .res .label { padding: 10px 10px 4px; }
.palette .res a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.palette .res a small { margin-left: auto; color: var(--text-2); font-size: 13px; text-align: right; }
.palette .res a[aria-selected="true"], .palette .res a:hover { background: var(--accent-soft); }
.palette .empty-res { padding: 16px; color: var(--text-2); font-size: 14px; }
.palette .keys { display: flex; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }

/* карточки объектов */
.scards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.scard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; margin-bottom: 10px; }
.scards .scard { margin: 0; }
.scard:hover { border-color: var(--line-strong); }
.scard-hd { display: flex; flex-direction: column; min-width: 0; }
.scard-hd b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-hd small { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-bd { display: flex; align-items: center; gap: 10px; }
.scard-bd .bar { flex: 1; margin: 0; }
.scard-bd small { color: var(--text-2); font-size: 13px; white-space: nowrap; }
details.closed { margin-top: 16px; }

/* ---------- витрина и вход ---------- */
.hero { text-align: center; padding: 32px 0 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; }
.lead { font-size: 18px; color: var(--text-2); max-width: 620px; margin: 0 auto 24px; }
.tg-login { min-height: 48px; display: flex; justify-content: center; }
.vk-login { display: flex; justify-content: center; margin-top: 10px; }
.btn-vk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 238px; height: 44px; padding: 0 18px; border-radius: var(--r); background: #0077ff; color: #fff; font-weight: 600; text-decoration: none; }
.btn-vk:hover { background: #0069e0; }
.soon { opacity: .75; }
.soon small { white-space: nowrap; font-size: 11px; text-transform: uppercase; background: var(--surface-2); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.people { list-style: none; padding: 0; margin: 0 0 16px; }
.people li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people img { border-radius: 50%; }
.people small { color: var(--text-2); margin-left: auto; }
.invites { list-style: none; padding: 0; margin: 16px 0 0; }
.invites li { border-top: 1px solid var(--line); padding: 12px 0; }
.invites li.new { background: var(--accent-soft); border-radius: var(--r); padding: 12px; }
.invites li.done { opacity: .6; }
.inv-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.inv-head .status { margin-left: auto; }
.inv-link { display: flex; gap: 8px; margin: 8px 0; }
.inv-link .input { margin: 0; font-size: 14px; }
.inv-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---------- объект, смета, отчёты ---------- */
.member-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.member-tools .qty { width: 64px; }
.est-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.est-tools .input { flex: 1; min-width: 180px; margin: 0; }
.est-money { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; color: var(--text-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.filters .input { flex: 1; min-width: 130px; margin: 0; }
.pager { display: flex; justify-content: space-between; }
.work-row { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; background: var(--surface); }
.work-row.extra { border-style: dashed; border-color: var(--accent); }
/* №51: столбцы — имя · поле одной ширины · единица; поля ровно друг под другом при любой длине имени */
.check-qty { display: grid; grid-template-columns: minmax(0, 1fr) 120px 3.5em; gap: 8px; align-items: center; margin-bottom: 6px; }
.check-qty > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-qty .input.qty { width: 100%; }
.ktu { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.report p { margin: 6px 0; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.review-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.review-form label { display: flex; align-items: center; gap: 6px; }
.review-form .input:not(.qty) { flex: 1; min-width: 140px; margin: 0; }
.suggest { display: block; text-align: center; margin: 24px auto 0; color: var(--text-2); font-size: 14px; }
details summary { cursor: pointer; margin-top: 12px; }
.steps { font-size: 14px; padding-left: 20px; margin: 6px 0; }
.jr { list-style: none; margin: 0; padding: 0; }
.jr li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jr-t { color: var(--text-2); font-size: 13px; }
.jr-x { display: flex; flex-direction: column; }
.jr-x a { text-decoration: none; }
@media (max-width: 520px) { .jr li { grid-template-columns: 1fr; gap: 0; } }
ul.plain { padding-left: 4px; list-style: none; }

/* деньги */
.adv { margin: 6px 0 12px; }
.ops .sum { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops .sum.in { color: var(--ok); }
.ops .sum.move { color: var(--text-2); }
.qrbox { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 10px; }
.qrbox .hint { margin: 6px 0 0; text-align: center; }
.receipt { max-width: 100%; max-height: 420px; border-radius: var(--r); border: 1px solid var(--line); }
.go { font-weight: 600; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) { .hint-d { display: none; } }
details.wallet { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.wallet summary { cursor: pointer; display: flex; flex-direction: column; }
details.wallet form { margin-top: 8px; }
@media (max-width: 520px) { .fin .t { font-size: 13px; } .fin .t td:first-child { word-break: break-word; } }

/* документы */
.doc { font-size: 15px; }
.doc-form { text-align: right; font-size: 12px; color: var(--text-2); margin: 0; }
.doc-title { text-align: center; margin: 4px 0 2px; font-size: 19px; }
.doc-sub { text-align: center; color: var(--text-2); margin: 0 0 12px; }
.doc-parties { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; margin: 0 0 12px; }
.doc-parties dt { color: var(--text-2); }
.doc-parties dd { margin: 0; }
.doc-t td:nth-child(2) { min-width: 180px; }
.doc-t.inv td:nth-child(2) { min-width: 0; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; font-size: 14px; }
.doc-sign .line { display: inline-block; width: 110px; border-bottom: 1px solid var(--text); margin-top: 24px; }
.share .actions { flex-wrap: wrap; }
@media (max-width: 520px) { .doc-parties { grid-template-columns: 1fr; } .doc-sign { grid-template-columns: 1fr; } }
.bankbox td { border: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.bankbox small { color: var(--text-2); }
.pick, .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick label { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.pick input { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; accent-color: var(--accent); }
.pick img, .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 2px solid transparent; }
.pick input:checked + img { border-color: var(--accent); }
.pick small, .gallery figcaption { font-size: 12px; color: var(--text-2); }
.gallery figure { margin: 0; }
.cfb { border: 1px dashed var(--line-strong); margin-top: 16px; }
fieldset.plain { display: contents; }   /* 4.7 П2: обёртка для «только просмотр» (disabled), раскладку не меняет */
fieldset.rep { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px 12px; margin: 0; }
fieldset.rep legend { font-size: 13px; color: var(--text-2); padding: 0 4px; }

/* работа без связи */
.netbar { position: sticky; top: 0; z-index: 70; background: #2c333b; color: #fff; font-size: 14px; padding: 8px 16px; display: block; line-height: 1.6; }
.netbar .warn { color: #ffb4a8; }
.netbar .btn.xs { margin-left: 6px; min-height: 30px; }
.msg.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 80; max-width: 92vw; box-shadow: var(--shadow-2); }
@media (min-width: 1024px) { .msg.toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- форма отчёта (телефон в первую очередь) ---------- */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ic { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.input-wrap .input { padding-left: 40px; margin: 0; }
.sr-select { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rf-wrap { max-width: 640px; margin: 0 auto; }
.rf-head { display: flex; align-items: center; gap: 4px; margin: 0 0 12px -10px; }
.rf-head h1 { margin: 0; }
#rf { display: flex; flex-direction: column; gap: 16px; }
.rf-sec { display: flex; flex-direction: column; gap: 8px; }
.rf-sec .chips { margin: 0; }
.hrs-box { display: flex; flex-direction: column; gap: 6px; }
.hrs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.hrs-row .hrs { width: 110px; margin: 0; }
.work-row { position: relative; }
.picker .chosen { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; background: var(--accent-soft); border-radius: var(--r-lg); }
.picker .chosen[hidden] { display: none; }
.picker .chosen b { flex: 1; font-size: 16px; line-height: 22px; font-weight: 600; }
.picker .search { display: flex; flex-direction: column; gap: 8px; }
.picker .pchips { margin: 0; }
.picker .pchips .chip { height: auto; min-height: 44px; padding: 8px 14px; text-align: left; white-space: normal; line-height: 1.3; }
.picker .results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.picker .results button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--text); font: 15px/1.35 var(--font); text-align: left; cursor: pointer; }
.picker .results button:first-child { border-top: 0; }
.picker .results button:hover { background: var(--surface-2); }
.picker .results small { color: var(--text-2); white-space: nowrap; font-size: 13px; }
.big-qty { display: flex; align-items: center; gap: 8px; }
.big-qty .input { min-height: 56px; margin: 0; font-size: 24px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.big-qty .unit-l { font-size: 18px; color: var(--text-2); min-width: 28px; }
.stepper { width: 56px; min-height: 56px; padding: 0; flex: none; }
.qhint { margin: -4px 0 0; }
.photos-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ph-add { width: 72px; height: 72px; border-radius: var(--r); border: 2px dashed var(--line-strong); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; position: relative; }
.ph-add:hover { border-color: var(--accent); color: var(--text); }
.ph-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photos-row .ph { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; }
.ph-old { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.rf-more summary { margin: 0; color: var(--text-2); font-size: 15px; min-height: 32px; }
.rf-more[open] summary { margin-bottom: 8px; }
.field-l { display: flex; flex-direction: column; gap: 6px; font: 500 14px var(--font); }
.field-l .input { margin: 0; }
.rf-note { margin: -4px 0 0; display: flex; gap: 6px; align-items: center; }
.rf-foot { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.has-nav .rf-foot { bottom: 60px; }
@media (min-width: 1024px) { .has-nav .rf-foot { bottom: 0; } }
.msg > .ic { flex: none; margin-top: 2px; }
.msg-warning > .ic { color: var(--warn); } .msg-error > .ic { color: var(--err); } .msg-success > .ic { color: var(--ok); }
.kpi .delta { font-size: 13px; color: var(--ok); }
.sheet-back { position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 4px; animation: sheet-in .22s var(--ease); }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); align-self: center; margin-bottom: 8px; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.row-link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 4px; text-decoration: none; border-radius: var(--r); }
.row-link:hover { background: var(--surface-2); }
.row-link > span:not(.tic) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-link > .ic:last-child { color: var(--text-2); }
.row-link small { color: var(--text-2); font-size: 13px; }
.tic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.tic.acc { background: var(--accent-soft); color: var(--text); }

/* ---------- проверка отчётов ---------- */
.rv-head { align-items: baseline; }
.keys { font-size: 12px; color: var(--text-2); }
.bulk-form { position: sticky; top: 56px; z-index: 6; margin: 4px 0 12px; }
@media (min-width: 1024px) { .bulk-form { top: 0; } }
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px 6px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bulkbar .check { min-height: 40px; margin-right: auto; font-weight: 600 !important; }
.bulk-rej { display: flex; gap: 6px; align-items: center; flex: 1 1 260px; }
.bulk-rej .input { margin: 0; min-height: 36px; }
.rv-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rv-detail { display: none; flex-direction: column; gap: 12px; }
.rv { min-height: 60px; }
.rv { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.rv:first-child { border-top: 0; }
.rv input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.rv .rv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.rv .rv-main b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv .rv-main small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv .rv-sum { font-size: 14px; white-space: nowrap; }
.rv:hover { background: var(--surface-2); }
.rv[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rv.sel .rv-main b { color: var(--text); }
.rc .photos img { width: 120px; height: 120px; }
.rej-zone { display: flex; gap: 8px; flex: 1 1 260px; }
.rej-zone .input { margin: 0; }
.rej-chips { width: 100%; margin: 0; }
.rej-chips .chip { min-height: 32px; font-size: 13px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; }
.empty-state .ic-lg { width: 40px; height: 40px; color: var(--ok); }
.count { color: var(--text-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }
@media (min-width: 1024px) {
  .rv-split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
  .rv-detail { display: flex; }
  .rv-list { display: block; position: sticky; top: 64px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .rc .photos img { width: 180px; height: 180px; }
}
.t .sel { width: 40px; }
.t .sel input { width: 20px; height: 20px; accent-color: var(--accent); }
.t tr[aria-selected="true"] td { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.paysheet .input.qty { width: 120px; }
.paysheet select.input { margin: 0; min-height: 36px; font-size: 14px; width: auto; }
.paysheet tr.off-row td { color: var(--text-3); }
.paybar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; padding-top: 14px; }
.paybar label { display: flex; flex-direction: column; gap: 4px; font: 500 13px var(--font); }
.paybar .input { margin: 0; min-width: 180px; }
.money-table { padding: 0; margin-bottom: 8px; }
.money-table .t td, .money-table .t th { vertical-align: middle; }
.money-table .t a { text-decoration: none; }
.t tr.click { cursor: pointer; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--text); }
.t th[aria-sort="ascending"]::after { content: " ↑"; } .t th[aria-sort="descending"]::after { content: " ↓"; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.bar-cell .bar { flex: 1; margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 8px 0 16px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; height: var(--tap); padding: 0 12px; border: 0; background: none; color: var(--text-2);
  font: 500 15px var(--font); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
[data-tab] + [data-tab] { margin-top: 16px; }
@media (max-width: 600px) { .hide-m { display: none; } }
.btn[aria-pressed="true"] { background: var(--accent-soft); }

/* --- подтверждение, оплата, связанные документы --- */
.confirm-back { align-items: center; z-index: 95; }
.confirm { border-radius: 16px; max-width: 400px; margin: 16px; padding: 20px; display: grid; gap: 8px; }
.confirm b { font-size: 17px; }
.confirm p { margin: 0 0 8px; color: var(--muted); }
.confirm .actions { justify-content: flex-end; }
@media (max-width: 600px) { .confirm-back { align-items: flex-end; } .confirm { margin: 0; max-width: none; border-radius: 18px 18px 0 0; } .confirm .actions .btn { flex: 1; } }
.paid-box summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.paid-box summary::-webkit-details-marker { display: none; }
.paid-box .form-row { align-items: end; }
.inv-links { display: grid; gap: 4px; margin-top: 8px; }

/* --- прайс: правка в ячейке --- */
.pr-tools { gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pr-tools .input-wrap { flex: 1; min-width: 200px; max-width: 420px; }
.price-t td { padding-top: 2px; padding-bottom: 2px; vertical-align: middle; }
.cell { width: 100%; min-width: 0; border: 1px solid transparent; background: transparent; font: inherit; color: inherit; padding: 6px 6px; border-radius: 6px; }
.cell.num { text-align: right; width: 7.5em; font-variant-numeric: tabular-nums; }
.cell-s { width: 4.5em; }
.cell:hover { border-color: var(--line); }
.cell:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft, rgba(242,169,0,.2)); }
.cell.saving { opacity: .55; }
.cell.saved { background: var(--ok-soft, rgba(30,160,90,.12)); transition: background .6s; }
.price-t td:first-child { min-width: 240px; width: 100%; }
@media (max-width: 760px) {
  .price-t thead { display: none; }
  .price-t, .price-t tbody, .price-t tr, .price-t td { display: block; }
  .price-t tr.stage td { padding: 8px 4px; }
  .price-t tr.pr-row { display: grid; grid-template-columns: 4.5em 1fr 1fr auto; gap: 2px 6px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .price-t tr.pr-row td { padding: 0; border: 0; min-width: 0; width: auto; }
  .price-t tr.pr-row td:first-child { grid-column: 1 / -1; }
  .price-t .cell.num { width: 100%; }
  .price-t .cell-s { width: 100%; }
  .price-t td[data-l]::before { content: attr(data-l); font-size: 11px; color: var(--text-2); display: block; padding: 0 6px; }
  .price-t td.n::before { text-align: right; }
}
.pr-row.off .cell { color: var(--muted); text-decoration: line-through; }
.pr-st { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pr-st .ic { transition: transform .15s; }
.pr-st[aria-expanded="false"] .ic { transform: rotate(-90deg); }
.pr-stage.folded .pr-row { display: none; }
.lock { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* --- QR оплаты, документы заказчика --- */
.pay-qr { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.pay-qr svg { flex: none; width: 148px; height: 148px; }
.pay-qr p { margin: 4px 0 0; }
@media (max-width: 480px) { .pay-qr { flex-direction: column; text-align: center; } .pay-qr svg { width: 200px; height: 200px; } }
@media print { .pay-qr p { display: none; } }
.denied { max-width: 520px; margin: 32px auto; text-align: center; }
.denied .actions { justify-content: center; }
.denied > .ic { color: var(--text-2); }
@media (max-width: 480px) { .site-tabs { gap: 0; } .site-tabs button { flex: 1 1 auto; padding: 0 6px; justify-content: center; gap: 4px; font-size: 14px; } }

/* --- окна: нижний лист на телефоне, окно по центру на компьютере --- */
.sheet-back.dyn { z-index: 90; }
.sheet--dyn { position: relative; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; gap: 12px; padding-top: 8px; transition: transform .15s; }
.sheet--dyn .sheet__body { display: flex; flex-direction: column; gap: 12px; }
.sheet--dyn h2, .sheet--dyn h3 { margin: 0; font-size: 20px; padding-right: 36px; }
.sheet__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.sheet-back.dyn.closing { opacity: 0; transition: opacity .15s; }
html.has-sheet, html.has-sheet body { overflow: hidden; }
@media (min-width: 1024px) {
  .sheet-back.dyn { align-items: center; }
  .sheet--dyn { border-radius: 16px; max-width: 560px; padding: 24px; }
  .sheet--dyn.sheet--wide { max-width: 820px; }
  .sheet--dyn .sheet__grip { display: none; }
}
.slip-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.slip-t td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.slip-t td.n { text-align: right; font-variant-numeric: tabular-nums; }
.slip-t tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--line-strong); }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sheet-actions .btn { flex: 1 1 auto; }
@media (min-width: 1024px) { .sheet-actions .btn { flex: 0 0 auto; } }
.sheet-page { max-width: 640px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.banner > div { display: flex; flex-direction: column; gap: 2px; }
.banner small { color: var(--text-2); }
.banner.warn { background: var(--warn-soft); } .banner.warn > .ic { color: var(--warn); }
.banner.err { background: var(--err-soft); } .banner.err > .ic { color: var(--err); }
.act-rows { max-height: 40vh; overflow: auto; }
.sum-lines { display: flex; flex-direction: column; gap: 4px; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines .total { border-top: 2px solid var(--line-strong); padding-top: 8px; margin-top: 4px; font-size: 17px; }
.act-more summary { cursor: pointer; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .t th:first-child, .card.flush .t td:first-child { padding-left: 16px; }
.card.flush .t th:last-child, .card.flush .t td:last-child { padding-right: 16px; }
.btn.icon-only { padding: 0; width: 36px; justify-content: center; }
.btn.xs.icon-only { width: 32px; }
.t tr.off td { opacity: .5; }
.pick-rows { display: grid; gap: 2px; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 16px 8px; }
.card-head h2 { margin: 0; font-size: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.kpi small { color: var(--text-2); }
.kpi b.num { font-size: 28px; line-height: 1.15; }
.kpi--alert { border-color: var(--err) !important; }
.kpi--alert b { color: var(--err); }
.neg { color: var(--err); }
.show-m { display: none; }
@media (max-width: 1023px) { .show-m { display: block; } }
.btn.wide { width: 100%; justify-content: center; }

/* --- «Выплаты» по прототипу --- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.toolbar .seg { flex: 0 1 auto; }
.toolbar .seg label { flex: 0 0 auto; }
.toolbar .seg span { padding: 8px 14px; white-space: nowrap; }
.tb-date { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.tb-date .input { width: auto; }
/* №52/54: объект выплаты в ведомости */
.tb-site { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); min-width: 0; }
.tb-site .input { width: auto; max-width: 260px; margin: 0; }
.pay-site-hint { margin: -4px 0 12px; }
.tb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.tb-right .tb-date { margin-left: 0; }
.pay-t tbody tr[aria-selected="true"] td { background: var(--accent-soft); }
.pay-t .cell.num { width: 8.5em; border-color: var(--line); background: var(--surface); }
.pay-t select.input { height: 36px; font-size: 14px; }
.paybar { align-items: center; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 16px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.12)); padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.last-pay summary { cursor: pointer; }
a.banner { text-decoration: none; color: inherit; margin-bottom: 12px; }
@media (max-width: 760px) {
  .pay-t .opt { display: none; }
  .tb-date { margin-left: 0; }
  .tb-right { width: 100%; margin-left: 0; } .tb-site { width: 100%; } .tb-site .input { flex: 1; max-width: none; }
  .paybar { justify-content: stretch; } .paybar .btn { width: 100%; justify-content: center; }
}
.toolbar .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.menu-pop .show-m { display: none; }
/* 4.7: ведомость на компьютере 761–1279 px (1024 — ноутбук): «Должность» под именем, поле суммы и «Как» уже — колонка «Как» не уходит за край */
.pay-t .pos-sub { display: none; }
@media (min-width: 761px) and (max-width: 1279px) {
  .pay-t .pos-col { display: none; }
  .pay-t .pos-sub { display: block; font-size: 12px; margin-top: 2px; }
  .pay-t th, .pay-t td { padding-left: 8px; padding-right: 8px; }
  .pay-t .cell.num { width: 6.5em; }
  .pay-t select.input { max-width: 132px; }
}
@media (max-width: 1023px) { .menu-pop a.show-m { display: flex; } }
@media (max-width: 760px) {
  .page-head .actions { width: 100%; } .page-head .actions > .btn { flex: 1; justify-content: center; }
  .pay-t thead, .pay-t tfoot td:not(:nth-child(2)):not(:nth-child(6)) { display: none; }
  .pay-t, .pay-t tbody, .pay-t tfoot { display: block; }
  .pay-t tr { display: grid; grid-template-columns: 32px 1fr auto; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
  .pay-t td { padding: 0 !important; border: 0 !important; background: none !important; }
  .pay-t tbody tr[aria-selected="true"] { background: var(--accent-soft); }
  .pay-t td.sel { grid-row: 1; grid-column: 1; }
  .pay-t td:nth-child(2) { grid-row: 1; grid-column: 2; }
  .pay-t td:nth-child(6) { grid-row: 1; grid-column: 3; }
  .pay-t td:nth-child(7) { grid-row: 2; grid-column: 2; } .pay-t td:nth-child(7) .cell { width: 100%; text-align: left; }
  .pay-t td:nth-child(8) { grid-row: 2; grid-column: 3; } .pay-t td:nth-child(8) select { width: 140px; }
  .pay-t tfoot tr { grid-template-columns: 1fr auto; } .pay-t tfoot td:nth-child(2) { grid-column: 1; } .pay-t tfoot td:nth-child(6) { grid-column: 2; grid-row: 1; }
}
.scan-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4/3; max-height: 240px; border: 2px dashed var(--line-strong); border-radius: 16px; color: var(--text-2); text-align: center; cursor: pointer; }
.scan-box .ic-lg { width: 48px; height: 48px; }
.ck-scan, .ck-body { display: flex; flex-direction: column; gap: 12px; }
.ck-check { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.ck-check b { font-size: 22px; }
.ck-check small { color: var(--text-2); }
.label-s { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.chip-r { position: relative; }
.chip-r input { position: absolute; opacity: 0; }
.chip-r span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 14px; background: var(--surface); }
.chip-r input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-r input:focus-visible + span { outline: 2px solid var(--focus); }

/* --- объект по прототипу --- */
.crumbs { font-size: 14px; color: var(--text-2); margin: 0 0 4px; }
.crumbs a { color: inherit; }
.tb-right { margin-left: auto; display: flex; gap: 8px; }
.est-tools .input-wrap { flex: 1; min-width: 200px; max-width: 380px; }
.est-t td:first-child { min-width: 260px; }
.est-t .est-money { display: block; color: var(--text-2); font-size: 12px; }
.est-t .bar-th { width: 180px; }
.est-stage.folded .est-row { display: none; }
.bar--ok i { background: var(--ok) !important; } .bar--err i { background: var(--err) !important; }
.stage-progress { display: flex; flex-direction: column; gap: 14px; }
.stage-progress .sp { display: flex; flex-direction: column; gap: 6px; }
.stage-progress .bar { display: block; height: 8px; }
#reports > summary { cursor: pointer; }
@media (max-width: 760px) {
  .est-t thead { display: none; }
  .est-t, .est-t tbody { display: block; }
  .est-t tr.est-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .est-t tr.stage { display: block; } .est-t tr.stage td { display: block; }
  .est-t tr.est-row td { padding: 0 !important; border: 0 !important; min-width: 0 !important; }
  .est-t tr.est-row td:first-child { grid-column: 1 / -1; }
  .est-t tr.est-row td:last-child { grid-column: 1 / -1; }
  .est-t td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-2); }
  .est-t td.n { text-align: left; }
  .tb-right { margin-left: 0; width: 100%; }
}
.scard .scard-hd { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; }
.scard .row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scard .bar { display: block; margin: 0; }
.scard { text-align: left; }

/* --- карточка отчёта на проверке (прототип) --- */
.rcard { display: flex; flex-direction: column; gap: 12px; }
.rc-head { display: flex; gap: 12px; align-items: flex-start; }
.rc-title { flex: 1; min-width: 0; } .rc-title h2 { margin: 0; font-size: 20px; } .rc-title p { margin: 4px 0 0; }
.big-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.big-photos a, .big-photos .no-photo { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.big-photos img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { grid-column: span 3; aspect-ratio: auto !important; padding: 18px; color: var(--text-2); display: flex !important; gap: 8px; justify-content: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.facts small { color: var(--text-2); font-size: 12px; }
.facts b { font-size: 18px; }
.facts .cell { width: 90px; font-size: 18px; font-weight: 700; text-align: left; border-color: var(--line); padding: 2px 6px; }
.fq { display: flex; align-items: center; gap: 6px; }
.rej-zone { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.rej-row { display: flex; gap: 8px; } .rej-row .input { flex: 1; min-width: 0; }
.rc-actions { display: flex; gap: 8px; } .rc-actions kbd { margin-left: 6px; }
.rc-comment { margin: 0; font-style: italic; }
.rcard .review-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 0; padding: 0; margin: 0; }
.bulkbar .btn[disabled] { display: none; }
.facts { flex: none; height: auto; align-content: start; }
.facts > div { min-height: 0; }
.d-block { display: block; }
.t td.pos { color: var(--ok); }
.lock-t { color: var(--text-3, #9aa3ad); } .lock-t.on { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .price-t tr.pr-row { grid-template-columns: 3.5em 1fr 1fr 3.5em auto; } }
.price-t td:last-child form { display: flex; gap: 4px; flex-wrap: nowrap; }
.paid-link { align-items: center; } .paid-link > div { flex: 1; }
/* форма отчёта — во весь экран, как в прототипе: без нижней панели, работа без рамки */
@media (max-width: 1023px) { .rf-page.has-nav .rf-foot { bottom: 0; } }
.rf-page #rows .work-row { border: 0; padding: 0; background: none; border-radius: 0; }
.rf-page #rows .work-row + .work-row { border-top: 1px solid var(--line); padding-top: 14px; }
.rf-page #rows .work-row:only-child .rm { display: none; }
.rf-page #rows .work-row .row-title { font: 600 12px/16px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.link-btn { border: 0; background: none; padding: 0 4px; margin-right: auto; color: var(--text-2); font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ck-scan label.btn { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.scan-box { background: #1f2329; border: 0; color: #c9ced6; position: relative; }
.scan-box::after { content: ""; position: absolute; inset: 18% 24%; border: 3px solid var(--accent); border-radius: 14px; pointer-events: none; }
.seg { position: relative; } .seg label { position: relative; }
.seg input { left: 0; top: 0; }
.menu-pop.menu-left { left: 0; right: auto; }
.menu-pop.menu-flip { left: 0; right: auto; }
.menu-pop.menu-left.menu-flip { left: auto; right: 0; }
.site-docs { display: flex; flex-direction: column; gap: 12px; }
.site-docs .toolbar { margin: 0; }
.doc-list .row-link { padding: 10px 16px; border-top: 1px solid var(--line); border-radius: 0; min-height: 56px; }
.doc-list .row-link:first-child { border-top: 0; }
.row-link.off { opacity: .55; }
@media (max-width: 760px) {
  .acts-t thead { display: none; } .acts-t, .acts-t tbody { display: block; }
  .acts-t tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .acts-t td { padding: 0 !important; border: 0 !important; text-align: left !important; }
  .acts-t td:first-child { grid-column: 1 / 3; } .acts-t td:last-child { grid-column: 3; grid-row: 1; text-align: right !important; }
  .acts-t td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-2); }
}
.mt-cards { display: none; }
@media (max-width: 760px) {
  .mt-cards { display: flex; flex-direction: column; gap: 10px; } .money-table { display: none; }
  .mt-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mt-nums span { display: flex; flex-direction: column; } .mt-nums small { color: var(--text-2); font-size: 12px; }
  .mt-total { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); padding: 0 4px; flex-wrap: wrap; }
}
.danger-link { color: var(--err); }
.wallets .wrow { border-top: 1px solid var(--line); }
.wallets .wrow:first-child { border-top: 0; }
.wrow > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.wrow > summary::-webkit-details-marker { display: none; }
.wrow .wtx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wrow .wtx small { color: var(--text-2); font-size: 13px; }
.wrow[open] > summary .ic { transform: rotate(180deg); }
.wrow .wbody { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.wrow.off .wtx b { color: var(--text-2); }
.pad { padding: 16px; }
.la-t tr.picked td { background: var(--accent-soft); } .la-t .cell.num { width: 6.5em; border-color: var(--line); background: var(--surface); }
.la-q { flex: 1; min-width: 200px; max-width: 420px; }
.pay-modes .pm-opt { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pay-modes .pm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-modes .pm-opt span { display: flex; flex-direction: column; gap: 2px; } .pay-modes .pm-opt small { color: var(--text-2); font-weight: 400; }
.pay-modes .pm-opt input { margin-top: 3px; }
.member-tools .coef { flex-direction: row !important; align-items: center; font-size: 13px; color: var(--text-2); gap: 6px; }
.add-member { margin-top: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.lightbox img { max-width: 100vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-x { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-p { left: 12px; top: 50%; } .lb-nx { right: 12px; top: 50%; }
.lb-n { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff; font-size: 14px; }
.row-link > span.pill { display: inline-flex; flex-direction: row; flex: none; }
@media (max-width: 760px) {
  .terms-t th:last-child, .terms-t td:last-child { display: none; }
  .la-t tr.pr-row { grid-template-columns: 3em 1fr 1fr 6.5em; }
  .la-t .cell.num { width: 100%; }
}
@media (max-width: 760px) { .toolbar .seg { flex-wrap: wrap; overflow: visible; } .toolbar .seg label { flex: 1 1 auto; } }
/* --- «Что нового» --- */
.releases { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.rel { display: flex; flex-direction: column; gap: 6px; }
.rel--new { border-color: var(--accent); }
.rel-head { display: flex; gap: 12px; align-items: center; }
.rel-head > div { flex: 1; min-width: 0; } .rel-head h2 { margin: 0; font-size: 18px; }
.rel-v { font: 700 15px/1 var(--font); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.rel--new .rel-v { background: var(--accent); color: var(--on-accent); }
.rel-l { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; gap: 6px; align-items: center; text-transform: uppercase; letter-spacing: .05em; }
.rel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.tab .tl { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* --- настройка нижней панели --- */
.nb-preview { display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 6px 4px; margin: 12px 0; max-width: 480px; box-shadow: var(--shadow-1); }
.nb-preview .tab { height: 56px; font-size: 11px; color: var(--text-2); }
.nb-preview .tab.plus .pl { width: 42px; height: 42px; }
.nb-form h2 { font-size: 16px; margin: 0 0 6px; }
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.nb-list li:first-child { border-top: 0; } .nb-list li > span { flex: 1; }

/* --- Замечания (1.7) --- */
.rmk-done { margin-top: 12px; }
.rmk-done summary { cursor: pointer; font-weight: 600; }
.site-remarks .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.site-remarks .sec-head h2 { margin: 0; }
.rmk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rmk-head h2 { margin: 0; overflow-wrap: anywhere; }
.rmk-head .status { flex: none; }
.rmk-facts { margin: 12px 0; }
.rmk-photos { display: grid; gap: 12px; margin: 12px 0; }
.rmk-photos.two { grid-template-columns: 1fr 1fr; }
.rmk-photos .photos { margin: 0; }
.rmk-photos .photos img { width: 104px; height: 104px; }
@media (max-width: 520px) { .rmk-photos .photos img { width: 76px; height: 76px; } }
.photo-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--text-2); font-weight: 600; }
.photo-add:hover { border-color: var(--text-2); color: var(--text); }
.rmk-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rmk-thumbs:empty { display: none; }
.rmk-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.card-in { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rmk-ret .chips { margin-top: 8px; }
.sheet .rmk-head { padding-right: 40px; }
.rmk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rmk-facts > div { min-width: 0; }
.rmk-facts dt { font-size: 12px; color: var(--text-2); margin: 0 0 2px; }
.rmk-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rmk-facts dd.neg { color: var(--err); }
.site-remarks .rmk-all { display: inline-block; margin-top: 10px; }
@media (max-width: 520px) { .site-tabs button > svg { display: none; } .site-tabs button { padding: 0 5px; font-size: 13.5px; } .site-tabs .cnt { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; } }

/* --- Настройки (1.8) --- */
.usage .use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 720px) { .usage .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.usage .kpi .of { font-size: 15px; font-weight: 500; color: var(--text-2); }
.use-hist { margin-top: 12px; }
.use-hist summary { cursor: pointer; font-weight: 600; }
.use-hist .table-wrap { margin-top: 8px; }
.feats { margin-top: 16px; }
.feats .card-head { padding: 16px 16px 8px; }
.feat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.feat.sub { padding-left: 44px; }
.feat .ft { display: grid; gap: 2px; min-width: 0; }
.feat .ft small { color: var(--text-2); }
.feat .use-line { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.feat.is-off .tic, .feat.is-off .ft b { opacity: .5; }
.feat.core .tic { color: var(--text-2); }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; flex: none; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lock-note { white-space: nowrap; }
@media (max-width: 520px) { .feat { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; } .feat .tic { width: 36px; height: 36px; } .feat.sub { padding-left: 28px; } .lock-note { white-space: normal; max-width: 80px; text-align: right; } }

/* --- Исполнители (1.9) --- */
.npd-card small { color: var(--text-2); font-size: 12.5px; }
.npd-card.hot small { color: var(--err); }
.npd-card { display: grid; gap: 6px; }
.npd-card .bar { height: 8px; }
.seg.ex-kinds label { position: relative; }
.seg.ex-kinds span { padding: 9px 4px; }
.ex-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 4px 0 0; min-width: 0; }
.ex-form legend { font-weight: 600; padding: 0 0 4px; }
.ex-more { flex-wrap: wrap; }
.exec-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.exec-line b { color: var(--text); }
.t tr.vat td { border-top: 0; padding-top: 0; }
@media (max-width: 420px) { .seg.ex-kinds span { font-size: 13.5px; padding: 9px 2px; } }
.input.ro { display: flex; align-items: center; background: var(--surface-2); color: var(--text); }
/* пакет 7: отметка выгруженной партии отзывов */

/* 1.10 — правка отчётов, дубли, отзывы пачкой */
.rf-edit .rm { display: none; }
.rd-tools { display: inline-flex; align-items: center; gap: 10px; }
.menu-pop .menu-off { display: flex; gap: 10px; padding: 8px 10px; color: var(--muted); cursor: not-allowed; }
.menu-pop .menu-off small { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.menu-pop form { margin: 0; }
.menu-pop button.danger { color: var(--err); }
.rej-acc { margin-top: 12px; }
.rej-acc .rej-row { display: flex; gap: 8px; margin-top: 8px; }
.rej-acc .rej-row .input { flex: 1; min-width: 0; }
.dup-hint a { font-weight: 500; }
details.ask { margin-top: 14px; }
details.ask > summary { list-style: none; }
details.ask > summary::-webkit-details-marker { display: none; }
/* 1.11 «Посмотреть как…»: тёмная полоса поверх всего, не путать со своим аккаунтом */
.viewas-bar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px max(16px, env(safe-area-inset-left, 0px)); background: #1d2430; color: #fff; font-size: 14px; line-height: 1.4; }
.viewas-bar span { flex: 1; min-width: 0; }
.viewas-bar b { color: #ffd466; }
.viewas-bar form { margin: 0; }
.viewas-bar .btn.xs { min-height: 32px; background: #ffd466; color: #1d2430; border: 0; }

/* ---------- Современность: анимации, переходы, мобильное меню ---------- */
/* Плавный переход между страницами (Chrome/Safari); при «меньше движения» он выключен,
   как и остальные анимации ниже. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero { animation: fadeUp .4s ease both; }
.features article, .features a.card { animation: fadeUp .4s ease both; }
.features article:nth-child(2) { animation-delay: .06s; }
.features article:nth-child(3) { animation-delay: .12s; }
.features article:nth-child(4) { animation-delay: .18s; }
.features article:nth-child(n+5) { animation-delay: .24s; }

.features article, .features a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.features article:hover, .features a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(17, 20, 24, .08); border-color: var(--accent-soft); }

@media (max-width: 560px) { body.tools .seg.kinds a { flex: 0 1 auto !important; } }

/* ---------- Якоря-разделы, подзаголовки, инлайн-формы ---------- */
.anchors { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.anchors a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
  font: 700 14px/1 var(--font-sans); text-decoration: none; transition: background .15s ease; }
.anchors a:hover { background: var(--fill); }
.sub-h { font: 700 17px/22px var(--font-sans); margin: 16px 0 4px; }
.inline-form { display: inline; }

/* Страница акта: жёстко одинаковая геометрия и одинаковое видимое кольцо у чипов и переключателей.
   Кольцо через box-shadow (не меняет layout), поэтому активная и неактивные выглядят одинаково. */
html.v2 .seg.kinds { background: transparent !important; padding: 0 !important; gap: 8px !important; flex-wrap: wrap !important; }
body.tools .seg.kinds a {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important;
  padding: 0 15px !important; box-sizing: border-box !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--surface) !important; color: var(--ink) !important;
  box-shadow: 0 0 0 1.5px var(--line) !important;
  font: 700 14px/1 var(--font-sans) !important;
  text-decoration: none !important; white-space: nowrap !important; vertical-align: middle !important;
}
body.tools .seg.kinds a:hover { background: var(--fill) !important; }
body.tools .seg.kinds a.on { background: var(--surface) !important; color: var(--accent-ink) !important; box-shadow: 0 0 0 1.5px var(--accent) !important; }
body.tools .seg.kinds a[data-tab] { margin: 0 !important; }
body.tools .seg.kinds a .ic { width: 18px !important; height: 18px !important; flex: none !important; }
body.tools .seg.kinds { align-items: center !important; }
/* Инструменты: три карточки в ряд при узком контейнере */
body.tools .features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .hero, .features article { animation: none; }
  .features article { transition: none; }
}

/* ---------- Публичные страницы в дизайне v2 ---------- */
html.v2 .hero h1 { font: 800 clamp(30px, 6vw, 46px)/1.12 var(--font-sans); letter-spacing: -0.01em; }
html.v2 .hero .lead, html.v2 .features p { font-weight: 500; }
html.v2 .features article { border: 0; box-shadow: 0 1px 3px rgba(17, 20, 24, .06); }
html.v2 .features article h3 { font: 800 17px/22px var(--font-sans); }
html.v2 .hint { font: 500 14px/20px var(--font-sans); }
