/* Prepared scenes use the same visual language as the live chat. */
.wa-header { display:flex; align-items:center; gap:10px; height:57px; flex-shrink:0; margin-top:40px; padding:8px 14px; background:#fff; color:#17281e; border-bottom:1px solid #e2e7e1; position:relative; z-index:1; }
.wa-avatar { width:33px; height:33px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; background:#24664e; color:#d8f5da; font-size:25px; font-weight:650; }
.story-brand-avatar svg { width:21px; height:21px; fill:#d8f5da; }
.wa-header>div { min-width:0; flex:1; }
.wa-header strong { display:block; font-size:14px; line-height:1.25; letter-spacing:-.02em; }
.wa-header small { display:block; font-size:10px; line-height:1.3; color:#5f7e6d; margin-top:3px; }
.story-header-tag { font-size:10px; color:#83a38b; }
.wa-thread,.story-screen-body { display:flex; flex-direction:column; flex:1; min-height:0; padding:15px 12px 20px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#b9c9bb transparent; background:#eeeae2; }
.wa-thread { align-items:flex-start; gap:10px; }
.wa-day { align-self:center; padding:3px 8px; background:#ffffffa6; color:#899788; border-radius:6px; font-size:9px; line-height:1.4; margin-bottom:2px; }
.wa-bubble { width:fit-content; max-width:94%; padding:10px 12px 7px; border-radius:3px 13px 13px 13px; box-shadow:0 1px 2px #253c2010; flex-shrink:0; }
.wa-bubble p { font-size:14px; line-height:1.5; color:#27372e; margin:0; }
.wa-mine { align-self:flex-end; background:#d9f6c6; border-radius:13px 3px 13px 13px; }
.wa-received { align-self:flex-start; background:white; }
.wa-time { display:block; text-align:right; font-size:9px; line-height:1.3; color:#96a18e; margin-top:5px; font-variant-numeric:tabular-nums; }
.wa-time i { font-style:normal; color:#39a1d0; font-size:11px; letter-spacing:-3px; margin-left:3px; padding-right:3px; }
.wa-ai-label { display:block; font-size:10px; color:#448760; font-weight:600; margin-bottom:5px; }
.wa-quote { display:block; font-size:23px; font-weight:650; line-height:1.3; letter-spacing:-.045em; color:#2c6240; border-top:1px solid #e4ece0; padding-top:8px; margin:9px 0; }
.wa-composer { display:flex; align-items:center; gap:8px; min-height:65px; padding:8px 10px 18px; background:#f7f8f3; border-top:1px solid #dde4d9; flex-shrink:0; }
.wa-composer>div { display:flex; align-items:center; flex:1; min-width:0; height:40px; border:1px solid #dbe2d8; border-radius:21px; padding:9px 12px; background:#fff; font-size:14px; color:#92998e; }
.story-send { width:36px; height:36px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; background:#277c59; color:white; }
.story-send svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.wa-owner-thread { background:#edf0e9; }
.wa-request { width:100%; padding:16px 14px; border-radius:15px; border:1px solid #e0e7dc; background:#fff; box-shadow:0 2px 4px #233a2505; flex-shrink:0; }
.wa-request>.wa-ai-label { margin:0 0 10px; }
.wa-request-title { display:flex; align-items:center; gap:10px; padding-bottom:14px; border-bottom:1px solid #e8ede4; margin:0 0 15px; }
.wa-request-title>span { width:34px; height:37px; display:grid; place-items:center; flex-shrink:0; border-radius:10px; background:#eaf3e4; color:#699461; font-size:22px; }
.wa-request-title strong { display:block; font-size:20px; line-height:1.2; letter-spacing:-.04em; color:#2a4832; }
.wa-request-title small { display:block; font-size:10px; color:#7b8c71; margin-top:4px; }
.wa-request dl { display:grid; gap:13px; margin:0 0 16px; }
.wa-request dl>div { display:grid; grid-template-columns:1fr 1.4fr; align-items:baseline; gap:10px; }
.wa-request dt { font-size:10px; line-height:1.5; color:#8b9786; }
.wa-request dd { font-size:12px; line-height:1.5; font-weight:600; color:#405d35; text-align:right; margin:0; }
.wa-request-price { display:flex; justify-content:space-between; align-items:baseline; gap:10px; border-top:1px solid #e7ede1; padding-top:12px; }
.wa-request-price>span { font-size:10px; color:#829476; }
.wa-request-price strong { font-size:27px; letter-spacing:-.05em; line-height:1.2; font-weight:650; color:#315c32; }
.wa-request-status { display:flex; align-items:center; gap:6px; margin-top:12px; font-size:10px; line-height:1.5; color:#968259; }
.wa-request-status i { width:5px; height:5px; border-radius:50%; background:#bca16a; flex-shrink:0; }
.wa-summary-note { align-self:center; font-size:11px; line-height:1.6; color:#7a8c6f; text-align:center; padding:10px; flex-shrink:0; }
.price-screen { background:#edf0e9; gap:0; }
.price-screen .panel-kicker { font-size:10px; letter-spacing:.06em; font-weight:600; color:#87997d; margin:3px 0 10px; }
.price-screen .panel-title { font-size:28px; letter-spacing:-.045em; line-height:1.12; margin:0 0 20px; color:#2b4a34; }
.price-editor { padding:15px; border:1px solid #d7e2d0; border-radius:14px; background:#fbfdf7; flex-shrink:0; }
.price-editor label { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:10px; font-size:11px; font-weight:600; color:#6d8261; }
.price-editor label>span { font-size:11px; color:#577648; }
.price-editor output { font-size:28px; color:#355f3a; letter-spacing:-.05em; }
.calc-range { width:100%; min-height:28px; height:28px; margin:2px 0 0; accent-color:#417855; cursor:ew-resize; }
.range-labels { display:flex; justify-content:space-between; font-size:10px; color:#94a189; margin-top:4px; }
.price-result { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 10px; margin-top:13px; padding:16px; border:1px solid #dce6d5; border-radius:14px; background:white; color:#365b3c; flex-shrink:0; }
.price-result small { display:block; font-size:12px; color:#8a9b7e; margin-bottom:6px; }
.price-result strong { display:block; font-size:35px; font-weight:650; letter-spacing:-.055em; line-height:1.15; }
.price-arrow { font-size:25px; color:#8eaa7a; }
.price-formula { grid-column:1/-1; font-size:11px; color:#91a383; margin:6px 0 0; }
.apply-example,.takeover-button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:12px 13px; border:0; border-radius:11px; background:#375e3b; color:white; font-size:12px; font-weight:600; line-height:1.45; text-align:left; cursor:pointer; }
.apply-example { margin-top:16px; flex-shrink:0; }
.apply-example:hover,.takeover-button:hover { background:#284c30; }
.example-status { font-size:11px; line-height:1.6; color:#87987b; margin:12px 1px 0; }
.handoff-screen { background:#eeeae2; }
.handoff-chat { display:flex; flex-direction:column; gap:12px; }
.scenario-message { max-width:94%; font-size:14px; line-height:1.5; padding:11px 12px; border-radius:3px 13px 13px 13px; box-shadow:0 1px 2px #253c2010; }
.from-client { align-self:flex-end; background:#d9f6c6; color:#26452e; border-radius:13px 3px 13px 13px; }
.from-agent { align-self:flex-start; background:#fff; color:#27372e; }
.handoff-alert { display:flex; align-items:center; gap:10px; padding:13px; border:1px solid #e0d5ac; border-radius:12px; background:#fcf8e9; }
.handoff-alert>span { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; border-radius:50%; background:#f3e9c6; color:#a78b47; font-size:18px; }
.handoff-alert strong { display:block; font-size:13px; color:#8a7444; }
.handoff-alert small { display:block; font-size:11px; color:#a69367; margin-top:3px; }
.takeover-result { padding:12px; border-radius:3px 13px 13px 13px; background:#e9e4fa; color:#4c3e67; }
.takeover-result small { display:block; font-size:10px; color:#79609f; }
.takeover-result p { margin:6px 0 0; font-size:14px; line-height:1.5; }
.stage-bottom-note { text-align:center; font-size:11px; line-height:1.6; color:#8b967f; margin:16px 5px 0; }

/* Short, non-looping entrances; content is visible without animation support. */
.iphone-frame .scene-panel.is-active:not([data-panel="5"]) { animation:screen-appear .22s ease-out; }
.iphone-frame .scene-panel.is-active .wa-entry { animation:message-appear .32s ease-out var(--message-delay,0s) backwards; }
.iphone-frame .scene-panel.is-active .ios-notification { animation:message-appear .38s ease-out var(--arrival,0s) backwards; }
@keyframes screen-appear { from { opacity:.7; } to { opacity:1; } }
@keyframes message-appear { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@media(max-height:780px) and (min-width:801px) {
  .wa-thread { gap:8px; padding:10px; }
  .wa-bubble { padding:9px 10px 6px; }
  .wa-bubble p,.scenario-message,.takeover-result p { font-size:13px; }
  .wa-quote { font-size:21px; padding-top:6px; margin:7px 0; }
  .wa-request { padding:13px 12px; }
  .wa-request dl { gap:10px; }
  .price-screen .panel-title { font-size:25px; margin-bottom:14px; }
  .price-result { padding:13px; }
  .price-editor { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { .iphone-frame .scene-panel.is-active,.iphone-frame .scene-panel.is-active .wa-entry,.iphone-frame .scene-panel.is-active .ios-notification { animation:none; } }
