/* Keep the first question readable and the Continue button in the document flow. */
html.quiz-page{scroll-behavior:auto;scroll-padding-top:12px}
.quiz-field-error{color:#a52b20;font-size:16px;line-height:1.4;margin:6px 0 10px}
.quiz-field-error[hidden]{display:none}
#quiz [hidden]{display:none!important}
.quiz-selected-recipient{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:8px 14px;border:1px solid #bad8b1;border-radius:12px;background:#f2f8ed}
.quiz-selected-recipient .link-button{min-height:44px;padding:8px;font-size:16px;text-decoration:underline}
#quiz input[aria-invalid="true"]{border-color:#a52b20}
#quiz .choice:has(input[aria-invalid="true"]){border-color:#a52b20}
.flow-top #back{padding:0;min-height:24px;font-size:14px}
body[data-page="create"] .form-actions{position:static;border-top:0;padding:0}
body[data-page="create"][data-quiz-step="1"] .form-actions .button{width:100%}
body[data-page="create"][data-quiz-step="1"] .quiz-free-note{text-align:center}
@media(max-width:767px){
  body[data-page="create"] .site-header{min-height:56px;padding:4px 16px;grid-template-columns:44px 1fr 44px}
  body[data-page="create"] .site-header .brand{width:150px;grid-column:2}
  body[data-page="create"] .header-action .button,body[data-page="create"] .header-action .cta-note{display:none!important}
  body[data-page="create"] .announcement{position:static}
  body[data-page="create"][data-quiz-step="1"] .flow-wrap{padding:12px 20px 24px}
  body[data-page="create"][data-quiz-step="1"] .flow-top{margin:0 0 6px;font-size:13px;align-items:center;min-height:24px}
  body[data-page="create"][data-quiz-step="1"] .progress{margin-bottom:14px;height:4px}
  body[data-page="create"][data-quiz-step="1"] .flow-wrap>h1{font-size:30px;line-height:1.15;margin:0 0 16px;letter-spacing:-.6px}
  body[data-page="create"][data-quiz-step="1"] .form-card{padding:0;margin:0;border:0;box-shadow:none}
  body[data-page="create"][data-quiz-step="1"] fieldset{margin:0 0 14px}
  body[data-page="create"][data-quiz-step="1"] legend{font-size:16px;margin-bottom:8px}
  body[data-page="create"][data-quiz-step="1"] .recipient-choices{gap:8px}
  body[data-page="create"][data-quiz-step="1"] .recipient-choices .choice{min-height:48px;padding:10px 12px;font-size:16px;line-height:1.4;gap:10px}
  body[data-page="create"][data-quiz-step="1"] .field{margin:0 0 14px}
  body[data-page="create"][data-quiz-step="1"] .field label{font-size:16px;margin-bottom:6px}
  body[data-page="create"][data-quiz-step="1"] #name{min-height:48px;padding:10px 12px;font-size:18px;line-height:1.4;scroll-margin:20px}
  body[data-page="create"][data-quiz-step="1"] .form-actions{margin:12px 0 0;gap:0}
  body[data-page="create"][data-quiz-step="1"] .form-actions .button{min-height:50px;padding:12px 18px;font-size:17px}
  body[data-page="create"][data-quiz-step="1"] .quiz-free-note{font-size:16px;line-height:1.5;margin:8px 0 0}
  body[data-page="create"][data-quiz-step="1"] .flow-wrap>.fine.center{display:none}
}

/* One document scrolls; the action panel follows the host's visible viewport. */
body[data-page="create"] .site-footer,body[data-page="create"]>.analytics-preferences-inline{display:none!important}
body[data-page="create"] .site-header{min-height:56px;height:56px;padding:2px 20px;grid-template-columns:1fr auto 1fr}
body[data-page="create"] .site-header .brand{width:170px;height:50px;grid-column:2}
body[data-page="create"] .site-header .header-action,body[data-page="create"] .site-menu{display:none!important}
body[data-page="create"] .announcement{position:static;min-height:32px;height:32px;padding-block:2px;font-size:13px}
body[data-page="create"] .flow-wrap{max-width:1000px;padding:16px 28px 150px!important;margin:auto}
body[data-page="create"] .flow-top{margin-bottom:10px;font-size:16px;line-height:1.4}
body[data-page="create"] .progress{margin-bottom:16px;height:5px}
body[data-page="create"] .flow-wrap>h1{font-size:36px;line-height:1.2;margin:0 0 14px;letter-spacing:-.5px}
body[data-page="create"] .intro{font-size:18px;line-height:1.5;margin:0 0 18px}
body[data-page="create"] .form-card{margin:0;padding:22px 24px}
body[data-page="create"] .field label,body[data-page="create"] legend{font-size:18px;line-height:1.45}
body[data-page="create"] input:not([type="radio"]):not([type="checkbox"]),body[data-page="create"] textarea,body[data-page="create"] select{font-size:18px!important;line-height:1.5;min-height:50px}
body[data-page="create"] textarea{min-height:150px}
body[data-page="create"] .choice{font-size:18px;line-height:1.4;padding:14px;min-height:58px}
body[data-page="create"] .choice-description{font-size:16px;line-height:1.45;margin-top:5px}
body[data-page="create"] .recommended-choice:not(:has(input:checked)){background:#fff;border-color:#dce0e1;box-shadow:none}
body[data-page="create"] .voice-choices{grid-template-columns:1fr}
body[data-page="create"] .voice-choices .choice{flex-direction:row;text-align:left;justify-content:flex-start;font-size:18px}
body[data-page="create"] .voice-choices .choice-description{display:block}
body[data-page="create"] .help,body[data-page="create"] .fine,body[data-page="create"] .service-promise,body[data-page="create"] .terms-note{font-size:16px;line-height:1.5}
body[data-page="create"] .flow-wrap>.fine.center{display:none}
.quiz-intro-note{font-size:16px;line-height:1.5;color:#405a48;margin:0 0 16px}
.quiz-action-dock{position:fixed;inset:auto 0 0;z-index:25;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fffffff7;border-top:1px solid #dce6d7;box-shadow:0 -4px 18px #17352310}
body[data-page="create"] .quiz-action-dock .form-actions{max-width:944px;display:flex;gap:16px;align-items:center;margin:0 auto!important;padding:0!important;position:static!important}
body[data-page="create"] .quiz-action-dock .button{flex:1;min-height:52px;font-size:18px;padding:12px 20px;width:auto}
body[data-page="create"] .quiz-action-dock #back{min-height:48px;font-size:17px;padding:8px 12px}
body[data-page="create"] .quiz-free-note{font-size:16px;line-height:1.4;text-align:center;margin:8px auto 0}
html.quiz-embedded .quiz-action-dock{bottom:auto;top:max(0px,calc(var(--ps-visible-bottom,100dvh) - var(--quiz-dock-height,124px)))}
#quiz textarea[aria-invalid="true"],#quiz select[aria-invalid="true"]{border-color:#a52b20}
.quiz-story-help{font-size:16px;line-height:1.5;margin:0 0 12px;color:#405a48}
.quiz-starters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.quiz-starter{font-size:16px;line-height:1.4;min-height:44px;padding:9px 12px;border:1px solid #b9cdb4;background:#f5faf2;border-radius:10px;color:#245335;text-align:left}
.speech-button{display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;min-height:50px;border:2px solid #31743c;background:#f0f8ec;width:100%;margin:0 0 8px}
.speech-status:empty{display:none}
button[data-cookie-preferences],.analytics-preferences-inline button{border:0;background:none;padding:4px 0;text-decoration:underline;font:inherit;color:inherit}
@media(max-width:767px){
 body[data-page="create"] .flow-wrap{padding:14px 18px 150px!important}
 body[data-page="create"] .flow-wrap>h1{font-size:29px!important;margin-bottom:12px}
 body[data-page="create"] .form-card{padding:0!important;border:0;box-shadow:none;margin:0!important}
 body[data-page="create"] .field{margin-bottom:18px}
 body[data-page="create"] fieldset{margin-bottom:14px}
 body[data-page="create"] .intro{font-size:17px;margin-bottom:16px}
 body[data-page="create"] .flow-top{font-size:16px!important}
 .quiz-action-dock{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
 .quiz-intro-note{margin-bottom:12px}
}

/* Country-aware phone entry: native selector and readable, persistent feedback. */
.phone-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px}
.phone-fields .field{min-width:0}.phone-fields select,.phone-fields input{width:100%;min-width:0}
.phone-fields .help{font-size:16px;line-height:1.5}.phone-normalized{color:#245d35;margin:8px 0 0;overflow-wrap:anywhere}
@media(max-width:600px){.phone-fields{grid-template-columns:minmax(0,1fr);gap:0}}

/* Keep the next action beside the preview, readable and reachable on phones. */
.preview-next-actions{display:grid;gap:12px;margin:24px 0 0;text-align:center}
.preview-next-actions .button{width:100%;min-height:50px;font-size:18px}
.preview-price-note,.preview-edit-help,.preview-edit-note{font-size:16px;line-height:1.5;margin:0}
.preview-edit-help{color:#405a48}.preview-edit-note{padding:14px;background:#f2f8ef;border-radius:10px;margin-bottom:18px}.preview-edit-note a{text-decoration:underline}
.clear-story-prompt{min-height:44px;font-size:16px;margin:6px 0 12px}
.clear-story-prompt[hidden],.feedback-edit[hidden]{display:none}
.preview-feedback .feedback-edit{font-size:17px;margin:14px 0;min-height:48px}
#song-notification-status{font-size:16px;line-height:1.5;text-align:left;background:#f4f8ef;padding:12px;border-radius:8px}
@media(max-width:600px){body[data-page="song"] .flow-wrap{padding:20px 18px 48px}body[data-page="song"] .flow-wrap>h1{font-size:34px;line-height:1.15;margin:10px 0}body[data-page="song"] .preview-shell{padding:20px 16px}body[data-page="song"] .preview-symbol{font-size:32px;margin-bottom:8px}.preview-next-actions{margin-top:18px}}
