/* experience_editor/dm_tabs.css — Solution A · Panel 2B DM tab strip.
   Underline-style tabs matching the locked Design Session pattern:
     • Active tab — accent-primary text, accent-primary 2px underline.
     • Muted tab — text-tertiary text + dashed underline (clickable to create DM).
     • Resting tab — text-secondary, no underline; hover bumps to text-primary. */

/* ── Section A · "Delivery Methods" eyebrow label (caps + tracking) ── */
.ee-dm-tabs__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ee-dm-tabs__title .material-symbols-rounded {
  font-size: 18px;
  color: var(--accent-primary);
}

/* ── Tab strip ── */
.ee-dm-tabs__tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Single tab ── */
.ee-dm-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; /* sit on top of the strip's 1px line */
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.ee-dm-tab:hover {
  color: var(--text-primary);
}

.ee-dm-tab--active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 600;
}

.ee-dm-tab--muted {
  color: var(--text-tertiary);
  font-style: italic;
  border-bottom: 2px dashed var(--border-default);
}

.ee-dm-tab--muted:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.ee-dm-tab__icon {
  font-size: 18px;
  line-height: 1;
}

.ee-dm-tab__label {
  line-height: 1;
}

/* ── Element-count pill (only on tabs whose DM exists) ── */
.ee-dm-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ee-dm-tab--active .ee-dm-tab__count {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

/* ── Destroy link — Section D, edge-to-edge.
   Subtle text-tertiary; hover turns red. Right-aligned with the panel's right padding. */
.ee-dm-tabs__destroy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: var(--space-3) var(--space-4) 0 auto;
  padding: var(--space-1) var(--space-2);
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

.ee-dm-tabs__destroy:hover {
  color: var(--status-error);
}

.ee-dm-tabs__destroy .material-symbols-rounded {
  font-size: 14px;
}

.ee-dm-tabs__destroy-row {
  display: flex;
  justify-content: flex-end;
}
