/* Mobile composition from the approved reference; desktop rules remain intact. */
@media(max-width:720px),(pointer:coarse) and (max-device-width:600px),(pointer:coarse) and (max-device-height:600px){
html,body{width:100%;max-width:100%;overflow-x:clip}body{font-size:15px}.layout{width:100%;min-width:0}.main{margin-left:0!important;width:100%!important;min-width:0}.sidebar:not(.open){transform:translateX(-100%)!important;visibility:hidden}.sidebar.open{visibility:visible;transform:none!important}.content{width:100%;min-width:0;max-width:100%;padding:12px 14px calc(100px + env(safe-area-inset-bottom))!important}.content>*{min-width:0;max-width:100%}.main header{height:calc(70px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 14px 0!important;gap:8px!important;background:#08090b;border:0}.header-brand{display:flex!important;min-width:0;flex:1 1 auto}.header-brand .selected-brand-art{width:clamp(145px,43vw,190px)!important;max-width:100%}.main header .breadcrumb{margin-left:0!important;order:3;flex:0 0 38px}.main header .status{margin-left:0!important;order:2;flex:0 0 auto;gap:0!important}.main header .tools-header,.main header #install-app{display:none!important}.main header .language-switch{padding:3px;border-radius:28px;border:1px solid #49494e;background:#101114}.main header .language-switch button{min-width:34px;min-height:34px;padding:6px 9px;font-size:11px;border-radius:22px}.main header #menu{display:grid!important;background:transparent!important;border:0!important;border-radius:8px!important;box-shadow:none!important;color:#c1c1c9!important;padding:7px;min-width:38px;min-height:40px;transform:none!important}.main header #menu svg{width:25px;height:25px}.current-plan-strip{padding:7px 14px!important;gap:8px!important;font-size:10px!important;flex-wrap:nowrap;min-height:35px}.current-plan-strip>span{min-width:0;line-height:1.4}.current-plan-strip button{font-size:10px!important;padding:4px!important;min-height:30px!important;white-space:normal;max-width:90px;background:transparent!important;box-shadow:none!important;color:var(--plan-accent,#c6ff25)!important;border:0!important}.membership-reminder{display:none!important}.chat-plan-identity{padding:8px 12px!important;margin-bottom:12px!important;gap:9px!important;border-radius:13px!important}.chat-plan-identity strong{font-size:13px!important}.chat-plan-identity small{font-size:10px!important;line-height:1.35!important;margin-top:2px!important}.chat-plan-symbol{font-size:20px!important}.lab-brand-banner{display:none!important}.hero.urban-hero,html[lang=es] .hero.urban-hero{width:calc(100% + 28px)!important;max-width:none!important;min-height:clamp(280px,78vw,360px)!important;height:auto!important;margin:0 -14px 14px!important;padding:22px 20px 20px!important;border-radius:0!important}.urban-hero .eyebrow,html[lang=es] .urban-hero>.eyebrow{font-size:9px!important;letter-spacing:2px!important;max-width:90%;line-height:1.4}.urban-hero h1,html[lang=es] .urban-hero>h1{font-size:clamp(39px,11.7vw,58px)!important;line-height:1!important;letter-spacing:-1.5px!important;max-width:66%!important;margin:13px 0 12px!important}.urban-hero h1 strong{max-width:100%!important}.urban-hero p,html[lang=es] .urban-hero>p{font-size:clamp(13px,3.6vw,17px)!important;max-width:66%!important;line-height:1.4!important;margin:12px 0!important}.preview-video{object-position:68% center!important}.hero-swipe{margin-top:12px;width:50px}.music-tools-bar{gap:6px;margin-bottom:10px}.music-tools-bar button{font-size:10px!important;min-height:35px!important;padding:7px 10px!important;border-radius:12px!important;max-width:100%;box-shadow:none!important}.chat-studio-panel:not(.has-conversation){padding:10px!important;border-radius:23px;margin-top:0!important}.chat-studio-panel:not(.has-conversation) .chat-studio-welcome,.chat-studio-panel:not(.has-conversation) .chat-studio-actions{display:none}.chat-studio-panel:not(.has-conversation) .composer{padding:12px!important;border-radius:18px!important}.chat-studio-panel textarea{font-size:16px!important;min-height:46px!important}.chat-studio-panel .attach{font-size:0!important}.chat-studio-panel .attach svg{width:25px;height:25px}.chat-studio-panel .send{width:44px!important;height:44px!important}.studio-mic{width:39px;height:39px}.composer-shortcuts{gap:6px;margin-top:9px}.composer-shortcuts button{font-size:10px!important;padding:9px 11px!important;min-height:36px!important;border-radius:12px!important;max-width:100%;white-space:normal}.suggestions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important;margin:10px 0 20px!important}.suggestions .chip{font-size:11px!important;min-height:38px!important;padding:8px 10px!important;border-radius:20px!important;white-space:normal}.note{margin:10px 0 16px!important;font-size:9px!important}.mobile-dock{display:flex!important;position:fixed;left:0;right:0;bottom:0;width:100%;max-width:100%;padding:9px 7px calc(9px + env(safe-area-inset-bottom));background:#0d0e11f7;border-top:1px solid #393b3d;border-radius:22px 22px 0 0;z-index:15}.mobile-dock button{flex:1;min-width:0;min-height:48px;font-size:10px!important;gap:4px;padding:3px 4px!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;color:#a3a3ad!important;transform:none!important}.mobile-dock button.active{color:#c6ff25!important}.mobile-dock svg{width:23px!important;height:23px!important}.conversation-title>strong{font-size:17px}.has-conversation .conversation-title{padding:10px!important}.conversation-header-actions button{min-height:30px!important;min-width:30px!important}.has-conversation .chat-thread{max-height:60dvh}.cards{gap:9px}.card{padding:14px 12px;min-height:140px}.footer{font-size:10px}.membership-table-wrap{max-width:100%;overflow-x:auto}.bubble table{display:block;max-width:100%;overflow-x:auto}
}
@media(max-width:600px),(pointer:coarse) and (max-device-width:600px),(pointer:coarse) and (max-device-height:600px){
/* Phone text and actions stay readable at the native viewport scale. */
.music-tools-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.music-tools-bar button{font-size:13px!important;min-height:43px!important;padding:9px!important;max-width:none!important;white-space:normal!important}.composer-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.composer-shortcuts button{font-size:12px!important;min-height:43px!important}.composer-shortcuts button:last-child{grid-column:1/-1}.suggestions .chip{font-size:13px!important;min-height:43px!important}.current-plan-strip{font-size:11px!important}.chat-plan-identity strong{font-size:15px!important}.chat-plan-identity small{font-size:12px!important}.mobile-dock button{font-size:12px!important}.note{font-size:10px!important}
}

html[data-mobile-scale-correction="true"] .layout{min-height:calc(100dvh / var(--mobile-ui-scale,1))!important}html[data-mobile-scale-correction="true"] .chat-studio-panel .chat-thread{max-height:calc(60dvh / var(--mobile-ui-scale,1))!important}html[data-mobile-scale-correction="true"] .overlay{max-width:100%;height:calc(100dvh / var(--mobile-ui-scale,1))}html[data-mobile-scale-correction="true"] .modal{max-height:calc(90dvh / var(--mobile-ui-scale,1))}
