/* PartPoint public site. The look is the chosen mock A2; its rules,
   tokens and reasons are in design.md at the repository root. Plain CSS, linked from the site's
   root layout (not bundled: Turbopack runs bundled CSS through Tailwind, which the site does not use).
   Order: the shared soft language, then the page's sections, then the look (colour and type), then
   the home page's one system (mock E1 with E2's close), then the other pages. */
/* PartPoint "soft workshop" mocks: the look every direction shares.
   IDEA the reference's soft studio (pale trays, white cards that sit up off them, keycaps and
   round icon tiles, a phone on stage) carried over to car parts in Arabic.
   COLOUR light: white page, #f0f2f5 trays; dark: true black page, #0b0c0f trays.
   The site's cobalt is the one brand colour; a cobalt-sky-amber ring marks the chosen thing.
   TYPE Readex Pro (Arabic, built on Lexend) for every word and number. */

:root {
  --page: #ffffff; --tray: #f0f2f5; --tray-2: #e8ebef; --card: #ffffff; --card-2: #f6f7f9;
  --ink: #0b0c0e; --muted: #61656e; --line: rgb(11 12 14 / .08); --hi: rgb(255 255 255 / .9);
  --accent: #1f2de6; --accent-soft: #e6e8ff; --amber: #c26a00; --ok: #0f7a40; --warn: #a15c00;
  --solid: #0b0c0e; --solid-ink: #ffffff;
  --cap-top: #ffffff; --cap-bot: #eceef2;
  --screen: #f6f7f9; --frame: #0b0c0e;
  --sh-1: 0 1px 2px rgb(16 20 36 / .06), 0 4px 14px rgb(16 20 36 / .06);
  --sh-2: 0 2px 4px rgb(16 20 36 / .05), 0 18px 40px -8px rgb(16 20 36 / .16);
  --sh-cap: inset 0 1px 0 #fff, inset 0 -3px 0 rgb(16 20 36 / .07), 0 6px 14px -2px rgb(16 20 36 / .16);
  --ring: linear-gradient(120deg, #4d5dff, #38bdf8 45%, #ffb020);
  --dot: rgb(11 12 14 / .16);
  /* The families by name, as the mocks set them, not next/font's variables: those carry a
     size-adjusted local Arial fallback after Funnel, and Arial has Arabic, so it would set the
     Arabic before Readex Pro on most desktops. Turbopack registers the files under these names. */
  --font: "Funnel Sans", "Readex Pro", system-ui, sans-serif;
  --font-display: "Funnel Display", "Readex Pro", system-ui, sans-serif;
  /* motion: --ease for entrances and travel; --ease-ui and the m- times for what answers a pointer
     (in on hover, out when it leaves, press on click) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.2, .8, .2, 1);
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms;
  --r-sm: 12px; --r: 20px; --r-lg: 32px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --page: #000000; --tray: #0b0c0f; --tray-2: #111217; --card: #141519; --card-2: #1b1c21;
  --ink: #ffffff; --muted: #9b9ea6; --line: rgb(255 255 255 / .08); --hi: rgb(255 255 255 / .07);
  --accent: #6b78ff; --accent-soft: rgb(77 93 255 / .16); --amber: #ffb020; --ok: #6fdc9b; --warn: #ffb020;
  --solid: #ffffff; --solid-ink: #000000;
  --cap-top: #2a2b31; --cap-bot: #17181c;
  --screen: #0e0f12; --frame: #26272c;
  --sh-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 6px 18px rgb(0 0 0 / .5);
  --sh-2: 0 1px 0 rgb(255 255 255 / .05) inset, 0 24px 48px -10px rgb(0 0 0 / .8);
  --sh-cap: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -3px 0 rgb(0 0 0 / .4), 0 8px 16px -2px rgb(0 0 0 / .7);
  --dot: rgb(255 255 255 / .2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--solid); color: var(--solid-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- frame ---------- */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(56px, 6vw, 80px); }
.tray { background: var(--tray); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: inset 0 1px 0 var(--hi); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid var(--line); position: relative; overflow: hidden; }
a.card, .card--lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.card:hover, .card--lift:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

/* ---------- type ---------- */
.h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; line-height: 1.18; text-wrap: balance; }
.h3 { font-size: 21px; font-weight: 500; line-height: 1.35; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-block-end: clamp(24px, 3vw, 40px); }
.head--center { flex-direction: column; align-items: center; text-align: center; }
.head--center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding-inline: 28px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--solid { background: var(--solid); color: var(--solid-ink); box-shadow: 0 8px 20px -8px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .18); }
html[data-theme="dark"] .btn--solid { box-shadow: 0 8px 24px -8px rgb(255 255 255 / .25); }
.btn--ring { background: linear-gradient(var(--card), var(--card)) padding-box, var(--ring) border-box; border: 2px solid transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 12px; }
.btn--ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); transform: none; }
.btn--sm { --h: 44px; padding-inline: 20px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .arrow { scale: -1 1; } /* the arrow icon points right; "forward" in Arabic is left */

/* ---------- small objects ---------- */
.tile { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); color: var(--ink); }
.tile svg { width: 20px; height: 20px; }
.tile--sm { width: 34px; height: 34px; } .tile--sm svg { width: 16px; height: 16px; }
.tile--lg { width: 64px; height: 64px; } .tile--lg svg { width: 28px; height: 28px; }
.tile--accent { background: linear-gradient(#6b78ff, #2a37ee); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -3px 0 rgb(0 0 0 / .18), 0 10px 22px -6px rgb(42 55 238 / .6); }
.tile img { width: 22px; height: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 6px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.chip .tile { width: 30px; height: 30px; } .chip .tile svg { width: 15px; height: 15px; }
.chip--plain { padding-inline: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill--ok { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.pill--warn { background: color-mix(in oklab, var(--warn) 14%, transparent); color: var(--warn); }
.pill--mute { background: var(--card-2); color: var(--muted); }
.cap { display: grid; place-items: center; border-radius: 14px; background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); font-weight: 500; }
.dots-bg { background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding-block: 14px; background: color-mix(in oklab, var(--page) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
.nav__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; text-decoration: none; justify-self: start; }
.logo__mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#6b78ff, #2a37ee); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 14px -4px rgb(42 55 238 / .6); }
.logo__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .i-moon, html[data-theme="light"] .i-sun { display: none; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav__links a:hover { color: var(--ink); }

/* ---------- phone ---------- */
.phone { width: 300px; aspect-ratio: 300 / 620; border-radius: 50px; padding: 9px; background: var(--frame); position: relative;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 40px 80px -24px rgb(16 20 36 / .45), 0 12px 24px -12px rgb(16 20 36 / .3); }
html[data-theme="dark"] .phone { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .16), 0 40px 90px -20px rgb(77 93 255 / .25), 0 20px 40px -10px rgb(0 0 0 / .9); }
.phone__screen { height: 100%; border-radius: 42px; background: var(--screen); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone__island { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 99px; background: #000; z-index: 2; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px 0; height: 52px; font-size: 14px; font-weight: 500; direction: ltr; }
.phone__status i { width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .8; position: relative; }
.phone__status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.app { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 13px; }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app__title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.app__group { background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.app__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.app__row + .app__row { border-top: 1px solid var(--line); }
.app__row b { font-weight: 500; display: block; font-size: 13.5px; line-height: 1.35; }
.app__row small { color: var(--muted); font-size: 12px; display: block; line-height: 1.35; }
.app__row > svg { width: 16px; height: 16px; flex: none; }
.app__row .price { margin-inline-start: auto; font-weight: 500; font-size: 14px; white-space: nowrap; }
.app__label { font-size: 12.5px; color: var(--muted); padding-inline: 4px; display: flex; justify-content: space-between; }
.app__btn { margin-top: auto; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--solid); color: var(--solid-ink); font-weight: 500; font-size: 14px; }
.app__btn--accent { background: var(--accent); color: #fff; }
.app__tabs { display: flex; justify-content: space-around; padding: 8px 10px 18px; border-top: 1px solid var(--line); background: var(--card); font-size: 11px; color: var(--muted); }
.app__tabs span { display: grid; justify-items: center; gap: 3px; }
.app__tabs span[aria-current] { color: var(--accent); }
.app__tabs svg { width: 20px; height: 20px; }
.app .tile { width: 32px; height: 32px; } .app .tile svg { width: 15px; height: 15px; }
.seg-mini { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--tray); font-size: 12px; }
.seg-mini span { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; color: var(--muted); }
.seg-mini span[aria-current] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- floating notes around a stage ---------- */
.note { background: color-mix(in oklab, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-radius: 22px; padding: 14px 16px; box-shadow: var(--sh-2); border: 1px solid var(--line); font-size: 14px; }
.note b { font-weight: 500; }
.note small { color: var(--muted); font-size: 13px; }
.note__row { display: flex; align-items: center; gap: 12px; }

/* ---------- accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--tray); border-radius: 22px; border: 1px solid var(--line); transition: background-color .2s; position: relative; }
.faq details[open] { background: var(--card); box-shadow: var(--sh-2); }
.faq details[open]::before { content: ""; position: absolute; inset-inline-start: -2px; top: 18px; width: 4px; height: 28px; border-radius: 4px; background: var(--ring); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 14px; padding-inline-start: 24px; font-size: 17px; font-weight: 500; min-height: 64px; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .tile { width: 38px; height: 38px; border-radius: 12px; }
.faq summary .tile svg { width: 18px; height: 18px; }
.faq .i-minus { display: none; }
.faq details[open] .i-minus { display: block; } .faq details[open] .i-plus { display: none; }
.faq details[open] summary .tile { background: var(--solid); color: var(--solid-ink); box-shadow: none; }
.faq p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }

/* ---------- the hero's entrance: once on load, then it stands (hero-stage.tsx: HeroEnter) ----------
   HeroEnter marks .hero2.is-in once the fonts are in (700ms at most) and gives each heading word its
   line (--l). The heading rises line by line out of word masks (700ms, lines 80ms apart); the lead,
   buttons and figures fade up 12px (520ms, 60ms apart, from --t0: the last line half way up); the
   stage settles from .98 and is never hidden. Then the map answers in one beat, the cities 120ms
   apart: lines draw, rings open, tags land and swing once. Still by about 2s. Until .is-in the moving
   parts wait unseen, and show anyway after 1.2s if the script is late (.is-late then skips the
   entrance). Under reduced motion every animation is off, so everything stands as written. */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes hero-wait { from { opacity: 0; } }
@keyframes hero-rise { from { transform: translateY(110%); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes hero-settle { from { transform: scale(.98); } }
@keyframes hero-tag { from { opacity: 0; transform: translateY(-14px); } }
@keyframes hero-swing { 20% { rotate: 6deg; } 45% { rotate: -3.5deg; } 70% { rotate: 1.5deg; } }
.hero2 .h1 .w { display: inline-block; overflow: hidden; padding-block: .1em .2em; margin-block: -.1em -.2em; vertical-align: top; }
.hero2 .h1 .wi { display: inline-block; }
html.js .hero2:not(.is-in) :is(.h1 .wi, .lead, .hero2__cta, .hero2__facts, .hm__line, .tag-w) { animation: hero-wait 400ms 1.2s both; }
html.js .hero2:not(.is-in) .hstage { transform: scale(.98); }
.hero2.is-in:not(.is-late) .h1 .wi { animation: hero-rise 700ms var(--ease) both; animation-delay: calc(var(--l, 0) * 80ms); }
.hero2.is-in:not(.is-late) :is(.lead, .hero2__cta, .hero2__facts) { animation: hero-up 520ms var(--ease) both; animation-delay: calc(var(--t0, 350ms) + var(--i, 0) * 60ms); }
.hero2.is-in:not(.is-late) .hstage { animation: hero-settle 900ms var(--ease) both; }
.hero2.is-in:not(.is-late) .hm__line { animation: draw 700ms var(--ease) both; animation-delay: calc(250ms + var(--i) * 120ms); }
.hero2.is-in:not(.is-late) .hm__ring { animation: ring 900ms var(--ease) both; animation-delay: calc(650ms + var(--i) * 120ms); }
.hero2.is-in:not(.is-late) .tag-w { animation: hero-tag 450ms var(--ease) both; animation-delay: calc(700ms + var(--i) * 120ms); }
.hero2.is-in:not(.is-late) .tag { animation: hero-swing 800ms var(--ease) both; animation-delay: calc(850ms + var(--i) * 120ms); }

@media (max-width: 900px) {
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .btn { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- theme switch: a circle from the button ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .55s var(--ease); }
@keyframes reveal { from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); } to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 50%) var(--ty, 0)); } }



/* the soft objects */
.art { position: relative; height: 230px; border-radius: 16px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; }
.art.dots-bg { background-color: var(--card-2); }
.keys { display: grid; justify-items: center; gap: 18px; }
.keys__row { display: flex; gap: 8px; }
.keys .cap { width: 42px; height: 50px; font-size: 22px; }
.ist { position: relative; width: 260px; height: 190px; }
.ist__card { position: absolute; inset: 24px 30px; border-radius: 14px; background: linear-gradient(135deg, #e9f3ea, #d6e7d9); box-shadow: var(--sh-2); padding: 16px; display: grid; align-content: start; gap: 8px; overflow: hidden; }
html[data-theme="dark"] .ist__card { background: linear-gradient(135deg, #20352a, #16241c); }
.ist__card i { height: 7px; border-radius: 4px; background: rgb(0 0 0 / .1); width: 80%; }
html[data-theme="dark"] .ist__card i { background: rgb(255 255 255 / .12); }
.ist__card b { position: absolute; inset-inline-start: 16px; bottom: 14px; width: 34px; height: 40px; border-radius: 6px; background: rgb(0 0 0 / .08); }
.ist__beam { position: absolute; inset-inline: 0; top: 42%; height: 2px; background: #4d5dff; box-shadow: 0 0 14px 3px rgb(77 93 255 / .5); }
.ist .chip { position: absolute; height: 34px; font-size: 13px; padding-inline: 12px; }
.ist__c1 { top: 0; inset-inline-end: 0; } .ist__c2 { bottom: 6px; inset-inline-end: 12px; } .ist__c3 { top: 74px; inset-inline-start: -8px; font-size: 12px; }
/* the merchant window */
.win { border-radius: 20px; background: var(--card); box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; position: relative; z-index: 1; }
.win__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--tray-2); }
.win__bar span { margin-inline-start: 10px; }
.win__body { padding: 16px; display: grid; gap: 8px; font-size: 14px; }
.win__head { display: flex; align-items: center; gap: 10px; padding-inline: 4px; margin-bottom: 4px; } .win__head b { font-weight: 500; font-size: 16px; }
.win__row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.win__row b { font-weight: 500; display: block; } .win__row small { color: var(--muted); font-size: 12.5px; }
.win__send { --h: 34px; padding-inline: 14px; font-size: 13px; }
.win__reveal { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(var(--card), var(--card)) padding-box, var(--ring) border-box; border: 1.5px solid transparent; }
.win__reveal b { font-weight: 500; display: block; font-size: 13.5px; } .win__reveal small { color: var(--muted); font-size: 12.5px; }
.win__num { margin-inline-start: auto; font-weight: 500; letter-spacing: .04em; }
@media (max-width: 640px) { .win__row { grid-template-columns: 1fr auto; } .win__row > .small { display: none; } }

/* tokens the dealt moment (pinned-chapters) reads */
:root { --s-2: 8px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --t-lead: 19px; --gutter: clamp(24px, 4vw, 64px); --r-md: 20px; --ground-bg: var(--tray); --nav-h: 72px;
  --metal-a: #f3f5f8; --metal-b: #b8bec9; --ink-stamp: #1f2de6; }
html[data-theme="dark"] { --metal-a: #5b616d; --metal-b: #23262c; --ink-stamp: #8b95ff; }

/* hero */
.hero2 { padding-top: clamp(44px, 5vw, 56px); text-align: center; }
.hero2 .h1 { max-width: 860px; margin: 14px auto 18px; }
.hero2 .lead { margin-inline: auto; }
.hero2__cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hstage { position: relative; direction: ltr; width: min(620px, 100%); aspect-ratio: 347 / 266; margin: 28px auto 0; }
.hm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hm__dots { fill: var(--dot); }
.hm__other { fill: color-mix(in oklab, var(--accent) 45%, transparent); }
.hm__pin { fill: var(--accent); }
.hm__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hm__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes ring { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
.ticket-w { position: absolute; left: 57%; top: 47%; translate: -50% -50%; z-index: 3; filter: drop-shadow(0 24px 40px rgb(16 20 36 / .2)) drop-shadow(0 2px 4px rgb(16 20 36 / .08)); }
html[data-theme="dark"] .ticket-w { filter: drop-shadow(0 24px 48px rgb(0 0 0 / .8)); }
.ticket { width: 296px; text-align: start; background: var(--card); border-radius: 20px; padding: 26px 20px 18px; display: grid; gap: 14px;
  -webkit-mask: radial-gradient(circle 6px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; mask: radial-gradient(circle 6px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; }
.ticket__car { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.ticket__items { display: grid; gap: 10px; padding-block: 14px; border-block: 1.5px dashed var(--line); font-size: 15px; }
.ticket__items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticket__items b { font-weight: 500; color: var(--muted); }
.ticket__foot { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--accent); }
.ticket__foot svg { width: 18px; height: 18px; }
.ticket__count b { font-weight: 600; }
.plate { display: inline-grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; direction: ltr; border: 1.5px solid #16181d; border-radius: 6px; background: #fff; color: #16181d; overflow: hidden; flex: none; }
.plate > span { padding: 1px 6px; font: 600 11px/1.35 var(--font); text-align: center; }
.plate__d { border-inline-end: 1px solid #16181d; }
.plate > span:nth-child(-n+2) { border-bottom: 1px solid #16181d; }
.plate__ksa { grid-column: 3; grid-row: 1 / 3; writing-mode: vertical-rl; rotate: 180deg; font-size: 8px !important; letter-spacing: .08em; background: #e8f0ff; border-inline-end: 1px solid #16181d; display: grid; place-items: center; }
/* hang tags: the price tags of a parts counter, on a short string to the city */
.tag-w { position: absolute; z-index: 2; top: var(--y); filter: drop-shadow(0 12px 22px rgb(16 20 36 / .18)); }
html[data-theme="dark"] .tag-w { filter: drop-shadow(0 12px 26px rgb(0 0 0 / .8)); }
.tag-w--left { right: calc(100% - var(--x) + 34px); translate: 0 -50%; }
.tag-w--right { left: calc(var(--x) + 34px); translate: 0 -50%; }
.tag-w::before { content: ""; position: absolute; top: 50%; width: 34px; height: 1.5px; background: var(--muted); }
.tag-w--left::before { left: 100%; } .tag-w--right::before { right: 100%; }
.tag { position: relative; width: 176px; text-align: start; background: var(--card); padding: 14px 18px; display: grid; gap: 2px; }
.tag--left { padding-left: 30px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); border-radius: 14px 0 0 14px; }
.tag--right { padding-right: 30px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); border-radius: 0 14px 14px 0; }
.tag::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--page); box-shadow: inset 0 1px 2px rgb(0 0 0 / .25); }
.tag--left::after { right: 10px; } .tag--right::after { left: 10px; }
.tag__price { font-size: 24px; font-weight: 500; line-height: 1.2; }
.tag__cond { font-size: 13px; font-weight: 500; }
.tag__cond--ok { color: var(--ok); } .tag__cond--warn { color: var(--warn); } .tag__cond--mute { color: var(--muted); }
.tag__who { font-size: 13px; color: var(--muted); }

/* stamps: condition, inked on like a counter stamp */
.stamp { display: inline-grid; place-items: center; font-weight: 600; color: var(--ink-stamp); border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 6px; white-space: nowrap; rotate: var(--r, -4deg); }
.stamp--sm { font-size: 12px; padding: 1px 8px; outline-offset: 1.5px; }
.stamp--warn { color: var(--warn); } .stamp--any { color: var(--muted); }
.stamp--big { font-size: 26px; padding: 6px 18px; outline-width: 1.5px; outline-offset: 3px; opacity: .92; }

/* tray of three */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trio .card { padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.trio .art { margin-top: auto; height: 210px; background: transparent; }
.scratch { position: relative; width: 250px; }
.scratch__card { background: linear-gradient(135deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; box-shadow: var(--sh-2); }
.scratch__num { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 500; direction: ltr; }
.scratch__foil { flex: 1; height: 30px; border-radius: 6px; background: repeating-linear-gradient(115deg, #c9ced8 0 6px, #e3e6ec 6px 12px); box-shadow: inset 0 1px 2px rgb(0 0 0 / .2);
  -webkit-mask: radial-gradient(circle 9px at 8px 60%, transparent 96%, #000), linear-gradient(#000, #000); -webkit-mask-composite: source-in; }
html[data-theme="dark"] .scratch__foil { background: repeating-linear-gradient(115deg, #6a707c 0 6px, #858b97 6px 12px); }
.scratch__line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.scratch__line svg { width: 14px; height: 14px; }
.coin { position: absolute; left: -22px; bottom: -18px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #6b4a00;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e0a526 70%); box-shadow: inset 0 0 0 4px rgb(255 255 255 / .35), inset 0 -3px 0 rgb(0 0 0 / .15), 0 8px 16px -4px rgb(120 80 0 / .45); rotate: -14deg; }
.stamps { position: relative; width: 270px; height: 210px; }
.stamps .stamp--big { position: absolute; }
.stamps .stamp--big:nth-child(1) { top: 4px; right: 10px; } .stamps .stamp--big:nth-child(2) { top: 28px; left: 4px; } .stamps .stamp--big:nth-child(3) { top: 74px; right: 92px; font-size: 18px; padding: 4px 12px; }
.stamps__row { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: 14px; box-shadow: var(--sh-2); border: 1px solid var(--line); font-size: 13px; }
.stamps__row b { display: block; font-weight: 500; font-size: 14px; } .stamps__row small { color: var(--muted); }
.stamps__row .stamp { margin-inline-start: auto; }
.wk { width: 100%; }
.wk__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wk__d { display: grid; gap: 8px; justify-items: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.wk__d b { width: 100%; height: 92px; border-radius: 12px; display: flex; flex-direction: column-reverse; align-items: center; gap: 5px; padding: 8px 0; }
.wk__d i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 6px rgb(31 45 230 / .4); }
.wk__d--past b { background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); }
.wk__d--today b { background: var(--card); box-shadow: 0 0 0 2px var(--accent), var(--sh-1); }
.wk__d--today { color: var(--accent); font-weight: 500; }
.wk__d--left b { border: 1.5px dashed var(--line); }
.wk__left { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; } .wk__left b { color: var(--ink); font-weight: 500; }

/* the catalogue */
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.keyboard { grid-template-rows: repeat(4, 1fr); }
.keyboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; border-radius: 26px; background: var(--tray-2); box-shadow: inset 0 2px 6px rgb(0 0 0 / .08); align-content: start; }
.key { min-height: 96px; border: 0; border-radius: 16px; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 6px; padding: 6px; font-size: 12.5px; line-height: 1.3;
  background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); color: var(--ink); transition: transform .12s var(--ease), box-shadow .12s; }
.key svg { width: 22px; height: 22px; }
.key:hover { transform: translateY(-1px); }
.key:active, .key[aria-pressed="true"] { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgb(0 0 0 / .15); }
.key[aria-pressed="true"] { color: var(--accent); background: linear-gradient(var(--card), var(--card)) padding-box, var(--ring) border-box; border: 2px solid transparent; }
.cat__sheet { padding: 22px; display: grid; gap: 16px; grid-template-rows: auto 1fr auto; }
.cat__sheet[hidden] { display: none; }
.cat__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .cat__head b { font-size: 21px; font-weight: 500; }
.cat__fig { position: relative; direction: ltr; background: var(--card-2); border-radius: 16px; padding: 18px 10px; background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; }
.brake { width: 100%; height: auto; display: block; }
.brake__axis { stroke: var(--muted); stroke-dasharray: 3 6; stroke-width: 1.5; opacity: .6; }
.brake__rim { stroke: rgb(0 0 0 / .12); }
.brake__track { fill: none; stroke: rgb(0 0 0 / .08); stroke-width: 26; }
html[data-theme="dark"] .brake__track { stroke: rgb(255 255 255 / .05); }
.brake__holes circle, .brake__lugs circle { fill: var(--metal-b); stroke: rgb(0 0 0 / .18); }
.brake__bore { fill: var(--card-2); stroke: rgb(0 0 0 / .2); }
.brake__back { fill: #3b3f48; } .brake__friction { fill: #8c8f96; }
.brake__bolt { fill: var(--metal-a); stroke: var(--metal-b); stroke-width: 1.5; } .brake__shaft { fill: var(--metal-b); }
.brake__part { transition: opacity .25s, filter .25s; }
.cat__fig:has(.callout[aria-pressed="true"]) .brake__part { opacity: .45; }
.cat__fig .brake__part.is-on { opacity: 1; filter: drop-shadow(0 0 10px rgb(77 93 255 / .55)); }
.callout { position: absolute; width: 34px; height: 34px; translate: -50% -50%; border: 0; cursor: pointer; font-size: 15px; color: var(--ink); font-family: var(--font); transition: transform .15s var(--ease); }
.callout:hover { transform: translateY(-1px); }
.callout[aria-pressed="true"], .part[aria-pressed="true"] .cap { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 6px 14px -4px rgb(31 45 230 / .6); }
.cat__parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.part { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-family: var(--font); }
.part .cap { width: 30px; height: 30px; flex: none; border-radius: 9px; font-size: 14px; }
.part b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; } .part small { color: var(--muted); font-size: 12.5px; }
.part__add { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; white-space: nowrap; }
.part__add svg { width: 14px; height: 14px; } .part__add em { font-style: normal; }
.part .i-check, .part[aria-pressed="true"] .i-plus { display: none; } .part[aria-pressed="true"] .i-check { display: inline; }
.part[aria-pressed="true"] { border-color: color-mix(in oklab, var(--accent) 40%, transparent); background: var(--accent-soft); }
.cat__sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.cat__plain { display: flex; gap: 24px; align-items: center; justify-content: center; background: var(--card-2); border-radius: 16px; padding: 32px; }
.cat__list { display: grid; gap: 10px; } .cat__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; } .cat__list b { font-weight: 500; }
.cat__list .cap { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }

/* the dealt moment, set right to left */
html[dir="rtl"] [data-moment="pinned-chapters"] .mo-pc__step { padding-left: 0; padding-right: var(--s-5); border-left: 0; border-right: 2px solid var(--line); }
html[dir="rtl"] [data-moment="pinned-chapters"].is-live .mo-pc__step.is-on { border-right-color: var(--accent); }
html[dir="rtl"] [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step { border-right: 0; padding-right: 0; }
[data-moment="pinned-chapters"] .mo-pc__text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; line-height: 1.18; }
[data-moment="pinned-chapters"] .mo-pc__step h3 { font-size: 21px !important; }
[data-moment="pinned-chapters"] .mo-pc__step p { color: var(--muted) !important; }
[data-moment="pinned-chapters"] .mo-pc__visuals { border-radius: var(--r-lg); overflow: hidden; }
html[dir="rtl"] [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { align-items: flex-start; overflow: hidden; border-radius: var(--r-lg); padding-bottom: 0;
  background: var(--tray); background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; }
[data-moment="pinned-chapters"] .mo-pc__visual .phone { width: 280px; flex: none; }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual--lit { max-height: 340px; }
/* pinned, the phone fills most of the screen, so the steps' screen reads full and the white before it shrinks */
[data-moment="pinned-chapters"].is-live .mo-pc__visuals { height: min(640px, 70svh); }
[data-moment="pinned-chapters"].is-live .mo-pc__visual--lit { height: 100%; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; margin-inline-end: 10px; vertical-align: 2px; }
/* steps below 1024px (steps-rise.tsx, is-rise): the section holds for a screen of scroll (two
   screens tall, as the live desktop moment); on the sticky stage the lines sit on top, the three step
   names a rail with the step in hand's lines under it, and one phone rises from the bottom edge, its
   screens pushed in sideways (from the left in Arabic). From 640px the phone stands beside the lines.
   The kit's own rules (moment.css) are matched one class higher. */
.mo-pc__rise { display: none; }
main > [data-moment="pinned-chapters"][data-moment].is-rise:not(.is-live) { height: 200svh; min-height: 0; padding: 0; }
main [data-moment="pinned-chapters"][data-moment].is-rise > .mo-pc__grid { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; align-content: stretch;
  padding-top: calc(var(--nav-h) + 24px); overflow: clip; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__text { gap: 18px; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 14px; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step { display: contents; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step h3 { grid-row: 1; align-self: start; border-top: 3px solid var(--line); padding-top: 8px; font-size: 14px !important; line-height: 1.3; color: var(--muted); transition: color .3s, border-color .3s; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step:nth-child(1) h3 { grid-column: 1; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step:nth-child(2) h3 { grid-column: 2; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step:nth-child(3) h3 { grid-column: 3; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step.is-now h3 { border-color: var(--accent); color: var(--ink); }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step h3 .step-n { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; margin-inline-end: 6px; vertical-align: 1px; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step p { grid-row: 2; grid-column: 1 / -1; align-self: start; opacity: 0; translate: 0 8px; visibility: hidden;
  transition: opacity .3s ease, translate .5s var(--ease), visibility 0s .3s; }
main [data-moment="pinned-chapters"].is-rise .mo-pc__step.is-now p { opacity: 1; translate: 0 0; visibility: visible; transition: opacity .3s ease, translate .5s var(--ease); }
main [data-moment="pinned-chapters"].is-rise .mo-pc__visual { display: none; }
/* stretch, not the kit's centre: a centred 620px phone in a shorter row rises over the lines */
main [data-moment="pinned-chapters"].is-rise .mo-pc__rise { display: flex; justify-content: center; align-items: flex-start; align-self: stretch; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mo-pc__rise .phone { width: 300px; flex: none; }
.rise__track { flex: 1; min-height: 0; display: flex; transform: translateX(calc(var(--rise-k, 0) * -100%)); transition: transform .5s var(--ease); }
html[dir="rtl"] .rise__track { transform: translateX(calc(var(--rise-k, 0) * 100%)); }
.rise__track > .app { flex: 0 0 100%; }
@media (min-width: 640px) {
  main [data-moment="pinned-chapters"][data-moment].is-rise > .mo-pc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: var(--gutter); align-items: center; padding-bottom: 24px; }
  main [data-moment="pinned-chapters"].is-rise .mo-pc__rise { align-items: center; -webkit-mask-image: none; mask-image: none; }
}

/* start: Istimara and WhatsApp */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair .card { padding: 12px; display: flex; flex-direction: column; }
.pair .card > div:last-child { padding: 20px 14px 14px; }
.pair .art { height: 300px; }
.fields { position: absolute; inset-inline-end: 22px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; width: 220px; }
.fields li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card); box-shadow: var(--sh-1); font-size: 13px; }
.fields li b { font-weight: 500; display: block; font-size: 13.5px; } .fields li small { color: var(--muted); font-size: 11.5px; display: block; }
.fields .tile { width: 26px; height: 26px; color: var(--ok); } .fields .tile svg { width: 13px; height: 13px; }
.pair .ist { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; scale: 1.05; }
.otp-art { display: grid; justify-items: center; gap: 16px; }
.otp-art .field { width: 270px; height: 50px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; align-items: center; gap: 10px; padding-inline: 14px; font-size: 18px; direction: ltr; color: var(--muted); }
.otp-art .field svg { width: 18px; height: 18px; color: var(--ink); }
.otp-art .keys__row { display: flex; gap: 8px; direction: ltr; }
.otp-art .cap { width: 40px; height: 48px; font-size: 21px; }
.otp-art .cap:nth-child(n+5) { color: var(--muted); background: var(--card-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .1); }
.otp-art .small { display: flex; align-items: center; gap: 8px; }
.otp-art .small img { width: 18px; height: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rows { display: grid; gap: 10px; margin-block: 28px 32px; }
.rows li { display: flex; align-items: center; gap: 14px; padding: 8px; padding-inline-end: 20px; border-radius: 999px; background: var(--tray); border: 1px solid var(--line); font-size: 15.5px; }
.rows .tile { width: 40px; height: 40px; } .rows .tile svg { width: 18px; height: 18px; }
.faq2 { max-width: 820px; margin-inline: auto; }

/* ---------- the touch layer (components/site: hero-stage, trio-objects, catalogue-board) ---------- */
.hm-lit { fill: var(--accent); opacity: 0; transition: opacity .35s; pointer-events: none;
  -webkit-mask: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 100%); mask: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 100%); }
.hm-lit circle { r: 2.6px; }
.hstage:hover .hm-lit { opacity: 1; }
@media (hover: none) { .hm-lit { display: none; } }
.ticket { transition: transform .3s var(--ease); } .ticket-w:hover .ticket { transform: translateY(-3px); }
.ticket__count.tick { animation: tick .4s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(6px); } }
/* a hang tag swings on its hole when it lands (the entrance above), and again when touched */
.tag--left { transform-origin: calc(100% - 14px) 50%; } .tag--right { transform-origin: 14px 50%; }
.hero2 .tag-w:hover .tag { animation: swing2 1.2s var(--ease) both; animation-delay: 0s; }
@keyframes swing2 { 0% { rotate: 0deg; } 15% { rotate: -8deg; } 35% { rotate: 5deg; } 55% { rotate: -3deg; } 75% { rotate: 1.2deg; } 100% { rotate: 0deg; } }
/* scratch */
.scratch__foil { position: relative; display: grid; place-items: center; background: var(--card-2); border-radius: 6px; -webkit-mask: none; mask: none; box-shadow: inset 0 1px 2px rgb(0 0 0 / .12); overflow: hidden; }
.scratch__under { font-size: 13px; font-weight: 500; color: var(--accent); }
.scratch__cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; transition: opacity .5s; }
.coin { transition: rotate .6s var(--ease), transform .6s var(--ease); }
.scratch:hover .coin { transform: rotateY(360deg); }
/* stamps you can press */
.stamps button.stamp { background: none; cursor: pointer; font-family: var(--font); transition: transform .15s var(--ease); }
.stamps button.stamp:hover { transform: scale(1.04); }
.stamps button.stamp[aria-pressed="true"] { opacity: 1; }
.stamps button.stamp[aria-pressed="false"] { opacity: .55; }
.stamp.is-press { animation: press .35s var(--ease); }
@keyframes press { 40% { transform: scale(.86) translateY(3px); } }
.stamp--ok { color: var(--ok); }
.stamp.is-stamp { animation: inked .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes inked { from { opacity: 0; transform: scale(1.8); } }
/* the week: offers drop onto their days; a day says what it holds */
.wk.is-play .wk__d i { animation: drop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.wk.is-play .wk__d:nth-child(1) i:nth-child(2) { animation-delay: .12s; } .wk.is-play .wk__d:nth-child(2) i { animation-delay: .24s; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } }
.wk__d { position: relative; }
.wk__d:hover::after { content: attr(data-tip); position: absolute; top: -26px; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--solid); color: var(--solid-ink); font-size: 11px; }
/* the code types itself */
.otp-art .cap.is-in { color: var(--ink); background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); animation: keyin .22s var(--ease); }
@keyframes keyin { 50% { transform: translateY(3px); box-shadow: 0 1px 2px rgb(0 0 0 / .2); } }
.otp-art .keys__row.is-ok .cap { box-shadow: var(--sh-cap), 0 0 0 2px var(--ok); transition: box-shadow .3s; }
/* the Istimara is read again */
.is-play .ist__beam { animation: beam 1s var(--ease); }
@keyframes beam { from { top: 0; } to { top: 100%; } }
.is-play .fields li { animation: pop .5s var(--ease) both; }
.is-play .fields li:nth-child(2) { animation-delay: .2s; } .is-play .fields li:nth-child(3) { animation-delay: .4s; }
/* the 3D brake */
.cat__fig.is-3d { padding: 0; }
.cat__fig.is-3d > svg.brake { display: none; }
.cat__tools { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 10px; }
.cat__tools .chip { height: 36px; font-size: 13.5px; cursor: pointer; font-family: var(--font); }
.cat__tools .chip svg { width: 16px; height: 16px; }
.cat__tools .i-check, .cat__tools [aria-pressed="true"] .i-plus { display: none; } .cat__tools [aria-pressed="true"] .i-check { display: inline; }
.cat__fig:not(.is-3d) .cat__tools { display: none; }
.cat__fig.is-3d .callout { transition: transform .15s var(--ease), background-color .2s, opacity .25s; }
@media (hover: none) { .cat__hint { display: none; } }

/* ---------- the look: the skill's dealt soot bands, with the client's primary #2563eb ----------
   #2563eb fills the main button, the selected key, the stamps and the marks. Light is white with
   soot bands; dark is true black. Text-sized blue on black uses a lighter tint (#7aa5ff) so it
   keeps its contrast; fills stay #2563eb. */
html[data-theme="light"] {
  --page: #ffffff; --tray: #f1f3f7; --tray-2: #e6e9ef; --card: #ffffff; --card-2: #f6f7fa;
  --ink: #0f1115; --muted: #5d6170; --line: rgb(15 15 15 / .1); --line-strong: rgb(15 15 15 / .28);
  --accent: #2563eb; --accent-soft: #e8efff; --lime: #2563eb; --lime-ink: #ffffff; --ok: #2f7a1f; --warn: #a35a00;
  --solid: #0f0f0f; --solid-ink: #ffffff; --cap-top: #ffffff; --cap-bot: #eceef3; --screen: #f6f7fa; --dot: rgb(15 15 15 / .16);
  --ring: linear-gradient(var(--lime), var(--lime)); --metal-a: #f3f4f7; --metal-b: #b9bec8; --ink-stamp: var(--accent);
}
html[data-theme="dark"], .soot {
  --page: #000000; --tray: #0c0d10; --tray-2: #121318; --card: #15161a; --card-2: #1c1d22;
  --ink: #ffffff; --muted: #9ea3ad; --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .3);
  --accent: #7aa5ff; --accent-soft: rgb(37 99 235 / .18); --lime: #2563eb; --lime-ink: #ffffff; --ok: #a8e07a; --warn: #ffb020;
  --solid: #ffffff; --solid-ink: #000000; --cap-top: #27292f; --cap-bot: #15161a; --screen: #0e0f12; --dot: rgb(255 255 255 / .18);
  --sh-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 6px 18px rgb(0 0 0 / .5);
  --sh-2: 0 1px 0 rgb(255 255 255 / .05) inset, 0 24px 48px -10px rgb(0 0 0 / .8);
  --sh-cap: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 -3px 0 rgb(0 0 0 / .45), 0 8px 16px -2px rgb(0 0 0 / .7);
  --ring: linear-gradient(var(--lime), var(--lime)); --metal-a: #5b616d; --metal-b: #23262c; --ink-stamp: var(--accent);
}
.soot { --tray: #0f1013; --tray-2: #0a0b0d; --card: #1a1b1f; --card-2: #222328; color: var(--ink); }
html[data-theme="dark"] .soot { --tray: #0c0d10; --card: #15161a; }

.h1, .h2, .h3, .tag__price { font-family: var(--font-display); }
/* buttons: a squared lime tag for the action, an outline for sign in */
.btn { border-radius: 12px; }
.btn--solid { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18), 0 6px 16px -6px rgb(37 99 235 / .55); }
html[data-theme="dark"] .btn--solid, .soot .btn--solid { box-shadow: inset 0 -2px 0 rgb(0 0 0 / .25), 0 8px 22px -6px rgb(37 99 235 / .6); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (hover: hover) {
  .btn--solid:hover { background: #1d4ed8; }
  .btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
}
.btn--line svg { width: 16px; height: 16px; }
.nav__links a { padding-block: 8px; }
.logo__mark { border-radius: 10px; background: var(--lime); box-shadow: none; }
.logo__mark::after { background: #ffffff; border-radius: 3px; width: 9px; height: 9px; }
.tile--accent { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15), 0 8px 18px -6px rgb(37 99 235 / .6); }
.app__btn--accent { background: var(--lime); color: var(--lime-ink); }
.callout[aria-pressed="true"], .part[aria-pressed="true"] .cap { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); }
.part[aria-pressed="true"] { border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: var(--accent-soft); }
.key { position: relative; }
.key[aria-pressed="true"] { color: var(--accent); border-color: var(--lime); }
.callout.is-hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--lime), var(--sh-cap); }
.key__3d { position: absolute; top: 8px; inset-inline-start: 8px; font-style: normal; font: 600 9.5px/1 var(--font); letter-spacing: .04em; padding: 3px 5px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); }
.wk__d i { box-shadow: none; }
.hm__ring { stroke: var(--accent); }
/* every sheet the same height: one 16:10 frame (3D, drawing or icon) and two rows of parts */
.cat__fig { aspect-ratio: 16 / 10; padding: 0; display: grid; place-items: center; overflow: hidden; }
.cat__fig > svg.brake { width: 94%; }
.cat__fig--plain .tile--lg { width: 96px; height: 96px; } .cat__fig--plain .tile--lg svg { width: 40px; height: 40px; }
.cat__parts { grid-auto-rows: 64px; min-height: calc(64px * 2 + 8px); align-content: start; }
.cat__parts[hidden] { display: none; }
.cat__still { display: grid; place-items: center; }
/* new or used: the wheel's two models */
.cat__variant { position: absolute; top: 12px; left: 12px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card); box-shadow: var(--sh-1); }
.cat__variant button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 500 13.5px var(--font); color: var(--muted); cursor: pointer; }
.cat__variant button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.cat__fig:not(.is-3d) .cat__variant { display: none; }
/* the scale bar: the model is drawn at true size, so a real length can be shown */
.cat__scale { position: absolute; bottom: 18px; right: 16px; display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.cat__scale i { display: block; height: 7px; width: 60px; border: 1.5px solid currentColor; border-top: 0; }
.cat__fig.is-3d .cat__scale { opacity: 1; }
.cat__fig.is-3d > .cat__still { display: none; }

@media (max-width: 1100px) { .cat { grid-template-columns: 1fr; } .keyboard { grid-template-columns: repeat(8, 1fr); grid-template-rows: none; } .key span { font-size: 11px; } }
@media (max-width: 900px) {
  .trio, .pair, .split { grid-template-columns: 1fr; } .trio .card { min-height: 0; }
  .keyboard { grid-template-columns: repeat(4, 1fr); }
  .tag { width: 150px; } .tag__price { font-size: 20px; }
}
@media (max-width: 700px) {
  .hm-lit { display: none; } /* stacked, the light layer would take its own row */
  .hstage { aspect-ratio: auto; display: grid; gap: 12px; justify-items: center; margin-top: 32px; }
  .hm { position: relative; width: 100%; height: auto; aspect-ratio: 347 / 266; }
  .ticket-w { position: relative; left: auto; top: auto; translate: none; margin-top: -40%; }
  .tag-w { position: relative; left: auto !important; right: auto !important; top: auto; translate: none; }
  .tag-w::before { display: none; }
  .tag-w { width: min(340px, 100%); } .tag { width: 100%; }
  .cat__parts { grid-template-columns: 1fr; }
  .fields { position: static; translate: none; width: auto; } .pair .art { height: auto; flex-direction: column; gap: 16px; padding: 20px; display: flex; } .pair .ist { position: relative; inset: auto; translate: none; scale: 1; }
}

/* the 3D viewer's canvas (components/site/parts3d): hidden while the open sheet's model loads */
.parts3d { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
.parts3d:active { cursor: grabbing; }
.cat__fig:not(.is-3d) > .parts3d { display: none; }
.app__row--add { color: var(--accent); }

/* parts drawn inside left-to-right stages (the map, the 3D frame, the scratch number) still read
   in the page's own direction */
html[dir="rtl"] :is(.ticket, .tag, .scratch__under, .cat__tools, .cat__variant) { direction: rtl; }
.cat__fig:not(.is-3d):not(.cat__fig--drawing) .callout { display: none; }

/* phones: the mark stays on one line and sign in folds into the main button (which leads to
   sign-in anyway); the 3D frame's scale bar moves up, clear of its tools */
.logo { white-space: nowrap; }
@media (max-width: 520px) {
  .nav .btn--line { display: none; }
  .cat__scale { top: 14px; bottom: auto; }
  .cat__hint { display: none; }
}

/* the three bands' grounds (.soot: the three objects, the category keyboard, the close), dealt by
   the design skill's ground picker. Light: the three objects on a plain cool grey, the keyboard on
   "field" (a soft blue gradient with a fine grain), the close on "halo" (a light behind its
   heading), with light cards and keycaps. Dark: the near-black bands above. */
html[data-theme="light"] .soot { --tray: #f1f3f7; --tray-2: #e6e9ef; --card: #ffffff; --card-2: #f6f7fa; --ink: #0f1115; --muted: #5d6170;
  --line: rgb(15 15 15 / .1); --line-strong: rgb(15 15 15 / .28); --accent: #2563eb; --accent-soft: #e8efff;
  --ok: #2f7a1f; --warn: #a35a00; --solid: #0f0f0f; --solid-ink: #ffffff; --cap-top: #ffffff; --cap-bot: #eceef3;
  --screen: #f6f7fa; --dot: rgb(15 15 15 / .16); --metal-a: #f3f4f7; --metal-b: #b9bec8; --ink-stamp: #2563eb;
  --sh-1: 0 1px 2px rgb(16 20 36 / .06), 0 4px 14px rgb(16 20 36 / .06);
  --sh-2: 0 2px 4px rgb(16 20 36 / .05), 0 18px 40px -8px rgb(16 20 36 / .16);
  --sh-cap: inset 0 1px 0 #fff, inset 0 -3px 0 rgb(16 20 36 / .07), 0 6px 14px -2px rgb(16 20 36 / .16); }
html[data-theme="light"] #how .tray.soot { background: #eef2f8; }
html[data-theme="light"] .keyboard.soot { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.25 0 0 0 0 0.55 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(120% 90% at 0% 0%, #dce8ff, transparent 62%), radial-gradient(110% 90% at 100% 100%, #c5d8fd, transparent 60%), #e7eefb; box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); }
html[data-theme="light"] .closing.soot { background: radial-gradient(55% 75% at 30% 0%, rgb(37 99 235 / .16), transparent 72%), #f3f6fb; }

/* the home page's ground: parts drawn as in a catalogue (a brake disc, a wheel, a steering wheel, a
   shock absorber) down both margins, one still layer behind the whole page (.parts-margins in
   page.tsx, inside .home). parts-margins.svg is a 1920 x 1800 tile used as a mask, so the token colours it in
   each theme; centred, so the text column stays clear and only wide screens show the drawings. */
.home { position: relative; }
.parts-margins { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--parts-line);
  mask: url("/parts-margins.svg") center 120px / 1920px 1800px repeat-y; }
:root { --parts-line: rgb(15 17 21 / .38); }
html[data-theme="dark"] { --parts-line: rgb(122 165 255 / .55); }
@media (max-width: 1239px) { .parts-margins { display: none; } }

/* below 1240px the margins are too narrow for the drawings, so they move into the gaps between
   sections: from the catalogue down, a dashed axis across each gap with one part and its number at
   a screen edge (parts-divider-1..5.svg), alternating sides. Each section opens with its gap above
   it and none below (--sec-gap, the home page's system), so the axis sits half a gap down. */
@media (max-width: 1239px) {
  main > section:nth-child(n + 3) { position: relative; }
  main > section:nth-child(n + 3)::before { content: ""; position: absolute; inset-inline: 0; top: calc(var(--sec-gap) / 2 - 60px); height: 120px;
    z-index: -1; pointer-events: none; background: var(--parts-line);
    mask: var(--part) var(--side) top / 140px 120px no-repeat, linear-gradient(90deg, rgb(0 0 0 / .4) 6px, transparent 6px) 0 59.5px / 12px 1px repeat-x; }
  main > section:nth-child(3)::before { --part: url("/parts-divider-1.svg"); --side: left; }
  main > section:nth-child(4)::before { --part: url("/parts-divider-2.svg"); --side: right; }
  main > section:nth-child(5)::before { --part: url("/parts-divider-3.svg"); --side: left; }
  main > section:nth-child(6)::before { --part: url("/parts-divider-4.svg"); --side: right; }
  main > section:nth-child(7)::before { --part: url("/parts-divider-5.svg"); --side: left; }
  main > section:nth-child(8)::before { --part: url("/parts-divider-1.svg"); --side: right; }
}

/* English stamps carry longer words: smaller big stamps, and the offer row's stamp may wrap */
html[dir="ltr"] .stamps .stamp--big { font-size: 19px; padding: 5px 13px; }
html[dir="ltr"] .stamps .stamp--big:nth-child(3) { font-size: 15px; }
.stamps__row .stamp { white-space: normal; text-align: center; max-width: 150px; }

/* ---------- the home page's one system: mock E1 "tightened", with E2's close ----------
   Same sections and trade objects; one type scale, one button pair, ordinary sections on bare black
   with hairlines (the three .soot bands keep their ground), a split hero, the app's my requests as
   its own section. Roomier than the C1 mock: each section opens with --sec-gap
   above it and is as tall as what it holds. Rules that would reach the account pages (body type,
   buttons) are scoped to .home (page.tsx). */
:root { --t-h1: clamp(40px, 4.4vw, 63px); --t-h2: clamp(31px, 3vw, 44px); --t-h3: 20px; --t-body: 17px; --t-small: 15px;
  --sec-gap: 184px; --cat-h: 640px; --close-gap: 64px; --hair: rgb(15 15 15 / .12); }
html[data-theme="dark"], .soot { --hair: rgb(255 255 255 / .12); }
html[data-theme="light"] .soot { --hair: rgb(15 15 15 / .12); }

/* type: one scale */
.home { font-size: var(--t-body); }
.h1 { font-size: var(--t-h1); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.h2, [data-moment="pinned-chapters"] .mo-pc__text h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.16; letter-spacing: -.01em; }
.h3, [data-moment="pinned-chapters"] .mo-pc__step h3 { font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.35; }
.lead { font-size: 19px; line-height: 1.55; max-width: 44ch; }
.body, [data-moment="pinned-chapters"] .mo-pc__step p { font-size: var(--t-body); }
.small { font-size: var(--t-small); }
.head { margin-block-end: 48px; align-items: end; }
.head .lead { margin: 0; }

/* buttons: one pair, squared and flat, a step on hover (in --m-in, out --m-out, only where a
   pointer hovers, so a tap leaves nothing stuck) and a press on click (--m-press) */
.home .btn { --h: 48px; padding-inline: 22px; transition: transform var(--m-out) var(--ease-ui), background-color var(--m-out), box-shadow var(--m-out); }
.home .btn--sm { --h: 44px; padding-inline: 18px; }
.home .btn.btn--solid { box-shadow: none; }
.home .btn--line { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) {
  .home .btn:hover { transition-duration: var(--m-in); }
  .home .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}
.home .btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }

/* nav: plain, on the page's own black, a hairline under it */
.nav { background: var(--page); backdrop-filter: none; border-bottom: 1px solid var(--hair); padding-block: 0; height: var(--nav-h); display: flex; align-items: center; }
.nav__links { gap: 32px; }
.nav__links a { padding-block: 24px; --ul-y: 22px; }

/* nav and footer links: the word darkens and a 1px line draws under it from the reading start,
   then leaves toward the end (the line's anchor swaps sides on hover; only its width animates) */
:is(.nav__links a, .foot__cols a:not(.logo)) { background: linear-gradient(currentColor, currentColor) no-repeat right 0 bottom var(--ul-y, 0px) / 0 1px;
  transition: background-size var(--m-out) var(--ease-ui), color var(--m-out); }
html[dir="rtl"] :is(.nav__links a, .foot__cols a:not(.logo)) { background-position: left 0 bottom var(--ul-y, 0px); }
@media (hover: hover) {
  :is(.nav__links a, .foot__cols a:not(.logo)):hover { color: var(--ink); background-size: 100% 1px; background-position: left 0 bottom var(--ul-y, 0px); transition-duration: var(--m-in); }
  html[dir="rtl"] :is(.nav__links a, .foot__cols a:not(.logo)):hover { background-position: right 0 bottom var(--ul-y, 0px); }
}

/* every ordinary section: its gap above, nothing below (the pinned steps size themselves) */
main > section.section:not([data-moment="pinned-chapters"]) { padding-block: var(--sec-gap) 0; margin: 0; }

/* hero: split, the text on the start side, the map stage beside it, at its content's height */
.hero2 { text-align: start; padding-block: 168px 120px; }
.hero2__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero2 .h1 { max-width: none; margin: 0 0 24px; }
.hero2 .lead { margin: 0; }
.hero2__cta { justify-content: flex-start; margin-top: 40px; }
.hero2__facts { display: flex; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.hero2__facts div { padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--hair); }
.hero2__facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero2__facts dt { font: 400 44px/1 var(--font-display); }
.hero2__facts dd { margin: 8px 0 0; color: var(--muted); font-size: var(--t-small); max-width: 9em; }
/* the map sits low in the stage, so the ticket has the top to itself and clears every tag (hero.tsx
   places the tags by the same inset: MAP_IN_STAGE) */
.hstage { width: 100%; margin: 0; aspect-ratio: 1.45; }
.hm { inset: auto auto 0 14%; width: 76%; height: 84.6%; }
.ticket { width: 280px; padding: 24px 18px 16px; gap: 12px; }
.ticket__items { font-size: 16px; }
.tag-w--left { right: calc(100% - var(--x) + 20px); } .tag-w--right { left: calc(var(--x) + 20px); }
.tag-w::before { width: 20px; }
.tag { width: 184px; gap: 4px; padding: 14px 18px; }
.tag--left { padding-left: 28px; } .tag--right { padding-right: 28px; }
.tag__price { font-size: 26px; }
.tag__cond, .tag__who { font-size: 14px; }
@media (min-width: 701px) { .ticket-w { left: 49%; top: 2%; translate: -50% 0; } }
/* split on a narrow desktop, the stage is too small for full tags: keep the east one on the screen */
@media (min-width: 1024px) and (max-width: 1239px) { .tag { width: 156px; padding-block: 12px; } .tag__price { font-size: 22px; } .tag__cond, .tag__who { font-size: 13px; } }

/* the three objects: one band, three columns on hairlines, no cards */
#how .tray { display: flex; flex-direction: column; padding: 64px; border-radius: 28px; }
#how .head { margin-bottom: 0; }
.trio { flex: 1; gap: 0; margin-top: 56px; }
.trio .card { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 36px; min-height: 0; overflow: visible; }
.trio .card:hover { box-shadow: none; transform: none; }
.trio .card:first-child { padding-inline-start: 0; }
.trio .card:last-child { padding-inline-end: 0; }
.trio .card + .card { border-inline-start: 1px solid var(--hair); }
.trio .art { height: auto; flex: 1; margin-top: 40px; }
.wk__d { font-size: 13px; }
.wk__left { font-size: var(--t-small); }

/* catalogue: the heading over the keyboard, the sheet beside them, one fixed height */
#parts .cat { height: var(--cat-h); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto minmax(0, 1fr); gap: 32px 48px; }
.cat__intro { grid-column: 1; grid-row: 1; display: grid; gap: 14px; margin: 0; }
#parts .keyboard { grid-column: 1; grid-row: 2; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 22px; align-content: stretch; }
#parts .key { min-height: 0; font-size: 14px; border-radius: 14px; }
#parts .cat__sheet { grid-column: 2; grid-row: 1 / 3; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.cat__sheet.card { background: none; box-shadow: none; border: 1px solid var(--hair); border-radius: 22px; padding: 24px; gap: 16px; overflow: visible; }
.cat__head b { font-size: 22px; }
.cat__fig { aspect-ratio: 16 / 9; border-radius: 14px; }
#parts .cat__sheet .cat__fig { aspect-ratio: auto; height: 100%; min-height: 0; }
/* the part rows: compact, each filling its 52px track so the rows never touch */
.cat__parts { gap: 6px; grid-auto-rows: 52px; min-height: calc(52px * 2 + 6px); }
.part { height: 100%; gap: 10px; padding: 6px 10px; background: none; border-color: var(--hair); border-radius: 12px; transition: border-color .15s, transform .15s var(--ease); }
.part:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.part .cap { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.part b { font-size: 14.5px; line-height: 1.25; } .part small { display: block; font-size: 12.5px; line-height: 1.25; }
.part__add { font-size: 12.5px; }
.cat__sum { font-size: var(--t-small); }

/* steps: the phone on a hairline frame, no tray, a shorter hold than the kit's one screen */
main [data-moment="pinned-chapters"][data-moment] { --mo-hold: .8 !important; }
html [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { background-color: transparent; border: 1px solid var(--hair); }

/* start: two columns on a hairline, the objects on dots */
#start .pair { gap: 0; }
#start .pair .card { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; overflow: visible; }
#start .pair .card:hover { box-shadow: none; transform: none; }
#start .pair .card:first-child { padding-inline-end: 48px; border-inline-end: 1px solid var(--hair); }
#start .pair .card:last-child { padding-inline-start: 48px; }
#start .pair .art { height: 330px; background-color: transparent; border-radius: 0; }
#start .pair .card > div:last-child { padding: 28px 0 0; display: grid; gap: 8px; }
.fields li { font-size: 14px; } .fields li b { font-size: 14.5px; } .fields li small { font-size: 12.5px; }

/* merchants: the heading and its line as one statement over the rows on hairlines and the NewPoint
   window. The page's second moment, word-highlight (the kit's, in public/assets/moments): the words
   rest at half ink and turn to ink as the statement crosses the screen, NewPoint to the accent; it
   runs back on the way up, and on phones too. These are the tokens its moment.css reads. */
[data-moment="word-highlight"] { --bg: var(--page); --display-weight: 400; --display-tracking: -.01em; }
#merchants .mo-wh__text { margin-block-end: 48px; }
.split { align-items: start; }
.rows { gap: 0; margin-block: 40px 48px; border-top: 1px solid var(--hair); }
.rows li { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 14px 0; font-size: var(--t-body); }
.win { border-radius: 16px; box-shadow: none; border: 1px solid var(--hair); }
.win__body { padding: 8px 20px 20px; gap: 0; font-size: 15px; }
.win__head { padding: 12px 0; margin: 0; }
.win__row { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 14px 0; }
.win__row small { font-size: 13.5px; }
.win__reveal { margin-top: 12px; }

/* the app (app-window.tsx): my requests beside one request, its offers as torn receipts */
.appwin { border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: var(--page); }
.appwin__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.appwin__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--tray-2); }
.appwin__bar span { margin-inline-start: 10px; }
.appwin__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.appwin__side { border-inline-end: 1px solid var(--hair); padding: 8px; display: grid; align-content: start; gap: 2px; }
.appwin__side li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px; border-radius: 10px; }
.appwin__side li.is-on { background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.appwin__side b { font-weight: 500; font-size: 15px; } .appwin__side small { grid-row: 2; color: var(--muted); font-size: 13px; }
.appwin__side .stamp { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.appwin__main { padding: 20px 24px 24px; display: grid; gap: 20px; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.req__car { display: flex; align-items: center; gap: 14px; } .req__car b { font-weight: 500; font-size: 18px; display: block; } .req__car small { color: var(--muted); font-size: 14px; }
.req__acts { display: flex; gap: 8px; }
.rcpts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rcpt { background: var(--card); padding: 18px 18px 26px; display: grid; gap: 14px; border-radius: 14px 14px 0 0;
  mask: radial-gradient(circle 6px at 9px 100%, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; transition: transform .2s var(--ease); }
.rcpt:hover { transform: translateY(-2px); }
/* light: the window is white, so the receipts sit on the tray grey to read as paper */
html[data-theme="light"] .rcpt { background: var(--tray); }
.rcpt.is-low { box-shadow: inset 0 2px 0 #2563eb; }
.rcpt__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who { display: flex; align-items: center; gap: 10px; } .who b { font-weight: 500; display: block; font-size: 15.5px; } .who small { color: var(--muted); font-size: 13px; display: block; }
.rcpt__low { font-size: 13px; font-weight: 500; color: #fff; background: #2563eb; padding: 2px 8px; border-radius: 6px; }
.rcpt__lines { display: grid; gap: 12px; padding-block: 14px; border-block: 1.5px dashed var(--line); }
.rcpt__lines li { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rcpt__lines li > div { display: grid; gap: 6px; }
.rcpt__lines b { font-weight: 500; font-size: 14.5px; }
.rcpt__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rcpt__price { display: grid; justify-items: end; text-align: end; white-space: nowrap; } .rcpt__price b { font-size: 15px; } .rcpt__price .unit { color: var(--muted); font-size: 12.5px; }
.rcpt__miss { color: var(--muted); font-size: 13.5px; }
.avail { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ok); white-space: nowrap; }
.avail--order { color: var(--warn); } .avail svg { width: 14px; height: 14px; }
.rcpt__total { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.rcpt__total small { display: block; font-size: 12.5px; white-space: nowrap; }
.rcpt__total b { font: 400 30px/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.rcpt__call { width: 100%; } .rcpt__call svg { width: 16px; height: 16px; }

/* questions: the heading beside a list on hairlines */
#faq .faq2 { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
#faq .head--center { align-items: flex-start; text-align: start; margin: 0; }
.faq { gap: 0; border-top: 1px solid var(--hair); }
.faq details, .faq details[open] { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; box-shadow: none; }
.faq details[open]::before { display: none; }
.faq summary { padding: 18px 0; min-height: 80px; font-size: 18px; border-radius: 0; }
.faq summary .tile { width: 36px; height: 36px; border-radius: 10px; }
.faq p { padding: 0 0 20px; font-size: var(--t-body); }

/* the close (footer.tsx): one soot band, the first request again, the live counter, the links on a
   hairline, the credits line */
.closing { position: relative; margin-top: var(--sec-gap); padding: var(--sec-gap) 0 28px;
  background: radial-gradient(60% 50% at 70% 0%, rgb(37 99 235 / .18), transparent 70%), var(--tray); }
.closing > .wrap { display: grid; gap: var(--close-gap); }
.closing__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.closing__h { font-size: clamp(36px, 4.6vw, 64px); }
.closing__top .lead { margin-top: 12px; }
.foot__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.foot__cols .small { margin-top: 12px; max-width: 34ch; }
.foot__cols h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a:not(.logo) { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot__legal { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* tablet and phone: one column, a smaller gap */
@media (max-width: 1023px) {
  :root { --sec-gap: 128px; }
  .hero2 { padding-block: 96px 56px; }
  .hero2__grid { grid-template-columns: 1fr; gap: 40px; }
  #how .tray { padding: 40px 24px; }
  .trio { margin-top: 48px; gap: 56px; }
  .trio .card, .trio .card:first-child, .trio .card:last-child { padding: 0; }
  .trio .card:not(:first-child) { padding-top: 32px; border-inline-start: 0; border-top: 1px solid var(--hair); }
  #parts .cat { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .cat__intro, #parts .keyboard, #parts .cat__sheet { grid-column: 1; grid-row: auto; }
  #parts .keyboard { grid-template-rows: none; grid-template-columns: repeat(8, 1fr); }
  #parts .key { min-height: 84px; }
  #parts .cat__sheet .cat__fig { aspect-ratio: 16 / 9; height: auto; }
  #start .pair .card:first-child { padding: 0 0 40px; border: 0; border-bottom: 1px solid var(--hair); }
  #start .pair .card:last-child { padding: 40px 0 0; }
  #faq .faq2 { grid-template-columns: 1fr; gap: 32px; }
  .appwin__body { grid-template-columns: 1fr; }
  .appwin__side { border-inline-end: 0; border-bottom: 1px solid var(--hair); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rcpts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  /* the stage stacks (the base phone rules above): the ticket over the map, the tags full width under it */
  .hm { inset: auto; width: 100%; height: auto; }
  .hstage { aspect-ratio: auto; }
  .tag { width: 100%; }
  #start .pair .art { height: auto; }
  .hero2__facts dt { font-size: 34px; }
  .hero2__facts div { padding-inline-end: 16px; margin-inline-end: 16px; }
  .hero2__cta .btn { flex: 1; }
  #parts .keyboard { grid-template-columns: repeat(4, 1fr); }
  .appwin__side { grid-template-columns: 1fr; }
  .req { flex-direction: column; align-items: stretch; }
  .req__acts .btn { flex: 1; }
  .nav .btn--line { display: none; }
}
@media (max-width: 639px) {
  .closing__top .btn { width: 100%; }
}

/* ---------- sign in and sign up (app/[locale]/(site)/sign-in) ----------
   The hero's punched ticket as the card, on the dotted map; each step is rendered alone by
   components/account/sign-in-flow.tsx. */
.acc-page { min-height: 100svh; display: flex; flex-direction: column; }
.acc-bar { display: flex; align-items: center; gap: 12px; padding: 14px max(5vw, 16px); }
.acc-bar .logo { margin-inline-end: auto; }
.a-stage { flex: 1; position: relative; display: grid; place-items: center; padding: 24px 16px 64px; overflow: hidden; }
.amap { position: absolute; width: min(1100px, 140%); left: 50%; top: 50%; translate: -50% -50%; opacity: .7; pointer-events: none; }
.amap__dots { fill: var(--dot); }
.a-ticket-w { position: relative; z-index: 1; width: min(480px, 100%); filter: drop-shadow(0 30px 50px rgb(16 20 36 / .18)) drop-shadow(0 2px 4px rgb(16 20 36 / .06)); }
html[data-theme="dark"] .a-ticket-w { filter: drop-shadow(0 30px 60px rgb(0 0 0 / .8)); }
.a-ticket { background: var(--card); border-radius: 24px; padding: 34px 32px 28px;
  -webkit-mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x; mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x; }
.a-stub { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1.5px dashed var(--line); font-size: 13px; color: var(--muted); }
.plate-mini { direction: ltr; font: 600 11px/1 var(--font); border: 1.5px solid var(--line-strong); border-radius: 5px; padding: 4px 7px; color: var(--ink); }
.acc-step { animation: acc-in .45s var(--ease) both; }
@keyframes acc-in { from { opacity: 0; transform: translateY(10px); } }
.acc-step h1 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 400; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.acc-lead { color: var(--muted); margin: 0 0 26px; text-wrap: pretty; }
.acc-lead b { color: var(--ink); font-weight: 500; }
.acc-num { unicode-bidi: isolate; white-space: nowrap; }
.acc-form { display: grid; gap: 18px; }
.acc-field { display: grid; gap: 8px; }
.acc-field > label, .acc-label { font-size: 14px; font-weight: 500; }
.acc-input { height: 56px; width: 100%; padding-inline: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: 500 19px/1 var(--font); transition: border-color .15s, box-shadow .15s; }
.acc-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.acc-input[aria-invalid="true"] { border-color: #d0453a; }
.acc-tel { direction: ltr; text-align: left; letter-spacing: .04em; }
.acc-select { appearance: none; font-size: 17px; padding-inline-end: 44px; background-repeat: no-repeat; background-size: 16px; background-position: left 16px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378808f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[dir="ltr"] .acc-select { background-position: right 16px center; }
.acc-hint { font-size: 14px; color: var(--muted); margin: 0; }
.acc-wa { display: inline-block; vertical-align: -3px; margin-inline-end: 6px; }
.acc-error { font-size: 14px; color: #c0362c; margin: 0; }
html[data-theme="dark"] .acc-error { color: #ff8a7a; }
.acc-form .btn { width: 100%; --h: 54px; }
.acc-form .btn:disabled { opacity: .6; cursor: progress; }
.acc-legal { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.acc-legal a, .acc-link { color: var(--accent); text-underline-offset: 3px; }
.acc-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }
.acc-otp { position: relative; }
.acc-otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; z-index: 1; }
.acc-otp__caps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.acc-otp__caps span { height: 62px; display: grid; place-items: center; border-radius: 14px; font: 500 26px/1 var(--font); color: var(--ink);
  background: var(--card-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .08); transition: box-shadow .15s; }
.acc-otp__caps span.is-filled { background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); animation: acc-key .2s var(--ease); }
.acc-otp__caps span.is-next { box-shadow: inset 0 0 0 2px var(--accent); }
.acc-otp.is-wrong .acc-otp__caps span { box-shadow: inset 0 0 0 2px #d0453a; animation: acc-shake .32s var(--ease); }
@keyframes acc-key { 50% { transform: translateY(3px); } }
@keyframes acc-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.acc-resend { font-size: 14px; color: var(--muted); margin: 0; }
.acc-resend b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.acc-resend__sent { color: var(--ok); }
.acc-count { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.acc-count li { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.acc-count li.is-on { background: var(--accent); }
/* named steps (requesting parts): the bar over each step's name */
.acc-count--named li { height: auto; border-radius: 0; background: none; border-top: 4px solid var(--line); padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.acc-count--named li.is-on { background: none; border-color: var(--accent); color: var(--ink); }
.acc-done-mark { margin-bottom: 18px; }
@media (max-width: 520px) { .a-ticket { padding: 30px 20px 24px; } .acc-otp__caps { gap: 6px; } .acc-otp__caps span { height: 54px; font-size: 22px; } }

/* ---------- adding a car (app/[locale]/(site)/cars/new) ----------
   The sign-in ticket carried on, wider for the VIN's keycaps; the steps are in
   components/account/add-car-flow.tsx and reuse the sign-in parts above. */
.a-ticket-w--wide { width: min(520px, 100%); }
.drop { position: relative; display: grid; justify-items: center; gap: 10px; padding: 30px 20px; border-radius: 20px; border: 1.5px dashed var(--line-strong); background: var(--card-2); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drop b { font-size: 17px; font-weight: 500; }
.drop small { color: var(--muted); font-size: 13.5px; }
.drop .tile { width: 52px; height: 52px; } .drop .tile svg { width: 24px; height: 24px; }
.drop + .acc-error { margin-top: 10px; }
.car-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.car-privacy svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ink); }
/* reading: the client's photo under one pass of the beam, and a bar that fills once */
.car-thumb { position: relative; width: 64%; margin: 4px auto 0; aspect-ratio: 1.58; border-radius: 14px; overflow: hidden; background: var(--card-2); box-shadow: var(--sh-2); }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-thumb__beam { position: absolute; inset-inline: 0; top: -12%; height: 12%; background: linear-gradient(transparent, rgb(37 99 235 / .28)); border-bottom: 2px solid #2563eb; animation: car-beam 2.2s var(--ease) forwards; }
@keyframes car-beam { 90% { opacity: 1; } to { top: 100%; opacity: 0; } }
.car-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 22px 0 4px; }
.car-progress i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; animation: car-fill 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes car-fill { to { width: 92%; } }
/* review */
.car-label { display: flex; justify-content: space-between; gap: 8px; }
.car-label span { color: var(--muted); font-weight: 400; }
.car-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.car-two .acc-input, .car-date { height: 52px; font-size: 17px; }
.car-date { direction: ltr; }
html[dir="rtl"] .car-date { text-align: right; }
.car-unread { font-size: 13px; color: var(--warn); margin: 0; }
.acc-field.is-unread .acc-input { border-color: color-mix(in oklab, var(--warn) 60%, transparent); background: color-mix(in oklab, var(--warn) 6%, var(--card)); }
.car-manual { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); font-size: 14px; margin: -8px 0 18px; }
.car-manual svg { width: 18px; height: 18px; flex: none; color: var(--warn); margin-top: 2px; }
/* the VIN: one real input under 17 keycaps, in its three parts */
.vin { position: relative; }
.vin input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; z-index: 1; }
.vin__caps { display: flex; justify-content: space-between; gap: 8px; direction: ltr; }
.vin__group { display: flex; gap: 3px; }
.vin__group span { width: 23px; height: 40px; display: grid; place-items: center; border-radius: 8px; font: 500 16px/1 var(--font); color: var(--ink); background: var(--card-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .08); }
.vin__group span.is-filled { background: linear-gradient(var(--cap-top), var(--cap-bot)); box-shadow: var(--sh-cap); }
.vin__group span.is-next { box-shadow: inset 0 0 0 2px var(--accent); }
.vin:focus-within .vin__caps { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.vin.is-wrong .vin__group span { box-shadow: inset 0 0 0 1.5px #d0453a; }
.acc-field.is-unread .vin__group span { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--warn) 70%, transparent); }
/* saved: the car as the client will pick it on a request */
.car-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.car-card .tile { grid-row: span 2; }
.car-card b { font-size: 17px; font-weight: 500; }
.car-card__vin { font-size: 13.5px; color: var(--muted); letter-spacing: .06em; }
html[dir="rtl"] .car-card__vin { text-align: right; }
.car-card dl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 10px 0 0; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 13.5px; }
.car-card dl div { display: grid; gap: 2px; } .car-card dt { color: var(--muted); } .car-card dd { margin: 0; font-weight: 500; }
.car-end { margin-top: 22px; gap: 10px; }
@media (max-width: 520px) {
  .car-two { grid-template-columns: 1fr; }
  .vin__caps { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .vin__group span { width: 26px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .car-thumb__beam, .car-progress i { animation: none; } .car-progress i { width: 92%; } }

/* ---------- requesting parts (app/[locale]/(site)/requests/new) ----------
   The same ticket, a little wider; the categories are the home keyboard's keycaps, small. The
   steps are in components/account/request-flow.tsx. */
.a-ticket-w--request { width: min(560px, 100%); }
.rq-loading { min-height: 320px; }
.carpick { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.carpick label { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.carpick label:hover { border-color: var(--line-strong); }
.carpick input { position: absolute; opacity: 0; pointer-events: none; }
.carpick b, .rq-car b { display: block; font-weight: 500; }
.carpick small, .rq-car small { display: block; color: var(--muted); font-size: 12.5px; letter-spacing: .06em; }
html[dir="rtl"] .carpick small, html[dir="rtl"] .rq-car small { text-align: right; }
.carpick__tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.carpick__tick svg { width: 13px; height: 13px; }
.carpick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.carpick label:has(input:checked) .carpick__tick { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.carpick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.rq-more { margin: 16px 0 0; }
.rq-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; text-decoration: none; font-size: 15px; }
.rq-more svg { width: 16px; height: 16px; }
.rq-car { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); margin-bottom: 18px; font-size: 14.5px; }
.rq-car .acc-link { margin-inline-start: auto; }
/* the request's lines */
.rq-lines { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.rq-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); animation: acc-in .35s var(--ease) both; }
.rq-line .tile { width: 36px; height: 36px; grid-row: span 2; } .rq-line .tile svg { width: 17px; height: 17px; }
.rq-line b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.rq-line small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.rq-line small > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rq-line small svg { width: 14px; height: 14px; }
.rq-line__act { grid-row: span 2; display: flex; gap: 2px; }
.rq-line__act button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.rq-line__act button:hover { background: var(--card-2); color: var(--ink); }
.rq-line__act svg { width: 16px; height: 16px; }
/* adding a part */
.rq-add { display: grid; gap: 16px; padding: 18px; border-radius: 20px; border: 1.5px dashed var(--line-strong); margin-bottom: 20px; }
.rq-add__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.rq-add__head small { color: var(--muted); font-weight: 400; font-size: 13px; }
.rq-keys, .rq-cond { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rq-keys legend, .rq-cond legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.rq-keys > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rq-keys label { position: relative; display: grid; align-content: space-between; gap: 6px; min-height: 60px; padding: 8px; border-radius: 12px; cursor: pointer; font-size: 12px; line-height: 1.2;
  background: linear-gradient(var(--cap-top), var(--cap-bot)); border: 1px solid var(--line); transition: transform .1s var(--ease); }
.rq-keys label:hover { transform: translateY(-1px); }
.rq-keys svg { width: 17px; height: 17px; color: var(--muted); }
.rq-keys input { position: absolute; opacity: 0; pointer-events: none; }
.rq-keys label:has(input:checked) { transform: translateY(2px); background: var(--lime); color: var(--lime-ink); border-color: transparent; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .2); }
.rq-keys label:has(input:checked) svg { color: var(--lime-ink); }
.rq-keys label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the guessed category, the common parts and the switch to a photo for a part without a name */
.rq-cat { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.rq-cat svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.rq-cat b { font-weight: 500; }
.rq-cat .acc-link { margin-inline-start: auto; }
.rq-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.rq-picks button { border: 1px solid var(--line-strong); background: none; border-radius: 10px; padding: 7px 11px; font: 400 13.5px/1.2 var(--font); color: var(--ink); cursor: pointer; }
.rq-picks button:hover { border-color: var(--accent); color: var(--accent); }
.rq-mode { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.rq-mode svg { width: 16px; height: 16px; }
.rq-desc { height: auto; min-height: 84px; padding-block: 12px; resize: vertical; font: 400 16px/1.5 var(--font); }
.rq-two { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: end; }
.qty { display: inline-flex; align-items: center; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); direction: ltr; }
.qty button { width: 44px; height: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: 14px; }
.qty button:hover { background: var(--card-2); }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 34px; text-align: center; font: 500 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 14px; background: var(--card-2); }
.seg label { position: relative; display: grid; place-items: center; height: 40px; border-radius: 11px; font-size: 13.5px; cursor: pointer; color: var(--muted); text-align: center; line-height: 1.15; padding-inline: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--sh-1); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.photo-pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--line-strong); cursor: pointer; font-size: 14.5px; }
.photo-pick:hover { border-color: var(--accent); }
.photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.photo-pick .tile { width: 36px; height: 36px; } .photo-pick .tile svg { width: 17px; height: 17px; }
.photo-pick b { font-weight: 500; overflow-wrap: anywhere; }
.photo-pick:not(.has-photo) b { color: var(--muted); font-weight: 400; }
.photo-pick--first { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 22px 14px; }
.photo-pick--first .tile { width: 48px; height: 48px; } .photo-pick--first .tile svg { width: 21px; height: 21px; }
.photo-pick--first:not(.has-photo) b { color: var(--ink); font-weight: 500; }
.photo-pick.has-photo { border-style: solid; border-color: color-mix(in oklab, var(--ok) 50%, transparent); }
.rq-add .btn { width: 100%; --h: 50px; }
.rq-add .btn:disabled { opacity: .5; cursor: not-allowed; }
.rq-open { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: none; color: var(--ink); font: 500 15px var(--font); cursor: pointer; margin-bottom: 20px; }
.rq-open:hover { border-color: var(--accent); background: var(--accent-soft); }
.rq-open svg { width: 16px; height: 16px; }
/* sending */
.rq-send { gap: 12px; }
.rq-send__n { font-weight: 400; opacity: .8; }
.rq-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); margin: 0; }
.rq-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rq-facts svg { width: 15px; height: 15px; color: var(--ink); }
.rq-send .acc-error a { color: inherit; font-weight: 500; }
/* sent: the ticket stamped */
.rq-stamp { float: left; margin: 4px 0 0 6px; --r: -7deg; font-size: 28px; }
html[dir="ltr"] .rq-stamp { float: right; margin: 4px 6px 0 0; }
.rq-sum { clear: both; border-radius: 18px; border: 1px solid var(--line); background: var(--card); padding: 14px 16px; }
.rq-sum__car { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1.5px dashed var(--line); }
.rq-sum__car b { font-weight: 500; } .rq-sum__car span:last-child { margin-inline-start: auto; color: var(--muted); font-size: 14px; }
.rq-sum ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.rq-sum li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rq-sum li b { font-weight: 500; }
.rq-end { margin-top: 22px; }
@media (max-width: 520px) {
  .rq-two { grid-template-columns: minmax(0, 1fr); }
  .rq-keys label { min-height: 56px; padding: 7px; font-size: 11.5px; }
  .rq-add { padding: 14px; }
}

/* ---------- my requests and their offers (app/[locale]/(site)/requests) ----------
   The request stays its ticket, each offer comes back as the merchant's receipt (a zigzag foot),
   the lowest price on each part marked. The view is components/account/requests-view.tsx. */
.rqs-wrap { flex: 1; width: min(760px, 100%); margin-inline: auto; padding: 12px 16px 72px; }
.rqs { min-height: 320px; }
.rqs-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.rqs-h1 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 400; line-height: 1.1; margin: 0; }
.rqs-h1--car { font-size: clamp(26px, 3vw, 36px); }
.rqs-h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rqs-h2 small { font-family: var(--font); font-size: 14px; color: var(--muted); }
.rqs-muted { color: var(--muted); }
.rqs-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: inherit; font-size: 14.5px; border: 0; background: none; padding: 6px 0; cursor: pointer; }
.rqs-back:hover { color: var(--ink); }
.rqs-back svg { width: 16px; height: 16px; }
html[dir="ltr"] .rqs-back svg { rotate: 180deg; } /* the arrow points back: left in English, right in Arabic */
.stamp--md { font-size: 15px; padding: 3px 12px; --r: -5deg; }
.rqs-st--open { color: var(--ink-stamp); } .rqs-st--fulfilled { color: var(--ok); } .rqs-st--expired { color: var(--warn); } .rqs-st--cancelled { color: var(--muted); }
/* the list */
.rqs-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rqs-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: inherit; text-decoration: none; box-shadow: var(--sh-1); transition: transform .15s var(--ease);
  -webkit-mask: radial-gradient(circle 6px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; mask: radial-gradient(circle 6px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; }
.rqs-req:hover { transform: translateY(-2px); }
.rqs-req:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rqs-req__car { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; }
.rqs-req__car .tile { width: 34px; height: 34px; } .rqs-req__car .tile svg { width: 16px; height: 16px; }
.rqs-req__parts { color: var(--muted); font-size: 14.5px; }
.rqs-req__count { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-weight: 400; font-size: 26px; white-space: nowrap; }
.rqs-req__count.is-zero { font-family: var(--font); font-size: 16px; color: var(--muted); }
.rqs-req__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 6px; border-top: 1.5px dashed var(--line); font-size: 13.5px; color: var(--muted); }
/* the pager under the list */
.rqs-pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.rqs-pager button { min-width: 40px; height: 40px; padding-inline: 8px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer; }
.rqs-pager button[aria-current] { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.rqs-pager button:disabled { opacity: .4; cursor: not-allowed; }
.rqs-pager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rqs-pager svg { width: 16px; height: 16px; }
html[dir="rtl"] .rqs-pager__next svg, html[dir="ltr"] .rqs-pager__prev svg { rotate: 180deg; }
.rqs-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; }
.rqs-empty b { font-size: 20px; font-weight: 500; } .rqs-empty p { color: var(--muted); margin: 0 0 8px; }
/* the request, as its ticket; the punched edge clips a box shadow, so the shadow is a filter on a wrapper */
.rqs-shadow { filter: drop-shadow(0 18px 30px rgb(16 20 36 / .12)) drop-shadow(0 1px 2px rgb(16 20 36 / .08)); }
html[data-theme="dark"] .rqs-shadow { filter: drop-shadow(0 20px 40px rgb(0 0 0 / .7)); }
.rqs-ticket { display: grid; gap: 16px; margin: 10px 0 34px; padding: 26px 26px 22px; background: var(--card); border-radius: 24px;
  -webkit-mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x; mask: radial-gradient(circle 7px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x; }
.rqs-ticket__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rqs-ticket__top p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.rqs-ticket hr { border: 0; border-top: 1.5px dashed var(--line); margin: 0; }
.rqs-parts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rqs-parts li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rqs-parts .tile { width: 32px; height: 32px; } .rqs-parts .tile svg { width: 15px; height: 15px; }
.rqs-parts b { font-weight: 500; }
.rqs-parts .stamp { margin-inline-start: auto; }
.rqs-week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.rqs-week span { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.rqs-week i { width: 100%; height: 8px; border-radius: 4px; background: var(--line); }
.rqs-week .is-past i { background: var(--accent); opacity: .45; }
.rqs-week .is-today i { background: var(--accent); }
.rqs-week .is-today { color: var(--accent); font-weight: 600; }
.rqs-state { margin: 0; color: var(--muted); font-size: 15px; }
.rqs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rqs-actions .btn { --h: 48px; }
/* the offers, as receipts */
.rqs-rcpts { display: grid; gap: 16px; }
.rqs-rcpt { display: grid; gap: 14px; padding: 20px 22px 30px; background: var(--card); border-radius: 20px 20px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.rqs-rcpt.is-withdrawn { opacity: .55; filter: grayscale(1); }
.rqs-rcpt__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rqs-who { display: flex; align-items: center; gap: 12px; }
.rqs-who b { display: block; font-weight: 500; }
.rqs-who small { display: block; color: var(--muted); font-size: 13px; }
.rqs-who .tile { width: 40px; height: 40px; } .rqs-who .tile svg { width: 18px; height: 18px; }
.rqs-call span { font-variant-numeric: tabular-nums; }
.rqs-gone { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 7px; padding: 2px 8px; }
.rqs-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rqs-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.rqs-lines b { font-weight: 500; }
.rqs-lines li > small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.rqs-price { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 2px; text-align: end; }
.rqs-price > .acc-num { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rqs-unit { font-size: 12.5px; color: var(--muted); unicode-bidi: isolate; white-space: nowrap; }
.rqs-low { font-size: 11.5px; font-weight: 600; color: var(--lime-ink); background: var(--lime); border-radius: 6px; padding: 2px 7px; }
.rqs-avail { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); white-space: nowrap; }
.rqs-avail.is-order { color: var(--warn); }
.rqs-avail svg { width: 14px; height: 14px; }
.rqs-miss { margin: 0; font-size: 13.5px; color: var(--muted); }
.rqs-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--card-2); font-size: 14px; overflow-wrap: anywhere; }
.rqs-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1.5px dashed var(--line); font-size: 14px; color: var(--muted); }
.rqs-total b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); }
.rqs-wait { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; border: 1.5px dashed var(--line-strong); }
.rqs-wait b { font-weight: 500; font-size: 17px; } .rqs-wait p { margin: 6px 0 0; color: var(--muted); }
/* the dialogs: "I got my part" and cancel */
.rqs-dlg { border: 0; padding: 26px; border-radius: 24px; width: min(440px, calc(100% - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.rqs-dlg::backdrop { background: rgb(8 10 16 / .5); }
.rqs-dlg h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.rqs-dlg > p { color: var(--muted); margin: 0 0 18px; }
.rqs-dlg form { display: grid; gap: 10px; }
.rqs-dlg .btn { width: 100%; --h: 50px; }
.rqs-pick { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 0 8px; }
.rqs-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rqs-pick label { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.rqs-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rqs-pick small { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.rqs-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rqs-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--danger { background: #c4362b; color: #fff; }
@media (max-width: 520px) { .rqs-ticket { padding: 22px 16px 18px; } .rqs-rcpt { padding: 18px 16px 28px; } .rqs-req { padding: 20px 16px 16px; } }

/* ---------- the signed-in client's way around ----------
   The dock: in the account pages' bar on a laptop, at the foot of the screen on a phone (on the
   home page only there, and only signed in); components/account/account-dock.tsx. The chip with
   the client's name replaces "sign in" in the home bar; components/account/nav-account.tsx. */
.dock { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--card-2); }
.dock a, .dock button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 14.5px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dock a:hover, .dock button:hover { color: var(--ink); }
.dock a[aria-current] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--sh-1); }
.dock a.dock__req { background: var(--lime); color: var(--lime-ink); }
.dock svg { width: 17px; height: 17px; }
.dock :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-bar .logo { margin-inline-end: 0; }
.acc-bar .dock { margin-inline: auto; }
.dock--home { display: none; }
.me-chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; background: var(--lime); color: var(--lime-ink); }
.me-chip__name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .acc-bar .dock, .dock--home { position: fixed; z-index: 30; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-around; margin: 0; padding: 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); }
  .dock a, .dock button { flex-direction: column; height: auto; gap: 3px; padding: 6px 8px; border-radius: 14px; font-size: 11.5px; }
  .dock a[aria-current] { box-shadow: none; background: var(--accent-soft); color: var(--accent); }
  .dock a.dock__req { translate: 0 -10px; padding: 10px 14px; box-shadow: 0 10px 20px -8px rgb(37 99 235 / .7); }
  .dock__badge { position: absolute; top: 0; inset-inline-end: 2px; min-width: 18px; height: 18px; font-size: 11px; }
  .acc-page:has(.dock), body:has(.dock--home) { padding-bottom: 96px; }
  .acc-bar .logo { margin-inline-end: auto; }
  .me-chip__name { display: none; }
}

/* ---------- my cars (app/[locale]/(site)/cars) ----------
   One card per car, "request a part for it" its main button, delete asked on the card; an add
   card ends the grid. components/account/cars-view.tsx. */
.rqs-wrap--wide { width: min(920px, 100%); }
.rqs-wrap--narrow { width: min(640px, 100%); }
.cars__h { margin-bottom: 22px; }
.cars__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.car { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.car__top { display: flex; align-items: center; gap: 12px; }
.car__top b { display: block; font-weight: 500; font-size: 18px; }
.car__vin { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
html[dir="rtl"] .car__vin { text-align: right; }
.car__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.car__meta b { color: var(--ink); font-weight: 500; }
.car__act { display: flex; gap: 8px; }
.car__act .btn { flex: 1; --h: 44px; }
.car__act .icon-btn { border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.car__ask { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 20px; border-radius: inherit; background: var(--card); }
.car__ask p { margin: 0; font-weight: 500; }
.car__ask small { color: var(--muted); }
.car__ask div { display: flex; gap: 8px; }
.car__ask .btn { flex: 1; }
.car-add { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; padding: 20px; border-radius: 22px; border: 1.5px dashed var(--line-strong); color: var(--ink); text-align: center; text-decoration: none; transition: border-color .15s, background-color .15s; }
.car-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.car-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.car-add b { font-weight: 500; }
.car-add small { color: var(--muted); max-width: 36ch; }
.car-add.is-alone { grid-column: 1 / -1; min-height: 320px; }

/* ---------- my account (app/[locale]/(site)/account) ----------
   Grouped rows, each opening a small dialog; deleting the account says what goes first.
   components/account/account-view.tsx. */
.me-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.me-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 14px; }
.me-saved svg { width: 16px; height: 16px; }
.me-group-h { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0 0 8px; padding-inline: 6px; }
.me-group { margin: 0 0 26px; padding: 0; list-style: none; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.me-group > li + li { border-top: 1px solid var(--line); }
.me-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 18px; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.me-row:hover { background: var(--card-2); }
.me-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.me-row .tile { width: 38px; height: 38px; } .me-row .tile svg { width: 17px; height: 17px; }
.me-row b { font-weight: 500; }
.me-row small { display: block; color: var(--muted); font-size: 13px; }
.me-row__v { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.me-row__v svg { width: 16px; height: 16px; }
html[dir="rtl"] .me-row__v > svg { rotate: 180deg; }
.me-row--static { cursor: default; } .me-row--static:hover { background: none; }
.me-row--danger { color: #c0362c; } html[data-theme="dark"] .me-row--danger { color: #ff8a7a; }
.seg--two { grid-template-columns: 1fr 1fr; }
.seg--two label { height: 46px; font-size: 15px; }
.me-del ul { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 15px; }
.me-del li { display: flex; align-items: flex-start; gap: 10px; }
.me-del li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--muted); }
.me-tick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); font-weight: 500; cursor: pointer; }
.me-tick input { width: 20px; height: 20px; accent-color: #c4362b; }
.rqs-dlg .btn--danger:disabled { opacity: .45; cursor: not-allowed; }
.me-gone { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; text-align: center; }
.me-gone p { color: var(--muted); margin: 0 0 8px; max-width: 46ch; }

/* ---------- offer notifications (components/account/push.tsx) ----------
   The ask inside the sent ticket, in four states, and the switch row in my account. */
.push-ask { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); }
.push-ask > div { flex: 1; }
.push-ask b { display: block; font-weight: 500; font-size: 16.5px; }
.push-ask p { margin: 4px 0 12px; color: var(--muted); font-size: 14.5px; }
.push-ask p:last-child { margin-bottom: 0; }
.push-ask .btn { --h: 44px; }
.push-ask ol { margin: 6px 0 0; padding-inline-start: 20px; font-size: 14.5px; display: grid; gap: 4px; }
.push-ask .push-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.push-ok svg { width: 16px; height: 16px; flex: none; }
.push-ask .push-preview { margin: 14px 0 8px; font-size: 13px; }
/* a notification, as the phone shows it */
.push-note { display: flex; gap: 12px; align-items: flex-start; max-width: 380px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-2); border: 1px solid var(--line); font-size: 14px; }
.push-note .logo__mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.push-note .logo__mark::after { width: 11px; height: 11px; }
.push-note b { display: block; font-size: 14px; font-weight: 600; }
.push-note small { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.me-switch { position: relative; width: 52px; height: 32px; flex: none; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background-color .2s; }
.me-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: inset-inline-start .2s; }
.me-switch[aria-checked="true"] { background: var(--lime); }
.me-switch[aria-checked="true"]::after { inset-inline-start: 23px; }
.me-switch:disabled { opacity: .45; cursor: not-allowed; }
.me-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.me-row-note { margin: 0; padding: 0 18px 14px; }
@media (prefers-reduced-motion: reduce) { .me-switch, .me-switch::after { transition: none; } }
a.me-row { text-decoration: none; }

/* ---------- the admin panel (app/[locale]/(site)/admin) ----------
   A side rail, a dense table per screen, editing in a side sheet (a modal <dialog> at the inline
   end). Below 860px the rail becomes a bar with the screens as tabs and the tables stack.
   components/admin/. The prefix is cp- (control panel), never ad-: ad blockers' lists (EasyList)
   hide .ad-rail, .ad-main, .ad-table and the like, which blanked the whole panel. */
.cp-page { min-height: 100svh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.cp-rail { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-inline-end: 1px solid var(--line); }
.cp-rail .logo { margin: 0 6px 2px; }
.cp-tag { display: block; padding-inline: 8px; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cp-rail nav { display: grid; gap: 2px; }
.cp-rail nav a { display: flex; align-items: center; gap: 10px; height: 42px; padding-inline: 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.cp-rail nav a:hover { color: var(--ink); background: var(--card-2); }
.cp-rail nav a[aria-current] { color: var(--ink); background: var(--card-2); font-weight: 500; }
.cp-rail nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cp-rail nav svg { width: 18px; height: 18px; }
.cp-rail__end { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-main { min-width: 0; padding: 22px clamp(16px, 3vw, 36px) 72px; }
/* the API reference (api-docs-admin.tsx) draws its own frame edge to edge */
.cp-main--docs { padding: 0; }
.cp-main--docs .cp-note, .cp-main--docs .acc-error { margin: 22px clamp(16px, 3vw, 36px); }
.cp-docs { min-height: 100svh; }
.cp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 16px; }
.cp-h1 { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.1; margin: 0; margin-inline-end: auto; }
.cp-h1 small { font-family: var(--font); font-size: 15px; color: var(--muted); margin-inline-start: 10px; font-variant-numeric: tabular-nums; }
.cp-note { color: var(--muted); }
/* the query bar (components/admin/query-bar.tsx, admin filters mock D): the search field holds
   key:value tokens as chips and wraps them; the suggestions and the syntax open full width under it;
   quick filters and the sort share one row beneath that scrolls sideways. Nothing animates. */
.cp-q { position: relative; flex: 1 1 480px; max-width: 720px; scroll-margin-top: 16px; }
.cp-q__box { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; padding: 5px; padding-inline: 38px 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); cursor: text; }
.cp-q__box:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-q__box > svg { position: absolute; inset-inline-start: 13px; top: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.cp-q__in { flex: 1 1 120px; min-width: 120px; height: 32px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 500 15px/1 var(--font); }
.cp-q__in:focus { outline: none; }
.cp-q__in::placeholder { color: var(--muted); font-weight: 400; }
.cp-q__help { position: absolute; inset-inline-end: 5px; top: 5px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.cp-q__help svg { width: 18px; height: 18px; }
.cp-q__help:hover, .cp-q__help[aria-expanded="true"] { color: var(--ink); background: var(--card-2); }
.cp-q__help:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* a chip: its text puts it back in the field to edit, the cross removes it */
.cp-tok { display: inline-flex; align-items: stretch; height: 32px; max-width: 100%; border-radius: 8px; background: var(--accent-soft); font: 500 14px/1 var(--font); }
.cp-tok.is-text { background: var(--card-2); }
.cp-tok.is-picked { box-shadow: inset 0 0 0 2px var(--accent); }
.cp-tok button { display: inline-flex; align-items: center; min-width: 0; padding-inline: 9px 3px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.cp-tok button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cp-tok bdi, .cp-q__list code bdi { display: inline-block; max-width: min(220px, 48vw); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.cp-tok__k { color: var(--accent); }
.cp-tok .cp-tok__x { flex: none; padding-inline: 4px 9px; color: var(--accent); }
.cp-tok__x svg { width: 14px; height: 14px; }
.cp-tok.is-text .cp-tok__x { color: var(--muted); }
.cp-q__list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); max-height: 420px; overflow: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); box-shadow: var(--sh-2); }
.cp-q__list[hidden] { display: none; }
.cp-q__list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cp-q__list li:hover, .cp-q__list li[aria-selected="true"] { background: var(--card-2); }
.cp-q__list li[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.cp-q__list li svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.cp-q__list code { min-width: 0; font: 500 14px/1.2 var(--font); white-space: nowrap; }
.cp-q__list code + span { color: var(--muted); }
.cp-q__list small { margin-inline-start: auto; padding-inline-start: 8px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cp-q__list .cp-q__h { min-height: 28px; padding-block: 4px 2px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: default; background: none; }
.cp-q__syntax { padding: 10px 12px; font-size: 13.5px; }
.cp-q__syntax dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; margin: 0; }
.cp-q__syntax dl + dl { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-q__syntax dl div { display: contents; }
.cp-q__syntax code { font: 500 13.5px/1.3 var(--font); white-space: nowrap; }
.cp-q__syntax dd { margin: 0; color: var(--muted); }
.cp-quick { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.cp-quick::-webkit-scrollbar { display: none; }
.cp-quick > button { flex: none; height: 34px; padding-inline: 12px; border: 0; border-radius: 8px; background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 400 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.cp-quick > button:hover { background: var(--card-2); }
.cp-quick > button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 500; }
.cp-quick > button:focus-visible, .cp-sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cp-quick .cp-quick__clear { box-shadow: none; color: var(--accent); font-weight: 500; }
.cp-sort { position: relative; flex: none; display: inline-flex; align-items: center; margin-inline-start: auto; }
.cp-sort select { appearance: none; field-sizing: content; height: 34px; padding-inline: 32px 28px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; }
.cp-sort select:hover { background: var(--card-2); }
.cp-sort svg { position: absolute; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.cp-sort svg:first-child { inset-inline-start: 10px; }
.cp-sort svg:last-child { inset-inline-end: 8px; }
.cp-input { height: 46px; width: 100%; padding-inline: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 16px/1 var(--font); }
.cp-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-input[aria-invalid="true"] { border-color: #d0453a; }
select.cp-input { appearance: auto; }
/* status tabs, each with its count, over a framed table */
/* scrolls sideways on a narrow screen, never up and down: the line is an inset shadow and the
   marker sits on it, inside the box */
.cp-tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tabs button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border: 0; background: none; color: var(--muted); font: 500 14.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.cp-tabs button:hover { color: var(--ink); }
.cp-tabs button span { font-size: 12px; font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.cp-tabs button[aria-pressed="true"] { color: var(--ink); }
.cp-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--lime); }
.cp-tabs button[aria-pressed="true"] span { background: var(--accent-soft); color: var(--accent); }
.cp-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.cp-table { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.cp-tabs + .cp-table { border-top: 0; border-radius: 0 0 16px 16px; }
.cp-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.cp-table th { text-align: start; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 11px 14px; background: var(--card-2); white-space: nowrap; }
.cp-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.cp-table tbody tr { cursor: pointer; }
.cp-table tbody tr:hover td { background: color-mix(in oklab, var(--accent-soft) 45%, transparent); }
.cp-table tbody tr:hover .cp-go { opacity: 1; }
.cp-table tbody tr.is-on td { background: var(--accent-soft); }
.cp-table tbody tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
html[dir="rtl"] .cp-table tbody tr.is-on td:first-child { box-shadow: inset -3px 0 0 var(--lime); }
.cp-table tr.cp-off td { color: var(--muted); }
.cp-table .cp-empty { padding: 28px 14px; text-align: center; color: var(--muted); }
.cp-who { display: flex; align-items: center; gap: 12px; }
.cp-who .tile { width: 36px; height: 36px; } .cp-who .tile svg { width: 16px; height: 16px; }
.cp-sub { display: block; color: var(--muted); font-size: 12.5px; }
.cp-when b { display: block; font-weight: 500; }
.cp-count.is-none { color: var(--warn); }
.cp-st { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cp-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cp-st--open { color: var(--accent); } .cp-st--fulfilled { color: var(--ok); } .cp-st--cancelled { color: var(--muted); } .cp-st--expired { color: var(--warn); }
.cp-left { display: grid; gap: 5px; min-width: 110px; }
.cp-left i { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cp-left i::before { content: ""; display: block; height: 100%; width: var(--p); background: var(--lime); border-radius: 3px; }
.cp-left small { font-size: 12.5px; color: var(--muted); }
.cp-left.is-low i::before { background: var(--warn); } .cp-left.is-low small { color: var(--warn); }
.cp-go { opacity: 0; color: var(--muted); transition: opacity .12s; } .cp-go svg { width: 16px; height: 16px; }
html[dir="rtl"] .cp-go svg { rotate: 180deg; }
.cp-end, .cp-table .cp-end { text-align: end; }
.cp-num { font-variant-numeric: tabular-nums; }
.cp-ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.cp-vin { display: block; direction: ltr; unicode-bidi: isolate; text-align: start; font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; color: var(--muted); overflow-wrap: anywhere; }
.cp-open { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.cp-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cp-open b, .cp-table td > b { font-weight: 500; }
.cp-you { margin-inline-start: 8px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; }
.seg--role { display: inline-grid; grid-template-columns: 1fr 1fr; width: 170px; }
.seg--role label { height: 34px; }
.seg--role label:has(input:disabled) { cursor: not-allowed; opacity: .6; }
/* the pager, the table's foot */
.cp-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--card-2); color: var(--muted); font-size: 13.5px; }
.cp-pager div { display: flex; gap: 4px; margin-inline-start: auto; }
.cp-pager button { min-width: 34px; height: 34px; padding-inline: 6px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; }
.cp-pager button[aria-current] { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.cp-pager button:disabled { opacity: .4; cursor: not-allowed; }
.cp-pager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-pager button svg { width: 15px; height: 15px; }
html[dir="rtl"] .cp-next svg, html[dir="ltr"] .cp-prev svg { rotate: 180deg; }
/* the side sheet */
.cp-sheet { position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; margin: 0; width: min(460px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  padding: 22px 24px 40px; border: 0; border-inline-start: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--sh-2); overflow: auto; }
.cp-sheet::backdrop { background: rgb(8 10 16 / .4); }
.cp-sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cp-sheet__h h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0; }
.cp-x svg { rotate: 45deg; }
.cp-form { display: grid; gap: 16px; }
.cp-form hr, .cp-keyrow hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.cp-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.cp-field > label, .cp-field > legend, .cp-label { font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.cp-field > label, .cp-label { margin-bottom: 0; }
.cp-hint { font-size: 13px; color: var(--muted); margin: 0; }
.cp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.cp-sum { display: flex; align-items: center; gap: 12px; } .cp-sum b { display: block; font-weight: 500; }
.cp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.cp-dl dt { color: var(--muted); } .cp-dl dd { margin: 0; justify-self: start; }
.cp-dl .cp-st { white-space: normal; }
.cp-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-switch-row b { display: block; font-weight: 500; font-size: 14.5px; } .cp-switch-row small { color: var(--muted); font-size: 13px; }
.cp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-keyrow { gap: 8px; }
.cp-key { display: grid; gap: 12px; }
.cp-key code { display: block; padding: 14px; border-radius: 12px; background: var(--card-2); border: 1px dashed var(--line-strong); font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; text-align: left; user-select: all; }
.cp-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in oklab, var(--warn) 12%, transparent); font-size: 14px; }
.cp-warn svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 2px; }
.cp-settings { max-width: 520px; }
.cp-stepper { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 4px; border-radius: 14px; background: var(--card-2); }
.cp-stepper button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: var(--sh-1); display: grid; place-items: center; cursor: pointer; }
.cp-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.cp-stepper button svg { width: 16px; height: 16px; }
.cp-stepper output { min-width: 96px; text-align: center; font: 600 19px/1 var(--font); }
@media (max-width: 860px) {
  .cp-page { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .cp-rail { position: sticky; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: var(--page); }
  .cp-rail .logo { margin: 0; }
  .cp-tag { margin: 0; }
  .cp-rail__end { margin: 0; margin-inline-start: auto; }
  /* the screens share the width, an icon over each name, so all five show without scrolling */
  .cp-rail nav { order: 5; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cp-rail nav a { flex-direction: column; justify-content: center; gap: 3px; height: 56px; padding-inline: 2px; font-size: 12.5px; line-height: 1.15; text-align: center; border-radius: 10px 10px 0 0; }
  /* tables stack: the first cell and the last (the status or role) side by side */
  .cp-table thead { display: none; }
  .cp-table table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; }
  .cp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .cp-table tbody tr:first-child { border-top: 0; }
  .cp-table td { padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  .cp-table td.cp-hide { display: none; }
  .cp-table tbody tr.is-on { background: var(--accent-soft); }
  .cp-2 { grid-template-columns: 1fr; }
  /* the field takes its own row under the title and its button, and comes up under the sticky bar
     when focused; 16px stops iOS zooming */
  .cp-q { order: 1; flex-basis: 100%; max-width: none; scroll-margin-top: 118px; }
  .cp-q__in { font-size: 16px; }
}
/* finger-sized: every chip, choice and button in the query bar is 44px tall */
@media (max-width: 640px), (pointer: coarse) {
  .cp-q__box { min-height: 52px; padding: 3px; padding-inline: 38px 50px; }
  .cp-q__box > svg { top: 16px; }
  .cp-tok, .cp-q__in { height: 44px; }
  .cp-tok .cp-tok__x { min-width: 44px; justify-content: center; padding-inline: 0; }
  /* the field's text goes beside the last chip when it can */
  .cp-q__in { flex-basis: 56px; min-width: 56px; }
  .cp-q__help { top: 3px; inset-inline-end: 3px; width: 44px; height: 44px; }
  .cp-q__list li { min-height: 44px; }
  .cp-quick > button, .cp-sort select { height: 44px; }
}
/* phones: the quick filters and the status tabs wrap onto a second line instead of running off the
   edge, so every one is in sight */
@media (max-width: 640px) {
  .cp-quick { flex-wrap: wrap; overflow: visible; }
  .cp-tabs { flex-wrap: wrap; overflow: visible; column-gap: 0; }
  .cp-tabs button { padding-inline: 10px; font-size: 14px; }
}
/* the narrowest phones: the longest screen names ("المستخدمون") still fit their fifth */
@media (max-width: 360px) {
  .cp-rail { padding-inline: 8px; }
  .cp-rail nav a { font-size: 11px; letter-spacing: -.01em; }
}

/* ---------- the public counter (components/site/live-counter.tsx) ----------
   A tally under its line and a dashed rule in the closing band; a changed figure ticks once. */
.tally-w { display: grid; gap: 10px; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--line-strong); }
.tally li { display: grid; align-content: start; gap: 4px; padding: 18px 4px 0; }
.tally li + li { border-inline-start: 1px dashed var(--line-strong); padding-inline-start: 22px; }
.tally__n { display: block; overflow: hidden; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tally__tick { display: inline-block; animation: tally-tick .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes tally-tick { from { transform: translateY(40%); opacity: 0; } }
.tally li:last-child .tally__n { color: var(--accent); }
.tally small { color: var(--muted); font-size: var(--t-small); }
/* a phone: one figure a row, each under its own dashed rule */
@media (max-width: 639px) {
  .tally { grid-template-columns: 1fr; }
  .tally li + li { border-inline-start: 0; padding-inline-start: 4px; border-top: 1px dashed var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) { .tally__tick { animation: none; } }

/* ---------- terms and privacy (components/site/legal-doc.tsx) ----------
   Each section's one plain sentence beside its full text; .ask marks a point still to decide. */
.legal { flex: 1; width: min(1120px, 100%); margin-inline: auto; padding: 24px 16px 96px; }
.legal__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.1; margin: 0 0 8px; }
.legal__updated { color: var(--muted); font-size: 14px; margin: 0; }
.legal__tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card-2); }
.legal__tabs a { height: 38px; padding-inline: 14px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.legal__tabs a[aria-current] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--sh-1); }
.legal__tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.legal__draft { margin: 0 0 28px; padding: 12px 16px; border-radius: 12px; background: color-mix(in oklab, var(--warn) 12%, transparent); font-size: 14.5px; }
.ask { background: #ffe58a; color: #3d2f00; padding: 1px 6px; border-radius: 5px; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
html[data-theme="dark"] .ask { background: #5c4a00; color: #fff1b8; }
.legal__head, .legal__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); }
.legal__head { color: var(--muted); font-size: 14px; padding-bottom: 10px; }
.legal__row { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.legal__row:last-child { border-bottom: 1px solid var(--line); }
.legal__row h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.legal__gist { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.6; }
.legal__gist::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--lime); margin-bottom: 12px; }
.legal__full { font-size: 16.5px; line-height: 1.8; color: color-mix(in oklab, var(--ink) 82%, var(--muted)); }
.legal__full p { margin: 0 0 12px; max-width: 68ch; }
.legal__full ul { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 8px; max-width: 68ch; }
.legal__full b { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
  .legal__head, .legal__row { grid-template-columns: minmax(0, 1fr); }
  .legal__head { display: none; }
}

/* ---------- the side panel (components/account/account-side.tsx) ----------
   Beside my requests, my cars and my account: the figures that matter now, each car with a
   request button, and who sees the client's number, on a light tint (dark mode stays black).
   On a phone only the figures show, above the page. */
.acc-page:has(.acc-split) { background: var(--tray); }
html[data-theme="dark"] .acc-page:has(.acc-split) { background: var(--page); }
.acc-split { flex: 1; width: min(1180px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding: 12px 16px 72px; box-sizing: border-box; }
.acc-split > .rqs-wrap { width: auto; margin: 0; padding: 0; }
.side { position: sticky; top: 16px; display: grid; gap: 14px; }
.side__card { padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.side__card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.side__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side__nums a { display: grid; gap: 2px; padding: 4px; margin: -4px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.side__nums a:hover { background: var(--card-2); }
.side__nums a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side__nums b { font: 500 30px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.side__nums a.is-lit b { color: var(--accent); }
.side__nums span { color: var(--muted); font-size: 13px; }
.side__cars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.side__cars li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side__cars b { display: block; font-weight: 500; font-size: 14.5px; }
.side__cars small { display: block; color: var(--muted); font-size: 12px; text-align: start; }
.side__cars .btn { --h: 36px; padding-inline: 12px; font-size: 13.5px; flex: none; }
.side__add { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; text-decoration: none; }
.side__add svg { width: 16px; height: 16px; }
.side__note { margin: 0; padding: 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 960px) {
  .acc-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .side { position: static; order: -1; }
  .side__more { display: none; }
}


/* ---------- the filter panel (sift-panel.tsx): beside my requests, the offers and my cars. On a wide
   screen it stays in view, never taller than the screen, its header fixed and its body scrolling on
   its own; under 960px it is a sheet from the foot, opened from the bar over the list. */
.sift { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: calc(100svh - 112px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.sift__top { flex: none; display: flex; align-items: center; gap: 4px; padding-block: 12px 10px; padding-inline: 18px 10px; border-bottom: 1px solid var(--line); }
.sift__top h2 { margin: 0; margin-inline-end: auto; font-size: 16px; font-weight: 500; }
.sift__close svg { width: 20px; height: 20px; }
.sift__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 18px; padding: 16px 18px 20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sift__foot { flex: none; padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sift__foot .btn { width: 100%; --h: 50px; }
.sift-group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sift-group legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sift-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sift-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 14px; line-height: 1.3; cursor: pointer; transition: box-shadow .15s, background-color .15s, transform .15s var(--ease); }
.sift-pill:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sift-pill:active { transform: scale(.97); }
.sift-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sift-pill span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sift-pill:has(input:checked) { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 500; }
.sift-pill:has(input:checked) span { color: inherit; }
.sift-pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sift-search { position: relative; display: block; }
.sift-search svg { position: absolute; inset-inline-start: 13px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.sift-input { width: 100%; height: 44px; padding-inline: 40px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.sift-input::placeholder { color: var(--muted); }
.sift-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.sift-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.sift-bars i { flex: 1; min-width: 4px; border-radius: 4px 4px 2px 2px; background: var(--line-strong); transition: background-color .2s; }
.sift-bars i.is-in { background: var(--accent); }
.sift-range { width: 100%; margin: 2px 0; accent-color: var(--accent); }
.sift-range-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sift-range-row output { color: var(--ink); font-weight: 500; }
.sift-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; padding: 10px 6px; min-height: 44px; cursor: pointer; }
.sift-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* over the list: the sheet's button (phones), the applied filters, the count */
.sift-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.sift-bar:not(:has(.sift-chip)) { display: none; }
.sift-open { display: none; gap: 8px; }
.sift-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.sift-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .15s var(--ease); }
.sift-chip:active { transform: scale(.97); }
.sift-chip svg { width: 14px; height: 14px; }
.sift-count { margin: -4px 0 12px; color: var(--muted); font-size: 13.5px; }
.sift-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 20px 22px; border-radius: 20px; border: 1.5px dashed var(--line-strong); }
.sift-empty b { font-weight: 500; }
.sift-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .55); }
@media (max-width: 960px) {
  .sift-bar, .sift-bar:not(:has(.sift-chip)) { display: flex; }
  .sift-open { display: inline-flex; }
  .sift { position: fixed; z-index: 41; inset: auto 0 0 0; max-height: 86svh; border-radius: 24px 24px 0 0; border-bottom: 0; translate: 0 105%; visibility: hidden; transition: translate .3s var(--ease), visibility 0s .3s; }
  .sift.is-open { translate: 0 0; visibility: visible; transition: translate .3s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .sift { transition: none !important; } }
