/* =====================================================================
   Página de detalhe da viatura (carros e motos)
   Desktop: galeria imersiva (foto principal + mosaico) à esquerda,
   painel fixo à direita. Mobile: galeria de ecrã inteiro, resumo,
   conteúdo e barra fixa em baixo.
   ===================================================================== */

/* ---------- Layout ---------- */
.vd__layout {
  width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "gallery" "top" "aside" "content";
}
.vd__top { grid-area: top; }
.vd__gallery { grid-area: gallery; min-width: 0; }
.vd__aside { grid-area: aside; min-width: 0; }
.vd__content { grid-area: content; min-width: 0; }

@media (min-width: 1024px) {
  .vd__layout {
    grid-template-columns: minmax(0, 1fr) clamp(360px, 28vw, 420px);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "top top" "gallery aside" "content aside";
    column-gap: clamp(40px, 4.5vw, 80px);
  }
  .vd__aside { align-self: start; position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* ---------- Breadcrumbs ---------- */
.vd__crumbs { padding: 0; align-items: center; gap: 0 10px; }
.vd__crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .vd__top { padding: 4px 0 8px; } }

/* ---------- Galeria ---------- */
.vd-stage { position: relative; background: var(--soft); overflow: hidden; }
.vd-track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.vd-track::-webkit-scrollbar { display: none; }
.vd-track:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.vd-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 3 / 2; cursor: zoom-in; background: var(--soft); overflow: hidden; }
.vd-slide img { width: 100%; height: 100%; object-fit: cover; }

/* imagens aparecem suavemente quando carregam (só com JS) */
.vd-fx img[data-fade] { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.vd-fx img[data-fade]:not(.is-loaded) { opacity: 0; }

.vd-arrow {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.vd-arrow--prev { left: 20px; transform: translateX(-6px); }
.vd-arrow--next { right: 20px; transform: translateX(6px); }
.vd-arrow:hover { background: #fff; }
.vd-stage:hover .vd-arrow, .vd-arrow:focus-visible { opacity: 1; transform: none; }
.vd-stage:hover .vd-arrow[disabled] { opacity: .3; }
.vd-arrow[disabled] { cursor: default; }
@media (hover: none) { .vd-arrow { display: none; } }

.vd-stage__meta { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; pointer-events: none; }
.vd-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(6px); }
.vd-chip--dark { background: var(--ink); color: #fff; }
.vd-count { font-variant-numeric: tabular-nums; }
.vd-count [aria-hidden] { opacity: .45; margin: 0 1px; }
.vd-expand {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(6px); transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.vd-expand:hover { background: #fff; transform: scale(1.06); }

.vd-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(5, 20, 31, .08); display: none; }
.vd-progress span { display: block; height: 100%; background: var(--ink); transition: width .35s var(--ease); }

/* Mosaico (desktop) */
.vd-mosaic { display: none; }
@media (min-width: 1024px) {
  .vd-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .vd-mosaic__tile { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); cursor: zoom-in; }
  .vd-mosaic__tile:nth-child(3n) { grid-column: span 2; aspect-ratio: 2 / 1; }
  .vd-mosaic--1 .vd-mosaic__tile, .vd-mosaic--4 .vd-mosaic__tile:last-child { grid-column: span 2; aspect-ratio: 2 / 1; }
  .vd-mosaic__tile img { width: 100%; height: 100%; object-fit: cover; }
  .vd-fx .vd-mosaic__tile img.is-loaded { transition: transform .8s var(--ease), opacity .6s var(--ease); }
  .vd-mosaic__tile:hover img { transform: scale(1.025); }
  .vd-mosaic__more {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: rgba(5, 20, 31, .5); color: #fff; transition: background-color .3s var(--ease);
  }
  .vd-mosaic__more strong { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
  .vd-mosaic__more span { font-size: 14px; font-weight: 500; }
  .vd-mosaic__tile:hover .vd-mosaic__more { background: rgba(5, 20, 31, .62); }
}

@media (max-width: 1023px) {
  .vd__gallery { margin: 0 calc(-1 * var(--gutter)); }
  .vd-progress { display: block; }
  .vd-stage__meta { left: 12px; bottom: 14px; }
  .vd-expand { right: 12px; bottom: 12px; }
}

/* ---------- Painel ---------- */
.vd-panel { padding: 8px 0 8px; }
@media (min-width: 1024px) { .vd-panel { padding: 0 0 32px; } }

.vd-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vd-brand__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink); }
.vd-brand__link img { width: 28px; height: 28px; object-fit: contain; }
.vd-brand__link .icon { color: var(--muted); transition: transform .25s var(--ease), color .2s var(--ease); }
.vd-brand__link:hover .icon { transform: translateX(3px); color: var(--ink); }
.vd-brand__link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.vd-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-right: -12px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.vd-share:hover { color: var(--ink); background: var(--soft); }

.vd-panel__tag { margin-bottom: 12px; }
.vd-title { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.vd-version { margin-top: 10px; font-size: 17px; color: var(--ink-2); line-height: 1.4; }

.vd-stats { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 2px 12px 2px 0; min-width: 0; }
.vd-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.vd-stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 1.75vw, 26px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-stats dd small { margin-left: 3px; font-size: .55em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.vd-stats dt { font-size: 12px; color: var(--muted); }
.vd-subline { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

.vd-price { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.vd-price__value { font-family: var(--font-display); font-size: clamp(32px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.vd-price__value--ask { font-weight: 500; }
.vd-price__note { margin-top: 8px; font-size: 13px; color: var(--muted); }

.vd-reserved { margin-top: 16px; padding: 14px 16px; background: var(--soft); font-size: 14px; color: var(--ink-2); }

.vd-actions { margin-top: 22px; display: grid; gap: 10px; }
.vd-actions .btn-lg { padding: 0 20px; }
.vd-cta { position: relative; }
.vd-cta .icon { position: absolute; right: 22px; opacity: 0; transform: translateX(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.vd-cta:hover .icon, .vd-cta:focus-visible .icon { opacity: 1; transform: none; }
.vd-actions__row { display: grid; grid-template-columns: 1fr 1fr; }
.vd-quick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.vd-quick + .vd-quick { border-left: 1px solid var(--line); }
.vd-quick:hover { color: var(--ink); background: var(--soft); }

.vd-services { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.vd-services li { border-bottom: 1px solid var(--line); }
.vd-service { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 4px; text-align: left; transition: background-color .2s var(--ease); }
.vd-service > .icon:first-child { width: 22px; height: 22px; stroke-width: 1.4; color: var(--ink-2); }
.vd-service--warranty > .icon:first-child { color: var(--brand); }
.vd-service span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vd-service strong { font-size: 14px; font-weight: 600; }
.vd-service small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.vd-service__go { color: var(--muted); transition: transform .25s var(--ease), color .2s var(--ease); }
.vd-service:hover { background: var(--soft); }
.vd-service:hover .vd-service__go { transform: translateX(3px); color: var(--ink); }

/* ---------- Conteúdo ---------- */
.vd__content { padding-bottom: clamp(48px, 7vw, 96px); }
.vd-toc {
  position: sticky; top: var(--nav-h); z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin-top: clamp(32px, 4vw, 56px); background: #fff; border-bottom: 1px solid var(--line);
}
.vd-toc::-webkit-scrollbar { display: none; }
.vd-toc a { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); }
.vd-toc a:first-child { padding-left: 0; }
.vd-toc a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.vd-toc a:first-child::after { left: 0; }
.vd-toc a:hover, .vd-toc a.is-active { color: var(--ink); }
.vd-toc a.is-active::after { transform: none; }
@media (max-width: 1023px) { .vd-toc { margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); } }

.vd-sec { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--nav-h) + 48px); }
.vd-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.vd-sec__title { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; margin-bottom: 24px; }
.vd-sec__count { font-size: 13px; color: var(--muted); }

/* Características agrupadas */
.vd-specs { display: grid; grid-template-columns: 1fr; gap: 32px 56px; }
@media (min-width: 640px) { .vd-specs { grid-template-columns: 1fr 1fr; } }
.vd-specs__group h3 { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.vd-specs__group dl { margin: 0; }
.vd-specs__group dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vd-specs__group dt { color: var(--ink-2); flex: none; }
.vd-specs__group dd { margin: 0; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Equipamento */
.vd-extras__groups { display: grid; grid-template-columns: 1fr; gap: 32px 56px; }
@media (min-width: 640px) { .vd-extras__groups { grid-template-columns: 1fr 1fr; } }
.vd-extras__group h3 { display: flex; justify-content: space-between; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.vd-extras__group h3 span { letter-spacing: 0; font-weight: 500; }
.vd-extras ul { list-style: none; margin: 0; padding: 0; }
.vd-extras li { position: relative; padding: 9px 0 9px 18px; font-size: 14px; color: var(--ink); line-height: 1.45; break-inside: avoid; }
.vd-extras li::before { content: ''; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--ink); }
.vd-extras__group li { border-bottom: 1px solid var(--line); }
.vd-extras__flat { columns: 1; column-gap: 48px; border-top: 1px solid var(--ink); padding-top: 6px !important; }
@media (min-width: 560px) { .vd-extras__flat { columns: 2; } }
@media (min-width: 1280px) { .vd-extras__flat { columns: 3; } }
.vd-extras.is-collapsed .is-extra { display: none; }

.vd-more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.vd-more-btn:hover { text-decoration-thickness: 2px; }
.vd-more-btn .icon { transition: transform .3s var(--ease); }
.vd-more-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Descrição */
.vd-desc { max-width: 66ch; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.vd-desc p + p { margin-top: 1em; }
.vd-desc__lead { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.vd-desc.is-collapsed { max-height: 21em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* História do modelo */
.vd-story { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px); background: var(--soft); }
.vd-story__eyebrow { color: var(--brand); }
.vd-story__title { margin-top: 14px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; max-width: 26ch; }
.vd-story__summary { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.vd-story__facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (min-width: 640px) { .vd-story__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vd-story__facts div { padding: 14px 0; border-top: 1px solid var(--line-2); }
.vd-story__facts dt { font-size: 12px; color: var(--muted); }
.vd-story__facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.vd-story__cta { margin-top: 24px; min-height: 44px; }

/* ---------- Vantagens ---------- */
.vd-perks-sec { padding: clamp(56px, 8vw, 104px) 0; background: var(--soft); }
.vd-perks-sec__head { margin-bottom: clamp(28px, 4vw, 48px); }
.vd-perks-sec__head .eyebrow { margin-bottom: 12px; }
.vd-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-2); }
.vd-perks li { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.vd-perks .icon { width: 28px; height: 28px; stroke-width: 1.3; }
.vd-perks h3 { margin-top: 16px; font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.vd-perks p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.vd-perks button.link { font-size: 14px; font-weight: 500; color: var(--ink); }
@media (min-width: 640px) { .vd-perks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1024px) {
  .vd-perks { grid-template-columns: repeat(3, 1fr); column-gap: 0; }
  .vd-perks li { padding: 32px 32px 32px 0; }
  .vd-perks li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line-2); }
}

/* ---------- Barra fixa mobile ---------- */
@media (max-width: 1023px) {
  .vd-sticky { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; transition: transform .35s var(--ease); }
  .vd-sticky.is-hidden { transform: translateY(110%); }
  .vd-sticky .btn { min-height: 48px; padding: 0 18px; }
  .vd-sticky__info { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .vd-sticky__info strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vd-sticky__info span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .vd-sticky__call { width: 48px; padding: 0 !important; }
  .vd-sticky__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .vd-sticky__info { display: none; } .vd-sticky { grid-template-columns: auto 1fr; } }

/* ---------- Lightbox ---------- */
.vd-lb {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0b0f13; color: #fff; overflow: hidden;
}
.vd-lb[open] { display: flex; flex-direction: column; }
.vd-lb::backdrop { background: #0b0f13; }
.vd-lb__bar {
  flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 64px; padding: 0 8px 0 var(--gutter);
}
.vd-lb__title { font-size: 14px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-lb__count { font-size: 14px; font-variant-numeric: tabular-nums; }
.vd-lb__close { justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; }
.vd-lb__close:hover { background: rgba(255, 255, 255, .1); }
.vd-lb__track {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior: contain;
}
.vd-lb__track::-webkit-scrollbar { display: none; }
.vd-lb__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 0 24px; }
.vd-lb__slide img { max-width: 100%; max-height: calc(100dvh - 64px - 24px); width: auto; height: auto; object-fit: contain; }
.vd-lb__track:focus { outline: none; }
@media (min-width: 1024px) { .vd-lb__slide { padding: 0 96px 48px; } .vd-lb__slide img { max-height: calc(100dvh - 64px - 48px); } }
.vd-lb__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .08); transition: background-color .2s var(--ease);
}
.vd-lb__arrow:hover { background: rgba(255, 255, 255, .18); }
.vd-lb__arrow--prev { left: 20px; }
.vd-lb__arrow--next { right: 20px; }
.vd-lb__arrow[disabled] { opacity: .25; pointer-events: none; }
@media (hover: none), (max-width: 640px) { .vd-lb__arrow { display: none; } }
.vd-lb :focus-visible { outline-color: #fff; }

/* ---------- Pedido de contacto (modal / bottom sheet) ---------- */
.vd-sheet {
  padding: 0; border: 0; color: var(--ink); background: #fff;
  width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  overflow: hidden;
}
.vd-sheet[open] { display: flex; animation: vd-pop .3s var(--ease); }
.vd-sheet::backdrop { background: rgba(5, 20, 31, .45); backdrop-filter: blur(4px); }
.vd-sheet__inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.vd-sheet__head {
  position: relative; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--line);
}
.vd-sheet__head img { width: 72px; height: 48px; object-fit: cover; background: var(--soft); flex: none; }
.vd-sheet__car { flex: 1; min-width: 0; }
.vd-sheet__title { font-size: 19px; letter-spacing: -0.015em; }
.vd-sheet__car p { margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sheet__close { width: 44px; height: 44px; display: grid; place-items: center; flex: none; align-self: flex-start; }
.vd-sheet__close:hover { background: var(--soft); }
.vd-sheet__grab { display: none; }

.vd-form { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.vd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); margin-bottom: 20px; }
.vd-tab { position: relative; cursor: pointer; }
.vd-tab + .vd-tab { border-left: 1px solid var(--line-2); }
.vd-tab input { position: absolute; opacity: 0; pointer-events: none; }
.vd-tab span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; padding: 8px 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.vd-tab:hover span { background: var(--soft); color: var(--ink); }
.vd-tab input:checked + span { background: var(--ink); color: #fff; }
.vd-tab input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -4px; }

.vd-extra { border: 0; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.vd-extra[hidden] { display: none; }
.vd-extra__legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.vd-extra .form-note { margin-top: 10px; }
.vd-form .form-msg { margin-top: 16px; }
.vd-form [data-submit] { margin-top: 18px; }
.vd-form__alt { margin-top: 12px; text-align: center; }
.vd-form.is-sent .vd-form__body, .vd-form.is-sent .vd-tabs { display: none; }

.vd-done { padding: 20px 0 4px; text-align: center; }
.vd-done:focus { outline: none; }
.vd-done__icon { width: 48px; height: 48px; margin: 0 auto; stroke-width: 1.3; color: var(--ok); }
.vd-done__title { margin-top: 16px; font-size: 26px; letter-spacing: -0.02em; }
.vd-done p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.vd-done p.muted { font-size: 13px; color: var(--muted); }
.vd-done__actions { margin-top: 24px; display: grid; gap: 10px; }

@keyframes vd-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes vd-up { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 640px) {
  .vd-sheet {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; inset: auto 0 0 0;
  }
  .vd-sheet[open] { animation: vd-up .32s var(--ease); }
  .vd-sheet__head { padding-top: 22px; }
  .vd-sheet__grab { display: block; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; background: var(--line-2); }
  .vd-sheet__head img { width: 60px; height: 40px; }
  .vd-form { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .vd-tabs { margin-bottom: 16px; }
  .vd-tab span { min-height: 56px; font-size: 11.5px; }
}
