/* Live controls. Device and page geometry are shared with every story scene. */
.live-story-scene .scene-description { margin-bottom:16px; }
.live-story-scene .connection-status { display:flex; align-items:baseline; gap:8px; max-width:440px; min-height:20px; color:#3f705b; font-size:12px; line-height:1.6; margin:0 0 30px; }
.live-story-scene .connection-status::before { content:""; width:6px; height:6px; border-radius:50%; flex:0 0 6px; background:#368166; align-self:center; }
.live-story-scene .connection-status[data-state="error"] { color:#8d392d; padding:12px; }
.live-story-scene .connection-status[data-state="error"]::before { background:#b35847; }
.live-how { list-style:none; padding:0; margin:0 0 28px; display:grid; gap:20px; }
.live-how li { display:flex; gap:15px; align-items:flex-start; }
.live-how li>span { width:30px; height:30px; border:1px solid #d7ded5; border-radius:50%; display:grid; place-items:center; flex-shrink:0; color:#67786e; font-size:10px; margin-top:2px; }
.live-how strong { display:block; font-size:14px; font-weight:650; color:#243b30; }
.live-how p { margin:3px 0 0; font-size:13px; color:#778179; line-height:1.6; }
.live-tools { display:flex; align-items:baseline; gap:20px; border-top:1px solid #dce1d7; border-bottom:1px solid #dce1d7; padding:16px 0; flex-wrap:wrap; }
.live-settings { flex:1; min-width:200px; }
.live-settings summary { display:flex; align-items:center; gap:9px; cursor:pointer; list-style:none; font-size:12px; color:#415f4f; font-weight:600; }
.live-settings summary::-webkit-details-marker { display:none; }
.live-settings summary svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.live-settings summary>span { font-size:17px; margin-left:auto; color:#8b9a8d; font-weight:400; }
.live-settings[open] { flex-basis:100%; }
.live-settings[open] summary>span { transform:rotate(45deg); }
.live-settings form { display:grid; gap:14px; padding:20px 0 6px; }
.live-settings-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-settings label { display:grid; gap:6px; font-size:11px; color:#68786d; }
.live-settings input,.live-settings select { width:100%; min-width:0; font-size:14px; padding:10px 12px; border:1px solid #cfd9cc; border-radius:10px; background:#fff; color:#253e2e; }
.live-settings .button { min-height:42px; font-size:12px; background:#e6ede1; color:#2e4a36; border-color:#cedbc7; }
.live-settings .fine-print { font-size:10px; line-height:1.6; margin:0; }
.live-story-scene .quiet-button { display:flex; gap:6px; align-items:center; padding:0; font-size:11px; color:#79867c; white-space:nowrap; }
.quiet-button>span { font-size:17px; }
.live-privacy { color:#768077; font-size:11px; line-height:1.65; margin:20px 0 0; max-width:430px; }
.live-session-note { color:#91998f; font-size:10px; line-height:1.65; margin:8px 0 0; max-width:430px; }

.iphone-frame .scene-panel.live-phone-panel { padding:0; background:#f7f8f8; }
.phone-mode-bar { margin-top:40px; padding:4px 13px 8px; flex-shrink:0; background:#f7f8f8; }
.phone-mode-bar .role-tabs { display:flex; width:100%; padding:3px; border-radius:11px; background:#e7ebe7; gap:3px; }
.phone-mode-bar .role-tabs button { display:flex; align-items:center; justify-content:center; gap:6px; width:50%; min-height:31px; padding:5px 7px; border-radius:8px; color:#728076; font-size:12px; font-weight:600; }
.phone-mode-bar .role-tabs button[aria-selected="true"] { color:#214d37; background:white; box-shadow:0 1px 5px #29453513; }
.phone-mode-bar svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
.phone-mode-bar .count { font-size:9px; padding:0 4px; margin:0; background:#ffe2a0; }
.live-phone-view { width:100%; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.live-wa-header { margin:0; height:57px; padding:8px 14px; gap:10px; background:#fff; border-bottom:1px solid #e2e7e1; flex-shrink:0; }
.live-wa-header .wa-avatar { width:33px; height:33px; border-radius:50%; font-size:25px; background:#24664e; color:white; }
.live-brand-avatar svg { width:21px; height:21px; fill:#d8f5da; stroke:none; }
.live-wa-header strong { font-size:14px; line-height:1.25; }
.live-wa-header small { font-size:10px; line-height:1.3; color:#5f7e6d; margin-top:3px; }
.live-channel-label svg { width:21px; height:21px; fill:none; stroke:#4a9671; stroke-width:1.5; stroke-linejoin:round; }
.live-channel-label svg path+path { fill:#4a9671; stroke:none; }
.live-back { border:0; background:none; color:#47745b; font-size:28px; line-height:1; padding:0 2px 2px 0; cursor:pointer; }
.live-wa-messages.messages { height:auto; flex:1; min-height:0; max-height:none; padding:15px 12px; gap:12px; background:#eeeae2; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#b9c9bb transparent; overscroll-behavior:contain; }
.live-wa-messages .message { flex-shrink:0; max-width:94%; margin:0; padding:11px 12px 7px; border-radius:3px 13px 13px 13px; background:#fff; color:#27372e; font-size:14px; line-height:1.5; white-space:pre-wrap; box-shadow:0 1px 2px #253c2010; }
.live-wa-messages .message[data-role="user"] { max-width:92%; align-self:flex-end; background:#d9f6c6; color:#26452e; border-radius:13px 3px 13px 13px; }
.live-wa-messages .message[data-role="human"] { background:#e9e4fa; border:0; color:#4c3e67; }
.live-wa-messages .message-label { font-size:10px; font-weight:600; text-transform:none; letter-spacing:0; line-height:1.4; margin-bottom:5px; color:#448760; }
.live-wa-messages .message[data-role="user"] .message-label { display:none; }
.live-wa-messages .message[data-role="human"] .message-label { color:#79609f; }
.live-wa-messages .message[data-role="system"] { max-width:100%; width:auto; align-self:center; font-size:11px; line-height:1.5; padding:8px 10px; border-radius:9px; background:#e4e8db; color:#677961; box-shadow:none; text-align:center; }
.live-message-time { display:block; margin-top:5px; text-align:right; font-size:9px; color:#96a18e; line-height:1.3; white-space:normal; font-variant-numeric:tabular-nums; }
.live-message-time i { font-style:normal; font-size:11px; color:#39a1d0; letter-spacing:-3px; margin-left:3px; padding-right:3px; }
.live-question-chips { flex-shrink:0; width:100%; display:grid; gap:7px; padding:0; margin:3px 0 0; background:none; border:0; }
.live-question-chips>span { font-size:10px; color:#879080; text-align:center; margin-bottom:1px; }
.live-question-chips button { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; padding:9px 11px; border:1px solid #d3ddcf; border-radius:11px; background:#f8faf4; color:#557453; font-size:11px; text-align:left; line-height:1.4; }
.live-question-chips button:hover { background:#fff; border-color:#87b18d; }
.live-question-chips button>span { font-size:15px; color:#8aa17c; }
.live-wa-form.chat-form { flex-shrink:0; align-items:center; gap:8px; padding:8px 10px 3px; border:0; border-top:1px solid #dde4d9; border-radius:0; margin:0; background:#f7f8f3; box-shadow:none; }
.live-wa-form textarea { width:100%; min-width:0; height:40px; min-height:40px; max-height:90px; padding:9px 12px; border:1px solid #dbe2d8; border-radius:21px; background:#fff; color:#25372b; font-size:14px; line-height:20px; outline:none; resize:none; scrollbar-width:none; }
.live-wa-form textarea::-webkit-scrollbar { display:none; }
.live-wa-form textarea::placeholder { color:#92998e; }
.live-wa-form textarea:focus { border-color:#6d9e7e; box-shadow:0 0 0 2px #88b2941a; }
.live-wa-form .send-button { width:36px; height:36px; min-height:0; border-radius:50%; display:grid; place-items:center; background:#277c59; color:white; }
.send-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.live-chat-bottom.chat-bottom { flex-shrink:0; padding:4px 13px 15px; min-height:30px; background:#f7f8f3; font-size:9px; color:#8b9687; }
.live-chat-bottom .text-button { font-size:10px; color:#607c65; padding:2px 0; text-decoration:none; }
.live-request-link { display:flex; align-items:center; justify-content:space-between; gap:10px; border:0; border-top:1px solid #dce4d8; padding:10px 14px 22px; min-height:48px; flex-shrink:0; color:#2e7754; background:#f7faf4; font-size:12px; font-weight:550; text-align:left; cursor:pointer; }
.live-request-link>span { font-size:17px; }
.live-request-link:hover { background:#eaf3e4; }
.live-phone-panel:not(.has-dialogue) #client-panel>.live-request-link { display:none; }
.live-phone-panel.has-dialogue .live-chat-bottom { padding-bottom:6px; }
.live-owner-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#b9c9bb transparent; padding:13px 12px 18px; background:#edf0e9; }
.live-owner-request { background:white; border:1px solid #e0e7dc; border-radius:15px; padding:16px 14px; box-shadow:0 2px 4px #233a2505; }
.live-request-heading { display:flex; align-items:center; gap:10px; padding-bottom:14px; margin-bottom:15px; border-bottom:1px solid #e8ede4; }
.live-request-heading>span { display:grid; place-items:center; width:34px; height:37px; flex-shrink:0; border-radius:10px; background:#eaf3e4; color:#699461; }
.live-request-heading svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
.live-request-heading h3 { margin:0; color:#2a4832; font-size:20px; letter-spacing:-.04em; }
.live-request-heading .status-chip { display:block; background:none; border:0; padding:0; margin:4px 0 0; color:#7b8c71; font-size:10px; white-space:normal; }
.live-request-heading .status-chip[data-state="human"] { color:#a67a2f; }
.live-owner-request .lead-fields { display:grid; grid-template-columns:1fr; gap:13px; margin:0 0 16px; }
.live-owner-request .lead-fields>div { display:grid; grid-template-columns:1fr 1.4fr; gap:10px; align-items:baseline; }
.live-owner-request .lead-fields dt { font-size:10px; line-height:1.5; text-transform:none; letter-spacing:0; color:#8b9786; }
.live-owner-request .lead-fields dd { margin:0; font-size:12px; line-height:1.5; font-weight:600; color:#405d35; text-align:right; }
.live-owner-request .muted { margin:0; padding-top:12px; border-top:1px solid #e7ede1; font-size:12px; line-height:1.6; color:#627759; }
.live-booking-note { display:block; margin-top:12px; font-size:10px; line-height:1.5; color:#968259; }
.live-phone-panel:not(.has-dialogue) .lead-fields,.live-phone-panel:not(.has-dialogue) .live-booking-note { display:none; }
.live-phone-panel:not(.has-dialogue) .live-owner-request .muted { border:0; padding:0; }
.live-owner-metrics { display:flex; justify-content:space-between; gap:6px; margin:12px 2px; font-size:9px; line-height:1.5; color:#8a9980; }
.live-owner-metrics b { color:#5c7950; }
.live-phone-panel:not(.has-dialogue) .live-owner-metrics { display:none; }
.live-owner-handoff.handoff-card { padding:13px; margin:12px 0; border:1px solid #dde5d5; border-radius:12px; background:#f8faf5; }
.live-owner-handoff .card-heading { display:block; margin-bottom:8px; }
.live-owner-handoff h4 { font-size:14px; color:#47623a; }
.live-owner-handoff .card-heading>span { display:block; text-align:left; margin-top:3px; font-size:10px; line-height:1.5; color:#8b9b7e; }
.live-owner-handoff>p { font-size:11px; line-height:1.6; color:#7a8c6f; }
.live-owner-handoff form { margin-top:14px; }
.live-owner-handoff label { font-size:11px; line-height:1.5; color:#6e794d; }
.live-owner-handoff textarea { font-size:14px; line-height:1.5; min-height:76px; padding:10px; border:1px solid #d6dcbf; border-radius:10px; margin-bottom:10px; }
.live-owner-handoff .button { width:100%; min-height:38px; padding:10px; gap:5px; border-radius:9px; font-size:11px; background:#375e3b; color:#fff; border:0; }
.live-owner-handoff .fine-print { font-size:10px; line-height:1.6; color:#929a7e; }
.live-owner-handoff .text-button { font-size:11px; color:#7e885a; margin-top:6px; }
.live-phone-panel.needs-human .live-owner-handoff { border-color:#e0d5ac; background:#fcf8e9; }
.live-evidence { border:1px solid #dfe7d8; background:#f9fbf5; border-radius:11px; padding:12px; color:#7d9270; }
.live-evidence summary { font-size:11px; cursor:pointer; }
.live-evidence .evidence-item { padding:11px 0; border-color:#dfe8d7; }
.live-evidence .evidence-item strong { font-size:11px; color:#54744a; }
.live-evidence .evidence-item p,.live-evidence .muted { font-size:11px; color:#7f9273; line-height:1.6; }
.live-evidence .evidence-item small { font-size:9px; color:#a0ae95; }

@media(max-width:1100px) and (min-width:801px) {
  .live-how strong { font-size:13px; }
  .live-how p { font-size:12px; }
  .live-tools { gap:12px; }
}
@media(max-width:800px) {
  .desktop-break { display:none; }
  .live-story-scene .connection-status { font-size:11px; margin-bottom:24px; }
  .mobile-scene[data-mobile-scene="5"] { display:flex; align-items:center; flex-direction:column; padding:0 0 22px; background:none; overflow:visible; max-width:none; border-radius:0; }
  .mobile-scene .iphone-frame[data-phone-stage="5"] .scene-panel { padding:0; min-height:0; }
  .mobile-scene .iphone-frame[data-phone-stage="5"] .live-wa-header strong { font-size:14px; }
  .live-wa-form textarea,.live-owner-handoff textarea { font-size:16px; }
  .live-story-scene .phone-mode-bar .role-tabs button { font-size:12px; }
  .live-how { margin-top:18px; }
  .live-settings input,.live-settings select { font-size:16px; }
  .live-privacy,.live-session-note { max-width:100%; }
}
@media(max-width:360px) {
  .phone-mode-bar { padding-inline:10px; }
  .live-question-chips button { font-size:10px; }
  .live-wa-messages .message { font-size:13px; }
  .live-wa-header { padding-inline:11px; }
  .live-owner-request .lead-fields>div { grid-template-columns:.8fr 1.2fr; }
}
