/* СтройТехПарк — стили приложения. Один селектор — одна строка деклараций. */

@font-face { font-family: 'Golos'; src: url(fonts/golos-text-cyrillic.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos'; src: url(fonts/golos-text-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tektur'; src: url(fonts/tektur-cyrillic.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Tektur'; src: url(fonts/tektur-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root { --bg: oklch(95.2% 0.009 82); --bg-2: oklch(92.4% 0.011 82); --surface: oklch(98.6% 0.004 85); --ink: oklch(24.5% 0.008 75); --ink-2: oklch(43% 0.012 75); --ink-3: oklch(58% 0.012 78); --line: oklch(88.5% 0.01 82); --line-2: oklch(82% 0.012 82); --amber: oklch(79% 0.165 76); --amber-2: oklch(72% 0.16 66); --amber-ink: oklch(40% 0.085 65); --amber-soft: oklch(93.5% 0.055 88); --panel: oklch(25% 0.008 75); --panel-2: oklch(31% 0.009 75); --panel-ink: oklch(94% 0.012 85); --panel-ink-2: oklch(72% 0.015 80); --ok: oklch(58% 0.12 152); --ok-soft: oklch(93% 0.045 152); --bad: oklch(56% 0.17 32); --bad-soft: oklch(93.5% 0.04 32); --steel: oklch(56% 0.07 240); --steel-soft: oklch(93% 0.025 240); --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --font: 'Golos', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Tektur', 'Golos', system-ui, sans-serif; --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --tab-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --shadow-1: 0 1px 0 oklch(80% 0.01 80 / .5), 0 2px 6px -2px oklch(30% 0.02 70 / .12); --shadow-2: 0 18px 40px -18px oklch(25% 0.03 70 / .35), 0 2px 8px -4px oklch(25% 0.03 70 / .18); }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow: hidden; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--font); font-feature-settings: 'tnum' 1; height: 100%; overflow: hidden; overscroll-behavior-y: none; }
/* iPhone сбивает закреплённые элементы после клавиатуры, поэтому панель — часть экрана, а прокручивается только .view */
#app { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Каркас ---------- */
#app { min-height: 100dvh; }
.shell { position: relative; height: 100%; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.top { position: relative; z-index: 5; display: flex; align-items: center; gap: var(--space-sm); padding: calc(var(--safe-t) + 14px) var(--space-md) 10px; }
.top__title { flex: 1; min-width: 0; }
.top__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__name { font-size: 20px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view { min-width: 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 4px max(var(--space-md), calc((100% - 728px) / 2)) var(--space-xl); }
.view--wide { padding-inline: max(var(--space-md), calc((100% - 1148px) / 2)); }
.view:has(> .composer) { display: flex; flex-direction: column; padding-bottom: 0; }
.view:has(> .composer) > .chat { flex: 1 0 auto; }

.sync { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sync::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync[data-s='off']::before { background: var(--bad); }
.sync[data-s='queue']::before { background: var(--amber); animation: blink 1.1s var(--ease-io) infinite; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink-2); transition: transform .2s var(--ease); }
.iconbtn:active { transform: scale(.94); }

/* Нижнее меню (телефон) */
.tabs { position: relative; z-index: 20; display: flex; padding: 8px 8px calc(8px + var(--safe-b)); background: color-mix(in oklch, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabs__btn { position: relative; text-decoration: none; flex: 1; min-width: 0; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); transition: color .25s var(--ease), background .25s var(--ease); }
.tabs__btn .ico { width: 24px; height: 24px; transition: transform .35s var(--ease); }
.tabs__btn[aria-current='page'] { color: var(--ink); background: var(--amber-soft); }
.tabs__btn[aria-current='page'] .ico { transform: translateY(-1px); stroke: var(--amber-ink); }
.tabs__badge { position: absolute; margin: -22px 0 0 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: var(--surface); font-size: 11px; line-height: 18px; text-align: center; }

/* Боковое меню (компьютер) */
.side { display: none; }
@media (min-width: 1024px) {
	.shell--admin { grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
	.shell--admin .side { display: flex; flex-direction: column; gap: 4px; grid-row: 1 / 3; height: 100%; overflow-y: auto; padding: 22px 14px; background: var(--panel); color: var(--panel-ink); }
	.shell--admin .tabs { display: none; }
	.shell--admin .view { padding-bottom: var(--space-2xl); }
	.shell--admin .view:has(> .composer) { padding-bottom: 0; }
	.side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
	.side__brand img { width: 38px; height: 38px; border-radius: 10px; }
	.side__brand b { display: block; font: 700 17px/1.1 var(--display); }
	.side__brand small { color: var(--panel-ink-2); font-size: 12px; }
	.side__btn { text-decoration: none; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; color: var(--panel-ink-2); font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease); }
	.side__btn:hover { background: var(--panel-2); color: var(--panel-ink); }
	.side__btn[aria-current='page'] { background: var(--amber); color: var(--ink); }
	.side__foot { margin-top: auto; padding: 12px; color: var(--panel-ink-2); font-size: 12px; }
}

/* ---------- Кнопки и поля ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md); font-weight: 700; font-size: 16px; letter-spacing: .005em; transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); user-select: none; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--main { background: var(--amber); color: var(--ink); box-shadow: inset 0 -3px 0 var(--amber-2), 0 10px 24px -12px oklch(60% 0.16 66 / .8); }
.btn--dark { background: var(--panel); color: var(--panel-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--wide { width: 100%; }
.btn--xl { min-height: 64px; font-size: 18px; border-radius: var(--r-lg); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.link { color: var(--amber-ink); font-weight: 600; text-decoration: none; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 17px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none; }
.input:focus { outline: none; border-color: var(--amber-2); box-shadow: 0 0 0 4px var(--amber-soft); }
textarea.input { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.4; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23615a50' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input--big { min-height: 72px; font: 600 34px/1 var(--display); text-align: center; letter-spacing: .02em; }
.row { display: flex; gap: var(--space-sm); align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.stack { display: grid; gap: var(--space-md); }
.stack--sm { display: grid; gap: var(--space-xs); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: 15px; transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--surface); box-shadow: none; }
.chip--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); }
.seg button { min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.toggle { position: relative; width: 52px; height: 32px; flex: none; border-radius: 99px; background: var(--line-2); transition: background .25s var(--ease); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 4px oklch(20% 0.02 70 / .25); transition: transform .3s var(--ease); }
.toggle[aria-checked='true'] { background: var(--ok); }
.toggle[aria-checked='true']::after { transform: translateX(20px); }

/* ---------- Поверхности ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: var(--space-md); box-shadow: var(--shadow-1); }
.card--flat { box-shadow: inset 0 0 0 1px var(--line); }
.card--tap { transition: transform .2s var(--ease), box-shadow .2s var(--ease); cursor: pointer; text-align: left; width: 100%; }
.card--tap:active { transform: scale(.985); }
@media (hover: hover) { .card--tap:hover { box-shadow: var(--shadow-2); } }
.h1 { margin: 0; font: 700 28px/1.1 var(--display); letter-spacing: -.01em; }
.h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.h3 { margin: 0; font-size: 15px; font-weight: 700; }
.sect { margin-top: var(--space-xl); }
.sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--amber { background: var(--amber-soft); color: var(--amber-ink); }
.badge--steel { background: var(--steel-soft); color: var(--steel); }

/* Строки списков */
.list { display: grid; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.item { display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding: 12px var(--space-md); text-align: left; width: 100%; transition: background .2s var(--ease); }
.item + .item { border-top: 1px solid var(--line); }
button.item:active, a.item:active { background: var(--bg); }
.item__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--bg); color: var(--ink-2); }
.item__ico--amber { background: var(--amber-soft); color: var(--amber-ink); }
.item__ico--steel { background: var(--steel-soft); color: var(--steel); }
.item__ico--ok { background: var(--ok-soft); color: var(--ok); }
.item__ico--bad { background: var(--bad-soft); color: var(--bad); }
.item__main { flex: 1; min-width: 0; }
.item__t { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.item__s { font-size: 13.5px; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }
.item__v { text-align: right; flex: none; font-weight: 700; }
.item__v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* ---------- Вход ---------- */
.login { min-height: 100dvh; display: grid; grid-template-rows: minmax(260px, 46vh) auto; background: var(--bg); }
.login__art { position: relative; overflow: hidden; background: oklch(90% 0.02 80) center bottom / cover no-repeat; }
.login__art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.login__brand { position: absolute; z-index: 1; top: calc(var(--safe-t) + 22px); left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; animation: rise .8s var(--ease) both; }
.login__brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: var(--shadow-2); }
.login__brand b { display: block; font: 700 24px/1 var(--display); }
.login__brand small { font-size: 13px; color: var(--ink-2); }
.login__box { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: -40px auto 0; padding: 0 20px calc(var(--safe-b) + 28px); display: grid; gap: var(--space-md); animation: rise .8s .1s var(--ease) both; }
.login__demo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; transition: transform .2s var(--ease); }
.demo:active { transform: scale(.97); }
.demo b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.demo span { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.made { display: block; text-align: center; font-size: 12px; color: var(--ink-3); }
.made a { color: inherit; text-decoration: none; }
@media (min-width: 900px) {
	.login { grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
	.login__art::after { inset: 0 0 0 auto; width: 30%; height: auto; background: linear-gradient(to right, transparent, var(--bg)); }
	.login__box { margin: auto; padding: 40px; }
}

/* ---------- Водитель: приборная панель смены ---------- */
.hello { padding: 6px 2px 18px; }
.hello__day { font-size: 15px; color: var(--ink-2); }
.hello__clock { font: 600 64px/0.95 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.hello__clock span { animation: blink 2s steps(1) infinite; }

.mach { position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 18px 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; text-align: left; width: 100%; }
.mach__pic { height: 128px; margin: -6px -8px 4px; display: grid; place-items: center; }
.mach__pic img { height: 128px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 10px oklch(30% 0.03 70 / .18)); }
.mach__name { font-size: 20px; font-weight: 700; line-height: 1.15; }
.mach__sub { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--ink-3); }
.plate { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font: 600 13px/1 var(--display); letter-spacing: .04em; }
.mach .badge .ico { width: 16px; height: 16px; }

.panel { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--panel); color: var(--panel-ink); padding: 20px 18px 18px; box-shadow: var(--shadow-2); isolation: isolate; }
.panel::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 7px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--panel) 12px 24px); opacity: .9; }
.panel__head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--panel-ink-2); }
.panel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 oklch(70% 0.14 152 / .7); animation: pulse 2s var(--ease) infinite; }
.panel__timer { font: 600 58px/1 var(--display); letter-spacing: -.02em; margin: 10px 0 2px; color: var(--surface); }
.panel__timer small { font-size: 22px; color: var(--panel-ink-2); margin-left: 2px; }
.panel__meta { display: block; max-width: 52%; font-size: 14px; line-height: 1.35; color: var(--panel-ink-2); text-align: left; }
.panel__meta small { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 10px 5px 8px; border-radius: 99px; background: var(--panel-2); color: var(--amber); font-size: 12.5px; font-weight: 600; }
.panel__meta small .ico { width: 15px; height: 15px; }
.panel__pic { position: absolute; z-index: -1; right: -6px; top: 34px; width: 50%; max-width: 240px; height: 118px; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.panel__pic img { max-width: 100%; max-height: 100%; width: auto; filter: drop-shadow(0 16px 14px oklch(10% 0.02 70 / .45)); animation: idle 3.2s var(--ease-io) infinite; transform-origin: 60% 100%; }
.panel__stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; border-radius: 16px; overflow: hidden; background: oklch(40% 0.01 75); }
.panel__stat { padding: 12px 10px; background: var(--panel-2); }
.panel__stat b { display: block; font: 600 22px/1.1 var(--display); color: var(--surface); }
.panel__stat span { font-size: 12px; color: var(--panel-ink-2); }
.panel--repair::before { background: repeating-linear-gradient(-45deg, var(--steel) 0 12px, var(--panel) 12px 24px); }
.panel--off::before { background: repeating-linear-gradient(-45deg, var(--ink-3) 0 12px, var(--panel) 12px 24px); }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-md); }
.act { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 118px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.act:active { transform: scale(.965); }
.act__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); }
.act__ico .ico { width: 26px; height: 26px; }
.act b { font-size: 16.5px; line-height: 1.2; }
.act small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.act--steel .act__ico { background: var(--steel-soft); color: var(--steel); }
.act--ok .act__ico { background: var(--ok-soft); color: var(--ok); }
.act--ink .act__ico { background: var(--bg-2); color: var(--ink-2); }
.act__count { position: absolute; top: 14px; right: 14px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--ink); color: var(--surface); font: 600 14px/28px var(--display); text-align: center; }

/* Лента дня */
.tl { position: relative; display: grid; gap: 2px; }
.tl::before { content: ''; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl__it { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 8px 10px 10px; border-radius: 16px; text-align: left; width: 100%; animation: rise .5s var(--ease) both; transition: background .2s var(--ease); }
.tl__it:active { background: var(--bg-2); }
.tl__ico { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px var(--bg), var(--shadow-1); color: var(--ink-2); }
.tl__ico--amber { color: var(--amber-ink); background: var(--amber-soft); }
.tl__ico--steel { color: var(--steel); background: var(--steel-soft); }
.tl__ico--ok { color: var(--ok); background: var(--ok-soft); }
.tl__time { font: 600 13px/1 var(--display); color: var(--ink-3); }
.tl__t { font-weight: 600; line-height: 1.25; }
.tl__v { margin-left: auto; font: 600 18px/1 var(--display); white-space: nowrap; }
.tl__v small { font: 500 12px var(--font); color: var(--ink-3); }

.empty { display: grid; justify-items: center; gap: 10px; padding: 26px 16px; text-align: center; color: var(--ink-3); }
.empty img { width: 200px; opacity: .92; }
.empty b { color: var(--ink); font-size: 16px; }

/* ---------- Нижняя шторка ---------- */
.sheet-bg { position: fixed; z-index: 40; inset: 0; background: oklch(18% 0.01 70 / .45); opacity: 0; transition: opacity .35s var(--ease); }
.sheet-bg.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--bg); box-shadow: 0 -20px 60px -20px oklch(20% 0.03 70 / .5); transform: translateY(105%); transition: transform .45s var(--ease); touch-action: pan-y; }
.sheet.is-on { transform: none; }
.sheet__grip { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grip::before { content: ''; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px 12px; }
.sheet__head .h2 { flex: 1; font-size: 21px; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 18px; display: grid; gap: var(--space-md); align-content: start; }
.sheet__foot { flex: none; display: flex; gap: 10px; padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.sheet__foot .btn { flex: 1; }
@media (min-width: 720px) {
	.sheet { left: 50%; right: auto; bottom: 50%; width: 560px; max-height: 86dvh; border-radius: 26px; transform: translate(-50%, 54%) scale(.96); opacity: 0; transition: transform .4s var(--ease), opacity .3s var(--ease); }
	.sheet.is-on { transform: translate(-50%, 50%); opacity: 1; }
	.sheet__grip { visibility: hidden; height: 16px; }
}

/* Выбор из списка в шторке */
.pick { display: grid; gap: 8px; }
.pick__it { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; width: 100%; transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.pick__it[aria-pressed='true'] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pick__it img { width: 64px; height: 42px; object-fit: contain; flex: none; }
.pick__it b { display: block; font-weight: 600; line-height: 1.2; }
.pick__it small { color: var(--ink-3); font-size: 13px; }

/* Ввод времени и количества */
.timebox { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.timebox__sep { padding-bottom: 22px; color: var(--ink-3); font-weight: 700; }
.timebox input { text-align: center; font: 600 26px/1 var(--display); min-height: 64px; }
.total { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--amber-soft); color: var(--amber-ink); font-weight: 600; }
.total b { font: 600 28px/1 var(--display); color: var(--ink); }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; }
.stepper button { height: 64px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 30px/1 var(--display); transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.93); background: var(--amber-soft); }
.photo { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); color: var(--ink-2); font-weight: 600; cursor: pointer; }
.photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }

/* Бак — фирменный индикатор топлива */
.tank { position: relative; width: 64px; height: 92px; flex: none; }
.tank svg { width: 100%; height: 100%; overflow: visible; }
.tank__fuel { transition: transform 1.4s var(--ease); }
.tank__wave { animation: wave 3.4s linear infinite; }
.tank--sm { width: 40px; height: 58px; }

/* ---------- Руководитель ---------- */
.period { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--space-md) * -1); padding: 2px var(--space-md) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--space-md); }
.period::-webkit-scrollbar { display: none; }
.period .chip { flex: none; scroll-snap-align: start; }
.period__range { display: none; gap: 8px; margin-top: 8px; }
.period__range.is-on { display: grid; grid-template-columns: 1fr 1fr auto; }

.live { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--space-md) * -1); padding: 4px var(--space-md) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-md); cursor: grab; }
.live::-webkit-scrollbar { display: none; }
.live.is-drag { cursor: grabbing; scroll-snap-type: none; }
.live__it { text-decoration: none; flex: 1 0 236px; max-width: 340px; scroll-snap-align: start; display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--panel); color: var(--panel-ink); text-align: left; user-select: none; }
.live__top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--panel-ink-2); }
.live__it b { font-size: 16px; line-height: 1.2; }
.live__it .num { font-size: 26px; color: var(--surface); }
.live__obj { font-size: 13px; color: var(--panel-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.money { display: grid; gap: var(--space-md); padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.money__main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; }
.money__big { font: 600 44px/1 var(--display); letter-spacing: -.02em; }
.money__big.is-neg { color: var(--bad); }
.money__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 18px; }
.money__cell b { display: block; font: 600 21px/1.15 var(--display); }
.money__cell span { font-size: 13px; color: var(--ink-3); }
.stackbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--bg-2); gap: 2px; }
.stackbar i { display: block; height: 100%; transform-origin: left; animation: grow-x .9s var(--ease) both; transition: opacity .2s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--ink-2); }
.legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; border-radius: 8px; transition: opacity .2s var(--ease); }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend b { color: var(--ink); font-weight: 700; }

.chart { position: relative; }
.chart svg { width: 100%; height: 220px; overflow: visible; touch-action: pan-y; }
.chart__bar { transition: opacity .2s var(--ease); }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { font: 500 11px var(--font); fill: var(--ink-3); }
.chart__tip { position: absolute; z-index: 3; top: 0; min-width: 168px; padding: 10px 12px; border-radius: 12px; background: var(--panel); color: var(--panel-ink); font-size: 13px; pointer-events: none; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.chart__tip.is-on { opacity: 1; transform: none; }
.chart__tip b { display: block; color: var(--surface); font-size: 13.5px; margin-bottom: 4px; }
.chart__tip div { display: flex; justify-content: space-between; gap: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-sm); }
.mcard { color: inherit; text-decoration: none; display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; width: 100%; transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.mcard:active { transform: scale(.985); }
@media (hover: hover) { .mcard:hover { box-shadow: var(--shadow-2); } .mcard:hover .mcard__pic img { transform: translateX(6px); } }
.mcard__top { display: flex; gap: 12px; align-items: center; }
.mcard__pic { width: 112px; height: 70px; flex: none; display: grid; place-items: center; }
.mcard__pic img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.mcard__name { font-weight: 700; line-height: 1.2; }
.mcard__kind { font-size: 13px; color: var(--ink-3); }
.mcard__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard__nums b { display: block; font: 600 17px/1.2 var(--display); }
.mcard__nums span { font-size: 12px; color: var(--ink-3); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.meta > span, .live__obj, .live__top { display: inline-flex; align-items: center; gap: 5px; }
.meta .ico, .live__obj .ico, .live__top .ico { width: 16px; height: 16px; }
.live__obj { display: flex; }
.meter { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--amber); transform-origin: left; animation: grow-x 1s var(--ease) both; }
.meter--ok i { background: var(--ok); }
.meter--bad i { background: var(--bad); }

.alert { text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--bad-soft); color: oklch(40% 0.12 32); text-align: left; width: 100%; }
.alert--amber { background: var(--amber-soft); color: var(--amber-ink); }
.alert b { color: var(--ink); }
.alert .ico { flex: none; }

.hero { display: grid; gap: 6px; padding: 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.hero__pic { height: 150px; min-height: 0; display: flex; justify-content: center; overflow: hidden; }
.hero__pic img { height: 100%; width: auto; max-width: 100%; object-fit: contain; animation: drive-in 1s var(--ease) both; }
@media (min-width: 900px) { .hero__pic { height: 190px; } }

.shiftc { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.shiftc__head { display: flex; align-items: center; gap: 10px; }
.shiftc__who { flex: 1; min-width: 0; }
.shiftc__who b { display: block; line-height: 1.2; }
.shiftc__who small { color: var(--ink-3); font-size: 13px; }
.entry { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; margin: 0 -10px; border-radius: 12px; text-align: left; width: calc(100% + 20px); transition: background .2s var(--ease); }
.entry:active, .entry:hover { background: var(--bg); }
.entry .ico { width: 20px; height: 20px; color: var(--ink-3); }
.entry__t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.3; }
.entry__t small { display: block; color: var(--ink-3); font-size: 12.5px; }
.entry__v { text-align: right; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.entry__v small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
/* Расход между заправками до полного: строка на каждый промежуток */
.runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; margin-top: 14px; }
.runs__users { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.runs__more { margin-top: 8px; }
.runs__more summary { cursor: pointer; font-size: 14px; }
.run { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.run__d { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.run__d small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.run__v { text-align: right; font-weight: 700; font-size: 15px; white-space: nowrap; }
.run__v small { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.run.is-high { background: var(--bad-soft); }
.run.is-high .run__v small { color: var(--bad); }
.run.is-empty .run__d small { color: var(--amber-ink); }
.dayhead { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 8px; background: var(--bg); font-weight: 700; }
.jgrid { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); align-items: start; }
.dayhead small { font-weight: 600; color: var(--ink-3); }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.filters .input { min-height: 46px; font-size: 15px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); }
.table td.r, .table th.r { text-align: right; }

.qtybar { display: flex; align-items: center; gap: 10px; }
.qtybar .meter { flex: 1; }
.fab { position: absolute; z-index: 15; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--amber); color: var(--ink); box-shadow: inset 0 -3px 0 var(--amber-2), var(--shadow-2); transition: transform .2s var(--ease); animation: pop .5s .2s var(--ease) both; }
.fab:active { transform: scale(.92); }
.fab .ico { width: 28px; height: 28px; stroke-width: 2.4; }
@media (min-width: 1024px) { .shell--admin .fab { bottom: 28px; right: 28px; } }

/* ---------- Сообщения и загрузка ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + 14px); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--panel); color: var(--panel-ink); font-weight: 600; box-shadow: var(--shadow-2); transform: translate(-50%, -140%); transition: transform .45s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.toast--bad { background: var(--bad); color: var(--surface); }
.toast .ico { color: var(--amber); }
.skel { border-radius: var(--r-lg); background: linear-gradient(100deg, var(--bg-2) 30%, var(--surface) 50%, var(--bg-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
/* Оплата работы: три состояния, у каждого свой цвет */
.paysel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.paysel button { min-height: 52px; padding: 6px 8px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; font-size: 13.5px; line-height: 1.2; color: var(--ink-2); transition: background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.paysel button[aria-pressed='true'][data-tone='site'] { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); color: var(--ok); }
.paysel button[aria-pressed='true'][data-tone='later'] { background: var(--amber-soft); box-shadow: inset 0 0 0 2px var(--amber-2); color: var(--amber-ink); }
.paysel button[aria-pressed='true'][data-tone='debt'] { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); color: var(--bad); }

/* Чат водителя с руководителем */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.chat .empty { margin-top: 24px; }
.chat__day { align-self: center; margin: 10px 0 2px; padding: 4px 12px; border-radius: 99px; background: var(--bg-2); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.msg { align-self: flex-start; max-width: min(82%, 520px); padding: 10px 14px 8px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: var(--shadow-1); animation: rise .35s var(--ease) both; }
.msg--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--amber-soft); box-shadow: none; }
.msg__who { display: block; font-size: 12.5px; color: var(--amber-ink); margin-bottom: 2px; }
.msg__t { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.4; }
.msg__at { display: block; margin-top: 3px; text-align: right; font-size: 11.5px; color: var(--ink-3); }
.composer { position: sticky; z-index: 18; bottom: 0; flex: none; margin-inline: calc(-1 * var(--space-md)); display: flex; align-items: flex-end; gap: 8px; padding: 10px var(--space-md); background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.composer__btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); cursor: pointer; }
.composer__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.composer__att[hidden] { display: none; }
.composer__att { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink-3); }
.composer__att img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.composer__att span { flex: 1; min-width: 0; }
.composer__att button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.recbar { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 10px max(var(--space-md), calc((100% - 760px) / 2 + var(--space-md))); background: var(--bg); }
.recbar__x { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: var(--bad); background: var(--bad-soft); }
.recbar__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: blink 1s var(--ease-io) infinite; }
.recbar__t { font-size: 22px; }
.recbar__hint { flex: 1; color: var(--ink-3); font-size: 14px; }
.msg__photo { display: block; margin: 2px 0 6px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.msg__photo img { width: min(240px, 62vw); max-height: 320px; object-fit: cover; }
.msg__tr { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: color-mix(in oklch, var(--ink) 6%, transparent); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.msg__tr.is-wait { color: var(--ink-3); font-style: italic; }
.voice { display: flex; align-items: center; gap: 10px; min-width: min(220px, 60vw); padding: 2px 0; cursor: pointer; }
.voice__btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); }
.voice__btn .ico { width: 18px; height: 18px; fill: currentColor; }
.voice__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.voice__bar i { display: block; width: 0; height: 100%; background: var(--amber-2); }
.voice__t { font: 600 13px var(--display); color: var(--ink-3); }
.voice.is-load .voice__btn { opacity: .5; }
.viewer { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 16px; background: oklch(15% 0.01 75 / .92); animation: rise .25s var(--ease) both; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.viewer__x { position: absolute; top: calc(var(--safe-t) + 14px); right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: oklch(30% 0.01 75); color: var(--panel-ink); }
.composer .input { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding-top: 12px; line-height: 1.35; scrollbar-width: none; }
.composer .input::-webkit-scrollbar { display: none; }
.composer__send { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--amber); color: var(--ink); box-shadow: inset 0 -3px 0 var(--amber-2); transition: transform .15s var(--ease); }
.composer__send:active { transform: scale(.92); }
@media (min-width: 1024px) {
}
.composer { padding-inline: max(var(--space-md), calc((100% - 760px) / 2 + var(--space-md))); }
.iconbtn--chat { position: relative; }
.iconbtn .tabs__badge { position: absolute; margin: 0; top: -5px; right: -5px; }
.side__btn .tabs__badge { position: static; margin: 0 0 0 auto; }
@media (min-width: 1024px) { .shell--admin .iconbtn--chat { display: none; } }
.threads { grid-template-columns: minmax(0, 1fr); }
.threads .item__s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads .item__v { display: grid; justify-items: end; gap: 2px; }

.install { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel); color: var(--panel-ink); }
.install img { width: 44px; height: 44px; border-radius: 12px; }
.install--push { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 10px; }
.install--push > .btn { grid-column: 2; grid-row: 2; justify-self: start; }
.install--push > .install__x { grid-column: 3; grid-row: 1; }
.install--push > .ico { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--panel-2); color: var(--amber); }
.install__x { flex: none; width: 34px; height: 34px; margin: -6px -8px 0 0; display: grid; place-items: center; border-radius: 10px; color: var(--panel-ink-2); }
.install__x .ico { width: 18px; height: 18px; }
.pushc:not(:empty) { margin-bottom: var(--space-md); }
.install div { flex: 1; font-size: 14px; color: var(--panel-ink-2); }
.install b { display: block; color: var(--surface); font-size: 15px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 56px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.4; font-size: 15px; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 10px; background: var(--amber); color: var(--ink); font: 600 17px/32px var(--display); text-align: center; }

/* Появление экрана: блоки выезжают по очереди */
.view > * { animation: rise .55s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .05s; }
.view > *:nth-child(3) { animation-delay: .1s; }
.view > *:nth-child(4) { animation-delay: .15s; }
.view > *:nth-child(5) { animation-delay: .2s; }
.view > *:nth-child(n+6) { animation-delay: .25s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px oklch(70% 0.14 152 / 0); } 100% { box-shadow: 0 0 0 0 oklch(70% 0.14 152 / 0); } }
@keyframes idle { 50% { transform: translateY(-2px) rotate(-.4deg); } }
@keyframes wave { to { transform: translateX(-40px); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes drive-in { from { opacity: 0; transform: translateX(-40px); } }

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

/* Обновить в шапке */
.iconbtn[data-refresh] { flex: none; }
.is-spin .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Выбранный объект сворачивает список */
#objs.is-fold .pick__it:not([aria-pressed='true']) { display: none; }
#objs.is-fold .pick__it[aria-pressed='true']::after { content: 'сменить'; flex: none; font-size: 13px; font-weight: 600; color: var(--amber-ink); }

/* Строки погрузки */
.lrows { display: grid; gap: 10px; }
.lrows:empty { display: none; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px 10px; align-items: end; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.lrow > .input { grid-column: 1 / 3; font-weight: 600; }
.lrow > .iconbtn { grid-column: 3; align-self: center; box-shadow: none; background: transparent; }
.lrow > .field:last-child { grid-column: 2 / 4; }

/* Строка с подсказками: вписать своё или выбрать */
.combo { display: grid; gap: 6px; }
.combo__list { display: grid; max-height: 220px; overflow-y: auto; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.combo__it { padding: 12px 14px; text-align: left; font: inherit; color: var(--ink); border-bottom: 1px solid var(--line); }
.combo__it:last-of-type { border-bottom: 0; }
.combo__new { padding: 10px 14px; font-size: 13.5px; color: var(--amber-ink); }

/* Сканер штрих-кодов */
.scan { position: fixed; z-index: 55; inset: 0; display: grid; background: oklch(15% 0.01 75); color: var(--panel-ink); }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__frame { position: absolute; left: 10%; right: 10%; top: 26%; height: 24%; border-radius: 18px; box-shadow: 0 0 0 2px var(--amber), 0 0 0 100vmax oklch(15% 0.01 75 / .55); }
.scan__x { position: absolute; z-index: 1; top: calc(var(--safe-t) + 14px); right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: oklch(30% 0.01 75); color: var(--panel-ink); }
.scan__foot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 18px var(--space-md) calc(var(--safe-b) + 18px); background: oklch(18% 0.01 75 / .9); text-align: center; }
.scan__foot span { font-size: 14px; opacity: .8; }
.scan__hand { display: flex; gap: 8px; margin-top: 8px; }
.scan__hand .input { flex: 1; min-width: 0; color: var(--ink); }
.scan__hand .btn { flex: none; }

/* Плавающий «+» не должен закрывать цифры последней строки */
.view:has(> .fab) { padding-bottom: 92px; }
