/* Фирмен автопарк – графитено меню, светъл фон, меден акцент. */
@font-face { font-family: "Golos Text"; src: url("/fonts/golos-cyr.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 Text"; src: url("/fonts/golos-lat.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 {
  --graphite: #2b2e33; --graphite-2: #3a3e45; --graphite-3: #4a4f57; --on-graphite: #e6e7e9; --on-graphite-dim: #a9adb4;
  --bg: #f1f2f3; --surface: #fff; --ink: #1d2024; --muted: #636973; --line: #dcdee2; --line-soft: #e9ebee;
  --copper: #a8581f; --copper-dark: #8a4616; --copper-soft: #f5e8dd; --copper-line: #ddb596;
  --red: #b3261e; --red-bg: #fbe9e7; --amber: #8f5300; --amber-bg: #fbeed3; --green: #23683b; --green-bg: #e2f1e6; --blue: #2c5a85; --blue-bg: #e3ecf6; --grey-bg: #eceef0;
  --r: 10px; --r-sm: 7px; --side: 244px; --shadow: 0 1px 2px rgba(29, 32, 36, .06), 0 6px 18px rgba(29, 32, 36, .07);
  font-family: "Golos Text", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
body.has-sheet { overflow: hidden; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .center { text-align: center; margin-top: 18px; } .r { text-align: right; }
small { font-size: .86em; color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }
.link { color: var(--copper); text-decoration: underline; text-underline-offset: 2px; font-size: .9em; margin-left: 6px; }

/* ----- рамка ----- */
.shell { min-height: 100dvh; }
.side { display: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.brand img { max-height: 36px; max-width: 92px; border-radius: 4px; background: #fff; padding: 2px; }
.brand b { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: var(--on-graphite-dim); font-size: 11.500px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { min-width: 0; }
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--copper); color: #fff; display: grid; place-items: center; flex: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--graphite); color: var(--on-graphite); padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
.top-right { display: flex; align-items: center; gap: 4px; flex: none; }
.bell { position: relative; color: var(--on-graphite); }
.bell em, .side nav em { font-style: normal; background: var(--copper); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; }
.bell em { position: absolute; top: 2px; right: 0; }
.main { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); max-width: 1320px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 21px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head h1 .muted { font-weight: 400; font-size: .8em; }
.back { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); transform: rotate(180deg); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.add-desktop { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11.500px; color: var(--muted); border-radius: 8px; }
.tabbar a.on { color: var(--copper); font-weight: 600; }
.fab { display: grid; justify-items: center; gap: 3px; font-size: 12px; font-weight: 650; color: var(--copper-dark); margin-top: -26px; }
.fab .ic { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: var(--copper); color: #fff; box-shadow: 0 6px 16px rgba(138, 70, 22, .38), 0 0 0 5px var(--surface); stroke-width: 2.200; }
.fab:active .ic { background: var(--copper-dark); }

/* ----- бутони, значки ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 550; font-size: 14px; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #c3c7cd; }
.btn.primary { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.primary:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 8px; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.block { width: 100%; min-height: 48px; font-size: 15.500px; }
.btn .ic { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--grey-bg); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12.500px; font-weight: 550; white-space: nowrap; line-height: 1.5; }
.badge .ic { width: 13px; height: 13px; }
.b-red { background: var(--red-bg); color: var(--red); } .b-amber { background: var(--amber-bg); color: var(--amber); } .b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--blue); } .b-grey { background: var(--grey-bg); color: var(--muted); } .b-plain { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.b-sync { background: #fff; color: var(--amber); border: 1px dashed var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.500px; font-weight: 550; white-space: nowrap; }
.pill .ic { width: 15px; height: 15px; }
.pill.quiet { color: var(--on-graphite-dim); } .pill.grey { background: var(--graphite-3); color: var(--on-graphite); }
.pill.amber { background: #f3d08b; color: #4d2c00; } .pill.red { background: #f3b4ae; color: #5c0f0a; }
.top .pill.quiet span, .top .pill.quiet { font-size: 0; gap: 0; padding: 4px; } .top .pill.quiet .ic { width: 16px; height: 16px; }
.plate { display: inline-flex; align-items: stretch; border: 1.500px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); font-weight: 650; font-size: 12.500px; letter-spacing: .05em; line-height: 1; white-space: nowrap; overflow: hidden; vertical-align: middle; padding-right: 6px; gap: 5px; }
.plate i { font-style: normal; background: #1f4c9c; color: #fff; font-size: 7.500px; letter-spacing: 0; display: flex; align-items: flex-end; padding: 2px 2px 2px; font-weight: 600; }
.plate { align-items: center; } .plate i { align-self: stretch; }
.plate::after { content: ""; }
.plate { padding-top: 0; padding-bottom: 0; min-height: 20px; }

/* ----- списъци с редове ----- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line-soft); }
.row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 12px 12px 14px; min-height: 56px; position: relative; }
button.row:hover, a.row:hover { background: #fafafb; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-main b { font-weight: 600; font-size: 14.500px; overflow-wrap: anywhere; }
.row-main small { overflow-wrap: anywhere; }
.row .when { font-weight: 600; }
.row[class*="lvl-"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.row.lvl-overdue::before { background: var(--red); } .row.lvl-overdue .when { color: var(--red); }
.row.lvl-soon::before { background: #d59a2b; } .row.lvl-soon .when { color: var(--amber); }
.row.lvl-service::before { background: var(--blue); }
.cta { color: var(--copper); font-weight: 600; font-size: 13.500px; white-space: nowrap; }
.chev { color: #b0b4ba; width: 16px; height: 16px; }
.rows .sub { padding: 0 14px 10px; margin-top: -6px; font-size: 12.500px; color: var(--muted); }
.rows li.muted { padding: 12px 14px; }
.rows li.gap { padding: 6px 14px 6px 28px; font-size: 12.500px; font-weight: 600; color: var(--copper-dark); background: var(--copper-soft); }
.unread .row-main b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); margin-right: 7px; }
.notes time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.menu .row > .ic { color: var(--muted); }

/* ----- Днес ----- */
.summary { font-size: 15.500px; margin-bottom: 14px; } .summary b { font-size: 1.15em; }
.group { margin-bottom: 18px; }
.group h2, .fleet-side h2, .sec { font-size: 13.500px; font-weight: 600; color: var(--muted); margin: 0 2px 7px; display: flex; align-items: center; gap: 7px; }
.sec { margin-top: 22px; }
.group .count { background: var(--grey-bg); border-radius: 99px; padding: 0 8px; font-size: 12px; color: var(--ink); }
.g-red h2 { color: var(--red); } .g-red .count { background: var(--red-bg); color: var(--red); }
.fleet-side { margin-top: 8px; }
.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 14px; border: 1.500px dashed var(--copper-line); background: var(--copper-soft); border-radius: var(--r); font-size: 13.500px; }
.demo-bar b { color: var(--copper-dark); flex: 1; } .demo-bar span { display: none; }

/* ----- таблици ----- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 550; font-size: 12.500px; color: var(--muted); padding: 9px 12px; background: #f7f8f9; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tr[data-act] { cursor: pointer; } .tbl tr[data-act]:hover { background: #fafafb; }
.tbl.compact { font-size: 13.500px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; }
@media (max-width: 899px) {
  .tbl-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .tbl.tcards, .tbl.tcards tbody { display: block; } .tbl.tcards thead { display: none; }
  .tbl.tcards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
  .tbl.tcards td { display: block; padding: 2px 0; border: 0; text-align: left; font-size: 13.500px; }
  .tbl.tcards td::before { content: attr(data-label); display: block; font-size: 11.500px; color: var(--muted); }
  .tbl.tcards td.lead-cell { grid-column: 1 / -1; font-size: 14.500px; padding-bottom: 4px; } .tbl.tcards td.lead-cell::before { display: none; }
  .tbl.tcards td:has(> .muted:only-child) { display: none; }
}

/* ----- автомобил ----- */
.veh-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.veh-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.veh-name .plate { font-size: 15px; min-height: 26px; } .veh-name .plate i { font-size: 8.500px; padding: 3px; }
.veh-km { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 5px; justify-content: start; align-content: start; }
.veh-km small { grid-column: 1 / -1; } .veh-km b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; } .veh-km .btn { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
.veh-head { align-items: flex-end; } .veh-id { flex: 1 1 260px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.facts.inline { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.facts dt { font-size: 12px; color: var(--muted); } .facts dd { font-weight: 550; overflow-wrap: anywhere; } .facts dd small { font-weight: 400; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin: 14px 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 9px 12px; font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap; border-bottom: 2.500px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--copper); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar h3 { font-size: 14px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.500px; font-weight: 550; }
.chip span { color: var(--muted); font-weight: 400; }
.chip.on { background: var(--graphite); border-color: var(--graphite); color: #fff; } .chip.on span { color: #c9ccd1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; flex: 1; min-width: 220px; max-width: 420px; color: var(--muted); }
.search input[type="search"] { border: 0; outline: 0; background: none; min-height: 40px; padding: 0; width: 100%; color: var(--ink); font-size: 16px; }
.search:focus-within { border-color: var(--copper); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 8px; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2.500px solid var(--bg); }
.tl-item.st-planned::before { background: var(--surface); box-shadow: inset 0 0 0 2px #9aa0a8; } .tl-item.st-in_progress::before { background: var(--blue); }
.tl-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.tl-card:hover { border-color: #c3c7cd; }
.tl-date { display: flex; gap: 8px; align-items: baseline; grid-column: 1; } .tl-date b { font-weight: 600; font-size: 13.500px; }
.tl-main { grid-column: 1 / -1; display: grid; gap: 3px; } .tl-main > b { font-weight: 600; } .tl-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.tl-sum { grid-column: 2; grid-row: 1; font-weight: 650; white-space: nowrap; }
.part-hist h3 { font-size: 15px; margin-bottom: 8px; } .part-hist .files { padding: 0 14px 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 1px; }
.tile b { font-size: 18px; font-weight: 650; } .tile span { font-size: 12.500px; color: var(--muted); } .tile.strong { background: var(--graphite); color: #fff; border-color: var(--graphite); } .tile.strong small { color: #c9ccd1; }
.history { margin-top: 16px; } .history summary { cursor: pointer; font-weight: 550; color: var(--muted); padding: 8px 2px; }
.empty { text-align: center; padding: 34px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.range { display: flex; align-items: center; gap: 6px; } .range input { height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; background: var(--surface); }

/* ----- карти в настройките ----- */
.cards { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; position: relative; align-content: start; }
.card h2 { font-size: 16px; font-weight: 650; } .card h3 { font-size: 13.500px; color: var(--muted); font-weight: 600; }
.card-act { position: absolute; top: 12px; right: 12px; } .card > .btn { justify-self: start; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12.500px; background: var(--grey-bg); padding: 3px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.hint { background: var(--amber-bg); color: #4d2c00; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.500px; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .logo-row img { max-height: 54px; max-width: 180px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }

/* ----- листове ----- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(24, 26, 30, .52); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-height: 94dvh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: up .16s ease-out; }
@keyframes up { from { transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 6px 18px; }
.sheet-head h2 { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { padding: 6px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-body h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 16px 0 6px; }
.sheet-body p { overflow-wrap: anywhere; }
.sheet-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.sheet-foot .block { flex: 1; }
.sheet-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead { font-size: 17px; font-weight: 600; margin: 6px 0 10px; }
.action-box { background: var(--copper-soft); border: 1px solid var(--copper-line); border-radius: var(--r); padding: 12px; margin: 10px 0 4px; display: grid; gap: 10px; }
.sum-row { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; font-size: 14px; } .sum-row b { font-size: 16px; }
.viewer { max-width: 100%; display: block; margin: 0 auto; border-radius: 8px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { display: grid; justify-items: start; gap: 2px; padding: 16px 14px; border: 1.500px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 112px; align-content: start; }
.quick .ic { width: 30px; height: 30px; color: var(--copper); margin-bottom: 8px; } .quick b { font-size: 16px; font-weight: 650; } .quick small { font-size: 12.500px; line-height: 1.3; }
.quick:hover, .quick:active { border-color: var(--copper); background: var(--copper-soft); }
.quick-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .quick-more .btn { flex: 1; }

/* ----- формуляри ----- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.field { grid-column: 1 / -1; display: grid; gap: 5px; align-content: start; min-width: 0; } .field.half { grid-column: span 1; }
.field > label { font-size: 13px; font-weight: 550; color: #3d4249; }
.check.half { grid-column: span 1; }
input:not([type]), input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="search"], input[inputmode], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid #c9ccd2; border-radius: var(--r-sm); padding: 8px 10px; background: #fff; font-size: 16px; min-width: 0; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--copper); outline-offset: -1px; border-color: var(--copper); }
.unit-in { position: relative; } .unit-in span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13.500px; pointer-events: none; } .unit-in input { padding-right: 38px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid #c9ccd2; border-radius: var(--r-sm); overflow: hidden; }
.seg label { position: relative; } .seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 42px; padding: 4px 6px; font-size: 14px; font-weight: 550; text-align: center; cursor: pointer; border-left: 1px solid #c9ccd2; }
.seg label:first-child span { border-left: 0; } .seg input:checked + span { background: var(--graphite); color: #fff; } .seg input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: -3px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 40px; cursor: pointer; grid-column: 1 / -1; font-size: 14.500px; } .check input { width: 20px; height: 20px; accent-color: var(--copper); flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chips label { position: relative; } .chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 7px 12px; border: 1px solid #c9ccd2; border-radius: 99px; font-size: 13.500px; font-weight: 550; cursor: pointer; }
.chips input:checked + span { background: var(--copper-soft); border-color: var(--copper); color: var(--copper-dark); } .chips input:focus-visible + span { outline: 2px solid var(--copper); }
.km-chips { display: grid; gap: 5px; margin-top: 8px; }
.total { font-size: 15px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.parts, .insts { display: grid; gap: 8px; margin-bottom: 8px; }
.part-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: #f6f7f8; border-radius: var(--r-sm); position: relative; padding-right: 44px; }
.part-row input:first-child { grid-column: 1 / -1; } .part-row .icon-btn { position: absolute; right: 2px; top: 6px; }
.inst-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; padding: 8px 44px 8px 8px; background: #f6f7f8; border-radius: var(--r-sm); position: relative; }
.inst-row .check { grid-column: 1 / -1; min-height: 30px; } .inst-row .icon-btn { position: absolute; right: 2px; top: 6px; }
.picker-btns { display: grid; gap: 8px; } .picker-btns .btn { min-height: 48px; }
.picked { display: grid; gap: 4px; margin-top: 8px; } .picked li { display: flex; align-items: center; gap: 8px; background: #f6f7f8; border-radius: var(--r-sm); padding: 2px 2px 2px 10px; font-size: 13.500px; } .picked span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-inline { margin-top: 8px; }
.files { display: grid; gap: 6px; }
.file { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 6px 4px 4px; background: #fff; }
.file-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; font-size: 13.500px; font-weight: 550; } .file-open span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file img { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; flex: none; background: var(--grey-bg); }
.pdf { width: 44px; height: 44px; border-radius: 5px; background: var(--red-bg); color: var(--red); display: grid; place-items: center; font-size: 11.500px; font-weight: 700; flex: none; }

/* ----- съобщения, вход ----- */
#toast { position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 6px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast { background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: 520px; border-left: 4px solid #8d939b; }
.toast.ok { border-left-color: #5fbf7f; } .toast.warn { border-left-color: #e0a63a; } .toast.err { border-left-color: #ef7a70; }
.splash, .auth { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 12px; background: var(--graphite); color: var(--on-graphite); padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px; display: grid; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 12px; } .auth-brand b { display: block; font-size: 17px; } .auth-brand img { max-height: 44px; max-width: 120px; }
.auth-err { color: var(--red); font-size: 14px; min-height: 1.4em; }

/* ----- компютър ----- */
@media (min-width: 900px) {
  body { font-size: 14.500px; }
  .shell { display: grid; grid-template-columns: var(--side) 1fr; }
  .top, .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 18px; background: var(--graphite); color: var(--on-graphite); padding: 18px 12px 14px; position: sticky; top: 0; height: 100dvh; }
  .side .brand { padding: 0 6px 12px; border-bottom: 1px solid var(--graphite-3); }
  .side nav { display: grid; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--on-graphite-dim); font-weight: 500; font-size: 14.500px; }
  .side nav a span { flex: 1; } .side nav a:hover { background: var(--graphite-2); color: #fff; }
  .side nav a.on { background: var(--graphite-2); color: #fff; box-shadow: inset 3px 0 0 #d08a52; }
  .side nav a.on .ic { color: #e0a06c; }
  .side-foot { margin-top: auto; display: grid; gap: 10px; justify-items: start; padding: 0 4px; }
  .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-graphite-dim); }
  .main { padding: 24px 30px 40px; width: 100%; }
  .demo-bar b { flex: none; } .demo-bar span { display: inline; flex: 1; }
  .veh-km { grid-template-columns: auto auto; justify-content: end; text-align: right; } .veh-km .btn { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; } .veh-head { align-items: flex-start; }
  .page-head h1 { font-size: 24px; } .btn.add-desktop { display: inline-flex; }
  .today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; } .fleet-side { margin-top: 0; position: sticky; top: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sheet-wrap { align-items: center; padding: 24px; } .sheet { max-width: 520px; border-radius: 14px; max-height: 90dvh; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); } .sheet.wide { max-width: 760px; }
  .sheet-foot .block { flex: 0 1 260px; }
  .part-row { grid-template-columns: 2fr 1.2fr 1.3fr 64px 100px; } .part-row input:first-child { grid-column: auto; }
  .inst-row { grid-template-columns: 170px 150px 1fr; } .inst-row .check { grid-column: auto; }
  .picker-btns { grid-template-columns: 1fr 1fr; }
  .tl-card { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; } .tl-date { display: grid; gap: 0; } .tl-main { grid-column: 2; } .tl-sum { grid-column: 3; }
  .timeline { padding-left: 26px; } .tl-item::before { left: -25px; }
  #toast { bottom: 24px; left: var(--side); }
  input:not([type]), input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="search"], input[inputmode], select, textarea, .search input { font-size: 14.500px; min-height: 40px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); } .quick { min-height: 128px; }
}
