/* Result previews must reserve their own space, including with long AI guidance. */
html body.beauty-quiz-page .bq-result-modal .bq-result-content{height:auto!important;max-height:none!important;display:block!important;overflow:visible!important}
html body.beauty-quiz-page .bq-result-modal{height:auto!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overflow-x:hidden!important}
html body.beauty-quiz-page #quizResultInsights{height:auto!important;max-height:none!important;grid-auto-rows:auto!important;align-items:stretch!important}
html body.beauty-quiz-page #quizResultInsights>.bq-result-insight{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
html body.beauty-quiz-page .bq-result-modal .bq-practical-preview{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;line-clamp:4!important;overflow:hidden!important;max-height:none!important;white-space:pre-line!important;flex:none!important;position:static!important}
html body.beauty-quiz-page .bq-result-modal .bq-insight-read-more{position:static!important;inset:auto!important;transform:none!important;flex:none!important;align-self:flex-start!important;margin:12px 0 0!important;min-height:40px!important;font-size:13px!important;line-height:1.4!important}
html body.beauty-quiz-page .bq-result-modal .bq-result-recommendation{height:auto!important;max-height:none!important;overflow:hidden!important}
/* Each header control owns a grid cell on phones; none float over the brand. */
@media(max-width:600px){
 html body.beauty-quiz-page .bq-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand brand" "exit share"!important;gap:8px 16px!important;height:auto!important;min-height:0!important;padding:14px 18px!important}
 html body.beauty-quiz-page .bq-header .bq-brand{grid-area:brand!important;position:static!important;transform:none!important;width:auto!important;min-width:0!important;justify-self:center!important;text-align:center!important}
 html body.beauty-quiz-page .bq-brand-name{white-space:normal!important;font-size:20px!important;line-height:1.2!important}
 html body.beauty-quiz-page .bq-header .bq-exit{grid-area:exit!important;position:static!important;transform:none!important;justify-self:start!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;font-size:13px!important;white-space:nowrap!important}
 html body.beauty-quiz-page .bq-header .bq-share{grid-area:share!important;position:static!important;transform:none!important;justify-self:end!important;min-height:44px!important;padding:8px 14px!important;font-size:12px!important;white-space:nowrap!important}
}
/* Keep contact access available below the quiz instead of covering answers. */
html body.beauty-quiz-page .studio-contact-fab{position:relative!important;inset:auto!important;align-self:center!important;margin:20px auto!important;transform:none!important}
html body.beauty-quiz-page:has(#quizContactStep:not([hidden])) .studio-contact-fab,
html body.beauty-quiz-page:has(#quizResultOverlay:not([hidden])) .studio-contact-fab,
html body.beauty-quiz-page:has(.bq-exit-modal.is-visible) .studio-contact-fab{display:none!important}
