/* IRent: светлая тема, красно-чёрно-белая (решение клиента 17.11.2026). Характер: точный, складской, быстрый.
   Действие чёрное, бренд и активное красные, ошибки красные со знаком.
   Основа #F2F2EE, поверхность #FFFFFF, текст #15171A, приглушённый #5C6168, линия #DADBD5,
   действие #1D4ED8, успех #1E8E5A, ошибка #D93025, внимание #A15C00.
   Запоминающийся элемент: инвентарный номер как бирка с отверстием. */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(/fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8, U+2190-21FF, U+2212; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(/fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8, U+2190-21FF, U+2212; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(/fonts/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8, U+2190-21FF, U+2212; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(/fonts/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8, U+2190-21FF, U+2212; }
@font-face { font-family: Mono; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+20B8, U+2212; }
@font-face { font-family: Mono; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F; }
@font-face { font-family: Mono; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+20B8, U+2212; }
@font-face { font-family: Mono; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0400-045F; }

:root {
  color-scheme: only light;
  --bg: #F2F2EE; --sf: #FFFFFF; --sf2: #F8F8F5; --ink: #15171A; --mut: #5C6168; --line: #DADBD5; --line2: #C4C6BE;
  --act: #15171A; --act-h: #000000; --act-bg: #F1F1EE; --brand: #DF0211; --brand-bg: #FDECEE; --ok: #1E8E5A; --ok-bg: #E3F3EA; --err: #D93025; --err-bg: #FBE7E5; --warn: #A15C00; --warn-bg: #FCF0DC;
  --r: 8px; --r2: 6px; --side: 236px;
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Onest, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 28px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 20px; line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.mono { font-family: Mono, ui-monospace, monospace; }
/* Цифры: основной шрифт, табличные, без моноширинного «терминала» */
.num, .sum, td.r { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.sum { white-space: nowrap; letter-spacing: -0.005em; }
.sum .cur { font-size: 0.8em; font-weight: 500; color: var(--mut); margin-left: 0.2em; }
.sum.neg { color: var(--err); }
.err-t .sum .cur, .ok-t .sum .cur { color: inherit; opacity: .7; }
.mut { color: var(--mut); } .sm { font-size: 13px; } .xs { font-size: 12px; } .b { font-weight: 600; }
.ok-t { color: var(--ok); } .err-t { color: var(--err); } .warn-t { color: var(--warn); }
.hide { display: none !important; }

/* ---------- каркас ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; background: var(--sf); border-right: 1px solid var(--line); padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 2px; }
.side::-webkit-scrollbar { display: none; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 10px; color: var(--ink); text-decoration: none !important; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo svg.mark { width: 44px; height: 27px; }
.logo b { font-size: 18px; letter-spacing: 0.02em; }
.logo span { display: block; font-size: 12px; color: var(--mut); font-weight: 400; }
.nav-g { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #8A8F96; padding: 10px 10px 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r2); color: var(--ink); font-weight: 500; text-decoration: none; min-height: 34px; font-size: 14px; }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--mut); }
.nav a:hover { background: var(--sf2); }
.nav a.on { background: var(--ink); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav a.on svg { color: #fff; }
.nav a .cnt { margin-left: auto; font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 4px; background: var(--err); color: #fff; }
.me { margin-top: auto; padding: 10px 4px 0 10px; border-top: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.me b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .xs { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; padding: 24px 32px 64px; max-width: 1400px; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; margin-bottom: 16px; }
.top h1 { margin-right: auto; }
.sub { color: var(--mut); margin: -10px 0 16px; }
.tabbar { display: none; }

/* ---------- элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r2); border: 1px solid var(--act); background: var(--act); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s var(--e); }
.btn:hover { background: var(--act-h); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.ghost { background: var(--sf); color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { background: var(--sf2); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.danger { background: var(--sf); color: var(--err); border-color: var(--err); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn.lg { min-height: 52px; font-size: 16px; padding: 12px 20px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.card { background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 16px; }
.grid > .card, .grid > div > .card:first-child { margin-top: 0; }
.grid { align-items: start; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* бирка инвентарного номера */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: Mono, monospace; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; padding: 1px 8px 1px 6px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--sf); color: var(--ink); white-space: nowrap; text-decoration: none !important; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
a.tag:hover { background: var(--ink); color: #fff; }
a.tag:hover::before { border-color: #fff; }

.st { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--sf2); border: 1px solid var(--line); color: var(--ink); }
.st.blue { background: #EEF0F3; border-color: #CDD2D9; color: #2B3440; }
.st.brand { background: var(--brand-bg); border-color: #F6B9C0; color: #B0141F; }
.st.green { background: var(--ok-bg); border-color: #BFE3CE; color: #146B43; }
.st.red { background: var(--err-bg); border-color: #F3C4BF; color: #B3261E; }
.st.amber { background: var(--warn-bg); border-color: #EFD3A6; color: #7A4600; }
.st.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--sf); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.chip .n { font-size: 12px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .n { color: #C9CCD1; }
.chip.alert .n { color: var(--err); font-weight: 600; }
.chip.on.alert .n { color: #FFB4AC; }

/* таблица */
.tbl-w { background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--sf2); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--sf2); }
td.r, th.r { text-align: right; }
.t-cards { display: none; }

/* цифры */
/* Полоса показателей: одна карточка, ячейки через тонкие разделители */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { padding: 14px 18px 16px; text-decoration: none !important; color: var(--ink); display: flex; flex-direction: column; gap: 4px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); min-width: 0; }
a.kpi { transition: background .15s var(--e); }
a.kpi:hover { background: var(--sf2); }
.kpi .l { font-size: 13px; color: var(--mut); line-height: 1.3; }
.kpi .v { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: proportional-nums; font-feature-settings: 'pnum' 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12px; color: var(--mut); }
.kpi.alert .v, .kpi.alert .v .cur { color: var(--err); }
.kpi.alert .l::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--err); margin-left: 6px; vertical-align: 2px; }
.kpi.good .v { color: var(--ok); }
/* Главная цифра страницы */
.hero { background: var(--ink); color: #fff; border-radius: var(--r); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.hero .l { color: #B7BBC1; font-size: 13px; }
.hero .big { font-size: 46px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-feature-settings: 'pnum' 1; }
.hero .big .sum, .kpi .v .sum, .hero .row2 .sum { font-feature-settings: 'pnum' 1; font-variant-numeric: proportional-nums; }
.hero .big .cur { color: #9AA0A7; }
.hero { box-shadow: inset 4px 0 0 var(--brand); }
.hero .row2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #2E3238; padding-top: 14px; }
.hero .row2 b { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; }
.hero .row2 .cur { color: #9AA0A7; }
.hero .neg { color: #FF8A80; }
/* Где техника: одна полоса по статусам */
.fleet { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.fleet i { display: block; height: 100%; }
.fleet-l { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; }
.fleet-l a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.fleet-l a b { font-variant-numeric: tabular-nums; }
.fleet-l i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.todo { display: flex; flex-direction: column; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.todo a:first-of-type { border-top: 0; }
.todo a:hover span:not(.st) { color: var(--brand); }
.todo .st { min-width: 32px; text-align: center; font-size: 13px; }
.todo .go { margin-left: auto; color: var(--mut); }
.hbar { display: grid; grid-template-columns: 120px 1fr 120px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar .tr { height: 10px; background: var(--sf2); border-radius: 3px; overflow: hidden; position: relative; }
.hbar .tr i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; }
.hbar .r { text-align: right; }
.inforow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; background: var(--sf2); border-radius: var(--r2); padding: 10px 12px; }
.inforow div { font-size: 12px; color: var(--mut); }
.inforow b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.inforow .hi b { color: var(--brand); font-size: 18px; }
.btn.link { background: none; border: 0; color: var(--brand); padding: 4px 0; min-height: 0; font-weight: 500; }
.btn.link:hover { background: none; text-decoration: underline; }

/* формы */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
label.f .h { font-weight: 400; color: var(--mut); font-size: 12px; }
label.f .e { font-weight: 400; color: var(--err); font-size: 12px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: var(--r2); background: #fff; color: var(--ink); font-size: 16px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #E6E6E1; }
input.bad { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--act); flex-shrink: 0; }
.search { max-width: 360px; flex: 1 1 220px; }
.money-split { display: grid; grid-template-columns: 1fr 140px 40px; gap: 8px; align-items: center; }

/* окно */
.ov { position: fixed; inset: 0; background: rgba(21, 23, 26, .45); z-index: 50; display: flex; justify-content: flex-end; animation: fade .2s var(--e); }
.sheet { width: min(640px, 100%); height: 100%; background: var(--bg); overflow-y: auto; padding: 20px 24px 32px; animation: slide .25s var(--e); }
.sheet .top { position: sticky; top: -20px; background: var(--bg); padding: 12px 0; margin: -12px 0 12px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r2); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); font-weight: 500; }
.toast.err { background: var(--err); }
.toast button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 4px; padding: 2px 10px; cursor: pointer; }

.empty { padding: 32px 16px; text-align: center; color: var(--mut); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.timeline li .xs { display: block; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--mut); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.steps { display: grid; gap: 6px; }
.steps label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--sf); cursor: pointer; min-height: 44px; }
.steps label.done { border-color: #BFE3CE; background: var(--ok-bg); }
.steps label .no { font-family: Mono, monospace; font-size: 12px; color: var(--mut); width: 20px; }
.steps input { width: 20px; height: 20px; min-height: 20px; accent-color: var(--ok); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); }
.period { display: flex; align-items: center; gap: 4px; }
.period .lbl { min-width: 190px; text-align: center; font-weight: 600; }
.chart { width: 100%; height: 220px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.task { border: 1px solid var(--line); border-radius: var(--r); background: var(--sf); padding: 16px; }
.task + .task { margin-top: 12px; }
.task .addr { font-size: 17px; font-weight: 600; line-height: 1.35; }
.task .acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.login-w { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-l { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; margin: 0 auto; width: 100%; }
.login-r { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.login-r .tag { background: transparent; color: #fff; border-color: #fff; }
.login-r .tag::before { border-color: #fff; }
.login-r p { color: #C9CCD1; max-width: 460px; }
.demo-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.demo-b .btn { white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.25; }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 16px 96px; }
  h1 { font-size: 24px; }
  .top { min-height: 44px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 21px; }
  .hero .big { font-size: 36px; }
  .hero .row2 b { font-size: 15px; }
  .hbar { grid-template-columns: 90px 1fr 96px; }
  .chips { flex-wrap: nowrap; }
  .hide-m { display: none; }
  .top .btn { padding: 8px 12px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--sf); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; color: var(--mut); background: none; border: 0; min-height: 52px; text-decoration: none !important; font-weight: 500; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--ink); }
  .tbl-w.cards-m table { display: none; }
  .tbl-w.cards-m { background: none; border: 0; }
  .tbl-w.cards-m .t-cards { display: grid; gap: 8px; }
  .t-card { background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; color: var(--ink); text-decoration: none !important; display: block; }
  .sheet { padding: 16px 16px 32px; }
  .login-w { grid-template-columns: 1fr; }
  .login-r { display: none; }
  .login-l { padding: 24px 16px; }
  .kv { grid-template-columns: 112px 1fr; }
  .money-split { grid-template-columns: 1fr 110px 40px; }
  .period .lbl { min-width: 0; flex: 1; }
  .search { max-width: none; }
}
.more { position: fixed; inset: 0; z-index: 60; background: rgba(21,23,26,.45); display: flex; align-items: flex-end; }
.more .in { background: var(--sf); width: 100%; border-radius: 12px 12px 0 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; }
.more .nav a { min-height: 48px; }

/* 17.11.2026: выдача, счётчики, табель, смена */
.shiftbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.shiftbar.on { background: var(--ok-bg); border-color: #BFE3CE; }
.shiftbar .btn { margin-left: auto; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pick label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--sf); cursor: pointer; min-height: 44px; font-size: 13px; }
.pick label.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick label.dis { opacity: .55; cursor: not-allowed; background: var(--sf2); }
.pick input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--ink); }
.pick .x { display: block; font-size: 11px; color: var(--mut); }
.counter { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: var(--r2); overflow: hidden; background: #fff; }
.counter button { width: 40px; height: 40px; border: 0; background: var(--sf2); font-size: 18px; cursor: pointer; }
.counter button:hover { background: var(--line); }
.counter input { width: 52px; min-height: 40px; border: 0; text-align: center; font-weight: 600; padding: 0; }
.planrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.planrow:first-child { border-top: 0; }
.sheet-grid { overflow-x: auto; background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); }
.sheet-grid table { border-collapse: separate; border-spacing: 0; }
.sheet-grid th, .sheet-grid td { padding: 4px; text-align: center; font-size: 12px; min-width: 34px; border-bottom: 1px solid var(--line); }
.sheet-grid th:first-child, .sheet-grid td:first-child { position: sticky; left: 0; background: var(--sf); text-align: left; min-width: 170px; padding: 6px 10px; z-index: 1; }
.sheet-grid td.we { background: var(--sf2); }
.cell { display: block; min-height: 30px; border-radius: 4px; padding: 2px; line-height: 1.2; cursor: default; font-variant-numeric: tabular-nums; }
.cell.plan { background: #EEF0F3; }
.cell.ok { background: var(--ok-bg); color: #146B43; }
.cell.late { background: var(--warn-bg); color: #7A4600; }
.cell.miss { background: var(--err-bg); color: #B3261E; }
.cell.extra { background: #EDE7F6; }
.cell.tap { cursor: pointer; }
.cell .lk { font-size: 9px; opacity: .6; }
.kpibar { margin-top: 6px; }
.kpibar .bar { height: 8px; }
.warnbox { background: var(--err-bg); border: 1px solid #F3C4BF; color: #8C1D16; border-radius: var(--r2); padding: 10px 12px; font-size: 14px; }
.okbox { background: var(--ok-bg); border: 1px solid #BFE3CE; color: #146B43; border-radius: var(--r2); padding: 10px 12px; font-size: 14px; }
.planrow[data-disc], .planrow[data-ex] { flex-wrap: wrap; }
.planrow[data-disc] > *, .planrow[data-ex] > * { min-width: 0; }
@media (max-width: 640px) { .planrow[data-disc] [data-t], .planrow[data-ex] [data-w] { flex: 1 1 100% !important; } }
.isteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.istep { display: flex; gap: 12px; align-items: flex-start; }
.istep .no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--act); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.istep .ipic { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: #0A84FF; }
.shiftbar > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#installbar .shiftbar > span { flex: 1 1 160px; }
#installbar .shiftbar .btn { margin-left: 0; }
.hero-link svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.money-split .split-extra { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.money-split .split-extra:empty, .money-split .split-extra:has([data-hint]:empty):has([data-rc][hidden]) { display: none; }
.warn-t { color: var(--warn); }
.backbar { margin: -4px 0 8px; }
.backbar a { display: inline-flex; gap: 6px; align-items: center; color: var(--mut); font-size: 14px; min-height: 32px; }
.place { font-size: 13px; color: var(--mut); }
.vid { width: 100%; max-height: 360px; border-radius: 8px; background: #000; }
.backbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.checkrow input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.checkrow:last-child { border-bottom: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
#kits, #recv { flex-wrap: wrap; overflow: visible; }

/* ТЗ ч.2 */
.hint-big { display: inline-block; font-size: 16px; font-weight: 700; color: #fff; background: var(--err); padding: 4px 10px; border-radius: 6px; }
.updbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--act); color: #fff; padding: 10px 12px 10px 16px; border-radius: 8px; max-width: calc(100vw - 32px); font-size: 14px; }
.updbar .btn { background: #fff; color: var(--act); border-color: #fff; }
@media (min-width: 900px) { .updbar { bottom: 24px; } }
.banbox { border: 2px solid var(--err); background: var(--err-bg); color: #8C1D18; border-radius: 8px; padding: 12px 16px; }
.banbox b { font-size: 18px; display: block; margin-bottom: 4px; color: var(--err); }
.rankbox { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 12px; border: 1px solid var(--line, #E2E2DE); border-radius: 8px; background: var(--sf, #fff); }
.stars { color: #C98A00; letter-spacing: 1px; font-size: 16px; }
.stars .off { color: #D5D5D0; }
.starpick { display: flex; gap: 4px; }
.starpick button { width: 44px; height: 44px; border: 1px solid var(--line, #E2E2DE); border-radius: 8px; background: #fff; font-size: 22px; color: #D5D5D0; cursor: pointer; }
.starpick button.on { color: #C98A00; border-color: #C98A00; background: #FFF7E0; }
tr.overdue td { background: var(--err-bg); }
.card.overdue { border-color: var(--err); background: var(--err-bg); }
.itemlist { margin: 4px 0 0; padding-left: 20px; }
.itemlist li { margin: 2px 0; }
.wbadge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.wbadge.on { background: var(--ok-bg); color: var(--ok); }
.wbadge.off { background: #EFEFEC; color: #6B6F75; }
.t-card.overdue { border-color: var(--err); background: var(--err-bg); }
[hidden] { display: none !important; }
