/* Scoped additions to the approved reference. Original page geometry retained. */
#assistantSheet{max-height:min(88dvh,760px)!important;display:flex!important;flex-direction:column!important}
#assistantSheet[hidden]{display:none!important}
#assistantSheet .sheet-header{padding-block:12px!important;flex-shrink:0}
#assistantSheet #assistantContent{padding:16px 20px!important;overflow:auto!important;overscroll-behavior:contain;min-height:0;flex:1;scroll-padding:16px}
#assistantSheet .assistant-foundation-question{height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;font-size:clamp(18px,2vw,23px)!important;line-height:1.55!important;margin:0 0 16px!important}
#assistantSheet .assistant-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#assistantSheet .assistant-foundation-choice{min-width:0!important;min-height:48px!important;padding:12px!important;border-radius:14px!important;line-height:1.5!important;justify-content:center!important;text-align:center!important;font-size:14px!important;height:auto!important}
#assistantSheet .assistant-foundation-choice.is-long{grid-column:1/-1}
#assistantSheet .assistant-foundation-choice[aria-pressed=true]{border-color:#0f3d2e;background:#e9f0eb!important}
#assistantSheet .assistant-preview-action{min-height:44px!important;margin:8px 0!important;padding:11px 16px!important;width:100%;border-radius:14px!important;font-size:14px!important}
#assistantSheet .assistant-foundation-field{margin:12px 0!important;font-size:13px!important;gap:5px!important}
#assistantSheet .assistant-foundation-field input{font-size:16px!important;min-height:46px!important;padding:10px 12px!important;border-radius:12px!important;width:100%;box-sizing:border-box}
#assistantSheet .assistant-compact-note{font-size:12px!important;line-height:1.8!important;color:#68756b!important;margin:10px 0!important}
#assistantSheet .assistant-preview-consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.8}
#assistantSheet .assistant-preview-consent input{flex:none;width:19px;height:19px;margin-top:4px}
#assistantSheet .assistant-progress{height:3px!important;margin:0!important}
#assistantSheet .sheet-footer{padding:9px 18px max(9px,env(safe-area-inset-bottom))!important;flex-shrink:0;position:static!important}
.my-choices-trigger{border:1px solid #d8ded4;background:#fff;color:#0f3d2e;padding:9px 12px;border-radius:999px;font:inherit;font-size:12px;white-space:nowrap}
.choices-drawer{border:1px solid #d8ded4;border-radius:24px 0 0 24px;position:fixed;inset:0 0 0 auto;margin:0;width:min(430px,100%);height:100dvh;max-height:100dvh;max-width:100%;padding:22px;color:#143d31;background:#fbfaf6;box-sizing:border-box;overflow:auto}
[dir=ltr] .choices-drawer{inset:0 auto 0 0;border-radius:0 24px 24px 0}
.choices-drawer::backdrop{background:#0b25195c;backdrop-filter:blur(3px)}
.choices-drawer header{display:flex;align-items:center;justify-content:space-between;gap:12px}.choices-drawer h2{font-size:22px}.choices-drawer button,.choices-drawer a.choices-wa{border:1px solid #d6ddcf;border-radius:12px;padding:10px 14px;color:#0f3d2e;background:white;font:inherit;cursor:pointer}.choices-drawer ul{padding-inline-start:20px;line-height:1.8}.choice-product{display:grid;grid-template-columns:76px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid #e4e6de}.choice-product img{width:76px;height:88px;object-fit:cover;border-radius:10px}.choice-product h3{font-size:14px}.choices-drawer .choices-wa{display:block;text-align:center;background:#0f3d2e;color:white;text-decoration:none;margin:18px 0}
/* Final scene is authored in HTML; lock the panel before any JS or media load. */
body.apple-lamsa .apple-product-scene,body.apple-lamsa .apple-product-scene .hero-media{animation:none!important;transform:none!important;translate:none!important;transition:none!important}
body.apple-lamsa .hero-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media(max-width:360px){#assistantSheet #assistantContent{padding:14px!important}#assistantSheet .assistant-compact-grid{grid-template-columns:1fr}.choices-drawer{padding:16px}}
@media(prefers-reduced-motion:reduce){#assistantSheet *,.choices-drawer{animation:none!important;transition:none!important}}
/* Override the reference shell's fixed viewport height and oversized header. */
body.apple-lamsa #assistantSheet{height:auto!important;min-height:min(360px,82dvh)!important;max-height:88dvh!important;width:min(660px,calc(100vw - 24px))!important}
body.apple-lamsa #assistantSheet .assistant-foundation-header{padding:12px 18px 6px!important}
body.apple-lamsa #assistantSheet .assistant-foundation-heading{gap:8px!important;padding-block:0 6px!important}
body.apple-lamsa #assistantSheet .assistant-foundation-heading>.approved-assistant-icon{width:32px!important;height:32px!important}
body.apple-lamsa #assistantSheet #assistantTitle{font-size:18px!important;line-height:1.5!important}
body.apple-lamsa #assistantSheet .assistant-foundation-navigation{gap:4px!important}
body.apple-lamsa #assistantSheet .assistant-foundation-footer{padding:7px 18px max(7px,env(safe-area-inset-bottom))!important}
body.apple-lamsa #assistantSheet #assistantContent{max-height:calc(88dvh - 138px)!important;flex:1 1 auto!important}
body.apple-lamsa #assistantSheet .assistant-foundation-progress{height:3px!important;margin-bottom:0!important}
body.apple-lamsa #assistantSheet .assistant-preview-action{display:flex!important;justify-content:center!important;align-items:center!important}
body.apple-lamsa #assistantSheet #assistantContent{overflow-x:hidden!important;overflow-wrap:anywhere}
#assistantSheet .assistant-request-reference{font-size:13px!important;line-height:1.7!important;overflow-wrap:anywhere;word-break:break-word}
.choices-drawer p{overflow-wrap:anywhere}
@media(max-width:400px){body.apple-lamsa .site-head{padding-inline:10px!important;gap:6px!important}body.apple-lamsa .language-switch button{min-width:32px!important;padding:5px!important;font-size:9px!important}.my-choices-trigger{padding:7px!important;font-size:10px}body.apple-lamsa #assistantSheet #assistantTitle{font-size:16px!important}body.apple-lamsa #assistantSheet .assistant-foundation-heading>.approved-assistant-icon{width:28px!important;height:28px!important}}

.assistant-request-reference code{display:block;direction:ltr;text-align:start;font:11px ui-monospace,monospace;letter-spacing:-.2px;overflow-wrap:anywhere;margin-top:6px}
