/* ChiefLab Command Center — workspace-level dashboard.
 *
 * Inherits typography + color tokens from /runs/styles.css; this file
 * only adds layout and panel-specific styles. The Command Center is
 * one route over from the Launch Room (/runs/:id) — the room is
 * approval, the dashboard is operating system. Matching visual
 * language so founders flow between the two without re-learning.
 */

body { min-height: 100vh; }

.cc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-strong, rgba(255, 255, 255, 0.08));
}
.cc-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.cc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text, #e4e6eb);
  font-weight: 700;
  font-size: 14px;
}
.cc-brand-label { letter-spacing: 0.02em; }
.cc-header-title {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cc-eyebrow {
  font-size: 11px;
  color: var(--text-muted, #8b8d93);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#cc-workspace-label {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-conn-state {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--bg-elev-2);
}
.cc-conn-state[data-state="ok"] { color: #34d399; border-color: rgba(52, 211, 153, 0.35); }
.cc-conn-state[data-state="error"] { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
.cc-conn-state[data-state="loading"] { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }

.cc-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

/* Onboarding card — shown when no API key is stored. */
.cc-onboarding {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}
.cc-onboarding-card {
  max-width: 520px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 10px);
  padding: 32px;
}
.cc-onboarding-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.cc-onboarding-help {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 12px 0;
}
.cc-onboarding-help code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 1px 6px;
  background: rgba(255, 107, 74, 0.08);
  border: 1px solid rgba(255, 107, 74, 0.18);
  border-radius: 4px;
  color: #ff8a6a;
}
.cc-key-form {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
#cc-api-key-input {
  flex: 1;
  appearance: none;
  background: var(--bg-elev-1, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm, 6px);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}
#cc-api-key-input:focus {
  outline: none;
  border-color: var(--op-color, #ff6b4a);
}

/* P111 — Today's Loop card. Sits above the panel grid as the primary
   read for any returning founder. Brand-tinted left border so it
   reads as "the operator's daily card" rather than just another
   panel. */
.cc-loop-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--op-color, #ff6b4a);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 18px;
  overflow: hidden;
}
.cc-loop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(255, 107, 74, 0.04);
}
.cc-loop-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cc-loop-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.cc-loop-body {
  padding: 4px 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
@media (max-width: 720px) {
  .cc-loop-body { grid-template-columns: 1fr; }
}
.cc-loop-section {
  padding-top: 14px;
}
.cc-loop-section-h {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cc-loop-section-p {
  font-size: 13.5px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.cc-loop-outcome {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
}
.cc-loop-rationale {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
  line-height: 1.5;
}
.cc-loop-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.cc-loop-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-loop-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cc-loop-list li:last-child { border-bottom: none; }
.cc-loop-list-title {
  font-size: 13px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-loop-list-btn {
  flex: 0 0 auto;
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* P126 — next-move card with inline body preview. Each next-move
   gets its own card with header (title + channel chip), collapsible
   "See the move" body, and an action row (open platform / copy
   text / click to do it). */
.cc-loop-state-c-today {
  grid-column: 1 / -1;
}
.cc-loop-nextmove-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-nextmove-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
}
.cc-nextmove-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.cc-nextmove-title {
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.cc-nextmove-channel {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-nextmove-body {
  margin: 8px 0;
}
.cc-nextmove-body > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}
.cc-nextmove-body > summary:hover { color: var(--text); }
.cc-nextmove-body pre {
  font-size: 12.5px;
  line-height: 1.55;
  padding: 10px 12px;
  margin: 8px 0 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

/* P127 — top commenter quotes inline in the Yesterday section.
   Quoted comments make the next-move card's "reply to these
   commenters" guidance feel real. */
.cc-loop-comments {
  margin: 10px 0 6px;
  padding: 10px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.cc-loop-comments > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.cc-loop-comments > summary:hover { color: var(--text); }
.cc-loop-comments-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-loop-comments-list li {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm, 6px);
  border-left: 2px solid rgba(96, 165, 250, 0.5);
}
.cc-loop-comment-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cc-loop-comment-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* P114 — Today's Loop state styling.
 *
 * State A (day 0, no actions yet) — show a CLI snippet hero so the
 * founder sees the operator framing immediately on first visit.
 * State B (pending action, no measurement) — inline "I posted it"
 * button + URL paste form. The button-row + form share styles so the
 * cockpit reads consistently.
 */
.cc-loop-state-a {
  grid-column: 1 / -1;
}
.cc-loop-state-b {
  grid-column: 1 / -1;
}
.cc-loop-cli {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 12px 14px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.cc-loop-draft {
  margin: 8px 0;
}
.cc-loop-draft > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}
.cc-loop-draft > summary:hover { color: var(--text); }
.cc-loop-draft pre {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 8px 0 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.cc-loop-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cc-loop-url-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.cc-loop-url-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cc-loop-url-input {
  appearance: none;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  margin-bottom: 4px;
}
.cc-loop-url-input:focus {
  outline: none;
  border-color: var(--op-color, #ff6b4a);
}
.cc-loop-url-result {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* P129 — generated visuals row inside State B's pending action card.
   Thumbnails of the launch graphics with channel-matched dimensions.
   Founder sees post body + visual together. */
.cc-loop-visuals {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.cc-loop-visuals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.cc-loop-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
}
.cc-loop-visual img {
  max-width: 220px;
  max-height: 220px;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  object-fit: cover;
}
.cc-loop-visual figcaption {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cc-loop-visual-placeholder {
  display: block;
  width: 200px;
  height: 105px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 105px;
}

/* P116 — "Posted, awaiting your metrics" card. Sits right below the
   Today's Loop card with the same visual language. Each row is a
   single posted action with a paste-form inside. */
.cc-metrics-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid #fbbf24;
  border-radius: var(--radius-md, 10px);
  margin: 0 0 18px;
  overflow: hidden;
}
.cc-metrics-card .cc-loop-head {
  background: rgba(251, 191, 36, 0.04);
}
.cc-metrics-body {
  padding: 14px 18px 18px;
}
.cc-metrics-help {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.cc-metrics-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.cc-metrics-row:first-of-type { border-top: none; padding-top: 0; }
.cc-metrics-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.cc-metrics-row-title {
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-metrics-row-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.cc-metrics-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.cc-metrics-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-metrics-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cc-metrics-field input {
  appearance: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
}
.cc-metrics-field input:focus {
  outline: none;
  border-color: #fbbf24;
}
.cc-metrics-field-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.cc-metrics-result {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* P128 — Brain memory snapshot card. Purple-tinted left border so it
   reads as "knowledge / context" rather than "action needed". */
.cc-brain-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid #a855f7;
  border-radius: var(--radius-md, 10px);
  margin: 0 0 18px;
  overflow: hidden;
}
.cc-brain-card .cc-loop-head {
  background: rgba(168, 85, 247, 0.04);
}
.cc-brain-body {
  padding: 14px 18px 18px;
}
.cc-brain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.cc-brain-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cc-brain-cell-h {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cc-brain-cell-p {
  font-size: 13.5px;
  margin: 0;
  color: var(--text);
}
.cc-brain-cell-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.cc-brain-cell-list {
  margin: 4px 0 0;
  padding-left: 14px;
  font-size: 12.5px;
}
.cc-brain-cell-list li {
  margin-bottom: 3px;
}
/* P136 — new brain card rows that read like operator notes, not a
   stats screen. Channel performance row + quote list. */
.cc-brain-body > .cc-brain-cell {
  margin-bottom: 16px;
}
.cc-brain-body > .cc-brain-cell:last-child {
  margin-bottom: 0;
}
.cc-brain-channel-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.cc-brain-channel-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
}
.cc-brain-channel-list li:last-child { border-bottom: none; }
.cc-brain-channel-name {
  font-weight: 600;
  min-width: 110px;
}
.cc-brain-channel-metric {
  color: var(--text-muted);
}
.cc-brain-quote-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-brain-quote-list li {
  padding: 8px 10px;
  background: rgba(168, 85, 247, 0.04);
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-sm, 6px);
}
.cc-brain-quote-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cc-brain-quote-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}

/* P123 — Auto-measure scheduled card. Same shape as P116 metrics
   card but with a green tint so it reads as "scheduled / on track"
   rather than "waiting on you". */
.cc-auto-measure-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid #34d399;
  border-radius: var(--radius-md, 10px);
  margin: 0 0 18px;
  overflow: hidden;
}
.cc-auto-measure-card .cc-loop-head {
  background: rgba(52, 211, 153, 0.04);
}

/* P118 — minimal cockpit mode. Default screen is operator-shaped:
   Today's Loop + paste metrics, then a quiet "Show all dashboards"
   button. Founder doesn't see the 10-panel grid until they ask. */
.cc-expand-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 18px;
  padding: 10px 18px;
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cc-expand-btn:hover {
  border-color: var(--op-color, #ff6b4a);
  color: var(--text);
  background: rgba(255, 107, 74, 0.04);
}
.cc-expand-icon {
  font-size: 11px;
  opacity: 0.7;
}
.cc-expand-label {
  font-weight: 500;
}

/* P120 — onboarding wizard styles. Three-step card that replaces the
   bare API-key paste form. Each step is self-contained; CSS hides
   inactive steps via the .hidden class. */
.cc-onboard-eyebrow {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cc-onboard-step h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}
.cc-intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}
.cc-intent-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-elev-1, rgba(0,0,0,0.25));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cc-intent-card:hover {
  border-color: var(--op-color, #ff6b4a);
  background: rgba(255, 107, 74, 0.04);
}
.cc-intent-title {
  font-size: 14px;
  font-weight: 600;
}
.cc-intent-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.cc-onboard-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
}
.cc-onboard-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--op-color, #ff6b4a);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.cc-onboard-link:hover { opacity: 0.85; }
.cc-onboard-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 12px;
}
.cc-onboard-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cc-onboard-label > span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-onboard-label input {
  appearance: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: var(--radius-sm, 6px);
}
.cc-onboard-label input:focus {
  outline: none;
  border-color: var(--op-color, #ff6b4a);
}
.cc-onboard-result {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cc-onboard-existing {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.cc-onboard-existing > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cc-onboard-existing > summary:hover { color: var(--text); }

/* Panel grid — 2-column on desktop, single on mobile. Specific panels
   span both columns when they need more horizontal room. */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cc-panel-launches,
.cc-panel-proof,
.cc-panel-memory { grid-column: span 2; }
@media (max-width: 720px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-panel-launches,
  .cc-panel-proof,
  .cc-panel-memory { grid-column: auto; }
}

.cc-panel {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
}
.cc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.cc-panel-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}
.cc-panel-count {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.cc-panel-body {
  padding: 14px 18px;
  min-height: 80px;
  max-height: 380px;
  overflow-y: auto;
}
.cc-panel-loading {
  color: var(--text-muted);
  font-size: 12px;
  padding: 12px 0;
}
.cc-panel-empty {
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 8px 0;
  font-style: italic;
}
.cc-panel-error {
  color: #f87171;
  font-size: 12px;
  padding: 8px 0;
}

/* Individual row pattern — used by launches / approvals / posted /
   measurement / proof / next-move panels. */
.cc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cc-row:last-child { border-bottom: none; }
.cc-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-row-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-row-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-row-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.cc-row-badge-ready { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.cc-row-badge-pending { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.cc-row-badge-blocked { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.cc-row-badge-info { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.cc-row-link {
  font-size: 11px;
  color: var(--op-color, #ff6b4a);
  text-decoration: none;
}
.cc-row-link:hover { text-decoration: underline; }

.cc-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  font-size: 12.5px;
}
.cc-kv-key {
  color: var(--text-muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cc-kv-val { color: var(--text); word-break: break-word; }
.cc-kv-val .cc-row-badge { display: inline-block; }

/* Error block. */
.cc-error {
  text-align: center;
  padding: 60px 24px;
}
.cc-error h2 { font-size: 18px; margin: 0 0 8px; }
#cc-error-detail {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 12px 0;
}

.hidden { display: none !important; }
