/* Mobile is native scroll + the existing WebGL cards, with an accessible fixed dock. */
body[data-product-view="mobile"] .workspace-controls .console-toolbar{display:none}
body[data-product-view="mobile"] .workspace-controls{justify-content:center}
body[data-product-view="mobile"] .hero h1{font-size:46px}
.mobile-device{position:relative;isolation:isolate;width:min(430px,100%);height:min(820px,calc(100vh - 240px));min-height:560px;margin:24px auto 42px;border:1px solid #4b505c;border-radius:34px;background:#17191e;box-shadow:0 30px 100px #0007,0 2px 2px #ffffff12 inset;overflow:hidden}
.mobile-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mobile-scroll::-webkit-scrollbar{display:none}
.mobile-device .console-section{margin:0;padding:0}
.mobile-device .stage-wrap{width:100%}
.mobile-device #stage{width:100%;height:1000px;min-height:0}
.mobile-device #canvas{touch-action:pan-y pinch-zoom!important}
.mobile-device .accessible-controls{margin:0 16px;color:#c2c7d0}
.mobile-device .accessible-controls summary{font-size:11px}
.mobile-device .product-access{grid-template-columns:1fr 1fr;gap:12px;padding-bottom:12px}
.mobile-device .product-access button,.mobile-device .product-access select{font-size:11px;min-height:42px}
.mobile-scroll-end{height:104px}
.mobile-dock{position:absolute;z-index:30;left:12px;right:12px;bottom:12px;height:69px;display:flex;align-items:center;justify-content:space-around;padding:6px;border:1px solid #5b62704d;border-radius:999px;background:linear-gradient(145deg,#333940f5,#171b23f7 80%);box-shadow:0 10px 30px #0009,0 1px 0 #ffffff1a inset;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.mobile-dock button{position:relative;display:flex;align-items:center;justify-content:center;height:55px;flex:1;border-radius:999px;min-width:44px;color:#a5aebc;transition:background .2s,color .2s}
.mobile-dock button[aria-current="page"]{color:#fff;background:linear-gradient(140deg,#505761,#343b46);box-shadow:0 1px 1px #ffffff18 inset,0 3px 5px #0004}
.mobile-dock button:hover{color:white;background:#ffffff0a}
.mobile-dock svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.mobile-notification{position:absolute;width:6px;height:6px;background:#ff650c;border-radius:50%;top:13px;right:22px;border:1px solid #20252d}.mobile-notification.hidden{display:none}
@media(max-width:700px){.render-modes{overflow:auto;scrollbar-width:none}.render-modes a{white-space:nowrap;flex-shrink:0}.workspace-controls .render-modes a{padding:9px 11px;font-size:10px}.workspace-controls .camera-hint{display:none}}
@media(max-width:600px){
 body[data-product-view="mobile"]{background:#17191e}
 body[data-product-view="mobile"] .masthead{min-height:44px;width:calc(100% - 28px)}
 body[data-product-view="mobile"] .main{width:100%;margin:0}
 body[data-product-view="mobile"] .hero{display:none}
 body[data-product-view="mobile"] .workspace-controls{margin:0;padding:8px 10px;border-top:0;background:#17191e}
 body[data-product-view="mobile"] .workspace-controls .render-modes{justify-content:flex-start}
 .mobile-device{border:0;border-radius:0;width:100%;height:auto;min-height:0;margin:0;box-shadow:none;overflow:visible}
 .mobile-scroll{height:auto;overflow:visible;overscroll-behavior:auto}
 .mobile-dock{position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));height:66px}
 .mobile-scroll-end{height:94px}
 body[data-product-view="mobile"] .footer{display:none}
 body[data-product-view="mobile"] .concept-note{display:none}
}

.drive-mode-choices{display:flex;grid-column:1/-1;gap:6px}.drive-mode-choices button{flex:1;font-size:12px;padding:12px;border:1px solid #ffffff22;border-radius:999px}.drive-mode-choices button[aria-pressed="true"]{background:#edf1f7;color:#181c25}

/* Study 11: 402:874 phone viewport; independent exterior orbit / interior scroll. */
.mobile-studio{position:relative;min-height:680px;padding:24px 84px 56px;cursor:grab;touch-action:none}
.mobile-studio.is-orbiting{cursor:grabbing}
.mobile-device{width:clamp(286px,calc((100dvh - 250px)*.459954),402px);max-width:100%;aspect-ratio:402 / 874;height:auto;min-height:0;margin:0 auto;cursor:auto;border-radius:42px}
.mobile-scroll{position:absolute;inset:0;height:100%;touch-action:pan-y pinch-zoom}
.mobile-studio-help{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:20px;color:#919aa8;font-size:11px;cursor:default}
.mobile-studio-help button{border:1px solid #ffffff25;border-radius:999px;padding:8px 12px;color:#d2d8e2;font-size:11px}
.mobile-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;align-items:stretch;padding:6px;height:68px;box-sizing:border-box}
.mobile-dock button{width:100%;height:100%;min-width:0;margin:0;padding:0;box-sizing:border-box}
.mobile-dock button[aria-current="page"],.mobile-dock button[aria-current="page"]:hover{color:#171c25;background:#f5f7fa;box-shadow:0 1px 1px #ffffffb3 inset,0 3px 7px #0003}
@media(max-width:700px){.mobile-studio{padding-left:34px;padding-right:34px}}
@media(max-width:600px){
 .mobile-studio{padding:0;min-height:0;touch-action:auto;cursor:auto}
 .mobile-device{aspect-ratio:auto;width:100%;height:auto;border-radius:0}
 .mobile-scroll{position:relative;inset:auto;height:auto;overflow:visible}
 .mobile-studio-help{display:none}
}
