/* Shared tools, with a compact phone workspace. */
html{height:100%}body{min-width:0}.main-shell,.conversation,.composer-wrap{min-width:0}
@media(max-width:760px){
 html,body{height:100%;overflow:hidden}
 body{display:flex;flex-direction:column;height:var(--visualiser-height,100dvh)}
 .main-shell{height:auto!important;min-height:0!important;flex:1;overflow:hidden}
 .chat-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:8px!important;padding:10px 12px!important}
 .chat-header>div:first-child{min-width:0;max-width:100%}
 .studio-name{font-size:15px!important}.studio-subtitle{display:none!important}
 .credit-balance{display:flex!important;width:max-content;max-width:100%!important;min-height:24px!important;margin-top:5px;padding:3px 8px!important;font-size:10px!important}
 .header-actions{display:grid!important;grid-template-columns:auto auto;gap:6px!important;position:static}
 .header-actions>button,.header-actions>a{min-height:36px!important;height:36px!important;font-size:11px!important;padding:8px 10px!important;white-space:nowrap}
 #buyCreditsButton{grid-column:1}#mobileMenu{grid-column:2;min-width:64px!important}
 .header-actions>.studio-home-button,.header-actions>.studio-quote-button{display:none!important}
 .mobile-menu-panel{position:absolute;top:calc(100% + 6px);right:12px;max-width:calc(100vw - 24px);z-index:90}
 .mobile-menu-panel .studio-home-button,.mobile-menu-panel .studio-quote-button{display:block!important;min-height:44px;padding:13px;margin:6px 0;text-align:left}
 .conversation{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 16px!important}
 .chat-empty:not([hidden]){min-height:100%!important;display:flex;flex-direction:column;gap:14px}
 .welcome.chat-empty h1{font-size:clamp(24px,6.8vw,30px)!important;max-width:320px}
 .mobile-welcome-upload{min-height:46px;padding:12px 20px;border:1px solid #e7cbd9;border-radius:12px;background:#fff;color:var(--brand-pink);font-size:14px}
 .mobile-welcome-help{font-size:12px;line-height:1.5;color:#887580;max-width:260px}
 .composer-area{padding:8px 10px!important;flex-shrink:0}
 .composer textarea{font-size:16px!important;min-height:44px!important;max-height:100px}
 .composer-tools{flex-wrap:wrap!important;justify-content:space-between;gap:8px!important}
 #send,.attach-button{min-height:44px!important;font-size:12px!important;padding:10px 12px!important}
 #composerHint{display:none!important}
 .mobile-design-dock{height:auto!important;min-height:65px;padding:5px 4px max(5px,env(safe-area-inset-bottom))!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;z-index:40}
 .mobile-design-dock>*{min-width:0}.mobile-design-dock span{font-size:9px!important}
 .mobile-tool-shortcuts{display:flex;gap:8px;padding:0 0 8px;overflow-x:auto;scrollbar-width:none}
 .mobile-tool-shortcuts button{flex:none;min-height:38px;padding:8px 13px;border:1px solid #ead5df;border-radius:11px;background:white;color:var(--brand-pink);font-size:12px}
 .mobile-tools-sheet:not([hidden]){bottom:0!important;z-index:100;max-height:82%;max-height:82dvh;padding-bottom:env(safe-area-inset-bottom);animation:tool-sheet-in .18s ease-out}
 .mobile-sheet-backdrop:not([hidden]){z-index:95}
 .mobile-sheet-body{touch-action:pan-y}.mobile-sheet-header button,#mobileSheetDone{min-height:44px}
 .keyboard-open #mobileDesignDock{display:none!important}.keyboard-open .mobile-tool-shortcuts{display:none}
 .result-card img{max-width:100%;height:auto}.attachment img{object-fit:contain}
}
@media(min-width:761px){.mobile-welcome-upload,.mobile-welcome-help,.mobile-tool-shortcuts{display:none}}
@keyframes tool-sheet-in{from{transform:translateY(24px);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.mobile-tools-sheet{animation:none!important}}
@media(max-width:760px){
 .mobile-design-dock{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;flex:none}
 .welcome.chat-empty>.mobile-welcome-help{margin:0!important;flex:none}
 .welcome.chat-empty>h1,.mobile-welcome-upload{flex:none}
}
