/* ════════════════════════════════════════════════════════════════════════════
   ATLAS V6 — TODAY COMMAND SURFACE · enterprise polish T2  (css/v6-t2-today.css)
   ────────────────────────────────────────────────────────────────────────────
   Surface : #v6-today (data-view="home") — the executive home page only.
   Dated   : 2026-06-29 · loads LAST before css/v6-lock.css (single-class wins
             over base v6-today / v6-enterprise; !important used ONLY to beat an
             inline style — every instance is flagged inline below).

   Defects fixed (from the live DOM + baseline screenshot):
     1. Decision-Queue action buttons wrap to their own line. Root cause: each
        #v6-decision-queue .v6-decision-item has FOUR children (riskDot span ·
        icon chip · body · button) but the base grid declares only THREE tracks
        (28px 1fr auto) so the button overflows into an implicit 4th row. Fixed
        with a 4-track grid; the sibling Signals rows have only THREE children so
        they keep the 3-track grid (scoped, not globally changed). Pending-
        Approvals rows had the same class of defect (3 children in a 2-track grid)
        and are fixed too — same surface.
     2. Hollow empty/awaiting states (Signals envelope-in-dead-space, Decision-
        Queue + Approvals "connect a source" lines, Operating-Graph note) recast
        as intentional, premium "awaiting live data" states — a tasteful dashed
        gold radar mark + dashed-affordance card, never a bare left line. No data
        is fabricated; copy is unchanged (em-dash discipline preserved).
     3. Composition rhythm — dead band under H1/lede tightened; the right column
        distributes its slack into the Trust Rail (KPIs pin to the bottom) so the
        column reads deliberate instead of a floating gap above the rail.
     4. Panel + control craft — solid cream cards (no washed translucency), jewel
        dark control panels (top sheen + crisper borders + chiselled graph nodes),
        refined gold "Start governed action" + head buttons with calm hover and a
        single gold focus-visible ring (retires the off-brand teal focus/hover).

   Tokens only (--gold #c18a25, --line, --surface, --ink, --radius…). One gold
   accent, zero cyan. No height added — the 1920×1080 no-scroll frame is honored
   (inner panel bodies may scroll). Voice ids / data-binds / markup untouched.
   ════════════════════════════════════════════════════════════════════════════ */


/* ── 1 · DECISION QUEUE — keep the action button on the row ─────────────────────
   4 children → 4 tracks: [riskDot][icon 28px][body 1fr][button auto]. The 1fr
   body pushes the button hard-right; align-items:center reads as one clean line. */
#v6-decision-queue .v6-decision-item {
  grid-template-columns: auto 28px 1fr auto;
  align-items: center;
  column-gap: 12px;
}
/* The riskDot is the first child and carries an inline `margin-top:5px` meant for
   the OLD top-aligned layout; reset it so the dot sits on the row's centre line.
   !important is required only because it overrides a JS-set INLINE style. */
#v6-decision-queue .v6-decision-item > span:first-child {
  align-self: center;
  margin-top: 0 !important;
}

/* Signals rows reuse .v6-decision-item but have only THREE children (icon · body ·
   button) — the base 3-track grid is already correct, they only need centring. */
#v6-proactive-signals .v6-decision-item {
  align-items: center;
}

/* Pending-Approvals rows: 3 children (riskDot · body · controls) in the base
   2-track grid wrapped the controls below. Give it a 3rd track so the controls
   stay right-aligned on the row. (Per-row inline `align-items:flex-start` is left
   intact — confirm/running states legitimately stack a label above the buttons.) */
.v6-approval-item {
  grid-template-columns: auto 1fr auto;
  column-gap: 4px;
}


/* ── 2 · INTENTIONAL "AWAITING LIVE DATA" STATES ───────────────────────────────
   Replaces the lone envelope glyph (v6-enterprise §9) with a calm dashed gold
   radar mark inside a dashed-affordance card — reads "designed & ready", never
   broken. Honest copy from the HTML is kept; if the integrator later splits it
   into <strong>headline</strong> + sub-line, the headline styles automatically. */
.v6-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 88px;
  max-width: 320px;
  margin: 4px auto;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong, #c4b9a8);
  border-radius: var(--radius, 8px);
  background: rgba(193, 138, 37, .035);
  color: #6a6253;
  font-size: 13px;
  line-height: 1.5;
}
.v6-empty::before {
  content: "";
  flex: none;
  display: block;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold, #c18a25) 0 2.5px, transparent 3px) center / 100% 100% no-repeat;
  border: 1.5px dashed rgba(193, 138, 37, .5);
  box-shadow: 0 0 0 4px rgba(193, 138, 37, .05);
}
.v6-empty strong,
.v6-empty .v6-empty-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink, #101722);
  margin-bottom: 1px;
}
/* Signals body is capped at 100px (inline) — keep its awaiting state compact so it
   sits cleanly without a tall internal scroll. */
#v6-proactive-signals .v6-empty {
  min-height: 0;
  margin: 0 auto;
  padding: 10px 12px;
  gap: 7px;
  font-size: 12.5px;
}
#v6-proactive-signals .v6-empty::before {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 3px rgba(193, 138, 37, .05);
}
/* Dark-panel safety (Today's three empties are on light panels, but .v6-empty can
   appear inside dark control panels elsewhere). */
.v6-panel.dark .v6-empty {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
  color: #b9c8d4;
}
.v6-panel.dark .v6-empty strong { color: #eff6fb; }

/* Operating-Graph footnote (injected by js/app.js as inline 11px / 50%-white).
   Recast as an intentional "idle source" caption: a small gold status dot + a
   readable 12px line. !important overrides the JS INLINE style only. */
.v6-ops-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;                       /* was inline 8px 0 0 — the .v6-ops grid gap (14px) handles spacing */
  font-size: 12px !important;                 /* was inline 11px — clears the 12px executive floor */
  line-height: 1.45;
  font-weight: 600;
  color: rgba(239, 246, 251, .62) !important; /* was inline rgba(255,255,255,.5) — lifts dark-panel contrast */
}
.v6-ops-note::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #c18a25);
  box-shadow: 0 0 0 3px rgba(193, 138, 37, .18);
}


/* ── 3 · COMPOSITION & VERTICAL RHYTHM ─────────────────────────────────────────
   Tighten the dead band under the H1/lede, then let the right column distribute
   its slack into the Trust Rail so the KPI band anchors the bottom (deliberate),
   instead of a floating gap between "Back to pipeline →" and the rail. Stretching
   the columns never increases the tallest column, so the no-scroll frame holds. */
.v6-today-head { margin-bottom: 12px; }
.v6-today-head .lede { margin-top: 6px; }

.v6-today-grid { align-items: stretch; }
.v6-trust-rail {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.v6-trust-rail .v6-trust-kpis { margin-top: auto; }


/* ── 4 · PANEL & CONTROL CRAFT ─────────────────────────────────────────────────
   Solid cream cards (the base used a washed rgba(255,253,248,.94) over the cream
   surface, which muddied edges). Panel SHADOWS are owned by v6-lock (last sheet,
   !important) and already two-layer — left untouched. */
.v6-panel:not(.dark) { background: var(--surface, #fffdf8); }

.v6-chip {
  background: var(--surface-2, #ebe7de);
  border-color: var(--line, #d7d0c3);
  color: #5b5446;
  font-weight: 800;
  letter-spacing: .04em;
}

/* Dark control panels (Ask Atlas · Operating Graph · Trust Rail) — jewel-grade:
   a faint top sheen catches light, crisper hairline border, deeper gradient.
   Background layering only (no pseudo-elements — these are grid/flex containers,
   an ::before would become a stray cell). Shadow stays with v6-lock. */
.v6-panel.dark,
.v6-trust-rail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 88px),
    linear-gradient(155deg, #17232f 0%, #101a24 100%);
  border-color: rgba(255, 255, 255, .10);
}

/* Operating-Graph nodes — chiselled chips with an inset top highlight. */
.v6-ops-node {
  padding: 7px 12px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(8, 14, 20, .35);
  color: #eff6fb;
  font-weight: 700;
}
.v6-ops-arrow { color: rgba(193, 138, 37, .9); }

/* Gold "Start governed action" — crisp edge, inset highlight, richer (darker)
   gold on hover instead of the washed-lighter base hover. */
.v6-ask-btn {
  border: 1px solid #b07d1c;
  color: #1f1503;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(29, 24, 14, .18), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.v6-ask-btn:hover {
  background: #b07d1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 24, 14, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.v6-ask-btn:active { transform: translateY(0); }

/* Head buttons ("Open command center" / "Review decisions") — calm hover; the
   primary navy CTA hovers to a lighter navy (the base hovered to off-brand teal). */
.v6-head-btn {
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(29, 24, 14, .05);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.v6-head-btn:hover {
  background: #f4f1ea;
  border-color: var(--line-strong, #c4b9a8);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(29, 24, 14, .10);
}
.v6-head-btn:active { transform: translateY(0); }
.v6-head-btn.primary {
  background: #121d27;
  color: #fff;
  border-color: #121d27;
  box-shadow: 0 1px 2px rgba(16, 23, 34, .18);
}
.v6-head-btn.primary:hover {
  background: #1d2a36;
  border-color: #1d2a36;
  box-shadow: 0 4px 12px rgba(16, 23, 34, .22);
}

/* Single gold focus-visible ring across the surface's controls (base set teal on
   head/action buttons and white on the ask button — unified to the house gold). */
.v6-head-btn:focus-visible,
.v6-action-btn:focus-visible,
.v6-ask-btn:focus-visible {
  outline: 2px solid var(--gold, #c18a25);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .v6-ask-btn,
  .v6-head-btn { transition: none; }
  .v6-ask-btn:hover,
  .v6-head-btn:hover,
  .v6-head-btn.primary:hover { transform: none; }
}
