/* Pagetna guided setup (steps 1–5, create website) and Website settings.
   Spec: design-system/pagetna/MASTER.md §5 "Wizard". Area prefix: pg-wz-.
   Tokens only, logical properties only, every selector scoped under .pg. */

.pg .pg-wz {
  --pg-wz-bleed: var(--pg-space-4);
  --pg-wz-aside: clamp(288px, 32%, 380px);
  --pg-wz-sticky-top: calc(var(--pg-topbar) + var(--pg-space-6));
  --pg-wz-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --pg-wz-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --pg-wz-icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: var(--pg-space-5);
  min-width: 0;
}

/* ---------- Header rows ---------- */
.pg .pg-wz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pg-space-2) var(--pg-space-4); margin-block: calc(-1 * var(--pg-space-2)) calc(-1 * var(--pg-space-1)); }
.pg .pg-wz-top .pg-back { margin-inline-start: calc(-1 * var(--pg-space-1)); }
.pg .pg-wz-private { display: inline-flex; align-items: center; gap: var(--pg-space-2); min-height: 32px; padding: 0 var(--pg-space-3); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-full); background: var(--pg-surface); color: var(--pg-muted); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); line-height: 1.4; box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-private .pg-icon { color: var(--pg-success); }

.pg .pg-wz-settings-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--pg-space-4) var(--pg-space-6); margin: 0; }
.pg .pg-wz-settings-head__text { display: flex; flex-direction: column; gap: var(--pg-space-2); min-width: 0; max-width: 68ch; }
.pg .pg-wz-settings-head__title { margin: 0; font-size: clamp(var(--pg-text-3xl), 3vw, 2.5rem); font-weight: var(--pg-weight-extrabold); line-height: 1.1; letter-spacing: -.035em; }
.pg .pg-wz-settings-head__lead { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-base); }
.pg .pg-wz-settings-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-space-3); }
html[dir=rtl] .pg .pg-wz-settings-head__title { letter-spacing: 0; }
.pg .pg-wz-updates { display: flex; flex-direction: column; gap: var(--pg-space-3); }
.pg .pg-wz-updates:empty { display: none; }

/* ---------- Layout ----------
   Guided setup is a split stage: the questions on the light canvas, and the
   website taking shape on a midnight stage beside them. */
.pg .pg-wz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "steps" "intro" "preview" "main";
  gap: var(--pg-space-5);
  align-items: start;
}
.pg .pg-wz-steps { grid-area: steps; }
.pg .pg-wz-intro { grid-area: intro; }
.pg .pg-wz-preview { grid-area: preview; }
.pg .pg-wz-main { grid-area: main; min-width: 0; }
.pg .pg-wz-stack { display: flex; flex-direction: column; gap: var(--pg-space-5); min-width: 0; }

@media (min-width: 1024px) {
  .pg .pg-wz-layout {
    grid-template-columns: minmax(0, 1fr) var(--pg-wz-aside);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "steps steps" "intro preview" "main preview";
    gap: var(--pg-space-6) var(--pg-space-8);
  }
  .pg .pg-wz--guided .pg-wz-layout { row-gap: var(--pg-space-8); }
  .pg .pg-wz-preview { position: sticky; inset-block-start: var(--pg-wz-sticky-top); }
}
@media (min-width: 1280px) {
  .pg .pg-wz--guided { --pg-wz-aside: clamp(360px, 38%, 460px); }
  .pg .pg-wz--guided .pg-wz-layout { column-gap: var(--pg-space-10); }
}
@media (min-width: 1440px) {
  .pg .pg-wz--settings .pg-wz-layout {
    --pg-wz-aside: 340px;
    grid-template-columns: 216px minmax(0, 1fr) var(--pg-wz-aside);
    grid-template-rows: auto 1fr;
    grid-template-areas: "steps intro preview" "steps main preview";
    column-gap: var(--pg-space-6);
  }
  .pg .pg-wz--settings .pg-wz-steps { position: sticky; inset-block-start: var(--pg-wz-sticky-top); }
}

/* ---------- Intro ---------- */
.pg .pg-wz-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pg-space-3); max-width: 64ch; }
.pg .pg-wz-eyebrow { display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 0 var(--pg-space-3); border: 1px solid var(--pg-primary-line); border-radius: var(--pg-radius-full); background: var(--pg-primary-soft); color: var(--pg-primary-hover); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-semibold); font-variant-numeric: tabular-nums; }
.pg .pg-wz-title { margin: 0; color: var(--pg-ink); font-size: clamp(var(--pg-text-3xl), 3.4vw, 2.75rem); font-weight: var(--pg-weight-extrabold); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.pg .pg-wz--settings .pg-wz-title { font-size: var(--pg-text-2xl); font-weight: var(--pg-weight-bold); line-height: var(--pg-leading-tight); letter-spacing: var(--pg-tracking-tight); }
html[dir=rtl] .pg .pg-wz-title { letter-spacing: 0; line-height: 1.4; }
.pg .pg-wz-lead { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-lg); line-height: var(--pg-leading); }
.pg .pg-wz--settings .pg-wz-lead { font-size: var(--pg-text-md); }
/* Each step arrives: heading first, then the questions. */
.pg .pg-wz--guided .pg-wz-intro > *, .pg .pg-wz--guided .pg-wz-main .pg-wz-card { animation: pg-rise 700ms var(--pg-ease-out) both; }
.pg .pg-wz--guided .pg-wz-intro > :nth-child(2) { animation-delay: 60ms; }
.pg .pg-wz--guided .pg-wz-intro > :nth-child(3) { animation-delay: 120ms; }
.pg .pg-wz--guided .pg-wz-main .pg-wz-card { animation-delay: 180ms; }

/* ---------- Stepper ----------
   Guided: a rail of markers. Done steps are midnight, the current one carries
   the brand gradient, and the line between them fills as the owner advances. */
.pg .pg-wz-steps { min-width: 0; padding: var(--pg-space-3); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: var(--pg-surface); box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-steps--guided { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.pg .pg-wz-steps__meta { display: flex; flex-direction: column; gap: var(--pg-space-2); padding: var(--pg-space-1) 0 var(--pg-space-3); }
.pg .pg-wz-steps__count { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); }
.pg .pg-wz-steps__count strong { color: var(--pg-ink); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-steps__bar { height: 6px; }
.pg .pg-wz-steps__list { display: flex; align-items: center; gap: var(--pg-space-1); margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pg-space-2); scrollbar-width: none; }
.pg .pg-wz-steps--guided .pg-wz-steps__list { gap: 0; margin: calc(-1 * var(--pg-space-2)); padding: var(--pg-space-2); }
.pg .pg-wz-steps__list::-webkit-scrollbar { display: none; }
.pg .pg-wz-steps__item { display: flex; flex: none; align-items: center; gap: var(--pg-space-1); scroll-snap-align: start; }
.pg .pg-wz-steps--guided .pg-wz-steps__item { gap: 0; }
.pg .pg-wz-steps--guided .pg-wz-steps__item:not(:last-child)::after { content: ""; flex: none; inline-size: var(--pg-space-5); block-size: 2px; margin-inline: var(--pg-space-1); border-radius: 2px; background: var(--pg-line-strong); }
.pg .pg-wz-steps--guided .pg-wz-steps__item:has(.is-done):not(:last-child)::after { background: var(--pg-gradient-start); }
.pg .pg-wz-step { position: relative; display: flex; align-items: center; gap: var(--pg-space-2); min-height: var(--pg-control); padding: var(--pg-space-1) var(--pg-space-3) var(--pg-space-1) var(--pg-space-2); border-radius: var(--pg-radius-md); color: var(--pg-muted); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); line-height: 1.3; white-space: nowrap; text-decoration: none; transition: background-color var(--pg-dur) var(--pg-ease), color var(--pg-dur) var(--pg-ease), box-shadow var(--pg-dur) var(--pg-ease); }
html[dir=rtl] .pg .pg-wz-step { padding: var(--pg-space-1) var(--pg-space-2) var(--pg-space-1) var(--pg-space-3); }
.pg .pg-wz-steps--guided .pg-wz-step { padding: var(--pg-space-1) var(--pg-space-4) var(--pg-space-1) var(--pg-space-1); border-radius: var(--pg-radius-full); }
html[dir=rtl] .pg .pg-wz-steps--guided .pg-wz-step { padding: var(--pg-space-1) var(--pg-space-1) var(--pg-space-1) var(--pg-space-4); }
.pg a.pg-wz-step:hover { background: var(--pg-surface-2); color: var(--pg-ink); }
.pg .pg-wz-steps--guided a.pg-wz-step:hover { background: var(--pg-surface); box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-step__marker { display: grid; flex: none; place-items: center; inline-size: 28px; block-size: 28px; border: 1.5px solid var(--pg-line-strong); border-radius: 50%; background: var(--pg-surface); color: var(--pg-muted); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-bold); font-variant-numeric: tabular-nums; transition: background-color var(--pg-dur) var(--pg-ease), border-color var(--pg-dur) var(--pg-ease), transform var(--pg-dur) var(--pg-ease-spring); }
.pg .pg-wz-steps--guided .pg-wz-step__marker { inline-size: 36px; block-size: 36px; font-size: var(--pg-text-sm); }
.pg a.pg-wz-step:hover .pg-wz-step__marker { transform: scale(1.06); }
.pg .pg-wz-step.is-done { color: var(--pg-text); }
.pg .pg-wz-step.is-done .pg-wz-step__marker { border-color: var(--pg-night-3); background: var(--pg-night-3); color: var(--pg-halo); }
.pg .pg-wz-step.is-attention { color: var(--pg-warning); }
.pg .pg-wz-step.is-attention .pg-wz-step__marker { border-color: var(--pg-warning-line); background: var(--pg-warning-soft); color: var(--pg-warning); }
.pg .pg-wz-step.is-current { background: var(--pg-primary-soft); color: var(--pg-primary-hover); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-step.is-current .pg-wz-step__marker { border-color: var(--pg-primary); background: var(--pg-primary); color: var(--pg-on-primary); box-shadow: 0 0 0 4px var(--pg-primary-soft-2); }
.pg .pg-wz-steps--guided .pg-wz-step.is-current { background: var(--pg-surface); color: var(--pg-ink); box-shadow: var(--pg-shadow-glow); }
.pg .pg-wz-steps--guided .pg-wz-step.is-current .pg-wz-step__marker { border-color: transparent; background: var(--pg-gradient); box-shadow: 0 6px 16px -4px var(--pg-glow); }
.pg .pg-wz-step.is-upcoming { color: var(--pg-subtle); }
.pg .pg-wz-step__go { margin-inline-start: auto; color: var(--pg-subtle); }

@media (min-width: 768px) {
  .pg .pg-wz-steps--guided .pg-wz-steps__meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .pg .pg-wz-steps--guided .pg-wz-steps__bar { inline-size: 160px; }
}
@media (min-width: 1280px) {
  .pg .pg-wz-steps--guided .pg-wz-steps__meta { display: none; }
  .pg .pg-wz-steps--guided .pg-wz-steps__list { overflow: visible; }
  /* Labels may wrap onto two lines: six one-line steps need more room than a 1280px laptop leaves beside the sidebar. */
  .pg .pg-wz-steps--guided .pg-wz-steps__item { flex: 1 1 auto; min-width: 0; }
  .pg .pg-wz-steps--guided .pg-wz-step { white-space: normal; }
  .pg .pg-wz-steps--guided .pg-wz-steps__item:last-child { flex-grow: 0; }
  .pg .pg-wz-steps--guided .pg-wz-steps__item:not(:last-child)::after { flex: 1 1 auto; min-inline-size: var(--pg-space-3); }
}

/* Settings: the same steps become section navigation */
.pg .pg-wz-steps--settings { padding: var(--pg-space-1); border-radius: var(--pg-radius-lg); }
.pg .pg-wz-steps--settings .pg-wz-step__marker { inline-size: 32px; block-size: 32px; border: 0; border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); color: var(--pg-subtle); }
.pg .pg-wz-steps--settings .pg-wz-step.is-current .pg-wz-step__marker { background: var(--pg-gradient); color: var(--pg-on-primary); box-shadow: 0 6px 14px -6px var(--pg-glow); }
@media (min-width: 1440px) {
  .pg .pg-wz-steps--settings { padding: var(--pg-space-2); }
  .pg .pg-wz-steps--settings .pg-wz-steps__list { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
  .pg .pg-wz-steps--settings .pg-wz-step { white-space: normal; }
  .pg .pg-wz-steps--settings .pg-wz-steps__item:last-child { margin-block-start: var(--pg-space-2); padding-block-start: var(--pg-space-2); border-block-start: 1px solid var(--pg-line); }
  .pg .pg-wz-steps--settings .pg-wz-steps__item > .pg-wz-step { flex: 1; }
}

/* ---------- Live preview: a midnight stage (pg-band pg-night) ----------
   Beside the form on desktop, a disclosure above it on smaller screens. */
.pg .pg-wz-preview { min-width: 0; }
.pg .pg-wz-preview__toggle { display: flex; align-items: center; gap: var(--pg-space-3); min-height: 56px; font-size: var(--pg-text-base); padding: 0 var(--pg-space-4); border-radius: inherit; color: var(--pg-ink); font-weight: var(--pg-weight-semibold); cursor: pointer; list-style: none; }
.pg .pg-wz-preview__toggle::-webkit-details-marker { display: none; }
.pg .pg-wz-preview__toggle:hover { background: var(--pg-surface-2); }
.pg .pg-wz-preview__toggle-icon { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: var(--pg-radius-sm); background: var(--pg-primary-soft); color: var(--pg-primary); }
.pg .pg-wz-preview__toggle-text { flex: 1; min-width: 0; }
.pg .pg-wz-preview__chevron { color: var(--pg-subtle); transition: transform var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-preview[open] > .pg-wz-preview__toggle .pg-wz-preview__chevron { transform: rotate(180deg); }
.pg .pg-wz-preview[open] > .pg-wz-preview__toggle { border-end-start-radius: 0; border-end-end-radius: 0; }
.pg .pg-wz-preview__body { display: flex; flex-direction: column; gap: var(--pg-space-3); padding: 0 var(--pg-space-4) var(--pg-space-4); }
.pg .pg-wz-preview__head { display: none; }
.pg .pg-wz-preview__title { display: flex; align-items: center; gap: var(--pg-space-2); margin: 0; color: var(--pg-ink); font-family: var(--pg-font-display); font-size: var(--pg-text-base); font-weight: var(--pg-weight-bold); }
.pg .pg-wz-preview__title .pg-dot { color: var(--pg-success-line); }
.pg .pg-wz-preview__note { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); line-height: 1.5; }
@media (min-width: 1024px) {
  .pg .pg-wz-preview { padding: var(--pg-space-5); }
  .pg .pg-wz--guided .pg-wz-preview { padding: var(--pg-space-6); }
  .pg .pg-wz-preview__toggle { display: none; }
  .pg .pg-wz-preview__body { gap: var(--pg-space-5); padding: 0; }
  .pg .pg-wz-preview__head { display: flex; flex-direction: column; gap: var(--pg-space-1); }
  .pg .pg-wz-preview .pg-wz-site { max-block-size: calc(100dvh - var(--pg-wz-sticky-top) - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .pg .pg-wz--guided .pg-wz-preview .pg-wz-site { animation: pg-rise 900ms 200ms var(--pg-ease-out) both; }
}

/* The mini website */
.pg .pg-wz-site { --pg-wz-brand: var(--outline-color, var(--pg-primary)); --pg-wz-accent: var(--outline-accent, var(--pg-violet)); --pg-wz-brand-ink: color-mix(in srgb, var(--pg-wz-brand) 72%, var(--pg-ink)); overflow: hidden; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: var(--pg-surface); box-shadow: 0 28px 60px -24px color-mix(in srgb, var(--pg-night) 80%, transparent); }
.pg .pg-wz-site:focus-visible { outline: 2px solid var(--pg-primary); outline-offset: 2px; }
.pg .pg-wz-site__chrome { position: sticky; z-index: 1; inset-block-start: 0; display: flex; align-items: center; gap: var(--pg-space-3); min-height: 36px; padding: 0 var(--pg-space-3); border-block-end: 1px solid var(--pg-line); background: var(--pg-surface-2); }
.pg .pg-wz-site__dots { display: flex; gap: 5px; }
.pg .pg-wz-site__dots i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--pg-line-strong); }
.pg .pg-wz-site__url { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: var(--pg-space-1); min-width: 0; min-height: 22px; padding: 0 var(--pg-space-3); border-radius: var(--pg-radius-full); background: var(--pg-surface); color: var(--pg-muted); font-size: var(--pg-text-xs); }
.pg .pg-wz-site__url > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg .pg-wz-site__url .pg-icon { inline-size: 12px; block-size: 12px; color: var(--pg-success); }
.pg .pg-wz-site__hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pg-space-2); padding: var(--pg-space-4) var(--pg-space-5) var(--pg-space-6); border-block-end: 3px solid var(--pg-wz-brand); background: linear-gradient(180deg, color-mix(in srgb, var(--pg-wz-brand) 12%, var(--pg-surface)), color-mix(in srgb, var(--pg-wz-accent) 10%, var(--pg-surface))); transition: background-color var(--pg-dur-slow) var(--pg-ease); }
.pg .pg-wz-site__bar { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: var(--pg-space-3); margin-block-end: var(--pg-space-3); }
.pg .pg-wz-site__mark { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: var(--pg-radius-sm); background: var(--pg-wz-brand); color: var(--pg-on-primary); font-size: var(--pg-text-md); font-weight: var(--pg-weight-bold); text-transform: uppercase; }
.pg .pg-wz-site__logo { max-inline-size: 112px; max-block-size: 36px; object-fit: contain; }
.pg .pg-wz-site__nav { display: flex; gap: 6px; }
.pg .pg-wz-site__nav i { inline-size: 22px; block-size: 6px; border-radius: var(--pg-radius-full); background: color-mix(in srgb, var(--pg-wz-brand-ink) 28%, transparent); }
.pg .pg-wz-site__industry { margin: 0; color: var(--pg-wz-brand-ink); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-bold); letter-spacing: .02em; }
.pg .pg-wz-site__industry:empty { display: none; }
html[dir=rtl] .pg .pg-wz-site__industry { letter-spacing: 0; font-size: var(--pg-text-sm); }
.pg .pg-wz-site__name { margin: 0; color: var(--pg-ink); font-size: var(--pg-text-2xl); font-weight: var(--pg-weight-bold); line-height: 1.2; letter-spacing: var(--pg-tracking-tight); overflow-wrap: anywhere; }
html[dir=rtl] .pg .pg-wz-site__name { letter-spacing: 0; line-height: 1.4; }
.pg .pg-wz-site__cta { display: inline-flex; align-items: center; min-height: 30px; margin-block-start: var(--pg-space-2); padding: 0 var(--pg-space-4); border-radius: var(--pg-radius-full); background: var(--pg-wz-brand); color: var(--pg-on-primary); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-site__section { display: flex; flex-direction: column; gap: var(--pg-space-2); padding: var(--pg-space-4) var(--pg-space-5); }
.pg .pg-wz-site__section + .pg-wz-site__section { border-block-start: 1px solid var(--pg-line); }
.pg .pg-wz-site__label { margin: 0; color: var(--pg-subtle); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-semibold); letter-spacing: .02em; }
html[dir=rtl] .pg .pg-wz-site__label { letter-spacing: 0; font-size: var(--pg-text-sm); }
.pg .pg-wz-site__story { margin: 0; color: var(--pg-text); font-size: var(--pg-text-md); line-height: 1.6; overflow-wrap: anywhere; }
.pg .pg-wz-site__services { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg .pg-wz-site__services:empty { display: none; }
.pg .pg-wz-site__services li { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--pg-wz-accent) 45%, var(--pg-surface)); border-radius: var(--pg-radius-full); background: color-mix(in srgb, var(--pg-wz-accent) 14%, var(--pg-surface)); color: var(--pg-ink); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); overflow-wrap: anywhere; }
.pg .pg-wz-site__empty { margin: 0; padding: var(--pg-space-2) var(--pg-space-3); border: 1px dashed var(--pg-line-strong); border-radius: var(--pg-radius-sm); color: var(--pg-subtle); font-size: var(--pg-text-sm); }
.pg .pg-wz-site__contact { display: flex; flex-direction: column; gap: var(--pg-space-2); margin: 0; }
.pg .pg-wz-site__contact:not(:has(.pg-wz-site__contact-row:not([hidden]))) { display: none; }
.pg .pg-wz-site__contact-row { display: flex; align-items: flex-start; gap: var(--pg-space-2); }
.pg .pg-wz-site__contact-row dt { display: grid; flex: none; place-items: center; inline-size: 24px; block-size: 24px; border-radius: var(--pg-radius-xs); background: color-mix(in srgb, var(--pg-wz-brand) 12%, var(--pg-surface)); color: var(--pg-wz-brand-ink); }
.pg .pg-wz-site__contact-row dt .pg-icon { inline-size: 14px; block-size: 14px; }
.pg .pg-wz-site__contact-row dd { min-width: 0; margin: 0; color: var(--pg-text); font-size: var(--pg-text-sm); line-height: 24px; overflow-wrap: anywhere; white-space: pre-line; }
.pg .pg-wz-site__hours { display: grid; gap: 2px; margin: 0; font-size: var(--pg-text-sm); }
.pg .pg-wz-site__hours > div { display: flex; justify-content: space-between; gap: var(--pg-space-3); padding-block: 2px; }
.pg .pg-wz-site__hours dt { color: var(--pg-muted); }
.pg .pg-wz-site__hours dd { margin: 0; color: var(--pg-ink); font-weight: var(--pg-weight-medium); font-variant-numeric: tabular-nums; }
.pg .pg-wz-site__hours-note { margin: 0; color: var(--pg-text); font-size: var(--pg-text-sm); white-space: pre-line; }

/* "What happens next" (create website) */
.pg .pg-wz-next { display: flex; flex-direction: column; gap: var(--pg-space-3); margin: 0 var(--pg-space-4) var(--pg-space-4); padding: var(--pg-space-4); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-md); background: var(--pg-surface); }
.pg .pg-wz-next__title { margin: 0; font-size: var(--pg-text-md); }
.pg .pg-wz-next__list { display: flex; flex-direction: column; gap: var(--pg-space-2); margin: 0; padding: 0; list-style: none; }
.pg .pg-wz-next__list li { display: flex; align-items: flex-start; gap: var(--pg-space-3); color: var(--pg-text); font-size: var(--pg-text-md); }
.pg .pg-wz-next__num { display: grid; flex: none; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--pg-primary-soft-2); color: var(--pg-primary); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-bold); }
.pg .pg-wz-next__note { display: flex; gap: var(--pg-space-2); margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); }
.pg .pg-wz-next__note .pg-icon { margin-block-start: 3px; color: var(--pg-primary); }
@media (min-width: 1024px) { .pg .pg-wz-next { margin: var(--pg-space-4) 0 0; } }

/* ---------- Cards & sections ---------- */
.pg .pg-wz-form { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.pg .pg-wz-card { min-width: 0; border-radius: var(--pg-radius-xl); box-shadow: var(--pg-shadow-sm); }
.pg .pg-wz-section { display: flex; flex-direction: column; gap: var(--pg-space-4); min-width: 0; padding: var(--pg-space-5); }
.pg .pg-wz-sections { display: flex; flex-direction: column; min-width: 0; }
.pg .pg-wz-card :is(.pg-wz-section, .pg-wz-sections) + :is(.pg-wz-section, .pg-wz-sections),
.pg .pg-wz-sections > .pg-wz-section + .pg-wz-section { border-block-start: 1px solid var(--pg-line); }
.pg .pg-wz--guided .pg-wz-card .pg-wz-question { border-block-start: 0; }
.pg .pg-wz-section__head { display: flex; flex-direction: column; gap: var(--pg-space-1); min-width: 0; }
.pg .pg-wz-section__head--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pg-space-2) var(--pg-space-3); }
.pg .pg-wz-section__title { margin: 0; color: var(--pg-ink); font-family: var(--pg-font-display); font-size: var(--pg-text-xl); font-weight: var(--pg-weight-bold); line-height: 1.3; letter-spacing: -.02em; }
.pg .pg-wz-section__title label { cursor: pointer; }
html[dir=rtl] .pg .pg-wz-section__title { letter-spacing: 0; }
.pg .pg-wz-section__desc { display: block; margin: 0; color: var(--pg-muted); font-size: var(--pg-text-md); font-weight: var(--pg-weight-regular); line-height: 1.55; }
.pg .pg-wz-fieldset { display: flex; flex-direction: column; gap: var(--pg-space-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.pg .pg-wz-fieldset > legend, .pg .pg-wz-bulk > legend, .pg .pg-wz-day > legend { float: inline-start; inline-size: 100%; margin: 0; padding: 0; font-weight: inherit; }
.pg .pg-wz-fieldset > legend + *, .pg .pg-wz-bulk > legend + * { clear: both; }
.pg .pg-wz-subtle { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); }
.pg .pg-wz-help-row { display: flex; align-items: flex-start; gap: var(--pg-space-2); margin: 0; }
.pg .pg-wz-help-icon { flex: none; margin-block-start: 2px; color: var(--pg-subtle); }
.pg .pg-wz-inline-note { display: flex; align-items: flex-start; gap: var(--pg-space-2); margin: 0; padding: var(--pg-space-3); border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); color: var(--pg-muted); font-size: var(--pg-text-sm); }
.pg .pg-wz-inline-note .pg-icon { flex: none; margin-block-start: 2px; color: var(--pg-primary); }
.pg .pg-wz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pg-space-4); }
.pg .pg-wz-card .pg-help, .pg .pg-wz-card .pg-error { margin: 0; }
.pg .pg-wz-card .pg-error:empty { display: none; }
.pg .pg-wz-card .pg-label { margin: 0; }
@media (min-width: 640px) {
  .pg .pg-wz-section { padding: var(--pg-space-6); }
  .pg .pg-wz-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--pg-space-5); }
  .pg .pg-wz-grid__full { grid-column: 1 / -1; }
}

/* Inputs: restate pg-input inside the wizard; a legacy global input rule
   (application.css) is more specific than the component layer. */
.pg .pg-wz .pg-wz-card input.pg-input {
  inline-size: 100%;
  min-height: var(--pg-control);
  padding: 10px 14px;
  border: 1px solid var(--pg-line-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface);
  color: var(--pg-ink);
  font-size: var(--pg-text-base);
}
.pg .pg-wz .pg-wz-card input.pg-input:hover { border-color: var(--pg-subtle); }
.pg .pg-wz .pg-wz-card input.pg-input:focus { border-color: var(--pg-primary); }
.pg .pg-wz .pg-wz-card input.pg-input[aria-invalid=true] { border-color: var(--pg-danger); }
.pg .pg-wz .pg-wz-card .pg-input-group input.pg-input, .pg .pg-wz .pg-wz-card .pg-input-group .pg-input { border: 0; background: transparent; box-shadow: none; }
.pg .pg-wz .pg-wz-card .pg-input-group:has([aria-invalid=true]) { border-color: var(--pg-danger); }
.pg .pg-wz .pg-wz-card .pg-input-group:has([aria-invalid=true]):focus-within { box-shadow: var(--pg-ring-danger); }
.pg .pg-wz .pg-wz-card .pg-input-group:has([readonly]) { background: var(--pg-surface-2); }
.pg .pg-wz .pg-wz-card .pg-input-group__icon { padding-inline-end: 0; }
.pg .pg-wz .pg-wz-card .pg-wz-input-lg { min-height: 52px; font-size: var(--pg-text-lg); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-input-group--top { align-items: flex-start; }
.pg .pg-wz-input-group--top .pg-input-group__icon { padding-block-start: 13px; }
.pg .pg-wz .pg-wz-card .pg-wz-textarea { min-height: 72px; resize: vertical; line-height: 1.5; }

/* ---------- Step 1: languages, names, address ---------- */
.pg .pg-wz-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr)); gap: var(--pg-space-3); }
.pg .pg-wz-lang { align-items: center; min-height: 72px; }
.pg .pg-wz-lang__mark { display: grid; flex: none; place-items: center; inline-size: 44px; block-size: 44px; border-radius: var(--pg-radius-md); background: var(--pg-surface-2); color: var(--pg-ink); font-family: var(--pg-font); font-size: var(--pg-text-lg); font-weight: var(--pg-weight-bold); transition: background-color var(--pg-dur) var(--pg-ease), color var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-lang__mark[lang=ar] { font-family: var(--pg-font-ar); }
.pg .pg-wz-lang:has(input:checked) .pg-wz-lang__mark { background: var(--pg-surface); color: var(--pg-primary); box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-lang__text { min-width: 0; }
.pg .pg-wz-primary-lang { max-inline-size: 360px; }
.pg .pg-wz-names { display: flex; flex-direction: column; gap: var(--pg-space-4); }
.pg .pg-wz-names__option { padding: var(--pg-space-1) var(--pg-space-3); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-md); background: var(--pg-bg); }
.pg .pg-wz-names__option .pg-switch { inline-size: 100%; }
.pg .pg-wz-switch__text { color: var(--pg-text); font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); line-height: 1.4; }
.pg .pg-wz-address { gap: var(--pg-space-3); }
.pg .pg-wz-address__group .pg-input-group__addon { font-weight: var(--pg-weight-medium); }

/* Status line with an icon per state (address availability) */
.pg .pg-wz-status { display: flex; align-items: flex-start; gap: var(--pg-space-2); margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); line-height: 1.5; }
.pg .pg-wz-status:empty, .pg .pg-wz-status[data-state=hint] { display: none; }
.pg .pg-wz-status::before { content: ""; flex: none; inline-size: 16px; block-size: 16px; margin-block-start: 2px; background: currentColor; -webkit-mask: var(--pg-wz-icon-alert) center / contain no-repeat; mask: var(--pg-wz-icon-alert) center / contain no-repeat; }
.pg .pg-wz-status[data-state=available] { color: var(--pg-success); }
.pg .pg-wz-status[data-state=available]::before { -webkit-mask-image: var(--pg-wz-icon-check); mask-image: var(--pg-wz-icon-check); }
.pg .pg-wz-status:is([data-state=invalid], [data-state=taken], [data-state=reserved]) { color: var(--pg-danger); }
.pg .pg-wz-status[data-state=offline] { color: var(--pg-warning); }
.pg .pg-wz-status:is([data-state=locked], [data-state=checking]) { color: var(--pg-muted); }
.pg .pg-wz-status[data-state=checking]::before { border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; background: none; -webkit-mask: none; mask: none; animation: pg-spin .7s linear 2000; }
.pg .pg-wz-status[data-state=locked]::before { display: none; }

/* ---------- Step 2: one step, three questions ---------- */
.pg .pg-wz-parts { padding: var(--pg-space-3) var(--pg-space-3) 0; }
.pg .pg-wz-parts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pg-space-1); margin: 0; padding: var(--pg-space-1); border-radius: var(--pg-radius-md); background: var(--pg-surface-2); list-style: none; }
.pg .pg-wz-part { display: flex; align-items: center; justify-content: center; gap: var(--pg-space-2); inline-size: 100%; min-height: var(--pg-control); padding: var(--pg-space-1) var(--pg-space-2); border: 0; border-radius: var(--pg-radius-sm); background: transparent; color: var(--pg-muted); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-semibold); line-height: 1.25; text-align: center; cursor: pointer; transition: background-color var(--pg-dur) var(--pg-ease), color var(--pg-dur) var(--pg-ease), box-shadow var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-part:hover:not(:disabled) { color: var(--pg-ink); }
.pg .pg-wz-part:disabled { opacity: .5; cursor: not-allowed; }
.pg .pg-wz-part__num { position: relative; display: grid; flex: none; place-items: center; inline-size: 22px; block-size: 22px; border: 1.5px solid var(--pg-line-strong); border-radius: 50%; background: var(--pg-surface); font-size: var(--pg-text-xs); font-variant-numeric: tabular-nums; }
.pg .pg-wz-part__check { display: none; inline-size: 13px; block-size: 13px; }
.pg .pg-wz-part[aria-current=step] { background: var(--pg-surface); color: var(--pg-primary-hover); box-shadow: var(--pg-shadow-sm); }
.pg .pg-wz-part[aria-current=step] .pg-wz-part__num { border-color: var(--pg-primary); background: var(--pg-primary); color: var(--pg-on-primary); }
.pg .pg-wz-parts__list li:has(~ li .pg-wz-part[aria-current=step]) .pg-wz-part { color: var(--pg-text); }
.pg .pg-wz-parts__list li:has(~ li .pg-wz-part[aria-current=step]) .pg-wz-part__num { border-color: var(--pg-success); background: var(--pg-success); color: var(--pg-on-primary); }
.pg .pg-wz-parts__list li:has(~ li .pg-wz-part[aria-current=step]) .pg-wz-part__digit { display: none; }
.pg .pg-wz-parts__list li:has(~ li .pg-wz-part[aria-current=step]) .pg-wz-part__check { display: block; }
.pg .pg-wz-question__count { margin: 0; color: var(--pg-primary); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-question__title { margin: 0; color: var(--pg-ink); font-size: var(--pg-text-xl); font-weight: var(--pg-weight-bold); line-height: 1.3; letter-spacing: var(--pg-tracking-tight); }
.pg .pg-wz-question__title:focus { outline: none; }
.pg .pg-wz-question__title:focus-visible { outline: none; }
html[dir=rtl] .pg .pg-wz-question__title { letter-spacing: 0; line-height: 1.45; }
.pg .pg-wz-question { animation: pg-fade-up var(--pg-dur-slow) var(--pg-ease); }
@media (min-width: 640px) {
  .pg .pg-wz-parts { padding: var(--pg-space-4) var(--pg-space-6) 0; }
  .pg .pg-wz-part { font-size: var(--pg-text-md); }
  .pg .pg-wz-question__title { font-size: var(--pg-text-2xl); }
}
.pg .pg-wz-locked { margin: 0; padding: var(--pg-space-3) var(--pg-space-4); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); color: var(--pg-ink); font-weight: var(--pg-weight-semibold); }

/* Business type picker */
.pg .pg-wz-search .pg-input-group { min-height: 48px; }
.pg .pg-wz-industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(144px, 100%), 1fr)); gap: var(--pg-space-2); }
.pg .pg-wz-industries:empty { display: none; }
.pg .pg-wz-industry { position: relative; display: flex; align-items: center; min-height: 52px; padding: var(--pg-space-2) var(--pg-space-10) var(--pg-space-2) var(--pg-space-4); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-md); background: var(--pg-surface); color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); line-height: 1.35; text-align: start; cursor: pointer; transition: border-color var(--pg-dur) var(--pg-ease), background-color var(--pg-dur) var(--pg-ease), box-shadow var(--pg-dur) var(--pg-ease), transform var(--pg-dur-fast) var(--pg-ease); }
html[dir=rtl] .pg .pg-wz-industry { padding: var(--pg-space-2) var(--pg-space-4) var(--pg-space-2) var(--pg-space-10); }
.pg .pg-wz-industry::after { content: ""; position: absolute; inset-inline-end: var(--pg-space-3); inset-block-start: 50%; inline-size: 20px; block-size: 20px; margin-block-start: -10px; border: 1.5px solid var(--pg-line-strong); border-radius: 50%; background: var(--pg-surface); transition: background-color var(--pg-dur) var(--pg-ease), border-color var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-industry:hover { border-color: var(--pg-line-strong); box-shadow: var(--pg-shadow-sm); }
.pg .pg-wz-industry:active { transform: scale(.98); }
.pg .pg-wz-industry[aria-pressed=true] { border-color: var(--pg-primary); background: var(--pg-primary-soft); color: var(--pg-primary-hover); font-weight: var(--pg-weight-semibold); box-shadow: 0 0 0 1px var(--pg-primary); }
.pg .pg-wz-industry[aria-pressed=true]::after { border-color: var(--pg-primary); background: var(--pg-primary); }
.pg .pg-wz-industry[aria-pressed=true]::before { content: ""; position: absolute; z-index: 1; inset-inline-end: calc(var(--pg-space-3) + 4px); inset-block-start: 50%; inline-size: 12px; block-size: 12px; margin-block-start: -6px; background: var(--pg-on-primary); -webkit-mask: var(--pg-wz-icon-check) center / contain no-repeat; mask: var(--pg-wz-icon-check) center / contain no-repeat; }
.pg .pg-wz-hint { padding: var(--pg-space-3); border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); }

.pg .pg-wz-loading { display: flex; align-items: center; gap: var(--pg-space-3); padding: var(--pg-space-3) var(--pg-space-4); border: 1px solid var(--pg-primary-line); border-radius: var(--pg-radius-md); background: var(--pg-primary-soft); color: var(--pg-primary-hover); font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-spinner { display: inline-block; flex: none; inline-size: 18px; block-size: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: pg-spin .7s linear 2000; }
.pg .pg-wz-failure__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pg-space-1); min-width: 0; }
.pg .pg-wz-failure__body p { margin: 0; color: var(--pg-danger); font-weight: var(--pg-weight-medium); }

/* Service suggestions + tag editor */
.pg .pg-wz-chips { display: flex; flex-wrap: wrap; gap: var(--pg-space-2); }
.pg .pg-wz-chips:empty { display: none; }
.pg .pg-wz-chip { display: inline-flex; align-items: center; gap: var(--pg-space-2); min-height: 40px; padding-block: var(--pg-space-2); padding-inline: var(--pg-space-3) var(--pg-space-4); border: 1px solid var(--pg-line-strong); border-radius: 20px; background: var(--pg-surface); color: var(--pg-text); text-align: start; font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); line-height: 1.3; cursor: pointer; transition: border-color var(--pg-dur) var(--pg-ease), background-color var(--pg-dur) var(--pg-ease), color var(--pg-dur) var(--pg-ease), transform var(--pg-dur-fast) var(--pg-ease); }
.pg .pg-wz-chip::before { content: ""; flex: none; inline-size: 16px; block-size: 16px; background: currentColor; -webkit-mask: var(--pg-wz-icon-plus) center / contain no-repeat; mask: var(--pg-wz-icon-plus) center / contain no-repeat; opacity: .7; }
.pg .pg-wz-chip:hover { border-color: var(--pg-primary); color: var(--pg-primary-hover); }
.pg .pg-wz-chip:active { transform: scale(.97); }
.pg .pg-wz-chip[aria-pressed=true] { border-color: var(--pg-primary); background: var(--pg-primary); color: var(--pg-on-primary); }
.pg .pg-wz-chip[aria-pressed=true]::before { -webkit-mask-image: var(--pg-wz-icon-check); mask-image: var(--pg-wz-icon-check); opacity: 1; }
.pg .pg-wz-tags { display: flex; flex-direction: column; gap: var(--pg-space-2); padding: var(--pg-space-2); border: 1px solid var(--pg-line-strong); border-radius: var(--pg-radius-sm); background: var(--pg-surface); box-shadow: var(--pg-shadow-xs); transition: border-color var(--pg-dur) var(--pg-ease), box-shadow var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-tags:focus-within { border-color: var(--pg-primary); box-shadow: var(--pg-ring); }
.pg .pg-wz-tags:has([aria-invalid=true]) { border-color: var(--pg-danger); }
.pg .pg-wz-tags__list { display: flex; flex-wrap: wrap; gap: 6px; }
.pg .pg-wz-tags__list:empty { display: none; }
.pg .pg-wz-tag { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding-block: 2px; padding-inline: var(--pg-space-3) 2px; border: 1px solid var(--pg-line); border-radius: 16px; background: var(--pg-surface-2); line-height: 1.4; color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); max-inline-size: 100%; }
.pg .pg-wz-tag bdi { min-width: 0; overflow-wrap: anywhere; }
.pg .pg-wz-tag__remove { display: grid; flex: none; place-items: center; inline-size: 28px; block-size: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pg-subtle); cursor: pointer; }
.pg .pg-wz-tag__remove:hover { background: var(--pg-danger-soft); color: var(--pg-danger); }
.pg .pg-wz-tags__entry { display: flex; align-items: center; gap: var(--pg-space-2); }
.pg .pg-wz .pg-wz-card input.pg-wz-tags__input { flex: 1; inline-size: auto; min-width: 0; min-height: 40px; padding: 0 var(--pg-space-2); border: 0; border-radius: var(--pg-radius-xs); background: transparent; color: var(--pg-ink); font-size: var(--pg-text-base); box-shadow: none; }
.pg .pg-wz .pg-wz-card input.pg-wz-tags__input:focus { outline: none; }

/* AI introduction helper */
.pg .pg-wz-ai { display: flex; flex-direction: column; gap: var(--pg-space-3); margin: 0; padding: var(--pg-space-5); border: 1px solid var(--pg-primary-line); border-radius: var(--pg-radius-lg); background: linear-gradient(135deg, var(--pg-primary-soft), var(--pg-surface) 70%); }
.pg .pg-wz-ai__head { display: flex; align-items: flex-start; gap: var(--pg-space-3); }
.pg .pg-wz-ai__icon { display: grid; flex: none; place-items: center; inline-size: 40px; block-size: 40px; border-radius: var(--pg-radius-md); background: var(--pg-gradient); color: var(--pg-on-primary); box-shadow: var(--pg-shadow-primary); }
.pg .pg-wz-ai__intro { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg .pg-wz-ai__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-space-1) var(--pg-space-2); margin: 0; color: var(--pg-primary-hover); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-ai__lang { padding: 0 var(--pg-space-2); border-radius: var(--pg-radius-full); background: var(--pg-surface); color: var(--pg-muted); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-medium); line-height: 20px; box-shadow: inset 0 0 0 1px var(--pg-line); }
.pg .pg-wz-ai__title { margin: 0; color: var(--pg-ink); font-size: var(--pg-text-lg); font-weight: var(--pg-weight-semibold); line-height: 1.35; }
.pg .pg-wz-ai__desc { margin: 0; color: var(--pg-muted); font-size: var(--pg-text-md); line-height: 1.55; }
.pg .pg-wz-ai__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-space-3); }
.pg .pg-wz-ai__credit { margin: 0; color: var(--pg-subtle); font-size: var(--pg-text-sm); }
.pg .pg-wz-ai__progress { position: relative; block-size: 6px; overflow: hidden; border-radius: var(--pg-radius-full); background: color-mix(in srgb, var(--pg-primary) 14%, var(--pg-surface)); }
.pg .pg-wz-ai__progress progress { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; opacity: 0; }
.pg .pg-wz-ai__progress::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 40%; border-radius: inherit; background: var(--pg-aurora); animation: pg-wz-ai-sweep 1.3s var(--pg-ease) 80 alternate; }
html[dir=rtl] .pg .pg-wz-ai__progress::after { animation-name: pg-wz-ai-sweep-rtl; }
@keyframes pg-wz-ai-sweep { from { transform: translateX(-15%); } to { transform: translateX(165%); } }
@keyframes pg-wz-ai-sweep-rtl { from { transform: translateX(15%); } to { transform: translateX(-165%); } }
.pg .pg-wz-ai__alert { margin: 0; padding: var(--pg-space-3) var(--pg-space-4); border: 1px solid var(--pg-danger-line); border-radius: var(--pg-radius-md); background: var(--pg-danger-soft); color: var(--pg-danger); font-size: var(--pg-text-md); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-ai__status { margin: 0; color: var(--pg-text); font-size: var(--pg-text-md); }
.pg .pg-wz-ai__status:empty { display: none; }
.pg .pg-wz-ai__result { display: flex; flex-direction: column; gap: var(--pg-space-3); padding: var(--pg-space-4); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-md); background: var(--pg-surface); box-shadow: var(--pg-shadow-sm); animation: pg-fade-up var(--pg-dur-slow) var(--pg-ease); }
.pg .pg-wz-ai__result-title { margin: 0; color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-ai__text { margin: 0; color: var(--pg-text); font-size: var(--pg-text-base); line-height: var(--pg-leading); white-space: pre-line; }
.pg .pg-wz-ai__result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-space-2) var(--pg-space-3); }

/* ---------- Step 3: logo + palettes ---------- */
.pg .pg-wz-logo__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pg-space-4); margin: 0; }
.pg .pg-wz-logo__tile { display: grid; place-items: center; inline-size: 112px; block-size: 112px; overflow: hidden; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: repeating-conic-gradient(var(--pg-surface-2) 0 25%, var(--pg-surface) 0 50%) 0 0 / 16px 16px; }
.pg .pg-wz-logo__img { inline-size: 88px; block-size: 88px; margin: 0; object-fit: contain; }
.pg .pg-wz-logo__placeholder { display: flex; flex-direction: column; align-items: center; gap: var(--pg-space-1); padding: var(--pg-space-2); color: var(--pg-subtle); font-size: var(--pg-text-xs); line-height: 1.35; text-align: center; }
.pg .pg-wz-logo__tile:has(img:not([hidden])) .pg-wz-logo__placeholder { display: none; }
.pg .pg-wz-logo__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--pg-space-1); min-height: 112px; padding: var(--pg-space-4); border: 1.5px dashed var(--pg-line-strong); border-radius: var(--pg-radius-lg); background: var(--pg-surface-2); text-align: center; cursor: pointer; transition: border-color var(--pg-dur) var(--pg-ease), background-color var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-logo__drop:hover, .pg .pg-wz-logo__drop:focus-within { border-color: var(--pg-primary); background: var(--pg-primary-soft); }
.pg .pg-wz-logo__drop-icon { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--pg-surface); color: var(--pg-primary); box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-logo__drop-label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.pg .pg-wz-logo__drop-title { color: var(--pg-primary-hover); font-size: var(--pg-text-md); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-logo__drop-hint { color: var(--pg-muted); font-size: var(--pg-text-sm); }
.pg .pg-wz-logo__form[aria-busy=true] .pg-wz-logo__drop { opacity: .6; pointer-events: none; }
.pg .pg-wz-logo__form .pg-wz-logo__note { grid-column: 1 / -1; }
.pg .pg-wz-logo__remove { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-space-2) var(--pg-space-3); }
.pg .pg-wz-logo__remove .pg-btn { margin-inline-start: calc(-1 * var(--pg-space-3)); }
@media (min-width: 560px) {
  .pg .pg-wz-logo__form { grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  .pg .pg-wz-logo__drop { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; gap: var(--pg-space-1) var(--pg-space-4); text-align: start; }
  .pg .pg-wz-logo__drop .pg-help { flex-basis: 100%; padding-inline-start: calc(40px + var(--pg-space-4)); }
}

.pg .pg-wz-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: var(--pg-space-3); }
.pg .pg-wz-palette { position: relative; display: flex; flex-direction: column; gap: var(--pg-space-3); min-width: 0; margin: 0; padding: var(--pg-space-2) var(--pg-space-2) var(--pg-space-3); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: var(--pg-surface); color: var(--pg-ink); font: inherit; text-align: start; cursor: pointer; outline: none; transition: border-color var(--pg-dur) var(--pg-ease), box-shadow var(--pg-dur) var(--pg-ease), transform var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-palette:hover { border-color: var(--pg-line-strong); box-shadow: var(--pg-shadow-md); transform: translateY(-2px); }
.pg .pg-wz-palette:focus-visible { outline: 2px solid var(--pg-primary); outline-offset: 2px; }
.pg .pg-wz-palette.guided-palette[aria-pressed=true] { border-color: var(--pg-primary); outline: 0; background: var(--pg-primary-soft); box-shadow: 0 0 0 1px var(--pg-primary), var(--pg-shadow-sm); }
.pg .pg-wz-palette.guided-palette[aria-pressed=true]:focus-visible { outline: 2px solid var(--pg-primary); outline-offset: 3px; }
.pg .pg-wz-palette__swatch { display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--pg-radius-md); background: var(--pg-surface); box-shadow: inset 0 0 0 1px var(--pg-line); }
.pg .pg-wz-palette__hero { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 5px; padding: 0 var(--pg-space-3); background: var(--sw-primary); }
.pg .pg-wz-palette__hero i { display: block; inline-size: 62%; block-size: 6px; border-radius: var(--pg-radius-full); background: var(--pg-on-primary); opacity: .9; }
.pg .pg-wz-palette__hero i + i { inline-size: 40%; opacity: .55; }
.pg .pg-wz-palette__hero b { display: block; inline-size: 34%; block-size: 10px; margin-block-start: 3px; border-radius: var(--pg-radius-full); background: var(--sw-accent); }
.pg .pg-wz-palette__chips { display: flex; gap: 5px; padding: 7px var(--pg-space-3); }
.pg .pg-wz-palette__chips span { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--sw-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pg-ink) 10%, transparent); }
.pg .pg-wz-palette__chips span:nth-child(2) { background: var(--sw-accent); }
.pg .pg-wz-palette__chips span:nth-child(3) { background: var(--pg-surface-3); }
.pg .pg-wz-palette__text { display: flex; flex-direction: column; gap: 2px; padding-inline: var(--pg-space-1); padding-inline-end: var(--pg-space-6); }
.pg .pg-wz-palette__title { display: flex; align-items: center; gap: var(--pg-space-1); color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-semibold); line-height: 1.35; }
.pg .pg-wz-palette__title .pg-icon { color: var(--pg-primary); }
.pg .pg-wz-palette__note { color: var(--pg-muted); font-size: var(--pg-text-xs); line-height: 1.45; }
.pg .pg-wz-palette__check { position: absolute; inset-inline-end: var(--pg-space-3); inset-block-end: var(--pg-space-3); display: grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 50%; background: var(--pg-primary); color: var(--pg-on-primary); opacity: 0; transform: scale(.6); transition: opacity var(--pg-dur) var(--pg-ease), transform var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-palette__check .pg-icon { inline-size: 14px; block-size: 14px; stroke-width: 2.5; }
.pg .pg-wz-palette[aria-pressed=true] .pg-wz-palette__check { opacity: 1; transform: none; }
.pg .pg-wz-custom > summary, .pg .pg-wz-social > summary { min-height: 52px; font-size: var(--pg-text-md); }
.pg .pg-wz-custom__summary { display: inline-flex; align-items: center; gap: var(--pg-space-2); }
.pg .pg-wz-custom__summary .pg-icon { color: var(--pg-subtle); }
.pg .pg-wz-custom__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--pg-space-4); color: var(--pg-text); }
.pg .pg-wz .pg-wz-color__input { inline-size: 100%; block-size: var(--pg-control); padding: 4px; border: 1px solid var(--pg-line-strong); border-radius: var(--pg-radius-sm); background: var(--pg-surface); cursor: pointer; }
.pg .pg-wz-social__note { margin-block-end: var(--pg-space-4); }

/* ---------- Step 4: contact ---------- */
.pg .pg-wz-copy { align-self: flex-start; min-height: 32px; font-size: var(--pg-text-sm); }

/* ---------- Step 5: opening hours ---------- */
.pg .pg-wz-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr)); gap: var(--pg-space-3); }
.pg .pg-wz-mode { align-items: center; }
.pg .pg-wz-mode__icon { display: grid; flex: none; place-items: center; inline-size: 36px; block-size: 36px; border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); color: var(--pg-muted); transition: background-color var(--pg-dur) var(--pg-ease), color var(--pg-dur) var(--pg-ease); }
.pg .pg-wz-mode:has(input:checked) .pg-wz-mode__icon { background: var(--pg-surface); color: var(--pg-primary); box-shadow: var(--pg-shadow-xs); }
.pg .pg-wz-mode__text { min-width: 0; }

.pg .pg-wz-hours [data-opening-hours-target=weekly] { gap: var(--pg-space-6); }
.pg .pg-wz-bulk.hours-bulk { display: flex; flex-direction: column; gap: var(--pg-space-3); min-width: 0; margin: 0; padding: var(--pg-space-4); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: var(--pg-bg); }
.pg .pg-wz-bulk__title { margin: 0; color: var(--pg-ink); font-size: var(--pg-text-base); font-weight: var(--pg-weight-semibold); line-height: 1.4; }
.pg .pg-wz-bulk__days { display: flex; flex-direction: column; gap: var(--pg-space-2); }
.pg .pg-wz-daychips { display: flex; flex-wrap: wrap; gap: var(--pg-space-2); }
.pg .pg-wz-daychip { position: relative; min-height: 40px; padding: 0 var(--pg-space-3); font-size: var(--pg-text-md); }
.pg .pg-wz-daychip__check { display: none; }
.pg .pg-wz-daychip:has(input:checked) .pg-wz-daychip__check { display: block; }
.pg .pg-wz-daychip:has(input:focus-visible) { outline: 2px solid var(--pg-primary); outline-offset: 2px; }
.pg .pg-wz-bulk__shortcuts { display: flex; flex-wrap: wrap; gap: 0 var(--pg-space-4); }
.pg .pg-wz-bulk__shortcuts .pg-text-btn { min-height: 36px; font-size: var(--pg-text-sm); }
.pg .pg-wz-bulk__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--pg-space-3) var(--pg-space-4); }
.pg .pg-wz-times { display: grid; flex: 1 1 260px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pg-space-3); max-inline-size: 360px; }
.pg .pg-wz .pg-wz-card input.pg-wz-time { min-width: 0; padding-inline: var(--pg-space-3); font-variant-numeric: tabular-nums; }
.pg .pg-wz-apply { flex: none; }
.pg .pg-wz-feedback.hours-feedback { margin: 0; color: var(--pg-success); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-feedback.danger-text { color: var(--pg-danger); }
.pg .pg-wz-week { display: flex; flex-direction: column; gap: var(--pg-space-3); }
.pg .pg-wz-days { display: flex; flex-direction: column; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-lg); background: var(--pg-surface); }
.pg .pg-wz-day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); grid-template-areas: "name status" "times times" "night night"; align-items: center; gap: var(--pg-space-2) var(--pg-space-3); min-width: 0; margin: 0; padding: var(--pg-space-3) var(--pg-space-4); border: 0; }
.pg .pg-wz-day + .pg-wz-day { border-block-start: 1px solid var(--pg-line); }
.pg .pg-wz-day > legend.pg-wz-day__name { grid-area: name; inline-size: auto; color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-day__status { grid-area: status; min-height: 40px; padding-block: 6px; font-size: var(--pg-text-md); }
.pg .pg-wz-day__times { grid-area: times; max-inline-size: none; }
.pg .pg-wz-day__times .pg-field { gap: 2px; }
.pg .pg-wz-day__label { color: var(--pg-muted); font-size: var(--pg-text-xs); font-weight: var(--pg-weight-medium); }
.pg .pg-wz .pg-wz-card .pg-wz-day input.pg-wz-time { min-height: 40px; padding-block: 6px; font-size: var(--pg-text-md); }
.pg .pg-wz-day__overnight { grid-area: night; display: flex; align-items: center; gap: var(--pg-space-1); margin: 0; color: var(--pg-warning); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-day:has([data-hours-status] option[value=closed]:checked) .pg-wz-day__name { color: var(--pg-subtle); }
/* Day rows follow the width of the list, not the viewport: beside the sidebar
   and live preview the column is narrow even on wide screens. */
.pg .pg-wz-days { container: pg-wz-days / inline-size; }
@container pg-wz-days (min-width: 36rem) {
  .pg .pg-wz-day { grid-template-columns: minmax(96px, 1fr) 154px 260px; grid-template-areas: "name status times" ". night night"; }
  .pg .pg-wz-day__times .pg-wz-day__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg .pg-wz .pg-wz-card .pg-wz-day input.pg-wz-time { padding-inline: var(--pg-space-2); }
}

/* ---------- Sticky action bar ----------
   The bar lays out by its own width (container queries), not the viewport:
   beside the sidebar and live preview it is narrow even on a 1280px screen.
   Narrow: status on its own row above the buttons. Wide: one row. */
.pg .pg-wz-actions { container: pg-wz-actions / inline-size; display: block; margin-block-start: var(--pg-space-4); padding-inline: var(--pg-space-4); }
@media (max-width: 767px) {
  /* Phones: a full-width bar pinned to the screen edge, not a floating card */
  .pg .pg-wz-actions:not(.pg-actionbar--static) { inset-block-end: 0; margin-inline: calc(-1 * var(--pg-wz-bleed)); padding-inline: var(--pg-wz-bleed); padding-block-end: calc(var(--pg-space-3) + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
}
/* Keep focused fields from scrolling underneath the sticky bar */
html:has(.pg-wz-actions:not(.pg-actionbar--static)) { scroll-padding-block-end: 8rem; }
.pg .pg-wz-actions__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "status status" "start end"; align-items: center; gap: var(--pg-space-2) var(--pg-space-3); }
.pg .pg-wz-actions__start { grid-area: start; display: flex; align-items: center; gap: var(--pg-space-2); min-width: 0; }
.pg .pg-wz-actions__status { grid-area: status; display: flex; justify-content: center; min-width: 0; text-align: center; }
.pg .pg-wz-actions__end { grid-area: end; display: flex; justify-content: flex-end; gap: var(--pg-space-2); min-width: 0; }
.pg .pg-wz-actions__note { grid-area: status; display: flex; align-items: center; justify-content: center; gap: var(--pg-space-2); min-width: 0; margin: 0; color: var(--pg-muted); font-size: var(--pg-text-sm); text-align: center; }
.pg .pg-wz-actions__note .pg-icon { flex: none; color: var(--pg-success); }
/* No visible Back button (step 1, new site): the Continue button stands alone. ERB whitespace keeps :empty from matching. */
.pg .pg-wz-actions__start:not(:has(> :not([hidden]))) { display: none; }
.pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) .pg-wz-actions__end { grid-column: 1 / -1; }
.pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) .pg-wz-actions__end .pg-btn { flex: 1; }
.pg .pg-wz-next-btn { min-width: 0; }
.pg .pg-wz-next-btn > span { overflow: hidden; text-overflow: ellipsis; }
.pg .pg-wz-back-btn { padding-inline: var(--pg-space-3); }
.pg .pg-wz-label-long { display: none; }
.pg .pg-wz--settings .pg-wz-actions { position: static; box-shadow: var(--pg-shadow-xs); }

@container pg-wz-actions (min-width: 25rem) {
  .pg .pg-wz-label-long { display: inline; }
  .pg .pg-wz-label-short { display: none; }
}
/* One row once the status text keeps at least 8rem (two short lines at most) */
@container pg-wz-actions (min-width: 30rem) {
  .pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) { grid-template-columns: minmax(8rem, 1fr) auto; grid-template-areas: "status end"; gap: var(--pg-space-4); }
  .pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) .pg-wz-actions__end { grid-column: auto; }
  .pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) .pg-wz-actions__end .pg-btn { flex: none; }
  .pg .pg-wz-actions__inner:not(:has(> .pg-wz-actions__start > :not([hidden]))) :is(.pg-wz-actions__status, .pg-wz-actions__note) { justify-content: flex-start; text-align: start; }
}
@container pg-wz-actions (min-width: 40rem) {
  .pg .pg-wz-actions__inner { grid-template-columns: auto minmax(8rem, 1fr) auto; grid-template-areas: "start status end"; gap: var(--pg-space-4); }
  .pg .pg-wz-actions__status, .pg .pg-wz-actions__note { justify-content: flex-start; text-align: start; }
}
@media (min-width: 768px) {
  .pg .pg-wz { --pg-wz-bleed: 0px; }
}

/* Inline autosave state in the bar (reuses the shared autosave-badge markup) */
.pg .pg-wz-save.autosave-badge { position: static; z-index: auto; inset: auto; display: inline-flex; align-items: center; gap: var(--pg-space-2); inline-size: auto; max-inline-size: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: var(--pg-muted); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-medium); line-height: 1.4; box-shadow: none; transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.pg .pg-wz-save.autosave-badge[data-dismissed=true] { opacity: 1; visibility: visible; }
.pg .pg-wz-save .autosave-badge-icon { flex: 0 0 22px; inline-size: 22px; block-size: 22px; background: var(--pg-success-soft); color: var(--pg-success); }
.pg .pg-wz-save .autosave-badge-icon svg { inline-size: 16px; block-size: 16px; }
.pg .pg-wz-save.autosave-badge[data-state=saving] { color: var(--pg-primary-hover); }
.pg .pg-wz-save.autosave-badge[data-state=saving] .autosave-badge-icon { background: var(--pg-primary-soft); color: var(--pg-primary); }
.pg .pg-wz-save.autosave-badge[data-state=error] { color: var(--pg-danger); }
.pg .pg-wz-save.autosave-badge[data-state=error] .autosave-badge-icon { background: var(--pg-danger-soft); color: var(--pg-danger); }
.pg .pg-wz-save [data-autosave-target=status] { min-width: 0; overflow-wrap: break-word; }
/* Settings keep the floating "Saved" pill; bring it onto tokens. */
.pg .pg-wz .autosave-badge:not(.pg-wz-save) { border-color: var(--pg-line); border-radius: var(--pg-radius-full); background: var(--pg-surface); color: var(--pg-success); font-size: var(--pg-text-sm); box-shadow: var(--pg-shadow-lg); }
.pg .pg-wz .autosave-badge:not(.pg-wz-save)[data-state=saving] { border-color: var(--pg-primary-line); color: var(--pg-primary-hover); }
.pg .pg-wz .autosave-badge:not(.pg-wz-save)[data-state=error] { border-color: var(--pg-danger-line); color: var(--pg-danger); }

/* ---------- Notices (settings reminders, translations) ---------- */
.pg .pg-wz-notice__subtitle { margin: var(--pg-space-2) 0 0; color: var(--pg-ink); font-size: var(--pg-text-md); font-weight: var(--pg-weight-semibold); }
.pg .pg-wz-notice__fields { display: flex; flex-wrap: wrap; gap: var(--pg-space-1); margin: var(--pg-space-1) 0 0; padding: 0; list-style: none; }
.pg .pg-wz-notice__group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pg-space-2); margin-block-start: var(--pg-space-2); }
.pg .settings-updates .pg-dialog p { margin: 0; color: var(--pg-muted); line-height: 1.6; }
.pg .pg-wz-translations { display: flex; flex-direction: column; gap: var(--pg-space-3); }
.pg .pg-wz-translations:empty { display: none; }
.pg .pg-wz-errors p { margin: 0; color: var(--pg-danger); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-errors { margin-block-end: var(--pg-space-4); }
.pg .pg-wz-errors:focus { outline: 2px solid var(--pg-danger); outline-offset: 2px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pg .pg-wz-question, .pg .pg-wz-ai__result, .pg .pg-wz--guided .pg-wz-intro > *, .pg .pg-wz--guided .pg-wz-main .pg-wz-card, .pg .pg-wz--guided .pg-wz-preview .pg-wz-site { animation: none; }
  .pg a.pg-wz-step:hover .pg-wz-step__marker { transform: none; }
  .pg .pg-wz-palette:hover { transform: none; }
  .pg .pg-wz-ai__progress::after { inline-size: 100%; opacity: .7; animation: none; }
}

/* Small screens: the stepper card already says "Step X of 6". */
@media (max-width: 1279px) {
  .pg .pg-wz--guided .pg-wz-intro .pg-wz-eyebrow { display: none; }
}

/* ---------- Finish pass ---------- */
/* Palettes: four across when the card is wide enough (never three and an orphan);
   the palette read from the logo leads as a full-width row. */
.pg .pg-wz-colors .pg-wz-section { container: pg-wz-colors / inline-size; }
.pg .pg-wz-palettes > .guided-palette-logo { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.pg .pg-wz-palettes > .guided-palette-logo .pg-wz-palette__swatch { flex: none; inline-size: min(148px, 42%); }
@container pg-wz-colors (min-width: 34rem) {
  .pg .pg-wz-palettes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Question tabs stay on one line on phones. */
@media (max-width: 479px) {
  .pg .pg-wz-part { gap: 6px; padding-inline: var(--pg-space-1); white-space: nowrap; }
  .pg .pg-wz-part__num { inline-size: 20px; block-size: 20px; }
}
/* Disclosure chevron: a rotated corner, so physical borders keep it pointing down (closed) and up (open) in Arabic too. */
.pg .pg-wz .pg-disclosure > summary::after { border-inline-end: 0; border-block-end: 0; border-right: 2px solid var(--pg-subtle); border-bottom: 2px solid var(--pg-subtle); }

/* Launch flow ("One last look" → "Ready to start building"). Component styles
   live in ui-45-build.css; these finish the pieces rendered by the setup partials. */
.pg .finish-wizard .pg-progress > .pg-progress__bar { display: block; }
.pg .finish-wizard .pg-build-allowance__head .pg-badge { white-space: nowrap; }
.pg .setup-review .pg-build-review__more > summary { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pg-space-1); list-style: none; }
.pg .setup-review .pg-build-review__more > summary::-webkit-details-marker { display: none; }
.pg .setup-review .pg-build-review__more > summary:focus-visible { outline: 2px solid var(--pg-primary); outline-offset: 2px; border-radius: var(--pg-radius-xs); }
.pg .pg-wz-review-more { display: inline-flex; align-items: center; gap: var(--pg-space-1); color: var(--pg-primary-hover); font-size: var(--pg-text-sm); font-weight: var(--pg-weight-semibold); }
.pg .setup-review .pg-build-review__more > summary:hover .pg-wz-review-more { text-decoration: underline; text-underline-offset: 3px; }
.pg .pg-wz-review-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 var(--pg-space-6); margin: var(--pg-space-1) 0 0; }
.pg .pg-wz-review-hours > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pg-space-3); padding-block: 6px; border-block-end: 1px solid var(--pg-line); color: var(--pg-muted); font-size: var(--pg-text-md); }
.pg .pg-wz-review-hours dt { color: var(--pg-text); font-weight: var(--pg-weight-medium); }
.pg .pg-wz-review-hours dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; }
.pg .pg-wz-review-hours > div.is-closed dd { color: var(--pg-subtle); }
/* Translation notices sit in the narrow settings column: the action goes under the text instead of squeezing it. */
.pg .pg-wz-translations .pg-callout--card:has(> .pg-callout__actions) { grid-template-columns: auto minmax(0, 1fr); }
.pg .pg-wz-translations .pg-callout--card > .pg-callout__actions { grid-column: 2; justify-content: flex-start; }
