/* Phone and tablet layer, loaded last on every page. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a,button,summary,select,label,[role=button]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.jl-float{bottom:max(14px,env(safe-area-inset-bottom));transition:transform .45s cubic-bezier(.16,1,.3,1),opacity .3s}
.jl-float.jm-left{right:auto;left:14px}
.finance-grid>*,.equity-chart{min-width:0}
.orbit-container{max-width:100%}
html:has(.orbit-container){overflow-x:clip}
.n-article pre,.n-article table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.jc{max-height:min(560px,76dvh)}

@media(max-width:1100px),(pointer:coarse){
 input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),select,textarea{font-size:16px!important}
 #rate{min-width:76px;min-height:38px}
 html .jl button{position:relative}
 html .jl button::after{content:'';position:absolute;inset:-10px -1px}
 .n-back,.space-home,#export-chat,#clear-chat,.studio footer .quiet-link{display:inline-flex;align-items:center;min-height:44px}
 .n-article summary,.studio summary{padding-block:10px}
 button.quiet{min-height:40px}
 #prev,#next{min-height:44px}
 .w-key{min-width:36px;min-height:36px}
 #seek,#volume,#fontSize{box-sizing:content-box;border-block:12px solid transparent;background-clip:padding-box}
 html.jm-down .jl-float,html.jm-kbd .jl-float{transform:translateY(calc(100% + 28px));opacity:0;pointer-events:none}
}

@media(hover:none){
 .studio a:active,.studio button:active,.js-shell a:active{opacity:.7}
}

@media(max-width:650px),(max-height:500px) and (orientation:landscape){
 .studio .topbar{position:sticky!important;top:0;z-index:60;transition:transform .45s cubic-bezier(.16,1,.3,1)}
 html.jm-down .studio .topbar{transform:translateY(-100%)}
}

@media(max-width:650px){
 .studio .topbar .navlinks{justify-content:flex-start;gap:22px;font-size:14px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .studio .topbar .navlinks::-webkit-scrollbar{display:none}
 .studio .topbar .navlinks a{flex:none}
 .studio .topbar .navlinks.jm-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
 .studio .object-caption,.studio .hero-bottom,.repo-date,#current-time,#duration,.track-number{font-size:11.5px}
 .finance-grid{grid-template-columns:minmax(0,1fr)!important}
 .finance-table{display:block;overflow-x:auto}
}

@media(max-width:359px){
 .studio .tools #motion{display:none}
 .studio .tools .tool{width:40px}
 .js-shell{gap:8px;padding-inline:10px}
 .js-shell .js-sign svg{max-width:64px}
 .js-shell .js-sign small{display:none}
 .js-shell .js-back{font-size:0;min-width:36px;text-align:center}
 .js-shell .js-back::before{content:'\2190';font-size:15px}
 .js-shell .jl{margin-right:0}
}

@media(min-width:651px) and (max-width:1100px){
 .studio .topbar .navlinks{font-size:14px}
 .studio .hero-intro{font-size:16px}
 #products .product p,.studio .tool-card p,.studio .section .sub{font-size:15px}
}

@media(min-width:651px) and (max-width:1100px) and (orientation:portrait){
 .studio .atlas-hero{min-height:0!important;padding-block:72px 40px}
 .studio .hero h1{font-size:clamp(56px,8.6vw,84px)}
}

@media(max-height:500px) and (orientation:landscape){
 .studio .atlas-hero{min-height:0!important;padding-block:32px 24px}
 .studio .hero h1{font-size:clamp(36px,6.5vw,54px)}
 .studio .topbar .wrap,body.studio .wrap{padding-inline:max(20px,env(safe-area-inset-left),env(safe-area-inset-right))}
}

html[data-motion=off] .studio .topbar,html[data-motion=off] .jl-float{transition:none}
@media(prefers-reduced-motion:reduce){.studio .topbar,.jl-float{transition:none!important}}

@media(max-width:1100px){.studio main.wrap{overflow-x:clip}}
.skip{position:fixed;top:10px;left:20px;z-index:1000;background:var(--paper);padding:12px;transform:translateY(-180%)}.skip:focus{transform:none}
html:has(#listen) span.tag,#listen.quiet{color:#566450}
