/* developments/css/headroom.css — Headroom v1 (#1191).
 * Styles for the gated "Zoning Headroom" rail surface (control panel + per-zone
 * legend) and its rail icon. Reuses the .panel / .panel-head / .dev-explore-body
 * shell from dev.css; everything here is .dev-headroom-* scoped (no bleed).
 * Token vars carry conservative fallbacks so the panel reads correctly even if a
 * token is renamed. */

.dev-rail-icon--headroom .dev-rail-glyph { color: var(--gold-600, #b8923f); }

.dev-headroom-body { padding-bottom: 1rem; }

.dev-headroom-intro {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-3, #67707c);
}

/* master overlay toggle + status */
.dev-headroom-ctl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line, #e3e3e0);
  border-radius: 8px;
  background: var(--surface-2, #f7f6f4);
  margin-bottom: 0.85rem;
}
.dev-headroom-master {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink, #1f2328);
  cursor: pointer;
}
.dev-headroom-master input { width: 16px; height: 16px; accent-color: var(--gold-600, #b8923f); cursor: pointer; }
.dev-headroom-status {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--ink-3, #67707c);
  font-variant-numeric: tabular-nums;
}
.dev-headroom-status--err { color: #c0392b; }

/* per-zone legend */
.dev-headroom-legend { display: flex; flex-direction: column; gap: 1px; }
.dev-headroom-group {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-3, #67707c);
  margin: 0.7rem 0 0.25rem;
}
.dev-headroom-group:first-child { margin-top: 0; }
.dev-headroom-zone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink, #1f2328);
}
.dev-headroom-zone:hover { background: var(--surface-2, #f5f5f4); }
.dev-headroom-zone input { width: 15px; height: 15px; accent-color: var(--gold-600, #b8923f); cursor: pointer; }
.dev-headroom-zone input:disabled { cursor: default; opacity: 0.45; }
.dev-headroom-swatch {
  width: 16px; height: 16px;
  border-radius: 4px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.dev-headroom-zname { display: inline-flex; align-items: baseline; gap: 0.3rem; min-width: 0; }
.dev-headroom-zname strong { font-weight: 700; }
.dev-headroom-zlabel { color: var(--ink-3, #67707c); font-size: 0.75rem; }

.dev-headroom-note {
  margin: 1rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line, #e3e3e0);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-3, #67707c);
}
