/* ARK Book Appointment (ARK Shop). The booking card inside the website popup and on the full /book page.
   Brand colour comes from the Book Service Builder (--akb-brand).
   Desktop card targets ~1000px so a typical step fits a 1366×768 laptop without cramped controls. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.akb-doc, .akb-doc {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a; background: #eef2f6; -webkit-font-smoothing: antialiased; line-height: 1.4; font-size: 15px;
}
body.akb-doc.akb-embedded { background: transparent; }
.akb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

:root {
  --akb-card-max: 1000px;
}

.akb-page { min-height: 100vh; padding: 20px 16px 36px; display: flex; flex-direction: column; align-items: center; }
.akb-page__shop { width: 100%; max-width: var(--akb-card-max); margin: 0 0 10px; font-weight: 600; color: #334155; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.akb-page__shop a { color: inherit; }
.akb-page--site { min-height: 0; padding: 0; font-size: 15px; background: transparent; align-items: stretch; }

/* Full /book page: keep the ~1000px booking card, then a narrow shop-context column. */
.akb-site-frame { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.akb-site-frame__wrap {
  /* card (1000) + aside (~15.5rem) + gap + horizontal padding ≈ fits 1366 comfortably */
  --akb-aside-width: 15.5rem;
  --akb-frame-gap: 1.5rem;
  max-width: calc(var(--akb-card-max) + var(--akb-aside-width) + var(--akb-frame-gap) + 4rem);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .akb-site-frame__wrap { padding: 0 1.5rem; } }
@media (min-width: 1100px) {
  .akb-site-frame__wrap {
    padding: 0 1.5rem;
    grid-template-columns: minmax(0, var(--akb-card-max)) var(--akb-aside-width);
    gap: var(--akb-frame-gap);
    align-items: start;
  }
}
@media (min-width: 1440px) {
  .akb-site-frame__wrap {
    --akb-aside-width: 16rem;
    --akb-frame-gap: 1.75rem;
    padding: 0 2rem;
  }
}
.akb-site-frame__primary { min-width: 0; }
.akb-site-frame__aside { min-width: 0; }
.akb-aside { padding: 1.15rem 1.2rem; border: 1px solid var(--public-border, #e2e8f0); border-radius: var(--public-radius, 0.5rem); background: var(--public-surface-shop, #fff); color: var(--public-text, #0f172a); }
.akb-aside__eyebrow { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--public-text-muted, #64748b); }
.akb-aside__title { margin: 0 0 0.85rem; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.015em; color: var(--public-text, #0f172a); line-height: 1.25; }
.akb-aside__facts { margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.akb-aside__facts dt { margin: 0; font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--public-text-muted, #64748b); }
.akb-aside__facts dd { margin: 0.2rem 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--public-text, #0f172a); }
.akb-aside__facts a { color: var(--public-link, var(--akb-brand, #14304d)); text-decoration: none; font-weight: 700; }
.akb-aside__facts a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Dark: explicit readable colors. Do not rely on --public-ink alone — light-mode ink can remain
   #0f172a on html.dark and make shop name/address/hours disappear on the dark aside surface. */
html.dark .akb-aside {
  background: var(--public-surface-shop, #121a24);
  border-color: var(--public-border, rgb(148 163 184 / 0.2));
  color: #f1f5f9;
}
html.dark .akb-aside__title,
html.dark .akb-aside__facts dd { color: #f8fafc; }
html.dark .akb-aside__eyebrow,
html.dark .akb-aside__facts dt { color: #94a3b8; }
html.dark .akb-aside__facts a { color: #93c5fd; }
html.dark .akb-aside__facts a:hover { color: #bfdbfe; }
@media (max-width: 1099px) {
  /* Form first on phones/tablets; shop details follow. */
  .akb-site-frame__aside { order: 1; }
  .akb-aside { padding: 1rem 1.1rem; }
  .akb-aside__title { font-size: 1.05rem; margin-bottom: 0.65rem; }
}

.akb { width: 100%; max-width: var(--akb-card-max); background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 18px 40px -28px rgb(15 23 42 / .35); border: 1.5px solid rgb(15 23 42 / .08); overflow: hidden; display: flex; flex-direction: column; position: relative; container-type: inline-size; container-name: akb; }
.akb-site-frame__primary .akb { max-width: none; }
.public-surface .akb-page--site .akb { background: var(--public-surface-shop, #fff); border-color: var(--public-border, rgb(15 23 42 / .08)); }
.akb-embedded .akb { max-width: none; border-radius: 0; box-shadow: none; }
html:has(body.akb-embedded), body.akb-embedded { background: #fff; }

.akb-noticebar { width: 100%; max-width: var(--akb-card-max); margin: 0 auto 10px; padding: 8px 12px; border-radius: 10px; background: #fef3c7; color: #78350f; font-size: 13.5px; }
.akb-noticebar a { color: inherit; font-weight: 650; }
.akb-embedded .akb-noticebar { border-radius: 0; margin: 0; max-width: none; }

/* Header: the shop's colour, title, subtitle and where the customer is. */
.akb-header { position: sticky; top: 0; z-index: 5; color: var(--akb-on-brand, #fff); background: linear-gradient(135deg, var(--akb-brand, #14304d) 0%, var(--akb-brand-2, #0b1c2e) 100%); padding: 12px 56px 8px 18px; }
.akb-header__row { display: flex; align-items: center; gap: 10px; }
.akb-header__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .14); display: grid; place-items: center; }
.akb-header__icon svg { width: 18px; height: 18px; }
.akb-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.akb-subtitle { margin: 1px 0 0; font-size: 12.5px; opacity: .78; }
.akb-progress { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.akb-dots { display: flex; gap: 5px; }
.akb-dots span { width: 20px; height: 3px; border-radius: 999px; background: rgb(255 255 255 / .28); transition: background .2s; }
.akb-dots span.is-done { background: rgb(255 255 255 / .7); }
.akb-dots span.is-current { background: #fff; }

/* Body, with the shop's optional background behind the steps. */
.akb-main { position: relative; flex: 1 1 auto; padding: 14px 18px 6px; }
.akb-main--bg { background-color: #fff; background-image: linear-gradient(rgb(255 255 255 / .86), rgb(255 255 255 / .86)), var(--akb-bg-image); background-size: auto, 360px; background-repeat: repeat; }
.akb-main--photo { background-image: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / .9)), var(--akb-bg-image); background-size: cover; background-position: center; }
.akb-step { animation: akb-in .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .akb-step { animation: none; } }
@keyframes akb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.akb-step__title { margin: 0 0 2px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.akb-step__title:focus { outline: none; }
.akb-step__hint { margin: 0 0 10px; color: #475569; font-size: 13.5px; }
.akb-step__picked { margin: 0 0 10px; font-size: 13px; color: #475569; }
.akb-step__picked strong { color: #0f172a; }

/* Service and option cards. Grids follow the card width (embed popup or /book), not the parent page. */
.akb-cards { display: grid; grid-template-columns: 1fr; grid-auto-flow: row dense; gap: 8px; margin: 0; padding: 0; border: 0; }
@container akb (min-width: 560px) {
  .akb-cards--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-akb-saved-list] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.akb-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 11px 40px 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.akb-card:hover { border-color: color-mix(in srgb, var(--akb-brand, #14304d) 55%, #e2e8f0); box-shadow: 0 6px 18px rgb(15 23 42 / .08); transform: translateY(-1px); }
.akb-card input { position: absolute; opacity: 0; pointer-events: none; }
.akb-card__title { font-weight: 650; font-size: 15px; color: #0f172a; }
.akb-card__text { font-size: 13px; color: #64748b; }
.akb-card__meta { font-size: 12px; color: #475569; font-weight: 600; margin-top: 1px; }
.akb-card__check { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid #cbd5e1; display: grid; place-items: center; transition: all .15s; }
.akb-card__check svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.akb-card:has(input:checked) { border-color: var(--akb-brand, #14304d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akb-brand, #14304d) 16%, transparent); }
.akb-card:has(input:checked) .akb-card__check { background: var(--akb-brand, #14304d); border-color: var(--akb-brand, #14304d); }
.akb-card:has(input:checked) .akb-card__check svg { opacity: 1; }
.akb-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--akb-brand, #14304d) 45%, white); outline-offset: 2px; }

@container akb (min-width: 560px) { .akb-cards--2 > label.akb-card--describe:nth-of-type(odd):last-of-type { grid-column: 1 / -1; } }
.akb-card--describe { border-style: dashed; }
.akb-card--compact { min-height: 52px; padding-top: 9px; padding-bottom: 9px; }
/* A chosen service's options, on the row below its card. */
.akb-card-options { grid-column: 1 / -1; padding: 10px 14px 2px; border-radius: 12px; background: color-mix(in srgb, var(--akb-brand, #14304d) 5%, white); border: 1.5px solid color-mix(in srgb, var(--akb-brand, #14304d) 22%, white); }

/* The visit so far. */
.akb-basket { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0 0 10px; padding: 6px 9px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.akb-basket__label { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-right: 2px; }
.akb-basket__items { display: contents; }
.akb-basket__item { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #cbd5e1; font-size: 13px; font-weight: 600; color: #0f172a; }
.akb-basket__item:not(:has(button)) { padding-right: 10px; }
.akb-basket__item button { appearance: none; border: 0; background: none; width: 22px; height: 22px; border-radius: 999px; font-size: 16px; line-height: 1; color: #64748b; cursor: pointer; }
.akb-basket__item button:hover { background: #f1f5f9; color: #0f172a; }
.akb-basket__add { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--akb-brand, #14304d); cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }

/* One panel per chosen service on the details step. */
.akb-item { margin: 0 0 10px; padding: 10px 14px 2px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; }
.akb-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.akb-item__name { font-weight: 700; font-size: 15px; }
.akb-item__remove { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.akb-item__remove:hover { color: #b91c1c; }
.akb-chip small { font-weight: 500; opacity: .7; }

/* Service questions: two columns when the card is wide enough. */
.akb-questions { display: grid; grid-template-columns: 1fr; gap: 10px 16px; margin: 0 0 8px; }
.akb-questions > .akb-field { margin: 0; min-width: 0; }
@container akb (min-width: 720px) {
  .akb-questions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .akb-questions > .akb-field:has(.akb-textarea),
  .akb-questions > .akb-field:has(.akb-chip:nth-child(3)) { grid-column: 1 / -1; }
  .akb-item [data-akb-item-details] { margin-top: 4px; }
}

/* Recommended work for a recognized customer's vehicle. */
.akb-recs { margin: 0 0 10px; }
.akb-recs .akb-section-label { margin-top: 0; }
.akb-rec { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; }
.akb-rec input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--akb-brand, #14304d); }
.akb-rec:has(input:checked) { border-color: var(--akb-brand, #14304d); background: color-mix(in srgb, var(--akb-brand, #14304d) 5%, white); }
.akb-rec__body { display: flex; flex-direction: column; gap: 2px; }
.akb-rec__title { font-weight: 650; }
.akb-rec__text { font-size: 13px; color: #475569; }
.akb-rec__meta { font-size: 12px; color: #64748b; font-weight: 600; }
.akb-rec--safety .akb-rec__meta { color: #b45309; }
@container akb (min-width: 720px) {
  [data-akb-recs-list] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  [data-akb-recs-list] .akb-rec { margin: 0; min-width: 0; }
}

/* Chips: concern shortcuts, times of day, contact preference, location. */
.akb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.akb-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 550; color: #1e293b; cursor: pointer; transition: all .15s; }
.akb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.akb-chip:hover { border-color: #94a3b8; }
.akb-chip:has(input:checked) { background: var(--akb-brand, #14304d); border-color: var(--akb-brand, #14304d); color: var(--akb-on-brand, #fff); }
.akb-chip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--akb-brand, #14304d) 45%, white); outline-offset: 2px; }
.akb-chip:has(input:disabled) { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Day pills. */
.akb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; border: 0; }
.akb-day { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; transition: all .15s; text-align: center; }
.akb-day input { position: absolute; opacity: 0; pointer-events: none; }
.akb-day__dow { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.akb-day__date { font-size: 15px; font-weight: 700; color: #0f172a; }
.akb-day__note { font-size: 10px; color: #94a3b8; min-height: 12px; }
.akb-day:hover { border-color: #94a3b8; }
.akb-day:has(input:checked) { border-color: var(--akb-brand, #14304d); background: color-mix(in srgb, var(--akb-brand, #14304d) 8%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akb-brand, #14304d) 14%, transparent); }
.akb-day:has(input:disabled) { cursor: not-allowed; opacity: .5; background: #f8fafc; }
.akb-day:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--akb-brand, #14304d) 45%, white); outline-offset: 2px; }
.akb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.akb-times .akb-chip { justify-content: center; border-radius: 10px; }

/* Fields. */
.akb-grid { display: grid; gap: 10px 14px; grid-template-columns: minmax(0, 1fr); }
@container akb (min-width: 560px) {
  .akb-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container akb (min-width: 640px) {
  .akb-grid--3 { grid-template-columns: minmax(72px, 100px) minmax(0, 1fr) minmax(0, 1fr); }
}
.akb-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; min-width: 0; }
fieldset.akb-field { border: 0; padding: 0; min-width: 0; }
fieldset.akb-field > legend { padding: 0; margin: 0 0 5px; }
.akb-grid .akb-field { margin: 0; }
.akb-label { font-size: 12.5px; font-weight: 650; color: #334155; }
.akb-label small { font-weight: 500; color: #94a3b8; }
.akb-input, .akb-textarea, .akb-select { width: 100%; font: inherit; font-size: 15px; color: #0f172a; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
.akb-textarea { min-height: 84px; resize: vertical; }
.akb-textarea--short { min-height: 56px; }
.akb-select { -webkit-appearance: none; appearance: none; min-height: 42px; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.akb-input { min-height: 42px; }
.akb-input:focus, .akb-textarea:focus, .akb-select:focus { outline: none; border-color: var(--akb-brand, #14304d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akb-brand, #14304d) 16%, transparent); }
.akb-input[aria-invalid="true"], .akb-textarea[aria-invalid="true"] { border-color: #dc2626; }
/* The card is light; ARK Core darkens every input on a dark public site, so its fields would be mixed. */
.akb { color-scheme: light; }
html.dark .public-surface .akb :is(.akb-input, .akb-textarea, .akb-select) { background-color: #fff; color: #0f172a; border-color: #e2e8f0; box-shadow: none; }
html.dark .public-surface .akb :is(.akb-input, .akb-textarea) { background-image: none; }
html.dark .public-surface .akb .akb-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
html.dark .public-surface .akb :is(.akb-input, .akb-textarea, .akb-select):focus { border-color: var(--akb-brand, #14304d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akb-brand, #14304d) 16%, transparent); }
html.dark .public-surface .akb :is(.akb-input, .akb-textarea)[aria-invalid="true"] { border-color: #dc2626; }
.akb-help { font-size: 12px; color: #64748b; }
.akb-error { font-size: 12.5px; color: #b91c1c; font-weight: 550; }
.akb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0; cursor: pointer; }
.akb-check input { width: 17px; height: 17px; accent-color: var(--akb-brand, #14304d); }
.akb-section-label { margin: 12px 0 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.akb-vehicle + .akb-vehicle { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.akb-vehicle__vin { margin-top: 8px; }
.akb-add-vehicle { margin-top: 8px; }

/* Notes, alerts, verification. */
.akb-note { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--akb-brand, #14304d) 7%, white); border: 1px solid color-mix(in srgb, var(--akb-brand, #14304d) 18%, white); color: #1e293b; }
.akb-note--warn { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.akb-alert { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; }
.akb-alert ul { margin: 4px 0 0; padding-left: 18px; }
.akb-verify { margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed #cbd5e1; background: #f8fafc; }
.akb-verify__row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.akb-verify__row .akb-field { flex: 1 1 140px; margin: 0; }
.akb-verified { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: #047857; font-weight: 650; font-size: 14px; }
.akb-verified--badge { margin: 0 0 6px; font-size: 13px; }
.akb-trusted { color: #047857; font-weight: 700; }
[data-akb-verified] .akb-link { margin-top: 2px; padding-left: 0; }
.akb-status { font-size: 13px; color: #334155; margin: 6px 0 0; }
.akb-status:empty { display: none; }
.akb-verify:has([data-akb-verified]:not([hidden])) { border-style: solid; border-color: #a7f3d0; background: #ecfdf5; padding: 8px 12px; }

/* Review. */
.akb-summary { margin: 0 0 10px; padding: 2px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.akb-summary div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.akb-summary div:last-child { border-bottom: 0; }
.akb-summary dt { color: #64748b; font-weight: 600; }
.akb-summary dd { margin: 0; color: #0f172a; white-space: pre-line; }
@container akb (min-width: 720px) {
  .akb-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; padding: 4px 16px; }
  .akb-summary div { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); }
}

/* Footer navigation. */
.akb-footer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgb(255 255 255 / .96); backdrop-filter: blur(6px); border-top: 1px solid #e2e8f0; }
.akb-footer__spacer { flex: 1; }
.akb-btn { appearance: none; border: 0; font: inherit; font-weight: 650; font-size: 15px; border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: background .15s, box-shadow .15s, opacity .15s; }
.akb-btn--primary { background: var(--akb-brand, #14304d); color: var(--akb-on-brand, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--akb-brand, #14304d) 30%, transparent); }
.akb-btn--primary:hover { background: var(--akb-brand-2, #0b1c2e); }
.akb-btn--ghost { background: #f1f5f9; color: #0f172a; }
.akb-btn--ghost:hover { background: #e2e8f0; }
.akb-btn--small { padding: 8px 14px; font-size: 13.5px; }
.akb-btn:disabled, .akb-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.akb-btn:focus-visible, .akb-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--akb-brand, #14304d) 45%, white); outline-offset: 2px; }
.akb-link { appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* Receipt. */
.akb-done { text-align: center; padding: 22px 8px 14px; }
.akb-done__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 999px; display: grid; place-items: center; background: #ecfdf5; color: #047857; }
.akb-done__icon--wait { background: color-mix(in srgb, var(--akb-brand, #14304d) 10%, white); color: var(--akb-brand, #14304d); }
.akb-done__icon svg { width: 28px; height: 28px; }
.akb-done h2 { margin: 0 0 6px; font-size: 21px; }
.akb-done h2:focus { outline: none; }
.akb-done p { margin: 0 auto 12px; max-width: 30rem; color: #334155; }
.akb-done .akb-summary { text-align: left; max-width: 36rem; margin: 14px auto; }

/* Narrow card (mobile page or tight embed): keep one column; page chrome still uses the viewport. */
@container akb (max-width: 559px) {
  .akb-summary { display: block; }
  .akb-summary div { grid-template-columns: 1fr; gap: 2px; }
  [data-akb-saved-list],
  [data-akb-recs-list],
  .akb-questions,
  .akb-grid--2,
  .akb-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .akb-doc { font-size: 15px; }
  .akb-page { padding: 0; }
  .akb { border-radius: 0; box-shadow: none; min-height: 100vh; }
  .akb-page--site { padding: 10px 10px 28px; }
  .akb-page--site .akb { border-radius: 14px; box-shadow: 0 8px 30px rgb(15 23 42 / .10); min-height: 0; }
  .akb-page--site .akb-header, .akb-page--site .akb-footer { position: static; }
  .akb-header { padding: 14px 56px 8px 14px; }
  .akb-main { padding: 14px 14px 6px; }
  .akb-footer { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .akb-dots span { width: 14px; }
  .akb-btn { padding: 11px 18px; }
}
