/* WingZ Futár — az admin app (wingz-admin) arculata: krém alap + pontminta, piros kiemelés, Barlow Condensed nagybetűs gombok,
   fehér kártyák puha árnyékkal, alul fix fülsáv. Világos és sötét téma: a tokenek az `html[data-theme]`-ből jönnek (theme.js). */

:root {
  --red: #ea1c2d; --red-dim: rgba(234,28,45,.09); --red-text: #c4121f; --on-red: #fff;
  --bg: #f6f3e0; --dot: rgba(26,26,26,.06);
  --card: #fff; --card-2: #ede9cf; --line: rgba(0,0,0,.09); --line-2: #e0dcc6;
  --ink: #111; --ink-2: #4a4a42; --ink-3: #6c6857;
  --green: #16a34a; --green-dim: rgba(22,163,74,.10); --green-text: #12803a;
  --blue: #1d5fd1; --blue-dim: rgba(29,95,209,.10);
  --violet: #4b3bd1; --violet-dim: rgba(115,96,242,.14); --viber: #7360f2;
  --shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.04);
  --shadow-md: 0 8px 28px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.06);
  --glass: rgba(246,243,224,.82);
  --r: 14px; --r-sm: 10px;
  --f-head: 'Heading Now 91', 'Barlow Condensed', sans-serif;
  --f-cond: 'Barlow Condensed', sans-serif;
  --ease: cubic-bezier(.32,.72,0,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --red-dim: rgba(234,28,45,.16); --red-text: #ff6b76;
  --bg: #141412; --dot: rgba(246,243,224,.05);
  --card: #1f1f1c; --card-2: #2b2b27; --line: rgba(246,243,224,.10); --line-2: #3a3a34;
  --ink: #f6f3e0; --ink-2: #cfcbb4; --ink-3: #a09c86;
  --green: #22c55e; --green-dim: rgba(34,197,94,.14); --green-text: #4ade80;
  --blue: #7ab0ff; --blue-dim: rgba(122,176,255,.14);
  --violet: #b6acff; --violet-dim: rgba(115,96,242,.24);
  --shadow: 0 2px 10px rgba(0,0,0,.45), 0 0 1px rgba(255,255,255,.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,.6);
  --glass: rgba(20,20,18,.82);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.45 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px); background-size: 26px 26px;
  min-height: 100dvh; -webkit-text-size-adjust: 100%; touch-action: manipulation; font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2 { margin: 0; }
.muted { color: var(--ink-3); font-size: .875rem; }
.nw { white-space: nowrap; }
a { color: var(--blue); }

/* a téma váltásakor ne ugorjon a fényerő: rövid átúsztatás */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}

/* oszlop: mobil-első, tablet/PC-n középre zárt, mint az admin */
#app, #futar, #stats { max-width: 480px; margin: 0 auto; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
#stats { padding-bottom: 32px; }

/* ── belépés (az admin sötét belépője, mindkét témában) ── */
#login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #1a1a1a; color: #f6f3e0; position: relative; overflow: hidden; }
#login::before, #login::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(234,28,45,.15); pointer-events: none; }
#login::before { width: 340px; height: 340px; top: -80px; right: -80px; }
#login::after { width: 220px; height: 220px; bottom: -60px; left: -40px; border-color: rgba(234,28,45,.10); }
#login-form { width: 100%; max-width: 340px; display: grid; gap: 14px; text-align: center; position: relative; z-index: 1; }
#login-form .mark { margin: 0 auto; width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#login-form h1 { font-family: var(--f-head); font-weight: 900; font-size: 34px; letter-spacing: 1px; text-transform: uppercase; }
#login-form label { display: grid; gap: 6px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(246,243,224,.55); }
#login-form input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #f6f3e0; }
#login-form input:focus { outline: 2px solid var(--red); border-color: transparent; }
.err { color: var(--red-text); min-height: 1.4em; margin: 0; font-weight: 600; }
#login .err { color: #ff6b76; }
.logo-s { height: 34px; width: 34px; border-radius: 9px; vertical-align: middle; margin-right: 10px; box-shadow: var(--shadow); }

/* ── űrlap-elemek ── */
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--card); font-size: 16px; /* 16px: iOS ne zoomoljon */
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }

/* ── gombok: Barlow Condensed, nagybetű ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; background: transparent; color: var(--ink);
  font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .6px; text-transform: uppercase;
  transition: transform .18s var(--ease), opacity .15s, background-color .15s;
}
.btn:active { transform: scale(.97); transition-duration: 0s; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-red); box-shadow: 0 4px 16px rgba(234,28,45,.28); }
.btn.viber { background: var(--viber); border-color: var(--viber); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; }
.btn.big { min-height: 56px; font-size: 18px; flex-basis: 100%; }
.btn:disabled { opacity: .5; }
.link-btn { border: 0; background: transparent; color: var(--blue); font-size: .9rem; font-weight: 600; padding: 6px 4px; cursor: pointer; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 17px; line-height: 1; box-shadow: var(--shadow); transition: transform .18s var(--ease); }
.theme-btn:active { transform: scale(.9); transition-duration: 0s; }
.theme-btn::before { content: "☾"; }
:root[data-theme="dark"] .theme-btn::before { content: "☀"; }

/* ── fejléc (ragadós, átlátszó anyag) ── */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.top h1 { font-family: var(--f-head); font-weight: 900; font-size: 21px; letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: center; min-width: 0; }
.top-r { display: flex; align-items: center; gap: 8px; }
.live { color: var(--ink-3); font-size: .8rem; }
.live.on { color: var(--green); }

/* ── alsó fülsáv (mint az adminban) ── */
#app > .tabs, #futar > .tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 480px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card); border-top: 1px solid var(--line); padding: 0 8px env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.tabs button {
  padding: 15px 0 13px; border: 0; background: transparent; cursor: pointer; color: var(--ink-3);
  font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .8px; text-transform: uppercase;
  transition: transform .18s var(--ease), color .15s;
}
.tabs button:active { transform: scale(.95); transition-duration: 0s; }
.tabs button.on { color: var(--red-text); box-shadow: inset 0 3px 0 var(--red); }
.tabs b { margin-left: 5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); font-size: 13px; }
.tabs button.on b { background: var(--red); color: var(--on-red); }

/* nap-választó, összesítő, beosztás */
.daynav { display: flex; gap: 8px; align-items: center; padding: 4px 16px 6px; }
.daynav input { flex: 1; min-width: 0; text-align: center; padding: 8px 10px; font-weight: 600; }
.daynav .btn { min-width: 44px; }
.sum-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0 16px 10px; }
.day-sum { margin: 0; flex: 1; font-size: .85rem; }
.sum-row .link-btn { white-space: nowrap; padding-top: 0; }
.shift-btn { display: block; width: calc(100% - 32px); margin: 4px 16px 10px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid transparent; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-align: left; font-weight: 700; cursor: pointer; transition: transform .18s var(--ease); }
.shift-btn:active { transform: scale(.98); transition-duration: 0s; }
.shift-btn.unset { border-color: var(--red); background: var(--red-dim); }
.shift-btn small { color: var(--ink-3); font-weight: 500; }
.shift-opts { display: grid; gap: 10px; }
.shift-opts .btn { font-size: 20px; min-height: 58px; }
.shift-opts .btn.on { background: var(--red); border-color: var(--red); color: var(--on-red); }

/* ── lista, kártyák ── */
#list, .futar-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 16px 24px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 0; border: 1.5px solid transparent; min-width: 0; }
.card.fresh { border-color: var(--red); }
.card.pending { box-shadow: var(--shadow), inset 4px 0 0 var(--red); }
.card.done { opacity: .62; }
.card.handed { border-color: var(--green); box-shadow: var(--shadow), inset 4px 0 0 var(--green); background: var(--green-dim); }
.card-head { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.card-head:active { opacity: .7; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.row > div, .row-r { min-width: 0; }
.row-r { display: flex; align-items: center; gap: 8px; }
.num { font-family: var(--f-cond); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: .2px; }
.time { color: var(--ink-3); font-size: .85rem; }
.chev { display: inline-block; font-size: 1.4rem; line-height: 1; color: var(--ink-3); transform: rotate(90deg); transition: transform .3s var(--ease); }
.card.collapsed .chev { transform: rotate(0deg); }
.head-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.addr-s { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-sum .pay { white-space: nowrap; flex: none; }
.card:not(.collapsed) .head-sum { display: none; }   /* nyitva a törzs mutatja a teljes címet */
.card .eta { margin-top: 8px; }
.eta { font-weight: 700; color: var(--violet); }
.eta.late { color: var(--red-text); }
.card-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--ease), opacity .22s ease; }
.card-body > .inner { overflow: hidden; min-height: 0; }
.card-body .pad { display: grid; gap: 10px; padding-top: 12px; min-width: 0; }
.card.collapsed .card-body { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .32s var(--ease), opacity .18s ease, visibility 0s .32s; }
.card.leaving { will-change: height, opacity, transform; }

.addr { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.addr small { display: block; font-weight: 500; color: var(--ink-3); font-size: .9rem; }
a.addr { display: block; color: inherit; text-decoration: none; }
a.addr::before { content: "📍 "; font-weight: 400; }
.who { overflow-wrap: anywhere; }
.who a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* fizetés, állapot */
.pay { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--f-cond); font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.pay.fizetve { background: var(--green-dim); color: var(--green-text); }
.pay.keszpenz, .pay.szep { background: var(--red-dim); color: var(--red-text); }
.pay.egyeb { background: var(--card-2); color: var(--ink-3); }
.badge { padding: 3px 10px; border-radius: 999px; font-family: var(--f-cond); font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
.badge.uj { background: var(--red); color: var(--on-red); }
.badge.keszul, .badge.opd_kerve { background: var(--blue-dim); color: var(--blue); }
.badge.opd_visszaigazolt { background: var(--violet-dim); color: var(--violet); }
.badge.atadva, .badge.kiszallitva { background: var(--green-dim); color: var(--green-text); }
.badge.torolve { background: var(--red-dim); color: var(--red-text); text-decoration: line-through; }

/* a pultos itt látja, mit kell beütnie */
.items { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--card-2); }
.item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.item .qty { font-family: var(--f-cond); font-weight: 800; font-size: 26px; line-height: 1; color: var(--red-text); min-width: 2ch; }
.item-t b { font-size: 1.1rem; display: block; line-height: 1.25; }
.item-t small { display: block; color: var(--ink-2); font-size: .92rem; }
.item-extra { color: var(--ink-3); font-size: .85rem; }
.note-box { padding: 10px 12px; border-radius: var(--r-sm); background: var(--red-dim); color: var(--red-text); font-weight: 700; }
.hist-hint { font-size: .9rem; color: var(--blue); font-weight: 600; }
.hist-sum { list-style: none; display: block; color: var(--ink); font-size: 1rem; padding: 2px 0; }
.hist-sum b { display: block; }
.hist-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1 1 auto; }
details summary { cursor: pointer; color: var(--ink-3); font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; padding: 6px 0; }
details ul { margin: 6px 0 0; padding-left: 18px; }
details li small { color: var(--ink-3); display: block; }
summary { transition: opacity .15s; } summary:active { opacity: .6; }

/* kijelölés (kié) */
.assign-line { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-3); }
.assign-line b { color: var(--ink); font-weight: 700; }
.assign-line.exc b { color: var(--red-text); }
.assign { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-3); }
.assign select { flex: 1; min-width: 0; padding: 9px 10px; }
.opd-reply { border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 10px; display: grid; gap: 6px; }
.opd-reply .lbl { margin: 0; font-size: 11px; }
.custom-perc { display: flex; gap: 8px; align-items: center; }
.custom-perc input { max-width: 110px; padding: 9px 10px; }

/* OPD-egyeztetés a pultos kártyáján */
.opd-neg { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 8px; }
.opd-neg .lbl { margin: 0; }
.opd-neg .neg-text { margin: 0; font-weight: 700; }
.opd-neg.opd { border-color: var(--blue); background: var(--blue-dim); }
.opd-neg.wz { border-color: var(--violet); background: var(--violet-dim); }
.opd-neg.ok { border-color: var(--green); background: var(--green-dim); }
.opd-neg.opd .neg-text { color: var(--blue); font-size: 1.1rem; }
.opd-neg.ok .neg-text { color: var(--green-text); }
.opd-neg .neg-sub { margin: 0; color: var(--ink-3); font-size: .85rem; }
.opd-neg .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.opd-neg .btns .btn { flex: 1 1 auto; }
.custom-perc.two { flex-wrap: wrap; }
.custom-perc.two input[type="time"] { max-width: 130px; }
.push-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 16px 8px; }
.push-bar .muted { flex: 1 1 160px; font-size: .8rem; }

/* ── alsó lap ── */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s ease; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-body {
  position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: var(--bg); box-shadow: var(--shadow-md);
  border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .38s var(--ease); will-change: transform;
}
.sheet.open .sheet-body { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; touch-action: none; }
.sheet-head h2, #shift-title { font-family: var(--f-cond); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: .2px; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: -2px auto 4px; position: relative; touch-action: none; }
.grab::before { content: ""; position: absolute; inset: -14px -30px; }
.lbl { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--r-sm); padding: 11px 0; min-width: 56px; flex: 1 1 56px; cursor: pointer; font-family: var(--f-cond); font-weight: 800; font-size: 17px; transition: transform .18s var(--ease); }
.chips button:active { transform: scale(.94); transition-duration: 0s; }
.chips button.on { background: var(--red); color: var(--on-red); border-color: var(--red); }
.actions { display: grid; gap: 8px; margin-top: 4px; }
.note { margin: 0; min-height: 1.2em; }
.fs-body { display: grid; gap: 10px; padding-bottom: 6px; }
.fs-body .addr { font-size: 1.3rem; }

/* ── toast ── */
.toast {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -140%); opacity: 0; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; max-width: 90vw;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); transition: transform .32s var(--ease), opacity .2s ease;
}
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast button { border: 0; background: transparent; color: #ff8a93; font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; padding: 4px 2px; cursor: pointer; }
:root[data-theme="dark"] .toast button { color: #c4121f; }

/* ── statisztika ── */
.stats-body { display: grid; gap: 14px; padding: 4px 16px 24px; }
#stats-range { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 0 16px 12px; }
#stats-range button { padding: 9px 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
#stats-range button.on { background: var(--red); border-color: var(--red); color: var(--on-red); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi, .panel, .f-stat, .f-group, .f-empty-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.kpi { padding: 12px 14px; }
.kpi b { display: block; font-family: var(--f-cond); font-weight: 800; font-size: 26px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { color: var(--ink-3); font-size: .85rem; }
.panel { padding: 14px; display: grid; gap: 10px; }
.panel h2 { font-family: var(--f-cond); font-weight: 800; font-size: 17px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.bars i { flex: 1; max-width: 28px; background: var(--red); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-lbl { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .75rem; }
.hbar { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: .9rem; }
.hbar div { background: var(--card-2); border-radius: 99px; height: 10px; overflow: hidden; }
.hbar div i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
table.toplist { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.toplist th { text-align: left; color: var(--ink-3); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 6px; }
table.toplist td { padding: 8px 6px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
table.toplist td.r, table.toplist th.r { text-align: right; white-space: nowrap; font-family: var(--f-cond); font-weight: 700; font-size: 15px; }

/* ── futár: kompakt címlista, útvonal ── */
.f-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f-stat { padding: 9px 11px; min-width: 0; }
.f-stat b { display: block; font-family: var(--f-cond); font-weight: 800; font-size: 26px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; }
.f-stat span { color: var(--ink-3); font-size: 11px; }
.f-note { color: var(--ink-3); font-size: .8rem; margin: -4px 2px 0; }
.f-route { display: block; padding: 13px 14px; border-radius: var(--r); background: var(--red); color: var(--on-red); text-align: center; text-decoration: none;
  font-family: var(--f-cond); font-weight: 800; font-size: 20px; letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 4px 16px rgba(234,28,45,.28); transition: transform .18s var(--ease); }
.f-route:active { transform: scale(.98); transition-duration: 0s; }
.f-route small { display: block; font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; opacity: .92; margin-top: 2px; }
.f-route.is-empty { background: var(--card); color: var(--ink-2); box-shadow: var(--shadow); border: 1.5px dashed var(--line-2); font-size: 17px; }
.f-route.is-empty:active { transform: none; }
.f-hint { color: var(--ink-3); font-size: .78rem; text-align: center; }
.f-empty { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; padding: 26px 16px; display: grid; gap: 4px; }
.f-empty b { font-family: var(--f-cond); font-weight: 800; font-size: 21px; }
.f-empty span { color: var(--ink-3); font-size: .9rem; }
.stop-list { display: grid; gap: 8px; }
.stop { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 11px 12px 11px 4px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); border: 1.5px solid transparent; cursor: pointer; min-width: 0; }
.stop.in-route { border-color: var(--red); }
.stop:active { transform: scale(.985); transition: transform 0s; }
.grip { color: var(--ink-3); font-size: 17px; letter-spacing: -3px; text-align: center; padding: 8px 0; touch-action: none; cursor: grab; user-select: none; opacity: .7; }
.pick { position: relative; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-cond); font-weight: 800; font-size: 15px; line-height: 1; color: var(--on-red); transition: transform .18s var(--ease), background-color .15s; }
.pick::after { content: ""; position: absolute; inset: -10px; }   /* 44 px-es koppintási felület */
.pick[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.pick:active { transform: scale(.88); transition-duration: 0s; }
.stop-main { display: flex; flex-direction: column; min-width: 0; }
.stop-main .addr { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-main .sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-pill { text-align: right; font-family: var(--f-cond); font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--red-text); }
.pay-pill small { display: block; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 10.5px; color: var(--ink-3); }
.pay-pill.ok { color: var(--green-text); font-size: 15px; }
.stop-ghost { opacity: .4; }
.f-group { padding: 4px 14px; }
.f-group summary { padding: 10px 0; }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.f-row-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-row.is-cancel { color: var(--red-text); text-decoration: line-through; }

/* ── mozgás ── */
@media (prefers-reduced-motion: no-preference) {
  .card.enter { animation: in .25s ease-out; }
  @keyframes in { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-body, .sheet.open .sheet-body { transform: none; transition: none; }
  .sheet-bg { transition: opacity .15s linear; }
  .toast, .toast.in { transform: translate(-50%, 0); transition: opacity .15s linear; }
  .btn, .tabs button, .chips button, .theme-btn, .shift-btn, .pick, .f-route { transition: none; }
  .card-body, .card.collapsed .card-body, .chev { transition: none; }
}
@media (prefers-contrast: more) {
  .card, .stop, .kpi, .panel { border-color: var(--ink-3); }
}
