/* The outer frame for the G2 compare (?frame=mockup, only while GONG_SIMULATE is on). Without it the shell root keeps the
   kit's 100dvh and the M27 language row shows. With it: the 844 px phone frame (its 1 px #24473e edge and 24 px radius,
   from design-reference/preview.html .g-phone at max-width 730px), a 30 px band above the header (preview.html .g-status),
   and the M27 language row out of layout. The edge is a ::after overlay, not an outline: an inset outline paints under the
   absolutely positioned backdrop and sheet (kit z-index 5 and 6), which hid the edge where a sheet is open. The overlay
   takes no layout space and no pointer events. Only the chrome changes; nothing inside the header or the sheets. */
/* The page area fills the phone under the band and header, as a flex column, so a screen's percentage heights and flex:1
   resolve against a definite box and its scroll area scrolls inside the phone. The kit's sheet layout adds an empty inert
   .g-base (the sheet's base page; the shell passes none): it is taken out of flow so it takes no space from the page. */
.g-phone{display:flex;flex-direction:column}
.g-phone>[data-shell-page]{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
.g-phone>.g-base{position:absolute;inset:0}
.g-phone.shell-mockup{height:844px;border-radius:24px;box-shadow:none}
.g-phone.shell-mockup::after{content:"";position:absolute;inset:0;box-sizing:border-box;border:1px solid #24473e;border-radius:24px;pointer-events:none;z-index:50}
.g-phone .shell-band{height:30px;flex:none;padding:10px 21px 0;display:flex;align-items:center;justify-content:space-between;font-size:11px;line-height:1;font-weight:600}
.g-phone .shell-band span:last-child{display:flex;gap:5px;align-items:center}
.g-phone .shell-band svg{width:13px;height:13px}
.g-phone.shell-mockup [data-shell-lang-row]{display:none}

/* The "add to home screen" card (core/install.mjs): fixed over the bottom of a home screen, above the page and under
   nothing else (it never shows while a sheet is open). */
.shell-install{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40;max-width:460px;margin:0 auto;padding:14px;background:#fff;border:1px solid var(--g-line);border-radius:14px;box-shadow:0 10px 30px rgb(21 63 54 / .18);font-family:var(--g-body);color:var(--g-ink)}
.shell-install-head{display:flex;align-items:center;gap:12px}
.shell-install img{flex:none;width:44px;height:44px;border-radius:10px}
.shell-install-head>div{flex:1;min-width:0}
.shell-install strong{display:block;font-size:15px;line-height:1.35}
.shell-install p{margin:2px 0 0;font-size:13px;line-height:1.4;color:var(--g-muted)}
.shell-install .g-icon-btn{flex:none;width:44px;height:44px;margin:-6px -8px -6px 0}
.shell-install-steps{margin:12px 0 0;padding:12px 14px 12px 34px;border-radius:10px;background:var(--g-wash);font-size:14px;line-height:1.5}
.shell-install-steps li+li{margin-top:4px}
.shell-install>.g-primary{width:100%;min-height:48px;margin-top:12px;font-size:15px}
/* While the card shows, the home screen scrolls on far enough to bring its last row above it. */
body:has(>.shell-install) .g-home-content::after{content:"";display:block;height:180px}
body:has(>.shell-install .shell-install-steps) .g-home-content::after{height:280px}
