/* HoraWeb V47 — correção estrutural de categorias na home + conta.
 * Isolado das classes .tile antigas para evitar colisões de tipografia/posicionamento.
 */
html body .hw-ref-home .hw47-category-rail{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:10px!important;width:100%!important;min-width:0!important;
 margin-top:12px!important;padding:1px!important;overflow:visible!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-chip{
 display:grid!important;grid-template-columns:32px minmax(0,1fr) auto!important;
 align-items:center!important;column-gap:11px!important;
 min-width:0!important;min-height:60px!important;height:auto!important;
 padding:10px 12px!important;background:#fff!important;
 border:1px solid #dce7dd!important;border-radius:10px!important;
 box-shadow:0 1px 2px rgba(24,55,35,.035)!important;
 color:#20392b!important;text-decoration:none!important;
 transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-chip:hover,
html body .hw-ref-home .hw47-category-rail .hw47-cat-chip:focus-visible{
 border-color:#9fc89c!important;background:#f5fbf3!important;
 box-shadow:0 2px 8px rgba(38,92,46,.09)!important;
 outline-offset:2px!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-icon{
 display:grid!important;place-items:center!important;width:32px!important;height:32px!important;
 flex:none!important;background:#edf6e8!important;border-radius:8px!important;
 color:#347a32!important;font-size:17px!important;line-height:1!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-icon i{
 font-size:17px!important;line-height:1!important;margin:0!important;color:inherit!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-name{
 display:block!important;min-width:0!important;max-width:100%!important;
 font:650 14px/1.35 Inter,system-ui,sans-serif!important;
 overflow-wrap:break-word!important;word-break:normal!important;
 text-align:left!important;margin:0!important;white-space:normal!important;
}
html body .hw-ref-home .hw47-category-rail .hw47-cat-count{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:none!important;min-width:24px!important;height:23px!important;
 padding:2px 6px!important;margin:0!important;border:0!important;border-radius:6px!important;
 background:#f0f4f1!important;color:#496357!important;
 font:650 11.5px/1 Inter,system-ui,sans-serif!important;white-space:nowrap!important;
}
/* Evita voltar ao padrão de cards largos com três textos sobrepostos. */
html body .hw-ref-home .hw47-category-rail :is(.hw47-cat-icon,.hw47-cat-name,.hw47-cat-count){position:static!important;transform:none!important;letter-spacing:normal!important}
@media(max-width:1160px){
 html body .hw-ref-home .hw47-category-rail{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:840px){
 html body .hw-ref-home .hw47-category-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 /* Uma fila rolável: dá acesso a todas sem consumir metade da tela. */
 html body .hw-ref-home .hw47-category-rail{
   display:flex!important;flex-wrap:nowrap!important;gap:9px!important;
   overflow-x:auto!important;overflow-y:hidden!important;
   overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;
   scrollbar-width:thin!important;-webkit-overflow-scrolling:touch!important;
   padding:2px 2px 11px!important;margin:9px 0 0!important;
 }
 html body .hw-ref-home .hw47-category-rail .hw47-cat-chip{
   flex:0 0 min(78vw,270px)!important;min-height:56px!important;
   padding:9px 11px!important;scroll-snap-align:start!important;
 }
 html body .hw-ref-home .hw47-category-rail .hw47-cat-name{font-size:13.5px!important}
}
/* Filtro de conta visível mesmo para quem não está conectado. */
html body .hw-account-page.hw46-account-page{display:block!important;min-width:0!important;min-height:300px!important;overflow:visible!important}
html body .hw47-auth-gate{
 width:min(560px,100%)!important;margin:20px auto 44px!important;padding:28px!important;
 text-align:center!important;background:#fff!important;border:1px solid #dce7df!important;
 border-radius:14px!important;box-shadow:0 6px 22px rgba(25,55,34,.06)!important;
}
html body .hw47-auth-symbol{width:48px;height:48px;border-radius:13px;background:#edf5e9;color:#36772b;display:inline-grid;place-items:center;font-size:24px}
html body .hw47-auth-gate h2{margin:14px 0 6px!important;font-size:22px!important;line-height:1.25!important;color:#1b3428!important}
html body .hw47-auth-gate p{margin:0 auto 20px!important;max-width:420px;font-size:15px!important;line-height:1.5!important;color:#596f61!important}
html body .hw47-auth-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
html body .hw47-auth-actions a{min-height:43px;padding:11px 17px;border-radius:9px;text-decoration:none!important;font:650 14px/1.3 Inter,system-ui,sans-serif!important;display:inline-flex;align-items:center;gap:9px}
html body .hw47-auth-primary{background:#377e29;color:#fff!important;border:1px solid #377e29}
html body .hw47-auth-primary:hover{background:#276a1c}
html body .hw47-auth-secondary{background:#fff;color:#285a2d!important;border:1px solid #c9ddcd}
html body .hw47-auth-secondary:hover{background:#f4faf4}
/* Impede temas antigos de ocultarem o rodapé da tela de downloads. */
html body:has(.hw46-account-page) footer.hw45-footer{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:relative!important;z-index:1!important;float:none!important;
 clear:both!important;width:100%!important;margin-top:30px!important;
}
@media(max-width:600px){
 html body .hw47-auth-gate{padding:22px 16px!important;margin:10px auto 26px!important}
 html body .hw47-auth-actions{flex-direction:column;align-items:stretch}
 html body .hw47-auth-actions a{justify-content:center}
 html body:has(.hw46-account-page) footer.hw45-footer{margin-top:22px!important}
}
