/* Two readable rows for the eight queue choices on desktop and mobile. */
.inbox .efficiency-views{display:none!important}
.inbox #team-toolbar>.inbox-actions,.inbox .mobile-options .inbox-actions{min-width:0;max-width:100%;gap:6px;overflow:hidden}
.inbox #filter-view{min-width:0;max-width:100%;flex:1 1 0;width:auto;font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.inbox .campaign-inbox-tools{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 10px 10px;min-width:0}
.inbox .campaign-inbox-tools[hidden]{display:none!important}
.inbox .campaign-inbox-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;overflow:visible}
.inbox .campaign-inbox-modes button{min-width:0;min-height:36px;padding:5px 7px;border-radius:9px;white-space:normal;text-align:center;line-height:1.2;font-size:12px}
.inbox #resolve-campaign-only:not([hidden]){align-self:flex-end;max-width:100%}
html body .inbox .queue-tabs,
html[data-theme="dark"] body .inbox .queue-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:minmax(42px,auto);gap:6px!important;width:100%;min-width:0;max-width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:6px 0!important}
html body .inbox .queue-tabs>button,
html[data-theme="dark"] body .inbox .queue-tabs>button{display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:5px 3px!important;gap:2px!important;font-size:12px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:normal;text-align:center}
html body .inbox .queue-tabs>button span,
html[data-theme="dark"] body .inbox .queue-tabs>button span{display:inline-block;min-width:0!important;height:auto!important;font-size:11px!important;line-height:1.1}
html body .inbox .queue-tabs>details.queue-more,
html[data-theme="dark"] body .inbox .queue-tabs>details.queue-more{display:block!important;grid-column:auto!important;justify-self:stretch!important;min-width:0}
.inbox .queue-more>summary{display:grid;place-items:center;min-height:42px!important;height:100%;width:100%;padding:5px!important;border-radius:10px;font-size:12px!important}
.inbox .queue-more>div{right:0;z-index:30}
@media (max-width:720px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 html body .inbox .queue-tabs,
 html[data-theme="dark"] body .inbox .queue-tabs{grid-auto-rows:minmax(45px,auto);gap:5px!important;margin:5px 0!important}
 html body .inbox .queue-tabs>button,
 html[data-theme="dark"] body .inbox .queue-tabs>button{min-height:45px!important;font-size:clamp(11px,3.1vw,12px)!important;padding:5px 2px!important}
 html[data-theme="dark"] body .inbox .queue-tabs>[data-queue-state="CLOSED"],
 html[data-theme="dark"] body .inbox .queue-tabs>[data-queue-state="SNOOZED"]{display:flex!important}
 html[data-theme="dark"] body .inbox .campaign-inbox-tools{margin-top:5px;border-top:1px solid var(--dina-border)}
 html[data-theme="dark"] body .inbox #filter-view{height:38px;min-height:38px;max-width:100%;font-size:13px}
}

/* Queue layout applies to the desktop sidebar and the mobile viewport. */
html body #team-toolbar .queue-tabs,
html[data-theme="dark"] body #team-toolbar .queue-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:minmax(44px,auto)!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:6px 0 10px!important;
  padding:0!important;
  overflow:visible!important;
  flex-wrap:initial!important;
}
html body #team-toolbar .queue-tabs>button,
html[data-theme="dark"] body #team-toolbar .queue-tabs>button{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  min-width:0!important;
  min-height:44px!important;
  width:100%!important;
  height:auto!important;
  flex:initial!important;
  margin:0!important;
  padding:5px 3px!important;
  gap:2px!important;
  font-size:12px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-align:center!important;
}
html body #team-toolbar .queue-tabs>button span{
  display:block!important;
  min-width:0!important;
  height:auto!important;
  font-size:11px!important;
  line-height:1!important;
}
@media(max-width:720px){
  html body #team-toolbar .queue-tabs,
  html[data-theme="dark"] body #team-toolbar .queue-tabs{grid-auto-rows:minmax(46px,auto)!important;gap:5px!important;margin:5px 0 8px!important}
  html body #team-toolbar .queue-tabs>button,
  html[data-theme="dark"] body #team-toolbar .queue-tabs>button{min-height:46px!important;font-size:clamp(11px,2.8vw,12px)!important}
}
@layer dina-desktop-review {
 @media (min-width:721px) {
  body.desktop-m3 .inbox #team-toolbar .queue-tabs {
   display:grid!important;
   grid-template-columns:repeat(4,minmax(0,1fr))!important;
   grid-auto-rows:minmax(46px,auto)!important;
   flex-wrap:initial!important;
   gap:7px!important;
   height:auto!important;
   min-height:0!important;
   max-height:none!important;
   margin:7px 0 10px!important;
   overflow:visible!important;
  }
  body.desktop-m3 .inbox #team-toolbar .queue-tabs>button {
   display:flex!important;
   flex-direction:column!important;
   flex:initial!important;
   width:100%!important;
   min-width:0!important;
   height:auto!important;
   min-height:46px!important;
   padding:5px 3px!important;
   gap:2px!important;
   line-height:1.15!important;
   white-space:normal!important;
   overflow:hidden!important;
   text-align:center!important;
  }
  body.desktop-m3 .inbox #team-toolbar .queue-tabs>button span {
   display:block!important;
   min-width:0!important;
   height:auto!important;
   padding:0!important;
   line-height:1!important;
  }
 }
}
/* Remove the full-width divider behind the first conversation card on mobile. */
@media (max-width:720px), (max-width:1000px) and (max-height:500px) and (pointer:coarse) {
 html body .inbox>.inbox-toolbar {
  border-bottom:0!important;
 }
 html body #inbox-list {
  border-top:0!important;
  padding-top:8px!important;
 }
}