/* Page styles: Vandaag (the Command Center, route /). Only page-specific rules; the desk band lives in app.css.
   Reading order: the desk (what waits for you) → money (one line while it is zero) → what Leadsler is doing + brands
   → opportunities → E-001 checks, blockers and health only when they say something. */

/* ── money while it is zero: one line, the milestone track and the first-euro route ── */
.cc-money-line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px 22px; margin-bottom: 32px; }
.cc-money-line h2 { font-size: 17px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.cc-money-line .sub { margin: 6px 0 0; color: var(--text-2); }
.cc-money-line .money-facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--text-3); }
.cc-money-line .money-facts b { color: var(--text-2); font-weight: 600; }
.cc-money-line .milestones { margin-top: 0; padding-top: 0; border-top: 0; }
.cc-money-line .streams { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── what Leadsler is doing: pipelines on top, the work feed under them ── */
.work-feed { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.work-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.work-feed .feed li { padding: 8px 0; }
.work-empty { margin: 6px 0 0; font-size: 13.5px; }

/* ── brands: compact rows ── */
.brand-rows { list-style: none; margin: 0; padding: 0; }
.brand-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.brand-rows li:last-child { border-bottom: 0; }
.brand-rows .health-cell { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.brand-row-r { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .cc-money-line { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cc-money-line { padding: 16px; } .brand-rows li { padding: 12px; } }

/* ── head ── */
.cc-head { margin-bottom: 18px; }
.cc-head .meta { font-size: 13px; }

/* ── hero: revenue card ── */
.cc-hero { gap: 16px; margin-bottom: 16px; }
.cc-revenue { padding: 18px 20px 16px; display: flex; flex-direction: column; }
.cc-revenue .kicker { display: inline-flex; align-items: center; gap: 8px; }
.cc-revenue .display { margin: 8px 0 4px; }
.cc-revenue .facts { margin-top: 16px; padding-top: 14px; }
.cc-revenue .milestones { margin-top: 16px; }
.cc-revenue .streams { margin-top: 12px; }
.cc-revenue .cc-chart { margin-top: auto; padding-top: 14px; }
.cc-revenue .cc-chart .chart-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); margin-bottom: 4px; font-weight: 600; }

/* ── hero: next best action ── */
.cc-next { padding: 18px 20px; }
.cc-next.human { border-left-color: var(--accent-2); }
.cc-next.system { border-left-color: var(--line-2); }
.cc-next.system .kicker { color: var(--text-2); }
.cc-next .kicker { display: inline-flex; align-items: center; gap: 6px; }
.cc-next .kicker .ico { color: currentColor; }
.cc-next h2 { font-size: 18px; text-wrap: pretty; }
.cc-next .also { margin-top: auto; }
.cc-next .also .row { margin-top: 14px; }
.also-list li { padding: 6px 0; }

/* ── 30-day strip: six tiles, joined; the label row has a fixed height so values align even when a label wraps ── */
.cc-money .kpi { padding: 12px 14px 11px; }
.cc-money .kpi .kpi-top { min-height: 30px; align-items: flex-start; flex-wrap: wrap; row-gap: 2px; }
.cc-money .kpi .label { letter-spacing: 0.05em; white-space: nowrap; }
.cc-money .kpi .kpi-top .prov { margin-left: auto; } /* a long provenance tag drops to its own line, right-aligned, instead of crossing the label */
.cc-money .kpi .value { font-size: 22px; }
.cc-money .kpi .hint { font-size: 11.5px; }

/* ── the grid: paired cards share the row height; the foot stays at the bottom ── */
.cc-grid > * > .card { height: 100%; display: flex; flex-direction: column; }
.cc-grid > * > .card > .card-body { flex: 1 1 auto; }

/* ── where the money comes from: four columns, headline + distribution each ── */
.cc-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-sources .src { padding: 14px 16px 14px; border-right: 1px solid var(--line); min-width: 0; }
.cc-sources .src:last-child { border-right: 0; }
.cc-sources .kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.cc-sources .kicker .ico { color: var(--text-3); }
.cc-sources .lead { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; min-width: 0; }
.cc-sources .lead a, .cc-sources .lead span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cc-sources .lead-sub { color: var(--text-2); font-size: 12.5px; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.cc-sources .lead-sub b { color: var(--text); font-weight: 600; }
.cc-sources .barlist { font-size: 12.5px; }
.cc-sources .barlist .bl-val { font-weight: 500; color: var(--text-2); font-size: 12px; }
.cc-sources .barlist .bl-label { color: var(--text-2); }
.cc-sources .note { color: var(--text-3); font-size: 11.5px; margin-top: 10px; text-wrap: pretty; }
.cc-sources .none { color: var(--text-3); font-size: 12.5px; margin-top: 10px; }

/* ── opportunities: score with a small bar under the number ── */
.cc-opps td.score { width: 56px; vertical-align: middle; }
.cc-opps td.score b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cc-opps td.score .bar { display: block; height: 3px; min-width: 0; margin-top: 4px; width: 32px; }
.cc-opps td.score .bar > span { background: var(--accent-2); }

/* ── AI state row at the top of the activity feed ── */
.cc-ai-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cc-ai-state .city { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.cc-ai-state .city:hover { color: var(--text); }

/* ── compact portfolio ── */
.cc-brands td { vertical-align: middle; }
.cc-brands .strong { font-weight: 600; color: var(--text); }
.cc-brands .hintcell { color: var(--text-3); font-size: 11px; white-space: nowrap; margin-top: 1px; }
.cc-brands .health-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cc-brands td.pos { color: var(--good); }
.cc-brands td.neg { color: var(--bad); }
.cc-brands .brand-cell .bc-sub .badge { font-size: 10.5px; line-height: 16px; }

/* ── pipelines: three labelled stage rows ── */
.cc-pipes { display: flex; flex-direction: column; gap: 14px; }
.cc-pipes .kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cc-pipes .pipe-empty { color: var(--text-3); font-size: 12.5px; text-wrap: pretty; }
.cc-pipes .pipe-empty strong { color: var(--text-2); font-weight: 600; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .cc-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-sources .src { border-bottom: 1px solid var(--line); }
  .cc-sources .src:nth-child(2n) { border-right: 0; }
  .cc-sources .src:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .cc-money.kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-money.kpi-strip > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cc-money.kpi-strip > :nth-child(2n) { border-right: 0; }
  .cc-money.kpi-strip > :nth-last-child(-n + 2) { border-bottom: 0; }
  .cc-money .kpi { padding: 10px 12px; }
  .cc-money .kpi .value { font-size: 19px; }
  .cc-sources { grid-template-columns: 1fr; }
  .cc-sources .src { border-right: 0; border-bottom: 1px solid var(--line); }
  .cc-sources .src:last-child { border-bottom: 0; }
  .cc-next h2 { font-size: 16px; }
  .cc-head .actions { display: none; }
}
