/* Tools4U responsive, accessible UX fixes. Scoped to public UI; no ad/payment changes. */
html{overflow-x:clip} body{max-width:100%;overflow-x:clip}
#app,.wrap,main,.page,.hero,.hero-inner,.hero-copy,.section,.panel,.banner,.footer,.row{min-width:0}
img,picture,video,svg,canvas,iframe{max-width:100%}
img,video{height:auto}
pre,.code-block{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.page p,.toolcard p,.panel p,.cat,.footer{overflow-wrap:anywhere}
.searchbox,.searchbox input,.form,.form input,.form select,.form textarea,.toolgrid,.grid,.features{min-width:0;max-width:100%}
.toolgrid>* ,.grid>* ,.features>*{min-width:0}
.footer{display:flex;gap:10px 15px;align-items:center;justify-content:center;flex-wrap:wrap;text-align:center;line-height:1.7;padding-top:22px;padding-bottom:25px}
.footer a{text-decoration:underline;text-underline-offset:3px}
.footer a:hover,.footer a:focus-visible{color:#7137ef}
.t4u-mobile-toggle{display:none;align-items:center;justify-content:center;gap:8px;border:1px solid #ddd3f4;background:#fff;border-radius:12px;color:#4d2d9e;min-width:44px;min-height:44px;padding:8px 11px;font-weight:800;cursor:pointer}
.t4u-mobile-bars{display:grid;gap:4px;width:18px}.t4u-mobile-bars i{display:block;background:currentColor;height:2px;border-radius:2px}
.t4u-mobile-nav-title{display:none}
.t4u-toast-region{position:fixed;z-index:900;right:16px;bottom:16px;width:min(400px,calc(100vw - 32px));pointer-events:none}
.t4u-toast{pointer-events:auto;display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #dcd7e9;box-shadow:0 15px 38px #1b15332c;border-left:5px solid #3764cb;border-radius:13px;padding:13px 14px;color:#261d45;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.t4u-toast.success{border-left-color:#15803d}.t4u-toast.error{border-left-color:#b91c1c}
.t4u-toast-close{margin-left:auto;background:transparent;border:0;color:inherit;min-width:27px;min-height:27px;cursor:pointer;font-size:20px;line-height:1}
.t4u-search-form{display:flex;gap:10px;align-items:stretch;max-width:720px;margin:15px 0 25px}.t4u-search-form input{min-width:0;flex:1;padding:12px;border:1px solid #cfc5e7;border-radius:11px}
.t4u-404{min-height:75vh;display:grid;align-content:center;text-align:center;justify-items:center;padding:35px 16px}
.t4u-404 h1{font-size:clamp(35px,7vw,62px);line-height:1.15;margin:8px 0}.t4u-404 p{font-size:16px;line-height:1.7;max-width:580px;color:#635b79}
.t4u-404-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
@media(max-width:900px){
 html.t4u-ux-ready .top{display:flex;flex-wrap:wrap;align-items:center;min-height:66px;height:auto;gap:8px;padding:9px 16px;position:relative;z-index:20}
 html.t4u-ux-ready .top .logo{flex:1 1 auto;min-width:0;max-width:100%;font-size:20px}
 html.t4u-ux-ready .top .logo small{font-size:9px}
 html.t4u-ux-ready .top .right{margin-left:auto;min-width:0;gap:6px}
 html.t4u-ux-ready .top .right .btn{font-size:12px;padding:9px 11px;white-space:nowrap}
 html.t4u-ux-ready .t4u-mobile-toggle{display:inline-flex;order:2}
 html.t4u-ux-ready .top .right{order:3}
 html.t4u-ux-ready .top .nav{order:4;display:none;flex:1 0 100%;width:100%;max-width:100%;max-height:min(65dvh,550px);overflow-y:auto;overflow-x:hidden;flex-direction:column;align-items:stretch;gap:3px;background:#fff;border:1px solid #e9e2f7;border-radius:14px;padding:10px;margin:7px 0 0;box-shadow:0 15px 30px #20105915}
 html.t4u-ux-ready .top.t4u-menu-open .nav{display:flex}
 html.t4u-ux-ready .top .nav a{display:block;min-height:44px;padding:11px 14px;font-size:14px;white-space:normal;border-radius:10px}
 html.t4u-ux-ready .top .nav a:hover,html.t4u-ux-ready .top .nav a:focus-visible{background:#f4efff;color:#5b2cbd}
 html.t4u-ux-ready .top .nav .selected{background:#f1eaff}
 .hero-inner{grid-template-columns:minmax(0,1fr)!important}
 .toolgrid,.grid,.features,.agentgrid{max-width:100%}
 .adminmain{min-width:0;max-width:100%}
 .pricing-tier-grid{max-width:100%}
}
@media(max-width:560px){
 .wrap,.page{padding-left:14px;padding-right:14px}
 html.t4u-ux-ready .top{padding-left:12px;padding-right:12px}
 html.t4u-ux-ready .top .logo{flex:0 1 auto;font-size:18px}
 html.t4u-ux-ready .top .logo small{font-size:8px}
 html.t4u-ux-ready .top .right .btn{padding:9px 8px}
 .searchbox{width:100%;border-radius:16px;flex-wrap:wrap;padding:6px}
 .searchbox input{flex:1 1 100%;min-width:0;width:100%;padding:12px}
 .searchbox button{width:100%;border-radius:12px}
 .hero h1{letter-spacing:-1px!important;font-size:clamp(30px,8vw,38px)}
 .footer{font-size:13px}
 .t4u-search-form{flex-direction:column}.t4u-search-form .btn{width:100%}
 .toolgrid,.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .cat{min-width:0}.cat strong{overflow-wrap:anywhere}
 .pricing-tier-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:365px){.toolgrid,.grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.t4u-toast,.t4u-mobile-toggle{transition:none!important}}
