/* Mobira - makieta
   Jedna rodzina pisma (Archivo) w trzech szerokościach: wąska na tablicach rejestracyjnych,
   zwykła w treści, szeroka w emblematach modeli. Kolor przewodni to lakier wybranego auta. */

@property --paint { syntax: "<color>"; inherits: true; initial-value: #173FB0; }
@property --paint-ink { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

:root {
  color-scheme: light;
  --paint: #173FB0;
  --paint-ink: #fff;
  --garage: #14181F;

  --bg: color-mix(in oklab, var(--paint) 6%, #EDEFF2);
  --surface: #FFFFFF;
  --surface-2: color-mix(in oklab, var(--paint) 5%, #F3F4F6);
  --ink: #12161C;
  --ink-2: #454D59;
  --ink-3: #667080;
  --line: rgba(18, 22, 28, .1);
  --line-2: rgba(18, 22, 28, .2);
  --accent: var(--paint);
  --accent-ink: var(--paint-ink);

  --amber: #8F5400;  --amber-fill: #F2A20C;  --amber-tint: #FFEFCF;
  --red: #BF2E1C;    --red-fill: #E5483A;    --red-tint: #FFE2DD;
  --green: #146C43;  --green-fill: #2BB673;  --green-tint: #DBF4E6;

  --lamp-bg: #11141A;
  --lamp-off: #505966;
  --lamp-amber: #FFB428;
  --lamp-red: #FF5A4D;
  --lamp-green: #3EE08D;
  --asphalt: #1A1E25;

  /* kategorie kosztów: stała kolejność, sprawdzona walidatorem palety */
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300;

  --gutter: clamp(16px, 3.2vw, 44px);
  --r-xl: 28px; --r-lg: 20px; --r-md: 12px; --r-sm: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --pop: 0 18px 50px -12px rgba(10, 14, 20, .35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --garage: #1D232C;
  --bg: color-mix(in oklab, var(--paint) 8%, #0C0F13);
  --surface: #151920;
  --surface-2: #1C212A;
  --ink: #EEF1F5;
  --ink-2: #B7BFCA;
  --ink-3: #8B95A3;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --accent: color-mix(in oklab, var(--paint) 78%, white);
  --amber: #FFBE55;  --amber-tint: #3A2A08;
  --red: #FF8478;    --red-tint: #3D1612;
  --green: #5BE0A0;  --green-tint: #0F2E20;
  --lamp-bg: #07090C;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300;
}
:root[data-scene="garage"] { --paint: var(--garage); --paint-ink: #fff; }
:root[data-theme="dark"][data-scene="garage"] { --accent: #EEF1F5; --accent-ink: #12161C; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; transition: --paint .7s cubic-bezier(.2, .7, .2, 1), --paint-ink .35s; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--paint-ink); }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ przyciski i drobne klocki */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent-ink) 16%, transparent); }
.btn--primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
/* Tło przyciemnia lakier (nie rozjaśnia go kolorem tekstu): przy jasnym tekście na średnich lakierach, np. pomarańczowym,
   domieszka tekstu obniżała kontrast poniżej 4,5 (pomiar bramki mobilnej). */
.btn--onpaint { background: color-mix(in oklab, var(--paint) 82%, black); color: var(--paint-ink); border-color: color-mix(in oklab, var(--paint-ink) 34%, transparent); }
.btn--onpaint:hover { background: color-mix(in oklab, var(--paint) 72%, black); border-color: var(--paint-ink); }
.btn--danger { color: var(--red); border-color: color-mix(in oklab, var(--red) 40%, transparent); margin-top: var(--s4); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--bar { margin: var(--s5) 0 var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 500; font-size: 13.5px; line-height: 1; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"], .chip--radio:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip:disabled { opacity: .55; cursor: default; }
/* Etykieta pozycjonowana: ukryte pole ma position: absolute, a bez tego jego blokiem zawierającym było okno dialogowe
   i fokus po kliknięciu przewijał całe okno poza treść (biały ekran, uwaga U2 z UAT). */
.chip--radio { position: relative; cursor: pointer; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.switch { appearance: none; width: 42px; height: 24px; border-radius: 12px; border: 0; background: color-mix(in oklab, var(--ink) 24%, transparent); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--surface); }
.switch:disabled { opacity: .4; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tag i, .legend i, .cats i, .tip i, .paper__legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--paint); margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); vertical-align: baseline; }

/* kontrolka: mała ciemna płytka z ikoną, która świeci albo nie */
.lamp { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--lamp-bg); color: var(--lamp-off); display: inline-grid; place-items: center; }
.lamp--amber { color: var(--lamp-amber); }
.lamp--red { color: var(--lamp-red); }
.lamp--green { color: var(--lamp-green); }
.lamp--amber .ic, .lamp--red .ic, .lamp--green .ic { filter: drop-shadow(0 0 5px currentColor); }
.lamp--sm { width: 28px; height: 28px; border-radius: 8px; }
.lamp--sm .ic { width: 16px; height: 16px; }
.lamp--lg { width: 52px; height: 52px; border-radius: 15px; }
.lamp--lg .ic { width: 26px; height: 26px; }
:root[data-theme="dark"] .lamp { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }

.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; background: var(--av-bg); color: var(--av-fg); }
.av--1 { --av-bg: #DCE5FF; --av-fg: #1F3C96; } .av--2 { --av-bg: #FFE1D2; --av-fg: #8A3610; }
.av--3 { --av-bg: #D9F2E4; --av-fg: #155C3B; } .av--4 { --av-bg: #EFE3FF; --av-fg: #5B2EA3; } .av--5 { --av-bg: #FFE9B8; --av-fg: #6B4700; }
.av--sys { --av-bg: var(--lamp-bg); --av-fg: var(--lamp-amber); }
.av--sys .ic { width: 13px; height: 13px; }
.av--lg { width: 42px; height: 42px; font-size: 15px; }
.av--sm { width: 26px; height: 26px; font-size: 11.5px; }
.av--xs { width: 22px; height: 22px; font-size: 10.5px; }

.plate { display: inline-flex; align-items: stretch; height: 40px; border-radius: 6px; background: #fff; color: #0B0D10; border: 2px solid #0B0D10; overflow: hidden; font-stretch: 68%; font-weight: 700; font-size: 26px; letter-spacing: .05em; line-height: 1; flex: none; }
.plate__eu { width: 20px; background: #1B3E9B; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 4px 0; font-size: 9px; font-stretch: 100%; letter-spacing: 0; }
.plate__eu::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.6px dotted #FFD83A; }
.plate__no { padding: 0 10px 0 8px; display: flex; align-items: center; white-space: nowrap; }
.plate--sm { height: 22px; font-size: 14px; border-width: 1.5px; border-radius: 4px; }
.plate--sm .plate__eu { width: 8px; font-size: 0; padding: 0; }
.plate--sm .plate__eu::before { display: none; }
.plate--sm .plate__no { padding: 0 6px 0 5px; }

.odo { display: inline-flex; align-items: center; gap: 8px; }
.odo__drum { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: #07090C; }
.odo__cell { width: 22px; height: 34px; overflow: hidden; border-radius: 4px; background: linear-gradient(180deg, #000 0, #262B33 42%, #262B33 58%, #000 100%); color: #F2F4F7; font-weight: 600; font-size: 22px; line-height: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.odo__cell--dim { color: #5E6672; }
.odo__cell--gap { margin-left: 4px; }
.odo__strip { display: block; transform: translateY(calc(var(--d, 0) * -34px)); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.odo__strip span { display: block; height: 34px; }
.odo__unit { font-weight: 600; font-size: 14px; color: var(--on-2); }

.meter { height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 12%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 4px; background: var(--ink-2); }
.meter--amber { background: var(--amber-tint); } .meter--amber i { background: var(--amber-fill); }
.meter--red { background: var(--red-tint); } .meter--red i { background: var(--red-fill); }

/* ------------------------------------------------------------------ górna belka */
.top, .shell { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { padding-top: 14px; position: relative; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 44px; }
.top__actions { display: flex; align-items: center; gap: 8px; }
/* Partia 18, zadanie 2: pole „Szukaj” w górnym pasku. Na szerokim ekranie pole stoi w pasku, na telefonie (do 760 px)
   zostaje lupa, a pole rozwija się pod belką na całą szerokość (atrybut data-open ustawia skrypt). Lista podpowiedzi
   to ten sam fragment co strona /szukaj (search/_results.blade.php); wyróżnienie pozycji strzałkami to aria-current. */
.search { position: static; display: flex; align-items: center; }
.search__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.search__toggle .ic { width: 20px; height: 20px; }
.search__toggle:hover { background: var(--surface-2); color: var(--ink); }
.search__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.search__field { position: relative; width: clamp(180px, 22vw, 280px); }
.search__input { height: 42px; }
.search__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: min(380px, calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 480px); overflow-y: auto; padding: 8px 10px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--pop); }
.search__list[hidden] { display: none; }
.search-results .feed { gap: 0; }
.search-results .feed li { display: block; }
.search-results .feed a { display: block; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.search-results .feed a b, .search-results .feed a span { display: block; }
.search-results .feed a span { font-size: 12.5px; color: var(--ink-3); }
.search-results .feed a:hover, .search-results .feed a[aria-current="true"] { background: var(--surface-2); }
.search-results .feed a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.search__list .panel__title { margin: 6px 0 2px; font-size: 12.5px; color: var(--ink-3); }
.search__list .hint { padding: 6px 4px; }
/* Partia 18, zadanie 5: odstępy na stronie /szukaj (przycisk od pola, wyniki od przycisku, grupa od grupy), odnośnik do pomocy
   przy braku wyników i łamanie wersów (tytuły równo, opisy bez wyrazu samotnego w ostatnim wersie). */
.panel > form[role="search"] .btnrow { margin-top: var(--s4); }
.panel > .search-results { margin-top: var(--s6); }
.panel > .search-results .search-results__group + .search-results__group { margin-top: var(--s6); }
.panel > .search-results .search-results__group .panel__title { margin-bottom: var(--s3); }
.search-results__help { margin-top: var(--s2); }
.search-results__help a { display: inline-block; min-height: 44px; padding: 10px 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.search-results__help a[aria-current="true"] { background: var(--surface-2); border-radius: var(--r-sm); }
.search-results .panel__title, .search-results .feed a b { text-wrap: balance; }
.search-results .feed a span, .search-results .hint, .search-results .lead { text-wrap: pretty; }
.help .feed a b { display: block; }
.help .panel__title, .help .feed a b, .help .steps li { text-wrap: balance; }
.help .lead, .help .hint, .help .feed span { text-wrap: pretty; }
/* Cele kotwic z wyników: wiersz kosztów (tankowanie) i wpis historii nie lądują przy samej krawędzi okna (wiersze terminów mają to wyżej). */
.fentry__when, .entry { scroll-margin-top: var(--s6); }
@media (max-width: 760px) {
  .search__toggle { display: inline-grid; }
  .search__field { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; z-index: 46; width: auto; }
  .search[data-open] .search__field { display: block; }
  .search__list { left: 0; width: auto; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brandmark { width: 30px; height: 30px; display: inline-block; flex: none; line-height: 0; }
.brandmark svg { display: block; width: 100%; height: 100%; }
.brandmark--sm { width: 22px; height: 22px; }

.cartabs { display: flex; align-items: flex-end; gap: 2px; margin-top: 14px; padding: 0 44px; overflow-x: auto; scrollbar-width: none; }
.cartabs::-webkit-scrollbar { display: none; }
.cartab { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border: 0; border-radius: 14px 14px 0 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; flex: none; }
.cartab .ic { width: 18px; height: 18px; }
.cartab:hover { color: var(--ink); background: color-mix(in oklab, var(--surface) 70%, transparent); }
.cartab[aria-current="page"] { background: var(--paint); color: var(--paint-ink); }
.cartab[aria-current="page"]::before, .cartab[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; width: 14px; height: 14px; }
.cartab[aria-current="page"]::before { left: -14px; background: radial-gradient(circle at 0 0, transparent 13.5px, var(--paint) 14px); }
.cartab[aria-current="page"]::after { right: -14px; background: radial-gradient(circle at 100% 0, transparent 13.5px, var(--paint) 14px); }
.cartab[aria-current="page"] .swatch { display: none; }
.cartab .swatch { margin: 0; width: 12px; height: 12px; }
.cartab--add { color: var(--ink-2); font-weight: 500; }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp-amber); box-shadow: 0 0 0 1.5px var(--lamp-bg); }
.dot--red { background: var(--lamp-red); }

/* ------------------------------------------------------------------ scena */
.stage { --on-2: color-mix(in oklab, var(--paint-ink) 76%, var(--paint)); position: relative; background: var(--paint); color: var(--paint-ink); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 40px) 0; overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--paint-ink) 10%, transparent); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 85% at 16% 108%, rgba(255, 255, 255, .24), transparent 62%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .14)); }
.stage--compact { padding-bottom: clamp(18px, 2.4vw, 28px); }
.stage--compact::before, .stage--garage::before { background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .12)); }
.stage__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4) var(--s8); flex-wrap: wrap; }
.stage__id { min-width: 0; }
.stage__badge { font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .012em; line-height: .94; font-size: clamp(32px, 5.4vw, 70px); text-wrap: balance; }
.stage__badge--text { text-transform: none; letter-spacing: -.012em; font-size: clamp(28px, 4vw, 52px); line-height: 1.02; max-width: 17ch; }
.stage--compact .stage__badge { font-size: clamp(26px, 3.2vw, 40px); }
.stage__sub { margin-top: 12px; color: var(--on-2); font-size: 15px; max-width: 62ch; }
.stage--compact .stage__sub { margin-top: 8px; }
.stage__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.stage__date { color: var(--on-2); font-weight: 500; }

.road { position: relative; height: 306px; margin-top: 6px; --road-y: 44px; --car-w: clamp(300px, 37%, 480px); }
.road__band { position: absolute; left: -60px; right: -60px; bottom: calc(var(--road-y) - 12px); height: 12px; background: var(--asphalt); }
.road__band::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .72) 0 18px, transparent 18px 36px); }
.road__car { position: absolute; left: 0; bottom: var(--road-y); width: var(--car-w); animation: drive 1.05s cubic-bezier(.16, .84, .3, 1) both; }
.road__lane { position: absolute; left: calc(var(--car-w) + 30px); right: 6px; bottom: var(--road-y); top: 0; }
.road__ticks { position: absolute; left: calc(var(--car-w) + 30px); right: 6px; bottom: 0; height: calc(var(--road-y) - 12px); }
.road__tick { --x: 0; position: absolute; left: calc(var(--x) * 100%); top: 8px; transform: translateX(-50%); font-size: 12.5px; font-weight: 500; color: var(--on-2); white-space: nowrap; }
.road__tick::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 5px; background: var(--on-2); }
.road__tick--now { font-weight: 700; color: var(--paint-ink); }

/* .sign celowo nie ma własnej animacji ani transformacji: słupki i tabliczki różnych znaków
   muszą dzielić jedną warstwę, żeby każdy słupek chował się za cudzą tabliczką. */
.sign { --x: 0; --i: 0; position: absolute; left: calc(var(--x) * 100%); bottom: 0; width: 0; --h: calc(var(--tier, 0) * 60px + 30px); --delay: calc(.55s + var(--i) * .08s); }
.sign__post { position: absolute; z-index: 1; left: -1px; bottom: 0; width: 2px; height: var(--h); background: color-mix(in oklab, var(--paint-ink) 62%, transparent); transform-origin: 50% 100%; animation: grow .35s ease-out backwards; animation-delay: var(--delay); }
.sign__post::after { content: ""; position: absolute; left: -4px; bottom: -6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--asphalt); }
.sign__card { position: absolute; z-index: 2; bottom: var(--h); left: -1px; display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; background: var(--surface); color: var(--ink); border-radius: 13px 13px 13px 3px; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); width: max-content; max-width: 200px; animation: pop .45s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: calc(var(--delay) + .12s); transition: transform .15s; }
.sign__card:hover { transform: translateY(-2px); }
.is-settled .sign__post, .is-settled .sign__card, .is-settled .road__car, .is-settled .car__wheel { animation: none; }
.sign--flip .sign__card { left: auto; right: -1px; border-radius: 13px 13px 3px 13px; }
.sign__txt { display: grid; min-width: 0; }
.sign__txt b { font-weight: 600; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sign__txt span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }

.roadlist { display: none; position: relative; padding: 14px 0 20px; }
.roadlist::before { content: ""; position: absolute; left: 17px; top: 24px; bottom: 34px; width: 2px; background: repeating-linear-gradient(180deg, var(--paint-ink) 0 7px, transparent 7px 14px); opacity: .45; }
.roadlist li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.roadlist a { display: grid; text-decoration: none; min-width: 0; }
.roadlist b { font-weight: 600; }
.roadlist span:not(.lamp) { font-size: 13.5px; color: var(--on-2); }
/* Bez JavaScriptu nic nie rozkłada znaków w piętrach, więc zamiast osi z nakładającymi się tabliczkami jest lista pionowa. */
html:not(.js) .road__lane, html:not(.js) .road__ticks { display: none; }
html:not(.js) .roadlist { display: block; }

/* sylwetka auta */
.car { display: block; width: 100%; height: auto; overflow: visible; }
.car__body { fill: color-mix(in oklab, var(--paint) 78%, white); stroke: var(--paint-ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.car__glass { fill: color-mix(in oklab, var(--paint) 38%, #0B0E13); stroke: var(--paint-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.car__pillar { stroke: color-mix(in oklab, var(--paint) 78%, white); stroke-width: 7; }
.car__line { fill: none; stroke: var(--paint-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .7; }
.car__line--soft { opacity: .3; }
.car__mirror { fill: color-mix(in oklab, var(--paint) 78%, white); stroke: var(--paint-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.car__head { fill: #FFF3C4; stroke: var(--paint-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.car__tail { fill: #FF5A4D; stroke: var(--paint-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.car__clad { fill: none; stroke: #20242B; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.car__dark { fill: #20242B; }
.car__spokes--thin line { stroke-width: 2; }
.car__tyre { fill: #14171C; }
.car__rim { fill: #E3E7EC; }
.car__spokes line { stroke: #7C8693; stroke-width: 3.2; stroke-linecap: round; }
.car__hub { fill: #7C8693; }
.car__wheel { transform-box: fill-box; transform-origin: center; }
.road__car .car__wheel { animation: spin 1.05s cubic-bezier(.16, .84, .3, 1) both; }

@keyframes drive { from { transform: translateX(-70%); } to { transform: none; } }
@keyframes spin { from { transform: rotate(-620deg); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* garaż: stanowiska w kolorach lakierów */
.bays { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 372px)); gap: 14px; margin-top: 26px; padding-bottom: clamp(18px, 3vw, 36px); }
.bay { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; border-radius: 22px; border: 0; background: var(--paint); color: var(--paint-ink); text-decoration: none; text-align: left; min-height: 318px; transition: transform .2s; }
.bay:hover { transform: translateY(-4px); }
.bay__who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: color-mix(in oklab, var(--paint-ink) 80%, var(--paint)); }
.bay__car { display: block; margin: auto -4px 0; }
.bay__name { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 21px; line-height: 1; letter-spacing: .01em; }
.bay__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.bay__status { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid color-mix(in oklab, var(--paint-ink) 22%, transparent); font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.bay__txt { display: grid; margin-left: 4px; min-width: 0; }
.bay__txt b { font-weight: 600; }
.bay__txt em { font-style: normal; font-weight: 500; font-size: 13px; color: color-mix(in oklab, var(--paint-ink) 80%, var(--paint)); }
.bay--add { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .34); color: #fff; align-items: flex-start; justify-content: flex-end; }
.bay--add .ic { width: 30px; height: 30px; margin-bottom: auto; }
.bay--add > span:last-child { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.bay--add:hover { border-color: #fff; }

/* ------------------------------------------------------------------ zakładki sekcji */
.tabs { display: flex; gap: 2px; margin: 14px 0 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.tab__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lamp-bg); color: var(--lamp-amber); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.tab__n--new { background: var(--ink); color: var(--surface); }

/* ------------------------------------------------------------------ układ widoków */
.view { padding-bottom: 80px; display: grid; gap: var(--s5); }
.shell > .view:first-of-type { margin-top: 0; }
:root[data-scene="garage"] .view { margin-top: var(--s5); }
.cols { display: grid; gap: var(--s5); grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stack { display: grid; gap: var(--s5); }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px 24px; min-width: 0; }
:root[data-theme="dark"] .panel { box-shadow: inset 0 0 0 1px var(--line); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); min-height: 34px; }
.panel__title { font-size: 19px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.2; }
.panel__link { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.panel--empty { display: grid; justify-items: start; gap: var(--s3); padding: 40px 32px; }
.subhead { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin: var(--s6) 0 var(--s1); }
.subhead--first:first-of-type { margin-top: var(--s2); }
.minihead { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin: var(--s5) 0 var(--s2); }
.lead { color: var(--ink-2); max-width: 58ch; text-wrap: pretty; margin-bottom: var(--s4); }
.lead .ic { width: 16px; height: 16px; vertical-align: -3px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: var(--s4); max-width: 60ch; text-wrap: pretty; }
/* Partia 16, zadanie 14: pozycja listy z kilkoma podpisami w jednym wersie tekstu (np. zgłoszenia kierowcy) nie zostawia jednego wyrazu w ostatnim wersie. */
.list__item { text-wrap: pretty; }

.notice { display: flex; align-items: center; gap: var(--s3); padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px dashed var(--line-2); }
.notice p { flex: 1; min-width: 0; }

.rows .row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 600; }
.row__sub { font-size: 13px; color: var(--ink-2); }
.row__link { display: block; color: inherit; text-decoration: none; }
.row__link .row__title, .row__link .row__sub { display: block; }
.row__link:hover .row__title, .row__link:focus-visible .row__title { text-decoration: underline; }
.row__cost { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due { text-align: right; flex: none; }
.due b { display: block; font-weight: 700; white-space: nowrap; }
.due span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.due--red b { color: var(--red); } .due--amber b { color: var(--amber); } .due--green b { color: var(--green); }
.daybox { width: 44px; text-align: center; flex: none; line-height: 1.1; }
.daybox b { display: block; font-size: 20px; font-weight: 700; font-stretch: 112%; }
.daybox span { font-size: 12px; color: var(--ink-2); }
.docico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--ink-2); flex: none; }

.parts { display: grid; gap: 15px; }
.part { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.part__name { font-weight: 600; }
.part__note { font-size: 13px; color: var(--ink-2); }
.part .meter { grid-column: 1 / -1; }
/* Partia 5, zadanie 2a: wiersz podzespołu z prognozy. Nazwa prowadzi do strony podzespołu, znacznik „szacunek” stoi
   obok nazwy, a opis (całe zdanie) zajmuje pełny wers pod paskiem. */
.part .part__note { grid-column: 1 / -1; }
a.part__name { grid-column: 1; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.part__name:hover { text-decoration: underline; }
.part__est { grid-column: 2; justify-self: end; }
/* Partia 5, zadanie 2b: szybkie przyciski wpisu (wymiana, uzupełnienie, kontrola) w pełnym wersie pod opisem. */
.part .part__acts { grid-column: 1 / -1; }
.panel__title--sub { margin-top: var(--s5); }

.figure b { display: block; font-size: 34px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.figure span { color: var(--ink-2); font-size: 14px; }
.spark { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 108px; margin-top: var(--s5); }
.spark__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.spark__col i { display: block; width: min(18px, 62%); height: calc(var(--h) * .8%); min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in oklab, var(--ink) 26%, transparent); }
.spark__col em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.whos { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s8); }
.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; font-weight: 600; line-height: 1.25; }
.who div span { font-size: 13px; color: var(--ink-2); }
.who__ch { display: inline-flex; gap: 4px; color: var(--ink-3); margin-left: 4px; }
.who__ch .ic { width: 16px; height: 16px; }

/* terminy */
.trow { display: grid; grid-template-columns: 36px minmax(0, 1.5fr) minmax(0, 1fr) 96px auto auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rows .trow:first-child { border-top: 0; }
.trow__main b { font-weight: 600; margin-right: 8px; }
.trow__main > span:last-child { display: block; font-size: 13px; color: var(--ink-2); }
.trow__last { font-size: 13.5px; }
.trow__last span { display: block; font-size: 12.5px; color: var(--ink-3); }
.trow__track span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; }
.trow .due { min-width: 112px; }
.opts li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 11px 0; border-top: 1px solid var(--line); }
.opts li:first-child { border-top: 0; }
.opts li > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.opts .ic { width: 18px; height: 18px; color: var(--ink-3); }

.mail { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px 16px; font-size: 14px; display: grid; gap: 10px; }
.mail__bar { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mail__bar b { display: block; line-height: 1.2; }
.mail__bar span:not(.brandmark) { font-size: 12.5px; color: var(--ink-3); }
.mail__subject { font-weight: 700; font-size: 16px; font-stretch: 108%; line-height: 1.25; }
.mail__dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.mail__dl dt { color: var(--ink-3); }
.mail__dl dd { font-weight: 600; }
.mail__act { display: flex; flex-wrap: wrap; gap: 8px; }
.sms { margin-top: var(--s3); padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: 13.5px; }
.sms > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.sms .ic { width: 14px; height: 14px; }

/* historia */
.stats { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s8); padding: var(--s2) 0 var(--s1); }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { font-weight: 700; font-size: 17px; }
.stats--big { gap: var(--s5) clamp(24px, 4vw, 56px); align-items: flex-end; margin-bottom: var(--s6); }
.stats--big dd { font-size: 20px; font-stretch: 108%; }
.stats--big dd.hero { font-size: clamp(40px, 5vw, 56px); font-stretch: 118%; letter-spacing: -.02em; line-height: 1; }
.year { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s6) 0 var(--s2); }
.year h3 { font-size: 30px; font-weight: 800; font-stretch: 125%; line-height: 1; }
.year span { font-weight: 600; color: var(--ink-2); }
.entry { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.entry__date b { display: block; font-size: 17px; font-weight: 700; }
.entry__date span { font-size: 13px; color: var(--ink-2); }
.entry__title { font-size: 16.5px; font-weight: 650; margin: 3px 0 0; }
.entry__items { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 520px; }
.entry__items li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.entry__items li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); align-items: center; }
.entry__by { display: inline-flex; align-items: center; gap: 6px; }
.filechip { display: inline-flex; gap: 5px; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.filechip .ic { width: 14px; height: 14px; }
.entry__cost { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* koszty */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: var(--s4); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.chart { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 8px; }
.chart__y { position: relative; height: 240px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart__y span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.chart__plot { position: relative; height: 240px; display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1px solid var(--line-2); }
.chart__grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.col { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; height: 100%; padding: 0; border: 0; background: none; cursor: default; }
.col:hover, .col:focus-visible { background: color-mix(in oklab, var(--ink) 5%, transparent); border-radius: 6px 6px 0 0; }
.col i { display: block; width: min(24px, 58%); height: calc(var(--h) * 1%); min-height: 2px; flex: none; }
.col i:last-child { border-radius: 4px 4px 0 0; }
.chart__x { grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); font-size: 12px; color: var(--ink-3); text-align: center; padding-top: 7px; }
.tip { position: absolute; top: 0; z-index: 5; pointer-events: none; transform: translate(-50%, -8px); background: var(--ink); color: var(--surface); padding: 10px 12px; border-radius: 10px; font-size: 12.5px; min-width: 176px; display: grid; gap: 4px; box-shadow: var(--pop); }
.tip b { font-size: 13px; }
.tip span { display: flex; align-items: center; gap: 7px; }
.tip em { font-style: normal; margin-left: auto; padding-left: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip__sum { border-top: 1px solid color-mix(in oklab, var(--surface) 26%, transparent); padding-top: 5px; margin-top: 2px; font-weight: 600; }
.cats { width: 100%; border-collapse: collapse; }
.cats th, .cats td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.cats tr:first-child th, .cats tr:first-child td { border-top: 0; }
.cats th i { margin-right: 9px; }
.cats td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cats .cats__pct { width: 48px; color: var(--ink-3); font-weight: 500; }

/* dane i dokumenty */
.dl > div { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dl > div:first-child { border-top: 0; }
.dl dt { color: var(--ink-2); font-size: 14px; }
.dl dd { font-weight: 600; overflow-wrap: anywhere; }
.drop { display: grid; justify-items: center; gap: 2px; width: 100%; margin-top: var(--s4); padding: 20px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-2); text-align: center; }
.drop:hover { border-color: var(--ink-3); background: var(--surface-2); }
.drop b { color: var(--ink); font-weight: 600; }
.drop span { font-size: 13px; }

/* raport */
.pick { display: grid; gap: 8px; }
.pick__opt { display: grid; gap: 2px; text-align: left; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; }
.pick__opt b { font-weight: 650; }
.pick__opt span { font-size: 13px; color: var(--ink-2); }
.pick__opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
/* Rodzaje raportu na stronie „Raport”: przycisk pobrania i wybór okresu pod opisem. */
.pick__opt > .btnrow, .pick__opt > .field { margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field > span, .field > legend, .field > .field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 0; }
.field > legend { margin-bottom: 6px; }
/* Pole wymagane (RequiredMarks): gwiazdka przy etykiecie i jedno zdanie objaśnienia na górze formularza. */
.req { color: var(--red); margin-left: 2px; }
.req-note { font-size: 13px; color: var(--ink-3); margin: 0 0 var(--s3); }
.panel > .field { margin-top: var(--s4); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.input { height: 44px; width: 100%; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px; font-weight: 500; font-size: 15px; min-width: 0; }
.input::placeholder { color: var(--ink-3); font-weight: 400; }
.input--sm { height: 36px; width: auto; font-size: 13.5px; border-radius: 10px; }
.input--xl { height: 64px; font-size: 30px; font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.input--fake { display: flex; align-items: center; color: var(--ink-3); font-weight: 400; font-size: 13px; height: 38px; }
.recips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); align-items: center; }
.recip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; }

.paperwrap { container-type: inline-size; display: grid; gap: 22px; }
.paper { position: relative; display: flex; flex-direction: column; aspect-ratio: 210 / 297; background: #fff; color: #14171C; border-radius: 4px; font-size: clamp(5.6px, 1.6cqw, 11.5px); line-height: 1.4; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(10, 14, 20, .45); overflow: hidden; }
/* strona 1: pas w kolorze lakieru z autem stojącym na jezdni */
.paper__band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 2em; background: var(--paint); color: var(--paint-ink); padding: 3.4em 5.4em 0; }
.paper__band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .8em; background: #1A1E25; }
.paper__band::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: .34em; height: .12em; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 1.4em, transparent 1.4em 2.8em); }
.paper__bandtxt { display: flex; flex-direction: column; justify-content: space-between; gap: 3em; padding-bottom: 3.2em; min-width: 0; }
.paper__brand { display: inline-flex; align-items: center; gap: .8em; }
.paper__brand .brandmark { width: 2.5em; height: 2.5em; }
.paper__brand .brand__txt b { font-size: 1.4em; }
.paper__brand .brand__txt small { font-size: .8em; margin-top: .3em; color: color-mix(in oklab, var(--paint-ink) 78%, var(--paint)); }
.paper h3 { font-size: 2.8em; font-stretch: 122%; font-weight: 800; letter-spacing: -.012em; line-height: 1; }
.paper__bandtxt p { margin-top: .8em; font-size: 1.08em; color: color-mix(in oklab, var(--paint-ink) 84%, var(--paint)); }
.paper__bandcar { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 1.2em; padding-bottom: .8em; }
.paper__bandcar .car { width: 100%; }
.paper .plate--sm { height: 1.9em; font-size: 1.2em; border-width: .12em; border-radius: .3em; }
.paper .plate--sm .plate__eu { width: .7em; }
.paper .plate--sm .plate__no { padding: 0 .5em 0 .4em; }
.paper__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 2.6em 5.4em 0; }
.paper__figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6em; }
.paper__figs > div { border-top: .26em solid var(--paint); padding-top: .7em; }
.paper__figs dd { font-size: 1.7em; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.paper dt { color: #667080; font-size: .86em; }
.paper h4 { display: flex; align-items: center; gap: .7em; font-size: 1.08em; font-weight: 700; font-stretch: 112%; margin: 2em 0 .8em; }
.paper h4::before { content: ""; width: 1.5em; height: .26em; border-radius: .13em; background: var(--paint); box-shadow: 0 0 0 1px rgba(20, 23, 28, .16); }
.paper__kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em 1.6em; }
.paper__kv dd { font-weight: 600; overflow-wrap: anywhere; }
.paper table { width: 100%; border-collapse: collapse; font-size: .93em; }
.paper th { text-align: left; font-weight: 600; color: #667080; padding: .5em .7em .5em 0; border-bottom: 1px solid #C9CED6; font-size: .9em; white-space: nowrap; }
.paper td { padding: .72em .7em .72em 0; border-bottom: 1px solid #E6E8EC; vertical-align: top; }
.paper td span { display: block; color: #667080; font-size: .92em; }
.paper td b i { display: inline-block; width: .62em; height: .62em; border-radius: .16em; margin-right: .5em; }
.paper .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper__stampcell { position: relative; width: 7.2em; }
.stamp { --rot: -8deg; position: absolute; left: .1em; top: -.35em; width: 4em; height: 4em; color: #2A4BA6; opacity: .78; transform: rotate(var(--rot)); mix-blend-mode: multiply; }
.paper tr:nth-child(even) .stamp { left: 3.1em; }
.stamp circle { fill: none; stroke: currentColor; }
.stamp text { fill: currentColor; font-family: var(--font); font-weight: 700; }
.paper__more { margin-top: .9em; color: #667080; font-size: .9em; }
/* strona 2: przebieg, paliwo, koszty, stan */
.paper__strip { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2em; padding: 2.4em 5.4em 1.5em; border-bottom: .2em solid #14171C; }
.paper__strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: -.2em; width: 1.6em; background: var(--paint); }
.paper__strip span { display: grid; color: #49515D; }
.paper__strip b { color: #14171C; font-size: 1.35em; font-stretch: 116%; }
.paper__two { display: grid; grid-template-columns: 1.55fr 1fr; gap: 3.4em; }
.paper__two h4 { margin-top: 0; }
.pbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5em; align-items: end; height: 11em; border-bottom: 1px solid #C9CED6; }
.pbars span { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.pbars i { display: block; width: 74%; min-height: .15em; background: #B9C0CA; border-radius: .3em .3em 0 0; }
.pbars .is-hi i { background: #14171C; }
.pbars b { font-size: .82em; font-weight: 700; margin-bottom: .3em; white-space: nowrap; }
.pbars em { position: absolute; top: 100%; margin-top: .45em; font-style: normal; font-size: .8em; color: #667080; }
.paper__note { margin-top: 2.2em; color: #49515D; font-size: .94em; }
.paper__big { display: flex; align-items: baseline; gap: .25em; font-size: 3.6em; font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; }
.paper__big small { font-size: .27em; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: #667080; }
.paper__rows { margin-top: 1.3em; }
.paper__rows > div { display: flex; justify-content: space-between; gap: 1em; padding: .5em 0; border-top: 1px solid #E6E8EC; }
.paper__rows dt { font-size: 1em; }
.paper__rows dd { font-weight: 700; }
.segbar { display: flex; gap: .18em; height: 1.5em; border-radius: .4em; overflow: hidden; }
.segbar i { display: block; min-width: .3em; }
.paper__legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3.4em; margin-top: .8em; }
.paper__legend li { display: grid; grid-template-columns: auto 1fr auto 2.8em; gap: .7em; align-items: center; padding: .45em 0; border-bottom: 1px solid #E6E8EC; }
.paper__legend i { width: .8em; height: .8em; border-radius: .2em; }
.paper__legend b { font-variant-numeric: tabular-nums; }
.paper__legend em { font-style: normal; color: #667080; text-align: right; }
.paper__parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em 3.4em; }
.paper__parts > div { display: grid; grid-template-columns: 1fr auto; gap: .3em 1em; align-items: baseline; }
.paper__parts span { font-weight: 600; }
.paper__parts em { font-style: normal; color: #667080; font-size: .9em; }
.pmeter { grid-column: 1 / -1; height: .5em; border-radius: .25em; background: #E6E8EC; overflow: hidden; }
.pmeter i { display: block; height: 100%; background: #14171C; border-radius: .25em; }
.paper__road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 1.7em; }
.paper__road::before { content: ""; position: absolute; left: 0; right: 0; top: .45em; height: .26em; border-radius: .13em; background: #1A1E25; }
.paper__road li { position: relative; display: grid; padding-right: 1em; }
.paper__road li::before { content: ""; position: absolute; left: 0; top: -1.62em; width: .95em; height: .95em; border-radius: 50%; background: var(--paint); border: .2em solid #1A1E25; }
.paper__road b { font-weight: 700; }
.paper__road span { color: #49515D; font-size: .94em; line-height: 1.25; }
.paper__verify { margin-top: auto; display: flex; gap: 1.6em; align-items: center; padding: 1.3em 1.6em; background: #F1F3F5; border-radius: 1em; }
.paper__verify .qr { width: 6.2em; height: 6.2em; border-radius: .5em; flex: none; }
.paper__verify p { color: #49515D; }
.paper__verify b { color: #14171C; }
.paper__foot { display: flex; justify-content: space-between; gap: 1em; margin: 1.6em 5.4em 0; padding: 1em 0 2.2em; color: #667080; font-size: .84em; border-top: 1px solid #E6E8EC; }

/* osoby */
.people .person { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.people .person:first-child { border-top: 0; }
.person__main { flex: 1 1 180px; min-width: 0; }
.person__main b { display: block; font-weight: 600; }
.person__main span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.person__gets { flex: 1 1 150px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-width: 0; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.invite select.input { width: auto; }
/* position: relative trzyma w środku ukryte etykiety dla czytników ekranu (.sr), inaczej rozpychają stronę */
.tablewrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.matrix .abbr { display: none; }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.matrix th, .matrix td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: center; }
.matrix thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.matrix th[scope="row"] { text-align: left; font-weight: 500; padding-left: 0; }
.matrix .yes .ic { width: 18px; height: 18px; vertical-align: middle; }
.matrix .no::after { content: ""; display: inline-block; width: 10px; height: 2px; border-radius: 1px; background: var(--line-2); vertical-align: middle; }
.matrix .some { font-size: 12.5px; color: var(--ink-2); }
.sharelink { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.qr { width: 112px; height: 112px; border-radius: 10px; flex: none; }
.sharelink code { display: block; font: 600 14px var(--font); margin-bottom: 10px; overflow-wrap: anywhere; }
.phone { width: min(280px, 100%); margin: 0 auto; padding: 9px; border-radius: 36px; background: #0A0C10; }
.phone__screen { border-radius: 28px; overflow: hidden; background: var(--surface); }
.phone__hero { background: var(--paint); color: var(--paint-ink); padding: 26px 18px 16px; display: grid; gap: 8px; justify-items: start; }
.phone__hero b { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 18px; line-height: 1; }
.phone__body { padding: 16px 18px 20px; display: grid; gap: 12px; font-size: 13.5px; }
.phone__body .btn { width: 100%; }
.phone__body small { color: var(--ink-3); font-size: 12px; text-align: center; }
.phone__list { display: grid; gap: 8px; }
.phone__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.phone__list .ic { width: 20px; height: 20px; padding: 3px; border-radius: 6px; border: 1.5px solid var(--line-2); color: transparent; }
.phone__list .on .ic { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.feed { display: grid; gap: 14px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed p { font-size: 14px; }
.feed p span { display: block; font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ powiadomienia w aplikacji */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; }
.bell .ic { width: 20px; height: 20px; }
.bell:hover { background: var(--surface-2); }
.bell:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bell__n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notif li { flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.notif li:last-child { padding-bottom: 0; border-bottom: 0; }
.notif p { flex: 1 1 240px; min-width: 0; }
.notif__title { display: block; }
.notif--read p { color: var(--ink-2); }
.notif--unread .av--sys { box-shadow: 0 0 0 2px var(--accent); }
.notif__head { flex-wrap: wrap; row-gap: var(--s2); }
.notif__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .notif__acts { width: 100%; padding-left: 32px; } }

/* ------------------------------------------------------------------ okna */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); width: min(600px, calc(100vw - 24px)); max-height: min(90dvh, 860px); box-shadow: var(--pop); overflow: hidden; }
dialog[open] { display: flex; animation: rise .22s ease-out; }
dialog::backdrop { background: rgba(8, 10, 14, .55); backdrop-filter: blur(3px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dlg { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 10px 24px; }
.dlg__head h2 { font-size: 21px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; outline: none; }
.dlg__body { padding: 6px 24px 20px; overflow-y: auto; display: grid; gap: var(--s4); }
.dlg__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.preview { background: var(--paint); border-radius: 18px; padding: 18px 28px 0; transition: background-color .3s; }
.preview .car { max-width: 340px; margin: 0 auto; }
.paints { display: flex; flex-wrap: wrap; gap: 10px; }
.paintdot { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
.paintdot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.paintdot:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 3px; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; gap: 14px; padding: 15px 2px; text-decoration: none; font-weight: 600; font-size: 16px; }
.menu a .ic:last-child { margin-left: auto; color: var(--ink-3); width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 14px; font-weight: 500; font-size: 14px; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--pop); transition: transform .25s, opacity .25s; text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ------------------------------------------------------------------ dolna nawigacja (telefon) */
.bottomnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 90%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bn { display: grid; justify-items: center; gap: 3px; padding: 6px 2px 2px; border: 0; background: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.bn .ic { width: 22px; height: 22px; }
.bn[aria-current="page"] { color: var(--ink); }
.bn__plus { width: 50px; height: 50px; margin-top: -22px; border-radius: 17px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px color-mix(in oklab, var(--accent-ink) 16%, transparent); }
.bn__plus .ic { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ szerokości */
@media (max-width: 1180px) {
  .trow { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  .trow__last, .trow__track { display: none; }
}
@media (max-width: 1020px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .paperwrap { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 920px) {
  .road { height: auto; --car-w: min(440px, 92%); display: flex; flex-direction: column; }
  .road__car { position: relative; bottom: auto; margin: 52px auto 0; order: 1; }
  .road__band { position: relative; bottom: auto; left: auto; right: auto; margin: 0 -60px; order: 2; }
  .road__lane { display: none; }
  /* Oś z podpisami miesięcy zostaje pod pasem jako podziałka (uwaga U14); znaki zastępuje lista poniżej. */
  .road__ticks { position: static; height: auto; order: 3; display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px 0; }
  .road__tick { position: relative; left: auto; top: auto; transform: none; }
  .roadlist { display: block; }
}
@media (max-width: 760px) {
  body { padding-bottom: 86px; }
  .bottomnav { display: grid; }
  .tabs, #themeToggle .btn__txt { display: none; }
  .top { padding-top: 10px; }
  .cartabs { padding: 0 var(--gutter); margin: 10px calc(var(--gutter) * -1) 0; }
  .cartab { height: 42px; padding: 0 13px; }
  .cartab .plate { display: none; }
  .shell { padding-left: 0; padding-right: 0; }
  .stage { border-radius: 0 0 24px 24px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .view { padding: var(--s4) var(--gutter) 40px; gap: var(--s4); }
  :root[data-scene="garage"] .view { margin-top: 0; }
  .cols, .stack { gap: var(--s4); }
  .panel { padding: 18px 16px 20px; border-radius: 18px; }
  .stage__meta { width: 100%; }
  .row__act .btn__txt { display: none; }
  .row__act { width: 36px; padding: 0; }
  .rows .row { gap: 11px; }
  .trow { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 10px; }
  .trow .row__act { grid-column: 2 / -1; width: auto; justify-self: start; padding: 0 12px; }
  .trow .row__act .btn__txt { display: inline; }
  .entry { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .entry__date { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .entry__body { grid-column: 1; }
  .bays { grid-template-columns: 1fr; }
  .bay { min-height: 0; }
  .bay__car { max-width: 300px; margin: 6px 0 0; }
  .invite { grid-template-columns: 1fr; }
  .invite select.input { width: 100%; }
  .matrix { min-width: 0; font-size: 13px; }
  .matrix th, .matrix td { padding: 9px 3px; }
  .matrix thead th { font-size: 11.5px; }
  .matrix .full { display: none; }
  .matrix .abbr { display: inline; }
  .matrix .some { font-size: 11.5px; line-height: 1.2; }
  .field2 { grid-template-columns: 1fr 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: 0; }
  .chart { grid-template-columns: 34px minmax(0, 1fr); }
  .chart__y, .chart__plot { height: 200px; }
  .notice { flex-wrap: wrap; }
  .toast { bottom: 96px; }
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .dlg__foot .btn { flex: 1; }
  .due span { white-space: normal; }
}
@media (max-width: 420px) {
  .plate:not(.plate--sm) { height: 34px; font-size: 22px; }
  .odo__cell { width: 19px; }
  .whos { gap: var(--s3) var(--s5); }
}

@media (prefers-reduced-motion: reduce) {
  html { transition: none; scroll-behavior: auto; }
  .road__car, .road__car .car__wheel, .sign__post, .sign__card, dialog[open] { animation: none; }
  .odo__strip, .bay, .toast, .switch, .switch::after { transition: none; }
}

/* ================================================================== wersja 2: marka, garaże, tankowania, sylwetki
   Tu są wyłącznie NOWE selektory. Reguły dla selektorów istniejących wcześniej zmieniamy w ich miejscu,
   bo ten blok stoi po zapytaniach o szerokość i nadpisałby ich warianty na telefon. */

/* marka */
.brand__txt { display: grid; line-height: 1; }
.brand__txt b { font-weight: 700; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; }
.brand__txt small { margin-top: 3px; font-size: 10.5px; font-weight: 500; font-stretch: 100%; letter-spacing: .01em; color: var(--ink-3); }

/* akcje na scenie auta */
.stage__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--inv { background: var(--paint-ink); color: var(--paint); border-color: transparent; }
.btn--inv:hover { filter: brightness(.93); border-color: transparent; }
.ask { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklab, var(--paint-ink) 11%, transparent); border: 1px dashed color-mix(in oklab, var(--paint-ink) 42%, transparent); }
.ask__txt { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 0; }
.ask .input { width: 150px; height: 38px; background: #fff; color: #12161C; border-color: transparent; font-weight: 700; font-variant-numeric: tabular-nums; }
.ask .input::placeholder { color: #8B95A3; font-weight: 500; }
.road__edit { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid color-mix(in oklab, var(--paint-ink) 32%, transparent); background: transparent; color: var(--paint-ink); font-size: 12.5px; font-weight: 600; opacity: .8; }
.road__edit .ic { width: 14px; height: 14px; }
.road__edit:hover { opacity: 1; background: color-mix(in oklab, var(--paint-ink) 12%, transparent); }

/* garaże */
.gbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .26); background: transparent; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.gchip .ic { width: 16px; height: 16px; }
.gchip span { font-size: 12.5px; font-weight: 500; opacity: .6; }
.gchip:hover { border-color: #fff; }
.gchip[aria-current="page"] { background: #fff; color: #12161C; border-color: #fff; }
.gchip--add { border-style: dashed; color: rgba(255, 255, 255, .82); }
.stage__date .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.insight { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); }
.insight .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.insight b { color: var(--ink); }
.cartable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cartable thead th { text-align: left; vertical-align: bottom; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink-3); }
.cartable tbody th, .cartable td { padding: 14px 14px 14px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.cartable tbody tr:first-child th, .cartable tbody tr:first-child td { border-top: 0; }
.cartable tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.cartable tbody th a { display: inline-flex; align-items: center; margin-right: 10px; text-decoration: none; }
.cartable tbody th a b { font-weight: 700; }
.cartable tbody th .plate { vertical-align: middle; }
.cartable th.num, .cartable td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cartable td.num { font-weight: 600; }
.cartable th:last-child, .cartable td:last-child { padding-right: 0; }
.mini { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 2px; width: 204px; height: 44px; border-bottom: 1px solid var(--line-2); }
.cartable .dots { margin-right: 6px; vertical-align: middle; }
.panel--even { align-self: stretch; }
.mini i { display: block; height: calc(var(--h, 0) * 1%); border-radius: 2px 2px 0 0; background: color-mix(in oklab, var(--ink) 26%, transparent); }
.mini i.is-hi { background: var(--ink); }

/* przebieg i paliwo */
.spark__col--hi i { background: var(--ink); }
.fills { margin-top: var(--s4); }
.fills li { display: grid; grid-template-columns: 1fr auto 52px; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fills li span:nth-child(2) { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fills b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ftable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.ftable th { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.ftable td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ftable tbody tr:first-child td { border-top: 0; }
.ftable td span { display: block; font-size: 12.5px; color: var(--ink-3); }
.ftable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ftable th:last-child, .ftable td:last-child { padding-right: 0; }
.calc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.calc span { display: block; font-size: 12.5px; color: var(--ink-3); }
.calc b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
/* Partia 9, zadanie 3: karta „Rozpoznaliśmy z numeru VIN” nad kolumnami pulpitu i strony danych. */
.ident { display: grid; gap: var(--s3); }
.ident > .panel__head { margin-bottom: 0; }
.ident__origin { font-weight: 600; overflow-wrap: anywhere; }
.ident__hints, .ident__rows { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.ident__hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--amber-tint); color: var(--ink); text-wrap: pretty; }
.ident__hint .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--amber); }
.ident__hint a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; }
.ident__model > div { border-top: 0; padding-top: 0; }
.ident__form .hint { margin: 0 0 var(--s2); }
.ident__rows .check { align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); }
.ident__rows b { font-weight: 600; color: var(--ink-2); }
.ident__current { display: block; font-size: 13px; color: var(--ink-3); }
/* Partia 10, zadanie 1 (D117): blok „Sprawdź w sieci” z informacją, odnośnikiem do polityki i polem zgody; wiersz
   zgody w panelu zarządzania pojazdem. Wyłącznie tokeny istniejące. */
.ident__check { display: grid; gap: var(--s2); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.ident__check p { margin: 0; max-width: 62ch; }
.ident__check-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.ident__more { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; color: var(--ink); font-weight: 600; }
.ident__consent { display: grid; gap: var(--s2); justify-items: start; }
.ident__consent .check { align-items: center; min-height: 44px; color: var(--ink); }
.ident__consent .field__error { margin-top: 0; }
.ident-consent { display: grid; gap: var(--s2); justify-items: start; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.ident-consent p { margin: 0; }
/* Sekcje paliw okna wpisu (partia 6, zadanie 2): sekcja z odznaczonym przełącznikiem chowa pola bez skryptu. */
.fill { display: grid; gap: var(--s3); margin: 0; min-width: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; }
.fill__title { float: left; width: 100%; padding: 0; font-weight: 600; }
.fill__on { font-weight: 600; color: var(--ink); }
.fill:has(> .fill__on input:not(:checked)) > .fill__body { display: none; }
.fill__body { gap: var(--s3); }
.fill .fold > summary { min-height: 44px; }
.calc--sum { grid-template-columns: 1fr; }

/* wybór sylwetki */
.bodies { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bodyopt { position: relative; display: grid; align-content: end; gap: 6px; padding: 12px 8px 8px; border-radius: 14px; background: var(--paint); color: var(--paint-ink); font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; opacity: .55; transition: background-color .25s, opacity .15s; }
.bodyopt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bodyopt:hover { opacity: .85; }
.bodyopt:has(input:checked) { opacity: 1; outline: 2.5px solid var(--ink); outline-offset: 2px; }
.bodyopt:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 4px; }
.lookcard { margin-bottom: var(--s3); padding: 18px 22px 0; border-radius: 16px; background: var(--paint); }
.lookcard .car { max-width: 320px; margin: 0 auto; }

/* arkusz "co dodajesz" */
.menu--big li + li { border-top: 1px solid var(--line); }
.menu--big button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 2px; border: 0; background: none; text-align: left; }
.menu--big button > .ic:first-child { width: 24px; height: 24px; }
.menu--big button > .ic:last-child { width: 18px; height: 18px; color: var(--ink-3); }
.menu--big span { display: grid; flex: 1; }
.menu--big b { font-size: 16px; font-weight: 650; }
.menu--big small { font-size: 13px; color: var(--ink-2); }
.matrix--2 { min-width: 0; }
.matrix--3 { min-width: 0; }
.matrix--3 td, .matrix--3 thead th:not(:first-child) { width: 22%; }
/* Poziom udostępnienia: pigułka osoby z dodawaniem wpisów i znikający przełącznik kosztów przy tym poziomie. */
.pill--accent { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--ink); }
.dlg:has(input[name="level"][value="contribute"]:checked) .share-costs { display: none; }

@media (max-width: 900px) {
  .cartable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cartable, .cartable tbody { display: block; }
  .cartable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
  .cartable tbody tr:first-child { border-top: 0; }
  .cartable tbody th, .cartable td { display: block; padding: 0; border: 0; white-space: normal; }
  .cartable th.num, .cartable td.num { text-align: left; }
  .cartable tbody th, .cartable__bars { grid-column: 1 / -1; }
  .cartable td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .mini { width: 100%; height: 46px; }
}
@media (max-width: 920px) {
  .road__edit { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .stage__actions { width: 100%; }
  .stage__actions .btn { flex: 1; padding: 0 10px; }
  /* Pytanie o przebieg: tekst w całym wierszu, pod nim pole i przycisk (pole obok tekstu kurczyło się do samych strzałek). */
  .ask__txt { flex-basis: 100%; }
  .ask .input { flex: 1 1 140px; width: auto; }
  /* Termin w wierszu listy („przekroczone o 310 km”) łamie się zamiast ściskać nazwę do kilku znaków w wersie. */
  .rows .row .due { max-width: 46%; }
  .rows .row .due b { white-space: normal; }
  .gbar { margin-bottom: 16px; }
  .bodies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .paper__two { grid-template-columns: 1fr; gap: 2em; }
}

/* kafel auta w garażu: link do pulpitu i przyciski szybkiego dodawania pod spodem */
.bay__link { display: flex; flex-direction: column; flex: 1; gap: 10px; min-height: 0; color: inherit; text-decoration: none; }
.bay__quick { display: flex; gap: 8px; margin-top: 4px; }
.bay__quick .btn { flex: 1; padding: 0 8px; }
.bay__quick .btn .ic { width: 16px; height: 16px; }
.dlg__head > div { min-width: 0; }
.dlg__for { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: 13.5px; color: var(--ink-2); }
.dlg__for .swatch { margin-right: 0; }

/* ------------------------------------------------------------------ dopiski aplikacji (poza makietą) */
/* Komunikat o błędach walidacji nad formularzem */
.flash { border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; }
.flash--err { background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--red) 30%, transparent); }
.flash--err p { font-weight: 700; }
.flash--err ul { margin-top: 4px; padding-left: 18px; list-style: disc; }

/* Układ gościa: ciemna scena garażu na całą wysokość, znak marki i karta formularza */
.guest { background: var(--garage); color: #fff; }
.guest__scene { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: var(--s6); padding: 32px var(--gutter); outline: none; }
.guest__brand { color: #fff; }

/* Tło „Nocna droga” (D37). Paleta sceny jest w tokenach --tlo-*; moduł nocna-droga.js czyta je z tego elementu, a obraz
   statyczny nocna-droga.svg używa tych samych wartości. Obraz jest domyślny; po pierwszej klatce sceny znika (.tlo--ruch). */
.guest {
  --tlo-niebo: #0E1218; --tlo-niebo-2: #1A2230; --tlo-jezdnia: #1B2029; --tlo-pobocze: #12161D;
  --tlo-linia: #E9E4D2; --tlo-slupek: #E8EAEE; --tlo-odblask: #FFB428; --tlo-swiatlo: #FFE9B8; --tlo-tyl: #FF5A4A;
}
:root[data-theme="dark"] .guest { --tlo-niebo: #0A0D12; --tlo-niebo-2: #151C27; --tlo-jezdnia: #161B23; --tlo-pobocze: #0E1218; }
.tlo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--tlo-niebo); pointer-events: none; }
.tlo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 48%, color-mix(in oklab, var(--tlo-niebo) 78%, transparent), transparent 75%); }
.tlo__obraz, .tlo__plotno { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tlo__obraz { object-fit: cover; object-position: 50% 100%; }
.tlo--ruch .tlo__obraz { display: none; }
.guest__scene { position: relative; z-index: 1; }
.guest__card { width: min(100%, 440px); background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 28px 28px 30px; display: grid; gap: var(--s4); box-shadow: var(--pop); }
.guest__title { font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; }
.guest__card .dlg { width: auto; margin: -28px -28px -30px; }
@media (max-width: 480px) { .guest__card { padding: 22px 18px 24px; border-radius: 22px; } }

/* Dokumenty prawne (partia 4, zadanie 1): szersza karta, treść z Markdown bez stylów wbudowanych, czytelna w 390 px. */
.guest__card--wide { width: min(100%, 760px); }
.legal { display: grid; gap: var(--s3); font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.legal h1 { font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.2; }
.legal h2 { font-size: 17px; font-weight: 700; margin-top: var(--s3); scroll-margin-top: var(--s4); }
/* Strony dokumentów: przejście do kotwicy punktu bez animacji. Płynne przewijanie kończyło się w miejscu wyliczonym przed wczytaniem czcionki i nagłówek punktu wypadał nad okno. */
html:has(.legal) { scroll-behavior: auto; }
.legal p { max-width: 70ch; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: var(--s2); max-width: 70ch; }
.legal li { padding-left: 2px; }
.legal__meta { font-size: 13px; color: var(--ink-3); }
.legal__meta a { color: inherit; display: inline-block; padding: 12px 4px; }
.guest__foot { font-size: 13px; color: rgba(255, 255, 255, .78); text-align: center; margin-top: calc(var(--s4) * -1); }
.guest__foot a { color: inherit; display: inline-block; padding: 12px 6px; }

/* Strona „Cennik” (partia 12, zadanie 11): trzy karty planów w szerokiej karcie gościa, jedna kolumna w 390 px. */
.guest__card--pricing { width: min(100%, 1040px); }
.pricing__vat, .pricing__trial { color: var(--ink-2); text-wrap: pretty; }
.pricing__trial { font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); }
.plan { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); min-width: 0; }
.plan__name { font-size: 18px; font-weight: 700; font-stretch: 112%; line-height: 1.2; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.plan__price b { font-size: 32px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.plan__price span, .plan__alt { color: var(--ink-2); font-size: 14px; }
.plan__list { display: grid; gap: var(--s2); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.plan__list li { position: relative; padding-left: var(--s4); }
.plan__list li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.pricing__report { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); }
.pricing__report h2 { font-size: 16px; font-weight: 700; }
.pricing__report p { color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.pricing__report p b { color: var(--ink); }

/* Menu konta pod awatarem (działa bez skryptu: element details) */
.usermenu { position: relative; }
.usermenu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.usermenu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; padding: 6px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--pop); }
.usermenu__list a, .usermenu__list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; font-weight: 600; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.usermenu__list a:hover, .usermenu__list button:hover { background: var(--surface-2); }

/* Kod QR drugiego etapu i kody zapasowe */
.qr { width: 192px; max-width: 100%; padding: 8px; border-radius: var(--r-md); background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
/* Kod QR na stronie bezpieczeństwa: wysokość z obrazu (dawne height: 112px z reguły .qr dla linku udostępniania obcinało blok i kod nachodził na klucz pod nim) */
.qr--konto { height: auto; margin: var(--s4) 0 0; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: var(--s4) 0; }
.codes code { font-variant-numeric: tabular-nums; font-size: 15px; overflow-wrap: anywhere; }
/* Klucz do wpisania ręcznie: osobny blok o stałej szerokości znaków, grupy po 4 znaki, łamanie wersów dozwolone */
.secretkey { margin: var(--s4) 0 var(--s5); max-width: 100%; min-width: 0; }
.secretkey__label { font-size: 13px; color: var(--ink-3); margin: 0 0 var(--s2); }
.secretkey__value { display: block; box-sizing: border-box; max-width: 100%; padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 17px; line-height: 1.6; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-word; user-select: all; }

/* Garaże i auta: zakładka garażu bez stylu w atrybucie, długie nazwy nie rozpychają kafli i sceny */
.cartab--garage { --paint: var(--garage); --paint-ink: #fff; }
.cartab > span:not(.plate) { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.bay__name, .stage__badge, .dlg__head h2 { overflow-wrap: anywhere; }
.gchip { max-width: 100%; overflow: hidden; }
.bay__who { min-width: 0; overflow-wrap: anywhere; }
a.road__edit, a.bay--add, a.cartab--add, a.gchip--add { text-decoration: none; }
/* Przycisk ostrzegawczy w wierszu z innymi przyciskami stoi na tej samej linii (margines tylko dla samodzielnego). */
.btnrow .btn--danger, .person__acts .btn--danger, .dlg__foot .btn--danger { margin-top: 0; }
.person__acts { align-items: center; }
.person form.person__confirm { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-start; flex: 1 1 18rem; min-width: 0; }
.person__confirm .pw { flex: 1 1 14rem; }
.person__confirm > .btn { margin-top: 25px; }
/* Partia 1 ma trzy pozycje dolnej nawigacji auta (pulpit, dane, garaż). */
.bottomnav--3 { grid-template-columns: repeat(3, 1fr); }
/* Zadanie 5 dodaje czwartą pozycję: udostępnianie. */
.bottomnav--4 { grid-template-columns: repeat(4, 1fr); }
.person form { display: inline; }
.person__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.person__main .person__note { display: block; color: var(--ink); margin-top: 2px; }
.sharelink__url { display: block; font: 600 14px var(--font); margin-bottom: 10px; overflow-wrap: anywhere; user-select: all; }
.invite-page .btn { margin-top: var(--s4); }

/* Strony konta: wąska kolumna pól, podpowiedź pod własnym polem, układ dwóch kolumn od 1024 px */
.form--narrow { max-width: 34rem; }
/* Partia 18, zadanie 7d: formularz „Biorę auto” na kafelku pulpitu kierowcy, odstęp od przycisków nad nim. */
.drvtake { margin-top: var(--s4); }
.stack--narrow { max-width: 40rem; }
/* Zamówienie i strona zamówienia (poprawki po domknięciu partii 12): blok odstąpienia i odnośnik powrotu nie stykają się
   z wierszem stanu ani z przyciskami nad nimi */
.panel > .panel__part { margin-top: var(--s6); }
.panel > .panel__back { margin-top: var(--s5); }
.stack > .field + .hint { margin-top: calc(var(--s3) * -1); }
.stack > .hint + .btnrow, .stack > .hint + .btn, .stack > .field + .btnrow, .stack > .field + .btn { margin-top: var(--s2); }
/* Przycisk w postaci odnośnika, np. „Nie mam dostępu do kodu” w drugim etapie logowania (uwaga U1 z UAT). */
.linkbtn { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stack > .hint + .linkbtn { margin-top: calc(var(--s3) * -1); }
.panel > .hint + form, .panel > .sharelink + form { margin-top: var(--s4); }
.account-grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.account-grid > h1, .account-grid > .panel--wide { grid-column: 1 / -1; }
@media (min-width: 1024px) { .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stack > .field + .hint { margin-top: calc(var(--s2) * -1); } .account-grid { gap: var(--s4); } }
/* Ustawienia powiadomień: oba panele tej samej wysokości, przycisk zapisu w wierszu pod siatką, a nie pod krótszą kolumną;
   podsekcja „Numer telefonu” oddzielona od chipów grup SMS kreską i odstępem. */
.account-grid--rowne { align-items: stretch; }
.panel__title--sub { margin-top: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); }
/* Panel push (partia 8, zadanie 3): wiersz urządzenia zawija przyciski pod etykietę na wąskim ekranie; kroki pomocy
   jako numerowana lista w szerokości akapitu. */
/* Partia 10, zadanie 6: kolumny od góry, bez rozciągania krótszej (blok zgody wydłuża kolumnę urządzeń, a rozciągnięta
   kolumna ustawień rozkładała odstępy między swoimi wierszami). */
.push-cols { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .push-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8); }
  /* Druga kolumna zaczyna się na wysokości pierwszej, bez kreski nad nagłówkiem listy urządzeń. */
  .push-cols > .stack + .stack > .panel__title--sub { margin-top: 0; padding-top: 0; border-top: 0; }
}
.row--device { flex-wrap: wrap; }
.row--device form { flex: none; }
/* Informacja i zgoda nad przyciskiem włączenia push (partia 10, zadanie 6): ten sam wygląd co blok „Sprawdź w sieci”
   na karcie rozpoznania; pole zgody z polem dotyku 44 px, komunikat błędu tuż pod polem. */
.push-consent { display: grid; gap: var(--s2); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.push-consent[hidden] { display: none; }
.push-consent p { margin: 0; max-width: 62ch; }
.push-consent__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.push-consent .check { align-items: center; min-height: 44px; color: var(--ink); }
.push-consent .field__error { margin-top: 0; }
.push-consent .field__error[hidden] { display: none; }
/* Lista kroków z numerami: globalny reset (ul, ol: list-style none) zdejmuje znaczniki, a kolejność kroków niesie sens. */
.steps { margin: 0; padding-left: 1.5em; color: var(--ink-2); max-width: 58ch; list-style: decimal; }
.steps li::marker { font-weight: 700; color: var(--ink); }
.steps li + li { margin-top: var(--s2); }

/* Partia 2, zadanie 3: terminy. Pięć pozycji dolnej nawigacji auta, wiersz terminu z podpisami, legenda kontrolek */
.bottomnav--5 { grid-template-columns: repeat(5, 1fr); }
.trow__sub, .trow__note { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.trow__note { color: var(--ink-3); font-style: italic; }
.trow__main b { overflow-wrap: anywhere; }
a.due__set { color: inherit; text-decoration: none; display: block; }
a.due__set b { text-decoration: underline; text-underline-offset: 3px; }
.due--off b { font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.legend li { display: flex; align-items: center; gap: var(--s3); font-size: 13.5px; color: var(--ink-2); }
.legend li > span { min-width: 0; }
.input--area { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.45; resize: vertical; font-family: inherit; }
.chip--radio .ic { width: 18px; height: 18px; }
a.chip { text-decoration: none; }

/* Partia 2, zadanie 4: wydatki. Wiersze pozycji z sumą, pole plików jak .drop w makiecie, lista zapisanych plików, dwa przyciski w wierszu terminu */
.items { min-width: 0; }
.items__list { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s2); }
.items__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: var(--s2); }
.items__add { justify-self: start; margin-bottom: var(--s2); }
.items__hint { color: var(--ink-2); }
/* Partia 5, zadanie 3: pod nazwą i kwotą pozycji wybór podzespołu w osobnym wersie (okno formularza ma ok. 400 px
   także na komputerze, więc nazwy podzespołów się nie ucinają), pod nim akcja wpisu i ilość płynu obok siebie. */
.items__link { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: var(--s2); }
.items__link > :first-child { grid-column: 1 / -1; }
.items__link .field { min-width: 0; }
label.drop { position: relative; cursor: pointer; margin-top: 0; }
label.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop__input { width: 100%; max-width: 100%; margin-top: var(--s2); font: inherit; font-size: 13px; color: var(--ink-2); }
.files { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.files__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 8px 0; border-top: 1px solid var(--line); }
.files__row:first-child { border-top: 0; }
.files__name { overflow-wrap: anywhere; color: var(--ink); }
.files__meta { display: block; font-size: 13px; color: var(--ink-2); }
.trow__acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) {
  .trow .trow__acts { grid-column: 2 / -1; justify-content: flex-start; }
  .items__row { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .items__link { grid-template-columns: minmax(0, 1fr) 6.5rem; }
}

/* Partia 2, zadanie 5: historia oraz koszty i paliwo. Sześć pozycji dolnej nawigacji auta; partia 3: siedem (zakładka „Raport”).
   Przy siedmiu pozycjach na 360 px każda ma ok. 50 px szerokości, więc węższe odstępy i mniejszy stopień pisma,
   żeby najdłuższa etykieta („Historia”) mieściła się bez ucięcia; pole dotyku zostaje nie mniejsze niż 44 px. */
.bottomnav--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bottomnav--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); padding-left: 4px; padding-right: 4px; }
.bottomnav--7 .bn { padding-left: 0; padding-right: 0; font-size: 11px; letter-spacing: -.01em; }
.bottomnav--6 .bn span, .bottomnav--7 .bn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip[aria-current="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips--sort { margin: 0 0 var(--s2); }
.hint--lock { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.hint--lock .ic { width: 16px; height: 16px; flex: none; }
.entry__note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 60ch; overflow-wrap: anywhere; }
.entry__title, .entry__meta span { overflow-wrap: anywhere; }
a.filechip { text-decoration: none; }
a.filechip:hover { background: var(--line); }
.iconbtn--sm { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn--sm .ic { width: 16px; height: 16px; }
.legend.legend--chart { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: var(--s4); }
.legend--chart li { display: inline-flex; gap: 7px; font-size: 13px; }
.stats__line { display: block; }
.chartdata { margin-top: var(--s4); font-size: 13.5px; }
.chartdata summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.chartdata .cats { margin-top: var(--s2); }
.ftable__acts { white-space: nowrap; text-align: right; }
.ftable__acts form { display: inline; }
.ftable td.ftable__acts { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
/* Partia 6, zadanie 5: lista wpisów z pozycjami paliw (tbody na wpis) i panel „Paliwo i energia”. */
.ftable tbody.fentry tr:not(:first-child) td { border-top: 0; padding-top: 0; }
.ftable tbody.fentry + tbody.fentry tr:first-child td { border-top: 1px solid var(--line); }
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); margin-top: var(--s2); }
.fcard { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.fcard__title { font-size: 15px; font-weight: 700; }
.fcard__label { font-size: 13px; color: var(--ink-3); margin-top: var(--s2); }
.fcard__value { font-size: 26px; font-weight: 700; font-stretch: 108%; line-height: 1.15; }
.fcard__how { font-size: 13px; color: var(--ink-3); }
.fcard__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.fcard__facts dt { font-size: 12.5px; color: var(--ink-3); }
.fcard__facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.fcard__facts small, .ftotal small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.fcard .hint { margin-top: var(--s2); }
.ftotal { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.ftotal p + p { margin-top: var(--s1); }
.fuelsave { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); }
.fuelsave__title { font-size: 15px; font-weight: 700; margin-bottom: var(--s1); }
@media (max-width: 640px) {
  .ftable { min-width: 0; }
  .ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ftable tbody.fentry { display: block; padding: var(--s3) 0; border-top: 1px solid var(--line); }
  .ftable tbody.fentry:first-of-type { border-top: 0; }
  .ftable tbody.fentry tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 4px 0; }
  .ftable tbody.fentry td, .ftable tbody.fentry tr:first-child td { display: block; padding: 0; border: 0; white-space: normal; }
  .ftable tbody.fentry td.num { text-align: left; }
  .ftable tbody.fentry td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .ftable tbody.fentry td.ftable__acts { grid-column: 1 / -1; text-align: left; }
}
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.pager__info { font-size: 13px; color: var(--ink-2); }
/* Nieaktywny przycisk stronicowania zostaje czytelny: przy kryciu .6 tekst ma kontrast powyżej 4,5 (bramka mobilna). */
.pager [aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Partia 2, zadanie 8: dane opisowe w grupach, dokumenty, kondycja podzespołów i sekcja „Archiwum” garażu */
fieldset.specs { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; }
fieldset.specs legend { font-weight: 600; margin-bottom: var(--s2); }
.rows .row form { flex: none; }
/* Partia 5, zadanie 2c: „Popraw” przy wpisie podzespołu i pytanie przy usuwaniu wpisu, który odnowił termin
   (bez skryptu: element details, okienko pod przyciskiem wyrównane do prawej krawędzi wiersza). */
.rows .row > .btn--sm { flex: none; }
.rows .row .evdel { flex: none; position: relative; }
.evdel > summary { list-style: none; cursor: pointer; }
.evdel > summary::-webkit-details-marker { display: none; }
.evdel[open] > summary { background: var(--surface-2); color: var(--ink); }
.rows .row .evdel__box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: var(--s2); width: min(280px, calc(100vw - 48px)); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--pop); font-size: 14px; }
.evdel__box p { margin: 0; }
.evdel__box .btn--danger { justify-self: start; margin-top: 0; }
.garchive { margin-top: var(--s6); }
.garchive .panel__title { display: inline-flex; align-items: center; gap: var(--s2); }
.garchive .row__title { color: inherit; }
a.drop { text-decoration: none; }

/* Zadanie 8a: rysunki jednośladów i quadów (rury ramy, wydech, siedzenie) */
.car__tube { fill: none; stroke: #7C8693; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.car__tube--thin { stroke-width: 3; }
.car__pipe { fill: none; stroke: #AEB6C0; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.car__pipe--wide { stroke-width: 13; }
.car__pipe--mid { stroke-width: 12; }
.car__pipe--slim { stroke-width: 6; }
.car__seat { fill: #20242B; stroke: #0B0E13; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Zadanie 8a: wybór rodzaju i sylwetek (24 sylwetki w siatce), koło 16 kolorów z pozycją „Inny” */
.bodies { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.bodies + .bodies { margin-top: var(--s3); }
.bodies__kind { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bodies[hidden], .chips[hidden], .paintother[hidden] { display: none; }
.paintwheel { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 6px; }
.paintopt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 6px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.paintopt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.paintopt__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.paintopt__dot--other { background: conic-gradient(#9C1F1F, #F4C430, #1F5A4A, #6FA8DC, #173FB0, #5B3A8C, #9C1F1F); }
.paintopt__name { min-width: 0; overflow-wrap: break-word; }
.paintopt:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 1px; font-weight: 700; }
.paintopt:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.paintother { margin-top: var(--s3); }
.paintother__input { width: 96px; height: 44px; padding: 2px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }

/* Zadanie 8a: własne zdjęcie pojazdu (kafel garażu, nagłówek, formularz wyglądu), stały stosunek 16:9 */
.carphoto { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: color-mix(in oklab, var(--paint) 70%, #0B0E13); }
.stage__photo { flex: none; width: clamp(120px, 22vw, 220px); }
.photobox { display: grid; gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.photobox__title { margin: 0; font-size: 15px; }
.photobox__img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.photobox__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.photobox__row .field { flex: 1 1 220px; min-width: 0; }

/* Poprawki wyglądu po partii 2. Pasek zakładek pojazdów: przy przepełnieniu krawędzie wygaszają się (sygnał, że
   pasek się przewija), a skrypt przewija do bieżącej zakładki. Wygaszenie leży na wewnętrznym odstępie paska,
   więc bez przepełnienia niczego nie zasłania. */
.cartabs { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
@media (hover: hover) and (pointer: fine) {
  .cartabs { scrollbar-width: thin; }
  .cartabs::-webkit-scrollbar { display: block; height: 6px; }
  .cartabs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
}
@media (max-width: 760px) {
  .cartabs { -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
}
/* Tabela „Co daje podgląd”: na wąskim ekranie nazwa wiersza w osobnym wierszu na całą szerokość, trzy kolumny
   wartości po równo (bez wąskiej kolumny nazw). */
.matrix__cap { display: none; }
@media (max-width: 560px) {
  .matrix--3 .matrix__cap { display: table-row; }
  .matrix--3 .matrix__cap td { text-align: left; padding: 12px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
  .matrix--3 tbody tr:not(.matrix__cap) > * { border-top: 0; padding-top: 6px; }
  .matrix--3 th[scope="row"], .matrix--3 thead th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
  .matrix--3 td, .matrix--3 thead th:not(:first-child) { width: 33.33%; }
}
/* Wiersz terminu na telefonie: termin (napis i data) pod nazwą, a nie w wąskiej kolumnie obok długiej reguły. */
@media (max-width: 480px) {
  .trow { grid-template-columns: 36px minmax(0, 1fr); }
  .trow .due { grid-column: 2 / -1; min-width: 0; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
}

/* Partia 5, zadanie 5: lista terminów według pilności. Grupa jako etykieta wiersza, menu wiersza (na szerokim ekranie
   akcje stoją rozwinięte, na telefonie za przyciskiem Więcej), zwijana legenda, podświetlenie wiersza po zapisie
   (kotwica z adresu; przy ograniczonym ruchu stałe podświetlenie bez animacji). */
.trow { scroll-margin-top: 24px; }
#terminy-bez-daty { scroll-margin-top: 24px; }
.trow__group { display: block; font-size: 12.5px; color: var(--ink-3); }
.trow__track > span { display: block; }
a.lamplink { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.trow__menu > summary { list-style: none; cursor: pointer; }
.trow__menu > summary::-webkit-details-marker { display: none; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--ink-3); font-weight: 600; }
.fold[open] > summary::after { content: "-"; }
.fold[open] > summary { margin-bottom: var(--s3); }
/* Zadanie 6 partii 5: „Więcej propozycji” pod listą gotowych terminów i zwinięte „Wygląd i kategoria” w formularzu. */
.presets-more { margin-top: var(--s4); }
.presets-more > summary, .fold--look > summary { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fold--look { margin-top: var(--s2); }
/* Partia 9, zadanie 7: sekcja „Zalecenia producenta” na pulpicie pojazdu. Zwinięta pokazuje tytuł i krótki opis, po
   rozwinięciu pozycje są kartami (na telefonie jedna kolumna). Liczba i plakietka poziomu stoją w jednym wierszu. */
.rec__fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--s3); }
.rec__fold > summary::after { grid-column: 2; grid-row: 1 / span 2; }
.rec__fold > summary .panel__title { grid-column: 1; }
.rec__sub { grid-column: 1; font-size: 13px; color: var(--ink-3); text-wrap: pretty; }
.rec__fold p { margin: 0; }
.rec__origin { color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.rec__origin--k { margin-bottom: var(--s3); font-weight: 600; color: var(--ink); }
.rec__hint { margin-bottom: var(--s2); font-size: 13.5px; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.rec__hint a { margin-left: var(--s2); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.recs { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rec { display: grid; gap: var(--s2); align-content: start; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rec__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.rec__name { font-weight: 600; }
.rec--typical .rec__level { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.rec__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.rec__form { margin: 0; }
.rec__same { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rec__yours, .rec__note, .rec__source { font-size: 13px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.rec__source { color: var(--ink-3); }
/* Dopisek o dokumencie dla innego rynku albo rocznika: widoczny tekst w nagłówku pozycji, pod nazwą i plakietką (partia 10, zadanie 4). */
.maint__scope { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--ink-2); text-wrap: pretty; }
.maint__warn { font-weight: 600; }
/* Przeliczenie z mil (dokument dla rynku brytyjskiego, partia 10, zadanie 5): dopisek w tym samym wierszu co liczba. */
.rec__miles { display: block; font-size: 13px; color: var(--ink-2); }
/* Tekst pozycji zajmuje szerokość wiersza i łamie się bez wersu z jednym wyrazem; przycisk spada pod tekst, gdy się nie mieści
   (partia 10, zadanie 5: dłuższy przycisk „Ustaw jak w dokumencie” z zadania 4 zawężał tekst do wersu z samym „lata”). */
.rec__row > .rec__rule { flex: 1 1 22ch; min-width: 0; text-wrap: pretty; }
#reminder-form > .hint { margin-top: calc(var(--s3) * -1); }
.next-preview { color: var(--ink-2); font-weight: 600; }
/* Zadanie 7 partii 5: krótkie „Zrobione”: sekcja „Więcej szczegółów”, błąd przy polu przebiegu, przycisk wstawiający odczyt. */
.more { border-top: 1px solid var(--line); padding-top: var(--s2); }
.more > summary { min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.more__body { margin-top: var(--s3); }
.field__error { display: block; margin-top: var(--s1); font-size: 13px; font-weight: 600; color: var(--red); }
.field2:has(.field__error) { align-items: start; }
/* Pola hasła (analiza haseł 5.1-5.3): błąd przy polu z czerwoną ramką, przełącznik „Pokaż” w polu, lista kontrolna
   nowego hasła i wskaźnik zgodności powtórzenia. */
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.pw { display: grid; gap: 6px; min-width: 0; }
.pw > .field__error { margin-top: 0; }
.pw > .hint, .pw > .field + .hint { margin-top: 0; }
.stack > .pw + .hint { margin-top: calc(var(--s3) * -1); }
.pw + .pw { margin-top: var(--s2); }
.stack > .field + .field__error, .dlg__body > .field + .field__error { margin-top: calc(var(--s4) * -1); }
.pw > .sr + .field { margin-top: var(--s2); }
.pw__wrap { position: relative; display: block; min-width: 0; }
.pw__wrap .input { padding-right: 96px; }
.pw__wrap .input--sm { width: 100%; padding-right: 84px; }
/* Przycisk na całą wysokość pola (44 px z ramką), doklejony z prawej: pole dotyku 44 px bez powiększania pola (bramka mobilna). */
.pw__toggle { position: absolute; right: 0; top: 0; bottom: 0; padding: 0 12px; border-radius: 0 var(--r-md) var(--r-md) 0; border: 1px solid var(--line-2); border-left: 0; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pw__wrap .input--sm + .pw__toggle { padding: 0 8px; border-radius: 0 10px 10px 0; }
.pw__wrap .input[aria-invalid="true"] + .pw__toggle { border-color: var(--red); }
.pw__toggle .ic { width: 16px; height: 16px; }
.pw__toggle[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.pw__rules { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.pw__rules li { display: flex; align-items: flex-start; gap: 8px; }
.pw__rules li > span:first-of-type { flex: 1 1 auto; min-width: 0; text-wrap: pretty; }
.pw__rules .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ink-3); }
.pw__rules li.is-ok { color: var(--ink-2); }
.pw__rules li.is-ok .ic { color: var(--green); }
.pw__count { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pw__match { margin-top: 0; min-height: 0; font-weight: 600; }
.pw__match:empty { display: none; }
.pw__match.is-ok { color: var(--green); }
.pw__match.is-bad { color: var(--red); }
.done-components { color: var(--ink-2); }
[data-fill-odometer] { margin-left: var(--s2); vertical-align: middle; }
.trow:target { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 14%, transparent); border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .trow:target { animation: trow-flash 2.6s ease-out forwards; }
}
@keyframes trow-flash {
  from { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 34%, transparent); }
  to { box-shadow: 0 0 0 8px transparent; }
}
@media (min-width: 761px) {
  .trow__menu { display: contents; }
  .trow > .trow__menu > summary { display: none; }
  .trow__menu::details-content { content-visibility: visible; display: contents; }
}
@media (max-width: 760px) {
  .panel--lamps { display: none; }
  .trow__menu { grid-column: 2 / -1; }
  .trow__menu[open] > .trow__acts { margin-top: 8px; }
}
/* Na telefonie termin i przycisk Więcej stoją w jednym wierszu, a grupa (jest już w nagłówku sekcji i w nazwie) znika. */
@media (max-width: 480px) {
  .trow { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .trow__main { grid-column: 2 / -1; }
  .trow .due { grid-column: 2; align-self: center; }
  .trow > .trow__menu { grid-column: 3; }
  .trow > .trow__menu[open] { grid-column: 2 / -1; }
  .trow__group { display: none; }
}
/* Partia 5, zadanie 8: odłożenie przypomnień (panel rozwijany pod przyciskiem „Odłóż”), plakietka odłożenia
   z „Cofnij” widoczna tylko dla osoby, która odłożyła, i komunikat po usunięciu terminu z „Cofnij”.
   Na telefonie panel otwiera się od lewej krawędzi przycisku, żeby nie wychodził poza ekran. */
.snooze { position: relative; }
.snooze > summary { list-style: none; cursor: pointer; }
.snooze > summary::-webkit-details-marker { display: none; }
.snooze__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; gap: var(--s2); width: 16rem; max-width: calc(100vw - 2 * var(--s4)); padding: var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop); }
.snooze__panel form { display: grid; }
.snooze__until { gap: var(--s2); }
.trow__snoozed { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s1); }
.trow__snoozed form { display: inline; }
.trow__snoozed .pill { white-space: normal; height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; }
.notice--undo { border-style: solid; flex-wrap: wrap; }
/* Komunikat o zapowiedzianej wersji regulaminu: na wąskim ekranie przycisk schodzi pod zdanie, zamiast ściskać je do kilku słów w wersie. */
.notice--terms p { flex: 1 1 14em; }
/* Partia 12, zadanie 2: pojazd tylko do odczytu; dwa przyciski schodzą pod zdanie na wąskim ekranie (jak wyżej). */
.notice--lock { flex-wrap: wrap; }
.notice--lock p { flex: 1 1 14em; }
.reminder-delete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .snooze__panel { right: auto; left: 0; }
}
/* Na szerokim ekranie „Odłóż” to sam dzwonek (nazwa w aria-label i title), żeby trzeci przycisk nie ściskał nazwy terminu. */
@media (min-width: 761px) {
  .trow .snooze > summary { width: 34px; padding: 0; }
  .trow .snooze > summary .btn__txt { display: none; }
}

/* Partia 7, zadanie 2: książeczka serwisowa. Przełącznik „Raport PDF” i „Książeczka” tylko na telefonie (powyżej są
   zakładki); wpisy historii mają własne klasy (bentry), bo klas osi czasu historii z kwotami pilnuje strażnik kwot. */
.subswitch { display: none; }
@media (max-width: 760px) {
  .subswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface); }
  .subswitch__item { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); }
  .subswitch__item[aria-current="page"] { background: var(--ink); color: var(--surface); }
}
.book { display: grid; gap: var(--s5); }
.book__actions { justify-content: flex-end; }
/* Uwaga U4: pole „Dołącz dostęp dla warsztatu (QR i hasło)” pod przełącznikami paska książeczki. */
.book__workshop { display: grid; gap: var(--s2); margin-top: var(--s4); }
/* Nagłówek panelu z przyciskami (książeczka, wizyty w warsztacie): na telefonie tytuł w całym wierszu, przyciski pod nim
   od lewej i rozciągnięte w swoich wierszach, zamiast wąskiej kolumny przy tytule wystającej poza panel (uwaga U3 z UAT). */
@media (max-width: 560px) {
  .panel__head--acts { flex-wrap: wrap; justify-content: flex-start; }
  .panel__head--acts > .panel__title { flex: 1 1 100%; }
  .panel__head--acts > .btnrow { flex: 1 1 100%; justify-content: flex-start; }
  .panel__head--acts > .btnrow .btn { flex: 1 1 auto; }
}
.book__range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); margin-top: var(--s3); }
.book__range .field { flex: 1 1 150px; max-width: 220px; }
.book__head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.book__car svg { width: 100%; height: auto; }
.book__kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.book__name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; font-stretch: 112%; line-height: 1.1; overflow-wrap: anywhere; }
.book__sub { color: var(--ink-2); margin-top: 4px; }
.book__ids { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s3); }
.book__ids dt { font-size: 13px; color: var(--ink-3); }
.book__ids dd { font-weight: 600; }
.book__vin { font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; }
.book__side { display: grid; gap: var(--s5); }
.book__group { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: var(--s4) 0 var(--s1); }
.book__group:first-of-type { margin-top: 0; }
.book__fact { font-weight: 600; }
.book__hint { margin-top: var(--s2); }
.book__upcoming { display: grid; gap: var(--s3); }
.book__upcoming li { display: flex; gap: var(--s3); align-items: flex-start; }
.book__upcoming b { display: block; }
.book__when { display: block; font-size: 13px; color: var(--ink-2); }
.book__period { font-size: 13px; color: var(--ink-3); }
.book__history { display: grid; }
.bentry { display: grid; grid-template-columns: 156px minmax(0, 1fr) auto; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.bentry:first-child { border-top: 0; }
.bentry__when b { display: block; font-weight: 700; }
.bentry__when span { font-size: 13px; color: var(--ink-2); }
.bentry__title { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.bentry__mark { margin-top: 6px; }
.bentry__items { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); max-width: 520px; }
.bentry__items li { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; overflow-wrap: anywhere; }
.bentry__items li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bentry__shop { margin-top: 6px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.bentry__cost { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.book__sum { margin-top: var(--s4); font-weight: 700; }
@media (max-width: 760px) {
  .book__head { grid-template-columns: 1fr; }
  .book__car { max-width: 240px; }
  .bentry { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); }
  .bentry__when { grid-column: 1 / -1; display: flex; gap: var(--s3); align-items: baseline; }
  .book__range .field { max-width: none; }
}

/* Partia 7, zadanie 6: kod QR na stronie „Dostęp dla warsztatu” (obraz z serwera, czarny na białym także w trybie
   ciemnym, żeby telefon go odczytał). */
.qr-code { display: block; width: 100%; max-width: 240px; height: auto; background: #FFFFFF; border-radius: var(--r-sm); margin-top: var(--s3); padding: var(--s3); box-sizing: border-box; }
.code-wrap { overflow-wrap: anywhere; word-break: break-all; }

/* Partia 3, zadanie 9: pola dotyku na telefonie. Każdy element klikalny ma co najmniej 44x44 px CSS (bramka
   narzedzia/test-mobilny.js, wyjątki w jej tablicy WYJATKI_DOTYKU). Reguły działają na wąskim ekranie i przy wskaźniku
   dotykowym. Wysokość rośnie przez min-height, które wygrywa z ustaloną wysokością klocków (przycisk 42 px, mały
   przycisk 34 px, żeton 34 px, awatar 34 px), więc nic poza tym blokiem nie trzeba zmieniać; szerokie elementy nie
   zmieniają szerokości, a ikony dostają min-width. Ten blok stoi na końcu arkusza, żeby nadpisać warianty na telefon. */
@media (max-width: 760px), (pointer: coarse) {
  .btn, .chip, .gchip, .cartab, .input--sm, .ask .input, .bn, a.filechip { min-height: 44px; }
  .btn--sm { border-radius: 12px; }
  .chip, .gchip, .road__edit { border-radius: 22px; }
  .road__edit { min-height: 44px; padding: 0 14px; }
  .iconbtn, .iconbtn--sm, .row__act, .bell { min-width: 44px; min-height: 44px; }
  a.part__name { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .usermenu > summary { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin: -5px; }
  /* Wydanie v2.1.0 (bramka mobilna): ostatni przycisk nagłówka nie wystaje za prawą krawędź wiersza (było 5 px). */
  .top__actions > .usermenu:last-child > summary { margin-right: 0; }
  .usermenu__list a, .usermenu__list button { display: flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
  a.row__link { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
  .check { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
  .panel__link, .chartdata summary, a.due__set, .garchive a.row__title { display: inline-flex; align-items: center; min-height: 44px; }
  .fold > summary, a.lamplink { min-height: 44px; }
  a.lamplink { display: inline-flex; align-items: center; }
  .fold > summary { margin: -6px 0; }
  .trow__menu > summary { display: inline-flex; align-items: center; }
  .roadlist a { align-content: center; min-height: 44px; }
  .cartable tbody th a { min-height: 44px; }
}

/* Partia 7, zadanie 4: strony warsztatu (zakładki wizyty, sekcje, formularze wpisów, lista wpisów, książeczka). */
.guest__card--book { width: min(100%, 1040px); }
.wtabs { margin: var(--s2) 0 0; }
.wsec { display: grid; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.wsec__title { font-size: 17px; font-weight: 700; }
.wgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
.wfold { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0 var(--s4); }
.wfold[open] { padding-bottom: var(--s4); }
.wfold__head { display: flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.wfold > .hint { margin-bottom: var(--s3); }
.wentries { display: grid; gap: var(--s2); }
.wentry { display: grid; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.wentry:first-child { border-top: 0; }
.wentry__head { display: flex; flex-wrap: wrap; gap: 6px; }
.wentry__text { font-weight: 600; overflow-wrap: anywhere; }
.wentry__facts { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.guest__card--book .book .panel { padding: var(--s4) 0 0; border-top: 1px solid var(--line); border-radius: 0; }
/* Partia 7, zadanie 7: formularz decyzji właściciela o wpisach warsztatu i znacznik wydatku z wizyty w historii. */
.decide { margin-top: var(--s4); }
.drow { padding: var(--s4) 0; }
.drow__cost { max-width: 220px; }
.drow__note { font-size: 13px; color: var(--ink-3); }
.decided__title { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.entry__mark { margin-top: 6px; }
/* Strony warsztatu nie mają dolnej nawigacji auta, więc zakładki wizyty zostają widoczne także na telefonie. */
@media (max-width: 760px) {
  .tabs.wtabs { display: flex; }
}
/* Ś4 przeglądu partii 13: menu panelu. Na komputerze panel ma pasek zakładek, a menu jest ukryte; do 760 px pasek
   sekcji panelu (tabs--panel) zostaje widoczny, zakładki zwijają się do rozwijanego menu w kształcie menu konta. */
.panelmenu { display: none; position: relative; }
.panelmenu__head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); list-style: none; cursor: pointer; }
.panelmenu__head::-webkit-details-marker { display: none; }
.panelmenu__head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.panelmenu__label { color: var(--ink-3); font-weight: 500; }
.panelmenu__here { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.panelmenu__head svg { transform: rotate(90deg); transition: transform .15s; }
.panelmenu[open] .panelmenu__head svg { transform: rotate(-90deg); }
.panelmenu__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--pop); }
.panelmenu__list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: inherit; font-weight: 600; font-size: 14px; text-decoration: none; }
.panelmenu__list a:hover, .panelmenu__list a[aria-current="page"] { background: var(--surface-2); }
@media (max-width: 760px) {
  .tabs.tabs--panel { display: block; margin: 10px var(--gutter) 0; border-bottom: 0; overflow: visible; }
  .tabs--panel > .tab { display: none; }
  .tabs--panel .panelmenu { display: block; }
}

/* Partia 14, zadanie 3: kreator oględzin przy oddaniu (jeden ekran na jedno zdjęcie) i podsumowanie protokołu.
   Pola dotyku co najmniej 44 px; pole pliku schowane w dużym przycisku „Zrób zdjęcie” (etykieta pola). */
.handover-progress { display: grid; gap: 6px; }
.handover-progress__text { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.handover-progress__bar { width: 100%; height: 6px; accent-color: var(--accent); }
.handover-step__title { font-size: 21px; font-weight: 700; font-stretch: 112%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.handover-step__car { max-width: 320px; color: var(--ink-3); }
.handover-step__car svg { width: 100%; height: auto; }
.handover-step__current { display: grid; gap: 6px; margin: 0; }
.handover-notice { margin-top: 0; color: var(--ink); font-weight: 600; }
.handover-notice__k { margin-top: 0; }
.handover-shot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 18px; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; }
.handover-shot--small { min-height: 48px; font-size: 15px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); }
.handover-shot:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.handover-shot__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.handover-nav .btn { min-height: 44px; }
.handover-photo { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.handover-photo img { display: block; width: 100%; height: auto; }
.handover-section { padding-top: var(--s4); border-top: 1px solid var(--line); }
.handover-steps { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.handover-steps__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); }
.handover-steps__thumb { width: 96px; }
.handover-steps__empty { display: flex; align-items: center; justify-content: center; height: 72px; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-3); text-align: center; padding: 0 6px; }
.handover-steps__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.handover-steps__name a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); }
.handover-steps .btn--sm, .handover-extras .btn--sm { min-height: 44px; }
.handover-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.handover-extras__item { display: grid; gap: 6px; }
.handover-fuel .chip { min-height: 44px; }
.handover-note { white-space: pre-line; }
/* Partia 14, zadanie 7: odbiór. Para zdjęć oddanie i odbiór w dwóch kolumnach także w 390 px. */
.handover-compare { display: grid; gap: var(--s4); list-style: none; padding: 0; margin: 0; }
.handover-compare__row { display: grid; gap: var(--s2); }
.handover-compare__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.handover-compare__name a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); }
.handover-compare__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.handover-compare__cell { display: grid; align-content: start; gap: 6px; margin: 0; min-width: 0; }
.handover-compare__cell figcaption { margin: 0; }
.handover-compare .btn--sm { min-height: 44px; }
.handover-sub { margin: 0; font-size: 15px; }
/* Partia 14, zadanie 9: schemat miejsca zdjęcia i mapa uszkodzeń (siatka pól wyboru nałożona na sylwetkę boku). */
.handover-position { display: block; width: 88px; height: auto; color: var(--ink-3); margin: 0 auto; }
.handover-position__mark { color: var(--accent); }
.handover-map__side { min-width: 0; }
.handover-map__frame { position: relative; width: 100%; max-width: 100%; height: 132px; }
.handover-map__frame > .handover-map__svg, .handover-map__side > .handover-map__svg { display: block; width: 100%; height: 100%; }
.handover-map__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(44px, 1fr)); }
.handover-map__cell { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border: 1px dashed var(--line-2); cursor: pointer; }
.handover-map__cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.handover-map__cell:has(input:checked) { background: color-mix(in srgb, var(--accent) 35%, transparent); border-style: solid; border-color: var(--accent); }
.handover-map__cell:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.handover-map__mark { font-weight: 700; font-size: 14px; color: var(--ink); }
.handover-damages { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.handover-damages__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); }
.handover-damages__no { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 14px; background: #C62828; color: #fff; font-weight: 700; font-size: 14px; }
.handover-damages__text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.handover-damages .btn--sm { min-height: 44px; }
textarea.handover-note { height: auto; min-height: 8em; padding: 10px 12px; font: inherit; line-height: 1.45; resize: vertical; }
.dlg__foot { flex-wrap: wrap; }
/* Partia 14, zadanie 5: miniatury protokołu przekazania u drugiej strony (siatka po dotyku do pełnego zdjęcia)
   i uwagi właściciela z zachowaniem podziału wierszy. */
.hthumbs { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); margin: 0; padding: 0; list-style: none; }
.hthumbs__item { display: grid; gap: 6px; min-width: 0; }
.hthumbs__item a { display: block; min-height: 44px; }
.hthumbs__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.hthumbs__cap { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.hpre { white-space: pre-line; overflow-wrap: anywhere; }

/* Partia 14 (poprawka przy zadaniu 5): stopka okna z trzema przyciskami (drugi przycisk zapisu) łamie przyciski do
   drugiego wiersza zamiast wystawać poza ekran 390 px. */
.dlg__foot--wrap { flex-wrap: wrap; }
.dlg__foot--wrap .btn { flex: 1 1 auto; }

/* Partia 17, zadanie 6: strona raportu dla kupującego pod odnośnikiem publicznym i strona „Sprawdź raport” (układ
   public/report/layout, bez nawigacji aplikacji). Najpierw telefon (390 px): jedna kolumna, tabela przebiegu bez
   przewijania w bok, suma kontrolna łamana w dowolnym miejscu. */
.rp { background: var(--bg); }
.rp__bar { display: flex; align-items: center; padding: var(--s4) var(--gutter); background: var(--garage); color: #fff; }
.rp__brand { color: #fff; }
.rp__main { width: min(100%, 760px); margin: 0 auto; padding: var(--s4) var(--gutter) var(--s6); display: grid; gap: var(--s3); outline: none; }
.rp__panel { display: grid; gap: var(--s3); padding: var(--s5) var(--s4); }
.rp__panel > .lead { margin-bottom: 0; }
.rp__panel > .btn { justify-self: start; }
.rp__kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rp__title { font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
.rp__h2 { font-size: 18px; font-weight: 700; font-stretch: 108%; text-wrap: balance; }
.rp__sub { color: var(--ink-2); }
.rp__vin { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.rp__vin b { color: var(--ink); letter-spacing: .02em; }
.rp__issue { font-weight: 600; }
.rp__hint { margin-top: 0; }
.rp__download { margin-top: var(--s1); }
.rp__list { display: grid; gap: var(--s2); padding-left: 1.1em; text-wrap: pretty; }
.rp__dl > div { grid-template-columns: minmax(110px, 42%) 1fr; }
.rp__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp__table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 0 6px 6px 0; }
.rp__table td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.rp__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp__entries { list-style: none; padding: 0; display: grid; }
.rp__entry { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.rp__entry:first-child { border-top: 0; padding-top: 0; }
.rp__entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.rp__entry-head span { color: var(--ink-2); }
.rp__entry-title { font-weight: 600; text-wrap: pretty; }
.rp__entry-items { color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.rp__entry-meta { color: var(--ink-3); font-size: 13px; }
.rp__level { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.rp__entry-head .rp__level--workshop, .rp__level--workshop { background: var(--green-tint); color: var(--green); }
.rp__entry-head .rp__level--document, .rp__level--document { background: var(--amber-tint); color: var(--amber); }
.rp__level--late { background: var(--red-tint); color: var(--red); }
.rp__sum-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rp__sum code, .rp__mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }
.rp__sum { padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); }
.rp__file .input { height: auto; padding: 10px 12px; }
.rp__result { font-weight: 600; text-wrap: pretty; }
.rp__result[data-state="ok"] { color: var(--green); }
.rp__result[data-state="no"], .rp__result[data-state="error"] { color: var(--red); }
.rp__issues { display: grid; gap: var(--s2); padding-left: 1.1em; }
.rp__form { display: grid; gap: var(--s4); }
.rp__form .btn { justify-self: start; }
.rp__verdict--ok { box-shadow: inset 4px 0 0 var(--green-fill); }
.rp__verdict--no { box-shadow: inset 4px 0 0 var(--red-fill); }
.rp__foot { width: min(100%, 760px); margin: 0 auto; padding: 0 var(--gutter) var(--s8); display: grid; gap: var(--s1); font-size: 13px; color: var(--ink-3); text-align: center; }
.rp__foot a { color: inherit; display: inline-block; padding: 8px 4px; }
/* Partia 17, zadanie 7: skład strony online raportu (te same sekcje co w PDF): wykres przebiegu, oś czasu, legenda
   poziomów, mierniki podzespołów, kafle dokumentów. Kolory tylko z tokenów; wykres rysuje atrybutami (PDF), a tutaj
   przejmują go klasy oc-* i tokeny motywu. */
.rp__note { color: var(--ink-2); text-wrap: pretty; }
.rp__h3 { font-size: 15px; font-weight: 700; margin-top: var(--s2); text-wrap: balance; }
.rp__scroll { overflow-x: auto; }
.rp__chart { display: grid; gap: var(--s1); margin: 0; }
.rp__chart-svg svg { display: block; width: 100%; height: auto; }
.rp__chart-svg .oc-text { fill: var(--ink-3); }
.rp__chart-svg .oc-grid { stroke: var(--line); }
.rp__chart-svg .oc-line { stroke: var(--ink); }
.rp__chart-svg .oc-dot { fill: var(--ink); }
.rp__legend { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.rp__legend li { display: grid; gap: 2px; justify-items: start; }
.rp__meter { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 12%, transparent); overflow: hidden; margin: 4px 0; }
.rp__meter-fill { display: block; height: 100%; border-radius: 3px; background: var(--ink-2); }
.rp__meter-fill--amber { background: var(--amber-fill); }
.rp__meter-fill--red { background: var(--red-fill); }
.rp__tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.rp__tile { display: grid; gap: 2px; align-content: start; }
.rp__tile-box { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.rp__tile-box img { width: 100%; height: 100%; object-fit: cover; }
.rp__tile-fmt { font-size: 18px; font-weight: 700; color: var(--ink-3); }
.rp__qr { justify-self: start; width: 140px; height: 140px; border-radius: var(--r-sm); background: #fff; padding: 6px; }
.rp__head--sample { box-shadow: inset 4px 0 0 var(--amber-fill); }
@media (min-width: 720px) {
  .rp__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp__legend li { grid-template-columns: max-content 1fr; align-items: baseline; gap: var(--s3); }
}
@media (min-width: 720px) {
  .rp__panel { padding: var(--s6) var(--s6); }
  .rp__title { font-size: 28px; }
}

/* Partia 15, zadanie 1: komponent ceny (x-price-tag). Cena sprzedaży wyraźnie, a najniższa cena z 30 dni przed obniżką,
   cena regularna, procent i data końca jako równorzędne zdania pomocnicze tą samą czcionką, każde w osobnym wersie,
   bez przekreśleń. Kolor zdań pomocniczych --ink-2 (nie --ink-3), żeby najniższa cena nie była ukryta. */
.price-tag { display: inline-flex; flex-direction: column; gap: var(--s1); max-width: 100%; }
.price-tag__label { font-size: 13px; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.price-tag__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); }
.price-tag__price strong { font-weight: 700; white-space: nowrap; }
.price-tag__unit { font-size: 13px; color: var(--ink-2); }
.price-tag__note { font-size: 13px; color: var(--ink-2); text-wrap: pretty; }

/* Partia 16, zadanie 11: statystyki floty (/flota/statystyki). Wykresy x-stat-chart jak w panelu administratora (klasy
   statchart, kolory z tokenów --c1..--c6 z osobnymi wartościami w motywie ciemnym), kafelki liczb i tabele pod wykresami. */
.statchart { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.statchart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.statchart__grid { stroke: var(--line); stroke-width: 1; }
.statchart__axis { stroke: var(--line); stroke-width: 1.5; }
.statchart__label { fill: var(--ink-3); font-size: 13px; }
.statchart__bar--a { fill: var(--c1); }
.statchart__bar--b { fill: var(--c2); }
.statchart__bar--c { fill: var(--c3); }
.statchart__bar--d { fill: var(--c4); }
.statchart__bar--e { fill: var(--c5); }
.statchart__bar--f { fill: var(--c6); }
.statchart__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.statchart__table th, .statchart__table td { padding: var(--s1) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.statchart__table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: var(--s3); }
.statchart__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.statchart__empty { margin: 0; color: var(--ink-3); }
.stattable { width: 100%; margin-top: var(--s4); border-collapse: collapse; font-size: 13px; }
.stattable th, .stattable td { padding: var(--s1) var(--s2) var(--s1) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.stattable thead th { color: var(--ink-3); }
.stattable td { font-variant-numeric: tabular-nums; }
.statrow { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.statrow__item { display: flex; flex-direction: column; gap: var(--s1); }
.statrow__item .hint { margin-top: 0; }
@media (max-width: 760px) {
  .statchart { grid-template-columns: minmax(0, 1fr); }
  .statchart__label { font-size: 20px; }
  .statchart--vertical .statchart__svg > text:last-child { text-anchor: end; }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Partia 16, zadanie 12: pulpit floty. Kafel jest odnośnikiem do listy, której liczbę pokazuje. */
.fdash { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.fdash__tile { display: flex; flex-direction: column; gap: var(--s1); height: 100%; padding: var(--s3) var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.fdash__tile:hover { border-color: var(--ink-3); }
.fdash__tile--urgent { border-color: color-mix(in oklab, var(--red) 55%, transparent); }
.fdash__n { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fdash__label { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.fdash__note { color: var(--red); font-size: 12.5px; font-weight: 600; }
@media (max-width: 760px) {
  .fdash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
