/* The iframe gives fixed footers and dialogs a real phone-sized viewport. */
html.preview-host,html.preview-host body{height:100%;min-height:100dvh;overflow:hidden;background:#edf2f6}
.preview-host body{margin:0;padding:24px;display:grid;place-items:center}
.preview-host body>.app,.preview-host body>.definitions{display:none}
.phone-stage{position:relative;direction:ltr;flex-shrink:0}
.phone-device{position:absolute;left:0;top:0;transform-origin:top left;width:375px;height:812px;box-sizing:border-box;border:0;outline:2px solid #cbd5dc;outline-offset:-2px;overflow:hidden;border-radius:16px;padding:0 0 34px;background:#fff;box-shadow:0 16px 55px #263e5412,0 2px 6px #263e5406}
.phone-device:before{content:'';position:absolute;top:6px;left:50%;transform:translateX(-50%);height:3px;width:38px;border-radius:8px;background:#d5dde3}
.phone-device:after{content:'';position:absolute;bottom:6px;left:50%;transform:translateX(-50%);height:4px;width:104px;border-radius:8px;background:#253035}
.phone-screen{display:block;width:375px;height:734px;border:0;border-radius:0;background:white}
.app-load-error{position:fixed;inset:auto 16px 20px;background:#fff3f6;color:#c8254c;padding:16px;border-radius:12px;font:14px/1.8 IRANYekan,Tahoma;z-index:10000;text-align:center}
@media(display-mode:standalone),(display-mode:fullscreen){html,body{min-height:100dvh;background:white}.app{min-height:100dvh}}

.desktop-osbar{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:white;border-radius:16px 16px 0 0;color:#253035;font:600 17px/22px -apple-system,BlinkMacSystemFont,Arial,sans-serif;direction:ltr;box-sizing:border-box}
.desktop-osbar svg{display:block;flex-shrink:0}

/* 375×812 screen: 44px status bar, 734px app, 34px home area. */
.phone-device:before{display:none}
.phone-device:after{bottom:8px;width:144px;height:5px}


.phone-device.onboarding-preview .desktop-osbar{background:#cde3fe}
.wireframe-mode .phone-device.onboarding-preview .desktop-osbar{background:#e2e2e2}


/* Hub navigation includes its own Figma 24px home area; do not double it. */
.phone-device.hub-preview{padding-bottom:0}
.phone-device.hub-preview .phone-screen{height:768px}
.phone-device.hub-preview:after{display:none}
