/* ═══════════════════════════════════════════════════════════════════════════════
   DΛREΛKT_ ATOM — ui.chrome.tabs
   The welded tab strip (.gns-oc__tabs) for the cockpit subnav slot, and the
   in-ctl segmented group (.gns-oc__segs). The strip is ported rule-for-rule
   from the byte-identical ARC / SEAL private copies, which are the canonical
   shape; SHIELD's chamfered variant flattens onto this on alignment.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── TAB STRIP (welded between band and stage) ─────────────────────────── */
.gns-oc__tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 3;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--ha-border);
  padding-bottom: 0.55rem;
}
.gns-oc__tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: transparent; border: 1px solid transparent; border-radius: 3px;
  color: var(--ha-text-muted);
  font-family: var(--gns-mono, ui-monospace, monospace);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
a.gns-oc__tab:hover { text-decoration: none; }
.gns-oc__tab:hover:not(:disabled) { color: var(--ha-text); border-color: var(--ha-border); }
.gns-oc__tab:disabled { opacity: 0.45; cursor: not-allowed; }
.gns-oc__tab.is-active {
  color: var(--ha-accent);
  border-color: color-mix(in srgb, var(--ha-accent) 50%, transparent);
  background: color-mix(in srgb, var(--ha-accent) 8%, transparent);
}
.gns-oc__tab-glyph { font-size: 0.82rem; }
.gns-oc__tab-label { white-space: nowrap; }

/* ─── SEGMENTED GROUP (inside the ctl slot) ─────────────────────────────── */
.gns-oc__segs {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ha-border-hi);
  border-radius: var(--gns-radius, 4px);
  overflow: hidden;
}
.gns-oc__seg {
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ha-border);
  color: var(--ha-text-muted);
  font-family: var(--gns-mono, ui-monospace, monospace);
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.gns-oc__seg:last-child { border-right: 0; }
.gns-oc__seg:hover { color: var(--ha-text); }
.gns-oc__seg.is-active {
  color: var(--ha-accent);
  background: color-mix(in srgb, var(--ha-accent) 10%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .gns-oc__tab, .gns-oc__seg { transition: none; }
}
