/* Independent preview. Gemini design: quiet, full-width bottom navigation. */
.mobile-page-tools{display:none}
@media(max-width:899px), (max-width:1100px) and (max-height:500px){
 .mobile-deck{height:100svh;height:100dvh}
 .mobile-nav{order:2;display:flex;justify-content:stretch;gap:0;min-height:52px;padding:0 12px calc(14px + env(safe-area-inset-bottom));border:0;border-top:1px solid #d7e5ee;background:rgba(248,252,255,.96);box-shadow:0 -4px 20px #244d6605;z-index:5}
 .mobile-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;max-width:none;min-height:52px;padding:6px 2px;border:0;border-radius:0;background:none;color:#728897;font-size:10px;font-weight:500;box-shadow:none}
 .mobile-nav button svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none}
 .mobile-nav button[aria-current=page]{background:none;border:0;color:#1c6687;box-shadow:none;font-weight:700}
 .mobile-nav button[aria-current=page]:before{content:"";position:absolute;top:0;left:calc(50% - 10px);width:20px;height:2px;border-radius:0 0 2px 2px;background:#2684aa}
 .mobile-nav button:focus-visible{outline:2px solid #2684aa;outline-offset:-3px}
 .mobile-track{order:1}
 .mobile-page{padding:12px 12px 14px}
 .mobile-page-tools{display:flex;width:min(100%,440px);justify-content:flex-end;min-height:44px;margin-bottom:8px}
 .mobile-page-tools .mobile-guide{border:0;border-radius:0;background:none;color:#567a91;padding:0 4px;min-width:60px;min-height:44px;font-size:12px;font-weight:500}
 .mobile-guide:after{content:" ↗"}
 .mobile-page--room .room{--fw:min(calc((100dvh - 92px - env(safe-area-inset-bottom))*9/16),calc(100vw - 24px));--fh:calc(var(--fw)*16/9);width:var(--fw);height:var(--fh)}
 .icp-record{z-index:6!important;bottom:calc(2px + env(safe-area-inset-bottom))!important;right:0!important;width:100%;text-align:center;font-size:8px!important;line-height:10px!important;opacity:.65}
}
/* Mobile scene fills its allocated viewport instead of centering a 9:16 card. */
@media(max-width:899px) and (orientation:portrait){
 .mobile-page--room{padding:0;justify-content:stretch;overflow:hidden}
 .mobile-page--room .room{--fw:100vw;--fh:calc(100dvh - 66px - env(safe-area-inset-bottom));width:100%;height:100%;min-height:0;max-width:none;border-radius:0;box-shadow:none;aspect-ratio:auto}
 .mobile-page--room .backdrop-image{object-fit:cover}
}
@media(max-width:899px) and (orientation:portrait){
 .mobile-page--room .room{--stage-extra:calc(100dvh - 66px - env(safe-area-inset-bottom) - 100vw * 16 / 9)}
 /* Keep the width-calibrated animated sprite attached to the height-anchored desk. */
 .mobile-page--room .workstation-group .walk-wander{translate:0 calc(var(--stage-extra) * .48)}
 .mobile-page--room>.room>.walk-wander.front{translate:0 calc(var(--stage-extra) * .65)}
}
/* Compact, readable mobile overview pages; short viewports remain scrollable. */
@media(max-width:899px) and (orientation:portrait){
 .mobile-page--left,.mobile-page--right{position:relative;padding:10px 10px 12px}
 .mobile-page>.wide-rail{gap:8px}
 .mobile-page .wide-card{padding:11px 14px;border-radius:16px}
 .mobile-page .wide-card h2{font-size:15px;margin-bottom:7px}
 .mobile-page .wide-card h2 small{display:none}
 .mobile-page .wide-card h3{font-size:12px;margin:5px 0}
 .mobile-page-tools{position:absolute;right:20px;top:12px;width:auto;min-height:36px;z-index:2;margin:0}
 .mobile-page-tools .mobile-guide{min-height:36px;font-size:11px}
 .mobile-page .wide-kicker{font-size:9px!important;letter-spacing:1px;padding-right:55px}
 .mobile-page .wide-host .wide-name{font-size:25px;margin:3px 0}
 .mobile-page .wide-realname{font-size:12px}
 .mobile-page .wide-host .wide-jobs{margin-top:6px}
 .mobile-page .wide-host .wide-jobs ul{gap:4px;flex-wrap:wrap;justify-content:flex-start}
 .mobile-page .wide-host .wide-jobs ul::before{display:none}
 .mobile-page .wide-host .wide-jobs li{font-size:11px;padding:4px 8px}
 .mobile-page .wide-host .wide-edu{font-size:10px;line-height:1.5;margin-top:6px!important;padding-top:5px}
 .mobile-page .wide-contact{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .mobile-page .wide-contact h2,.mobile-page .wide-contact-info{grid-column:1/-1}
 .mobile-page .wide-contact h2{margin:0}
 .mobile-page .wide-reveal,.mobile-page .wide-download{font-size:12px;min-height:44px;margin:0;border-radius:10px}
 .mobile-page .wide-radar{margin:0 0 4px}
 .mobile-page .wide-radar svg{max-width:300px}
 .mobile-page .wide-platforms{gap:6px}.mobile-page .wide-tags{gap:5px}
 .mobile-page .wide-tags li{font-size:11px;padding:3px 8px}
 .mobile-page .wide-tool-groups{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .mobile-page .wide-tool-group{gap:4px}.mobile-page .wide-tool-group h3{margin:0 0 4px}
 .mobile-page .wide-tool-text{gap:4px;flex-wrap:wrap;font-size:11px}
 .mobile-page .wide-tool-text li{font-size:11px;padding:3px 5px}
 .mobile-page .wide-rail-right .wide-ai{padding:12px 14px;border-radius:16px}
 .mobile-page .wide-ai-intro{font-size:11px;line-height:1.45;margin:0 0 8px!important}
 .mobile-page .wide-ai-list{gap:5px}
 .mobile-page .wide-ai-item{min-height:50px;padding:6px 9px;border-radius:10px;gap:8px}
 .mobile-page .wide-ai-copy b{font-size:13px}.mobile-page .wide-ai-copy span{font-size:10px}
 .mobile-page .wide-ai-ico{width:28px;height:28px}
 .mobile-page .wide-rail-right .wide-timeline{height:clamp(320px,calc(100dvh - 330px),470px);min-height:320px;padding:12px 14px;border-radius:16px}
 .mobile-page .wide-lv-stage{min-height:250px}
 .mobile-page .wide-lv-node{--r:13px;gap:8px}.mobile-page .wide-lv-node.is-now{--r:18px}
 .mobile-page .wide-lv-txt b{font-size:13px;letter-spacing:0}
 .mobile-page .wide-timeline[data-node-count] .wide-lv-node.is-now .wide-lv-txt b{font-size:14px}
 .mobile-page .wide-lv-txt time{font-size:10px;letter-spacing:0}
 .mobile-page .wide-lv-hint{font-size:10px;margin-top:2px!important}
}
@media(max-width:899px) and (orientation:portrait) and (max-height:740px){
 .mobile-page .wide-card,.mobile-page .wide-rail-left .wide-toolkit{padding:8px 12px}
 .mobile-page>.wide-rail{gap:6px}
 .mobile-page .wide-host .wide-name{font-size:23px}
 .mobile-page .wide-host .wide-jobs{margin-top:2px!important}
 .mobile-page .wide-host .wide-jobs>span{font-size:10px;margin-bottom:3px}
 .mobile-page .wide-host .wide-jobs li{padding:3px 7px}
 .mobile-page .wide-radar svg{max-width:250px}
 .mobile-page .wide-radar-label{font-size:16px}
 .mobile-page .wide-tools{gap:4px}.mobile-page .wide-tools li{font-size:10px;gap:3px;padding:2px 5px 2px 2px}
 .mobile-page .wide-tools img{width:16px;height:16px;flex-basis:16px}
 .mobile-page .wide-ai-item{min-height:44px;padding:4px 8px}
 .mobile-page .wide-rail-right .wide-ai{padding:8px 12px}
 .mobile-page .wide-rail-right .wide-timeline{padding:10px 12px;height:320px}
}
@media(max-width:899px) and (orientation:portrait) and (max-height:740px){
 .mobile-page .wide-rail-right .wide-timeline{height:auto;min-height:0!important}
 .mobile-page .wide-lv-stage{display:flex;flex-direction:column-reverse;gap:1px;min-height:0;margin:0;flex:none;padding:0 0 0 8px}
 .mobile-page .wide-lv-stage>svg{display:none}
 .mobile-page .wide-lv-node{position:relative;left:auto!important;top:auto!important;transform:none;min-height:39px;width:100%;gap:9px;--r:12px}
 .mobile-page .wide-lv-node.is-now{--r:14px}
 .mobile-page .wide-lv-node:before{content:"";position:absolute;left:12px;top:-9px;bottom:-9px;width:1px;background:#d6e3f0;z-index:-1}
 .mobile-page .wide-lv-txt{flex:1;min-width:0}
 .mobile-page .wide-lv-txt b{font-size:12px}.mobile-page .wide-lv-node.is-now .wide-lv-txt b{font-size:12px!important}
 .mobile-page .wide-timeline[data-node-count] .wide-lv-node.is-now b br{display:none}
}
@media(max-width:899px) and (orientation:portrait) and (max-height:740px){
 .mobile-page .wide-lv-stage{display:block}
 .mobile-page .wide-lv{position:relative;inset:auto;display:flex;flex-direction:column-reverse;gap:1px}
}
/* Equal page occupancy: shared top/bottom breathing room, expand useful content rather than blank footer. */
@media(max-width:899px) and (orientation:portrait){
 .mobile-page--left,.mobile-page--right{padding:10px}
 .mobile-page--left>.wide-rail,.mobile-page--right>.wide-rail{min-height:100%}
 .mobile-page--left .wide-capabilities{flex:1 0 auto;display:flex;flex-direction:column}
 .mobile-page--left .wide-capabilities .wide-radar{flex:1;display:grid;align-content:center;margin:0 0 5px}
 .mobile-page--right .wide-rail-right .wide-timeline{flex:1 0 auto;height:auto;min-height:320px}
 .mobile-page--right .wide-lv-stage{flex:1}
}
@media(max-width:899px) and (orientation:portrait) and (max-height:740px){
 .mobile-page--right .wide-rail-right .wide-timeline{min-height:0!important}
 .mobile-page--right .wide-lv-stage{flex:1;display:flex}
 .mobile-page--right .wide-lv{flex:1;justify-content:space-between}
}
@media(max-width:899px) and (orientation:portrait) and (min-height:741px){
 .mobile-page--right .wide-rail-right .wide-timeline{min-height:320px!important}
}

/* Keep first-paint poster on exactly the same mobile seat baseline as the decoded sprite. */
@media(max-width:899px) and (orientation:portrait){
 .mobile-page--room .workstation-group .face-expression-layer{translate:0 calc(var(--stage-extra) * .48)}
}
