/* Identical portrait canvases: viewport resizing scales the complete devices. */
body .comparison { display:flex; align-items:center; justify-content:center; gap:var(--phone-gap,64px); background:#f2f1ef; }
body .lane { flex:none; width:var(--phone-width,422px); height:var(--phone-height,894px); overflow:visible; }
body .lane:first-child { border:0; }
.phone-shell { position:relative; width:422px; height:894px; padding:10px; border-radius:65px; background:#171819; transform:scale(var(--phone-scale,1)); transform-origin:top left; box-shadow:inset 0 0 0 1px #80817f,inset 0 0 0 3px #dededb,inset 0 0 0 4px #666763,inset 0 0 0 6px #161718,0 22px 35px -19px #24232138,0 4px 9px #24232112; }
body .phone-shell .screen, body .editor:fullscreen .phone-shell .screen { width:402px; height:874px; border-radius:55px; overflow:hidden; border:0; position:relative; box-shadow:0 0 0 1px #000; }
.device-button { position:absolute; left:-3px; width:3px; border-radius:2px 0 0 2px; background:linear-gradient(90deg,#72736f,#dededb); }
.device-button.action { top:145px; height:27px; }
.device-button.volume-up { top:203px; height:58px; }
.device-button.volume-down { top:276px; height:58px; }
.device-button.power { left:auto; right:-3px; top:230px; height:88px; border-radius:0 2px 2px 0; background:linear-gradient(90deg,#dededb,#72736f); }
.device-button.camera { left:auto; right:-2px; top:533px; height:55px; width:2px; border-radius:0 2px 2px 0; background:#aaa; }
.phone-status { position:absolute; top:0; left:0; right:0; height:58px; padding:20px 32px 0; display:flex; justify-content:space-between; font:600 16px/22px -apple-system,BlinkMacSystemFont,sans-serif; z-index:15; pointer-events:none; }
.dynamic-island { position:absolute; z-index:16; width:94px; height:28px; top:12px; left:50%; transform:translateX(-50%); border-radius:20px; background:#080809; pointer-events:none; }
.dynamic-island::after { content:''; position:absolute; right:9px; top:9px; width:10px; height:10px; border-radius:50%; background:radial-gradient(circle at 40% 40%,#182234,#06070b 70%); box-shadow:0 0 0 1px #121318; }
.status-icons { display:flex; align-items:center; gap:6px; }
.status-icons svg { width:18px; height:15px; stroke:#111; stroke-width:3; stroke-linecap:round; fill:none; }
.status-icons svg.wifi { stroke-width:2; }
.battery { position:relative; width:24px; height:12px; border-radius:4px; border:1px solid #9b9b9b; padding:1px; }
.battery::before { content:''; display:block; height:100%; background:#111; border-radius:2px; }
.battery::after { content:''; position:absolute; top:3px; right:-3px; height:4px; width:2px; background:#9b9b9b; border-radius:0 1px 1px 0; }
.home-indicator { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:134px; height:5px; background:#111; border-radius:4px; z-index:15; pointer-events:none; }
body .phone-shell .reference-header { top:58px; height:114px; padding:6px 16px 20px; }
body .phone-shell .header-control { width:45px; height:45px; display:flex; }
body .phone-shell .header-control > svg { width:25px; height:25px; }
body .phone-shell .instinct-back { left:16px; width:80px; gap:4px; }
body .phone-shell .instinct-back > span:not(.lg-material) { min-width:28px; height:23px; font-size:13px; }
body .phone-shell .video-call { right:16px; }
body .phone-shell .contact { top:0; gap:0; }
body .phone-shell .instinct-contact-avatar { width:61px; height:61px; }
body .phone-shell .contact b { font-size:17px; padding:8px 13px; }
body .phone-shell .contact b > span:not(.lg-material) { font-size:23px; }
body .phone-shell .wabi-screen { --chat-inset:16px; }
body .phone-shell .wabi-nav.reference-header { gap:10px; padding-inline:var(--chat-inset); }
body .phone-shell .wabi-back { width:36px; height:36px; margin-top:4.5px; }
body .phone-shell .chat-title-pill { height:45px; gap:8px; padding:4px 15px 4px 4px; font-size:16px; }
body .phone-shell .chat-title-pill img { width:36px; height:36px; }
body .phone-shell .messages, body .phone-shell .wabi-content { top:188px; bottom:102px; width:calc(100% - 30px); padding:0 4px 16px; }
body .phone-shell .bubble { font-size:17px; line-height:1.32; max-width:88%; padding:12px 15px; }
body .phone-shell .wabi-bubble { font-size:17px; line-height:1.42; max-width:94%; padding:14px 17px; border-radius:26px; }
body .phone-shell .wabi-bubble.sent { max-width:89%; }
body .phone-shell .wabi-thread-entry { margin-bottom:15px; }
/* Full-width scrolling with shadow room and the shared header inset. */
body .phone-shell .widget-shelf { top:114px; left:0; right:0; transform:none; width:100%; height:204px; }
body .phone-shell .pinned-widget { width:164px; height:164px; border-radius:27px; }
body .phone-shell .pinned-caption { left:13px; right:12px; bottom:24px; }
body .phone-shell .pinned-caption h2, body .phone-shell .countdown-widget .pinned-caption h2 { font-size:24px; }
body .phone-shell .pinned-caption small { font-size:8px; }
body .phone-shell .pinned-caption p { font-size:11px; }
body .phone-shell .countdown-widget .pinned-caption { top:18px; bottom:auto; }
body .phone-shell .has-widget .wabi-content { top:312px; }
body .phone-shell .widget-info { width:16px; height:16px; font-size:11px; right:9px; bottom:9px; }
body .phone-shell .countdown-widget .widget-info { width:14px; height:14px; bottom:6px; }
body .phone-shell .chat-artifact { font-size:17px; gap:12px; padding:9px 14px 9px 9px; border-radius:25px; max-width:94%; }
body .phone-shell .chat-artifact img { width:65px; height:65px; border-radius:17px; }
body .phone-shell .chat-artifact small { font-size:12px; }
body .phone-shell .chat-place-list { max-width:94%; padding:12px; }
body .phone-shell .chat-place-list>div { gap:12px; font-size:15px; }
body .phone-shell .chat-place-list img { width:51px; height:51px; border-radius:14px; }
body .phone-shell .chat-place-list small { font-size:11px; }
body .phone-shell .chat-compose, body .phone-shell .wabi-compose { bottom:34px; width:calc(100% - 32px); height:52px; gap:12px; }
body .phone-shell .chat-compose .add { width:45px; height:45px; font-size:33px; }
body .phone-shell .chat-compose>div { min-width:0; height:45px; padding:10px 14px; font-size:17px; }
body .phone-shell .waveform-icon { width:25px; height:25px; }
body .phone-shell .wabi-compose { padding:8px 19px; font-size:17px; }
body .phone-shell .wabi-compose>span:first-child { display:block; font-size:32px; }
body .phone-shell .mic-icon { width:24px; height:24px; }
/* One ongoing conversation; created widgets collect in a floating rail above it. */
body .phone-shell .wabi-content { top:128px; }
body .phone-shell .has-widget .wabi-content { top:312px; }
body .phone-shell .widget-shelf { display:flex; gap:12px; height:204px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; pointer-events:auto; padding:12px var(--chat-inset) 28px; scroll-snap-type:x mandatory; scroll-padding-inline:var(--chat-inset); overscroll-behavior-x:contain; }
body .phone-shell .widget-shelf::-webkit-scrollbar { display:none; }
body .phone-shell .wabi-screen:not(.has-widget) .widget-shelf { visibility:hidden; pointer-events:none; }
body .phone-shell .pinned-widget { flex:0 0 164px; scroll-snap-align:start; scroll-snap-stop:always; }
.chat-members { display:none; align-items:center; justify-content:flex-end; position:absolute; right:16px; top:6px; height:45px; padding-right:7px; }
.chat-members>.cue { display:inline-flex; margin-right:-7px; }
body .phone-shell .has-members .chat-members { display:flex; }
body .phone-shell .has-members .add-person { visibility:hidden; }
body .phone-shell .wabi-nav .chat-title-pill { position:absolute; left:50%; transform:translateX(-50%); }
body .phone-shell .wabi-nav .add-person { margin-left:auto; }
.chat-members .member-avatar { width:33px; height:33px; font-size:12px; }
body .phone-shell .widget-shelf:focus-visible { outline:2px solid #7b969b; outline-offset:2px; border-radius:27px; }
.member-avatar { display:inline-grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; background:#d8c9e3; color:#533d64; border:2px solid #fff; font:600 12px/1 Selecta,sans-serif; }
.member-avatar.leo { background:#d6e5dd; color:#385847; }
.member-avatar.mia { background:#ecd0c3; color:#774b38; }
body .phone-shell .sender-name { display:flex; align-items:center; gap:6px; margin:0 0 5px 4px; color:#777; }
.sender-name .member-avatar { width:23px; height:23px; font-size:10px; }

/* Optical sizes follow the supplied 402pt-wide Wabi chat references.
   Figma token verification is pending connector access. */
body .phone-shell .chat-title-pill { line-height:20px; letter-spacing:0; }
body .phone-shell .chat-artifact { font-size:16px; line-height:22px; letter-spacing:0; }
body .phone-shell .chat-artifact small { font-size:13px; line-height:18px; }
body .phone-shell .wabi-compose { font-size:17px; line-height:22px; font-weight:400; }
body .phone-shell .header-control > svg { width:24px; height:24px; }
body .phone-shell .wabi-back > svg,
body .phone-shell .instinct-back > svg { stroke-width:2.25; }
body .phone-shell .add-person > svg { width:24px; height:24px; stroke-width:1.75; }
body .phone-shell .video-call > svg { width:28px; height:24px; stroke-width:1.75; }
body .phone-shell .wabi-compose > svg.compose-plus,
body .phone-shell .chat-compose .add > svg {
  width:28px; height:28px; flex:none; stroke-width:2; color:#111;
}
body .phone-shell .wabi-screen :is(b,strong) { font-weight:500; }

body .phone-shell .wabi-back > svg { width:20px; height:20px; stroke-width:2; }
