/* =====================================================================
   Stonebriar · Automation Handoff
   Editorial handoff doc — navy (#0f214b) + yellow (#f3d010) on warm cream
   Fonts: Newsreader (display serif) · Hanken Grotesk (UI/body) · JetBrains Mono
   ===================================================================== */

:root {
  /* surfaces */
  --bg:        #F4F0E6;   /* warm cream page */
  --bg-2:      #EFEADC;   /* slightly deeper cream (sidebar / wells) */
  --card:      #FFFDF8;   /* near-white card */
  --card-2:    #FBF8F0;   /* secondary card wash */

  /* ink (Stonebriar deep navy) */
  --ink:       #0F214B;
  --ink-2:     #2B3C63;   /* secondary navy text */
  --muted:     #6A7896;   /* tertiary / captions */
  --faint:     #9AA4BB;

  /* accents */
  --yellow:    #F3D010;   /* Stonebriar yellow — sharp accent */
  --yellow-d:  #D8B900;
  --yellow-sft:#FBEFA6;   /* yellow wash */
  --navy-wash: #E7ECF6;   /* light navy wash (panel bars) */
  --navy-line: rgba(15,33,75,.14);

  /* status */
  --green:     #1F7A4D;
  --green-sft: #DCEFE2;
  --grey:      #8B93A4;
  --grey-sft:  #E7E4DA;
  --red:       #B4452E;
  --red-sft:   #F4DED7;

  /* lines & shadow */
  --line:      #E2DAC6;
  --line-2:    #D6CCB4;
  --shadow-sm: 0 1px 2px rgba(15,33,75,.05), 0 2px 6px rgba(15,33,75,.05);
  --shadow-md: 0 2px 6px rgba(15,33,75,.06), 0 14px 34px -16px rgba(15,33,75,.22);
  --shadow-lg: 0 6px 14px rgba(15,33,75,.08), 0 30px 60px -28px rgba(15,33,75,.32);

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 880px;
  --sb-w: 264px;
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); }

/* custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; }

/* ---------- layout ---------- */
.layout { display: flex; align-items: flex-start; }

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky; top: 0; flex: 0 0 var(--sb-w); width: var(--sb-w);
  height: 100vh; overflow-y: auto; padding: 30px 22px 40px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.brand-mark {
  font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1;
  color: var(--ink); letter-spacing: -.01em;
}
.brand-mark b { color: var(--ink); }
.brand-sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
.sidebar-rule { height: 1px; background: var(--line); margin: 18px 0; }

.sidebar-part {
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 9px; padding-left: 2px;
}
.sidebar-link {
  display: flex; align-items: baseline; gap: 11px; text-decoration: none;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  padding: 6px 10px; margin: 1px -10px; border-radius: 8px;
  border-left: 2px solid transparent; transition: all .18s ease;
}
.sidebar-link .num {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  min-width: 18px; transition: color .18s ease;
}
.sidebar-link:hover { background: rgba(15,33,75,.05); color: var(--ink); }
.sidebar-link.active {
  background: rgba(15,33,75,.06); color: var(--ink); font-weight: 700;
  border-left-color: var(--yellow);
}
.sidebar-link.active .num { color: var(--ink); }

/* ---------- main column ---------- */
.main { flex: 1 1 auto; min-width: 0; padding: 0 56px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; margin-bottom: 6px;
}
.topbar .tb-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.topbar .tb-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- cover / hero ---------- */
.cover { padding: 70px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--yellow); display:inline-block; }
.cover h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(40px, 6.4vw, 72px); margin: 20px 0 0; color: var(--ink);
}
.cover h1 em { font-style: italic; color: var(--ink); position: relative; }
.cover h1 em::after {
  content:""; position:absolute; left:.02em; right:.02em; bottom:.08em; height:.34em;
  background: var(--yellow); opacity:.55; z-index:-1; border-radius: 2px;
}
.lede {
  font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: 24px 0 0;
}
.cover-meta { display: flex; flex-wrap: wrap; gap: 34px; margin: 34px 0 0; padding: 0; }
.cover-meta dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cover-meta dd { margin: 5px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cover-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }

/* ---------- section ---------- */
.section { padding: 60px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.part-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.section h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.018em; line-height: 1.08;
  font-size: clamp(30px, 4.4vw, 46px); color: var(--ink);
}
.section h2 .lead-num { color: var(--faint); font-size: .62em; font-family: var(--mono); margin-right: .35em; font-weight: 500; }
.section h2 em { font-style: italic; color: var(--ink); }
.section h2 em::after { /* yellow swipe under italic */
  content:""; display:block; height:.32em; margin-top:-.34em; background: var(--yellow); opacity:.5; border-radius:2px;
}
.scenario-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 0;
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.section-sub { font-size: 17px; color: var(--ink-2); margin: 16px 0 0; max-width: 64ch; }
.section h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); margin: 40px 0 16px;
}

/* ---------- phase progress strip ---------- */
.phase-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; margin: 26px 0 8px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.pr-step { padding: 13px 16px; border-radius: 9px; position: relative; }
.pr-step + .pr-step::before {
  content:""; position:absolute; left:0; top:18px; bottom:18px; width:1px; background: var(--line);
}
.pr-num { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 3px var(--bg-2); }
.pr-label { font-size: 13px; color: var(--ink-2); margin-top: 7px; font-weight: 600; line-height: 1.35; }
.pr-step.done .pr-dot { background: var(--ink); }
.pr-step.active { background: var(--navy-wash); }
.pr-step.active .pr-num { color: var(--ink); }
.pr-step.active .pr-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(243,208,16,.28); }

/* ---------- panel (titled card) ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); margin: 24px 0; overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: var(--card-2); border-bottom: 1px solid var(--line);
}
.panel-bar .pb-title { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); }
.panel-bar .pb-dots { display: flex; gap: 6px; }
.panel-bar .pb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.panel-body { padding: 20px; }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 18px; background: var(--card-2); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); font-weight: 600;
}

/* ---------- screenshot slot (Jay drops PNGs here) ---------- */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line); }
.shot-slot {
  border: 2px dashed var(--line-2); border-radius: 10px; background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(15,33,75,.025) 11px, rgba(15,33,75,.025) 22px);
  min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 28px; color: var(--muted);
}
.shot-slot .ss-ico { width: 40px; height: 40px; opacity: .5; }
.shot-slot .ss-file { font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }
.shot-slot .ss-hint { font-size: 12.5px; max-width: 46ch; }
.shot-cap { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* ---------- schematic · module flow ---------- */
.schematic {
  position: relative;
  background:
    linear-gradient(rgba(15,33,75,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(15,33,75,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--card-2);
}
.flow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 4px; }
.mod {
  flex: 1 1 122px; max-width: 168px; min-width: 116px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 6px 4px;
}
.mod-tile {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mod:hover .mod-tile { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--yellow-d); }
.mod-tile svg { width: 24px; height: 24px; }
.mod-id { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--faint); letter-spacing: .03em; }
.mod-name { font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.mod-desc { font-size: 11.5px; color: var(--muted); line-height: 1.34; font-style: italic; }
.flow-arrow { align-self: center; color: var(--faint); flex: 0 0 auto; margin-top: 22px; }
.flow-arrow svg { width: 18px; height: 18px; display: block; }

/* tile color variants (by node role) */
.mod-tile.t-trigger { background: var(--yellow-sft); border-color: var(--yellow-d); }
.mod-tile.t-crm     { background: #E7ECF6; border-color: #C4D0E8; }
.mod-tile.t-voice   { background: #E7EFEA; border-color: #BFD8C9; }
.mod-tile.t-logic   { background: #F1ECF6; border-color: #D7C9E6; }
.mod-tile.t-http    { background: #FBF3E0; border-color: #E9D6A8; }
.mod-tile.t-end     { background: var(--grey-sft); border-color: var(--line-2); }

/* ---------- numbered module list ---------- */
.modlist { list-style: none; counter-reset: m; padding: 0; margin: 8px 0 0; }
.mod-item {
  counter-increment: m; position: relative; padding: 15px 0 15px 52px;
  border-top: 1px solid var(--line);
}
.mod-item:first-child { border-top: none; }
.mod-item::before {
  content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); width: 34px; height: 24px;
  display: grid; place-items: center; border-radius: 6px;
}
.mod-item .mi-name { font-weight: 800; color: var(--ink); }
.mod-item .mi-name .dash { color: var(--faint); font-weight: 500; margin: 0 .4em; }
.mod-item .mi-body { color: var(--ink-2); font-size: 14.5px; }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  color: var(--ink-2); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 1.5px 7px; white-space: nowrap;
}
.tag.t-add { background: var(--green-sft); border-color: #BcDcC8; color: #1c603d; }
.tag.t-field { background: var(--navy-wash); border-color: #C4D0E8; color: #2B3C63; }
code.inline { font-family: var(--mono); font-size: .88em; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-2); }

/* status pills */
.st { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.st.active { background: var(--green-sft); color: var(--green); }
.st.off    { background: var(--grey-sft); color: #5d6472; }
.st.arch   { background: var(--red-sft); color: var(--red); }
.st.firing { background: var(--green-sft); color: var(--green); }
.st.standby{ background: var(--yellow-sft); color: #8a6a00; }
.st.retired{ background: var(--red-sft); color: var(--red); }
.st.sub    { background: var(--navy-wash); color: var(--ink-2); }

/* status legend */
.legend { display:flex; flex-wrap:wrap; gap:16px; margin:20px 0 0; font-size:12.5px; color:var(--ink-2); }
.legend span { display:inline-flex; align-items:center; gap:7px; }
.legend i { width:10px; height:10px; border-radius:3px; display:inline-block; }
.legend i.f { background:#1F7A4D; } .legend i.s { background:#F3D010; }
.legend i.r { background:#B4452E; } .legend i.u { background:#0F214B; }

/* ---------- callout ---------- */
.callout {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--yellow);
  margin: 22px 0;
}
.callout.navy { border-left-color: var(--ink); }
.callout .co-ico { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ink-2); margin-top: 1px; }
.callout .co-title { font-weight: 800; color: var(--ink); margin-bottom: 3px; font-size: 14px; }
.callout .co-body { font-size: 14px; color: var(--ink-2); }
.callout .co-body :last-child { margin-bottom: 0; }

/* ---------- reference table ---------- */
.reftable { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reftable th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); background: var(--card-2);
  padding: 11px 16px; border-bottom: 1px solid var(--line); }
.reftable td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.reftable tr:last-child td { border-bottom: none; }
.reftable td.k { font-weight: 700; color: var(--ink); white-space: nowrap; }
.reftable td.v { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.reftable tr:hover td { background: var(--card-2); }

/* compact workflow inventory table */
.wftable { width: 100%; border-collapse: collapse; font-size: 13px; margin: 18px 0; }
.wftable th { position: sticky; top: 56px; background: var(--bg-2); text-align: left;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 9px 12px; border-bottom: 2px solid var(--line-2); }
.wftable td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.wftable td.nm { font-weight: 700; color: var(--ink); }
.wftable code { font-size: 11.5px; }

/* ---------- system / stack blocks ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin: 22px 0; }
.stack-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.stack-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stack-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy-wash); color: var(--ink); margin-bottom: 12px; }
.stack-ico svg { width: 20px; height: 20px; }
.stack-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.stack-role { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* big architecture diagram strip */
.archflow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; margin: 24px 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.archflow .af {
  flex: 1 1 0; min-width: 130px; padding: 20px 16px; background: var(--card); text-align: center;
  border-right: 1px solid var(--line); position: relative;
}
.archflow .af:last-child { border-right: none; }
.archflow .af .af-k { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.archflow .af .af-n { font-weight: 800; color: var(--ink); font-size: 15px; margin: 6px 0 4px; }
.archflow .af .af-d { font-size: 12px; color: var(--muted); }
.archflow .af.is-accent { background: var(--navy-wash); }

/* ---------- footer ---------- */
.foot { padding: 46px 0 80px; color: var(--muted); font-size: 13px; }
.foot .foot-rule { height: 2px; width: 46px; background: var(--yellow); margin-bottom: 20px; }
.foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cover .eyebrow { animation: rise .6s both .02s; }
.cover h1 { animation: rise .7s both .10s; }
.cover .lede { animation: rise .7s both .20s; }
.cover .cover-meta { animation: rise .7s both .30s; }
.cover .cover-chips { animation: rise .7s both .38s; }

.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }   /* hidden only when JS is on */
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .main { padding: 0 32px; } }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { padding: 0 20px; }
  .phase-rail { grid-auto-flow: row; grid-auto-columns: auto; }
  .pr-step + .pr-step::before { display: none; }
  .pr-step + .pr-step { border-top: 1px solid var(--line); }
  .cover { padding: 48px 0 40px; }
  .flow { gap: 10px; justify-content: center; }
  .flow-arrow { display: none; }
  .mod { flex-basis: 44%; max-width: none; }
  .archflow .af { flex-basis: 50%; border-bottom: 1px solid var(--line); }
}

/* print */
@media print {
  .sidebar, .topbar { display: none; }
  .main { padding: 0; } body { background: #fff; }
  .panel, .stack-block, .reftable { box-shadow: none; }
  .section { break-inside: avoid; }
}


/* ---- System overview · the big picture (phase strip + journey rail) ---- */
#overview h3{ font-size:18px; font-weight:800; color:var(--ink); margin:32px 0 8px; }
.phases{ display:flex; flex-wrap:wrap; margin:22px 0 0; background:var(--card-2);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.phases .ph{ flex:1 1 0; min-width:190px; padding:16px 20px; border-left:1px solid var(--line); }
.phases .ph:first-child{ border-left:none; }
.ph-k{ display:flex; align-items:center; gap:8px; font-family:var(--mono); font-size:10.5px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.ph-k::before{ content:""; width:9px; height:9px; border-radius:50%; background:var(--yellow-d); }
.ph-n{ font-size:14px; font-weight:800; color:var(--ink); margin-top:8px; line-height:1.25; }
@media(max-width:780px){ .phases .ph{ flex:1 1 45%; border-left:none; border-top:1px solid var(--line); } }

.bigflow{ margin:14px 0 0; background:var(--card-2); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; }
.bf-row{ display:flex; align-items:center; gap:16px; padding:14px 18px; border-top:1px dashed var(--line-2); }
.bf-row:first-child{ border-top:none; }
.bf-tag{ flex:0 0 auto; min-width:78px; text-align:center; font-family:var(--mono); font-size:10px; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase; color:var(--ink-2); background:var(--card);
  border:1px solid var(--line-2); border-radius:6px; padding:6px 8px; }
.bf-tag.start, .bf-tag.done{ background:var(--yellow-sft); border-color:var(--yellow-d); color:#8a6a00; }
.bf-txt{ flex:1; font-size:14.5px; color:var(--ink-2); line-height:1.42; }
.bf-txt b{ color:var(--ink); font-weight:700; }
.bf-stage{ flex:0 0 auto; font-family:var(--mono); font-size:11px; color:var(--muted); text-align:right; white-space:nowrap; }
@media(max-width:680px){ .bf-row{ flex-wrap:wrap; gap:8px; } .bf-stage{ width:100%; text-align:left; padding-left:94px; } }
