/* Speech belongs to the device or person in the image, with explicit direction. */
.focus-scenes.focus-with-panel img,.focus-scenes.focus-with-panel.focus-right img{width:100%;left:0;right:auto}
.scene-connectors{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible;pointer-events:none}
.scene-connectors path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.scene-connectors .scene-connector-halo{stroke:#fffffff0;stroke-width:7}
.scene-connectors .scene-request-line{stroke:#08476c;stroke-width:2.5}
.scene-connectors .scene-reply-line{stroke:#a36b00;stroke-width:2.5;stroke-dasharray:5 4}
.scene-anchor-ring{fill:#ffffffe8;stroke:#08476c;stroke-width:2}.scene-anchor-dot{fill:#08476c}
.scene-anchor-label{position:absolute;z-index:2;max-width:200px;pointer-events:none;background:#fffffff2;border:1px solid #c3d5df;border-radius:12px;padding:4px 9px;color:#08476c;font-size:10px;line-height:1.3;white-space:nowrap;box-shadow:0 2px 6px #06385312}
.overlay{transform-origin:0 0;z-index:3}
.overlay .paper,.overlay .chat-window{border-radius:16px}
.overlay .paper{border-top:2px solid #fbc100;box-shadow:0 10px 36px #06385324}
.exchange-identity{border:1px solid #c6d8e2;border-bottom:0;border-radius:10px 10px 0 0;margin-bottom:0;padding:7px 11px 3px;font-size:11px;line-height:1.35}
.exchange-flow{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:5px;padding:3px 11px 7px;margin:0 0 9px;border:1px solid #c6d8e2;border-top:0;border-radius:0 0 10px 10px;background:#fff;color:#08476c;font-size:10px;line-height:1.25;font-weight:600}
.exchange-flow .flow-inline-brand{display:inline-flex;gap:3px;align-items:center}.exchange-flow img{width:17px;height:17px;object-fit:contain}.exchange-flow i{font-style:normal;color:#9b7009;font-size:14px}
.has-attached-message .scene-person{display:none}.has-attached-message .scene-context,.has-attached-message .scene-context.is-right{left:auto;right:20px;top:14px;max-width:225px;flex-direction:row}
.has-attached-message .scene-owner-action{font-size:11px;padding:7px 10px;min-height:34px;text-align:left}
.has-attached-message .focus-location{display:none}.has-attached-message .relationships{display:none}
.resident-speaker .speech-question:after,.owner-speaker .speech-question:after,.regie-speaker .speech-answer:after{display:none}
.reading-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px}.reading-meta .chapter-name{margin-bottom:0}
.process-status{display:flex;align-items:center;gap:6px;color:#08476c;background:#edf5fa;border:1px solid #b8d0df;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:650;line-height:1.2;flex-shrink:0}
.process-status svg{width:17px;height:17px;flex-shrink:0}.process-status img{width:19px;height:19px;object-fit:contain}
.process-status[data-mode=human]{background:#fff6d4;border-color:#dfb744;color:#684809}
.process-status[data-mode=exchange]{background:#fff;border-color:#cbdce5}.process-status[data-mode=overview]{background:none;border-color:transparent;color:#526e7f;font-weight:500}
.scene-compact-message{display:none}
.compact-scene .overlay>.conversation,.compact-scene .overlay>.chat-channel,.compact-scene .overlay>.chat-window,.compact-scene .overlay>.paper,.compact-scene .overlay>.approval{display:none!important}
.compact-scene .scene-compact-message{display:block;background:#fff;border:1px solid #b8d0df;border-radius:12px;padding:10px 12px;box-shadow:0 6px 20px #06385318}
.scene-compact-message>strong{font-size:12px;line-height:1.3;color:#08476c;display:block}.scene-compact-message>p{font-size:12px;line-height:1.45;margin:6px 0}.scene-compact-message>small{display:block;font-size:9px;line-height:1.4;color:#526e7f;border-top:1px solid #dde7ed;padding-top:5px}
@media(min-width:601px){.overlay .chat-channel{border-radius:10px 10px 0 0}.has-attached-message .focus-brand{right:20px;bottom:12px;opacity:.9}}
@media(max-width:600px){
 .scene-anchor-label{max-width:160px;font-size:9px;padding:3px 7px}
 .has-attached-message .scene-context,.has-attached-message .scene-context.is-right{top:5px;right:9px;left:auto;max-width:125px}
 .has-attached-message .scene-owner-action{font-size:9px;min-height:30px;max-width:125px;flex-basis:auto;padding:5px 7px}
 .exchange-flow{font-size:9px;padding:2px 8px 5px;gap:4px;margin-bottom:5px}.exchange-flow img{width:14px;height:14px}
 .exchange-identity{font-size:10px;padding:5px 8px 2px}
 .reading-meta{flex-wrap:wrap;gap:4px;margin-bottom:4px}.process-status{font-size:10px;padding:3px 5px;gap:4px}.process-status svg,.process-status img{width:14px;height:14px}
 .reading-meta .chapter-name{font-size:9px}.reading.has-exchange-controls{height:255px;flex-basis:255px}
 .focus-scenes.focus-with-panel img{top:0;height:calc(100% - var(--focus-bottom))}
}
@media(max-width:600px) and (max-height:700px){.reading.has-exchange-controls{height:228px;flex-basis:228px}.process-status{font-size:9px}.reading-meta .chapter-name{font-size:8px}.scene-anchor-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){.scene-connectors *,.scene-anchor-label{transition:none;animation:none}}
