/* components/tabs: Tabs (ui/Tabs.js), on the design-system tokens. Values from DS components/core/Tabs.jsx; the
   few literals are the component's own (noted where they appear). */

.ae-tabs { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.ae-tabs__bar {
  flex-shrink: 0; display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--ae-tabs-inset, var(--gutter-page));
  background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
}
/* inside a card the card's own padding is the inset */
.ae-card .ae-tabs__bar { --ae-tabs-inset: 0px; }
.ae-tabs__list { flex: 0 1 auto; display: flex; min-width: 0; min-height: 40px; /* DS Tabs */ overflow-x: auto; }
.ae-tabs__list--grow { flex: 1 1 auto; }
.ae-tabs__slot { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.ae-tab {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 40px; /* DS Tabs */
  padding: 0 var(--s-3); border: none; border-bottom: 2px solid transparent; background: transparent;
  font: var(--type-body); font-weight: var(--weight-regular); color: var(--text-muted);
  white-space: nowrap; cursor: pointer; transition: var(--transition-control);
}
.ae-tab:hover { color: var(--text-strong); }
.ae-tab.is-active { border-bottom-color: var(--surface-brand); color: var(--text-brand); font-weight: var(--weight-semibold); }
.ae-tab:focus-visible { outline-offset: -2px; }
.ae-tab .icon { flex-shrink: 0; }
.ae-tab__count {
  flex-shrink: 0; padding-inline: 6px; border-radius: var(--radius-pill); /* DS TabCount */
  font: var(--type-caption); line-height: 16px; font-variant-numeric: tabular-nums;
  color: var(--text-subtle); background: var(--surface-sunken);
}
.ae-tab__count--danger { color: var(--status-danger-fg); background: var(--status-danger-bg); }
.ae-tab__count--warning { color: var(--status-warning-fg); background: var(--status-warning-bg); }
.ae-tabs__panel { min-width: 0; }
.ae-tabs__panel:focus-visible { outline-offset: 4px; }
