/* Tools4U mobile header + dashboard quick access patch, presentation only.
   This stylesheet intentionally loads AFTER tools4u-ux-fix.css. */
.t4u-quick-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:7px 0 17px;align-items:stretch}
body[data-th-page="dashboard"] #app>main.page>.t4u-quick-access-panel .t4u-quick-action-grid .btn{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;margin:0;padding:12px 10px;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere}
body[data-th-page="dashboard"] #app>main.page>.t4u-quick-access-panel .t4u-quick-action-grid .btn.primary{color:#fff}
/* Search is included inside the mobile dropdown, not repeated in desktop nav. */
html.t4u-ux-ready header.top .nav a.t4u-mobile-search-link,html.t4u-ux-ready header.top .nav a.t4u-mobile-signup-link{display:none}
@media(max-width:900px){
 html.t4u-ux-ready header.top.wrap{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand account toggle" "nav nav nav";gap:6px 8px;align-items:center;align-content:center;justify-content:stretch;flex-wrap:nowrap;width:100%;height:auto;min-height:66px;padding:9px 12px;}
 html.t4u-ux-ready header.top .logo{grid-area:brand;order:0;flex:none;min-width:0;max-width:100%;margin:0;gap:7px;white-space:nowrap;font-size:19px;}
 html.t4u-ux-ready header.top .nav{grid-area:nav;order:0;justify-self:stretch;align-self:stretch;flex:none;min-width:0;width:100%;max-width:100%;margin:4px 0 0;}
 html.t4u-ux-ready header.top .right{grid-area:account;order:0;display:flex;flex:none;margin:0;justify-content:flex-end;align-items:center;gap:5px;min-width:0;max-width:100%;}
 html.t4u-ux-ready header.top .t4u-mobile-toggle{grid-area:toggle;order:0;display:inline-flex;flex:none;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;justify-content:center;border-radius:12px;box-shadow:0 2px 0 #eee6fa;}
 html.t4u-ux-ready header.top .t4u-mobile-toggle .t4u-menu-label{display:none}
 html.t4u-ux-ready header.top .right .top-search{display:none}
 html.t4u-ux-ready header.top .right .pill{font-size:11px;line-height:1.1;white-space:nowrap;padding:7px 9px}
 html.t4u-ux-ready header.top .profilemenu summary{padding:0;min-width:34px;min-height:34px}
 html.t4u-ux-ready header.top .profilemenu .avatar{width:34px;height:34px}
 html.t4u-ux-ready header.top .profilemenu .profile-label{display:none}
 html.t4u-ux-ready header.top .nav a.t4u-mobile-search-link,html.t4u-ux-ready header.top .nav a.t4u-mobile-signup-link{display:block}
 html.t4u-ux-ready header.top.t4u-menu-open .nav{display:flex}
 html.t4u-ux-ready header.top .nav a{white-space:normal;}
 html.t4u-ux-ready header.top .profile-dropdown{right:0;max-width:min(265px,calc(100vw - 25px));}
 .t4u-quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 html.t4u-ux-ready header.top .logo{font-size:18px}
 html.t4u-ux-ready header.top .logo small{display:none}
 html.t4u-ux-ready header.top .brandmark{width:37px;height:37px}
 html.t4u-ux-ready header.top .right a[href="/signup"]{display:none}
 .t4u-quick-action-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 body[data-th-page="dashboard"] #app>main.page>.t4u-quick-access-panel{min-width:0}
 body[data-th-page="dashboard"] #app>main.page>.t4u-quick-access-panel .t4u-quick-action-grid .btn{min-height:47px;font-size:14px}
}
@media(max-width:375px){
 html.t4u-ux-ready header.top.wrap{gap:5px;padding-left:9px;padding-right:9px;}
 html.t4u-ux-ready header.top .logo{gap:5px;font-size:16px}
 html.t4u-ux-ready header.top .brandmark{width:32px;height:34px}
 html.t4u-ux-ready header.top .right{gap:4px}
 html.t4u-ux-ready header.top .right .pill{font-size:0;padding:7px 8px;min-width:32px;text-align:center}
 html.t4u-ux-ready header.top .right .pill::before{content:'Free';font-size:10px}
 html.t4u-ux-ready header.top .right .pill.premium::before{content:'👑';font-size:15px}
 html.t4u-ux-ready header.top .t4u-mobile-toggle{width:39px;min-width:39px;height:39px;min-height:39px}
}
