/* ── Once For All — Performance Management UI reconstruction ────────────────
   A component set that rebuilds the Performance Management screens in
   HTML/CSS, so the case-study visuals stay sharp at any resolution and can be
   cropped to the exact fragment a section needs.

   THESE ARE RECONSTRUCTIONS. Every screen assembled from these components is
   redrawn from the two hand-off prototypes — Supply Chain Manager and Project
   Manager. Colours, type, spacing, labels, statuses and figures are taken from
   those files (the Apex design-system tokens they ship with: brand #3B2D6D,
   ink #280071, primary action #DA1884, status containers #FFF7E2 / #EFFFF1 /
   #FFEDED / #F4F7FB). They are cleaned up but NOT redesigned.

   Everything is scoped under `.ofa-app` / `.ofa-scope` so it cannot leak into
   the portfolio shell. Class prefix `ofa-` = Once For All.

   Used by: case-03-performance-management.html
   ─────────────────────────────────────────────────────────────────────────── */

.ofa-app,
.ofa-scope,
.ofa-overlay {
  /* Sampled from the prototypes' own design tokens */
  --ofa-brand: #3b2d6d;          /* top bar */
  --ofa-ink: #280071;            /* headings, links, secondary buttons */
  --ofa-ink-2: #49406f;          /* large figures */
  --ofa-text: #333333;
  --ofa-text-2: #6e6e6e;
  --ofa-text-3: #9a9aa6;
  --ofa-page: #f8f8fa;
  --ofa-side: #e7e6ed;
  --ofa-line: #e7e7ec;
  --ofa-line-2: #efeff2;
  --ofa-head-bg: #f5f5f5;
  --ofa-action: #da1884;         /* primary button */
  --ofa-tab-active: #a11c79;
  --ofa-tab-rail: #e7e8f8;
  --ofa-violet: #8e83d1;         /* charts */
  --ofa-violet-soft: #efedf7;

  --ofa-warn-bg: #fff7e2;  --ofa-warn-dot: #f66600;
  --ofa-ok-bg:   #effff1;  --ofa-ok-dot:   #388e3c;
  --ofa-err-bg:  #ffeded;  --ofa-err-dot:  #b71c1c;
  --ofa-info-bg: #f4f7fb;  --ofa-info-dot: #5a8ab5;
  --ofa-neutral-bg: #f5f5f5; --ofa-neutral-dot: #282828;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ofa-text);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: .3px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.ofa-app *, .ofa-scope *, .ofa-overlay * { box-sizing: border-box; }

/* ── Application shell ───────────────────────────────────────────────────── */
.ofa-app {
  width: 1240px;
  background: var(--ofa-page);
  border-radius: 10px;
  overflow: hidden;
}
.ofa-app--narrow { width: 940px; }
.ofa-app--wide { width: 1520px; }
.ofa-app--narrow .ofa-body { grid-template-columns: 210px 1fr; }
.ofa-app--narrow .ofa-main { padding: 20px 22px 26px; }

.ofa-top {
  display: flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 20px;
  background: var(--ofa-brand);
}
.ofa-top img { height: 32px; width: auto; }
.ofa-top-spacer { flex: 1; }
.ofa-top-user { font-size: 12.5px; color: #fff; }
.ofa-top-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0;
  display: grid; place-items: center;
}

.ofa-body { display: grid; grid-template-columns: 254px 1fr; align-items: stretch; }

/* ── Side navigation ─────────────────────────────────────────────────────── */
.ofa-side {
  background: var(--ofa-side);
  padding: 14px 12px 18px;
  display: flex; flex-direction: column; gap: 3px;
  min-height: 100%;
}
.ofa-org {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 6px; padding: 10px 11px; margin-bottom: 12px;
}
.ofa-org-mark { width: 26px; height: 26px; border-radius: 50%; background: #d5d3e0; flex: none; }
.ofa-org-name { font-weight: 700; font-size: 11.5px; color: var(--ofa-text); }
.ofa-org-meta { font-size: 9.5px; color: var(--ofa-text-2); line-height: 1.4; }
.ofa-back {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 9px 14px; font-size: 11.5px; font-weight: 700; color: var(--ofa-brand);
}
.ofa-navgroup {
  padding: 6px 9px 8px; font-size: 12.5px; font-weight: 700; color: var(--ofa-brand);
}
.ofa-nav {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 9px; border-radius: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--ofa-brand);
}
.ofa-nav.is-active { background: #fff; }
.ofa-nav svg, .ofa-back svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ofa-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #d6d4e0; }

/* ── Page area ───────────────────────────────────────────────────────────── */
.ofa-main { background: var(--ofa-page); padding: 22px 26px 30px; min-width: 0; }

.ofa-pagehead { display: flex; align-items: flex-start; gap: 16px; }
.ofa-h1 {
  margin: 0; font-family: "Rubik", "Inter", sans-serif;
  font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: .6px; color: var(--ofa-ink);
}
.ofa-h2 {
  margin: 0; font-family: "Rubik", "Inter", sans-serif;
  font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: .6px; color: var(--ofa-ink);
}
.ofa-h3 {
  margin: 0; font-family: "Rubik", "Inter", sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: .5px; color: var(--ofa-ink);
}
.ofa-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--ofa-text-2); }

.ofa-orgunit { display: flex; align-items: center; gap: 9px; margin: 14px 0 4px; font-size: 12.5px; color: var(--ofa-text); }
.ofa-select {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 6px 10px; border: 1px solid var(--ofa-line); border-radius: 4px;
  background: #fff; font-size: 12.5px; color: var(--ofa-text);
}
.ofa-select::after { content: "⌄"; margin-top: -6px; color: var(--ofa-text-2); }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ofa-tabs { display: flex; margin: 16px 0 20px; }
.ofa-tab {
  padding: 9px 14px; border-bottom: 2px solid var(--ofa-tab-rail);
  font-size: 12.5px; font-weight: 500; letter-spacing: .65px; color: var(--ofa-ink); white-space: nowrap;
}
.ofa-tab.is-active { border-bottom-color: var(--ofa-tab-active); font-weight: 600; }
.ofa-tabs--fill { border-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ofa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--ofa-action); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .65px; white-space: nowrap;
}
.ofa-btn--sm { padding: 7px 14px; font-size: 10.5px; }
.ofa-btn--sec { background: transparent; color: var(--ofa-ink); border: 1px solid var(--ofa-ink); }
.ofa-btn--ghost { background: transparent; color: var(--ofa-ink); }
.ofa-btn--off { background: #ededf0; color: #a8a8b2; }
.ofa-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.ofa-card {
  background: #fff; border: 1px solid var(--ofa-line); border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.ofa-card--pad { padding: 20px; }
.ofa-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ofa-grid2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }

.ofa-kpi { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.ofa-kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ofa-kpi-label { font-family: "Rubik", "Inter", sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .5px; color: var(--ofa-ink); }
.ofa-kpi-num { font-family: "Rubik", "Inter", sans-serif; font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--ofa-ink-2); }
.ofa-kpi-foot { font-size: 11.5px; color: var(--ofa-text-2); }
.ofa-kpi-ic {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--ofa-violet-soft); display: grid; place-items: center;
}
.ofa-kpi-ic svg { width: 15px; height: 15px; fill: none; stroke: #6c5ca8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Stat strip used on the survey / project detail screens */
.ofa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ofa-stat { padding: 16px 20px; }
.ofa-stat-label { font-size: 9.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ofa-text-2); }
.ofa-stat-num { margin-top: 4px; font-family: "Rubik", "Inter", sans-serif; font-size: 26px; font-weight: 500; color: var(--ofa-ink-2); }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.ofa-chart { padding: 18px 20px 14px; }
.ofa-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ofa-chart-note { font-size: 11px; color: var(--ofa-text-2); }
.ofa-cols { display: flex; align-items: flex-end; gap: 9px; height: 150px; }
.ofa-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ofa-col-num { font-size: 10.5px; color: var(--ofa-text-2); }
.ofa-col-bar { width: 100%; max-width: 30px; background: var(--ofa-violet); border-radius: 4px 4px 0 0; }
.ofa-col-lab { font-size: 9.5px; color: var(--ofa-text-2); text-align: center; line-height: 1.25; }

.ofa-ranks { display: grid; gap: 13px; padding: 18px 20px; }
.ofa-rank-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ofa-text); }
.ofa-rank-track { height: 6px; border-radius: 999px; background: var(--ofa-side); margin-top: 5px; }
.ofa-rank-fill { height: 100%; border-radius: 999px; background: var(--ofa-violet); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.ofa-tablewrap { background: #fff; border: 1px solid var(--ofa-line); border-radius: 8px; overflow: hidden; }
.ofa-table { width: 100%; border-collapse: collapse; }
.ofa-table th {
  background: var(--ofa-head-bg); color: var(--ofa-text-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: .65px; text-align: left;
  padding: 13px 20px; white-space: nowrap;
}
.ofa-table td {
  padding: 13px 20px; font-size: 12.5px; color: var(--ofa-text);
  border-top: 1px solid var(--ofa-line-2); vertical-align: middle;
}
.ofa-table td.is-num, .ofa-table th.is-num { text-align: right; }
.ofa-table td.is-mid, .ofa-table th.is-mid { text-align: center; }
.ofa-table .ofa-cell-sub { display: block; font-size: 11px; color: var(--ofa-text-2); }
.ofa-table .ofa-cell-strong { font-weight: 600; }
.ofa-table td:last-child { text-align: right; }
.ofa-toolbar { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ofa-ink); }
.ofa-toolbar-end { margin-left: auto; }

/* ── Status pills ────────────────────────────────────────────────────────── */
.ofa-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .4px; color: var(--ofa-text); white-space: nowrap;
  background: var(--ofa-neutral-bg);
}
.ofa-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ofa-neutral-dot); flex: none; }
.ofa-pill--warn { background: var(--ofa-warn-bg); }
.ofa-pill--warn::before { background: var(--ofa-warn-dot); }
.ofa-pill--ok { background: var(--ofa-ok-bg); }
.ofa-pill--ok::before { background: var(--ofa-ok-dot); }
.ofa-pill--err { background: var(--ofa-err-bg); }
.ofa-pill--err::before { background: var(--ofa-err-dot); }
.ofa-pill--info { background: var(--ofa-info-bg); }
.ofa-pill--info::before { background: var(--ofa-info-dot); }

.ofa-score { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.ofa-score::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ofa-ok-dot); flex: none; }
.ofa-score--amber::before { background: #e8a33d; }
.ofa-score--red::before { background: #e0526a; }
.ofa-score--none::before { background: #c9c9d2; }

/* ── The send-survey overlay ─────────────────────────────────────────────────
   A full-screen step over the product, on the OFA brand background.        */
.ofa-overlay {
  width: 1240px; border-radius: 10px; overflow: hidden;
  background: #fbfbfc url("ofa-bg.jpg") center / cover no-repeat;
  display: flex; flex-direction: column;
}
.ofa-overlay--narrow { width: 760px; }
.ofa-overlay-top { display: flex; align-items: center; height: 62px; padding: 0 20px; background: var(--ofa-brand); }
.ofa-overlay-top img { height: 32px; width: auto; }
.ofa-overlay-body { padding: 30px 40px 26px; position: relative; }
.ofa-close {
  position: absolute; top: 22px; right: 24px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.ofa-close svg { width: 13px; height: 13px; fill: none; stroke: var(--ofa-text); stroke-width: 2; stroke-linecap: round; }

.ofa-stepper { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 20px; }
.ofa-stepnum {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 10px; font-weight: 600; letter-spacing: 0;
  background: #e6e4ee; color: var(--ofa-text-3);
}
.ofa-step { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ofa-text-3); }
.ofa-step.is-active { color: var(--ofa-ink); font-weight: 600; }
.ofa-step.is-active .ofa-stepnum { background: var(--ofa-ink); color: #fff; }
.ofa-step.is-done { color: var(--ofa-ink); }
.ofa-step.is-done .ofa-stepnum { background: transparent; color: var(--ofa-ink); border: 1.5px solid var(--ofa-ink); }
.ofa-step-rule { width: 22px; height: 1px; background: #cfcbdd; flex: none; }

.ofa-overlay-title { margin: 0; text-align: center; font-family: "Rubik", "Inter", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .6px; color: var(--ofa-ink); }
.ofa-overlay-lede { margin: 6px 0 22px; text-align: center; font-size: 12.5px; color: var(--ofa-text); }

.ofa-panel { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.ofa-panel--plain { background: transparent; padding: 0; }
.ofa-optrow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--ofa-line); border-radius: 8px; background: #fff;
}
.ofa-optrow.is-picked { border-color: var(--ofa-ink); background: #f4f1fb; }
.ofa-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b9b6c6; flex: none; display: grid; place-items: center; }
.ofa-optrow.is-picked .ofa-radio { border-color: var(--ofa-ink); }
.ofa-optrow.is-picked .ofa-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ofa-ink); }
.ofa-check { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #b9b6c6; flex: none; }
.ofa-optrow.is-picked .ofa-check { background: var(--ofa-ink); border-color: var(--ofa-ink); position: relative; }
.ofa-optrow.is-picked .ofa-check::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.ofa-optic { width: 26px; height: 26px; border-radius: 50%; background: var(--ofa-violet-soft); display: grid; place-items: center; flex: none; }
.ofa-optic { font-size: 9.5px; font-weight: 700; letter-spacing: 0; color: #6c5ca8; }
.ofa-optic svg { width: 14px; height: 14px; fill: none; stroke: #6c5ca8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ofa-opt-title { font-size: 12.5px; font-weight: 600; color: var(--ofa-text); }
.ofa-opt-sub { font-size: 11px; color: var(--ofa-text-2); }
.ofa-opt-body { min-width: 0; }

.ofa-search {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border: 1px solid var(--ofa-line); border-radius: 6px; color: var(--ofa-text-3); font-size: 12px;
}
.ofa-search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.ofa-bulk {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-radius: 6px; background: #f6f5fa; font-size: 11.5px; color: var(--ofa-text-2);
}
.ofa-countrow { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ofa-text-2); }
.ofa-countrow b { color: var(--ofa-ink); font-weight: 600; }
.ofa-trades { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ofa-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; background: #ecebf3; font-size: 10.5px; color: var(--ofa-text);
}
.ofa-chip--add { background: transparent; border: 1px dashed #c6c3d2; color: var(--ofa-text-2); }

.ofa-review { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; }
.ofa-review-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--ofa-line-2); }
.ofa-review-row:last-child { border-bottom: 0; }
.ofa-review-key { font-size: 9.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ofa-text-2); }
.ofa-review-val { font-size: 12.5px; color: var(--ofa-text); }

.ofa-overlay-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; background: rgba(255, 255, 255, .72); border-top: 1px solid rgba(0, 0, 0, .05);
}
.ofa-overlay-foot--bare { background: transparent; border-top: 0; }

/* ── Dialogs ─────────────────────────────────────────────────────────────── */
.ofa-dialog {
  width: 340px; background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 8px 34px rgba(20, 10, 50, .22);
}
.ofa-dialog-title { margin: 0 0 8px; font-family: "Rubik", "Inter", sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .4px; color: var(--ofa-ink); }
.ofa-dialog-text { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ofa-text); }
.ofa-dialog-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ── Answer / review survey ──────────────────────────────────────────────── */
.ofa-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; color: var(--ofa-text-2); margin-bottom: 18px;
}
.ofa-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ofa-note--done { color: var(--ofa-ink); background: #f4f2fb; padding: 8px 12px; border-radius: 6px; }
.ofa-context { max-width: 560px; margin: 0 auto 20px; background: #fff; border-radius: 10px; padding: 16px 18px; display: grid; gap: 12px; }
.ofa-context-key { font-size: 9.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ofa-text-2); }
.ofa-context-val { margin-top: 2px; font-family: "Rubik", "Inter", sans-serif; font-size: 17px; font-weight: 400; letter-spacing: .4px; color: var(--ofa-text); }
.ofa-qs { max-width: 460px; margin: 0 auto; display: grid; gap: 20px; }
.ofa-q-text { font-size: 12px; font-weight: 700; color: var(--ofa-ink); line-height: 1.45; }
.ofa-q-opts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; }
.ofa-q-opt { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ofa-text); }
.ofa-q-opt .ofa-radio { width: 13px; height: 13px; }
.ofa-q-scale { display: flex; gap: 9px; margin-top: 11px; justify-content: center; }
.ofa-q-dot {
  width: 25px; height: 25px; border-radius: 50%; background: #f2f1f7; color: var(--ofa-text-2);
  display: grid; place-items: center; font-size: 11px;
}
.ofa-q-dot.is-picked { background: #6c5ca8; color: #fff; }
.ofa-q-answer { margin-top: 7px; font-size: 11.5px; color: var(--ofa-text); }
.ofa-textarea { margin-top: 9px; min-height: 54px; border: 1px solid var(--ofa-line); border-radius: 6px; background: #fff; padding: 10px 11px; font-size: 11.5px; color: var(--ofa-text); }

/* ── Fragments ───────────────────────────────────────────────────────────────
   A cropped piece of a screen shown on its own inside a case-study figure.
   Fixed design widths so the scaled-stage machinery can fit them to narrow
   columns instead of clipping the product's own labels, which do not wrap. */
.ofa-scope { display: block; }
.ofa-frag-sm { width: 360px; }
.ofa-frag-md { width: 560px; }
.ofa-frag-lg { width: 760px; }
.ofa-frag-xl { width: 860px; }
.ofa-frag-pad { padding: 16px; background: var(--ofa-page); border-radius: 8px; }
.ofa-frag-pattern { padding: 20px; border-radius: 8px; background: #fbfbfc url("ofa-bg.jpg") center / cover no-repeat; }

/* ── Case-study diagrams ─────────────────────────────────────────────────────
   Editorial graphics drawn for this case study, in the portfolio's own type and
   colour rather than the product's. They explain the model behind the screens;
   anything that shows the product itself is a reconstruction above.        */

/* Stage flow: the workflow read left to right, with the owning role named
   under each stage so the hand-off is visible rather than implied. */
.dia-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 18px; }
.dia-stage { position: relative; padding: 24px 0 0; min-width: 0; }
.dia-stage::before { content: ""; position: absolute; top: 6px; left: 0; right: -18px; height: 1px; background: var(--border-strong); }
.dia-stage:last-child::before { right: 0; }
.dia-stage::after {
  content: ""; position: absolute; top: 2px; left: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 3px var(--paper);
}
.dia-stage--hand::after { background: var(--orange); }
.dia-title { margin: 0 0 5px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.dia-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dia-role { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dia-stage--hand .dia-role { color: var(--orange); }

/* Ownership map: who is involved, and what the workflow produces. Dashed
   frames keep it reading as early thinking rather than a finished screen. */
.dia-map { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 0; }
.dia-box { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 16px 18px 18px; background: var(--card-inset); min-width: 0; }
.dia-box--role { background: var(--card); border-style: solid; }
.dia-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dia-box--role .dia-kind { color: var(--accent); }
.dia-name { margin: 7px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.dia-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* State lanes: the statuses the product actually uses, and what each one lets
   the person in that lane do next. */
.dia-lanes { margin: 12px 0 0; display: grid; }
.dia-lane { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); }
.dia-lane:last-child { border-bottom: 1px solid var(--border); }
.dia-lane-who { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.dia-lane-what { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.dia-chain { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.dia-node { display: grid; gap: 7px; justify-items: start; }
.dia-act { font-size: 13px; color: var(--ink-3); }
.dia-act b { color: var(--ink-2); font-weight: 600; }
.dia-arrow { align-self: center; margin-top: -14px; color: var(--ink-3); flex: none; }
.dia-arrow svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Commitment ladder: the three actions that end a step, ordered by how much
   they commit the person taking them. */
.dia-ladder { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.dia-rung { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border); }
.dia-rung:last-child { border-bottom: 1px solid var(--border); }
.dia-rung-act { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.dia-rung-txt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dia-rung-txt b { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .dia-flow { grid-template-columns: 1fr; gap: 0; }
  .dia-stage { padding: 18px 0 18px 22px; }
  .dia-stage::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .dia-stage:last-child::before { bottom: auto; height: 22px; }
  .dia-stage::after { top: 18px; left: 0; }
  .dia-map { grid-template-columns: 1fr; }
  .dia-lane, .dia-rung { grid-template-columns: 1fr; gap: 12px; }
  .dia-arrow { transform: rotate(90deg); margin: 0; }
}
