/* Minimal V19-to-real-form bridge.  It deliberately contains no legacy page styles. */
.design-v12 .v12-choice-radio,
.design-v12 .tool-animal-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.design-v12 .v12-choice-radio:focus-visible ~ .mode-top,
.design-v12 .tool-animal-chips label:has(input:focus-visible) {
  outline: 3px solid rgba(91, 72, 217, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.design-v12 .tool-animal-chips label {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd9d1;
  background: #faf9f6;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  color: #5f5b64;
  cursor: pointer;
}

.design-v12 .tool-animal-chips label.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Keep the dynamically created Quick voice control in the V19 action row. */
.design-v12 .ask-actions .voice-controls--quick {
  display: contents;
}

.design-v12 .ask-actions .voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* One voice action contract for Quick, Advanced, Care and follow-up fields. */
.design-v12 .v19-engine .v19-voice-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid #dcd6fa;
  border-radius: 13px;
  background: #f0edff;
  color: var(--purple);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.design-v12 .v19-engine .v19-voice-action:hover { background: #e8e3ff; transform: translateY(-1px); }
.design-v12 .v19-engine .v19-voice-action:active { background: #dfd8ff; transform: none; }
.design-v12 .v19-engine .v19-voice-action:focus-visible { outline: 3px solid rgba(91, 72, 217, .34); outline-offset: 2px; }
.design-v12 .v19-engine .v19-voice-action.voice-button--active { background: #e5e0ff; border-color: #bdb3f4; color: var(--purple); box-shadow: 0 0 0 3px rgba(91, 72, 217, .10); }
.design-v12 .v19-engine .v19-voice-action svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }

.design-v12 .ask-actions .voice-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.design-v12 .ask-actions .voice.voice-button--active {
  background: #e5e0ff !important;
  color: var(--purple) !important;
  border-color: #dcd6fa;
}

.design-v12 .ask-actions .voice-status {
  flex-basis: 100%;
  order: 3;
  margin: 0;
  color: #706c75;
  font-size: 10px;
  line-height: 1.4;
}

.design-v12 .ask-actions .voice-status:empty {
  display: none;
}

/* Existing production result hooks need normal document flow after a Quick submit. */
.design-v12 .hero.quick-result-active {
  overflow: visible;
  align-items: start;
}

.design-v12 .hero-visual.quick-result-active {
  height: auto;
  min-height: 0;
  padding-top: 5.5vw;
}

.design-v12 .v12-tool.quick-result-active {
  position: relative;
  inset: auto;
  width: min(760px, 100%);
  margin: 0 auto;
  max-height: none;
  overflow: visible;
  transform: none !important;
}

.design-v12 .loading-host {
  position: static;
  width: 100%;
  margin: 16px auto 0;
}

.design-v12 .ai-loading-card {
  display: grid;
  min-height: 180px;
  justify-items: center;
  align-content: center;
  padding: 24px;
  border: 1px solid #dcd8ff;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f7f5ff);
  color: var(--ink);
  text-align: center;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.design-v12 .ai-loading-card--leaving { opacity: 0; transform: translateY(-4px); }
.design-v12 .ai-loading-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.design-v12 .ai-loading-visual { position: relative; display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 10px; }
.design-v12 .ai-loading-paw { width: 38px; height: 38px; fill: var(--purple); animation: v19-ai-paw-breathe 2.8s ease-in-out infinite; }
.design-v12 .ai-loading-orbit { position: absolute; inset: 0; z-index: 1; display: block; transform: rotate(0deg); transform-origin: 50% 50%; animation: v19-ai-dot-orbit 2.8s linear infinite; animation-fill-mode: both; pointer-events: none; will-change: transform; }
.design-v12 .ai-loading-dot { position: absolute; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); animation: v19-ai-dot-pulse 1.8s ease-in-out infinite; }
.design-v12 .ai-loading-dot--one { top: 2px; left: calc(50% - 4px); width: 10px; height: 10px; background: var(--teal); }
.design-v12 .ai-loading-dot--two { right: 4px; bottom: 14px; animation-delay: -.6s; }
.design-v12 .ai-loading-dot--three { bottom: 14px; left: 4px; width: 7px; height: 7px; opacity: .45; animation-delay: -1.2s; }
.design-v12 .ai-loading-title { margin: 0; color: var(--purple); font-size: 16px; font-weight: 850; }
.design-v12 .ai-loading-message,
.design-v12 .ai-loading-long-wait { margin: 8px 0 0; color: #706c75; font-size: 13px; line-height: 1.5; }
.design-v12 .ai-loading-message { min-height: 1.6em; opacity: 1; transform: translateY(0); transition: opacity 180ms ease, transform 180ms ease; }
.design-v12 .ai-loading-message--changing { opacity: 0; transform: translateY(3px); }

@keyframes v19-ai-paw-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes v19-ai-dot-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes v19-ai-dot-pulse {
  0%, 100% { opacity: .45; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

.design-v12 #chat-output.advice-result-region {
  display: block;
  width: 100%;
  margin: 20px auto 0;
  overflow-wrap: anywhere;
}

.design-v12 .result-card {
  overflow: hidden;
  border: 1px solid #ded9f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(42, 32, 93, .14);
}
.design-v12 .result-card--enter { animation: v19-ai-result-enter 220ms ease-out both; }
@keyframes v19-ai-result-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.design-v12 .result-header,
.design-v12 .result-section,
.design-v12 .result-actions { padding: 18px; }
.design-v12 .result-header { border-bottom: 1px solid #ebe8f2; background: #f7f5ff; }
.design-v12 .urgency-badge { width: fit-content; margin: 0 0 8px; padding: 5px 9px; border-radius: 999px; background: #e9e6ff; color: var(--purple); font-size: 12px; font-weight: 850; }
.design-v12 .urgency-reason { margin: 8px 0 0; font-weight: 650; }
.design-v12 .result-section { border-bottom: 1px solid #ebe8f2; }
.design-v12 .result-section h3 { margin: 0 0 8px; font-size: 16px; }
.design-v12 .result-section p,
.design-v12 .result-section li { line-height: 1.6; white-space: pre-wrap; }
.design-v12 .result-ai-note { margin: 0 18px 18px; color: #706c75; font-size: 13px; line-height: 1.5; }
.design-v12 .result-card--emergency { border: 3px solid #c33636; }
.design-v12 .result-card--emergency .result-header { background: #fff0f0; }
.design-v12 .result-card--emergency .urgency-badge { background: #c33636; color: #fff; }
.design-v12 .result-card--today .result-header { background: #fff4df; }
.design-v12 .result-card--soon .result-header { background: #f0efff; }
.design-v12 .result-card--monitor .result-header { background: #e9f8f4; }
.design-v12 .v19-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid #ebe8f2;
  background: #faf9ff;
}
.design-v12 .v19-result-actions .button-primary,
.design-v12 .v19-result-actions .button-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.design-v12 .v19-result-action-status { flex: 1 0 100%; margin: 0; }
.design-v12 .new-question-action { min-height: 46px; }

/* V19 presentation for the existing Advanced and Care controls. */
.design-v12 .hero:has(.v19-advanced.active),
.design-v12 .hero:has(#care-flow-panel.active) { overflow: visible; align-items: start; }
.design-v12 .hero-visual:has(.v19-advanced.active),
.design-v12 .hero-visual:has(#care-flow-panel.active) { height: auto; min-height: 0; padding-top: 5.5vw; transform: none !important; filter: none !important; will-change: auto !important; }
.design-v12 .v12-tool:has(.v19-advanced.active),
.design-v12 .v12-tool:has(#care-flow-panel.active) { position: relative; inset: auto; width: min(760px, 100%); margin: 0 auto; max-height: none; overflow: visible; transform: none !important; filter: none !important; backdrop-filter: none; }

.design-v12 .v19-engine .v19-advanced-intro { margin: 0 0 18px; padding: 18px; border: 1px solid #dedbea; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(42, 32, 93, .08); }
.design-v12 .v19-engine .advanced-benefits__head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 14px; }
.design-v12 .v19-engine .advanced-benefits__head h2 { margin: 1px 0 4px; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; }
.design-v12 .v19-engine .advanced-benefits__head p { margin: 0; color: #716b79; font-size: 14px; line-height: 1.5; }
.design-v12 .v19-engine .advanced-benefits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.design-v12 .v19-engine .advanced-benefit { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; padding: 12px; border: 1px solid #e5e1f1; border-radius: 14px; background: #faf9ff; }
.design-v12 .v19-engine .advanced-benefit__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eeeaff; color: var(--purple); }
.design-v12 .v19-engine .advanced-benefit__icon--teal { background: #e4faf5; color: #168b7e; }
.design-v12 .v19-engine .advanced-benefit__icon svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.design-v12 .v19-engine .advanced-benefit h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; line-height: 1.3; }
.design-v12 .v19-engine .advanced-benefit p { margin: 0; color: #716b79; font-size: 12px; line-height: 1.45; }
.design-v12 .v19-engine .advanced-benefits__reassurance { margin: 12px 0 0; color: #625d68; font-size: 12px; line-height: 1.5; }

/* The advisor is the hero's primary product, so its desktop type stays legible. */
.design-v12 .v19-engine .tool-step-label { font-size: 15px; line-height: 1.4; }
.design-v12 .v19-engine .tool-helper { font-size: 13px; line-height: 1.5; }
.design-v12 .v19-engine .v12-path-title b { font-size: 17px; line-height: 1.2; }
.design-v12 .v19-engine .v12-path-title small,
.design-v12 .v19-engine .v12-path-copy { font-size: 14px; line-height: 1.45; }
.design-v12 .v19-engine .v12-mode .mode-top b { font-size: 15px; line-height: 1.25; }
.design-v12 .v19-engine .v12-mode > span:not(.mode-top),
.design-v12 .v19-engine .v12-mode li { font-size: 13px; line-height: 1.45; }
.design-v12 .v19-engine .tool-field-label { font-size: 15px; line-height: 1.35; }
.design-v12 .v19-engine .tool-privacy { font-size: 13px; line-height: 1.5; }
.design-v12 .v19-engine .ask-actions button { font-size: 16px !important; }
.design-v12 .v19-engine textarea { min-height: 108px !important; padding: 14px !important; font-size: 16px !important; line-height: 1.5; }

.design-v12 .v19-engine .v19-wizard-card,
.design-v12 .v19-engine .v19-gate { padding: 22px; border: 1px solid #dedbea; border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #fbfaff 100%); box-shadow: 0 18px 44px rgba(42, 32, 93, .10); color: var(--ink); }
.design-v12 .v19-engine .v19-wizard-intro,
.design-v12 .v19-engine .v19-step-header { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 20px; }
.design-v12 .v19-engine .v19-step-badge { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #eeeaff; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.design-v12 .v19-engine .v19-wizard-intro--care .v19-step-badge { background: #e4faf5; color: #168b7e; }
.design-v12 .v19-engine .v19-wizard-intro h2,
.design-v12 .v19-engine .v19-step-header h2 { margin: 1px 0 5px; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; }
.design-v12 .v19-engine .v19-wizard-intro p,
.design-v12 .v19-engine .v19-step-header p { margin: 0; color: #716b79; font-size: 14px; line-height: 1.5; }
.design-v12 .v19-engine .v19-gate > h3 { margin: 0 0 7px; color: var(--purple); font-size: 16px; }
.design-v12 .v19-engine .v19-gate > p { color: #625d68; font-size: 14px; line-height: 1.55; }

.design-v12 .v19-engine .v19-form-step { min-width: 0; margin: 0; padding: 20px; border: 0; border-radius: 17px; background: #f8f7fc; }
.design-v12 .v19-engine .v19-form-step legend { width: 100%; padding: 0; color: var(--ink); font-size: 22px; font-weight: 900; letter-spacing: -.035em; }
.design-v12 .v19-engine .v19-form-step legend::before { display: inline-grid; width: 22px; height: 22px; margin: 0 8px 0 0; place-items: center; border-radius: 7px; background: #eeeaff; color: var(--purple); font-size: 9px; font-weight: 900; vertical-align: 2px; }
.design-v12 .v19-advanced .form-step[data-step="1"] legend::before { content: "01"; }
.design-v12 .v19-advanced .form-step[data-step="2"] legend::before { content: "02"; }
.design-v12 .v19-advanced .form-step[data-step="3"] legend::before { content: "03"; }
.design-v12 .v19-advanced .form-step[data-step="4"] legend::before { content: "04"; }
.design-v12 .v19-advanced .form-step[data-step="5"] legend::before { content: "05"; }
.design-v12 .v19-care .care-form-step[data-care-step="1"] legend::before { content: "01"; background: #e4faf5; color: #168b7e; }
.design-v12 .v19-care .care-form-step[data-care-step="2"] legend::before { content: "02"; background: #e4faf5; color: #168b7e; }
.design-v12 .v19-care .care-form-step[data-care-step="3"] legend::before { content: "03"; background: #e4faf5; color: #168b7e; }
.design-v12 .v19-engine .v19-step-helper { margin: 8px 0 17px; color: #716b79; font-size: 14px; line-height: 1.5; }
.design-v12 .v19-engine .field-group-label { margin: 16px 0 8px; color: #4d4853; font-size: 15px; font-weight: 900; }
.design-v12 .v19-engine .field-group-label:first-of-type { margin-top: 0; }

.design-v12 .v19-engine .choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.design-v12 .v19-engine .choice-grid--compact { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.design-v12 .v19-engine .choice-grid label { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 34px 10px 12px; border: 1px solid #dedbea; border-radius: 13px; background: #fff; color: #514b58; font-size: 15px; font-weight: 800; line-height: 1.15; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.design-v12 .v19-engine .choice-grid input[type="radio"],
.design-v12 .v19-engine .choice-grid input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.design-v12 .v19-engine .choice-grid label:has(input:checked) { border-color: var(--purple); background: #f0edff; box-shadow: inset 0 0 0 1px rgba(91, 72, 217, .12); color: #4334af; }
.design-v12 .v19-care .choice-grid label:has(input:checked) { border-color: #46cfc0; background: #edfbf8; color: #187c71; }
.design-v12 .v19-engine .choice-grid label:has(input:checked)::after { content: "✓"; position: absolute; right: 12px; margin-left: 0; color: var(--purple); font-size: 13px; font-weight: 950; }
.design-v12 .v19-care .choice-grid label:has(input:checked)::after { color: #168b7e; }
.design-v12 .v19-engine .choice-grid label:has(input:focus-visible),
.design-v12 .v19-engine .consent-row:has(input:focus-visible),
.design-v12 .v19-engine .consent-option:has(input:focus-visible) { outline: 3px solid rgba(91, 72, 217, .34); outline-offset: 2px; }

.design-v12 .v19-engine .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.design-v12 .v19-engine .field-grid > div { min-width: 0; }
.design-v12 .v19-engine .v19-form-step label:not(.consent-row):not(.consent-option):not(:has(input[type="radio"])):not(:has(input[type="checkbox"])),
.design-v12 .v19-engine .v19-gate > form > label:not(.consent-option) { display: block; margin: 15px 0 6px; color: #4d4853; font-size: 15px; font-weight: 900; }
.design-v12 .v19-engine .v19-form-step label span,
.design-v12 .v19-engine .v19-gate label span { color: #817b88; font-size: 12px; font-weight: 600; }
.design-v12 .v19-engine .v19-form-step input:not([type="radio"]):not([type="checkbox"]),
.design-v12 .v19-engine .v19-form-step select,
.design-v12 .v19-engine .v19-form-step textarea,
.design-v12 .v19-engine .v19-gate input[type="email"] { box-sizing: border-box; width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #dedbea; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.45; box-shadow: none; }
.design-v12 .v19-engine .v19-form-step select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b48d9' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.design-v12 .v19-engine .v19-form-step textarea { min-height: 104px; resize: vertical; }
.design-v12 .v19-engine .v19-form-step input:focus,
.design-v12 .v19-engine .v19-form-step select:focus,
.design-v12 .v19-engine .v19-form-step textarea:focus,
.design-v12 .v19-engine .v19-gate input[type="email"]:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91, 72, 217, .16); }
.design-v12 .v19-engine .v19-form-step input::placeholder,
.design-v12 .v19-engine .v19-form-step textarea::placeholder { color: #918b9d; }
.design-v12 .v19-engine .v19-form-step > label + .voice-input-group { margin-top: 0; }
.design-v12 .v19-engine .v19-form-step #description-help,
.design-v12 .v19-engine .v19-form-step #description-counter { margin: 6px 0 0; color: #817b88; font-size: 10px; line-height: 1.45; }

.design-v12 .v19-engine .v19-progress { margin: 0 0 18px; }
.design-v12 .v19-engine .v19-progress progress { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; }
.design-v12 .v19-engine .step-progress,
.design-v12 .v19-engine .care-wizard-progress ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.design-v12 .v19-engine .care-wizard-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.design-v12 .v19-engine .step-progress li,
.design-v12 .v19-engine .care-wizard-progress li { position: relative; min-width: 0; padding: 7px 4px 8px; border-bottom: 2px solid #e3e0eb; color: #8a8490; font-size: 9px; font-weight: 800; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.design-v12 .v19-engine .step-progress li[aria-current="step"],
.design-v12 .v19-engine .care-wizard-progress li[aria-current="step"] { border-color: var(--purple); color: var(--purple); }
.design-v12 .v19-engine .step-progress li[data-complete],
.design-v12 .v19-engine .care-wizard-progress li[data-complete="true"] { border-color: var(--teal); color: #168b7e; }
.design-v12 .v19-engine .step-number { display: block; margin-bottom: 2px; font-size: 10px; }
.design-v12 .v19-engine .step-state { display: none; }
.design-v12 .v19-engine .mobile-step-progress { display: none; }

.design-v12 .v19-engine .v19-wizard-actions,
.design-v12 .v19-engine .care-wizard-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.design-v12 .v19-engine .button-primary,
.design-v12 .v19-engine .button-secondary { min-height: 46px; border-radius: 13px; padding: 11px 16px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.design-v12 .v19-engine .button-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px rgba(91, 72, 217, .20); }
.design-v12 .v19-engine .button-secondary { background: #f0edff; border-color: #dcd6fa; color: var(--purple); }
.design-v12 .v19-engine .button-primary:hover { background: #4d3bc9; transform: translateY(-1px); }
.design-v12 .v19-engine .button-secondary:hover { background: #e8e3ff; }
.design-v12 .v19-engine .button-primary:focus-visible,
.design-v12 .v19-engine .button-secondary:focus-visible { outline: 3px solid rgba(91, 72, 217, .34); outline-offset: 2px; }
.design-v12 .v19-engine .button-primary:disabled { cursor: progress; opacity: .72; transform: none; }

.design-v12 .v19-engine .photo-input { margin-top: 17px; padding: 16px; border: 1px dashed #cfc8ee; border-radius: 15px; background: #fff; }
.design-v12 .v19-engine .photo-input h3 { margin: 0 0 5px; color: var(--ink); font-size: 14px; }
.design-v12 .v19-engine .photo-input__copy { margin: 0; color: #716b79; font-size: 12px; line-height: 1.5; }
.design-v12 .v19-engine .photo-input__format { margin: 8px 0 0; color: #817b88; font-size: 12px; line-height: 1.5; }
.design-v12 .v19-engine .photo-input__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.design-v12 .v19-engine .photo-button { display: inline-flex; min-height: 44px; gap: 7px; align-items: center; padding: 9px 13px; border: 1px solid #dcd6fa; border-radius: 12px; background: #f0edff; color: var(--purple); font-size: 12px; font-weight: 900; cursor: pointer; }
.design-v12 .v19-engine .photo-action-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
.design-v12 .v19-engine .photo-button input { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.design-v12 .v19-engine .photo-preview { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edeaf4; }
.design-v12 .v19-engine .photo-preview[hidden],
.design-v12 .v19-engine .photo-preview img[hidden] { display: none !important; }
.design-v12 .v19-engine .photo-preview img { width: 68px; height: 54px; border-radius: 9px; object-fit: cover; }
.design-v12 .v19-engine .photo-preview p { margin: 0; overflow-wrap: anywhere; color: #5f5967; font-size: 11px; }
.design-v12 .v19-engine .photo-preview .photo-change,
.design-v12 .v19-engine .photo-preview button { grid-column: 2; justify-self: start; min-height: 36px; padding: 7px 10px; font-size: 11px; }
.design-v12 .v19-engine .care-details { margin-top: 10px; padding: 11px 12px; border: 1px solid #e2deec; border-radius: 12px; background: #fff; }
.design-v12 .v19-engine .care-details summary { color: var(--purple); font-size: 11px; font-weight: 900; cursor: pointer; }
.design-v12 .v19-engine .consent-row,
.design-v12 .v19-engine .consent-option { display: flex !important; gap: 9px; align-items: flex-start; margin: 13px 0; padding: 11px; border: 1px solid #e2deec; border-radius: 12px; background: #fff; color: #5d5762; font-size: 11px; font-weight: 650; line-height: 1.45; }
.design-v12 .v19-engine .consent-row input,
.design-v12 .v19-engine .consent-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple); flex: 0 0 auto; }
.design-v12 .v19-engine .field-error,
.design-v12 .v19-engine .form-status--error { margin: 10px 0 0; color: #b52c36; font-size: 11px; font-weight: 750; line-height: 1.45; }
.design-v12 .v19-engine .form-status--error:not(:empty) { padding: 10px 12px; border: 1px solid #efc7ca; border-radius: 11px; background: #fff4f4; }
.design-v12 .v19-engine .form-status--info { margin: 10px 0; padding: 10px 12px; border: 1px solid #bde8e0; border-radius: 11px; background: #effbf8; color: #27766c; font-size: 11px; line-height: 1.45; }

@media (max-width: 700px) {
  .design-v12 .hero-visual:has(.v19-advanced.active),
  .design-v12 .hero-visual:has(#care-flow-panel.active) { padding-top: min(92vw, 430px); }
  .design-v12 .v12-tool:has(.v19-advanced.active),
  .design-v12 .v12-tool:has(#care-flow-panel.active) { width: 100%; padding: 18px !important; }
  .design-v12 .v19-engine .advanced-benefits__grid { grid-template-columns: 1fr; }
  .design-v12 .v19-engine .field-grid { grid-template-columns: 1fr; gap: 0; }
  .design-v12 .v19-engine .choice-grid { grid-template-columns: 1fr; }
  .design-v12 .v19-engine .step-progress { display: none; }
  .design-v12 .v19-engine .mobile-step-progress { display: block; margin: 0 0 14px; padding: 9px 11px; border-radius: 11px; background: #f0edff; color: var(--purple); font-size: 11px; }
  .design-v12 .v19-engine .mobile-step-progress p { margin: 0; }
  .design-v12 .v19-engine .v19-wizard-actions,
  .design-v12 .v19-engine .care-wizard-actions { flex-direction: column-reverse; }
  .design-v12 .v19-engine .v19-wizard-actions button,
  .design-v12 .v19-engine .care-wizard-actions button { width: 100%; }
}

@media (max-width: 700px) {
  .design-v12 .hero.quick-result-active { padding-bottom: 42px; }
  .design-v12 .hero-visual.quick-result-active { padding-top: min(92vw, 430px); }
  .design-v12 .v12-tool.quick-result-active { width: 100%; padding: 18px !important; }
}

/* Use the available canvas on large monitors without scaling text. */
@media (min-width: 1440px) {
  .design-v12 .v12-tool { width: min(790px, 97%); padding: 30px !important; }
  .design-v12 .v12-tool:has(.v19-advanced.active),
  .design-v12 .v12-tool:has(#care-flow-panel.active),
  .design-v12 .v12-tool.quick-result-active { width: min(900px, 100%); }
  .design-v12 .v12-tool textarea { min-height: 126px !important; padding: 16px !important; font-size: 17px !important; }
  .design-v12 .v19-engine .v19-wizard-intro h2,
  .design-v12 .v19-engine .v19-step-header h2,
  .design-v12 .v19-engine .v19-form-step legend { font-size: 25px; }
  .design-v12 .v19-engine .tool-step-label,
  .design-v12 .v19-engine .tool-field-label,
  .design-v12 .v19-engine .field-group-label { font-size: 16px; }
  .design-v12 .tool-animal-chips label,
  .design-v12 .v19-engine .choice-grid label { min-height: 46px; font-size: 16px; }
  .design-v12 .v19-engine .v19-form-step input:not([type="radio"]):not([type="checkbox"]),
  .design-v12 .v19-engine .v19-form-step select,
  .design-v12 .v19-engine .v19-form-step textarea,
  .design-v12 .v19-engine .v19-gate input[type="email"] { min-height: 50px; font-size: 17px; }
  .design-v12 .v19-engine .button-primary,
  .design-v12 .v19-engine .button-secondary,
  .design-v12 .v19-engine .v19-voice-action,
  .design-v12 .v19-engine .ask-actions button { min-height: 48px; font-size: 17px !important; }
}

@media (min-width: 1700px) {
  .design-v12 .v12-tool { width: min(850px, 97%); padding: 34px !important; }
  .design-v12 .v12-tool:has(.v19-advanced.active),
  .design-v12 .v12-tool:has(#care-flow-panel.active),
  .design-v12 .v12-tool.quick-result-active { width: min(940px, 100%); }
  .design-v12 .v12-tool textarea { min-height: 138px !important; }
  .design-v12 .v19-engine .v19-wizard-card,
  .design-v12 .v19-engine .v19-gate { padding: 26px; }
  .design-v12 .v19-engine .v19-wizard-intro h2,
  .design-v12 .v19-engine .v19-step-header h2,
  .design-v12 .v19-engine .v19-form-step legend { font-size: 27px; }
}

/* Functional advisor content must participate in normal page flow on mobile. */
@media (max-width: 700px) {
  html { overflow-x: clip; }
  body.design-v12 { overflow-x: clip; }
  .design-v12 .story-bg { overflow: hidden; }
  .design-v12 .hero,
  .design-v12 .hero.quick-result-active { overflow: visible; padding-bottom: 64px; }
  .design-v12 .v12-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .design-v12 .hero-visual,
  .design-v12 .hero-visual.quick-result-active,
  .design-v12 .hero-visual:has(.v19-advanced.active),
  .design-v12 .hero-visual:has(#care-flow-panel.active) {
    display: block;
    position: relative;
    isolation: isolate;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    overflow: visible;
    transform: none !important;
    filter: none !important;
  }
  .design-v12 .hero-visual::before { display: none; }
  .design-v12 .photo-shell {
    position: absolute;
    inset: clamp(72px, 19vw, 96px) -18px -30px 14%;
    width: auto;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 28px 42px 28px 34px;
    z-index: 0;
    opacity: .94;
  }
  .design-v12 .photo-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251,250,247,.18), rgba(251,250,247,.54));
    pointer-events: none;
  }
  .design-v12 .v12-tool,
  .design-v12 .v12-tool.quick-result-active,
  .design-v12 .v12-tool:has(.v19-advanced.active),
  .design-v12 .v12-tool:has(#care-flow-panel.active) {
    position: relative;
    inset: auto;
    z-index: 2;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 20px 18px max(24px, env(safe-area-inset-bottom)) !important;
    overflow: visible;
    transform: none !important;
    filter: none !important;
  }
  .design-v12 .tool-step-label { font-size: 15px; line-height: 1.4; }
  .design-v12 .tool-helper { font-size: 14px; line-height: 1.5; }
  .design-v12 .v12-path-title b { font-size: 17px; }
  .design-v12 .v12-path-title small,
  .design-v12 .v12-path-copy { font-size: 15px; line-height: 1.45; }
  .design-v12 .v12-mode .mode-top b { font-size: 16px; }
  .design-v12 .v12-mode > span:not(.mode-top),
  .design-v12 .v12-mode li { font-size: 14px; line-height: 1.45; }
  .design-v12 .tool-field-label,
  .design-v12 .v19-engine .field-group-label,
  .design-v12 .v19-engine .v19-form-step label:not(.consent-row):not(.consent-option):not(:has(input[type="radio"])):not(:has(input[type="checkbox"])),
  .design-v12 .v19-engine .v19-gate > form > label:not(.consent-option) { font-size: 15px; line-height: 1.4; }
  .design-v12 .tool-animal-chips label,
  .design-v12 .v19-engine .choice-grid label { min-height: 46px; font-size: 15px; }
  .design-v12 .tool-privacy,
  .design-v12 .v19-engine .v19-step-helper,
  .design-v12 .v19-engine .photo-input__copy,
  .design-v12 .v19-engine .photo-input__format { font-size: 13px; line-height: 1.5; }
  .design-v12 .v12-tool textarea,
  .design-v12 .v19-engine .v19-form-step input:not([type="radio"]):not([type="checkbox"]),
  .design-v12 .v19-engine .v19-form-step select,
  .design-v12 .v19-engine .v19-form-step textarea,
  .design-v12 .v19-engine .v19-gate input[type="email"] { min-height: 48px; font-size: 16px !important; }
  .design-v12 .v12-tool textarea { min-height: 132px !important; }
  .design-v12 .v19-engine .v19-wizard-intro h2,
  .design-v12 .v19-engine .v19-step-header h2,
  .design-v12 .v19-engine .v19-form-step legend { font-size: 23px; line-height: 1.2; }
  .design-v12 .v19-engine .v19-wizard-intro p,
  .design-v12 .v19-engine .v19-step-header p,
  .design-v12 .v19-engine .v19-gate > p { font-size: 14px; }
  .design-v12 .v19-engine .mobile-step-progress { font-size: 13px; }
  .design-v12 .v19-engine .button-primary,
  .design-v12 .v19-engine .button-secondary,
  .design-v12 .v19-engine .v19-voice-action,
  .design-v12 .v19-engine .photo-button,
  .design-v12 .ask-actions button { min-height: 46px; font-size: 16px !important; }
  .design-v12 .result-header,
  .design-v12 .result-section,
  .design-v12 .result-actions { padding: 18px 16px; }
  .design-v12 .result-section p,
  .design-v12 .result-section li,
  .design-v12 .urgency-reason { font-size: 15px; }
  .design-v12 .v19-result-actions { flex-direction: column; align-items: stretch; padding: 16px; }
  .design-v12 .v19-result-actions .button-primary,
  .design-v12 .v19-result-actions .button-secondary { width: 100%; }

  /* Preserve the editorial scroll-progress motion on ordinary mobile devices. */
  .design-v12 .statement-line.line-a { transform: translateX(calc((.5 - var(--statement-p)) * 7.5vw)); }
  .design-v12 .statement-line.line-b { transform: translateX(calc((var(--statement-p) - .5) * 10.5vw)); }
  .design-v12 .statement-line.line-c { transform: translateX(calc((.5 - var(--statement-p)) * 5.25vw)); }

  /* Keep the third story card above the phone composition instead of sharing its space. */
  .design-v12 #step3 {
    top: 12%;
    width: calc(100% - 70px);
    max-width: 430px;
  }
  .design-v12 #step3 h3 { font-size: clamp(46px, 14vw, 58px); }
  .design-v12 .phone { top: 62%; }
}

@media (max-width: 390px) {
  .design-v12 .ask-actions { flex-wrap: wrap; }
  .design-v12 .ask-actions .voice-controls--quick,
  .design-v12 .ask-actions .v19-voice-action,
  .design-v12 .ask-actions .send { width: 100%; flex: 1 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .design-v12 .ai-loading-paw,
  .design-v12 .ai-loading-orbit,
  .design-v12 .ai-loading-dot,
  .design-v12 .result-card--enter { animation: none !important; transform: none !important; }
  .design-v12 .ai-loading-card,
  .design-v12 .ai-loading-message,
  .design-v12 .v19-engine .v19-voice-action { transition: none !important; transform: none !important; }
}
