@font-face {
  font-family: "The Seasons";
  src: url("/widget/fonts/TheSeasons-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Afacad";
  src: url("/widget/fonts/Afacad-Latin-Ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02D7-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Afacad";
  src: url("/widget/fonts/Afacad-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --blue: #13297e;
  --sand: #d2c1b0;
  --cream: #e8ddd2;
  --paper: #f5f3f0;
  --ink: #121d23;
  --muted: #575757;
  --white: #fff;
  --line: #e0d6cb;
  --shell: min(1320px, calc(100% - 80px));
  --copy: "Afacad", system-ui, sans-serif;
  --display: "The Seasons", Georgia, serif;
  font-family: var(--copy);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
a { color: var(--blue); }
p { margin: 0; }
.shell { width: var(--shell); margin-inline: auto; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; max-width: 185px; }
.brand img { width: 100%; height: auto; }
.design-switch { display: flex; gap: 4px; align-items: center; color: var(--blue); }
.variant-label { margin-right: 9px; color: var(--muted); font-size: .92rem; }
.design-switch a {
  padding: 8px 13px;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.design-switch a[aria-current] { background: var(--paper); box-shadow: inset 0 -2px var(--blue); }
.design-switch a:hover { background: var(--cream); }

.progress { margin-block: 30px 18px; }
.progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.progress button {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--sand);
  background: transparent;
  text-align: left;
  color: var(--muted);
  padding: 8px 2px;
  font-size: 1rem;
  font-weight: 600;
}
.progress button[aria-current] { border-bottom: 2px solid var(--blue); color: var(--blue); }
.progress button:hover { color: var(--blue); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  grid-template-areas: "panel scene";
  align-items: start;
  background: var(--white);
}
.panel {
  grid-area: panel;
  min-width: 0;
  padding: clamp(24px, 4.6vw, 72px);
}
.panel:empty { display: none; }
.eyebrow {
  color: var(--blue);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .075em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--blue); margin: 0; }
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.65rem, 5.2vw, 5.25rem);
  letter-spacing: -.045em;
  line-height: 1.02;
  overflow-wrap: break-word;
}
h1:focus { outline: none; }
h2 { font-weight: 600; line-height: 1.12; font-size: 1.45rem; }
h3 { font-weight: 600; line-height: 1.18; font-size: 1.12rem; }
.lead { margin-top: 19px; max-width: 45ch; font-size: clamp(1.15rem, 1.7vw, 1.43rem); line-height: 1.35; }
.note { color: var(--muted); font-size: 1rem; line-height: 1.4; max-width: 56ch; margin-top: 17px; }
.subtle { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.status { color: var(--blue); font-size: 1rem; margin-top: 12px; }
.status:empty { display: none; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 27px; }
.button {
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.button.secondary { background: var(--white); color: var(--blue); }
.button.secondary:hover:not(:disabled) { background: var(--paper); border-color: var(--blue); }
.button:disabled { border-color: var(--line); background: var(--paper); color: var(--muted); }
.text-button {
  min-height: 44px;
  border: 0;
  padding: 6px 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scene { grid-area: scene; min-width: 0; margin: 0; background: var(--cream); }
.frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  max-height: 740px;
  background: var(--cream);
}
.frame > img { width: 100%; height: 100%; object-fit: contain; }
.frame .base-photo { display: block; }
.frame .mask-photo { position: absolute; inset: 0; }
.frame.is-local .base-photo { object-fit: contain; }
.caption {
  padding: 14px 18px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.capture-box {
  border-block: 1px solid var(--line);
  margin-top: 25px;
  padding: 16px 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.3;
}
.consent input {
  width: 19px;
  height: 19px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
.capture-box .action-row { margin-top: 12px; }
.capture-box .button, .capture-box .text-button { min-height: 44px; }
#YMK-module { width: min(100%, 360px); margin-inline: auto; }
.result-tools { margin-top: 22px; }
.mode-switch { display: flex; flex-wrap: wrap; gap: 1px; margin: 10px 0 0; background: var(--line); border: 1px solid var(--line); }
.mode-switch button {
  flex: 1 1 auto;
  background: var(--white);
  border: 0;
  min-height: 42px;
  padding: 8px;
  font-weight: 600;
  color: var(--blue);
}
.mode-switch button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.result-legend { min-height: 48px; padding: 10px 0 5px; }
.region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.region-list button {
  min-height: 44px;
  padding: 7px 10px;
  line-height: 1.13;
  text-align: left;
  background: var(--paper);
  border: 1px solid transparent;
  color: var(--blue);
  font-size: .99rem;
  font-weight: 600;
}
.region-list button[aria-pressed="true"] { border-color: var(--blue); background: var(--white); }
.region-list button:hover { border-color: var(--sand); }
.details { margin-top: 19px; border-top: 1px solid var(--line); padding: 12px 0 0; }
.details summary { color: var(--blue); cursor: pointer; font-weight: 600; }
.facts { margin: 10px 0 0; }
.facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--blue); overflow-wrap: anywhere; }
.recommendations:empty { display: none; }
.recommendations { margin: 4px 0 10px; padding: 10px 12px; color: var(--ink); background: var(--paper); border-radius: 4px; }
.recommendations p { margin: 0; font-weight: 600; }
.recommendations ul { margin: 4px 0 0; padding-left: 1em; }
.recommendations small { display: block; color: var(--muted); }
.section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--sand);
  padding: 16px 0 28px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .94rem;
}

/* Editorial */
[data-design="editorial"][data-step="start"] .panel { align-self: center; }
[data-design="editorial"][data-step="start"] .frame { aspect-ratio: 4 / 4.8; }
[data-design="editorial"][data-step="start"] .base-photo { object-fit: cover; object-position: center 45%; }
[data-design="editorial"][data-step="ergebnis"] .scene { position: sticky; top: 16px; }

/* Gesichtsatlas */
[data-design="atlas"] .workspace {
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  grid-template-areas: "scene panel";
  border: 1px solid var(--line);
}
[data-design="atlas"] .scene { background: var(--blue); padding: clamp(14px, 2.8vw, 38px); }
[data-design="atlas"] .frame { background: var(--blue); max-height: 660px; }
[data-design="atlas"] .caption { background: var(--blue); color: var(--white); padding: 12px 0 0; }
[data-design="atlas"] .progress ol { border: 1px solid var(--line); background: var(--white); }
[data-design="atlas"] .progress button { text-align: center; border-bottom: 0; border-right: 1px solid var(--line); }
[data-design="atlas"] .progress li:last-child button { border-right: 0; }
[data-design="atlas"] .progress button[aria-current] { color: var(--white); background: var(--blue); }
[data-design="atlas"][data-step="start"] .panel { align-self: center; }
[data-design="atlas"][data-step="ergebnis"] .scene { position: sticky; top: 14px; }
[data-design="atlas"][data-step="ergebnis"] .result-tools { padding: 13px; background: var(--paper); }
[data-design="atlas"][data-step="ergebnis"] .region-list button { background: var(--white); }
[data-design="atlas"][data-step="ergebnis"] .region-list button[aria-pressed="true"] { background: var(--blue); color: var(--white); }

@media (max-width: 760px) {
  :root { --shell: calc(100% - 32px); }
  .masthead-inner { min-height: 0; padding-block: 13px; flex-wrap: wrap; gap: 8px; }
  .brand { max-width: 148px; }
  .design-switch { flex-wrap: wrap; gap: 2px; }
  .variant-label { margin-right: 4px; }
  .design-switch a { padding: 7px 8px; font-size: .98rem; }
  .progress { margin-block: 17px 12px; }
  .progress button { min-height: 40px; font-size: .91rem; }
  .workspace, [data-design="atlas"] .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "panel" "scene";
    gap: 0;
  }
  [data-design]:is([data-step="ergebnis"], [data-step="aufnahme"]) .workspace {
    grid-template-areas: "scene" "panel";
  }
  .panel { padding: 24px 19px; }
  .eyebrow { margin-bottom: 12px; }
  .frame { max-height: min(62vh, 510px); }
  [data-design]:not([data-design="studio"]):is([data-step="ergebnis"], [data-step="aufnahme"]) .frame {
    max-height: min(39svh, 340px);
  }
  [data-design]:not([data-design="studio"])[data-step="ergebnis"] .scene,
  [data-design]:not([data-design="studio"])[data-step="aufnahme"] .scene:has(.is-local) {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  [data-step="beratung"] .scene { display: none; }
  [data-design="atlas"][data-step="start"] .workspace { grid-template-areas: "scene" "panel"; }
  [data-design="atlas"][data-step="start"] .frame { max-height: 285px; }
  .footer { flex-direction: column; margin-top: 16px; }
}

@media (max-width: 360px) {
  .masthead-inner { gap: 5px; }
  .variant-label { width: 100%; }
  .progress button { font-size: .85rem; }
}

/* Studio uses the document as its only scroll surface. */
[data-design="studio"] {
  --shell: min(694px, 100%);
  --paper: #f3efe9;
  --studio-selected: #e5e9f2;
  --studio-text: #232b42;
  --studio-frame: #1d273d;
  --blue: #172f70;
  --muted: #555e72;
  background: var(--white);
}
[data-design="studio"] body { min-width: 0; color: var(--studio-text); }
[data-design="studio"] .masthead { border: 0; }
[data-design="studio"] .masthead-inner { width: min(960px, calc(100% - 32px)); min-height: 66px; }
[data-design="studio"] .brand { inline-size: 138px; }
[data-design="studio"] .design-switch a[aria-current] {
  background: var(--studio-selected);
  box-shadow: none;
  border-radius: 4px;
}
[data-design="studio"] .progress { display: none; }
[data-design="studio"] .workspace { display: block; }
[data-design="studio"] .panel {
  --studio-padding: clamp(19px, 4.8vw, 36px);
  padding: clamp(22px, 5vw, 42px) var(--studio-padding) max(32px, env(safe-area-inset-bottom));
}
[data-design="studio"] .panel h1 {
  font-size: clamp(1.7rem, 6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: normal;
}
[data-design="studio"]:not([data-step="ergebnis"]) .panel {
  width: min(100%, 502px);
  margin-inline: auto;
}
.studio-heading { display: grid; gap: 12px; }
.studio-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 15px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 600;
  line-height: 1;
}
.studio-step-track { display: flex; gap: 4px; }
.studio-step-track i { width: 15px; height: 3px; border-radius: 2px; background: #dce0e7; }
.studio-step-track .reached { background: var(--blue); }
[data-design="studio"] .footer { margin: 0 auto; padding: 8px 18px; border: 0; }
[data-embedded] .masthead, [data-embedded] .footer { display: none; }

[data-design="studio"] .button, .popup-intro .button {
  min-height: 49px;
  padding-inline: 14px;
  border: 0;
  border-radius: 9px;
}
[data-design="studio"] .button:hover:not(:disabled),
.popup-intro .button:hover:not(:disabled) { background: #0f2268; }
[data-design="studio"] .button.secondary { background: var(--paper); }
[data-design="studio"] .button.secondary:hover:not(:disabled) { background: var(--studio-selected); }
[data-design="studio"] .button:disabled { background: var(--paper); color: var(--muted); }
.studio-actions { display: grid; gap: 8px; }
.studio-photo-actions, .studio-report-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-photo-actions, .studio-camera-action { margin-top: 16px; }
.studio-camera-action { display: flex; justify-content: center; }
.studio-example { margin-top: 6px; justify-self: start; }
.studio-intake-note { margin: 8px 0 15px; color: var(--muted); line-height: 1.3; }

[data-design="studio"] .scene { grid-area: auto; position: static; background: transparent; padding: 0; }
[data-design="studio"] .frame { background: transparent; height: auto; max-height: none; aspect-ratio: 3 / 4; }
[data-design="studio"] .frame img { position: absolute; inset: 0; }
[data-design="studio"] .caption { background: transparent; color: var(--muted); padding: 6px 0 0; text-align: center; font-size: .92rem; }
.studio-photo-preview,
.studio-framing {
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 20px);
  border-radius: 15px;
  background: var(--studio-frame);
}
.studio-photo-preview .scene,
.studio-aperture { width: min(100%, clamp(170px, 28vh, 224px)); }
.studio-photo-preview .frame, .studio-aperture {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.studio-photo-preview .frame::after,
.studio-aperture::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(#ffffffd9, #ffffffd9) 0 0 / 17px 1px,
    linear-gradient(#ffffffd9, #ffffffd9) 0 0 / 1px 17px,
    linear-gradient(#ffffffd9, #ffffffd9) 100% 0 / 17px 1px,
    linear-gradient(#ffffffd9, #ffffffd9) 100% 0 / 1px 17px,
    linear-gradient(#ffffffd9, #ffffffd9) 0 100% / 17px 1px,
    linear-gradient(#ffffffd9, #ffffffd9) 0 100% / 1px 17px,
    linear-gradient(#ffffffd9, #ffffffd9) 100% 100% / 17px 1px,
    linear-gradient(#ffffffd9, #ffffffd9) 100% 100% / 1px 17px;
  background-repeat: no-repeat;
}
[data-design="studio"] .studio-photo-preview .caption { color: #eef0f6; padding-top: 8px; }
.studio-aperture canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.studio-camera-portrait { display: block; width: 100%; height: auto; }
.studio-aperture canvas:active { cursor: grabbing; }
.studio-aperture canvas:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.studio-zoom { display: flex; justify-content: space-between; margin: 13px 0 3px; color: var(--studio-text); font-weight: 600; }
.studio-zoom-range { display: block; width: 100%; height: 30px; margin: 0; accent-color: var(--blue); cursor: pointer; }
[data-design="studio"] #guided-camera:not(:empty) { margin: 14px calc(-1 * var(--studio-padding)) 0; }
#studio-camera-cancel { display: block; margin-inline: auto; }
#studio-camera-restart { margin: 8px 0; }

.studio-disclosure { color: var(--studio-text); }
.studio-disclosure > summary {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 24px 8px 0;
  line-height: 1.16;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.studio-disclosure > summary::-webkit-details-marker { display: none; }
.studio-disclosure > summary::after {
  content: "";
  position: absolute;
  right: 7px;
  top: calc(50% - 5px);
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.studio-disclosure[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.studio-disclosure > p { margin: 0 0 9px; color: var(--muted); line-height: 1.3; }
.studio-privacy { margin-top: 8px; }
.studio-privacy > summary { justify-content: flex-start; width: fit-content; }
.studio-consent { min-height: 36px; align-items: flex-start; font-size: 1rem; }
.studio-consent span { align-self: center; }

.studio-loading {
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: min(430px, 64vh);
  gap: 18px;
}
.studio-loading .studio-heading { justify-items: center; }
.studio-loading progress {
  display: block;
  width: min(230px, 70%);
  height: 5px;
  accent-color: var(--blue);
}
.studio-loading .status { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .studio-loading progress { appearance: none; background: var(--studio-selected); border: 0; border-radius: 4px; }
  .studio-loading progress::-webkit-progress-bar { background: var(--studio-selected); border-radius: 4px; }
  .studio-loading progress::-moz-progress-bar { background: var(--studio-selected); }
}

.studio-date { color: var(--muted); line-height: 1.2; margin-top: 6px; }
.studio-map-summary { display: grid; gap: 20px; margin-top: 16px; }
.studio-face-map {
  padding: 12px;
  background: var(--paper);
  border-radius: 15px;
  min-width: 0;
}
.studio-face-map #studio-portrait {
  padding: 10px;
  border-radius: 10px;
  background: var(--studio-frame);
}
.studio-face-map .scene { width: min(100%, 242px); margin-inline: auto; }
.studio-face-map .frame { border-radius: 5px; }
.studio-face-map .caption { display: none; }
.studio-map-finding { margin-top: 10px; color: var(--blue); line-height: 1.24; }
.studio-map-finding #result-legend { font-weight: 600; }
.studio-map-finding .recommendations, .studio-measurement-options .recommendations { margin: 0; padding: 0; }
.studio-face-map #region-treatments { padding: 0; margin: 7px 0 0; }
#face-map-pins { position: absolute; inset: 0; pointer-events: none; }
#face-map-pins button {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  pointer-events: auto;
}
#face-map-pins button::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--white);
}
#face-map-pins button:is(:hover, [aria-pressed="true"])::before {
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue);
}
.studio-face-facts h2, .studio-skin-overview h2 { font-size: 1.27rem; }
.studio-skin-overview { margin-top: 20px; }
.studio-measurements { margin: 8px 0 0; }
.studio-measurements > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 6px 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e8e4de;
  align-items: baseline;
  line-height: 1.24;
}
.studio-measurements dd { margin: 0; color: var(--blue); }
.studio-measurements .studio-measurement-options {
  grid-column: 1 / -1;
  background: var(--paper);
  color: var(--studio-text);
  border-radius: 4px;
  padding: 8px 10px;
}
.studio-measurement-options p { font-size: .94rem; font-weight: 600; }
.studio-measurement-options ul { margin: 6px 0 0; padding: 0; list-style: none; }
.studio-measurement-options li + li { margin-top: 6px; }
.studio-measurement-options small { display: block; color: var(--muted); }
@media (min-width: 511px) {
  .studio-map-summary { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
.studio-selected-photo {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 15px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--paper);
}
.studio-selected-photo img { width: 40px; height: 53px; border-radius: 5px; object-fit: cover; }
.studio-contact { display: grid; gap: 13px; margin: 17px 0 8px; }
.studio-contact label:not(.consent) { display: grid; gap: 5px; font-weight: 600; }
.studio-contact input:not([type="checkbox"]) {
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 9px;
  padding: 9px 13px;
  background: var(--paper);
  color: var(--studio-text);
}
.studio-contact .text-button { justify-self: start; min-height: 42px; }
.studio-contact .studio-privacy { margin-top: 0; }
.studio-contact .studio-privacy summary { min-height: 38px; }
.studio-contact .consent { margin-bottom: 4px; }

.studio-result-actions { margin-top: 17px; }
.studio-result-actions #consultation-details {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.25;
}
.studio-mail { margin-top: 4px; }
.studio-mail .capture-box {
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  margin: 0 0 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.studio-mail .capture-box .note { margin: 0; }
.studio-mail .capture-box label:not(.consent) { display: grid; gap: 4px; }
.studio-mail input[type="email"] { width: 100%; min-height: 44px; padding: 7px; border: 0; border-radius: 4px; }
.studio-mail .capture-box button { width: 100%; }
.studio-end { margin-top: 4px; }

.popup-host {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eee8df;
}
.popup-host:has(.studio-popup[open]) { overflow: hidden; }
.popup-intro {
  container-type: inline-size;
  width: min(480px, 100%);
  border-radius: 17px;
  background: #fffdfa;
  padding: clamp(24px, 6vw, 52px);
}
.popup-brand {
  margin-bottom: 16px;
  color: #172f70;
  font: 1.2rem var(--display);
}
.popup-description { color: #555e72; line-height: 1.3; margin-top: 12px; }
.popup-intro h1 {
  font-size: min(2.6rem, 12cqi);
  white-space: nowrap;
  overflow-wrap: normal;
}
.popup-intro > .button { margin-top: 20px; }
.studio-popup {
  width: min(720px, calc(100vw - 28px));
  height: min(760px, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: 17px;
  overflow: hidden;
}
.studio-popup[open] { display: block; }
.studio-popup::backdrop { background: #121d235c; }
#close-popup {
  position: absolute;
  z-index: 1;
  top: max(4px, env(safe-area-inset-top));
  right: max(7px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--white);
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}
#close-popup:hover { background: #f4f7f8; }
.studio-popup iframe { border: 0; display: block; width: 100%; height: 100%; min-height: 0; }

@media (max-width: 680px) {
  [data-design="studio"][data-embedded] .panel { padding-top: 41px; }
  .studio-popup {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
}
