/* Warm swatches belong to the product illustrations and appointment demo. */
.page-retail {
  --retail-header: 88px;
  --retail-cream: #fbf4e8;
  --retail-satin: #f1e0bb;
  --retail-gold: #805b2b;
  --retail-sand: #e8c397;
  --retail-gain-ink: color-mix(in srgb, var(--ok) 55%, var(--ink));
  --retail-gain-fill: color-mix(in srgb, var(--ok) 47%, var(--white));
  --retail-goal-line: color-mix(in srgb, var(--retail-gold) 70%, var(--retail-cream));
}

@media (min-width: 1024px) {
  .page-retail { --retail-header: calc(88px * var(--ui-scale)); }
}

.retail-demo-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.page-retail .kicker { margin-bottom: var(--space-8); }
.page-retail .retail-hero h1 .thin { color: var(--blue-dark); }
.page-retail main :focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.no-js .page-retail main .vf-cta { display: none; }

/* The shared contact form keeps its layout and behavior on the pilot. */
.page-retail .vf-contact-form input:not([type=radio], [aria-invalid=true]),
.page-retail .vf-contact-segments input:not(:checked) + span { border-color: var(--muted); }
.page-retail .vf-contact-form input::placeholder { color: var(--muted); opacity: 1; }
.page-retail .vf-contact-submit:not(.is-ready) { color: var(--blue-dark); }

.retail-hero { padding-block: var(--space-64); }

.retail-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-48) var(--space-64);
}

.retail-hero .vf-cta,
.retail-ask .vf-cta { margin-top: var(--space-32); }

.retail-appointment { margin: 0; box-shadow: var(--shadow-2); }

.retail-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  font-size: var(--type-17);
  line-height: 1.3;
}

.retail-frame-head > span, .retail-appointment-title div > span {
  color: var(--muted);
  font-size: var(--type-13);
}

.retail-appointment-title,
.retail-profile-head > div {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.retail-appointment-title div > * { display: block; }

.retail-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--retail-cream);
  color: var(--retail-gold);
  font-weight: 800;
}

.retail-replay {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: calc(-.5 * var(--space-8));
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  cursor: pointer;
}

.retail-replay:hover { background: var(--blue-soft); }

.retail-replay svg,
.retail-index-link svg,
.retail-flow svg,
.retail-reel svg:where(:not(.retail-art svg, .retail-fact-icon svg)) {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Plot the base price and each increment at its cumulative height. */
.retail-waterfall {
  --retail-plot-height: clamp(88px, 10vw, 136px);
  --retail-plot-top: var(--space-48);
  --retail-plot-inset: var(--space-24);
  --retail-target: calc(1500 / 2050);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: var(--retail-plot-top) var(--retail-plot-inset) var(--space-24);
  background: var(--white);
  list-style: none;
  text-align: center;
}

.retail-waterfall-plot {
  position: relative;
  height: var(--retail-plot-height);
  border-bottom: 1px solid var(--line);
}

.retail-waterfall-plot b {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: calc(var(--top) + 5px);
  color: var(--text-2);
  font-size: var(--type-15);
  line-height: 1.2;
}

.retail-waterfall-total .retail-waterfall-plot b {
  color: var(--retail-gain-ink);
  font-size: var(--type-24);
}

.retail-bar {
  position: absolute;
  z-index: 1;
  inset-inline: 13%;
  bottom: var(--base);
  height: calc(var(--top) - var(--base));
  border-radius: var(--radius-8) var(--radius-8) 0 0;
  background: var(--retail-sand);
  transform-origin: bottom;
}

/* One bar language (30 Nov, demo-kit.css): flat fills, no outlines. Start neutral, AI blue, the total soft green. */
.retail-waterfall-step.is-ai .retail-bar { background: var(--demo-gain); }
.retail-waterfall-total .retail-bar { background: var(--demo-result); }

.retail-waterfall-label {
  display: grid;
  gap: calc(var(--space-8) / 2);
  padding: var(--space-8) calc(var(--space-8) / 2) 0;
  font-size: var(--type-13);
  line-height: 1.3;
}

.retail-index,
.retail-section,
.retail-ask { padding-block: var(--space-96); }

.retail-index, .retail-section { border-top: 1px solid var(--line); }
.retail-section, .retail-close { scroll-margin-top: var(--space-24); }

/* Let the owner recognize their problem, then follow the answer to its section. */
.retail-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: start;
  gap: var(--space-64);
}

.retail-index-list { border-top: 1px solid var(--line); }

.retail-index-list .retail-index-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(var(--space-8) / 2) var(--space-16);
  min-height: var(--btn-h);
  padding: var(--space-16);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.retail-index-link strong {
  grid-column: 1 / -1;
  font-size: var(--type-24);
  line-height: 1.3;
  text-wrap: pretty;
}

.retail-index-link > span {
  color: var(--blue-dark);
  font-size: var(--type-17);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.retail-index-link svg { color: var(--blue-dark); }
.retail-index-list .retail-index-link:is(:hover, :focus-visible) { background: var(--blue-soft); }

@media (max-width: 899px) {
  .retail-index-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .retail-index-list .retail-index-link { padding-inline: var(--space-8); }
}

.retail-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.retail-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-16);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--type-20);
  line-height: 1.2;
}

.retail-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  padding: calc(var(--space-8) / 2) var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: var(--type-13);
  font-weight: 750;
  line-height: 1.3;
}

.retail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-8) / 2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retail-symbols { position: absolute; overflow: hidden; }

.retail-facts {
  display: grid;
  gap: calc(var(--space-8) * .75);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retail-fact {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-8);
  background: var(--signal-bg, var(--paper));
  color: var(--ink);
  font-size: var(--type-15);
  line-height: 1.25;
}

.retail-fact strong { font-weight: 800; }

.retail-fact small {
  display: block;
  margin-bottom: calc(var(--space-8) / 4);
  color: var(--text-2);
  font-size: var(--type-13);
  line-height: 1.2;
}

.retail-fact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--signal-ink, var(--blue-dark));
}

.retail-fact-icon svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retail-flow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.retail-consent {
  justify-self: start;
  background: var(--paper-2);
  color: var(--muted);
}

.retail-result {
  background: var(--ok-soft);
  color: var(--text-2);
}

.retail-appointment > .retail-result { border-top: 1px solid var(--line-soft); }

/* Each cut uses the same portrait stage. The last cut also serves as the static view. */
.retail-section.retail-reel-section {
  --reel-breathing-room: 32px;
  padding-block: var(--space-32);
}

@media (min-width: 900px) {
  #scheda-cliente { padding-top: var(--space-64); }
}

.retail-pipeline { background: var(--paper-2); }

.retail-reel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: var(--space-64);
}

.retail-reel-head h2 { max-width: 18ch; }
.retail-reel-head .lead { max-width: 34ch; }
#crm-title strong, #crm-title .thin { display: block; }

.retail-reel-figure { margin: 0; }

.retail-reel-caption {
  width: min(100%, 315px);
  margin-top: var(--space-16);
  color: var(--muted);
  font-size: var(--type-15);
  text-align: center;
}

.retail-reel {
  --reel-top: var(--reel-sticky-edge, calc(var(--retail-header) + var(--space-48)));
  --reel-height: min(560px, calc(100svh - var(--reel-top) - var(--reel-breathing-room)));
  --reel-gap: clamp(5px, 1.4cqh, var(--space-8));
  --reel-inset: clamp(8px, 2.6cqh, var(--space-16));
  --reel-label: max(.75rem, 2.35cqh);
  --reel-body: min(2.7cqh, 0.9375rem);
  --reel-card-title: min(3.1cqh, 1.0625rem);
  --reel-title: min(5cqh, 1.875rem);
  --reel-number: min(4.6cqh, 1.625rem);
  --reel-control-size: 36px;
  --reel-transport-pad: clamp(calc(.75 * var(--space-8)), 1.25cqh, var(--space-8));
  --reel-transport-height: calc(var(--reel-control-size) + 2 * var(--reel-transport-pad) + 1px);
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  container-type: size;
  width: min(100%, max(300px, calc(var(--reel-height) * 9 / 16)));
  height: var(--reel-height);
  justify-self: start;
  overflow-anchor: none;
}

.retail-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
}

.retail-stage > * { grid-area: 1 / 1; min-width: 0; }
.retail-stage > [aria-hidden="true"]:is(.retail-cover, .retail-scene) { visibility: hidden; pointer-events: none; }
/* The transport overlays a reserved strip of the scenes, keeping the stage fixed on launch. */
.retail-reel.is-launched .retail-scene { margin-block-end: var(--reel-transport-height); }
/* Opener (30 Nov): the cover's sentence plays as the title beat (.retail-title, centred in the empty stage), then sits
   in a header row above every scene (.retail-head), also above the end frame in the static reduced-motion state. */
.retail-reel.has-opener .retail-stage { grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); }
.retail-reel.has-opener .retail-stage > * { grid-area: 2 / 1; }
.retail-reel.has-opener .retail-stage > :is(.retail-cover, .retail-title) { grid-row: 1 / -1; }
.retail-reel.has-opener .retail-stage > .retail-head { grid-row: 1; }
.retail-head { z-index: 1; max-width: none; padding: calc(1.2 * var(--reel-inset)) var(--reel-inset) 0; background: var(--paper); }
.retail-reel.is-ready:not(.is-launched) .retail-head { display: none; }
.retail-title { z-index: 2; padding: var(--reel-inset); }

.retail-segments {
  position: absolute;
  z-index: 2;
  inset: var(--reel-inset) var(--reel-inset) auto;
  display: flex;
  gap: calc(var(--space-8) / 2);
}

.retail-segments span {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--line);
}

.retail-segments span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-dark);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.retail-cover {
  display: grid;
  justify-items: center;
  align-content: safe center;
  gap: calc(1.5 * var(--reel-inset));
  padding: var(--reel-inset);
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  background: var(--paper);
  text-align: center;
}

.retail-reel-jewels .retail-cover {
  background:
    radial-gradient(ellipse at 50% 50%, var(--retail-satin), transparent 68%),
    var(--paper-2);
}

.retail-reel-jewels .retail-cover p { max-width: 14ch; }

.retail-cover p {
  max-width: 11ch;
  font-size: clamp(var(--type-24), 6.4cqh, 2.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Launch, transport, control and seek come from demo-kit.css (30 Nov). */
.retail-launch .demo-launch-badge svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.retail-cover-art {
  display: grid;
  grid-template-columns: .85fr 1.3fr .85fr;
  align-items: center;
  width: 100%;
  margin-top: var(--space-16);
  padding-inline: var(--space-8);
}

.retail-art {
  --garment-fill: var(--retail-sand);
  --garment-seam: var(--retail-cream);
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: var(--radius-8);
  background: radial-gradient(ellipse at 50% 35%, var(--retail-cream), var(--retail-satin));
  color: var(--retail-gold);
}

.retail-art svg {
  width: 100%;
  aspect-ratio: 128 / 88;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retail-garment-fill { fill: var(--garment-fill); }
.retail-garment-seam { stroke: var(--garment-seam); }
.retail-art-sand { --garment-fill: var(--retail-satin); }

.retail-metal {
  stroke: var(--retail-gold);
  stroke-width: 4;
  paint-order: stroke;
  filter: drop-shadow(0 2px 1px var(--retail-sand));
}

.retail-cover-art .retail-art {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--retail-gold);
  box-shadow: var(--shadow-2);
}

.retail-cover-art .retail-art:nth-child(1) { transform: translateX(var(--space-8)) rotate(-11deg); }
.retail-cover-art .retail-art:nth-child(2) { z-index: 1; transform: translateY(calc(-1 * var(--space-16))) scale(1.13); }
.retail-cover-art .retail-art:nth-child(3) { transform: translateX(calc(-1 * var(--space-8))) rotate(11deg); }

.retail-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: safe center;
  padding: calc(2 * var(--reel-inset)) var(--reel-inset) var(--reel-inset);
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  font-size: max(var(--type-13), var(--reel-body));
  overflow-wrap: anywhere;
}

.retail-scene-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--reel-inset);
}

.retail-scene-content > h3 { text-align: center; }

.retail-scene h3 {
  margin: 0;
  font-size: max(var(--type-24), var(--reel-title));
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.retail-scene small {
  display: block;
  color: var(--text-2);
  font-size: max(var(--type-13), var(--reel-body));
  line-height: 1.3;
}

.retail-scene .retail-flow { margin-inline: auto; transform: rotate(90deg); }
.retail-scene .retail-chip {
  padding: calc(var(--reel-gap) / 2) calc(var(--reel-gap) * .8);
  font-size: min(var(--type-13), var(--reel-label));
}
.retail-scene .retail-fact { padding: var(--reel-gap); font-size: max(var(--type-13), var(--reel-body)); }
.retail-scene .retail-voice-tag { display: table; margin: calc(var(--space-8) / 2) 0 0; color: var(--blue-dark); }
.retail-mini-profile .retail-profile-head, .retail-mini-body { padding: var(--space-8); }
.retail-mini-profile .retail-profile-head { font-size: max(var(--type-13), var(--reel-card-title)); }
.retail-mini-profile .retail-avatar { width: 32px; height: 32px; background: var(--blue-soft); color: var(--blue-dark); }

.retail-voice-cover {
  grid-template-rows: auto minmax(min-content, 1fr);
  align-content: start;
  gap: var(--reel-inset);
  padding: var(--reel-inset);
  background: var(--paper);
  scrollbar-gutter: auto;
  text-align: left;
}

.retail-reel-voice:not(.is-launched) .retail-segments { visibility: hidden; }

.retail-voice-cover-body {
  display: grid;
  align-content: safe center;
  gap: var(--reel-inset);
  width: 100%;
}

.retail-voice-cover-body > p {
  justify-self: stretch;
  max-width: none;
  font-size: clamp(var(--type-24), 6cqh, 2.125rem);
  line-height: 1.1;
  text-wrap: pretty;
}

.retail-voice-cover-body > p strong { color: var(--blue-dark); }
.retail-voice-cover-body .retail-launch { justify-self: center; }

.retail-voice-app {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--space-8) / 2) var(--space-8);
  width: 100%;
  color: var(--text-2);
  font-size: var(--type-13);
  font-weight: 700;
  line-height: 1.3;
}

.retail-voice-app > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-8) / 2);
}
.retail-voice-app .retail-spark { width: 14px; height: 14px; color: var(--blue); }
/* The top label is the opener (.demo-opener, 30 Nov), with the chapter tag beside it. */
.retail-voice-app > .retail-opener { display: flex; flex: 1 0 28ch; align-items: flex-start; max-width: 100%; gap: .45em; text-align: start; }
.retail-voice-app > .retail-opener + span { flex: none; color: var(--muted); }

.retail-voice-chart,
.retail-voice-card {
  display: grid;
  gap: var(--reel-gap);
  padding: var(--reel-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
}

.retail-voice-chart {
  width: 100%;
  font-size: max(var(--type-13), var(--reel-body));
  box-shadow: var(--shadow-1);
}

.retail-voice-chart dl {
  display: grid;
  gap: var(--reel-gap);
  margin: 0;
}

.retail-voice-chart dt { color: var(--text-2); }
.retail-voice-chart dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2ch;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
  color: var(--blue-dark);
}

.retail-voice-chart-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
}
.retail-voice-chart-track.is-full { background: var(--blue); }

.retail-reel-voice .retail-scene {
  align-items: stretch;
  scrollbar-gutter: auto;
}

.retail-reel-voice .retail-scene-content {
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  gap: clamp(var(--space-8), 2.2cqh, var(--space-16));
}

.retail-scene .retail-voice-step {
  font-size: max(var(--type-20), min(4.4cqh, 1.5rem));
  line-height: 1.18;
  text-align: left;
  text-wrap: pretty;
}

.retail-reel-voice .retail-voice-step > span {
  display: block;
  margin-bottom: calc(var(--space-8) / 2);
  color: var(--blue-dark);
  font: 700 var(--type-13)/1.35 var(--mono);
}

.retail-voice-graphic { display: grid; align-self: center; gap: var(--reel-gap); }

.retail-voice-insight {
  --voice-emphasis: color-mix(in srgb, var(--blue) 16%, var(--white));
  margin: 0;
  padding: var(--reel-inset);
  border-left: 3px solid var(--blue-dark);
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
  background: var(--white);
  font-size: var(--type-15);
  font-weight: 700;
  line-height: 1.4;
}

.retail-voice-insight mark {
  padding: 0 .19em;
  border-radius: var(--radius-8);
  background: var(--voice-emphasis);
  color: var(--blue-dark);
  font-weight: 900;
  white-space: nowrap;
}

.retail-voice-insight.is-result {
  --voice-emphasis: color-mix(in srgb, var(--ok) 17%, var(--white));
  border-left-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 7%, var(--white));
}
.retail-voice-insight.is-result mark {
  color: var(--retail-gain-ink);
  font-size: var(--type-20);
}

.retail-recording {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--reel-gap);
  padding: var(--reel-inset);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-16);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.retail-record-mic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
}

.retail-record-wave { display: grid; color: var(--blue-dark); }

.retail-record-wave svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 38px;
}

.retail-record-wave svg:first-child { opacity: .25; }

.retail-transcript {
  display: grid;
  gap: var(--reel-gap);
  margin: 0;
  padding: var(--reel-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
}

.retail-transcript strong { color: var(--blue-dark); font-size: var(--type-13); }
.retail-transcript p { font-size: var(--type-15); line-height: 1.45; }
.retail-typed-word { display: inline-block; }

.retail-voice-fields {
  display: grid;
  gap: var(--reel-gap);
  margin: 0;
}

.retail-voice-fields > div {
  padding: var(--reel-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--white);
  line-height: 1.25;
}

.retail-voice-fields dt,
.retail-voice-fields .retail-voice-detail {
  color: var(--text-2);
  font-size: var(--type-13);
  line-height: 1.3;
}

.retail-voice-fields dd {
  margin: calc(var(--space-8) / 4) 0 0;
  font-weight: 800;
}

.retail-voice-fields .retail-voice-detail { font-weight: 600; }
.retail-voice-card { padding: clamp(var(--space-8), 2cqh, var(--space-16)); }
.retail-voice-card .retail-voice-fields > div { background: var(--paper); }
.retail-voice-update > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: var(--reel-gap);
}
.retail-voice-update dd { margin: 0; text-align: right; }

.retail-voice-card-head {
  display: flex;
  align-items: center;
  gap: var(--reel-gap);
  line-height: 1.3;
}

.retail-voice-card-head small { font-size: var(--type-13); }

.retail-voice-card-head .retail-avatar {
  width: 34px;
  height: 34px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.retail-voice-recap ol {
  display: grid;
  gap: var(--reel-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retail-voice-recap li {
  display: grid;
  gap: calc(var(--space-8) / 4);
  line-height: 1.35;
}

.retail-voice-recap li + li { padding-top: var(--reel-gap); border-top: 1px solid var(--line); }

.retail-receipts,
.retail-insights,
.retail-jewels,
.retail-clients,
.retail-offers {
  display: grid;
  gap: var(--reel-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retail-receipts li,
.retail-jewels li,
.retail-clients li,
.retail-offers li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--reel-gap);
  padding: var(--reel-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--white);
  line-height: 1.25;
}

.retail-receipts li {
  grid-template-columns: 30px minmax(0, 1fr);
  padding: var(--reel-inset);
  border-bottom-style: dashed;
  border-bottom-color: var(--muted);
  box-shadow: var(--shadow-1);
}

.retail-receipts svg, .retail-ping svg { color: var(--blue-dark); }
.retail-receipts strong, .retail-clients strong {
  display: block;
  margin-block: calc(var(--space-8) / 4);
}

.retail-receipts strong, .retail-clients strong, .retail-picked strong { font-size: max(var(--type-13), var(--reel-card-title)); }

.retail-taste .retail-chip { border: 1px solid var(--line); }

[data-scene="simili"] h3 b { color: var(--blue-dark); }
.retail-match-receipts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--space-8) / 2);
}

.retail-match-receipts li {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: calc(var(--space-8) / 2);
  padding: var(--space-8);
}

.retail-match-receipts strong { font-size: max(var(--type-13), var(--reel-body)); }

.retail-insights li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border-left: 2px solid var(--blue-dark);
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
  background: var(--white);
  font-size: max(var(--type-13), var(--reel-body));
  line-height: 1.3;
}

.retail-insights li > b { color: var(--blue-dark); font-size: max(var(--type-20), var(--reel-number)); }

.retail-proposal-total {
  padding: var(--reel-gap) var(--reel-inset);
  border-radius: var(--radius-16);
  background: var(--blue-soft);
}

.retail-basket-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-size: max(var(--type-20), var(--reel-number));
  line-height: 1.3;
}

.retail-basket-total b:last-child { color: var(--blue-dark); }

.retail-reel-cross [data-scene="proposta"] .retail-scene-content { gap: calc(.75 * var(--reel-gap)); }

.retail-offers li {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  column-gap: var(--reel-gap);
  row-gap: calc(var(--reel-gap) / 2);
  font-size: max(var(--type-13), var(--reel-body));
  line-height: 1.2;
}

.retail-offers li > b { color: var(--blue-dark); font-size: min(var(--type-13), var(--reel-label)); }
.retail-offers li > p { grid-column: 1 / -1; color: var(--text-2); }
.retail-offers li > p small { margin-bottom: calc(var(--space-8) / 4); color: var(--muted); font-size: var(--type-13); }

.retail-cross-delivery {
  align-self: center;
  color: var(--text-2);
  font-size: var(--type-13);
  line-height: 1.2;
  text-align: center;
}

.retail-reel-outcome {
  display: grid;
  align-items: stretch;
}

.retail-reel-outcome > * { grid-area: 1 / 1; min-width: 0; }

.retail-reel-action,
.retail-reel-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: var(--space-8);
  border-radius: var(--radius-8);
  font-size: max(var(--type-13), var(--reel-body));
  line-height: 1.2;
}

.retail-reel-action {
  position: relative;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 800;
}

.retail-reel-success { background: var(--ok-soft); color: var(--ink); }
.retail-reel-success svg { flex: none; }
.retail-reel:not(.is-launched) .retail-reel-action,
.retail-reel.is-finished .retail-reel-action { visibility: hidden; }

.retail-reel .retail-tap {
  position: absolute;
  z-index: 1;
  right: var(--space-16);
  bottom: var(--space-8);
  width: 26px;
  height: 26px;
  color: var(--blue-dark);
  opacity: 0;
  stroke-width: 1.2;
}

.retail-jewels li { grid-template-columns: minmax(60px, .4fr) minmax(0, 1fr); }
.retail-jewels .retail-art svg { max-width: 96px; }
.retail-picked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.retail-picked li {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: var(--space-8);
  border-color: var(--retail-gold);
}

.retail-picked .retail-art { aspect-ratio: 1; }
.retail-picked .retail-art svg { max-width: 128px; }
.retail-picked small { margin-top: calc(var(--space-8) / 2); }

.retail-notification {
  display: grid;
  justify-items: center;
  gap: var(--space-16);
  text-align: center;
}

.retail-notification > p { font-size: clamp(var(--type-32), 8cqh, 2.75rem); line-height: 1; }
.retail-notification > span { display: flex; align-items: center; gap: var(--space-8); font-weight: 750; }

.retail-ping {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  width: 100%;
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
  text-align: left;
}

.retail-ping h3 { margin-bottom: calc(var(--space-8) / 2); font-size: max(var(--type-24), var(--reel-title)); text-wrap: initial; }
.retail-ping svg { flex: none; }

.retail-clients li { position: relative; padding: var(--reel-inset); }
.retail-clients .retail-avatar { background: var(--blue-soft); color: var(--blue-dark); }
.retail-clients li:nth-child(2) .retail-avatar { background: var(--retail-cream); color: var(--retail-gold); }

.retail-summary-panel,
.retail-message {
  display: grid;
  gap: var(--reel-gap);
  padding: var(--reel-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--white);
}

.retail-pipeline-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--reel-inset);
  margin: 0;
  padding: var(--reel-inset);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-16);
  background: var(--blue-soft);
  font-size: max(var(--type-13), var(--reel-body));
  list-style: none;
}

.retail-pipeline-result strong {
  display: block;
  color: var(--blue-dark);
  font-size: max(var(--type-20), var(--reel-number));
  line-height: 1.1;
}

.retail-pipeline-result li:last-child {
  grid-column: 1 / -1;
  padding-top: var(--reel-inset);
  border-top: 1px solid var(--line);
}

.retail-pipeline-result li:last-child strong { font-size: clamp(var(--type-32), 8cqh, 2.75rem); }

[data-scene="acquisti"], [data-scene="simili"] {
  background: radial-gradient(ellipse at 50% 60%, var(--blue-soft), transparent 72%);
}

[data-scene="notifica"], [data-scene="selezione"] {
  background: radial-gradient(ellipse at 50% 60%, var(--retail-cream), transparent 72%);
}

.retail-summary-clients {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.retail-summary-clients strong {
  display: flex;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  padding: calc(var(--space-8) / 2) var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.retail-summary-clients .retail-avatar { width: 18px; height: 18px; font-size: min(var(--type-13), var(--reel-label)); }
.retail-summary-clients > span { color: var(--muted); }

.retail-bubble {
  padding: var(--space-8);
  border-radius: var(--radius-8) var(--radius-8) 0 var(--radius-8);
  background: var(--blue-soft);
  color: var(--ink);
  font-size: max(var(--type-13), var(--reel-body));
  line-height: 1.4;
}

.retail-message > .retail-bubble:not(.retail-reply) { font-size: max(var(--type-13), var(--reel-card-title)); }

.retail-reply {
  justify-self: start;
  border-radius: var(--radius-8) var(--radius-8) var(--radius-8) 0;
  background: var(--paper-2);
}

.retail-reply strong { display: block; font-size: min(var(--type-13), var(--reel-label)); }
.retail-booked { justify-self: start; background: var(--ok-soft); color: var(--ink); }

.retail-transport { position: absolute; inset: auto 0 0; z-index: 3; padding: var(--reel-transport-pad) var(--reel-inset); }
.retail-reel .demo-control svg { width: 18px; height: 18px; }
.retail-ask { background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
/* .retail-close sits on the shared sector ask surface (problem-cards.css .sector-close / .sector-ask). */
.retail-close .lead, .retail-close noscript p { margin-top: var(--space-16); }
.retail-close .retail-measure { max-width: none; margin-top: var(--space-8); }

/* The waterfall retains its finished state outside the entrance. */
@media (prefers-reduced-motion: no-preference) {
  .retail-appointment.is-playing .retail-bar { animation: retail-grow .42s ease-out var(--delay) backwards; }
  .retail-appointment.is-playing .retail-waterfall-plot b,
  .retail-appointment.is-playing .retail-waterfall-label { animation: retail-fade .26s ease-out calc(var(--delay) + .23s) backwards; }
  .retail-appointment.is-playing .retail-result { animation: retail-fade .32s ease-out 1.95s backwards; }
}

@keyframes retail-grow { from { transform: scaleY(0); } }
@keyframes retail-fade { from { opacity: 0; } }

@media (max-width: 899px) {
  .page-retail { --retail-header: 72px; }
  .retail-hero { padding-block: var(--space-32) var(--space-48); }
  .retail-hero-grid, .retail-reel-layout { grid-template-columns: minmax(0, 1fr); }
  .retail-reel-layout { gap: var(--space-32); }
  .retail-reel { justify-self: center; }
  .retail-reel-figure { display: grid; justify-items: center; }
  .retail-hero-grid { gap: var(--space-32); }
  .retail-index, .retail-section, .retail-ask { padding-block: var(--space-64); }
  .retail-flow { justify-self: center; }
}

@media (max-width: 640px) {
  .retail-hero .vf-cta, .retail-ask .vf-cta { width: 100%; }
  .retail-waterfall { --retail-plot-inset: var(--space-8); padding-bottom: var(--space-16); }
  .retail-waterfall-label { padding-inline: calc(var(--space-8) / 4); overflow-wrap: anywhere; }
  .retail-waterfall-total .retail-waterfall-plot b { font-size: var(--type-17); }
  .retail-index, .retail-section, .retail-ask { padding-block: var(--space-48); }
}

@media (max-width: 360px) {
  .retail-waterfall {
    grid-template-columns: 1.05fr 1.1fr .9fr 1fr .95fr;
  }

  .retail-waterfall-label {
    padding-inline: 0;
    font-size: .75rem;
  }

  .retail-waterfall-plot b,
  .retail-waterfall-total .retail-waterfall-plot b {
    inset-inline: 50% auto;
    width: max-content;
    transform: translateX(-50%);
    font-size: var(--type-13);
  }

  .retail-waterfall-total .retail-waterfall-plot b {
    bottom: calc(var(--top) + var(--space-16));
    font-size: var(--type-15);
  }
}

.retail-label-short { display: none; }
/* The target is one continuous line across the plot (no zone, no legend: the result line names it). */
.retail-waterfall.has-target::after {
  --target-edge: calc(var(--retail-plot-top) + var(--retail-plot-height) * (1 - var(--retail-target)));
  position: absolute;
  inset-inline: var(--retail-plot-inset);
  content: "";
  pointer-events: none;
}

.retail-waterfall.has-target::after {
  z-index: 2;
  top: var(--target-edge);
  border-top: 1px solid var(--retail-goal-line);
}

/* Keep the cashmere figure clear of the target edge. */
.retail-waterfall.has-target .retail-waterfall-step:nth-child(2) .retail-waterfall-plot b { bottom: calc(var(--retail-target) * 100% + 5px); }
.retail-waterfall-step.is-ai .retail-waterfall-plot b { inset-inline: 50% auto; width: max-content; padding-inline: 3px; transform: translateX(-50%); }
.retail-result strong { color: var(--ink); }
@media (max-width: 640px) {
  .retail-waterfall { --retail-plot-top: var(--space-32); --retail-plot-height: 148px; }
  .retail-label-long { display: none; }
  .retail-label-short { display: inline; }
  .retail-waterfall-label { overflow-wrap: normal; }
}

/* The whole cover starts the demo (Michael, 23 Nov pm). */
.retail-cover { cursor: pointer; }

/* The Italian chapters use the existing transport with an illustrated portrait stage. */
.retail-chapter {
  --chapter-sage: color-mix(in srgb, var(--ok) 21%, var(--retail-satin));
  --chapter-hair: color-mix(in srgb, var(--retail-gold) 73%, var(--ink));
  --chapter-skin: color-mix(in srgb, var(--glow-warm) 59%, var(--retail-cream));
  --chapter-seam: color-mix(in srgb, var(--retail-gold) 37%, var(--retail-satin));
}

.retail-chapter .retail-scene {
  padding: var(--reel-inset);
  scrollbar-gutter: auto;
  background: var(--paper);
}

.retail-chapter.is-launched .retail-scene { cursor: pointer; }

.retail-chapter .retail-scene-content { gap: clamp(var(--space-8), 1.6cqh, var(--space-16)); }
/* Fit pass (30 Nov): the CRM form, the client card and the insight fit the 9:16 frame above the controls, with no
   scrolling (it was 16–25px too tall at 315×560, on phones and desktop alike). */
.retail-chapter .retail-legacy { --legacy-window: clamp(170px, 35cqh, 258px); }
.retail-chapter .retail-client-fields > div { padding: clamp(calc(var(--space-8) / 2), .7cqh, var(--space-8)); }
.retail-chapter .retail-client-card { gap: clamp(calc(var(--space-8) / 2), 1cqh, var(--space-8)); }
.retail-chapter .retail-client-fields dd { line-height: 1.15; margin-top: clamp(calc(var(--space-8) / 4), .5cqh, calc(var(--space-8) / 2)); }
.retail-chapter .retail-client-head .retail-portrait { width: clamp(28px, 5.4cqh, 40px); height: clamp(28px, 5.4cqh, 40px); }

.retail-chapter .retail-scene h3 {
  max-width: 21ch;
  font-size: clamp(var(--type-20), 5.1cqh, var(--type-32));
  line-height: 1.08;
  letter-spacing: -.04em;
  text-align: left;
}

.retail-chapter .retail-scene h3 span {
  display: block;
  margin-bottom: calc(var(--space-8) / 2);
  color: var(--blue-dark);
  font: 700 var(--type-13)/1.3 var(--mono);
  letter-spacing: 0;
}

.retail-chapter .retail-voice-insight { padding: var(--reel-gap) var(--reel-inset); }
.retail-chapter .retail-voice-insight mark { white-space: normal; box-decoration-break: clone; }
.retail-chapter .retail-voice-insight.is-result mark { white-space: nowrap; }

.retail-chapter-cover {
  grid-template-rows: auto auto minmax(min-content, 1fr) auto;
  align-items: center;
  align-content: start;
  gap: clamp(var(--space-8), 3.4cqh, var(--space-24));
  padding: var(--reel-inset);
  scrollbar-gutter: auto;
  background: var(--paper);
}

.retail-chapter-cover p {
  justify-self: start;
  max-width: 12ch;
  font-size: clamp(var(--type-24), 7.6cqh, var(--type-44));
  line-height: 1;
  text-align: left;
  text-wrap: pretty;
}

.retail-chapter-cover p > span { display: block; }
.retail-chapter-cover p > span + span { margin-top: calc(var(--space-8) / 2); }
.retail-chapter-cover p strong { color: var(--blue-dark); white-space: nowrap; }

.retail-note-cover {
  display: grid;
  grid-template-columns: .64fr 18px 1.36fr;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  width: 100%;
  padding: var(--space-16) var(--space-8);
}

.retail-cover-phone,
.retail-cover-profile {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
  box-shadow: var(--shadow-2);
}

.retail-cover-phone {
  justify-items: center;
  align-content: center;
  min-height: clamp(94px, 28cqh, 150px);
  padding: var(--space-8) calc(var(--space-8) / 2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-16);
  background: var(--white);
  color: var(--blue-dark);
  font-size: var(--type-15);
  rotate: -10deg;
}

.retail-chapter .retail-cover-phone .retail-cover-wave { width: 100%; max-width: 62px; height: 24px; }
.retail-note-arrow { color: var(--blue-dark); }

.retail-cover-profile {
  padding: var(--space-8);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-8);
  background: var(--white);
  text-align: left;
  rotate: 3deg;
}

.retail-cover-profile > strong { display: flex; align-items: center; gap: var(--space-8); }
.retail-cover-profile .retail-avatar { width: 27px; height: 27px; font-size: var(--type-13); }

.retail-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-8) / 2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retail-note-tags li {
  padding: calc(var(--space-8) / 2) var(--space-8);
  border-radius: var(--radius-8);
  background: var(--retail-cream);
  font-size: var(--type-13);
  font-weight: 800;
  line-height: 1.25;
}

/* Cover card (30 Nov): the three details read as plain lines under the name, not three chips. */
.retail-cover-profile .retail-note-tags { display: grid; gap: calc(var(--space-8) / 4); }
.retail-cover-profile .retail-note-tags li { padding: 0; background: none; color: var(--text-2); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .retail-chapter-cover.is-in-view .retail-cover-wave { animation: retail-note-sweep .65s ease-out both; }
  .retail-chapter-cover.is-in-view .retail-note-tags li { animation: retail-tag-landing .55s cubic-bezier(.2,.7,.25,1.15) .37s both; }
  .retail-chapter-cover.is-in-view .retail-note-tags li:nth-child(2) { animation-delay: .5s; }
  .retail-chapter-cover.is-in-view .retail-note-tags li:nth-child(3) { animation-delay: .63s; }
}

@keyframes retail-note-sweep { from { clip-path: inset(0 100% 0 0); } }
@keyframes retail-tag-landing { from { opacity: 0; transform: translate(-34px, 8px) rotate(-9deg); } }

.retail-chapter .retail-fashion-flatlay {
  width: 100%;
  max-width: 278px;
  margin: 0;
  padding-inline: var(--space-16);
}

.retail-fashion-flatlay .retail-art {
  border-color: var(--chapter-seam);
  background: var(--paper);
}

.retail-fashion-flatlay .retail-art:nth-child(1) { --garment-fill: var(--chapter-sage); }
.retail-fashion-flatlay .retail-art:nth-child(2) { background: var(--retail-cream); }
.retail-fashion-flatlay .retail-art:nth-child(3) { --garment-fill: var(--retail-satin); }
.retail-fashion-flatlay .retail-art svg { width: 86%; height: 86%; }

.retail-chapter-art {
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-16);
  background: var(--retail-cream);
}

.retail-chapter-art > * { grid-area: 1 / 1; }

.retail-chapter .retail-illustration {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--chapter-hair);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.retail-legacy {
  --legacy-window: clamp(204px, 46cqh, 258px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-8) / 2);
  background: var(--paper-2);
  font-size: var(--type-13);
  line-height: 1.25;
}

.retail-legacy-bar, .retail-legacy-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  padding: calc(var(--space-8) / 2) var(--space-8);
}

.retail-legacy-bar { background: var(--ink); color: var(--white); }
.retail-clock { display: inline-flex; align-items: center; gap: calc(var(--space-8) / 2); white-space: nowrap; }
.retail-legacy-tabs { justify-content: start; border-bottom: 1px solid var(--line); }
.retail-legacy-tabs > * { padding: calc(var(--space-8) / 2); }
.retail-legacy-tabs > b { box-shadow: inset 0 -2px var(--ink); }
.retail-legacy-window { position: relative; overflow: hidden; height: var(--legacy-window); background: var(--white); }

.retail-legacy-fields { display: grid; gap: var(--space-8); padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8); }
.retail-legacy-fields section { border: 1px solid var(--line); background: var(--paper); }
.retail-legacy-fields section > b { display: block; padding: calc(var(--space-8) / 2) var(--space-8); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.retail-legacy-fields dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-8) / 2) var(--space-8);
  margin: 0;
  padding: var(--space-8);
}

.retail-legacy-fields dd {
  position: relative;
  min-height: var(--space-24);
  margin: 2px 0 0;
  padding: 2px calc(var(--space-8) / 2);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-2);
}

.retail-legacy-fields .retail-legacy-select { padding-inline-end: var(--space-16); }
.retail-legacy-select::after {
  position: absolute;
  top: 40%;
  right: calc(var(--space-8) / 2);
  width: 5px;
  height: 5px;
  border: solid var(--text-2);
  border-width: 0 1px 1px 0;
  rotate: 45deg;
  content: "";
}

.retail-legacy-save { display: table; margin: 0 var(--space-8) var(--space-8); padding: calc(var(--space-8) / 2) var(--space-8); border: 1px solid var(--line); background: var(--paper-2); }
.retail-legacy-rail { position: absolute; inset: 0 0 0 auto; width: var(--space-8); border-left: 1px solid var(--line); background: var(--paper-2); }
.retail-legacy-rail i { position: absolute; inset: 0 1px auto 1px; height: 21%; background: var(--muted); }

.retail-legacy-overlay {
  position: absolute;
  inset: 42% var(--space-16) auto var(--space-8);
  display: grid;
  justify-items: start;
  gap: var(--space-8);
}

.retail-legacy-overlay > p {
  padding: var(--space-8) var(--space-16);
  background: var(--ink);
  box-shadow: var(--shadow-2);
  color: var(--white);
  font-size: clamp(var(--type-20), 4.6cqh, var(--type-24));
  font-weight: 850;
  line-height: 1.13;
  text-wrap: pretty;
}

.retail-legacy-queue {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  padding: calc(var(--space-8) / 2) var(--space-8);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  color: var(--blue-dark);
}

.retail-lost-tags { position: absolute; inset: 48% var(--space-8) auto; justify-content: center; }
.retail-lost-tags li, .retail-lost-tags li:last-child { border: 1px solid var(--blue-dark); background: var(--white); color: var(--blue-dark); box-shadow: var(--shadow-2); }

.retail-record-art {
  background: repeating-linear-gradient(90deg, var(--retail-cream) 0 24px, var(--retail-satin) 24px 25px);
}

.retail-chapter .retail-voice-meter {
  align-self: center;
  width: 59%;
  margin-inline: auto var(--space-8);
  padding: var(--space-8);
  background: color-mix(in srgb, var(--blue) 8%, var(--white));
  font-size: var(--type-13);
}

.retail-voice-meter .retail-record-mic { width: 26px; height: 26px; }
.retail-voice-meter .retail-record-wave svg { height: 28px; }

.retail-crm-transfer { position: relative; display: grid; gap: var(--reel-gap); overflow: clip; }

.retail-crm-source {
  padding: calc(var(--space-8) / 2) var(--space-8);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-8);
  background: var(--white);
  font-size: var(--type-13);
  line-height: 1.35;
}

.retail-crm-source strong { display: inline-flex; align-items: center; gap: calc(var(--space-8) / 2); color: var(--blue-dark); vertical-align: middle; }
.retail-crm-source mark, .retail-crm-flight {
  display: inline-block;
  padding-inline: .5em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--text-2);
}

.retail-crm-flight {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  transform-origin: top left;
  background: color-mix(in srgb, var(--blue) 13%, var(--white));
  color: var(--blue-dark);
  font-size: var(--type-13);
  line-height: 1.35;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
}

.retail-client-card {
  display: grid;
  gap: var(--reel-gap);
  padding: var(--reel-gap);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-16);
  background: var(--retail-cream);
}

.retail-client-head, .retail-plan-author { display: flex; align-items: center; gap: var(--space-8); line-height: 1.15; }
.retail-client-head { padding-inline: calc(var(--space-8) / 2); }
.retail-client-head strong, .retail-plan-author strong { font-size: var(--type-17); }
.retail-client-head small { color: var(--blue-dark); font-size: var(--type-13); font-weight: 750; }
.retail-chapter .retail-portrait {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--chapter-seam);
  border-radius: 50%;
  background: var(--retail-satin);
  stroke: var(--chapter-hair);
  stroke-width: 1.35;
}

.retail-client-fields { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); gap: calc(var(--space-8) / 2); margin: 0; }
.retail-client-fields > div { padding: calc(.75 * var(--space-8)); border-radius: var(--radius-8); background: var(--white); }
.retail-client-fields dt { display: flex; align-items: center; gap: calc(var(--space-8) / 2); color: var(--text-2); font-size: var(--type-13); font-weight: 850; line-height: 1.1; }
.retail-client-fields dt svg { flex: none; width: 15px; height: 15px; color: var(--retail-gold); stroke-width: 1.45; }
.retail-client-fields dd { margin: calc(var(--space-8) / 2) 0 0; font-size: var(--type-13); line-height: 1.25; }
.retail-client-fields dd > [data-reveal] { display: block; }
.retail-client-fields dd small { color: var(--muted); font-size: var(--type-13); }
.retail-client-follow { grid-column: 1 / -1; }
.retail-client-due { display: table; margin-top: 3px; padding: 2px calc(.75 * var(--space-8)); border-radius: var(--radius-pill); background: var(--blue-soft); color: var(--blue-dark); font-weight: 750; }
.retail-client-fields .retail-client-next { background: color-mix(in srgb, var(--chapter-sage) 36%, var(--white)); }
.retail-client-next dt svg { color: var(--retail-gain-ink); }

.retail-week {
  display: grid;
  justify-items: center;
  gap: var(--reel-gap);
  padding: var(--reel-inset);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-16);
  background: var(--retail-cream);
  text-align: center;
}

.retail-chapter .retail-week .retail-illustration { width: min(58%, 136px); }
.retail-week > span { font-weight: 800; }
.retail-week > small { color: var(--muted); font-size: var(--type-13); }
.retail-week-numbers { display: flex; align-items: center; gap: var(--space-16); font-size: var(--type-32); line-height: 1.2; }
.retail-week-numbers b { color: var(--blue-dark); }
.retail-week-numbers strong { min-width: 2ch; color: var(--retail-gain-ink); }

.retail-gift-art, .retail-sale-art {
  background: repeating-linear-gradient(134deg, var(--retail-cream) 0 17px, var(--retail-satin) 17px 18px);
}

.retail-chapter-recap, .retail-outfit-details ul {
  display: grid;
  gap: calc(var(--space-8) / 2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.retail-chapter-recap li { border-bottom: 1px solid var(--line); padding-block: calc(var(--space-8) / 2); font-size: var(--type-13); }

.retail-channels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-32);
}

.retail-channel {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-16);
  background: var(--retail-cream);
  text-align: center;
}

.retail-channel-shop { background: var(--retail-satin); }

.retail-device {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 130px;
  gap: calc(var(--space-8) / 2);
  padding: var(--space-8) calc(var(--space-8) / 2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-8);
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-size: var(--type-13);
}

.retail-chapter .retail-device .retail-art,
.retail-channel-avatar { width: 46px; height: 46px; }
.retail-chapter .retail-device .retail-art svg { width: 94%; height: 94%; }
.retail-channel-avatar { background: var(--chapter-sage); color: var(--ink); font-size: var(--type-20); }

.retail-channel-suggestion, .retail-channel-bridge {
  padding: calc(var(--space-8) / 2) var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: var(--type-13);
  font-weight: 800;
}

/* One pill in the frame (30 Nov): «stessa AI» keeps the tint, the two «Sciarpa?» read as plain blue text. */
.retail-channel-suggestion { padding: 0; background: none; }
.retail-channel-bridge {
  position: absolute;
  bottom: 0;
  justify-self: center;
  background: color-mix(in srgb, var(--blue) 13%, var(--white));
}

.retail-channel-bridge::before {
  position: absolute;
  z-index: -1;
  right: -28px;
  left: -28px;
  top: 50%;
  border-bottom: 1px solid var(--blue-dark);
  content: "";
}
.retail-channels { isolation: isolate; overflow: clip; overflow-clip-margin: 4px; }

.retail-welcome {
  align-self: start;
  justify-self: start;
  z-index: 1;
  margin: calc(var(--space-8) / 2) 0 0 var(--space-8);
  padding: calc(var(--space-8) / 2) var(--space-8);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-8) var(--radius-8) var(--radius-8) 0;
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-size: var(--type-13);
  font-weight: 800;
  line-height: 1.3;
}

.retail-boutique-tablet, .retail-tablet-preview {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.retail-boutique-tablet { overflow: clip; }
.retail-tablet-preview, .retail-tablet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  font-size: var(--type-13);
}

.retail-tablet-preview > strong, .retail-tablet-bar > strong { display: flex; align-items: center; gap: calc(var(--space-8) / 2); }
.retail-tablet-preview > span {
  position: relative;
  padding: 2px var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  color: var(--blue-dark);
  font-weight: 850;
}
.retail-tablet-preview .retail-tap { right: 0; bottom: -6px; }

.retail-tablet-bar { border-bottom: 1px solid var(--line); background: var(--retail-cream); }
.retail-tablet-bar > strong { font-size: var(--type-17); line-height: 1.2; }
.retail-ai-bar { background: var(--blue-soft); color: var(--blue-dark); }
.retail-ai-bar > strong svg { flex: none; }

.retail-history {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8);
  font-size: var(--type-13);
  line-height: 1.3;
}

.retail-history > div { padding: var(--space-8); border-radius: var(--radius-8); background: var(--paper); }
.retail-history > div + div { background: var(--blue-soft); }
.retail-history strong { display: flex; align-items: center; gap: var(--space-8); }
.retail-history ul, .retail-tips, .retail-visit-plan ol { margin: 0; padding: 0; list-style: none; }
.retail-history li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--space-8); margin-top: calc(var(--space-8) / 2); }
.retail-history li small { padding-inline: calc(var(--space-8) / 2); border-radius: var(--radius-8); background: var(--white); color: var(--blue-dark); font-size: var(--type-13); }

.retail-tip-screen { position: relative; margin: var(--space-8); isolation: isolate; }
.retail-tip-scan {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: calc((100% - 2 * var(--reel-gap)) / 3);
  border-left: 3px solid var(--blue-dark);
  border-radius: var(--radius-8);
  background: var(--blue-soft);
}

.retail-tips { display: grid; grid-auto-rows: 1fr; gap: var(--reel-gap); }
.retail-tips li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  font-size: var(--type-13);
  line-height: 1.25;
}

.retail-tips .retail-art { --garment-fill: var(--chapter-sage); width: 36px; height: 38px; background: var(--retail-cream); }
.retail-tips li:nth-child(2) .retail-art { --garment-fill: var(--retail-satin); }
.retail-tips li:nth-child(3) .retail-art { --garment-fill: var(--retail-sand); }
.retail-tips .retail-art svg { width: 29px; height: 31px; }
.retail-tips strong { font-weight: 750; }
.retail-tips b { color: var(--blue-dark); font-weight: 950; }
.retail-tips small { margin-top: 2px; color: var(--muted); font-size: var(--type-13); }

.retail-visit-plan {
  display: grid;
  gap: var(--space-8);
  padding: var(--reel-inset);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-8);
  background: var(--retail-cream);
  box-shadow: var(--shadow-2);
}

.retail-visit-plan ol { counter-reset: visit-step; }
.retail-visit-plan li {
  counter-increment: visit-step;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--chapter-seam);
  font-size: var(--type-17);
  font-style: italic;
  font-weight: 750;
  line-height: 1.3;
}

.retail-visit-plan li::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--chapter-hair);
  border-radius: 50%;
  background: var(--white);
  color: var(--chapter-hair);
  content: counter(visit-step);
  font: 750 var(--type-13)/1 var(--mono);
}

.retail-outfit {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: var(--reel-gap);
  padding: var(--space-8);
  border: 1px solid var(--chapter-seam);
  border-radius: var(--radius-16);
  background: var(--retail-cream);
}

.retail-outfit-art {
  display: grid;
  align-items: center;
  border-radius: var(--radius-8);
  background: var(--retail-satin);
}
.retail-outfit-art > * { grid-area: 1 / 1; }
.retail-outfit-cashmere { --outfit-coat-fill: color-mix(in srgb, var(--retail-sand) 48%, var(--white)); }
.retail-outfit-details { display: grid; gap: var(--space-8); font-size: var(--type-13); line-height: 1.2; }
.retail-outfit-details li { display: grid; grid-template-columns: 1fr auto; gap: calc(var(--space-8) / 2); padding-block: var(--space-8); border-bottom: 1px solid var(--chapter-seam); }
.retail-outfit-details li:not(:first-child) b { color: var(--blue-dark); }
.retail-outfit-total { display: grid; justify-items: end; gap: calc(var(--space-8) / 2); }
.retail-outfit-total strong { color: var(--retail-gain-ink); font-size: var(--type-24); }

/* Insight lines (30 Nov): large and bold like the home hero reel's .hr-insight, the key words highlighted with a wipe,
   never a small note in a box. The step line above steps down a size so the insight leads. */
.retail-chapter .retail-scene h3 { font-size: clamp(var(--type-20), 3.9cqh, var(--type-32)); }
.retail-chapter .retail-voice-insight {
  --voice-accent: var(--blue-dark);
  padding: clamp(calc(var(--space-8) * .75), 1.4cqh, var(--space-16)) var(--reel-inset);
  border-left-color: var(--voice-accent);
  background: var(--blue-soft);
  font-size: clamp(var(--type-20), 4.3cqh, var(--type-32));
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.retail-chapter .retail-voice-insight :is(mark, strong) {
  padding: 0 .13em;
  border-radius: var(--radius-8);
  background: linear-gradient(var(--white), var(--white)) left center / 100% 100% no-repeat;
  color: var(--voice-accent);
  font-size: inherit;
  font-weight: 900;
  white-space: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.retail-chapter .retail-voice-insight.is-result { --voice-accent: var(--retail-gain-ink); border-left-color: var(--ok); background: var(--ok-soft); }
.retail-chapter .retail-voice-insight.is-result :is(mark, strong) { white-space: normal; }
.retail-insight-word { position: relative; }
/* The CRM-transfer scene carries the most stacked content: a tighter edge keeps its insight clear of the controls. */
.retail-chapter [data-scene="estrazione"] { padding-block: calc(var(--space-8) * 1.25); }
.retail-chapter [data-scene="estrazione"] .retail-scene-content { gap: calc(var(--space-8) * .75); }

@container (max-height: 470px) {
  .retail-chapter-cover { gap: var(--space-8); }
  .retail-chapter .retail-scene h3 { font-size: var(--type-20); }
  .retail-chapter-art .retail-illustration { max-height: 29cqh; }
  .retail-outfit-details li { padding-block: calc(var(--space-8) / 2); }
}

@media (max-width: 360px) {
  .retail-chapter [data-scene="estrazione"] { padding-block: var(--space-8); }
}

/* End frame = the result (30 Nov, demo-kit.css): one big figure and one plain line, centred on the paper. */
.retail-chapter .retail-end { align-items: center; }
.retail-end .demo-end { padding: var(--reel-inset); }
.retail-end .demo-end-figure { font-size: clamp(var(--type-44), 11cqh, var(--type-80)); }
.retail-end .demo-end-line { max-width: 26ch; }
