:root {
  --brand: #2563EB;
  --brand-600: #1D4ED8;
  --brand-soft: #EFF4FF;
  --brand-ring: rgba(37, 99, 235, .18);
  --side: #0B1220;
  --side-2: #151E31;
  --ink: #0F172A;
  --ink2: #334155;
  --muted: #64748B;
  --line: #E5E9F0;
  --chip: #F1F5F9;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --go: #2563EB;
  --ok: #059669;
  --ok-soft: #ECFDF5;
  --auto: #4F46E5;
  --auto-soft: #EEF2FF;
  --osoba: #EA580C;
  --osoba-soft: #FFF7ED;
  --bad: #DC2626;
  --bad-soft: #FEF2F2;
  /* stavy aut */
  --s-sklad: #64748B;
  --s-jizda: #2563EB;
  --s-zak: #16A34A;
  --s-mimo: #7C3AED;
  --s-motor: #DC2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);
  --side-w: 248px;
  --top-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
img { display: block; max-width: 100%; }
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -0.22em; }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ---------- sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: #CBD5E1; display: flex; flex-direction: column; padding: 18px 14px; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px 18px; min-width: 0; }
.brand b { display: block; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.2; }
.brand small { display: block; font-size: 12.5px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.appmark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
.appmark .ic { width: 22px; height: 22px; }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: #CBD5E1; transition: background .12s, color .12s; }
#nav a .ic { width: 20px; height: 20px; opacity: .8; }
#nav a:hover { background: var(--side-2); color: #fff; }
#nav a.active { background: rgba(59, 130, 246, .16); color: #fff; box-shadow: inset 3px 0 0 #3B82F6; }
#nav a.active .ic { opacity: 1; color: #60A5FA; }
#nav .badge { margin-left: auto; }
.navsep { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #64748B; padding: 22px 12px 6px; }
.sidefoot { margin-top: auto; font-size: 12.5px; color: #64748B; padding: 12px; border-top: 1px solid var(--side-2); }
.sidefoot b { color: #CBD5E1; font-weight: 600; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; line-height: 1; }

/* ---------- top bar ---------- */
.shell { margin-left: var(--side-w); min-width: 0; }
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(245, 247, 251, .82); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top .brand.m { display: none; }
.top .spacer { flex: 1; }
.top .hdr-acts { display: flex; gap: 8px; }
.top .about { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink2); }
.top .about:hover { border-color: #CBD5E1; }
.top .about .ic { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 10px; min-height: 40px; padding: 0 16px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: var(--brand); color: #fff; transition: background .12s, box-shadow .12s, transform .06s; white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn.go { background: var(--brand); color: #fff; }
.btn.go:hover { background: var(--brand-600); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.ok:hover { background: #047857; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #1E293B; }
.btn.ghost { background: #fff; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 42, .04); }
.btn.ghost:hover { background: #F8FAFC; box-shadow: inset 0 0 0 1px #CBD5E1; }
.btn.bad { background: var(--bad); color: #fff; }
.btn.small { min-height: 34px; font-size: 13.5px; padding: 0 12px; border-radius: 9px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn.xl, .btn.lg { min-height: 48px; font-size: 15.5px; padding: 0 22px; border-radius: 12px; }
.btn.xl .ic, .btn.lg .ic { width: 20px; height: 20px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; }
.btn[disabled]:hover { background: var(--brand); }

/* ---------- page ---------- */
main { min-height: calc(100vh - var(--top-h)); }
.page { max-width: 1320px; margin: 0 auto; padding: 28px 28px 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ic { width: 14px; height: 14px; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 { font-size: 28px; font-weight: 700; }
.head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 720px; }
.head p .ic { width: 16px; height: 16px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec { font-size: 17px; font-weight: 650; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.sec .ic { width: 20px; height: 20px; color: var(--brand); }
.sec a { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.sec a:hover { text-decoration: underline; }
.sec .count { background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.secsub { color: var(--muted); font-size: 14px; font-weight: 500; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pad { padding: 18px 20px; }
.empty { padding: 32px; text-align: center; color: var(--muted); font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--cs, var(--chip)); color: var(--c, var(--ink2)); white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }

/* ---------- home ---------- */
.hello { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-radius: 20px; padding: 28px 30px; color: #fff; background: radial-gradient(1200px 300px at 100% 0%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(135deg, #1E3A8A, #2563EB); box-shadow: 0 12px 32px rgba(37, 99, 235, .25); position: relative; overflow: hidden; }
.hello .kicker { color: #BFDBFE; font-size: 13.5px; font-weight: 500; }
.hello h1 { font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.hello .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hello .btn.go { background: #fff; color: var(--brand-600); }
.hello .btn.go:hover { background: #EFF4FF; }
.hello .btn.dark { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.hello .btn.dark:hover { background: rgba(255, 255, 255, .22); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: #D6DEEA; }
.stat .si { width: 44px; height: 44px; border-radius: 12px; background: var(--cs); color: var(--c); display: grid; place-items: center; flex: none; }
.stat .si .ic { width: 22px; height: 22px; }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.stat .l { font-size: 13.5px; color: var(--muted); font-weight: 500; }

.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
.carc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.carc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.carc .ph, .pick .ph { position: relative; aspect-ratio: 900 / 560; background: linear-gradient(180deg, #F8FAFC, #fff); }
.carc .ph img { width: 100%; height: 100%; object-fit: contain; padding: 6px 10px 0; }
.num { position: absolute; left: 10px; top: 10px; background: rgba(15, 23, 42, .86); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 8px; letter-spacing: .03em; backdrop-filter: blur(4px); }
.carc .bd { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.spz { display: inline-block; font-weight: 700; font-size: 12.5px; border: 1.5px solid #1E293B; border-radius: 4px; padding: 0 6px; background: #fff; letter-spacing: .06em; border-left: 7px solid #1E40AF; line-height: 1.5; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.state { font-weight: 600; color: var(--c); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.state .dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.thumbs { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px; }
.thumbs .t { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); overflow: hidden; background: #fff; flex: none; }
.thumbs .t img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .t .itile { border-radius: 0; }
.thumbs .t .itile .ic { width: 20px; height: 20px; }
.thumbs .more { font-weight: 600; color: var(--muted); font-size: 13px; padding-left: 2px; }
.thumbs .none { color: var(--muted); font-size: 13.5px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.md { width: 44px; height: 44px; font-size: 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.personc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 14px; align-items: center; text-decoration: none; transition: box-shadow .12s; }
.personc:hover { box-shadow: var(--shadow-lg); }
.personc b { font-size: 15.5px; display: block; }
.personc .muted { font-size: 13.5px; }
.personc .thumbs { margin-top: 6px; padding: 0; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.catc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; transition: border-color .12s, box-shadow .12s; }
.catc:hover { border-color: #BFD3FE; box-shadow: var(--shadow-lg); }
.catc.on { border-color: var(--brand); background: var(--brand-soft); }
.catc .cp { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: #F8FAFC; }
.catc .cp img { width: 100%; height: 100%; object-fit: contain; }
.catc b { font-size: 14.5px; font-weight: 600; display: block; line-height: 1.25; }
.catc span { color: var(--muted); font-size: 13px; }

/* ---------- catalog ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; position: sticky; top: calc(var(--top-h) + 16px); }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink2); }
.side a .ic { width: 18px; height: 18px; color: var(--muted); }
.side a:hover { background: var(--chip); }
.side a.on { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.side a.on .ic { color: var(--brand); }
.side a .n { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px 0 42px; font: inherit; font-size: 15px; background: #fff; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search .ic { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 13px; height: 34px; font-weight: 500; font-size: 13.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; transition: border-color .12s, background .12s; }
.chip:hover { border-color: #CBD5E1; }
.chip .ic { width: 16px; height: 16px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; position: relative; transition: border-color .12s, transform .12s, box-shadow .12s; padding: 0; font: inherit; }
.tcard:hover { border-color: #BFD3FE; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tcard .pic { aspect-ratio: 1; background: linear-gradient(180deg, #F8FAFC, #fff); padding: 14px; }
.tcard .pic img { width: 100%; height: 100%; object-fit: contain; }
.tcard .bd { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard .nm { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.tcard .btn { margin-top: auto; }
.tcard.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.tcard .selmark { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(37, 99, 235, .35); }
.tcard .selmark .ic { width: 18px; height: 18px; stroke-width: 3; }
.mark { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 11.5px; padding: 3px 8px; border-radius: 7px; background: rgba(15, 23, 42, .86); color: #fff; letter-spacing: .02em; }
.mark .ic { width: 13px; height: 13px; }
.mark.seznam { background: #fff; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.mark.inline { position: static; margin-left: 8px; vertical-align: 1px; }
.where { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c); font-size: 13.5px; line-height: 1.3; }
.where small { color: var(--muted); font-weight: 500; font-size: 13px; }
.partsn { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.partsn .ic { width: 15px; height: 15px; }
.warn { color: var(--bad); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.warn .ic { width: 15px; height: 15px; }

.itile { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #EFF4FF, #DCE7FE); color: #3B5BA9; border-radius: 12px; position: relative; }
.itile .ic { width: 42%; height: 42%; stroke-width: 1.4; }
.itile em { position: absolute; bottom: 8%; font-style: normal; font-size: 11.5px; font-weight: 500; color: #5B74B4; }

/* ---------- item detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bigpic { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1; padding: 28px; position: relative; }
.bigpic img { width: 100%; height: 100%; object-fit: contain; }
.bigpic .mark { font-size: 12.5px; padding: 4px 10px; left: 16px; top: 16px; }
.dinfo h1 { font-size: 30px; font-weight: 700; }
.dinfo .code { color: var(--muted); font-size: 14px; margin-top: 6px; }
.wherebox { margin-top: 18px; border-radius: 16px; padding: 16px 18px; background: var(--cs); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); display: flex; gap: 16px; align-items: center; }
.wherebox .big { font-size: 20px; font-weight: 700; color: var(--c); line-height: 1.2; }
.wherebox .sub { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.wherebox .wimg { width: 110px; flex: none; }
.wherebox .wimg img { border-radius: 10px; background: #fff; }
.dacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.why { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink2); }
.why .ic { width: 20px; height: 20px; color: var(--brand); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.part { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 500; font-size: 14.5px; }
.part .pi { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.part .pi .ic { width: 20px; height: 20px; }
.part.miss { background: var(--bad-soft); color: var(--bad); border-color: #FECACA; }
.part.miss .pi { background: #fff; color: var(--bad); }
.part small { display: block; font-weight: 500; font-size: 12.5px; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.hist li:last-child { border-bottom: 0; }
.hist .hi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cs); color: var(--c); flex: none; }
.hist .hi .ic { width: 16px; height: 16px; }
.hist .when { color: var(--muted); font-size: 13px; }
.label50 { width: 100%; max-width: 360px; aspect-ratio: 5 / 3; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 14px; padding: 12px; }
.label50 .qr { height: 100%; aspect-ratio: 1; flex: none; }
.label50 .qr svg { width: 100%; height: 100%; display: block; }
.label50 .txt { min-width: 0; }
.label50 .lb { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label50 .id { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.label50 .nm { font-size: 13px; margin-top: 4px; line-height: 1.25; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* ---------- flow (půjčit / vrátit) ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.steps .st { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.steps .st i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-size: 13px; flex: none; }
.steps .st i .ic { width: 15px; height: 15px; stroke-width: 3; }
.steps .st.on { color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.steps .st.on i { background: var(--brand); color: #fff; }
.steps .st.done { color: var(--ink2); cursor: pointer; }
.steps .st.done i { background: var(--ok); color: #fff; }
.steps .st span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.qsub { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pick { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s, transform .12s, box-shadow .12s; }
.pick:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 0 0 3px var(--brand-ring); }
.pick .ph img { width: 100%; height: 100%; object-fit: contain; padding: 6px 10px 0; }
.pick .bd { padding: 6px 14px 14px; }
.pick b { font-size: 16px; font-weight: 700; display: block; }
.pick span { color: var(--muted); font-size: 13.5px; }
.pick.person { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.pick.person b { font-size: 15.5px; }
.pick.dim { opacity: .45; }
.pick .num, body.mobile .pick .num { color: #fff; font-size: 11.5px; }
.jobs { display: grid; gap: 8px; }
.jobpick { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; text-align: left; transition: border-color .12s, box-shadow .12s; }
.jobpick:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.jobpick .jicon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.jobpick .jicon .ic { width: 22px; height: 22px; }
.jobpick b { font-size: 15.5px; display: block; }
.jobpick span { color: var(--muted); font-size: 14px; }
.jobpick .term { margin-left: auto; font-weight: 600; color: var(--ink2); white-space: nowrap; font-size: 13.5px; background: var(--chip); padding: 4px 10px; border-radius: 999px; }
.jobpick.none .jicon { background: var(--chip); color: var(--muted); }

.cohead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 18px; }
.cohead .tgt { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; }
.cohead .tgt img { width: 84px; border-radius: 8px; }
.cohead .tgt small { display: block; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.cohead .ch { margin-left: auto; }
.cowrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.modes { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; background: var(--chip); padding: 4px; border-radius: 12px; width: 100%; }
.mode { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.mode .ic { width: 20px; height: 20px; }
.mode.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.mode.on .ic { color: var(--brand); }
.cart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; max-height: calc(100vh - var(--top-h) - 32px); }
.cart h3 { font-size: 16px; font-weight: 650; padding: 16px 18px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.cart h3 .ic { color: var(--brand); width: 20px; height: 20px; }
.cart h3 .badge { background: var(--brand); }
.cart .items { overflow-y: auto; padding: 6px 14px; flex: 1; }
.cart .foot { padding: 14px; border-top: 1px solid var(--line); }
.citem { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.citem:last-child { border-bottom: 0; }
.citem .r1 { display: flex; gap: 12px; align-items: center; }
.citem .r1 .t { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; flex: none; background: #fff; }
.citem .r1 .t img { width: 100%; height: 100%; object-fit: contain; }
.citem .r1 .t .itile { border-radius: 0; }
.citem .r1 b { font-size: 14.5px; display: block; line-height: 1.25; }
.citem .r1 small { color: var(--muted); font-size: 12.5px; }
.citem .x { margin-left: auto; border: 0; background: var(--chip); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); }
.citem .x:hover { background: var(--bad-soft); color: var(--bad); }
.citem .x .ic { width: 16px; height: 16px; }
.citem .mv { margin-top: 6px; font-size: 12.5px; color: var(--osoba); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.together { margin: 8px 0 0 2px; }
.together .tl { font-weight: 600; text-transform: uppercase; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; cursor: pointer; border-radius: 8px; user-select: none; position: relative; }
.ck:hover { background: var(--chip); }
.ck > .ic { width: 16px; height: 16px; color: var(--muted); }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #CBD5E1; display: grid; place-items: center; flex: none; background: #fff; color: transparent; transition: background .1s, border-color .1s; }
.ck .box .ic { width: 15px; height: 15px; stroke-width: 3; }
.ck input:checked + .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.ck.off { color: var(--bad); }
.ck.off .lbl { text-decoration: line-through; }
.ck.gone { opacity: .55; cursor: default; }
.ck .note { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: .04em; }

.scanner { background: #0B1220; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; color: #fff; }
.scanner video, .scanner canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; width: 56%; aspect-ratio: 1; max-height: 80%; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .4); }
.scanner .frame::before, .scanner .frame::after { content: ""; position: absolute; inset: -3px; border-radius: 20px; border: 4px solid transparent; border-top-color: #60A5FA; border-bottom-color: #60A5FA; }
.scanner .line { position: absolute; left: 22%; right: 22%; height: 2px; background: #60A5FA; box-shadow: 0 0 16px #60A5FA; animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0% { top: 18%; } 50% { top: 80%; } 100% { top: 18%; } }
.scanner .msg { position: relative; z-index: 2; text-align: center; padding: 20px; display: grid; gap: 12px; justify-items: center; font-size: 15px; color: #CBD5E1; }
.scanner .msg .ic { width: 44px; height: 44px; color: #60A5FA; }
.scanner .msg .btn .ic { width: 18px; height: 18px; color: #fff; }
.scanner .stop { position: absolute; right: 12px; top: 12px; z-index: 3; }
.scanner.flash::after { content: ""; position: absolute; inset: 0; background: rgba(37, 99, 235, .45); animation: fl .6s ease-out forwards; z-index: 4; }
@keyframes fl { to { opacity: 0; } }
.demo-tags { margin-top: 16px; }
.demo-tags .tl { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: flex; align-items: center; gap: 10px; border: 1px dashed #CBD5E1; background: #fff; border-radius: 12px; padding: 6px 12px 6px 6px; font-weight: 600; font-size: 13.5px; text-align: left; transition: border-color .12s, background .12s; }
.tag:hover { border-color: var(--brand); border-style: solid; background: var(--brand-soft); }
.tag .qr { width: 40px; height: 40px; }
.tag .qr svg { width: 100%; height: 100%; }
.tag small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

.done { text-align: center; max-width: 820px; margin: 10px auto 0; }
.done .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .35s ease-out; box-shadow: 0 0 0 10px var(--ok-soft); }
.done .ok .ic { width: 44px; height: 44px; stroke-width: 2.6; }
.done .ok.bad { background: var(--bad); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-size: 30px; font-weight: 700; }
.done .to { font-size: 16px; margin-top: 6px; color: var(--ink2); }
.done .list { text-align: left; margin: 24px 0; }
.done .acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.notice { display: flex; gap: 12px; align-items: center; background: var(--bad-soft); color: #B91C1C; border: 1px solid #FECACA; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; text-align: left; margin: 16px 0; }
.notice .ic { width: 22px; height: 22px; }
.notice.info { background: var(--brand-soft); color: var(--brand-600); border-color: #BFD3FE; }

.retrow { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; border: 1px solid var(--line); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.retrow.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.retrow .r1 { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 0; background: none; text-align: left; width: 100%; }
.retrow .r1 .t { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.retrow .r1 .t img { width: 100%; height: 100%; object-fit: contain; }
.retrow .r1 .t .itile { border-radius: 0; }
.retrow .r1 b { font-size: 15.5px; display: block; }
.retrow .r1 .tick { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #CBD5E1; display: grid; place-items: center; color: transparent; flex: none; }
.retrow .r1 .tick .ic { width: 20px; height: 20px; stroke-width: 3; }
.retrow.on .r1 .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.retrow .together { margin: 0; padding: 2px 18px 12px 100px; }

/* ---------- map ---------- */
.mapview { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - var(--top-h)); min-height: 560px; }
.mapside { background: #fff; overflow-y: auto; padding: 18px; border-right: 1px solid var(--line); }
.mapside h2 { font-size: 16px; font-weight: 650; }
.mcar { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; margin-top: 8px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.mcar:hover { border-color: #CBD5E1; }
.mcar.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.mcar .ph { width: 96px; flex: none; position: relative; background: #F8FAFC; border-radius: 9px; overflow: hidden; }
.mcar .ph .num { font-size: 11px; left: 5px; top: 5px; padding: 1px 6px; border-radius: 6px; }
.mcar b { font-size: 14.5px; display: block; }
.mcar .state { font-size: 13px; }
.mcar small { color: var(--muted); font-size: 12.5px; display: block; }
.mapwrap { position: relative; }
.map { width: 100%; height: 100%; background: #E8EEF4; }
.legend { position: absolute; left: 14px; bottom: 30px; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 14px; font-size: 13px; display: grid; gap: 4px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.live { position: absolute; left: 14px; top: 14px; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 6px 14px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-zak); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.cm { display: flex; align-items: center; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .3)); }
.cm .n { width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; position: relative; z-index: 1; }
.cm .l { background: #fff; color: var(--ink); font-weight: 600; font-size: 12.5px; padding: 3px 10px 3px 16px; margin-left: -12px; border-radius: 0 999px 999px 0; white-space: nowrap; }
.cm.sel .n { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(37, 99, 235, .45); }
.depot { background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 10px; padding: 4px 9px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; box-shadow: 0 3px 8px rgba(15, 23, 42, .3); }
.depot .ic { width: 15px; height: 15px; }
.stopm { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; box-shadow: 0 2px 6px rgba(15, 23, 42, .35); }
.jobm { width: 32px; height: 32px; border-radius: 10px; background: var(--s-zak); color: #fff; border: 2px solid #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(15, 23, 42, .3); }
.jobm .ic { width: 18px; height: 18px; }
.maplibregl-popup-content { border-radius: 14px; padding: 0; font-family: Inter, sans-serif; box-shadow: 0 12px 32px rgba(15, 23, 42, .22); overflow: hidden; }
.maplibregl-popup-close-button { font-size: 22px; width: 32px; height: 32px; z-index: 2; }
.pop { width: 270px; }
.pop .ph { position: relative; background: #F8FAFC; }
.pop .bd { padding: 8px 14px 14px; display: grid; gap: 8px; }
.pop .btn { min-height: 38px; font-size: 14px; }
.nomap { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 30px; text-align: center; }

/* ---------- car day ---------- */
.carhead { display: grid; grid-template-columns: 320px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.carhead .ph { position: relative; background: linear-gradient(180deg, #F8FAFC, #fff); }
.carhead .ph img { padding: 10px; }
.carhead .ph .num { font-size: 14px; padding: 4px 10px; }
.carhead .bd { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.carhead h1 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.carhead .spz { font-size: 15px; }
.carhead .state { font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.tile .v { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.tile .l { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tile .l::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.timeline { display: flex; height: 44px; border-radius: 10px; overflow: hidden; gap: 2px; }
.timeline div { background: var(--c); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; border-radius: 4px; }
.axis { position: relative; height: 22px; margin-top: 6px; }
.axis span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.cmp { background: var(--bad-soft); border: 1px solid #FECACA; border-radius: var(--radius); padding: 16px 20px; max-width: 560px; }
.cmp h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 6px; }
.cmp .r { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; gap: 12px; color: var(--ink2); }
.cmp .r b { font-size: 15.5px; color: var(--ink); }
.cmp .diff { border-top: 1px solid #FECACA; margin-top: 8px; padding-top: 10px; color: var(--bad); font-weight: 700; font-size: 15.5px; }
.cmp.ok { background: var(--ok-soft); border-color: #A7F3D0; }
.cmp.ok .diff { color: var(--ok); border-color: #A7F3D0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F8FAFC; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td a { text-decoration: none; }
table.t td a:hover { color: var(--brand); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.bar { border-left: 4px solid var(--c); font-weight: 700; }

/* ---------- jobs ---------- */
.jcards { display: grid; gap: 10px; }
.jcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.jcard:hover { border-color: #BFD3FE; box-shadow: var(--shadow-lg); }
.jcard b { font-size: 16px; font-weight: 650; display: block; margin-top: 6px; }
.jcard .tt { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.jcard .tt .ic { width: 15px; height: 15px; }
.jt { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.head .jt { margin-bottom: 8px; }
.jmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.jmeta .thumbs { margin: 0; padding: 0; }
.jmeta .thumbs .t { width: 32px; height: 32px; }
.jcard .rt { text-align: right; display: grid; gap: 2px; justify-items: end; align-content: center; }
.jcard .rt .muted { font-size: 13px; }
.jcard .tm { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 10px; text-decoration: none; position: relative; overflow: hidden; transition: box-shadow .12s, border-color .12s; }
.alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.alert:hover { border-color: #FECACA; box-shadow: var(--shadow-lg); }
.alert .ap { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.alert .ap img { width: 100%; height: 100%; object-fit: contain; }
.alert .ap .itile { border-radius: 0; }
.alert .h { font-weight: 600; font-size: 15.5px; }
.alert .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.alert .go { margin-left: auto; color: var(--brand); font-weight: 600; white-space: nowrap; font-size: 13.5px; display: flex; align-items: center; gap: 2px; }
.alert .go .ic { width: 16px; height: 16px; }

/* ---------- labels page ---------- */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

/* ---------- phone page ---------- */
.phonewrap { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: start; }
.phone { width: 390px; height: 800px; background: #0B1220; border-radius: 54px; padding: 12px; box-shadow: 0 30px 70px rgba(15, 23, 42, .3), inset 0 0 0 2px #1E293B; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 44px; background: #fff; display: block; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.howto li { padding-left: 50px; position: relative; font-size: 15px; color: var(--ink2); }
.howto li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.howto b { display: block; font-size: 16px; color: var(--ink); }
.howto a { color: var(--brand); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); z-index: 2000; display: grid; place-items: center; padding: 16px; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 22px; max-width: 760px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); padding: 28px 32px; animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandrow .appmark { width: 44px; height: 44px; border-radius: 13px; }
.brandrow .appmark .ic { width: 24px; height: 24px; }
.brandrow b { display: block; font-size: 17px; }
.brandrow span:not(.appmark) { color: var(--muted); font-size: 13px; }
.modal h2 { font-size: 26px; font-weight: 700; margin: 20px 0 8px; letter-spacing: -.02em; }
.modal p { font-size: 15.5px; color: var(--ink2); margin: 0; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.feat div { background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.feat b { display: block; font-size: 14.5px; }
.feat span span { color: var(--muted); font-size: 13px; }
.modal .mf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.modal .by { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.modal .by b { color: var(--ink); }
.credits { font-size: 12.5px; color: var(--muted); margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.credits summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink2); }
.credits p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.credits ul { padding-left: 18px; }
.credits a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 3000; pointer-events: none; max-width: calc(100vw - 32px); font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .3); }
.toast .ic { width: 20px; height: 20px; color: #4ADE80; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- responsive ---------- */
.tabbar { display: none; }
@media (max-width: 1180px) {
  .shop { grid-template-columns: 1fr; }
  .side { display: none; }
  .cowrap { grid-template-columns: 1fr; }
  .cart { position: static; max-height: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .detail, .two, .phonewrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .carhead { grid-template-columns: 1fr; }
  .carhead .bd { padding: 0 20px 20px; }
  .mapview { grid-template-columns: 300px 1fr; }
}
body.mobile { padding-bottom: 76px; }
body.mobile .sidebar { display: none; }
body.mobile .shell { margin-left: 0; }
body.mobile .top { padding: 0 16px; height: 58px; background: rgba(255, 255, 255, .9); }
body.mobile .top .brand.m { display: flex; padding: 0; }
body.mobile .top .brand.m b { color: var(--ink); font-size: 16px; }
body.mobile .top .brand.m small { color: var(--muted); max-width: 52vw; }
body.mobile .top .brand.m .appmark { width: 34px; height: 34px; border-radius: 10px; }
body.mobile .top .brand.m .appmark .ic { width: 19px; height: 19px; }
body.mobile .top .hdr-acts { display: none; }
body.mobile .top .about { width: 36px; height: 36px; }
body.mobile main { min-height: calc(100vh - 58px); }
body.mobile .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); z-index: 1500; padding-bottom: env(safe-area-inset-bottom); }
body.mobile .tabbar a { color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; font-weight: 600; font-size: 11px; position: relative; }
body.mobile .tabbar a .ic { width: 22px; height: 22px; }
body.mobile .tabbar a.active { color: var(--brand); }
body.mobile .tabbar a.cta .ic { background: var(--brand); border-radius: 10px; padding: 5px; width: 32px; height: 32px; color: #fff; box-shadow: 0 4px 10px rgba(37, 99, 235, .35); }
body.mobile .tabbar a.cta.ret .ic { background: var(--ink); box-shadow: none; }
body.mobile .tabbar a.cta { color: var(--ink2); }
body.mobile .tabbar a.cta.active { color: var(--brand); }
body.mobile .tabbar .badge { position: absolute; top: 6px; right: calc(50% - 22px); font-size: 10.5px; min-width: 18px; height: 18px; }
body.mobile .page { padding: 16px 14px 28px; }
body.mobile .head { margin-bottom: 16px; }
body.mobile .head h1 { font-size: 23px; }
body.mobile .head p { font-size: 14px; }
body.mobile .head .actions { margin-left: 0; }
body.mobile .hello { padding: 20px; border-radius: 18px; }
body.mobile .hello h1 { font-size: 22px; }
body.mobile .hello .acts { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
body.mobile .hello .acts .btn { padding: 0 10px; }
body.mobile .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body.mobile .stat { padding: 12px; gap: 10px; }
body.mobile .stat .si { width: 36px; height: 36px; border-radius: 10px; }
body.mobile .stat .si .ic { width: 18px; height: 18px; }
body.mobile .stat .v { font-size: 21px; }
body.mobile .stat .l { font-size: 12.5px; }
body.mobile .sec { font-size: 16px; margin: 26px 0 10px; }
body.mobile .cars { grid-template-columns: 1fr 1fr; gap: 10px; }
body.mobile .carc .bd { padding: 4px 10px 12px; gap: 5px; }
body.mobile .carc .who { font-size: 13.5px; }
body.mobile .carc .who .avatar { width: 24px; height: 24px; font-size: 11px; }
body.mobile .carc .state { font-size: 12.5px; }
body.mobile .carc .thumbs .t { width: 28px; height: 28px; border-radius: 7px; }
body.mobile .num { font-size: 11px; left: 6px; top: 6px; }
body.mobile .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
body.mobile .catc { flex-direction: column; text-align: center; padding: 12px 8px; gap: 6px; }
body.mobile .catc b { font-size: 13.5px; }
body.mobile .grid, body.mobile .picks { grid-template-columns: 1fr 1fr; gap: 10px; }
body.mobile .tcard .pic { padding: 10px; }
body.mobile .tcard .bd { padding: 2px 10px 12px; gap: 5px; }
body.mobile .tcard .nm { font-size: 13.5px; }
body.mobile .tcard .where { font-size: 12.5px; }
body.mobile .tcard .btn { min-height: 34px; font-size: 13px; }
body.mobile .mark { font-size: 10.5px; padding: 2px 6px; }
body.mobile .mark .ic { width: 12px; height: 12px; }
body.mobile .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
body.mobile .search input { height: 44px; }
body.mobile .steps { gap: 4px; margin-bottom: 16px; }
body.mobile .steps .st { min-width: 0; padding: 7px; font-size: 12.5px; gap: 6px; justify-content: center; }
body.mobile .steps .st span { display: none; }
body.mobile .steps .st.on span { display: inline; }
body.mobile .steps .st i { width: 24px; height: 24px; }
body.mobile .q { font-size: 21px; }
body.mobile .qsub { font-size: 14px; }
body.mobile .pick b { font-size: 15px; }
body.mobile .pick span { font-size: 12.5px; }
body.mobile .pick .bd { padding: 4px 10px 10px; }
body.mobile .pick.person { flex-direction: column; text-align: center; padding: 12px 8px; gap: 6px; }
body.mobile .jobpick { padding: 12px; gap: 12px; flex-wrap: wrap; }
body.mobile .jobpick b { font-size: 14.5px; }
body.mobile .jobpick span { font-size: 13px; }
body.mobile .jobpick .jicon { width: 38px; height: 38px; }
body.mobile .jobpick .term { margin-left: 50px; }
body.mobile .mode { height: 42px; font-size: 14px; }
body.mobile .cohead .tgt img { width: 64px; }
body.mobile .cohead .tgt { font-size: 14.5px; }
body.mobile .scanner { aspect-ratio: 4 / 5; }
body.mobile .scanner .frame { width: 70%; }
body.mobile .cart { margin-top: 16px; }
body.mobile .cart .foot { position: sticky; bottom: 76px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
body.mobile .retrow .r1 .t { width: 60px; height: 60px; }
body.mobile .retrow .r1 b { font-size: 14.5px; }
body.mobile .retrow .together { padding: 0 14px 12px; }
body.mobile .flowfoot { position: sticky; bottom: 76px; z-index: 5; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
body.mobile .done h1 { font-size: 24px; }
body.mobile .done .to { font-size: 14.5px; }
body.mobile .done .acts { display: grid; }
body.mobile .mapview { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; }
body.mobile .mapwrap { order: -1; height: 55vh; }
body.mobile .mapside { border: 0; }
body.mobile .legend { display: none; }
body.mobile .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
body.mobile .tile .v { font-size: 18px; }
body.mobile .tile .l { font-size: 12px; }
body.mobile .carhead h1 { font-size: 23px; }
body.mobile .carhead .state { font-size: 14.5px; }
body.mobile .dinfo h1 { font-size: 23px; }
body.mobile .wherebox .big { font-size: 17px; }
body.mobile .wherebox .wimg { width: 80px; }
body.mobile .alert { gap: 12px; padding: 10px; }
body.mobile .alert .ap { width: 52px; height: 52px; }
body.mobile .alert .h { font-size: 14px; }
body.mobile .alert .s { font-size: 12.5px; }
body.mobile .alert .go { display: none; }
body.mobile .jcard { grid-template-columns: 1fr; padding: 14px; }
body.mobile .jcard .rt { justify-items: start; text-align: left; grid-auto-flow: column; gap: 8px; align-items: baseline; }
body.mobile .jcard .tm { font-size: 18px; }
body.mobile table.t { font-size: 13px; }
body.mobile table.t th, body.mobile table.t td { padding: 9px 8px; }
body.mobile .feat { grid-template-columns: 1fr; }
body.mobile .modal { padding: 20px; }
body.mobile .modal h2 { font-size: 21px; }
body.mobile .modal .by { margin-left: 0; text-align: left; }
body.mobile .toast { bottom: 88px; }

@media print {
  .sidebar, .top, .tabbar, .noprint { display: none !important; }
  .shell { margin: 0; }
  body { background: #fff; }
  .page { padding: 0; }
  .labels { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .label50 { break-inside: avoid; }
}
