/* Keep the composer tools in their own full-width row, never the submit column. */
body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi761-tools{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px 8px!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;padding:2px 0!important;box-sizing:border-box!important}
body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi761-tools :is(.tsugi761-emojis,.tsugi761-quick,[data-tsugi761-list]){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:3px!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:0!important;height:auto!important}
body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi761-tools button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:28px!important;max-width:100%!important;height:30px!important;min-height:30px!important;padding:3px 5px!important;white-space:nowrap!important;grid-column:auto!important;grid-row:auto!important}
body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi-compose-footer{grid-row:3!important;grid-column:1/-1!important;min-height:0!important}
body .tsugi-shell .tsugi-main form#tsugi-compose button[type=submit]{grid-column:2!important;grid-row:1!important;align-self:center!important}
body .tsugi-shell .tsugi-main form#tsugi-compose label:has(#yn723-share){grid-column:1/-1!important;grid-row:4!important;min-width:0!important;overflow-wrap:anywhere}
@media(max-width:800px){
 html:has(.at915-home,.tsugi-shell),body:has(.at915-home,.tsugi-shell){max-width:100%;overflow-x:clip}
 body #app{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body .at60-wrap.at915-home{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding-inline:14px!important;overflow-x:clip!important}
 body .at915-home :is(.p915-section,.p915-hero,.h864-hero-copy,.h864-chat,.p916-rail,.h864-discover,.a62-collection-grid,.p915-head,.p915-heading,.p915-title){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body .at915-home .p915-hero :is(h1,p){max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}
 body .at915-home .p915-hero .h864-chat form{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important}
 body .at915-home .p915-hero .h864-chat form textarea{min-width:0!important;max-width:100%!important;flex:1 1 0!important}
 body .at915-home .p915-hero .h864-chat>.at60-chips{width:100%!important;max-width:100%!important;overflow-x:auto!important;justify-content:flex-start!important}
 body .at915-home .p915-grid{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overscroll-behavior-x:contain}
 body .at915-home .p915-head{gap:8px!important;align-items:flex-start!important}
 body .at915-home .p915-title h2{max-width:none!important;overflow-wrap:anywhere}
 body .at915-home .p915-more{max-width:38%!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere}
 body .a66-mobile-nav{box-sizing:border-box!important;width:100%!important;max-width:100%!important;left:0!important;right:0!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-inline:4px!important;gap:2px!important}
 body .a66-mobile-nav>a{min-width:0!important;max-width:100%!important;padding-inline:2px!important;font-size:11px!important}
 body .a66-mobile-nav>a span{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 body .tsugi-shell .tsugi-main form#tsugi-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;grid-template-rows:auto auto auto!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;align-items:center!important;gap:3px 6px!important}
 body .tsugi-shell .tsugi-main form#tsugi-compose textarea{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important}
 body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi761-tools button{min-height:30px!important;height:30px!important;font-size:14px!important}
 body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi761-quick button{font-size:11px!important}
 body .tsugi-shell .tsugi-main form#tsugi-compose .tsugi-compose-footer:has(>small:only-child){display:none!important}
}

/* Preserve the original top-row mobile filter icon and desktop send position. */
@media(max-width:760px){
 body .tsugi-shell.at76-tools .tsugi-main form#tsugi-compose{grid-template-columns:40px minmax(0,1fr) 44px!important;grid-template-rows:auto auto!important}
 body .tsugi-shell.at76-tools .tsugi-main form#tsugi-compose textarea{grid-column:2!important;grid-row:1!important}
 body .tsugi-shell.at76-tools .tsugi-main form#tsugi-compose .tsugi-compose-footer{grid-column:1!important;grid-row:1!important;width:40px!important;min-height:40px!important;height:40px!important;align-self:center!important}
 body .tsugi-shell.at76-tools .tsugi-main form#tsugi-compose button[type=submit]{grid-column:3!important;grid-row:1!important}
 body .tsugi-shell.at76-tools .tsugi-main form#tsugi-compose label:has(#yn723-share){grid-row:3!important}
}
@media(min-width:801px){
 body .tsugi-shell.at860-desktop .tsugi-main form#tsugi-compose .tsugi761-tools{grid-column:1!important;grid-row:2!important}
 body .tsugi-shell.at860-desktop .tsugi-main form#tsugi-compose button[type=submit]{grid-column:2!important;grid-row:2!important}
}
