﻿/* Approval status pills (new field) */
.approval-not-approved   { background: var(--status-neutral-bg); color: var(--status-neutral-ink); }
.approval-in-review      { background: var(--status-amber-bg);   color: var(--status-amber-ink); }
.approval-approved       { background: var(--status-green-bg);   color: var(--status-green-ink); }
.approval-needs-rework   { background: var(--status-red-bg);     color: var(--status-red-ink); }


/* ---- Change card roles row ---- */
.change-card-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--line-soft);
}

/* ---- Flag badges (visible signals on program head) ---- */
.program-flags {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.program-flag {
  font-family: "Geist Mono", monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.flag-needs-clar     { background: var(--status-red-bg);   color: var(--status-red-ink);   border-color: var(--status-red-bg); }
.flag-needs-rework   { background: var(--status-amber-bg); color: var(--status-amber-ink); border-color: var(--status-amber-bg); }
.flag-no-owner       { background: var(--bg); color: var(--ink-muted); }
.flag-needs-decomp   { background: var(--task-draft-bg); color: var(--task-draft-ink); border-color: var(--line); }

/* Make the flag block hidden in brief mode (avoid header noise) — show in working/detailed/edit */
body[data-mode="brief"] .program-flags { display: none; }

/* ---- Dependency amplification ---- */
.deps-block {
  padding: 16px 18px;
  background: rgba(31,29,26,0.025);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 4px;
  margin-top: 4px;
}
.deps-block-header {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.dep-item {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  font-size: 13px;
  line-height: 1.45;
}
.dep-item:last-child { border-bottom: none; }
.dep-id {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  min-width: 110px;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.dep-type {
  font-size: 11.5px;
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 0;
}
.dep-type::before {
  content: "→ ";
  color: var(--ink-soft);
  margin-right: 2px;
}
.dep-confidence {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.dep-text {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
  flex: 1;
  min-width: 220px;
}
@media (max-width: 700px) {
  .dep-item { flex-wrap: wrap; }
  .dep-text { width: 100%; }
}

/* ---- Unified storage controls (edit mode only) ---- */
.unified-store-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 40px;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(184, 117, 10, 0.06);
  border-bottom: 1px solid var(--status-amber-bg);
}
body[data-mode="edit"] .unified-store-bar { display: flex; }
.unified-store-label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--status-amber-ink);
  margin-right: 6px;
}
.unified-store-bar .ghost-btn {
  border-color: var(--status-amber-bg);
  color: var(--status-amber-ink);
}
.unified-store-bar .ghost-btn:hover {
  background: var(--status-amber-ink);
  color: var(--bg);
  border-color: var(--status-amber-ink);
}
.unified-store-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
