/* Extracted from index.html <style id="rabbit-home-topbar-priority-v2"> */

/* =========================================================
   Rabbit Home Rejuvenation V2
   - topbar più leggibile
   - ricerca ristretta
   - bottoni Home/Profilo/Impostazioni/Nuovo Post/Logout
   - blocchi Priorità/Oggi/Programmi spostati sotto le aree
   ========================================================= */

.topbar{
  display:grid !important;
  grid-template-columns:minmax(260px, 560px) auto !important;
  gap:10px !important;
  align-items:center !important;
}

.topbar .mobile-menu-btn{
  display:none !important;
}

.topbar .search{
  min-width:0 !important;
  width:100% !important;
  max-width:560px !important;
}

.topbar .search input{
  min-height:42px !important;
}

.topbar .actions{
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}

.topbar .actions button{
  min-height:42px !important;
  padding:0 14px !important;
  border-radius:13px !important;
  font-weight:850 !important;
}

.topbar .actions button[data-home-topbar="home"]{
  background:linear-gradient(135deg,var(--primary),#1d4ed8) !important;
  color:#fff !important;
  border-color:transparent !important;
}

#homeLauncherCards{
  margin-bottom:14px !important;
}

#homePriorityDeck{
  margin-top:14px !important;
  margin-bottom:18px !important;
}

#homePriorityDeck .priority-board{
  margin:0 !important;
}

#homePriorityDeck .board-col{
  min-height:205px !important;
}

@media(max-width:1180px){
  .topbar{
    grid-template-columns:1fr !important;
  }

  .topbar .search{
    max-width:none !important;
  }

  .topbar .actions{
    justify-content:flex-start !important;
    overflow-x:auto !important;
    padding-bottom:2px !important;
  }
}

@media(max-width:640px){
  .topbar{
    position:sticky !important;
    top:0 !important;
    padding:10px !important;
    margin:-16px -16px 12px !important;
  }

  .topbar .actions button{
    min-width:max-content !important;
    padding:0 12px !important;
  }
}
