@media(max-width:1399px){.grid{grid-template-columns:repeat(2,1fr);}}

@media(max-width:768px){.grid{grid-template-columns:1fr;}.stats{grid-template-columns:repeat(2,1fr)!important;}.topbar{flex-direction:column;align-items:stretch;text-align:center;}.topbar .navtabs{justify-content:center;}.topbar .right{justify-content:center;flex-wrap:wrap;}.hero{height:180px!important;}.hero-name{font-size:18px!important;}.sidebar{width:100%!important;}}

@media(max-width:480px){.topbar h1{font-size:16px;}.topbar .sub{font-size:10px;}}

@media(max-width:767px){
  .sidebar{display:none!important;}
  .filterFab{display:flex;position:fixed;bottom:24px;left:24px;width:52px;height:52px;border-radius:50%;background:#D97706;color:#fff;align-items:center;justify-content:center;cursor:pointer;z-index:70;box-shadow:0 4px 14px rgba(217,119,6,.4);font-size:20px;}
  .filterFab .dot{position:absolute;top:8px;right:8px;width:10px;height:10px;background:#DC2626;border-radius:50%;display:none;}
  .filterFab.has-filter .dot{display:block;}
}

@media(max-width:960px){.tool-grid-inner{grid-template-columns:repeat(3,1fr);}}

@media(max-width:640px){.tool-grid-inner{grid-template-columns:repeat(3,1fr);gap:6px;}}

@media(max-width:1199px) and (min-width:768px){
  .home-entries{grid-template-columns:repeat(3,1fr)!important;gap:12px!important;}
  .home-cta-row{grid-template-columns:repeat(2,1fr)!important;}
  .home-hero-title{font-size:32px!important;}
  .home-hero-sub{font-size:16px!important;}
  .home-search-box{max-width:80%!important;}
}

@media(max-width:767px){
  .home-entries{grid-template-columns:1fr!important;}
  .home-cta-row{grid-template-columns:1fr!important;}
  .home-hero-title{font-size:24px!important;}
  .home-hero-sub{font-size:14px!important;}
  .home-search-box{max-width:100%!important;}
}

@media(max-width:1200px){}

@media(max-width:768px){#toolFilters{display:none;}}

@media(max-width:1023px){#insightsView aside{display:none !important;}}

@media(max-width:640px){
  #insightsView > div{flex-direction:column !important;}
  .insight-card{flex-direction:column;gap:10px;padding:14px;}
  .insight-thumb{width:100% !important;height:120px !important;flex-shrink:0;}
  .insight-card h3{font-size:15px;}
  .insight-card .sum{font-size:12px;}
  #insightsView{padding:12px !important;}
  #insightsView > div{padding:0 !important;gap:12px;}
}

@media(max-width:1399px){.rightbar{width:100%;padding:10px 0 0;}.rinner{flex-direction:row;flex-wrap:wrap;}.rinner .rcard{flex:1;min-width:220px;}}

@media(max-width:1023px){.rightbar{display:none;}.hero{height:200px;margin:10px 16px 0;}.hero-name{font-size:19px;}.hero-content{padding:20px;max-width:90%;}.grid{grid-template-columns:repeat(2,1fr);}}

@media(max-width:767px){.grid{grid-template-columns:1fr;}}

@media(max-width:767px){
  .hamburger{display:block;}
  .navtabs{display:none;position:absolute;top:60px;left:0;right:0;background:#1E3A8A;flex-direction:column;padding:10px 0;box-shadow:0 8px 16px rgba(0,0,0,.2);z-index:101;}
  .navtabs.open{display:flex;}
  .navtabs button{border-radius:0;padding:12px 20px;text-align:left;}
}

@media(max-width:1023px) and (min-width:768px){
  .topbar{padding:10px 16px;min-height:56px;}
  .navtabs button{padding:6px 12px;font-size:12px;min-width:64px;}
  .topbar .right input{width:120px;font-size:12px;padding:6px 10px 6px 28px;}
  .topbar .right input::placeholder{color:transparent;}
  .topbar .logo-box{width:32px;height:32px;font-size:15px;}
  .topbar .brand h1{font-size:15px;}
}

@media(max-width:767px){
  .topbar{padding:8px 12px;min-height:56px;}
  .topbar .right{display:none;}
  .topbar .brand .sub{display:none;}
}

@media(max-width:767px){
  .filterbar{flex-wrap:wrap;overflow:visible;padding-bottom:0;gap:6px;}
  .filterbar>div{flex:1 1 100%;}
  .filterbar .btn{font-size:12px;padding:5px 10px;}
  .chipsrow{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:0 0 16px;}
  .chipsrow::-webkit-scrollbar{display:none;}
  .chipsrow>*{flex:0 0 auto;}
  .topbar.hidden{transform:translateY(-100%);}
  .tool-card .tcover{height:44px;font-size:14px;}
  .tool-card .tbody{padding:6px 8px;}
  .tool-card .tname{font-size:12px;}
  .tool-card .tdesc{font-size:10px;margin:2px 0;}
  .tool-card .tbadge{font-size:9px;padding:0px 5px;}
  .tool-card a.tgo{font-size:10px;padding:4px;}
  .tool-row{flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px 4px;}
  .tool-row .tool-info{text-align:center;}
  .tool-row .tool-info b{font-size:11px;}
  .tool-row .tool-reg{font-size:9px;padding:1px 5px;}
}

@media(min-width:768px) and (max-width:1023px){
  .filterbar{margin-bottom:6px;}
}
