/* The two figures in this article. */

/* ── figure 1: the workflow ─────────────────────────────────────────── */
/* Four phase rows in a 4-column grid, so it lives in the text column and reflows instead of
   scrolling sideways. Everything is scoped under .fl: the article stylesheet styles bare p,
   button and table, and single-class rules lose to it. */
.fl { margin: 2.5rem 0; --gap: 14px; }
.fl.fl :where(p, button, table, th, td, b, em, span, i) {
  margin: 0; padding: 0; font: inherit; letter-spacing: normal; color: inherit; text-transform: none;
}

/* Controls are round pills, so they never read as one of the square step boxes. */
.fl .fl-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  cursor: pointer; font: 600 var(--text-small, .875rem)/1.2 var(--font-draft, var(--font-sans, sans-serif));
}
.fl .fl-btn:hover { background: var(--ink); color: var(--paper); }
.fl .fl-run, .fl .fl-choices .fl-btn:first-child { background: var(--ink); color: var(--paper); }
.fl .fl-run:hover, .fl .fl-choices .fl-btn:first-child:hover { background: var(--body); border-color: var(--body); }
.fl .fl-run::before { content: "\25B6"; margin-inline-end: 10px; font-size: 11px; }
.fl .fl-run[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.fl .fl-btn:focus-visible, .fl .fl-step:focus-visible, .fl .fl-profile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.fl .fl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.fl .fl-runlabel { font: 600 var(--text-small, .875rem)/1.2 var(--font-draft, var(--font-sans, sans-serif)); color: var(--ink); }
/* "Press here" (owner, 2026-09-24): until a job is started, both run buttons pulse and a finger
   taps toward the first. The first press stops both for good. Reduced motion: no movement, the
   finger stays as a still cue. */
.fl .fl-hint { display: inline-flex; color: var(--ink); }
.fl .fl-hint svg { width: 28px; height: 24px; animation: fl-tap 1.1s ease-in-out infinite; }
[dir="rtl"] .fl .fl-hint svg { animation-name: fl-tap-rtl; transform: scaleX(-1); }
.fl:not(.fl-started) .fl-run { animation: fl-pulse 1.6s ease-out infinite; }
.fl:not(.fl-started) .fl-run + .fl-run { animation-delay: .8s; }
.fl.fl-started .fl-hint { display: none; }
@keyframes fl-tap { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes fl-tap-rtl { 0%, 100% { transform: scaleX(-1) translateX(-3px); } 50% { transform: scaleX(-1) translateX(3px); } }
@keyframes fl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .fl .fl-hint svg, .fl .fl-run { animation: none !important; } }

/* the profile: the store every step reads from, drawn as a heavy double rule */
.fl .fl-profile {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  width: 100%; margin-bottom: 12px; padding: 9px 16px;
  border: 4px double var(--ink); background: var(--paper); color: var(--ink); text-align: start;
  cursor: pointer; font-family: var(--font-draft, var(--font-sans, sans-serif));
}
.fl .fl-profile b { font-size: 1rem; font-weight: 700; }
.fl .fl-live { margin-inline-start: auto; font-size: var(--type-label, .75rem); font-weight: 600; font-style: normal; }
.fl .fl-profile-sub { flex: 1 1 20rem; font-size: 13px; line-height: 1.45; color: var(--body); }
.fl .fl-profile.is-read, .fl .fl-profile.is-picked { background: var(--ink); color: var(--paper); }
.fl .fl-profile.is-read .fl-profile-sub, .fl .fl-profile.is-picked .fl-profile-sub { color: var(--paper); }

/* The map holds the arrows. The grid keeps a margin on each side: the profile's lines run there,
   so they never cut through a box. */
.fl .fl-map { position: relative; --gut: 14px; }
.fl .fl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-inline: var(--gut); }
.fl .fl-wires { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.fl .fl-step, .fl .fl-phase { grid-row: var(--r); grid-column: var(--c); }
@media (min-width: 700px) { .fl .fl-map { --gut: 24px; } }
/* On a phone the four columns are about 70px: tighter gaps and type keep every step name whole. */
@media (max-width: 699px) {
  .fl { --gap: 10px; }
  .fl .fl-step { padding-inline: 3px; font-size: 12px; }
}
/* Phase names start half a column in, clear of the arrow that drops into each row's first box. */
.fl .fl-phase {
  grid-column: 1 / -1; margin-top: 12px; margin-bottom: -4px;
  padding-inline-start: calc((100% - 3 * var(--gap)) / 8 + 10px);
  font: 500 var(--type-label, .75rem)/1 var(--font-draft, var(--font-sans, sans-serif));
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.fl .fl-step {
  position: relative; z-index: 1; min-height: 44px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); cursor: pointer; text-align: center;
  font: 600 13px/1.2 var(--font-draft, var(--font-sans, sans-serif));
  overflow-wrap: normal; word-break: normal;
}
/* the gap detour hangs lower, leaving room for its label */
@media (max-width: 699px) {
  .fl .fl-step[data-id="park"], .fl .fl-step[data-id="answer"] { margin-top: 16px; }
  .fl .fl-live { order: 1; }
  .fl .fl-profile-sub { order: 2; flex-basis: 100%; }
  .fl .fl-legend { flex-basis: 100%; margin-inline-start: 0; }
}
/* who acts: a heavy frame is me, a thin one an agent, a dashed one a plain script */
.fl .fl-step.fl-is-you { border-width: 2.5px; }
.fl .fl-step.fl-is-script { border-style: dashed; }
.fl .fl-step.is-here, .fl .fl-step.is-picked { background: var(--ink); color: var(--paper); }
.fl .fl-step.is-done::after { content: "\2713"; position: absolute; top: 3px; inset-inline-end: 6px; font-size: 11px; line-height: 1; }
.fl .fl-step.is-off, .fl .fl-branch.is-off { opacity: .25; }
.fl .fl-branch {
  position: absolute; z-index: 1; pointer-events: none; white-space: nowrap;
  font: 500 11px/13px var(--font-draft, var(--font-sans, sans-serif)); color: var(--muted);
}

/* arrows: construction ink by default, full ink once the job has travelled them */
.fl .fl-line { fill: none; stroke: var(--construct-strong); stroke-width: 1; }
.fl .fl-head { fill: var(--construct-strong); stroke: none; }
.fl .fl-wire-revise .fl-line { stroke-dasharray: 3 3; }
/* the profile's lines are dashed, so they read as data moving, not as a step in the flow */
.fl .fl-wire-feed .fl-line, .fl .fl-wire-feedback .fl-line { stroke-dasharray: 5 3; }
.fl .fl-wire.is-on .fl-line { stroke: var(--ink); stroke-width: 1.75; }
.fl .fl-wire.is-on .fl-head { fill: var(--ink); }
.fl .fl-wire.is-off { opacity: .25; }

.fl .fl-legend {
  display: inline-flex; flex-wrap: wrap; gap: 8px 18px;
  font: var(--type-label, .75rem)/1.4 var(--font-draft, var(--font-sans, sans-serif)); color: var(--muted);
}
.fl .fl-key-feed { display: inline-block; width: 22px; margin-inline-end: 6px; vertical-align: middle; border-top: 1.5px dashed var(--ink); }
.fl .fl-key { display: inline-block; width: 18px; height: 12px; margin-inline-end: 6px; vertical-align: -1px; border: 1px solid var(--ink); }
.fl .fl-key.fl-is-you { border-width: 2.5px; }
.fl .fl-key.fl-is-script { border-style: dashed; }

/* The panel keeps its height, so the page does not jump as the run moves. Both heights leave the
   figure whole under the site header plus the article's section bar. */
.fl .fl-panel { min-height: 13rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.fl .fl-hint { font-size: var(--text-small, .875rem); color: var(--muted); }
.fl .fl-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--font-draft, var(--font-sans, sans-serif)); }
.fl .fl-who b { font-size: var(--type-label, .75rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.fl .fl-who span { font-size: var(--text-small, .875rem); color: var(--muted); }
.fl .fl-why { margin-top: 6px; max-width: 62ch; font-size: var(--text-small, .875rem); line-height: 1.55; color: var(--body); }
.fl .fl-why b { font-weight: 600; color: var(--ink); }
.fl .fl-verdict {
  margin-top: 10px; max-width: 62ch; padding-inline-start: 12px; border-inline-start: 2px solid var(--ink);
  font-size: var(--text-small, .875rem); line-height: 1.5; color: var(--ink);
}
.fl .fl-files { margin-top: 10px; font: var(--type-label, .75rem)/1.4 var(--font-mono, monospace); color: var(--muted); }
.fl .fl-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fl .fl-matrix { display: table; width: 100%; margin-top: 10px; border-collapse: collapse; font-size: var(--text-small, .875rem); }
.fl .fl-matrix th {
  padding: 4px 0; border-bottom: 1px solid var(--rule); text-align: start;
  font: 500 var(--type-label, .75rem)/1.3 var(--font-draft, var(--font-sans, sans-serif)); color: var(--muted);
}
.fl .fl-matrix td { padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--body); }
.fl .fl-matrix th:last-child, .fl .fl-matrix td:last-child { padding-inline-start: 12px; text-align: end; white-space: nowrap; }
.fl .fl-matrix td:last-child { font-family: var(--font-draft, var(--font-sans, sans-serif)); }
.fl .fl-matrix .is-weak td:last-child { color: var(--muted); }
.fl .fl-matrix .is-absent td { color: var(--ink); font-weight: 600; }
.fl .fl-keyrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; margin-top: 12px;
  font-size: var(--text-small, .875rem); line-height: 1.55; color: var(--muted);
}
/* the panel's status line: what is happening now, and whose move it is */
.fl .fl-status { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 500 var(--type-label, .75rem)/1 var(--font-draft, var(--font-sans, sans-serif)); color: var(--muted); }
.fl .fl-chip {
  padding: 4px 8px; border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fl .fl-chip.is-turn, .fl .fl-chip.is-done { background: var(--ink); color: var(--paper); }
/* a step that waits for me: a heavy card round the question */
.fl .fl-turn { padding: 14px 16px; border: 2px solid var(--ink); }
.fl .fl-turn .fl-verdict { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 600; }
.fl .fl-turn .fl-choices { margin-top: 12px; }
/* what reaches my phone, drawn as a notification */
.fl .fl-phone { max-width: 28rem; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 14px; }
.fl .fl-phone-app { margin-bottom: 4px; font: 600 var(--type-label, .75rem)/1.2 var(--font-draft, var(--font-sans, sans-serif)); color: var(--muted); }
.fl .fl-phone p:last-child { font-size: var(--text-small, .875rem); line-height: 1.45; color: var(--ink); }
/* the box in the chart that is waiting for me blinks, stepped rather than faded */
.fl .fl-step.is-wait { animation: fl-wait 1.2s steps(1, end) infinite; }
@keyframes fl-wait { 50% { outline: 3px solid var(--ink); outline-offset: 3px; } }
@media (prefers-reduced-motion: reduce) {
  .fl .fl-step.is-wait { animation: none; outline: 3px solid var(--ink); outline-offset: 3px; }
}

[dir="rtl"] .fl .fl-phase, [dir="rtl"] .fl .fl-who b, [dir="rtl"] .fl .fl-runlabel { letter-spacing: 0; }

/* From 700px each phase is a column (Decide has a second one for the gap detour), so the whole
   flow is four boxes tall and fits a laptop screen with its panel. */
@media (min-width: 700px) {
  .fl .fl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; row-gap: 10px; padding-bottom: 12px; }
  .fl .fl-step, .fl .fl-phase { grid-row: var(--R); grid-column: var(--C); }
  .fl .fl-phase { margin: 0 0 -2px; padding: 0; text-align: center; }
  .fl .fl-step { min-height: 40px; }
}

/* Wide screens: the figure grows past the text column so the chart reads at full width; the step
   panel stays underneath it. Both figures share one wide measure, --fig-wide, so they have one
   left edge. It stops a page-pad short of each side, which keeps it clear of a space-taking
   scrollbar (100vw counts the scrollbar and would scroll the page sideways). */
.fl, .db-wrap { --fig-wide: min(1060px, 100vw - 2 * var(--page-pad, 1.25rem)); }
@media (min-width: 1100px) {
  .fl { width: var(--fig-wide); margin-inline: calc((100% - var(--fig-wide)) / 2); }
  .fl .fl-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 36px; align-items: start;
    min-height: 8.5rem; margin-top: 10px; padding-top: 10px;
  }
  .fl .fl-pb > :first-child { margin-top: 0; }
  .fl .fl-keyrow { margin-top: 6px; }
}

/* ── figure 2: the dashboard ────────────────────────────────────────────
   A picture of a Windows application, so it keeps the application's own palette and type
   (Segoe UI / Consolas, the warm neutrals and the named bar colours from dashboard.py) rather
   than the site's tokens, and it does not follow the page into dark mode — a screenshot of a
   light-only desktop app would not.

   Every rule below is scoped under .db-wrap. The article stylesheet styles bare p / h4 / dl /
   button inside the body, and single-class selectors lost to it: the column headings collapsed
   into one run of text and the type came out at twice its size. */
.db-wrap {
  /* 100vw counts a space-taking scrollbar and scrolled the page 8px sideways on Windows;
     this width stops one page-pad short of each edge instead. */
  --db-w: calc(100vw - 2 * var(--page-pad, 1.25rem));
  margin-block: 2.5rem; width: var(--db-w); max-width: none;
  margin-inline: calc((100% - var(--db-w)) / 2);
  --ink: #191818; --body: #3c3a38; --second: #5c5957; --muted: #6b6764;
  --card: #ffffff; --bg: #faf9f7; --field: #f4f3f1; --toggle: #f0eeeb;
  --line: #dedad5; --line2: #e7e3de; --sel: #eef1f8;
  --ui: "Segoe UI", system-ui, sans-serif; --mono: Consolas, ui-monospace, monospace;
  --danger: #9a5606; --warn: #8a6a05;
  --red: #c62828; --orange: #d9730d; --yellow: #a98407;
  --sky: #2f86c5; --green: #2e7d32; --stone: #9a948c; --gray: #4a4744;
}
.db-wrap .db {
  max-width: 1060px; margin-inline: auto;
  border: 1px solid var(--line); background: var(--card); color: var(--body);
  font-family: var(--ui); font-size: 13px; line-height: 1.4; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 14px 34px rgba(0,0,0,.16);
}
/* the article's own type rules stop at the window frame */
/* :where() keeps the reset at zero specificity, so every class rule below still wins.
   Written as plain element selectors it out-specified them: nothing was uppercase any more
   and the dark buttons lost their white text. */
.db-wrap .db :where(p, h4, dl, dt, dd, button, span, em, i, kbd, label, input, select) {
  margin: 0; padding: 0; font: inherit; font-style: normal; letter-spacing: normal;
  line-height: inherit; color: inherit; text-transform: none;
}
.db-wrap .db * { box-sizing: border-box; }

/* window chrome */
.db-wrap .db-chrome { display: flex; height: 32px; background: var(--field); }
.db-wrap .db-chrome-title {
  display: flex; align-items: center; gap: .45rem; padding: 0 .6rem; flex: 1; min-width: 0;
  font-size: 12px; color: var(--second);
}
.db-wrap .db-appicon {
  width: 12px; height: 12px; flex: none; border-radius: 2px;
  background: linear-gradient(135deg, #3776ab 50%, #ffd343 50%);
}
.db-wrap .db-chrome-btns { display: flex; flex: none; }
.db-wrap .db-chrome-btns span { display: grid; place-items: center; width: 46px; font-size: 11px; color: var(--body); }
.db-wrap .db-chrome-btns span:hover { background: rgba(0,0,0,.06); }
.db-wrap .db-chrome-btns span:last-child:hover { background: #c42b1c; color: #fff; }

/* headline row */
.db-wrap .db-top {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .75rem .9rem .6rem; border-bottom: 1px solid var(--line);
}
.db-wrap .db-heads { display: flex; flex: 1; min-width: 0; }
.db-wrap .db-head {
  padding: 0; padding-inline-end: 1.1rem; margin-inline-end: 1.1rem; border: 0; border-inline-end: 1px solid var(--line2);
  background: none; cursor: pointer; text-align: start; font-family: inherit; color: var(--body);
}
.db-wrap .db-head:last-child { border-inline-end: 0; }
.db-wrap .db-head-label {
  display: block; font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .3rem; white-space: nowrap;
}
.db-wrap .db-head-row { display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; }
.db-wrap .db-head-n { font-size: 27px; line-height: 1; font-weight: 600; color: var(--ink); }
.db-wrap .db-head-word { font-size: 12.5px; color: var(--second); }
.db-wrap .db-t-cold { color: var(--danger); }
.db-wrap .db-t-quiet { color: var(--warn); }
.db-wrap .db-head:hover .db-head-label, .db-wrap .db-head.is-on .db-head-label { color: var(--ink); }

.db-wrap .db-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; flex: none; }
.db-wrap .db-search {
  display: flex; align-items: center; gap: 2.2rem; padding: .3rem .6rem; min-width: 11rem;
  border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 12px;
}
.db-wrap .db-search kbd { font-size: 11px; color: var(--muted); }
.db-wrap .db .db-search input {
  flex: 1; min-width: 0; width: 7rem; border: 0; border-radius: 0; outline: 0; background: none;
  box-shadow: none; appearance: none; color: var(--ink);
}
.db-wrap .db-search input::placeholder { color: var(--muted); }
.db-wrap .db-search:focus-within { border-color: var(--ink); }
.db-wrap .db-more { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 3px; color: var(--second); line-height: 1; }
.db-wrap .db-add { padding: .35rem .8rem; background: var(--ink); color: #fff; border-radius: 3px; font-size: 12.5px; font-weight: 600; }
.db-wrap .db-meta { flex-basis: 100%; text-align: end; font-size: 11px; color: var(--muted); }

/* filter strip */
.db-wrap .db-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; padding: 0 .9rem; border-bottom: 1px solid var(--line); }
.db-wrap .db-filter {
  display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem;
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--second);
}
.db-wrap .db-filter em { font-size: 11.5px; color: var(--muted); }
.db-wrap .db-filter:hover { color: var(--ink); }
.db-wrap .db-filter.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.db-wrap .db-chip { display: block; width: 4px; height: 13px; flex: none; }
/* Applied holds three tiers of silence, so its chip shows all three. */
.db-wrap .db-chip-applied { background: linear-gradient(var(--orange) 33%, var(--yellow) 33% 66%, var(--sky) 66%); }
.db-wrap .db-chip-needs { background: var(--green); }
.db-wrap .db-chip-building { background: var(--stone); }
.db-wrap .db-chip-rejected { background: var(--red); }
.db-wrap .db-chip-skipped { background: var(--gray); }
.db-wrap .db-tabs { margin-inline-start: auto; display: flex; gap: .2rem; }
.db-wrap .db-tab {
  padding: .3rem .65rem; border: 1px solid transparent; border-radius: 3px; background: none;
  font-size: 12px; color: var(--second); cursor: pointer;
}
.db-wrap .db-tab:hover { color: var(--ink); }
.db-wrap .db-tab.is-on { background: var(--toggle); color: var(--ink); border-color: var(--line); }

/* table + detail panel */
.db-wrap .db-body { display: flex; align-items: stretch; }
.db-wrap .db-table { flex: 1 1 auto; min-width: 0; overflow-x: auto; background: var(--card); }
.db-wrap .db-row {
  display: grid; grid-template-columns: 4px 1.25fr 1.5fr 1fr .45fr .55fr; align-items: center;
  gap: .7rem; min-width: 30rem; padding-block: .34rem; padding-inline: 0 .9rem; cursor: pointer;
}
.db-wrap .db-row:hover { background: var(--bg); }
.db-wrap .db-row.is-picked { background: var(--sel); }
.db-wrap .db-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.db-wrap .db-colrow { padding-block: .45rem; border-bottom: 1px solid var(--line); cursor: default; }
.db-wrap .db-colrow:hover { background: var(--card); }
.db-wrap .db-section {
  margin: 0; padding-block: .85rem .3rem; padding-inline: 1.05rem .9rem; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.db-wrap .db-col {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: start; font-family: inherit;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.db-wrap .db-col:hover, .db-wrap .db-col.is-sorted { color: var(--ink); }
.db-wrap .db-col.is-sorted { font-weight: 600; }
.db-wrap .db-col.db-num { text-align: end; font-family: inherit; font-size: 11px; }
.db-wrap .db-cell { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-wrap .db-dim { color: var(--second); }
.db-wrap .db-num { text-align: end; font-family: var(--mono); font-size: 12px; color: var(--second); }
.db-wrap .db-quiet { color: var(--warn); }
.db-wrap .db-silent { color: var(--danger); font-weight: 600; }
.db-wrap .db-mark { display: block; width: 4px; height: 1.1rem; }
.db-wrap .db-row[data-sec="ready"] .db-mark { background: var(--green); }
.db-wrap .db-row[data-sec="cold"] .db-mark { background: var(--orange); }
.db-wrap .db-row[data-sec="quiet"] .db-mark { background: var(--yellow); }
.db-wrap .db-row[data-sec="recent"] .db-mark { background: var(--sky); }
.db-wrap .db-row[data-sec="pipeline"] .db-mark { background: var(--stone); }
.db-wrap .db-row[data-sec="rejected"] .db-mark { background: var(--red); }
.db-wrap .db-row[data-sec="skipped"] .db-mark { background: var(--gray); }
.db-wrap .db-empty { padding: 1.5rem .9rem; color: var(--muted); }

.db-wrap .db-panel { flex: 0 0 16rem; padding: 1rem 1.1rem; border-inline-start: 1px solid var(--line); background: var(--card); }
.db-wrap .db-panel h4 { font-size: 18px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.db-wrap .db-panel p { margin-top: .5rem; }
.db-wrap .db-panel-role { color: var(--second); }
.db-wrap .db-pill { display: inline-block; padding: .2rem .55rem; background: var(--ink); color: #fff; font-size: 11.5px; border-radius: 2px; }
.db-wrap .db-statusbtn { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: var(--card); font-size: 12.5px; color: var(--ink); cursor: pointer; }
.db-wrap .db-facts {
  display: grid; grid-template-columns: 1fr auto; gap: .45rem .5rem; margin-top: 1rem;
  padding-top: .9rem; border-top: 1px solid var(--line2); font-size: 12.5px;
}
.db-wrap .db-facts dt { color: var(--second); }
.db-wrap .db-facts dd { text-align: end; color: var(--muted); }
.db-wrap .db-panel-h {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line2);
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.db-wrap .db-panel-v { margin-top: .35rem; color: var(--ink); }

/* the caption starts on the window's own left edge, like the workflow figure's key */
.db-wrap figcaption {
  margin: .9rem auto 0; max-width: 1060px; font-size: var(--text-small, .875rem);
  line-height: 1.55; color: var(--muted-text, #565656);
}
.db-wrap .db-date { direction: ltr; unicode-bidi: isolate; }
/* emails and phone numbers read left to right in every locale */
.db-wrap .db-ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .db-wrap .db-ltr { text-align: end; }
/* Contacts: name, company, email, phone, silent */
.db-wrap .db-table.is-contacts .db-row { grid-template-columns: 4px 1fr 1.1fr 1.7fr .75fr .45fr; }
[dir="rtl"] .db-wrap .db { direction: rtl; }
/* Persian dates are day-then-month words, so they read right to left like the rest. */
[dir="rtl"] .db-wrap .db-date { direction: rtl; }
[dir="rtl"] .db-wrap .db-head-label, [dir="rtl"] .db-wrap .db-section, [dir="rtl"] .db-wrap .db-col, [dir="rtl"] .db-wrap .db-panel-h { letter-spacing: 0; }

@media (min-width: 700px) {
  /* 290px of chrome, plus the article's section bar under the site header */
  .db-wrap .db-body { height: max(16rem, 100vh - 330px); }
  .db-wrap .db-table, .db-wrap .db-panel { overflow-y: auto; overscroll-behavior: contain; }
  .db-wrap .db-colrow { position: sticky; top: 0; z-index: 1; background: var(--card); }
}
@media (max-width: 860px) {
  .db-wrap .db-panel, .db-wrap .db-actions { display: none; }
}
/* On a phone the table fits instead of scrolling: the contact column goes, the headlines wrap. */
@media (max-width: 560px) {
  .db-wrap .db-row { min-width: 0; grid-template-columns: 4px 1.2fr 1.4fr .55fr .6fr; }
  .db-wrap .db-row > :nth-child(4) { display: none; }
  /* on a phone Contacts keeps the email and drops the company instead */
  .db-wrap .db-table.is-contacts .db-row { grid-template-columns: 4px 1fr 1.6fr .8fr .45fr; }
  .db-wrap .db-table.is-contacts .db-row > :nth-child(4) { display: block; }
  .db-wrap .db-table.is-contacts .db-row > :nth-child(3) { display: none; }
  .db-wrap .db-heads { flex-wrap: wrap; row-gap: .6rem; }
}
