/* =====================================================================
   TEMAI 7 | studio.css
   owner task: studio
   scope: booking window (steps 1 to 3, summary rail, states), the paper ticket (done), request sheet
   Figma: Booking / Desktop 1 Service 86:4580, 2 Time 86:12117, 3 Details 86:13899, Done 86:17206; Phone 87:20739, 87:22022, 87:22976, 87:23712;
          states 88:2654 88:2704 89:4489 89:4603 89:4643 89:4677; sheets 92:3358 92:3468.
   Uses tokens.css and the primitives of base.css only. Logical properties (RTL first). Animate transform, opacity, clip-path, filter only.
   ===================================================================== */

/* ---------- 1. overlay, window, motion ---------- */
.studio { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; }
.studio__bg {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--color-bg-base) 80%, transparent); opacity: 0;
  -webkit-backdrop-filter: blur(var(--blur-glass)) grayscale(1); backdrop-filter: blur(var(--blur-glass)) grayscale(1);
  transition: opacity var(--dur-base) var(--ease-out);
}
.studio.is-open .studio__bg { opacity: 1; }
.studio__sheet {
  --studio-ground: var(--color-bg-raised);
  position: relative; display: flex; flex-direction: column; gap: var(--space-24);
  width: min(1040px, calc(100vw - 48px)); height: min(852px, calc(100dvh - 48px));
  padding: var(--space-24) var(--space-24) 0;
  background: var(--color-bg-raised); border: 1px solid var(--color-line-hair); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float); overflow: hidden;
  opacity: 0; transform: scale(0.96) translateY(12px);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.studio.is-open .studio__sheet { opacity: 1; transform: none; }
.studio__grab { display: none; }

/* header: brand (start), stepper, close (end) */
.studio__head { display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px; align-items: center; column-gap: var(--space-24); flex: none; }
.studio__brand { display: flex; align-items: center; gap: var(--space-12); justify-self: start; min-height: 56px; }
.studio__mark { width: 48px; height: 48px; flex: none; }
.studio__titles { display: flex; flex-direction: column; min-width: 0; }
.studio__titles b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-m); line-height: var(--lh-heading-m); color: var(--color-text-primary); white-space: nowrap; }
.studio__titles small { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); white-space: nowrap; }
.studio__x { grid-column: 3; grid-row: 1; justify-self: end; --ib-bg: transparent; --ib-bd: var(--color-line-strong); }

/* stepper: number box + label, joined by a line, the red bar sits on the active one */
.steps { display: flex; align-items: flex-start; gap: var(--space-16); min-width: 0; }
.steps > li { display: flex; align-items: flex-start; gap: var(--space-16); }
.steps > li:not(:first-child) { flex: 1 1 auto; }
.steps > li:not(:first-child)::before { content: ""; flex: 1 1 8px; min-width: 8px; height: 1px; margin-block-start: 33px; background: var(--color-line-strong); }
.steps > li.is-active::before, .steps > li.is-done::before { background: var(--color-state-ok); }
.steps__item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }
.steps__bar { width: 28px; height: 4px; border-radius: 1px; background: transparent; transition: background-color var(--dur-base) var(--ease-out); }
.steps > li.is-active .steps__bar { background: var(--color-brand-red); }
.steps button { position: relative; display: flex; align-items: center; gap: var(--space-12); min-height: 36px; color: var(--color-text-muted); font-weight: 600; font-size: var(--fs-label-l); line-height: var(--lh-label-l); white-space: nowrap; }
.steps button::after { content: ""; position: absolute; inset: -4px -6px; }
.steps button:disabled { cursor: default; }
.steps button b {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--color-line-hair); border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.steps button em { font-family: var(--font-code); font-style: normal; font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: var(--ls-code); text-transform: uppercase; }
.steps button b .ic { display: none; width: 20px; height: 20px; color: var(--color-state-ok); }
.steps > li.is-active button { color: var(--color-text-primary); }
.steps > li.is-active button b { background: var(--color-surface-2); border-color: var(--color-line-strong); }
.steps > li.is-done button { color: var(--color-text-primary); }
.steps > li.is-done button b { border-color: var(--color-state-ok); }
.steps > li.is-done button b em { display: none; }
.steps > li.is-done button b .ic { display: block; }
@media (hover: hover) { .steps button:not(:disabled):hover b { border-color: var(--color-metal-steel); } }

/* ---------- 2. body: scroller, columns, footer bar ---------- */
.studio__scroll { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-line-strong) transparent; }
.wizard { flex: 1 0 auto; display: flex; flex-direction: column; }
.wizard__body { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--space-24); }
.wizard__col { display: flex; flex-direction: column; min-width: 0; }
.wizard__main { flex: 1 0 auto; padding-block-end: var(--space-24); }
.wz-panel { display: flex; flex-direction: column; gap: var(--space-16); }
.wz-panel[hidden] { display: none; }
.wizard.shake .wizard__main { animation: wz-shake 360ms var(--ease-out); }
@keyframes wz-shake { 20% { transform: translateX(6px); } 45% { transform: translateX(-5px); } 70% { transform: translateX(3px); } }

.wizard__bar {
  position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: var(--space-16);
  padding-block: var(--space-16) var(--space-24); background: var(--color-bg-raised); border-block-start: 1px solid var(--color-line-hair);
}
.wizard__total { display: flex; flex-direction: column; align-items: flex-start; margin-inline-end: auto; min-width: 0; }
.wizard__total small { font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: var(--fw-label-s); color: var(--color-text-muted); }
.wizard__total strong { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; font-variant-numeric: tabular-nums; }
.wizard__total strong small { font-family: var(--font-text); font-size: var(--fs-label-m); line-height: var(--lh-label-m); font-weight: 500; color: var(--color-text-secondary); }
.wizard__total strong.is-quote { font-family: var(--font-text); font-size: var(--fs-body-m); font-weight: 600; }
.wizard__back { border-color: transparent; background: transparent; }
@media (hover: hover) { .wizard__back:hover { background: var(--color-surface-2); } }
.wizard__next .ic.ic--dir, .wizard__next .ic { width: 20px; height: 20px; }
.wizard__next.is-loading .ic { animation: wz-spin 1s linear infinite; }
@keyframes wz-spin { to { transform: rotate(360deg); } }

/* rail: live summary + help */
.wizard__side { position: sticky; inset-block-start: 0; align-self: start; height: calc(min(852px, 100dvh - 48px) - 104px); display: flex; flex-direction: column; gap: var(--space-24); padding-block-end: var(--space-24); min-width: 0; }
.sum { display: flex; flex-direction: column; gap: var(--space-20); padding: 28px var(--space-24); background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-lg); }
.sum__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); line-height: var(--lh-heading-s); }
.sum__empty { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.sum__rows { display: flex; flex-direction: column; gap: var(--space-16); }
.sum__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--space-12); align-items: start; }
.sum__row small { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-muted); }
.sum__row span { font-size: var(--fs-body-m); line-height: 28px; color: var(--color-text-primary); overflow-wrap: anywhere; }
.sum__svc, .sum__ln { display: block; }
.sum__disc { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-12); }
.sum__disc small { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.sum__disc span { font-weight: 500; font-size: var(--fs-body-m); line-height: 20px; color: var(--color-state-ok); white-space: nowrap; }
.sum__total { display: flex; justify-content: space-between; align-items: center; gap: var(--space-8); }
.sum__total > small { white-space: nowrap; font-size: var(--fs-body-m); line-height: 28px; color: var(--color-text-secondary); }
.sum__total strong { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 44px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__total strong small { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-m); line-height: var(--lh-label-m); color: var(--color-text-secondary); }
.sum__total strong.is-quote { font-family: var(--font-text); font-size: var(--fs-body-m); line-height: 28px; font-weight: 600; white-space: normal; }
.sum__extra { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.sum__pill { padding: 4px var(--space-12); border: 1px solid var(--color-line-hair); border-radius: var(--radius-pill); font-size: var(--fs-label-s); line-height: var(--lh-label-s); color: var(--color-text-secondary); }
.sum__pill--ok { color: var(--color-state-ok); background: var(--color-state-ok-soft); border-color: transparent; }
.sum__note { display: flex; align-items: center; gap: var(--space-8); font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.sum__note .ic { width: 16px; height: 16px; color: var(--color-state-ok); }
.help { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); margin-block-start: auto; }
.help p { font-size: var(--fs-label-m); line-height: var(--lh-label-m); font-weight: 500; color: var(--color-text-secondary); }
.help__row { display: flex; gap: var(--space-8); }

/* ---------- 3. panels: heads, banners, shared bits ---------- */
.wz-head { display: flex; flex-direction: column; gap: var(--space-4); margin-block-start: var(--space-16); }
.wz-title { font-family: var(--font-display); font-weight: var(--fw-heading-l); font-size: var(--fs-heading-l); line-height: var(--lh-heading-l); text-wrap: balance; }
.wz-title:focus-visible { outline-offset: 6px; border-radius: var(--radius-sm); }
.wz-sub, .note { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); text-wrap: pretty; }
.note .ic { display: none; }
.note.is-warn { display: flex; gap: var(--space-8); color: var(--color-state-warn); }
.note.is-warn .ic { display: block; width: 18px; height: 18px; margin-block-start: 3px; }
.wz-label { font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); margin-block-end: calc(var(--space-8) * -1); }

.wz-err { display: flex; flex-direction: column; gap: var(--space-12); }
.wz-err[hidden] { display: none; }
.wz-err__row, p.wz-err {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-12); padding: 14px var(--space-16); padding-inline-start: var(--space-20);
  background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); overflow: hidden;
  font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary);
}
.wz-err__row::before, p.wz-err::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--color-state-danger); }
.wz-err__ic { width: 24px; height: 24px; color: var(--color-state-danger); }
.wz-err__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wz-err__txt b { font-weight: 500; font-size: var(--fs-body-m); line-height: 24px; color: var(--color-text-primary); }
.wz-err__x { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; color: var(--color-text-secondary); }
.wz-err__x::after { content: ""; position: absolute; inset: -10px; }
.wz-err__x .ic { width: 20px; height: 20px; }
.wz-err__x:hover { color: var(--color-text-primary); }
.wz-err__act { display: flex; flex-wrap: wrap; gap: var(--space-12); }

.linkbtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: var(--tap-min); padding-inline: var(--space-12); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: var(--fs-label-l); line-height: var(--lh-label-l); font-weight: 600; text-align: center; }
.linkbtn .ic { width: 20px; height: 20px; }
@media (hover: hover) { .linkbtn:hover { background: var(--color-surface-2); } }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- 4. step 1: car tiles and service rows ---------- */
.wz-cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
.car {
  position: relative; display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-12); text-align: start; min-height: 44px;
  background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); color: var(--color-text-primary);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .car:hover { border-color: var(--color-line-strong); } }
.car.is-on { background: var(--color-surface-3); border-color: var(--color-line-strong); }
.car.is-on::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 16px; width: 28px; height: 4px; border-radius: 1px; background: var(--color-brand-red); }
.car__tag { position: absolute; inset-block-start: 11px; inset-inline-end: 11px; z-index: 1; padding: 4px var(--space-8); border: 1px solid var(--color-line-strong); border-radius: var(--radius-xs); font-family: var(--font-code); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: var(--ls-code); text-transform: uppercase; color: var(--color-text-secondary); }
.car__media { display: flex; align-items: center; justify-content: center; height: 72px; }
.car__media img { width: 100%; height: 72px; object-fit: contain; }
@media (min-width: 760px) {
  .car { padding-block-end: var(--space-16); }
  .car__media { position: relative; height: 128px; }
  .car__media img { height: 128px; }
  .car__media::after { content: ""; position: absolute; inset-inline: 8%; bottom: 4px; height: 1px; background: var(--color-line-hair); }
}
.wizard__next.is-idle:not(.is-loading) { --btn-bg: var(--color-surface-3); --btn-fg: var(--color-text-muted); --btn-bd: var(--color-line-hair); box-shadow: none; }
.car__media .ic { width: 40px; height: 40px; color: var(--color-metal-steel); stroke-width: 1.25; }
.car__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); line-height: var(--lh-heading-s); }

.opts { display: flex; flex-direction: column; gap: var(--space-12); }
.opts__empty { padding: var(--space-24); border: 1px dashed var(--color-line-strong); border-radius: var(--radius-md); text-align: center; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.opt { background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.opt.is-on { background: var(--color-surface-3); border-color: var(--color-line-strong); }
.opt:has(input:focus-visible) { outline: var(--focus-ring); outline-offset: 3px; }
@media (hover: hover) { .opt:not(.is-on):hover { border-color: var(--color-line-strong); } }
.opt__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: var(--space-16); row-gap: 2px; align-items: center; padding: var(--space-16) var(--space-20); cursor: pointer; min-height: 44px; }
.opt__row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opt__body { display: contents; }
.opt__check { grid-column: 1; grid-row: 1 / span 3; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); color: transparent; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.opt__check .ic { width: 20px; height: 20px; }
.opt.is-on .opt__check { background: var(--color-brand-red-fill); border-color: var(--color-brand-red-fill); color: var(--color-text-on-red); }
.opt__name { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); line-height: var(--lh-heading-s); }
.opt__badge { padding: 2px var(--space-8); border-radius: var(--radius-xs); background: transparent; border: 1px solid var(--color-line-strong); font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-s); line-height: var(--lh-label-s); }
.opt__short { grid-column: 2; grid-row: 2; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.opt__when { grid-column: 2; grid-row: 3; font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.opt__when .ic { display: none; }
.opt__price { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; min-width: 112px; text-align: end; font-size: var(--fs-label-m); }
.opt__price b { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-numeric-m); line-height: var(--lh-numeric-m); font-variant-numeric: tabular-nums; }
.opt__price b small { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-m); color: var(--color-text-secondary); }
.opt__price s { font-size: var(--fs-label-s); line-height: var(--lh-label-s); color: var(--color-text-muted); }
.opt__price.is-quote { font-size: var(--fs-label-m); line-height: var(--lh-label-m); font-weight: 500; color: var(--color-text-secondary); }
.opt { position: relative; }
.opt__more { padding-inline: var(--space-20); }
.opt__more[open] { padding-block-end: var(--space-16); }
.opt__more summary { position: absolute; inset-block-start: 6px; inset-inline-end: var(--space-12); z-index: 1; display: inline-flex; align-items: center; gap: var(--space-4); min-height: 32px; padding-inline: var(--space-8); border-radius: var(--radius-sm); cursor: pointer; list-style: none; font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.opt__more summary::after { content: ""; position: absolute; inset: -6px -4px; }
@media (hover: hover) { .opt__more summary:hover { color: var(--color-text-primary); } }
.opt__more summary::-webkit-details-marker { display: none; }
.opt__more summary .ic { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease-out); }
.opt__more[open] summary .ic { transform: rotate(-90deg); }
.opt__more ul { display: flex; flex-direction: column; gap: var(--space-8); padding-inline-start: 44px; }
.opt__more li { display: flex; gap: var(--space-8); font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.opt__more li .ic { width: 16px; height: 16px; margin-block-start: 4px; color: var(--color-state-ok); }
.single { border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); }
.single > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 52px; padding-inline: var(--space-20); cursor: pointer; list-style: none; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.single > summary::-webkit-details-marker { display: none; }
.single > summary small { color: var(--color-text-muted); font-size: inherit; }
.single > summary .ic { width: 18px; height: 18px; transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease-out); }
.single[open] > summary .ic { transform: rotate(-90deg); }
.single__list { display: flex; flex-direction: column; gap: var(--space-12); padding: 0 var(--space-12) var(--space-12); }

/* ---------- 5. step 2: soonest line, day strip, time slots ---------- */
.soonest { display: flex; align-items: center; gap: var(--space-12); min-height: 54px; padding-inline: var(--space-20); background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); text-align: start; font-size: var(--fs-label-m); line-height: var(--lh-label-m); font-weight: 500; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.soonest span { flex: 1 1 auto; min-width: 0; }
.soonest .ic { width: 24px; height: 24px; color: var(--color-metal-steel); }
.soonest .ic.ic--dir { width: 20px; height: 20px; }
@media (hover: hover) { .soonest:hover { background: var(--color-surface-2); border-color: var(--color-line-strong); } }
.cal { display: flex; flex-direction: column; gap: var(--space-12); }
.cal__grid { position: relative; display: flex; gap: var(--space-8); overflow-x: auto; padding-block: 2px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.cal__grid::-webkit-scrollbar { display: none; }
.day { position: relative; flex: 0 0 84px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); scroll-snap-align: start; background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.day small { font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-secondary); }
.day b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-numeric-m); line-height: var(--lh-numeric-m); font-variant-numeric: tabular-nums; }
.day em { display: flex; align-items: center; gap: var(--space-4); font-style: normal; font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
.day__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-state-warn); }
.day.is-few em { color: var(--color-state-warn); }
@media (hover: hover) { .day.is-open:not(.is-on):hover { border-color: var(--color-line-strong); } }
.day.is-on { background: var(--color-brand-red-soft); border-color: var(--color-brand-red); }
.day.is-on::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 27px; width: 28px; height: 4px; border-radius: 1px; background: var(--color-brand-red); }
.day.is-off { cursor: not-allowed; }
.day.is-off small, .day.is-off b { color: var(--color-text-muted); }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--space-16); font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.cal__legend > span { display: inline-flex; align-items: center; gap: var(--space-8); }
.lg { width: 6px; height: 6px; border-radius: 50%; }
.lg--open { background: var(--color-state-ok); }
.lg--few { background: var(--color-state-warn); }
.lg--off { background: var(--color-metal-steel); opacity: 0.6; }

.slotbox { display: flex; flex-direction: column; gap: var(--space-8); }
.slotbox__day { margin: 0; position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.slots { display: flex; flex-direction: column; gap: var(--space-16); }
.slots__group { display: flex; flex-direction: column; gap: var(--space-8); }
.slots__group h5 { margin: 0; font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-s); line-height: var(--lh-label-s); color: var(--color-text-muted); }
.slots__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-8); }
.slot { position: relative; display: grid; place-items: center; height: 48px; padding-inline: var(--space-4); background: var(--color-surface-1); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); font-weight: 600; font-size: var(--fs-label-l); line-height: var(--lh-label-l); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.slot small { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media (hover: hover) { .slot:not(.is-on):not(.is-full):hover { border-color: var(--color-metal-steel); background: var(--color-surface-2); } }
.slot.is-on { background: var(--color-brand-red-soft); border-color: var(--color-brand-red); color: var(--color-text-primary); }
.slot.is-full { border-color: var(--color-line-hair); background: transparent; color: var(--color-text-muted); cursor: not-allowed; }
.slot.is-taken { border-color: var(--color-state-danger); color: var(--color-state-danger); text-decoration: line-through; }
.slot.is-last::after { content: ""; position: absolute; inset-block-start: 6px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-state-warn); }
.skel { height: 48px; border-radius: var(--radius-md); background: var(--color-surface-2); animation: wz-pulse 1.2s var(--ease-inout) infinite alternate; }
@keyframes wz-pulse { from { opacity: 0.45; } to { opacity: 1; } }
.slots__msg { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); padding: var(--space-32) var(--space-16); background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-lg); text-align: center; color: var(--color-text-secondary); }
.slots__msg .ic { width: 32px; height: 32px; color: var(--color-metal-steel); stroke-width: 1.25; }
.slots__msg p { font-size: var(--fs-body-m); line-height: var(--lh-body-m); }
.slots__retry { display: flex; margin-block-start: var(--space-4); }

/* ---------- 6. step 3: the form ---------- */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); flex-wrap: wrap; padding: var(--space-12) var(--space-16); background: var(--color-surface-1); border: 1px solid var(--color-line-hair); border-radius: var(--radius-md); font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.welcome .linkbtn { min-height: 36px; font-size: var(--fs-label-m); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24) var(--space-16); align-items: start; }
.form > .field--full, .form > .check { grid-column: 1 / -1; }
.form .field { gap: var(--space-8); }
.form .field__label b { display: none; }
.form .field__label { font-size: var(--fs-label-m); }
.form .field__err:empty, .form .field__help:empty { display: none; }
.form .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"])[aria-invalid="true"],
.form .field.is-bad textarea { border-color: var(--color-state-danger); }
.form .field.is-bad .field__help { display: none; }
.form { row-gap: var(--space-16); }
.form textarea { min-height: 96px; }
.form .field--car, .form .vin { grid-column: 1 / -1; }
.form .vin { margin-block-start: calc(var(--space-8) * -1); }
.form .vin > .linkbtn { min-height: 44px; width: 100%; }
.vin__box { display: flex; flex-direction: column; gap: var(--space-8); }
.vinrow { position: relative; }
.vinrow input { padding-inline-end: 72px; }
.vinrow__count { position: absolute; inset-inline-end: var(--space-16); inset-block-start: 50%; transform: translateY(-50%); font-family: var(--font-code); font-weight: 500; font-size: 12px; line-height: 16px; color: var(--color-text-muted); pointer-events: none; }
.vinrow__count.is-ok { color: var(--color-state-ok); }
.chips { display: flex; gap: var(--space-8); overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips[hidden] { display: none; }
.chips .chip { position: relative; flex: none; min-height: 36px; padding-inline: var(--space-12); font-size: 13px; line-height: 16px; }
.chips .chip::after { content: ""; position: absolute; inset: -4px 0; }
.chips .chip.is-on { background: var(--color-surface-3); border-color: var(--color-line-strong); color: var(--color-text-primary); }

.coupon__box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8) var(--space-16); align-items: end; }
.coupon__box > .field__label { grid-column: 1; }
.couponrow { display: contents; }
.couponrow input { grid-column: 1; }
.couponrow .btn { grid-column: 2; }
.couponrow input:read-only { color: var(--color-text-primary); }
#couponApply[data-coupon-remove] { border-color: transparent; }
.couponchip, .couponmsg { grid-column: 1 / -1; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.couponchip[hidden] { display: none; }
.couponmsg:empty { display: none; }
.couponmsg { display: flex; align-items: flex-start; gap: var(--space-8); }
.couponmsg .ic { width: 16px; height: 16px; margin-block-start: 4px; flex: none; }
.couponmsg.is-err { color: var(--color-state-danger); }
.couponmsg.is-warn { color: var(--color-state-warn); }

/* ---------- 7. done: message, paper ticket, actions ---------- */
.wizard.is-done .wizard__bar, .wizard.is-done .wizard__side { display: none; }
.wizard.is-done .wizard__body { grid-template-columns: minmax(0, 1fr); }
.wizard.is-done .wizard__main { padding-block-end: var(--space-24); }
.studio:has(.wizard.is-done) .steps, .studio:has(.wizard.is-done) .studio__brand { visibility: hidden; }
.done { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 400px); justify-content: center; align-items: center; column-gap: 64px; }
.wizard.is-done .wizard__main { display: flex; flex-direction: column; }
.wz-panel--done { flex: 1 1 auto; }
.done__text { display: flex; flex-direction: column; gap: var(--space-24); }
.done__tk { display: flex; flex-direction: column; gap: var(--space-12); }
.done__msg { display: flex; flex-direction: column; gap: var(--space-24); }
.done__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); }
.done__burst { display: grid; place-items: center; width: 56px; height: 56px; }
.done__burst svg { width: 56px; height: 56px; overflow: visible; }
.done__ring { fill: none; stroke: var(--color-state-ok); stroke-width: 1.5; transform-origin: 50% 50%; }
.done__tick { fill: none; stroke: var(--color-state-ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done__title { font-family: var(--font-display); font-weight: var(--fw-display-m); font-size: var(--fs-display-m); line-height: var(--lh-display-m); text-wrap: balance; }
.done__sub { text-wrap: balance; font-size: var(--fs-heading-s); line-height: var(--lh-heading-s); color: var(--color-text-secondary); }
.done__next { display: flex; flex-direction: column; gap: var(--space-16); padding-block-start: var(--space-24); border-block-start: 1px solid var(--color-line-hair); }
.done__next h4 { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-m); line-height: var(--lh-label-m); color: var(--color-text-secondary); }
.done__next ol { display: flex; flex-direction: column; gap: var(--space-12); }
.done__next li { display: flex; align-items: flex-start; gap: var(--space-12); font-size: var(--fs-body-m); line-height: 24px; }
.done__next li i { flex: none; min-width: 32px; padding: 3px var(--space-8); border: 1px solid var(--color-line-strong); border-radius: var(--radius-xs); font-family: var(--font-code); font-style: normal; font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: var(--ls-code); text-align: center; color: var(--color-text-secondary); }
.done__warn { display: flex; gap: var(--space-8); padding: var(--space-12) var(--space-16); background: var(--color-state-warn-soft); border-radius: var(--radius-md); font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.done__warn .ic { width: 18px; height: 18px; margin-block-start: 3px; color: var(--color-state-warn); }
.done__side { display: flex; flex-direction: column; gap: var(--space-12); }
.done__hint { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); margin-block-end: var(--space-4); }
.done__side .btn { width: 100%; }
.done__two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.done__again { width: 100%; min-height: var(--tap-min); border-radius: var(--radius-md); font-weight: 600; font-size: var(--fs-label-l); line-height: var(--lh-label-l); text-align: center; }
@media (hover: hover) { .done__again:hover { background: var(--color-surface-2); } }

.ticket { position: relative; width: 100%; background: var(--color-bg-raised); color: var(--color-text-primary); border-radius: var(--radius-xl); overflow: hidden; }
.ticket__top { display: flex; flex-direction: column; gap: var(--space-20); padding: var(--space-24) 28px var(--space-16); }
.ticket__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); }
.ticket__brand { display: flex; align-items: center; gap: var(--space-12); flex: 0 0 auto; }
.ticket__brand span { white-space: nowrap; }
.ticket__brand img { width: 40px; height: 40px; flex: none; }
.ticket__brand span { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.ticket__brand small { font-size: var(--fs-label-s); line-height: var(--lh-label-s); color: var(--color-text-muted); }
.ticket__brand b { font-weight: 500; font-size: var(--fs-label-m); line-height: var(--lh-label-m); }
.ticket__ref { display: flex; flex-direction: column; gap: var(--space-8); }
.ticket__lab { display: flex; align-items: center; gap: var(--space-12); font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.ticket__lab::before { content: ""; width: 28px; height: 4px; border-radius: 1px; background: var(--color-brand-red); }
.ticket__num { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.ticket__num strong { min-width: 0; font-family: var(--font-code); font-weight: 500; font-size: 30px; line-height: 36px; letter-spacing: 0.08em; text-transform: uppercase; overflow-wrap: anywhere; }
.ticket__copy { display: inline-flex; align-items: center; gap: var(--space-8); flex: none; position: relative; height: 40px; padding-inline: var(--space-20); background: var(--color-brand-graphite); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); color: #fff; font-weight: 500; font-size: var(--fs-label-m); line-height: var(--lh-label-m); transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.ticket__copy::after { content: ""; position: absolute; inset: -2px 0; }
.ticket__copy .ic { width: 18px; height: 18px; }
.ticket__copy:active { transform: scale(0.98); }
@media (hover: hover) { .ticket__copy:hover { background: #3f4448; } }
.ticket__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-24); padding-block-start: var(--space-16); border-block-start: 1px solid var(--color-line-hair); }
.ticket__cell { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ticket__cell.is-wide { grid-column: 1 / -1; }
.ticket__cell small { font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; color: var(--color-text-muted); }
.ticket__cell span { font-size: var(--fs-body-m); line-height: 26px; overflow-wrap: anywhere; }
.ticket__li { display: block; }
.ticket__cell a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticket__tear { position: relative; height: 28px; flex: none; background:
  radial-gradient(circle 14px at 0 50%, var(--studio-ground) 13.5px, transparent 14px),
  radial-gradient(circle 14px at 100% 50%, var(--studio-ground) 13.5px, transparent 14px); }
.ticket__tear::before { content: ""; position: absolute; inset-inline: 28px; inset-block-start: calc(50% - 1px); border-block-start: 2px dashed var(--color-line-strong); }
.ticket__stub { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-8) 28px var(--space-24); }
.ticket__disc { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-12); margin-block-end: calc(var(--space-8) * -1); font-size: var(--fs-label-m); line-height: var(--lh-label-m); }
.ticket__disc small { color: var(--color-text-secondary); font-size: inherit; }
.ticket__disc span { color: var(--color-state-ok); font-weight: 500; white-space: nowrap; }
.ticket__total { display: flex; justify-content: space-between; align-items: center; gap: var(--space-12); }
.ticket__total small { font-size: var(--fs-body-m); line-height: 28px; color: var(--color-text-secondary); }
.ticket__total em { display: block; font-style: normal; font-size: var(--fs-label-s); line-height: var(--lh-label-s); color: var(--color-text-muted); }
.ticket__total strong { display: inline-flex; align-items: baseline; gap: var(--space-8); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 44px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket__total strong small { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-label-m); line-height: var(--lh-label-m); letter-spacing: 0; }
.ticket__total strong s { font-size: var(--fs-body-m); font-weight: 500; color: var(--color-text-muted); }
.ticket__total strong.is-quote { font-family: var(--font-text); font-size: var(--fs-body-m); line-height: 28px; font-weight: 600; white-space: normal; }
.ticket__code { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); }
.ticket__bars { max-width: 100%; height: auto; }
.ticket__code span { font-family: var(--font-code); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-muted); }

/* arrival: the ticket rises, the tear line is drawn from the middle, the check is stamped */
.done:not(.done--static) .ticket { animation: tk-rise var(--dur-slow) var(--ease-out) 0.1s backwards; }
.done:not(.done--static) .ticket__tear::before { animation: tk-tear var(--dur-slow) var(--ease-out) 0.55s both; }
.done:not(.done--static) .done__ring { animation: tk-stamp var(--dur-slow) var(--ease-out) 0.25s both; }
.done:not(.done--static) .done__tick { animation: tk-tick var(--dur-base) var(--ease-inout) 0.6s both; }
@keyframes tk-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tk-tear { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
@keyframes tk-stamp { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
@keyframes tk-tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* ---------- 8. request sheet (change / cancel) ---------- */
.sheet { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-end; justify-content: center; }
.sheet__bg { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass)); transition: opacity var(--dur-fast) var(--ease-out); }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet__box {
  position: relative; width: min(100%, 520px); max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-32) var(--space-20) calc(var(--space-32) + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg-raised); border: 1px solid var(--color-line-hair); border-block-end: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-float);
  transform: translateY(32px); opacity: 0; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.sheet.is-open .sheet__box { transform: none; opacity: 1; }
.sheet__grab { position: absolute; inset-block-start: 12px; inset-inline-start: 50%; width: 40px; height: 4px; margin-inline-start: -20px; border-radius: 2px; background: var(--color-line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.sheet__head h3 { font-family: var(--font-display); font-weight: var(--fw-heading-m); font-size: var(--fs-heading-m); line-height: var(--lh-heading-m); }
.sheet__x { --ib-bg: transparent; --ib-bd: var(--color-line-strong); }
.sheet .field__help { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--color-text-secondary); }
.sheet .wz-err { display: flex; }
.sheet__act { display: flex; flex-direction: column; gap: var(--space-16); margin-block-start: var(--space-4); }
.sheet__act .btn { width: 100%; }
.sheet[data-kind="cancel"] #reqSend { --btn-bg: transparent; --btn-fg: var(--color-state-danger); --btn-bd: var(--color-state-danger); }
.sheet[data-kind="cancel"] #reqSend .ic { display: none; }
.sheet[data-kind="cancel"] #reqBack { --btn-bg: var(--color-brand-graphite); --btn-fg: #f4f2ee; --btn-bd: rgba(255, 255, 255, 0.18); }
/* tracking result: the two request buttons share the card width */
.tr__act { display: flex; gap: var(--space-12); }
.tr__act .btn { flex: 1 1 0; }
@media (min-width: 760px) {
  .sheet { align-items: center; }
  .sheet__box { padding-block-start: var(--space-32); border-block-end: 1px solid var(--color-line-hair); border-radius: var(--radius-xl); }
  .sheet__grab { display: none; }
}

/* ---------- 9. tablet and phone ---------- */
@media (min-width: 760px) {
  /* done: the window has no header, only the close button floats at the end corner */
  .studio:has(.wizard.is-done) .studio__head { position: absolute; inset-block-start: var(--space-24); inset-inline-end: var(--space-24); z-index: 5; display: block; }
  .studio:has(.wizard.is-done) .steps, .studio:has(.wizard.is-done) .studio__brand { display: none; }
  .studio:has(.wizard.is-done) .studio__sheet { gap: 0; }
  .studio:has(.wizard.is-done) .wizard__main { padding-block: var(--space-8) var(--space-16); }
}
@media (max-width: 1099px) and (min-width: 760px) {
  .studio__head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .studio__sheet { width: min(1040px, calc(100vw - 32px)); }
  .wizard__body { grid-template-columns: minmax(0, 1fr) 280px; }
  .done { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: var(--space-32); }
}
@media (max-width: 759px) {
  .studio { place-items: end stretch; }
  .studio__sheet { position: fixed; inset: 16px 0 0 0; width: auto; height: auto; gap: 0; padding: 0; border-width: 1px 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; transform: translateY(100%); opacity: 1; transition: transform var(--dur-slow) var(--ease-out); }
  .studio.is-open .studio__sheet { transform: none; }
  .studio__grab { display: block; position: absolute; inset-block-start: 12px; inset-inline-start: 50%; width: 40px; height: 4px; margin-inline-start: -20px; border-radius: 2px; background: var(--color-line-strong); }
  .studio__head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand close" "steps steps"; row-gap: var(--space-12); padding: var(--space-32) var(--space-20) var(--space-8); }
  .studio__brand { grid-area: brand; min-height: 48px; }
  .studio__x { grid-area: close; --ib: 40px; }
  .studio__x::after { content: ""; position: absolute; inset: -2px; }
  .steps { grid-area: steps; gap: var(--space-8); }
  .steps > li { gap: var(--space-8); }
  .steps > li:not(:first-child)::before { flex-basis: 4px; min-width: 4px; }
  /* phone: only the current step carries its label, the connectors fill the width */
  .steps > li:not(.is-active) button > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .studio:has(.wizard.is-done) .steps { display: none; }
  .studio:has(.wizard.is-done) .studio__brand { visibility: visible; }
  .studio:has(.wizard.is-done) .studio__head { grid-template-areas: "brand close"; }
  .studio__scroll { padding-inline: var(--space-20); }
  .wizard__body { grid-template-columns: minmax(0, 1fr); }
  .wizard__main { padding-block-start: var(--space-20); }
  .soonest { padding-inline: var(--space-16); gap: var(--space-8); }
  .form .vin { margin-block-start: 0; }
  /* the summary is not drawn on phones (the footer carries the total): it stays readable for screen readers */
  .wizard__side { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .wizard__side .help { display: none; }
  .wizard__bar { flex-wrap: wrap; gap: var(--space-12); margin-inline: calc(var(--space-20) * -1); padding: var(--space-12) var(--space-20) calc(var(--space-16) + env(safe-area-inset-bottom, 0px)); }
  .wizard__total { flex: 1 0 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-inline-end: 0; }
  .wizard__total strong { font-size: var(--fs-numeric-m); line-height: var(--lh-numeric-m); }
  .wizard__next { flex: 1 1 0; padding-inline: var(--space-16); }
  .wizard__back { padding-inline: var(--space-24); }
  .wz-title { font-size: var(--fs-heading-l); }
  .wz-cars { display: flex; overflow-x: auto; margin-inline: calc(var(--space-20) * -1); padding-inline: var(--space-20); scroll-snap-type: x proximity; scroll-padding-inline: var(--space-20); scrollbar-width: none; }
  .wz-cars::-webkit-scrollbar { display: none; }
  .car { flex: 0 0 208px; scroll-snap-align: start; }
  .opt__row { padding: var(--space-16); column-gap: var(--space-12); row-gap: var(--space-4); }
  .opt__body { display: contents; }
  .opt__check { grid-row: 1; }
  .opt__name { grid-column: 2 / span 2; }
  .opt__short { grid-column: 2 / span 2; }
  .opt__when { grid-column: 2; grid-row: 3; align-self: center; }
  .opt__price { grid-column: 3; grid-row: 3; flex-direction: row; align-items: baseline; gap: var(--space-8); min-width: 0; }
  .opt__price b { font-size: 22px; }
  .cal__grid { margin-inline: calc(var(--space-20) * -1); padding-inline: var(--space-20); scroll-padding-inline: var(--space-20); }
  .slots__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .form .vin > .linkbtn { min-height: 48px; }
  .coupon__box { grid-template-columns: minmax(0, 1fr) auto; }
  .coupon__box .btn { padding-inline: var(--space-20); }
  /* done: head, ticket, steps; actions stay in reach under the scrolling content */
  .done { display: flex; flex-direction: column; gap: var(--space-16); }
  .done__text, .done__tk, .done__msg { display: contents; }
  .done__head { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-12); row-gap: var(--space-4); }
  .done__burst { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .done__burst svg { width: 48px; height: 48px; }
  .done__title { grid-column: 1; grid-row: 1; }
  .done__sub { grid-column: 1; grid-row: 2; font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
  .ticket { order: 2; }
  .done__warn { order: 3; }
  .done__next { order: 4; }
  .done__again { order: 5; width: 100%; }
  .done > * { align-self: stretch; }
  .done__side { order: 6; align-self: stretch; width: auto; position: sticky; bottom: 0; z-index: 3; margin-inline: calc(var(--space-20) * -1); padding: var(--space-16) var(--space-20) calc(var(--space-16) + env(safe-area-inset-bottom, 0px)); background: var(--color-bg-raised); border-block-start: 1px solid var(--color-line-hair); }
  .done__hint { display: none; }
  .done__two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .done__side .btn { padding-inline: var(--space-12); }
  .ticket__top { padding: var(--space-24) var(--space-20) var(--space-16); }
  .ticket__num strong { font-size: 24px; }
  .ticket__stub { padding: var(--space-16) var(--space-20) var(--space-24); }
  .ticket__tear::before { inset-inline: var(--space-20); }
  .sheet__box { padding-inline: var(--space-20); }
}
@media (max-width: 379px) {
  .ticket__num strong { font-size: 20px; }
  .ticket__rows { column-gap: var(--space-12); }
}
@media (max-height: 640px) and (min-width: 760px) { .studio__sheet { height: calc(100dvh - 24px); } }

@media (prefers-reduced-motion: reduce) {
  .studio__sheet, .studio__bg, .sheet__box, .sheet__bg { transition: opacity var(--dur-fast) linear; transform: none; }
  .studio__sheet { transform: none !important; }
  .wizard.shake .wizard__main, .done .ticket, .done .ticket__tear::before, .done .done__ring, .done .done__tick, .skel, .wizard__next.is-loading .ic { animation: none; }
}
html.reduce-motion .studio__sheet, html.reduce-motion .sheet__box { transition: opacity var(--dur-fast) linear; transform: none !important; }
html.reduce-motion .done .ticket, html.reduce-motion .done .ticket__tear::before, html.reduce-motion .done .done__ring, html.reduce-motion .done .done__tick { animation: none; }
