/* ════════════════════════════════════════════════════════════════════════════
   ATLAS V6 · T2b — DAY BRIEF SURFACE POLISH   (css/v6-t2b-daybrief.css)
   Dated 2026-06-29 · enterprise-uplift fleet (account B). LOADS LAST, immediately
   before css/v6-lock.css — additive, wins by source order + #id specificity.

   Fixes Codex finding F3 ("Day Brief = weakest surface"). Scope is locked to
   #view-day-brief so blast radius can't bleed into other views. CSS only — no
   markup/JS edits; voice + routing IDs untouched. Single gold accent
   (--gold #c18a25); ZERO cyan.

   Targets the real DOM (verified in index.html L4391-4432 + js/training.js L848):
     #view-day-brief > .v6-brief-wrap
        .v6-brief-narrative   (the always-dark hero — eyebrow/h2/date/body/bullets)
        .v6-brief-metrics > .v6-brief-metric-card x3 (label / val "—" / delta)
        .v6-brief-schedule    (head + #brief-schedule-list, always the empty row)
        .v6-brief-actions     (JS-injected: Review Pipeline / Check Tasks / Run Report)

   The four moves:
     1. SHRINK the dark hero to a compact ~125px band (was ~200px, dominating).
     2. KPI em-dash reads as INTENTIONAL "awaiting source" — honest source caption
        under each tile (>=12px), value stays a big gold hero.
     3. FILL the dead lower field — view + wrap flex-fill the 1080 frame and the
        schedule flex-grows; the empty state gets a premium centered treatment.
     4. Action buttons stay calm + on-brand (gold = Run Report only). Reaffirmed
        here so the sheet is self-contained (mirrors css/v6-t2-global.css 1-2).
   ════════════════════════════════════════════════════════════════════════════ */

/* -- 0 - LAYOUT: active view + wrap fill the locked 1080 frame ----------------
   #view-day-brief is a plain .atlas-view (NOT a .w424-view), so nothing made it a
   flex child of .canvas - that is why content sat at the top and a dead cream band
   showed below. Make the active view a column that fills .canvas; the wrap fills
   the view; the schedule absorbs the slack. Guarded to desktop so mobile keeps its
   natural auto-height flow (.atlas-view{height:auto} in the mobile bundle). */
@media (min-width: 961px) {
  #view-day-brief:not(.view-off) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  #view-day-brief .v6-brief-wrap {
    flex: 1;
    min-height: 0;
    height: auto;            /* supersede the base height:100% so flex governs */
  }
  #view-day-brief .v6-brief-narrative,
  #view-day-brief .v6-brief-metrics { flex-shrink: 0; }

  /* Schedule consumes the remaining vertical space -> no dead field, no body scroll */
  #view-day-brief .v6-brief-schedule {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #view-day-brief #brief-schedule-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

#view-day-brief .v6-brief-wrap { gap: 14px; }

/* -- 1 - COMPACT DARK HERO - calm band, no longer dominates (F7) --------------
   May stay dark (the one allowed dark band on this view) but tightened: ~125px in
   the empty/preparing state, growing only with the real brief's own content. */
#view-day-brief .v6-brief-narrative {
  padding: 14px 24px;
  border-radius: var(--radius, 8px);
}
#view-day-brief .v6-brief-narrative .eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  margin-bottom: 5px;
  color: #9fb0bf;
}
#view-day-brief .v6-brief-narrative h2 {
  font: 850 27px/1.12 "Aptos Display", Inter, "Segoe UI", system-ui, sans-serif;
  margin: 0 0 5px;
  color: #f3f8fc;
}
#view-day-brief .v6-brief-date {
  font-size: 13px;
  letter-spacing: .01em;
  margin-bottom: 4px;
  color: #9fb0bf;
}
#view-day-brief .v6-brief-body {
  font-size: 14px;
  line-height: 1.5;
  color: #c8d8e8;
  margin: 0;
  max-width: 820px;
}
/* Bullets (real-brief state) tighten so a loaded hero stays calm, not tall */
#view-day-brief .v6-brief-bullets { margin-top: 10px; }
#view-day-brief .v6-brief-bullets li {
  padding: 6px 0;
  font-size: 14px;
}

/* -- 2 - KPI TILES: big gold value + honest source caption --------------------
   The briefs feed carries no metric source, so these intentionally hold an
   em-dash. A small caption under each makes the dash read "awaiting source", not
   "broken". Caption names the BINDING TARGET (north-star "Bind to..." vocabulary) -
   honest (intended source, not a claim of current data) + multi-tenant-generic. */
#view-day-brief .v6-brief-metric-card {
  display: flex;
  flex-direction: column;
  padding: 15px 16px 13px;
}
#view-day-brief .v6-brief-metric-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted, #647184);
  margin-bottom: 6px;
}
#view-day-brief .v6-brief-metric-val {
  font: 850 30px/1.05 "Aptos Display", Inter, system-ui, sans-serif;
  color: var(--gold, #c18a25);
  letter-spacing: -.01em;
}
#view-day-brief .v6-brief-metric-delta { font-size: 12px; margin-top: 3px; }

/* Source caption - appended after the (often empty) delta. >=12px metadata. */
#view-day-brief .v6-brief-metrics > .v6-brief-metric-card::after {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted, #647184);
  content: "Awaiting source";
}
#view-day-brief .v6-brief-metrics > .v6-brief-metric-card:nth-of-type(1)::after { content: "Binds to deal pipeline"; }
#view-day-brief .v6-brief-metrics > .v6-brief-metric-card:nth-of-type(2)::after { content: "Binds to task source"; }
#view-day-brief .v6-brief-metrics > .v6-brief-metric-card:nth-of-type(3)::after { content: "Binds to calendar"; }

/* -- 3 - SCHEDULE PANEL + PREMIUM EMPTY STATE ---------------------------------
   The placeholder/empty/loading rows carry inline color:#8a95a3 (set in the inline
   brief script + emptySchedule()); real appointment rows do NOT. So [style*="8a95a3"]
   reliably selects ONLY the empty state. Re-cast it from a thin grey grid line into
   a calm, centered, full-height empty state with a small gold line-mark + quiet
   next-action hint. */
#view-day-brief .v6-brief-schedule-head {
  padding: 12px 18px;
  font: 800 16px/1 Inter, system-ui, sans-serif;
  color: var(--ink, #101722);
  flex-shrink: 0;
}
#view-day-brief .v6-sched-item[style*="8a95a3"] {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 40px 18px;
  text-align: center;
  border-bottom: 0;
  color: var(--muted, #647184) !important;   /* beat inline #8a95a3 for >=4.5:1 */
  font-size: 14px;
}
/* hide the two empty side spans so the message centers cleanly */
#view-day-brief .v6-sched-item[style*="8a95a3"] > span:empty { display: none; }
/* small gold line-mark (icon-free, calm) above the message */
#view-day-brief .v6-sched-item[style*="8a95a3"]::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold, #c18a25);
  opacity: .5;
}
/* quiet next-action hint below the message */
#view-day-brief .v6-sched-item[style*="8a95a3"]::after {
  content: "Use the actions below to review your pipeline, tasks, or run a report.";
  max-width: 320px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint, #8a95a3);
}

/* -- 4 - ACTION ROW - calm, gold primary = Run Report only (no cyan) ----------
   Reaffirms css/v6-t2-global.css 1-2 so this sheet is self-contained regardless
   of inter-sheet load order; identical tokens, so no conflict if both apply. */
#view-day-brief .v6-brief-actions { flex-shrink: 0; }
#view-day-brief .v6-brief-actions .btn:not(.btn-gold) {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  color: var(--ink, #101722);
  font-weight: 600;
  border-radius: var(--radius, 8px);
  padding: 9px 16px;
  box-shadow: 0 1px 2px rgba(29, 24, 14, .05);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
#view-day-brief .v6-brief-actions .btn:not(.btn-gold):hover {
  background: #f4f1ea;
  border-color: #c4b9a8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(29, 24, 14, .10);
}
#view-day-brief .v6-brief-actions .btn.btn-gold {
  background: var(--gold, #c18a25);
  color: #1f1503;
  border: 1px solid #b07d1c;
  font-weight: 700;
  border-radius: var(--radius, 8px);
  box-shadow: 0 1px 2px rgba(29, 24, 14, .12);
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}
#view-day-brief .v6-brief-actions .btn.btn-gold:hover {
  background: #b07d1c;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 24, 14, .18);
}
#view-day-brief .v6-brief-actions .btn:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  #view-day-brief .v6-brief-actions .btn { transition: none; }
  #view-day-brief .v6-brief-actions .btn:hover { transform: none; }
}
