body.embedded .sidebar,body.embedded .share-hero,body.embedded footer,body.embedded .bottom-note,body.embedded .mobile-brand,body.embedded #ad-preview-notice{display:none!important}body.embedded .shell{display:block;min-height:0}body.embedded main{margin:0;padding:0;width:100%;max-width:none}body.embedded .topbar{height:62px;border:0;margin-bottom:12px}body.embedded .topbar:before{display:none}body.embedded .workspace{gap:22px}body.embedded dialog{max-width:calc(100% - 32px)}body.embedded #toast{position:sticky;bottom:12px;width:fit-content;margin:0 auto;left:auto;transform:none}body.embedded #history-view[hidden]{display:none!important}body.embedded #history-view .intro{display:block!important}@media(max-width:600px){body.embedded .workspace{grid-template-columns:1fr}body.embedded .share-card{min-height:330px}body.embedded .devices-card{min-height:300px}body.embedded .topbar{height:54px}}

/* Position every prompt in the portion of the frame visible on the phone. */
body.embedded dialog[open],body.embedded #pair-dialog[open]{position:fixed;top:calc(var(--visible-workspace-top, 0px) + var(--visible-workspace-height, 600px)/2);bottom:auto;margin:0 auto;transform:translateY(-50%);max-height:calc(var(--visible-workspace-height, 600px) - 24px);overflow:auto;overscroll-behavior:contain}
body.embedded dialog p{overflow-wrap:anywhere}
@media(max-width:600px){body.embedded dialog{padding:22px 18px}body.embedded dialog .dialog-actions{flex-wrap:wrap}body.embedded dialog .dialog-actions .button{min-height:44px;flex:1}}

/* Set by the trusted parent viewport, not the narrower iframe viewport. */
body.embedded.desktop-workspace .topbar{display:none}
body.embedded.desktop-workspace .workspace{grid-template-columns:1.1fr 1fr;gap:22px}
body.embedded.desktop-workspace .share-card{padding-top:38px;min-height:340px}
body.embedded.desktop-workspace .share-card>div:has(>#status){position:absolute;left:22px;top:20px;display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;color:var(--muted)}
body.embedded.desktop-workspace .orbit{height:140px;margin:0 auto;transform:scale(.82);transform-origin:center center}
body.embedded.desktop-workspace .share-card h2{margin:4px 0 10px}
body.embedded.desktop-workspace .card-foot{margin-top:24px;padding:14px}
body.embedded.desktop-workspace .devices-card{padding:22px 20px 0;min-height:340px}
body.embedded.desktop-workspace #nearby-section{margin-top:12px;padding-top:14px}
body.embedded.desktop-workspace #nearby-section label{padding:5px 0}
body.embedded.desktop-workspace .manual-pair{padding-top:12px}

/* Give desktop card edges definition without changing mobile surfaces or send highlights. */
body.embedded.desktop-workspace{--desktop-card-edge:#c7d1df}
body.embedded.desktop-workspace .share-card,
body.embedded.desktop-workspace .devices-card:not(.ready-to-send),
body.embedded.desktop-workspace .transfer-row{border-color:var(--desktop-card-edge)}
