/* Mobile-only three-panel layout. Desktop elements keep their original grid. */
.mobile-deck,.mobile-track,.mobile-page{display:contents}.mobile-nav{display:none}
@media(max-width:899px), (max-width:1100px) and (max-height:500px){
 body{display:block;overflow:hidden;min-height:100svh}
 .mobile-deck{display:flex;flex-direction:column;width:100%;height:100svh;overflow:hidden;background:#eef5fa}
 .mobile-nav{display:flex;flex:none;justify-content:center;gap:5px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;background:#f3f8fc;border-bottom:1px solid #dbe9f2;z-index:5}
 .mobile-nav button{flex:1;max-width:135px;min-height:40px;border:1px solid #c9dfea;border-radius:999px;background:#fff;color:#365b75;font-weight:700;font-size:13px;white-space:nowrap}
 .mobile-nav .mobile-guide{flex:0 0 52px;padding:0 4px;font-size:12px}
 #ap-tour-root .skip-guide{display:none!important}
 .mobile-nav button[aria-current=page]{background:#1b668d;border-color:#1b668d;color:white;box-shadow:0 3px 10px #26658332}
 .mobile-track{display:flex;flex:1;min-height:0;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .mobile-track::-webkit-scrollbar{display:none}
 .mobile-page{display:flex;flex:none;flex-direction:column;align-items:center;width:100%;height:100%;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-snap-align:start;scroll-snap-stop:always;padding:12px 12px max(28px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
 .mobile-page--room{justify-content:safe center}
 .mobile-page>.wide-rail{display:flex;position:relative;flex-direction:column;flex:none;top:auto;left:auto;right:auto;width:min(100%,440px);height:auto;min-height:0;overflow:visible;padding:0;gap:12px}
 .mobile-page>.wide-rail[hidden]{display:none!important}
 .mobile-page .room{flex:none;width:var(--fw);height:var(--fh);max-width:100%}
 .comment-form>.ap-mobile-launch{flex:1 1 auto;min-width:0;width:auto;max-width:100%;margin:0;padding:0 12px;justify-content:center}
 .icp-record{font-size:9px;right:4px;bottom:2px;z-index:1}
}
@media(max-width:1100px) and (max-height:500px) and (orientation:landscape){
 .mobile-page--room .room{width:min(360px,calc(100vw - 24px));height:auto;aspect-ratio:9/16}
}
