/* The active tab extends its heading surface; inactive tabs have no backplate. */
.crm-connected-tabs{
  --crm-tab-curve: 28px;
  display: grid;
  grid-template-columns: repeat(var(--crm-tab-columns, 4), minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  gap: 0;
  padding: 0 var(--crm-tab-curve) 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}
.crm-connected-tabs > :is(button,a){
  position: relative;
  z-index: 0;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  margin: 0;
  border: 0;
  border-radius: 0 0 var(--crm-tab-curve) var(--crm-tab-curve);
  background: transparent;
  color: var(--crm-ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}
.crm-connected-tabs > :is(button,a):hover{ color: var(--bn-accent-ink); }
.crm-connected-tabs > :is([aria-selected=true],[aria-current=page]){
  z-index: 1;
  color: var(--bn-accent-ink);
  background: var(--crm-paper);
}
.crm-connected-tabs > :is([aria-selected=true],[aria-current=page])::before,
.crm-connected-tabs > :is([aria-selected=true],[aria-current=page])::after{
  content: "";
  position: absolute;
  top: 0;
  width: var(--crm-tab-curve);
  height: var(--crm-tab-curve);
  pointer-events: none;
}
.crm-connected-tabs > :is([aria-selected=true],[aria-current=page])::before{
  right: 100%;
  background: radial-gradient(circle at 0 100%, transparent var(--crm-tab-curve), var(--crm-paper) calc(var(--crm-tab-curve) + .5px));
}
.crm-connected-tabs > :is([aria-selected=true],[aria-current=page])::after{
  left: 100%;
  background: radial-gradient(circle at 100% 100%, transparent var(--crm-tab-curve), var(--crm-paper) calc(var(--crm-tab-curve) + .5px));
}

.crm-connected-tabs > button:disabled{ opacity: .45; cursor: not-allowed; }

@media(max-width:900px){
  .crm-connected-tabs > :is(button,a){ font-size: 12px; padding: 7px 4px; }
}
