/*
 * u14 — Agentic Workflow cockpit (/panel/agentic-workflow)
 *
 * Page-scoped only. Everything here is namespaced under the page wrapper
 * `.fi-eds-u14` (set on the page's root <div class="fi-eds fi-eds-u14"> in
 * agentic-workflow.blade.php) so it can never leak onto another surface that
 * happens to reuse the same shared fi-eds-* primitives (fi-eds-doc / -stat /
 * -run live on ingestion-engine and control-room too).
 */

/* ── On/off switch overlap: .fi-eds-doc__top reserves no gutter for the
   absolutely-positioned .fi-eds-rtoggle (top:12px right:12px, ~68px wide),
   so the cadence chip runs underneath it at narrower widths. Reserve the
   gutter and let the chip truncate instead of collide. ─────────────────── */
.fi-eds-u14 .fi-eds-rcard .fi-eds-doc__top { padding-right: 76px; flex-wrap: wrap; }
.fi-eds-u14 .fi-eds-rcard .fi-eds-doc__order {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
@media (max-width: 420px) {
    .fi-eds-u14 .fi-eds-rcard .fi-eds-doc__order { flex: 1 1 100%; }
}

/* ── "Routine change log" button stretches edge-to-edge: it's a flex child
   of .fi-eds-stage__head (column flex, default align-items: stretch). ──── */
.fi-eds-u14 .fi-eds-runs > .fi-eds-stage__head > .fi-eds-btn { align-self: flex-start; }

/* ── Radius scale: cards/panels are the 18px workhorse (14px is the
   menu/popover rung). This page's doc/routine cards, stat tiles, the
   "needs your input" rows, and run-log rows all shipped at 14px while
   .fi-eds-attn/.fi-eds-board/.fi-eds-panelcard--ink on the same page are
   already 18px — raise the rest to match. ──────────────────────────────── */
.fi-eds-u14 .fi-eds-doc,
.fi-eds-u14 .fi-eds-stat,
.fi-eds-u14 .fi-eds-attn__row,
.fi-eds-u14 .fi-eds-run { border-radius: 18px; }
.fi-eds-u14 .fi-eds-run[open] .fi-eds-run__sum { border-radius: 18px 18px 0 0; }

/* ── Cool-gray wash on retired cards: whole-element opacity composites the
   warm --cream2 fill against whatever sits behind it (--ink on the dark
   pipeline panel, --cream on a plain card), landing at two different washed
   results for the identical --retired state. Express "retired" with the
   solid tokens eds-panel.css already uses for the fill, everywhere on this
   page, so one state reads one way regardless of ancestor. ─────────────── */
.fi-eds-u14 .fi-eds-doc--retired {
    opacity: 1;
    color: var(--ink2);
    border-color: var(--line);
}

/* ── Run log: the shared .fi-eds-run__id is flex:1, so it grows to fill the
   whole row even though its content (eyebrow + timestamp) is narrow, and
   .fi-eds-run__meta's margin-left:auto then strands the badge/chevron at
   the far edge — a max-width cap on the list only shrinks the empty middle,
   it can't close it. Let __id hug its own content and drop meta's auto
   margin so the badge + chevron sit right next to the timestamp instead. ── */
.fi-eds-u14 .fi-eds-runs .fi-eds-run__id { flex: 0 1 auto; }
.fi-eds-u14 .fi-eds-runs .fi-eds-run__meta { margin-left: 0; }
.fi-eds-u14 .fi-eds-runs .fi-eds-runs__list { max-width: 720px; }
