:root{--linber-control-height:31px}

/* One desktop control rhythm. Small navigation controls and circular modal
   controls intentionally keep their compact/special shapes. */
.app-shell .button:not(.button-small),
.app-shell a.button:not(.button-small),
.app-shell .primary-action,
.app-shell .form-actions>button:not(.button-small),
.app-shell .response-actions>button:not(.button-small){
  box-sizing:border-box;
  height:var(--linber-control-height)!important;
  min-height:var(--linber-control-height)!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

.calendar-head-actions,
.team-list-actions,
.user-list-actions,
.person-head-actions,
.event-top-buttons,
.form-actions,
.response-actions,
.project-actions-inline,
.need-primary-actions{align-items:stretch!important}

.calendar-head-actions,.team-list-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.calendar-head-actions .button,.team-list-actions .button{width:100%;min-width:0;box-sizing:border-box;text-align:center}

.calendar-control-row{align-items:center}
.calendar-control-row .calendar-filters select,
.calendar-control-row .calendar-filters input,
.calendar-control-row .calendar-filters .button,
.calendar-control-row .calendar-mode a{
  box-sizing:border-box;
  height:var(--linber-control-height)!important;
  min-height:var(--linber-control-height)!important;
}
.calendar-control-row .calendar-mode{display:flex;align-items:stretch}
.calendar-control-row .calendar-mode a{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px}

@media(max-width:760px){
  :root{--linber-control-height:38px}
  .calendar-head-actions,.team-list-actions{width:100%}
}
@media(max-width:520px){.calendar-head-actions,.team-list-actions{grid-template-columns:1fr}}
