/* Scene 05 only. Hardware pixels reuse the approved Visual Master; screen pixels are Chrome captures. */
#portrait-works-app .pw-scene-sheet:has(.pw-story-atelier){max-width:1440px}
#portrait-works-app .pw-story-atelier .pw-device-preview{width:89%;justify-self:center;margin-inline:auto;height:auto;aspect-ratio:1.75;border:0;border-radius:0;overflow:visible;background:transparent;min-width:0;isolation:isolate}
:host(.pw-device-preview){display:block;color:#234d44;font-family:inherit;font-weight:400;white-space:normal}
.pw-devices-stage{position:absolute;inset:0;isolation:isolate}
.pw-device-mac{position:absolute;width:83%;aspect-ratio:840/535;left:0;bottom:4%;isolation:isolate;filter:drop-shadow(0 3px 4px rgba(41,35,25,.12))}
.pw-device-art{position:absolute;inset:0;background-image:url('../images/portrait-works/atelier-devices/visual-master.png');background-repeat:no-repeat;pointer-events:none}
.pw-device-mac>.pw-device-art{background-size:188.809524% auto;background-position:58.981233% 50.328228%;clip-path:polygon(9.4% 6.2%,9.5% 3.5%,10.2% 1.4%,11.5% .6%,91% .6%,92.6% 1.2%,94% 3%,94.3% 5%,94.3% 89.3%,98.5% 89.3%,98.5% 94%,97.5% 95.2%,94% 96%,7% 96%,2% 95.2%,.2% 93%,.2% 89.3%,9.4% 89.3%)}
.pw-device-mac-display{border:0;padding:0;display:block;font:inherit;color:inherit;text-align:left;position:absolute;left:11.19%;top:7.1%;width:81.08%;height:77.0%;overflow:hidden;background:#faf9f6;container-type:inline-size}
.pw-demo-screen,.pw-demo-screen .pw-content{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;background:#faf9f6;overflow:hidden}
.pw-demo-screen[hidden]{display:none}
.pw-demo-screen img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;border:0;padding:0;margin:0}
/* Live sample rows reuse Client Chat markup; all dimensions follow the MacBook screen. */
.pw-device-sample-chat{box-sizing:border-box;position:absolute;left:26.9%;right:2.9%;top:20%;bottom:11%;display:flex;flex-direction:column;gap:1.45cqw;padding:1.1cqw .4cqw;background:#faf9f6;overflow:hidden;text-align:left;font-family:inherit;color:inherit;font-weight:400}
.pw-device-sample-chat .pw-chat-date{align-self:center;margin:0 0 .7cqw;padding:0;font-size:1cqw;line-height:1.6;color:#777a72}
.pw-device-sample-chat .pw-chat-row{display:grid;grid-template-columns:2.73cqw minmax(0,1fr) auto;align-items:start;gap:.73cqw;width:fit-content;max-width:96%;align-self:flex-start}
.pw-device-sample-chat .pw-chat-row.own{grid-template-columns:auto minmax(0,1fr);align-self:flex-end;max-width:94%}
.pw-device-sample-chat .pw-message{grid-column:2;grid-row:1;padding:1.09cqw 1.45cqw;border:.09cqw solid #e2dfd7;border-radius:1.64cqw;background:#fffefa;overflow-wrap:anywhere}
.pw-device-sample-chat .own .pw-message{background:#e9eee9}
.pw-device-sample-chat .pw-message p{margin:0;font:inherit;font-size:1.45cqw;line-height:1.8;white-space:pre-wrap}
.pw-device-sample-chat img.pw-kafka-avatar{display:block;width:2.73cqw;height:2.73cqw;object-fit:cover;border-radius:50%;margin:0;padding:0}
.pw-device-sample-chat .pw-chat-meta{grid-column:3;grid-row:1;align-self:end;font-size:.91cqw;line-height:1.5;color:#777a72;white-space:nowrap}
.pw-device-sample-chat .own .pw-chat-meta{grid-column:1;text-align:right}
.pw-device-client-name{position:absolute;left:2%;top:4.5%;max-width:21%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;font-size:1.818182cqw;font-weight:400;line-height:1.5;letter-spacing:.08em;color:#234d44}
.pw-device-phone{position:absolute;width:23%;aspect-ratio:254/530;right:0;bottom:4%;isolation:isolate;filter:drop-shadow(0 3px 4px rgba(41,35,25,.12))}
.pw-device-phone>.pw-device-art{background-size:624.409449% auto;background-position:95.12012% 55.194805%;clip-path:inset(.8% 1.8% 2% 2.5% round 16% / 8%)}
.pw-device-phone-display{border:0;padding:0;display:block;font:inherit;color:inherit;text-align:left;position:absolute;left:7.1%;top:3.55%;width:86.2%;height:91.85%;border-radius:14%/6.3%;background:#faf9f6;overflow:hidden;container-type:inline-size}
.pw-device-phone-display .pw-portrait-placeholder{position:absolute;inset:0;margin:0;padding:0;color:inherit;font:inherit;text-align:center}
.pw-device-phone-display img{position:absolute;left:10%;top:12%;display:block;width:80%;height:32%;object-fit:contain;max-width:none;border:0;margin:0;padding:0}
.pw-device-phone-display .pw-portrait-placeholder>p{box-sizing:border-box;position:absolute;left:5%;width:90%;margin:0;padding:0;color:inherit;font-family:inherit;font-size:4.375cqw;font-weight:400;line-height:2;letter-spacing:0;white-space:pre-line}
.pw-device-phone-display .pw-portrait-placeholder>p:first-of-type{top:59%}
.pw-device-phone-display .pw-portrait-placeholder>p:last-of-type{top:71%}
.pw-device-phone-title{box-sizing:border-box;position:absolute;left:0;top:46%;width:100%;height:11.5%;padding:0 5%;display:flex;align-items:center;justify-content:center;background:#fbfaf6;color:inherit;font-family:inherit;font-size:6.25cqw;font-weight:400;line-height:1.6;letter-spacing:.08em;text-align:center;pointer-events:none}
.pw-device-phone-title>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-width:100%}
.pw-device-phone-notch{position:absolute;top:4.15%;left:36.5%;width:30%;height:3.65%;border-radius:99px;background:#090a09;pointer-events:none}
@media(max-width:1180px){#portrait-works-app .pw-story-atelier .pw-device-preview{height:auto;aspect-ratio:1.75;max-width:900px;margin:0 auto}}
@media(max-width:760px){#portrait-works-app .pw-story-atelier .pw-device-preview{height:auto;aspect-ratio:1.12;max-width:480px}.pw-device-mac{width:100%;bottom:21%}.pw-device-phone{width:38%;bottom:0}}
@media(max-width:760px){.pw-device-sample-chat{padding-right:35cqw;gap:1cqw}.pw-device-sample-chat .pw-message{padding:.85cqw 1cqw}.pw-device-sample-chat .pw-message p{font-size:1.27cqw}}
.pw-device-mac-display[role="button"],.pw-device-phone-display[role="button"]{cursor:zoom-in}
.pw-device-mac-display:focus-visible,.pw-device-phone-display:focus-visible{outline:2px solid #6b887b;outline-offset:2px}
#portrait-works-app .pw-device-zoom{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:8px 14px 14px;border:1px solid var(--pw-line);border-radius:6px;background:var(--pw-paper);color:var(--pw-green);overflow:hidden}
#portrait-works-app .pw-device-zoom::backdrop{background:rgba(25,34,29,.35)}
#portrait-works-app .pw-device-zoom>.pw-text-action{display:block;min-height:40px;margin:0 0 6px auto;padding:4px 8px;font:inherit;font-size:12px;font-weight:400}
#portrait-works-app .pw-device-zoom-viewer{height:calc(100% - 46px);min-height:0;display:block}
