/* Desktop panels and narrow browser windows; retain the established phone desktop viewport. */
body.home-app .home-mode-switch{display:inline-flex!important;flex-wrap:nowrap!important;width:max-content!important;max-width:100%;gap:4px!important;padding:4px!important;overflow:visible!important}
body.home-app .home-mode-switch>.home-mode{flex:0 0 auto!important;width:auto!important;min-width:100px!important;padding:0 16px!important;white-space:nowrap;gap:7px!important;box-sizing:border-box}
body.home-app .home-mode-switch>.home-mode .ic{flex:none}
@media(max-width:1199px){
 body.home-app #generateShell .hero-toolbar{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center}
 body.home-app #generateShell .hero-toolbar>.sel-wrap,body.home-app #generateShell #btnUploadFab{flex:0 0 auto!important;max-width:100%;min-width:0}
 body.home-app #generateShell .sel-btn{white-space:nowrap;max-width:100%}
 body.home-app #generateShell #inputHint{display:none}
 body.home-app #generateShell #btnGenerate{flex:0 0 auto!important;min-width:130px!important;margin-left:auto;max-width:100%}
 body.home-app #generateShell{box-sizing:border-box;max-width:calc(100% - 28px)}
 body.home-app .tsn-inner{height:auto!important;min-height:64px;flex-wrap:wrap!important;gap:12px!important;padding:12px 18px!important;box-sizing:border-box;width:100%!important;max-width:100%!important}
 body.home-app .tsn-menu{order:3;flex:1 0 100%;display:flex!important;justify-content:center;flex-wrap:wrap;gap:18px!important}
 body.home-app .tsn-right{margin-left:auto;flex-wrap:wrap;min-width:0;max-width:100%;gap:8px!important}
 body.home-app .tsn-user{flex-wrap:wrap;min-width:0;gap:6px!important}
}
@media(max-width:600px){
 body.home-app .tsn-right{flex:1 0 100%;justify-content:center}
 body.home-app #generateShell .hero-toolbar>.sel-wrap{max-width:100%}
 body.home-app #generateShell .generation-cost{margin-left:0!important}
}
/* Compact tablet header: only wrap when the links truly cannot fit. */
@media(min-width:760px) and (max-width:1199px){
 body.home-app header.take-site-nav .tsn-inner{flex-wrap:nowrap!important;gap:16px!important;padding:10px 16px!important;min-height:60px}
 body.home-app header.take-site-nav .tsn-menu{order:0!important;flex:0 0 auto!important;width:auto!important;gap:16px!important}
 body.home-app header.take-site-nav .tsn-right{flex:0 0 auto!important;flex-wrap:nowrap!important;gap:8px!important}
 body.home-app header.take-site-nav .tsn-user{flex-wrap:nowrap!important;gap:6px!important}
 body.home-app header.take-site-nav .tsn-brand img{height:26px!important}
}
@media(min-width:760px) and (max-width:1020px){
 body.home-app header.take-site-nav .tsn-member{display:none!important}
 body.home-app header.take-site-nav .tsn-menu{gap:12px!important}
 body.home-app header.take-site-nav .tsn-menu a{font-size:12px!important}
 body.home-app header.take-site-nav .tsn-ghost{padding:0 10px!important}
 body.home-app header.take-site-nav .tsn-quota{padding:0 10px!important;min-width:0!important}
}
