/* Observability figure: FIG. 1, one session (.fo-replay): goal and heartbeat, then tabs for three panels:
   replay, token composition (.fo-comp) and findings.
   Tokens from tokens.css only. The figure and the composition panel are size containers, so they re-lay by their own width.
   fig-observe.js adds .fo-js to a figure it has enhanced; anything that needs JS is styled under .fo-js. */

.fo-replay, .fo-comp { container-type: inline-size; }
.fo-r, .fo-c { font: 12px/1.4 var(--font-mono); color: var(--ink); }
.fo-r b, .fo-c b { font-weight: 500; }
.fo-r ol, .fo-c ol { list-style: none; margin: 0; padding: 0; }
.fo-r p, .fo-c p, .fo-r dl, .fo-r dd, .fo-c dl, .fo-c dd { margin: 0; }
.fo-num { text-align: right; }
.fo-js-only { display: none; }
.fo-js .fo-js-only { display: inline; }

.fo-lbl { font: 500 11px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.fo-sec {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px;
  padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.fo-sec__note { font: 11px/1.4 var(--font-mono); color: var(--ink-3); }
.fo-sec__note b { color: var(--ink); }

/* disclosure affordance (JS only) */
.fo-js [role="button"] { cursor: pointer; outline: none; }
.fo-js [role="button"]:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.fo-js .fo-row__c::after, .fo-js .fo-c__cost::after { content: "+"; display: inline-block; width: 1.4ch; text-align: right; color: var(--ink-3); }
.fo-js [aria-expanded="true"] .fo-row__c::after, .fo-js [aria-expanded="true"] .fo-c__cost::after { content: "−"; color: var(--ink); }

/* ============================================================ FIG. 1 */
.fo-r > * + * { margin-top: 44px; }

.fo-goal { font: 400 19px/1.3 var(--font-body); color: var(--ink); margin: 4px 0 16px; max-width: 64ch; }
.fo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fo-meta dd { font: 13px/1.4 var(--font-mono); color: var(--ink); margin-top: 2px; }
.fo-meta dd small { display: block; font-size: 11px; color: var(--ink-3); }

/* where the time went */
.fo-went__bar { position: relative; height: 16px; }
.fo-went__seg { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: max(calc(var(--w) * 1% - 2px), 2px); }
.fo-s1 { background: var(--ink-2); }
.fo-s2 { background: var(--ink-3); }
.fo-s3 { background: var(--rule-2); }
.fo-s4 { background: var(--ink); }
.fo-s5 { background: var(--rule); }
.fo-s6 { background: var(--paper-2); outline: 1px solid var(--rule-2); outline-offset: -1px; }
.fo-went__lbls { position: relative; height: 70px; }
.fo-went__lbls li {
  position: absolute; top: 0; left: calc(var(--x) * 1%); padding: 6px 0 0 7px;
  border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; white-space: nowrap;
}
.fo-went__lbls li span { color: var(--ink-3); font-size: 11px; }
.fo-sw { display: none; }
.fo-went__lbls li.fo-late {
  left: auto; right: calc(100% - (var(--x) + var(--w) / 2) * 1%); flex-direction: row; gap: 6px; align-items: baseline;
  border-left: 0; padding: 0 7px 0 0; line-height: 16px;
}
.fo-went__lbls li.fo-late::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; background: var(--rule-2); }
.fo-late1 { top: 38px !important; }
.fo-late1::after { height: 54px; }
.fo-late2 { top: 54px !important; }
.fo-late2::after { height: 70px; }

/* ring + tape */
.fo-r__mid { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: 48px; align-items: start; }
.fo-ring__svg { display: block; width: 100%; max-width: 450px; height: auto; overflow: visible; font-family: var(--font-mono); }
.fo-ring__svg line, .fo-ring__svg circle, .fo-ring__svg path { vector-effect: non-scaling-stroke; }
.fo-guide { fill: none; stroke: var(--rule); stroke-dasharray: 2 4; }
.fo-you { fill: none; stroke: var(--ink-3); stroke-dasharray: 3 3; }
.fo-you__link { stroke: var(--rule-2); stroke-dasharray: 3 3; }
.fo-agent { fill: none; stroke: var(--ink); }
.fo-spoke { outline: none; cursor: default; }
.fo-js .fo-spoke { cursor: pointer; }
.fo-spoke__hit { fill: transparent; }
.fo-spoke line { stroke: var(--rule-2); }
.fo-spoke circle { fill: var(--paper-2); stroke: var(--ink); }
.fo-spoke--now line { stroke: var(--ink-2); }
.fo-spoke--now circle { fill: var(--ink-2); stroke: var(--ink-2); }
.fo-spoke:is(:hover, :focus-visible, .is-active) line { stroke: var(--ink); }
.fo-spoke:is(:hover, :focus-visible, .is-active) circle { fill: var(--ink); stroke: var(--ink); }
.fo-spoke:is(:hover, :focus-visible, .is-active) .fo-t-k { fill: var(--ink); }
.fo-spoke[aria-pressed="true"] .fo-t-n { text-decoration: underline; }
.fo-spoke:focus-visible .fo-t-n { text-decoration: underline; }
.fo-ring__hint { margin-top: 10px !important; }
.fo-js .fo-ring__hint { display: block; }
.fo-t-n { font-size: 12px; font-weight: 500; fill: var(--ink); }
.fo-t-v { font-size: 11px; fill: var(--ink-3); }
.fo-t-k { fill: var(--ink-2); }
.fo-t-c { text-anchor: middle; font-size: 11px; fill: var(--ink-3); }
text.fo-t-c.fo-t-n { font-size: 12px; fill: var(--ink); }

.fo-tape__h, .fo-row__main { display: grid; grid-template-columns: 64px 128px minmax(0, 1fr) 76px; column-gap: 16px; }
.fo-tape__h { padding-bottom: 6px; }
.fo-tape__scroll { position: relative; max-height: 440px; overflow-y: auto; overflow-x: hidden; padding-left: 10px; margin-left: -10px; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.fo-js .fo-tape__scroll { height: 440px; overflow-anchor: none; }
.fo-tape__clear { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fo-tape__clear:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.fo-tape__scroll::after { content: ""; position: sticky; bottom: 0; display: block; height: 28px; margin-top: -28px; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.fo-row__c small { display: block; font-size: 10px; color: var(--ink-3); }
.fo-row { border-top: 1px solid var(--rule); }
.fo-js .fo-row {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1), border-top-width .4s, opacity .2s, visibility 0s;
}
.fo-row__body { min-height: 0; }
.fo-js .fo-row__body { overflow: hidden; }
.fo-js .fo-row__main:focus-visible { outline-offset: -2px; }
.fo-js .fo-row[aria-hidden="true"] {
  grid-template-rows: 0fr; border-top-width: 0; opacity: 0; visibility: hidden;
  transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1), border-top-width .4s, opacity .16s, visibility 0s .4s;
}
.fo-row__main { padding: 10px 0; }
.fo-js .fo-row__main:hover .fo-row__s { color: var(--ink); }
.fo-row__t { color: var(--ink-3); }
.fo-row__who { color: var(--ink-2); }
.fo-row__m { display: block; color: var(--ink-3); }
.fo-row__m b, .fo-row__who b { color: var(--ink); }
.fo-row__s { display: block; font: 13px/1.45 var(--font-body); color: var(--ink-2); margin-top: 2px; }
.fo-row__c { text-align: right; color: var(--ink); white-space: nowrap; }
.fo-row__c small { display: block; font-size: 10px; color: var(--ink-3); }
.fo-row__c { position: relative; }
.fo-js .fo-row__c { padding-right: 1.6ch; }
.fo-js .fo-row__c::after { position: absolute; right: 0; top: 0; }
.fo-row__c.fo-dim { color: var(--ink-3); }
.fo-row__det { padding: 12px 14px; margin: 0 0 12px 80px; background: var(--paper-2); }
.fo-row__det dl, .fo-c__det dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 14px; }
.fo-row__det dt { padding-top: 1px; }
.fo-row__det dd { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.fo-find__k { color: var(--warn); }
.fo-find__v { border-left: 2px solid var(--warn); padding-left: 8px; }

/* heartbeat */
.fo-hb__grid { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding-top: 22px; }
.fo-hb__lbls { display: grid; grid-template-rows: 18px 24px 24px 28px 18px; align-items: center; }
.fo-hb__fl { color: var(--warn); }
.fo-hb__track { position: relative; display: grid; grid-template-rows: 18px 76px 18px; outline: none; }
.fo-hb__track:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.fo-hb__you { position: relative; }
.fo-hb__you i {
  position: absolute; top: 5px; left: calc(var(--x) * 1%); width: 0; height: 0; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 7px solid var(--ink);
}
.fo-hb__svg { display: block; width: 100%; height: 76px; }
.fo-hb__find { display: block; width: 100%; height: 14px; margin-top: 2px; }
.fo-hb__svg *, .fo-hb__find * { vector-effect: non-scaling-stroke; }
.fo-hb__find line { stroke: var(--warn); }
.fo-m--w { fill: var(--ink-3); }
.fo-m--o { fill: var(--rule); }
line.fo-tk { stroke: var(--ink-2); }
rect.fo-tk { fill: var(--ink-2); }
.fo-tk { transition: opacity .15s; }
.fo-ctx { fill: none; stroke: var(--ink-2); stroke-linejoin: round; }
.fo-idle { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); border-left: 1px dotted var(--ink-3); }
.fo-dots { display: inline-block; width: 0; height: 11px; border-left: 1px dotted var(--ink-3); margin: 0 6px -1px 4px; }
.fo-key-w { display: inline-block; width: 12px; height: 8px; background: var(--ink-3); margin: 0 6px 0 2px; }
.fo-hb__after { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--x) * 1% + 1px); background: var(--paper); opacity: .6; pointer-events: none; }
.fo-ph { position: absolute; top: -22px; bottom: -4px; left: calc(var(--x) * 1%); border-left: 1px solid var(--accent); pointer-events: none; }
.fo-ph span { position: absolute; top: -2px; left: 6px; font-size: 11px; color: var(--accent-deep); white-space: nowrap; }
.fo-hb__axis { position: relative; height: 16px; margin: 6px 0 0 80px; font-size: 11px; color: var(--ink-3); }
.fo-hb__axis span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.fo-hb__axis span:first-child { transform: none; }
.fo-hb__axis span.fo-end { transform: translateX(-100%); }
.fo-tt {
  position: absolute; z-index: 4; top: -26px; transform: translateY(-100%); max-width: min(340px, 100%); width: max-content; box-sizing: border-box;
  padding: 6px 9px; background: var(--paper); border: 1px solid var(--ink); pointer-events: none;
  font: 11px/1.5 var(--font-mono); color: var(--ink-2);
}
.fo-tt b, .fo-tt span { display: block; }
.fo-tt b { color: var(--ink); }
.fo-tt__summary { margin: 6px 0; padding-bottom: 7px; border-bottom: 1px solid var(--rule-2); font: italic 13px/1.5 var(--font-body); color: var(--ink-2); }

/* Tabs: one view of the session at a time, drawn as folder tabs so they read as clickable. They are the
   section's 1.x points. Without JS the tab row stays hidden and every panel shows, each under its own heading. */
.fo-tabs { display: none; }
.fo-js .fo-tabs { display: flex; gap: 8px; margin-top: 64px; border-bottom: 1px solid var(--ink); }
.fo-tab {
  flex: 0 1 400px; min-width: 0; margin-bottom: -1px; padding: 12px 18px 16px; text-align: left; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--rule); border-bottom-color: var(--ink); border-radius: 0;
  font: 14px/1.45 var(--font-body); color: var(--ink-3); transition: background-color .15s, color .15s, border-color .15s;
}
.fo-r .fo-tab b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.fo-tab__n { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font: 12px var(--font-mono); letter-spacing: .02em; color: var(--ink-3); }
.fo-tab__cue { color: var(--ink-3); }
.fo-tab__cue::after { content: "show \2193"; }
.fo-tab[aria-selected="true"] { cursor: default; background: var(--paper); border-color: var(--ink); border-bottom-color: var(--paper); color: var(--ink-2); }
.fo-r .fo-tab[aria-selected="true"] b { color: var(--ink); }
.fo-tab[aria-selected="true"] .fo-tab__n { color: var(--accent-deep); }
.fo-tab[aria-selected="true"] .fo-tab__cue::after { content: "showing"; }
.fo-tab:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .fo-tab:not([aria-selected="true"]):hover { background: var(--paper); border-color: var(--ink-3); border-bottom-color: var(--ink); color: var(--ink-2); }
  .fo-r .fo-tab:not([aria-selected="true"]):hover b, .fo-tab:hover .fo-tab__cue { color: var(--ink); }
}
.fo-js .fo-tabs + .fo-panel { margin-top: 36px; }
.fo-panel > * + * { margin-top: 44px; }

/* The heartbeat follows the same preview or pinned tool as the tape. */
.fo-replay[data-tool-filter] .fo-tk:not(.is-active) { opacity: .1; }

@media (prefers-reduced-motion: reduce) {
  .fo-js .fo-row, .fo-js .fo-row[aria-hidden="true"], .fo-tk { transition: none; }
}

@container (max-width: 960px) {
  .fo-r__mid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@container (max-width: 720px) {
  .fo-went__lbls { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 12px; }
  .fo-went__lbls li, .fo-went__lbls li.fo-late {
    position: static; display: grid; grid-template-columns: 12px auto minmax(0, 1fr); gap: 8px; align-items: baseline;
    border: 0; padding: 0; line-height: 1.4;
  }
  .fo-went__lbls li.fo-late::after { content: none; }
  .fo-went__lbls li span { text-align: right; }
  .fo-sw { display: block; width: 12px; height: 8px; }
  .fo-meta { justify-content: start; }
}
@container (max-width: 560px) {
  .fo-r > * + * { margin-top: 36px; }
  .fo-js .fo-tabs { gap: 6px; margin-top: 48px; }
  .fo-tab { flex: 1 1 0; padding: 10px 12px 12px; }
  .fo-tab__d { display: none; }
  .fo-r .fo-tab b { font-size: 14px; line-height: 1.3; }
  .fo-tab__n { margin-bottom: 6px; }
  .fo-js .fo-tabs + .fo-panel { margin-top: 28px; }
  .fo-goal { font-size: 17px; }
  .fo-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .fo-went__lbls { grid-template-columns: 1fr; }
  .fo-tape__h, .fo-row__main { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; }
  .fo-tape__h span:nth-child(3) { display: none; }
  .fo-tape__scroll { max-height: 380px; }
  .fo-js .fo-tape__scroll { height: 380px; }
  .fo-row__what { grid-column: 2 / 4; grid-row: 2; }
  .fo-replay:not(.fo-js) .fo-row:nth-child(n + 4) { display: none; }
  .fo-row__det { margin-left: 0; }
  .fo-row__det dl, .fo-c__det dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fo-row__det dd { margin-bottom: 6px; }
  .fo-hb__grid { grid-template-columns: 56px minmax(0, 1fr); column-gap: 10px; }
  .fo-hb__axis { margin-left: 66px; }
  .fo-ph span { left: auto; right: 6px; }
  .fo-ring__svg .fo-t-v:not(.fo-t-c) { font-size: 12px; }
  .fo-ring__svg .fo-t-n:not(.fo-t-c) { font-size: 13px; }
}

/* ============================================================ FIG. 1 tokens and findings panels */
.fo-c {
  --c1: 132px; --c2: 80px; --c3: 52px; --c5: 72px; --cg: 16px;
  --ts: calc(var(--c1) + var(--c2) + var(--c3) + 3 * var(--cg)); --te: calc(var(--c5) + var(--cg));
}
.fo-key { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.fo-key i { display: inline-block; width: 18px; height: 10px; }
.fo-key__est { border: 1px dashed var(--ink-3); background: var(--paper-2); }
.fo-key__ex { background: var(--ink); margin-left: 12px; }

.fo-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -2px 0 16px; }
.fo-tg__b {
  font: 11px/1 var(--font-mono); color: var(--ink-2); background: none; border: 1px solid var(--rule-2);
  padding: 5px 8px; border-radius: 0; cursor: pointer;
}
.fo-tg__b + .fo-tg__b { margin-left: -9px; }
.fo-tg__b[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fo-tg__b:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.fo-tg__note { font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.fo-comp:not(.fo-js) .fo-tg > :not(.fo-tg__note) { display: none; }
.fo-comp:not(.fo-js) .fo-tg__note { margin-left: 0; }

.fo-c__h, .fo-c__row { display: grid; grid-template-columns: var(--c1) var(--c2) var(--c3) minmax(0, 1fr) var(--c5); column-gap: var(--cg); align-items: center; }
.fo-c__h { padding-bottom: 6px; }
.fo-scale { position: relative; height: 16px; }
.fo-scale i { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); font-style: normal; }
.fo-scale i:first-child { transform: none; }
.fo-scale i:last-child { transform: translateX(-100%); }
.fo-c__row { position: relative; padding: 8px 0; border-top: 1px solid var(--rule); }
.fo-c__row--all { border-top: 1px solid var(--ink-3); }
.fo-c__row--all .fo-c__name { color: var(--ink-3); }
.fo-c__track { position: relative; height: 16px; }
.fo-c__track, .fo-all__seg, .fo-exp { --x: var(--xt); --w: var(--wt); }
.fo-comp[data-scale="cost"] :is(.fo-c__track, .fo-all__seg, .fo-exp) { --x: var(--xc); --w: var(--wc); }
.fo-all { position: absolute; inset: 0; }
.fo-all__seg { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: max(calc(var(--w) * 1% - 1px), 1px); transition: left .35s, width .35s; }
.fo-a0 { background: var(--ink-2); }
.fo-a1 { background: var(--rule-2); }
.fo-seg {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: max(calc(var(--w) * 1%), 3px);
  border: 1px dashed var(--ink-3); background: var(--paper-2); box-sizing: border-box; overflow: hidden; transition: left .35s, width .35s;
}
.fo-seg__ex { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--e) * 1%); background: var(--ink); }
.fo-note { position: absolute; top: 0; line-height: 16px; font-size: 11px; color: var(--ink-3); white-space: nowrap; transition: right .35s; }
.fo-note--l { right: calc(100% - var(--x) * 1% + 8px); }
.fo-c__row--b:hover .fo-seg, .fo-c__row--b[aria-expanded="true"] .fo-seg { border-style: solid; border-color: var(--ink); }
.fo-c__cost { white-space: nowrap; }
.fo-c__det { padding: 12px 14px; margin: 0 0 10px; background: var(--paper-2); }
.fo-det__h { margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fo-det__list li, .fo-det__suites li { display: grid; column-gap: 14px; align-items: center; padding: 3px 0; }
.fo-det__list li { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 40px 84px 64px; }
.fo-det__bar { display: block; height: 8px; width: calc(var(--s) * 1%); background: var(--ink-3); }
.fo-det__suites li { grid-template-columns: 84px minmax(0, 1fr) 76px 64px; }
.fo-det__suites li > span:nth-child(2) { color: var(--ink-3); }
.fo-det__chips { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.fo-det__chips:empty { display: none; }
.fo-badge { font: 10.5px/1 var(--font-mono); font-style: normal; color: var(--ink-2); border: 1px dashed var(--ink-3); padding: 3px 5px; }
.fo-det__f { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule-2); font-size: 11px; color: var(--ink-2); }

/* tool definitions, opened into its suites (inside the row's detail; open by default) */
.fo-exp { position: relative; margin: 0 0 12px; }
.fo-exp__cone { display: none; }
.fo-exp__cone {
  height: 26px; background: var(--paper-2); transition: clip-path .35s;
  clip-path: polygon(calc(var(--ts) + (100% - var(--ts) - var(--te)) * var(--x) / 100) 0, calc(var(--ts) + (100% - var(--ts) - var(--te)) * (var(--x) + var(--w)) / 100) 0, 100% 100%, 0 100%);
}
.fo-exp__row { display: flex; height: 40px; }
.fo-suite {
  position: relative; flex: var(--w) 1 0; min-width: 0; margin-left: -1px; padding: 4px 5px; white-space: nowrap; outline: none;
  display: flex; flex-direction: column; border: 1px dashed var(--ink-3); background: var(--paper); line-height: 15px;
  transition: background-color .12s, border-color .12s;
}
.fo-suite > b, .fo-suite > span { overflow: hidden; text-overflow: ellipsis; }
.fo-suite:is(:hover, :focus-visible) { background: var(--paper-2); border-style: solid; border-color: var(--ink); z-index: 2; }
.fo-suite[data-tip]::before {
  content: attr(data-tip); display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 4;
  width: max-content; max-width: min(440px, 80vw); white-space: normal; font: 11px/1.45 var(--font-mono); color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); padding: 6px 9px; box-sizing: border-box;
}
.fo-suite:nth-last-child(-n+5)[data-tip]::before { left: auto; right: 0; }
.fo-suite:is(:hover, :focus-visible)[data-tip]::before { display: block; }
.fo-suite:first-child { margin-left: 0; }
.fo-suite b { font-size: 11px; }
.fo-suite span { font-size: 11px; color: var(--ink-3); }
.fo-suite--top { position: relative; border: 1px solid var(--warn); background: var(--warn-soft); }
.fo-suite--top span { color: var(--ink-2); }
.fo-suite--out > * { visibility: hidden; }
.fo-exp__notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.fo-exp__notes b { color: var(--ink); }

/* reconciliation rows */
.fo-c__row--sum { padding: 5px 0; color: var(--ink-3); }
.fo-c__row--sum + .fo-c__row--sum { border-top: 0; }
.fo-c__row--sum .fo-c__name { color: var(--ink-3); }
.fo-c__why { height: auto; font-size: 11px; color: var(--ink-3); }
.fo-c__row--tot { border-top: 1px solid var(--ink-3) !important; color: var(--ink); }
.fo-c__row--tot .fo-c__name { color: var(--ink); }
.fo-c__row--sum .fo-num { color: inherit; }

/* conversation tree */
.fo-tree { margin-top: 40px; }
.fo-tree__row { display: flex; height: 22px; }
.fo-fr { position: relative; font-style: normal; flex: var(--w) 1 0; min-width: 0; background: var(--paper-2); outline: 1px solid var(--rule-2); outline-offset: -1px; transition: background-color .12s, outline-color .12s; }
.fo-fr b { display: block; padding: 0 6px; font-size: 11px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-fr:is(:hover, :focus-visible) { background: var(--rule-2); outline-color: var(--ink); z-index: 2; }
.fo-fr--loc:is(:hover, :focus-visible) { background: var(--ink-3); }
.fo-fr[data-tip]::before {
  content: attr(data-tip); display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 4;
  width: max-content; max-width: min(460px, 80vw); white-space: normal; font: 11px/1.45 var(--font-mono); color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); padding: 6px 9px; box-sizing: border-box;
}
.fo-fr:is(:hover, :focus-visible)[data-tip]::before { display: block; }
.fo-tree__row .fo-fr:nth-child(n+20)[data-tip]::before { left: auto; right: 0; }
.fo-fr--t1 { outline-color: var(--ink-3); }
.fo-fr--nit { background: none; outline: 1px dashed var(--ink-3); }
.fo-fr--loc { background: var(--rule); outline-color: var(--ink-3); }
.fo-tree__notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.fo-tree__notes b { color: var(--ink); }
.fo-tree__notes em { font: italic 13px/1.4 var(--font-body); color: var(--ink-2); }

/* efficiency findings: always shown under the heartbeat, ranked by estimated avoidable cost */
.fo-fs { margin-top: 56px; }
.fo-fs__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-top: 4px; }
.fo-fs__rows li { display: flex; flex-direction: column; gap: 6px; }
.fo-fs__amt { font: 500 32px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--warn); }
.fo-fs__amt small { margin-left: 6px; font: 11px var(--font-mono); letter-spacing: .04em; color: var(--ink-3); }
.fo-r .fo-fs__t { margin-top: 6px; font: 500 15px/1.35 var(--font-body); color: var(--ink); }
.fo-fs__ev { font: 13px/1.45 var(--font-body); color: var(--ink-2); }
.fo-fs__meta { margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--ink-3); }
.fo-fs__conf--verifying { font-style: italic; }
.fo-fs__tot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--ink-3); }
.fo-fs__totl { color: var(--ink-2); }
.fo-fs__totl b { color: var(--warn); font-size: 14px; }
.fo-fs__bar { position: relative; display: block; width: min(280px, 100%); height: 10px; outline: 1px solid var(--rule-2); outline-offset: -1px; }
.fo-fs__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * 1%); background: var(--warn); }
.fo-c__foot { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 11px; line-height: 1.5; color: var(--ink-3); }

@container (max-width: 720px) {
  .fo-c { --ts: 0px; --te: 0px; --c5: 60px; --c2: 76px; --c3: 48px; --cg: 10px; }
  .fo-c__h, .fo-c__row { grid-template-columns: minmax(0, 1fr) var(--c2) var(--c3) var(--c5); }
  .fo-c__h > :nth-child(4) { display: none; }
  .fo-c__track { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .fo-c__why { margin-top: 2px; }
  .fo-det__list li { grid-template-columns: minmax(0, 1fr) 36px 76px 56px; }
  .fo-det__bar { display: none; }
  .fo-det__suites li { grid-template-columns: minmax(0, 1fr) 70px 56px; }
  .fo-det__suites li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fo-det__chips { grid-column: 1 / -1; }
  .fo-exp__row { display: grid; height: auto; gap: 5px; }
  .fo-suite, .fo-suite--top {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; column-gap: 10px; align-items: center;
    margin: 0; padding: 0; border: 0; background: none;
  }
  .fo-suite::after {
    content: ""; grid-column: 2; grid-row: 1; height: 10px; width: calc(var(--w) / 26 * 100%);
    border: 1px dashed var(--ink-3); background: var(--paper-2); box-sizing: border-box;
  }
  .fo-suite--top::after { border: 1px solid var(--warn); background: var(--warn-soft); }
  .fo-suite b { grid-column: 1; }
  .fo-suite span { grid-column: 3; text-align: right; }
  .fo-suite--out > * { visibility: visible; }
  .fo-exp__out { display: none; }
  .fo-suite[data-tip]::before, .fo-fr[data-tip]::before { display: none !important; }
  .fo-exp__notes { margin-top: 10px; }
  .fo-fs__rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fo-fs__rows li { padding: 14px 0; border-top: 1px solid var(--rule); }
  .fo-fs__rows li:first-child { border-top: 0; padding-top: 0; }
  .fo-fs__amt { font-size: 26px; }
  .fo-fs__tot { margin-top: 4px; }
}
