/* ============================================================
   Assemble agent use-case pages — shared design system
   Faithful to assemble.ai (extracted 2026-07-15 via CDP):
   bg rgb(251,252,253) · ink rgb(15,27,45) · muted rgb(90,107,130)
   system-ui sans (no webfont) · ui-monospace for code/tools
   H1 62px/500/-0.038em · micro-labels 10px/500/+0.22em uppercase
   ============================================================ */

:root {
  --bg: #fbfcfd;
  --ink: #0f1b2d;
  --muted: #5a6b82;
  --faint: rgba(15, 27, 45, 0.45);
  --hairline: rgba(15, 27, 45, 0.08);
  --hairline-soft: rgba(15, 27, 45, 0.05);
  --card: #ffffff;
  --wash: #f1f5f9;          /* code chips, subtle fills */
  --green: #4580a1;
  --green-ink: #3d7392;
  --red: #b42318;
  --red-wash: #fef3f2;
  --amber-ink: #b54708;
  --sf-blue: #00a1e0;       /* Salesforce connector accent, used sparingly */

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --shadow-card: 0 1px 2px rgba(15, 27, 45, 0.06), 0 16px 48px -12px rgba(15, 27, 45, 0.12);
  --shadow-float: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 24px -8px rgba(15, 27, 45, 0.1);
  --r-card: 6px;
  --r-el: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* confident, no bounce */
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
::selection { background: rgba(0, 161, 224, 0.18); }

/* ---------- page shell ---------- */
.uc-page { min-height: 100vh; }
.uc-wrap { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* micro eyebrow: ASSEMBLER · USE CASE */
.uc-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 10px;
}
.uc-eyebrow .sep { color: rgba(15, 27, 45, 0.2); }

.uc-hero { padding: 72px 0 0; }
.uc-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.05;
}
.uc-dek {
  font-size: 19px; line-height: 1.5; color: var(--muted);
  max-width: 46em; letter-spacing: -0.01em;
}

/* ---------- replay stage (gradient backdrop + floating card) ---------- */
.stage {
  margin-top: 48px;
  padding: 56px clamp(16px, 4vw, 64px);
  background:
    radial-gradient(1200px 420px at 50% -8%, rgba(69, 128, 161, 0.1), transparent 62%),
    linear-gradient(180deg, #f3f6f9 0%, var(--bg) 88%);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.replay-card {
  max-width: 960px; margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(15, 27, 45, 0.06);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: min(72vh, 680px);
}

/* card header: timer · pill · view toggle · restart */
.rc-head {
  display: flex; align-items: center; gap: 12px;
  height: 52px; flex-shrink: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(255, 255, 255, 0.6);
}
.rc-clock {
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 34px;
}
.rc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--hairline);
  border-radius: 6px; padding: 4px 12px;
  font-size: 12px; color: var(--ink); background: var(--card);
}
.rc-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  animation: pulse 1.7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.rc-pill.done .dot { background: var(--green); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.rc-spacer { flex: 1; }

/* segmented view toggle: Agent chat | Change ledger */
.seg {
  display: inline-flex; padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: 8px; background: var(--wash);
}
.seg button {
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--muted); background: none; border: none;
  border-radius: 6px; padding: 4px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  color: var(--ink); background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.07);
}
.seg .badge {
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: rgba(15, 27, 45, 0.08); color: var(--muted);
  font-size: 10px; font-weight: 600; line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.seg button.on .badge { background: rgba(69, 128, 161, 0.14); color: var(--green-ink); }

.icon-btn {
  display: inline-flex; width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted); cursor: pointer;
  border-radius: 6px;
}
.icon-btn:hover { color: var(--ink); background: var(--wash); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* replay/restart control stays wired for ?loop=1 but is not shown */
.rc-head .icon-btn { display: none; }

/* ---------- timeline (chat view) ---------- */
.rc-body { position: relative; flex: 1; min-height: 0; }
.rc-view { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; }
.rc-view[hidden] { display: none; }
.timeline {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 28px 20px;
}

/* every beat reveals with the same motion */
.beat { animation: rise 0.5s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .beat { animation: none; }
  .rc-pill .dot { animation: none; }
}

/* user message — right aligned, rule on the right edge */
.msg-user { display: flex; justify-content: flex-end; }
.msg-user > div {
  max-width: 82%;
  border-right: 2px solid rgba(15, 27, 45, 0.35);
  padding-right: 16px;
  font-size: 14px; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap;
}

/* thinking block */
.thought {
  border: 1px dashed rgba(15, 27, 45, 0.14);
  border-radius: var(--r-el);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.thought-head {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 9px 12px; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.thought-head:hover { color: var(--ink); }
.thought-head .chev { display: inline-flex; transition: transform 0.2s var(--ease-out); }
.thought.open .thought-head .chev { transform: rotate(90deg); }
.thought-body {
  display: none;
  padding: 2px 14px 12px; font-size: 12.5px; font-style: italic;
  line-height: 1.65; color: var(--muted); white-space: pre-wrap;
}
.thought.open .thought-body { display: block; }

/* assistant prose */
.assist { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.assist p { margin-bottom: 8px; }
.assist p:last-child { margin-bottom: 0; }
.assist strong { font-weight: 600; }
.assist code, .chip {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--wash); border: 1px solid var(--hairline-soft);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}

/* tool card */
.tool-card {
  border: 1px solid var(--hairline);
  border-radius: 10px; background: rgba(248, 250, 252, 0.55);
  overflow: hidden;
}
.tc-head {
  display: flex; width: 100%; align-items: center; gap: 12px;
  padding: 10px 14px; text-align: left;
  background: none; border: none; cursor: pointer; font: inherit;
}
.tc-head .chev { flex-shrink: 0; color: var(--faint); transition: transform 0.2s var(--ease-out); }
.tool-card.open .tc-head .chev { transform: rotate(90deg); }
.tc-logo {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 161, 224, 0.09);
}
.tc-logo img { width: 17px; height: auto; max-width: 20px; object-fit: contain; }
.tc-logo.neutral { background: rgba(15, 27, 45, 0.06); font-size: 12px; font-weight: 700; color: var(--muted); }
.tc-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tc-tool { font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.3; }
/* connector name over tool name: tight two-line lockup regardless of page markup
   (some pages wrap in .tc-id, some use a bare span with a <br>) */
.tc-head > span:has(> .tc-name), .tc-id {
  display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
}
.tc-head > span:has(> .tc-name) br { display: none; }
.tc-status {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.tc-status.err { color: var(--red); }
.tc-spin { margin-left: auto; width: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tc-result {
  border-top: 1px solid var(--hairline-soft);
  padding: 8px 14px;
}
.tc-result p {
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
  color: rgba(15, 27, 45, 0.62);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tc-result.err { background: var(--red-wash); }
.tc-result.err p { color: var(--red); }
.tc-args {
  display: none; border-top: 1px solid var(--hairline-soft);
  padding: 10px 14px; font-family: var(--mono); font-size: 11px;
  line-height: 1.6; color: rgba(15, 27, 45, 0.7); white-space: pre-wrap;
}
.tool-card.open .tc-args { display: block; }

/* approval / staged-change card — question style: title, body, option rows */
.appr {
  border: 1px solid var(--hairline);
  border-radius: 10px; background: var(--card);
  box-shadow: var(--shadow-float);
  padding: 14px 16px;
}
.appr .t { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.appr .b { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.appr .opts { display: flex; flex-direction: column; gap: 6px; }
.appr .opt {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--card); padding: 9px 12px;
  font-size: 12.5px; color: var(--ink);
  transition: opacity 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.appr .opt .radio {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(15, 27, 45, 0.3); position: relative;
}
.appr .opt.sel { border-color: rgba(15, 27, 45, 0.4); background: var(--wash); }
.appr .opt.sel .radio { border-color: var(--ink); }
.appr .opt.sel .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink);
}
.appr .opt.dim { opacity: 0.4; }
.appr .status {
  display: none; margin-top: 10px; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--green-ink);
}
.appr .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-ink); }
.appr.resolved .status { display: inline-flex; }
/* legacy approval buttons (pre-v2 pages; superseded) */
.appr .btns { display: flex; gap: 8px; align-items: center; }
.appr .btns button { font: inherit; font-size: 12px; border-radius: 7px; padding: 6px 14px; cursor: default; }
.appr .pri { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.appr .sec { background: none; color: var(--muted); border: 1px solid var(--hairline); }
.appr .ok { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--green-ink); }
.appr .ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-ink); }

/* completion stats strip (final chat beat) */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px; background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft); border-radius: 10px; overflow: hidden;
}
.stats-row > div { background: var(--card); padding: 12px 14px; }
.stats-row .k {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.stats-row .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stats-row .v small { font-size: 11px; font-weight: 400; color: var(--muted); }

/* trailing spinner while a tool runs */
.tail-spin { width: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* follow-up input (static, bottom of chat) */
.followup {
  margin: 2px 28px 20px; max-width: 720px;
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: var(--faint);
  background: var(--card); flex-shrink: 0;
}

/* ---------- change ledger view ---------- */
.ledger { max-width: 780px; margin: 0 auto; padding: 24px 28px 28px; }
.ledger-sum {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--card);
}
.ledger-sum .n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-sum .d { font-size: 12px; color: var(--muted); }
.ledger-sum .spacer { flex: 1; }
.ledger-sum .ghost {
  font: inherit; font-size: 12px; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 7px;
  background: none; padding: 5px 12px; cursor: default;
  display: inline-flex; align-items: center; gap: 6px;
}

.ledger-empty {
  padding: 48px 0; text-align: center;
  font-size: 13px; color: var(--faint);
}

.lg-phase {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
  margin: 20px 2px 8px;
}
.lg-row {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 14px;
  border: 1px solid var(--hairline-soft); border-radius: 10px;
  background: var(--card); margin-bottom: 6px;
}
.lg-seq {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  min-width: 26px; font-variant-numeric: tabular-nums;
}
.lg-main { flex: 1; min-width: 0; }
.lg-line1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lg-op {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  background: var(--wash); border: 1px solid var(--hairline-soft);
  border-radius: 5px; padding: 1px 7px;
}
.lg-target { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.lg-diff {
  margin-top: 5px; font-size: 12px; color: var(--muted);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.lg-diff .b4 { color: var(--faint); text-decoration: line-through rgba(15,27,45,.25); }
.lg-diff .arr { color: var(--faint); }
.lg-diff .aft { color: var(--ink); font-weight: 500; }
.lg-diff .aft::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green); margin-right: 6px;
  vertical-align: 1px;
}
.lg-rev {
  margin-top: 5px; font-family: var(--mono); font-size: 10.5px;
  color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* revert actions: split button + options, mirrors the product's RevertActions */
.lg-actions {
  margin-top: 8px; display: inline-flex; align-items: stretch;
  border: 1px solid var(--hairline); border-radius: 7px;
  overflow: hidden; background: var(--card);
}
.lg-actions button {
  font: inherit; font-size: 11px; font-weight: 500; color: var(--ink);
  background: none; border: none; padding: 4px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.lg-actions button:hover { background: var(--wash); }
.lg-actions .caret { border-left: 1px solid var(--hairline-soft); padding: 4px 7px; color: var(--muted); }
.lg-actions svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-menu {
  display: none; margin-top: 6px;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--card); box-shadow: var(--shadow-float);
  overflow: hidden; max-width: 460px;
}
.lg-menu.open { display: block; }
.lg-menu .mi { padding: 8px 12px; }
.lg-menu .mi + .mi { border-top: 1px solid var(--hairline-soft); }
.lg-menu .mi:hover { background: var(--wash); }
.lg-menu .mi .l { font-size: 11.5px; font-weight: 550; display: flex; gap: 7px; align-items: center; }
.lg-menu .mi .l svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.lg-menu .mi .dsc {
  margin-top: 3px; font-family: var(--mono); font-size: 10px;
  color: var(--faint); line-height: 1.55; word-break: break-all;
}
.lg-status {
  flex-shrink: 0; font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
  min-width: 64px; text-align: right;
}
.lg-status.ok { color: var(--green-ink); }
.lg-time { flex-shrink: 0; font-family: var(--mono); font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- editorial sections ---------- */
.sect { padding: 88px 0 0; }
.sect:last-of-type { padding-bottom: 96px; }
.sect .num {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  margin-bottom: 14px; display: block;
}
.sect h2 {
  font-size: clamp(26px, 3.2vw, 32px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 22px;
}
.sect .prose { max-width: 46em; }
.sect .prose p { margin-bottom: 14px; font-size: 16px; line-height: 1.62; color: rgba(15, 27, 45, 0.88); }
.sect .prose strong { font-weight: 600; }
.sect hr { border: none; border-top: 1px solid var(--hairline-soft); margin: 88px 0 0; }

/* connector chips row */
.conn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 26px; }
.conn-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 6px;
  background: var(--card); padding: 6px 14px 6px 8px;
  font-size: 13px; font-weight: 500;
}
.conn-chip img { width: 16px; height: 16px; object-fit: contain; }
.conn-chip .glyph {
  width: 18px; height: 18px; border-radius: 5px;
  background: rgba(15, 27, 45, 0.07); color: var(--muted);
  font-size: 10px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center;
}

/* stage list (How it works bullets) */
.stage-list { list-style: none; max-width: 46em; }
.stage-list li {
  padding: 14px 0; border-bottom: 1px solid var(--hairline-soft);
  font-size: 15.5px; line-height: 1.6; color: rgba(15, 27, 45, 0.88);
  display: flex; gap: 16px;
}
.stage-list li:last-child { border-bottom: none; }
.stage-list .idx {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  min-width: 20px; padding-top: 4px;
}
.stage-list strong { font-weight: 600; }

/* outcome stat grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft); border-radius: var(--r-card);
  overflow: hidden; margin-top: 30px;
}
.stat-grid > div { background: var(--card); padding: 22px 22px 20px; }
.stat-grid .k {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.stat-grid .v { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-grid .s { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* evidence artifact chips */
.evidence-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.evidence-row .chip { font-size: 12px; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }

/* footer */
.uc-foot {
  border-top: 1px solid var(--hairline-soft);
  padding: 28px 0 48px;
  font-size: 12.5px; color: var(--faint);
  display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
}
.uc-foot a { color: var(--muted); text-decoration: none; }
.uc-foot a:hover { color: var(--ink); }

/* generic svg icon */
svg.ic { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- small screens (phones; also the blog iframe at phone width,
   where the iframe is as wide as the phone viewport) ---------- */
@media (max-width: 560px) {
  .uc-wrap { padding: 0 20px; }

  /* card header: fits one line on a ~340px card; wraps gracefully below that */
  .rc-head {
    height: auto; min-height: 48px;
    flex-wrap: wrap; row-gap: 4px;
    padding: 6px 12px; gap: 8px;
  }
  .rc-clock { display: none; }
  .rc-pill { padding: 3px 10px; font-size: 11px; white-space: nowrap; }
  .seg button { white-space: nowrap; padding: 4px 8px; font-size: 11px; }

  /* chat column: keep the measure, drop the desktop gutters */
  .timeline { padding: 18px 14px 14px; gap: 16px; }
  .msg-user > div { max-width: 92%; padding-right: 12px; }
  .replay-card .followup { width: calc(100% - 28px); max-width: none; margin: 2px auto 14px; }

  .tc-head { padding: 9px 12px; gap: 10px; }
  /* the identity column yields instead of pushing Done/Error out of the card */
  .tc-head > span:has(> .tc-name), .tc-id { flex: 1 1 auto; min-width: 0; }
  .tc-name, .tc-tool { overflow-wrap: anywhere; }
  .tc-result, .tc-args { padding-left: 12px; padding-right: 12px; }
  .appr { padding: 12px 13px; }
  .replay-card .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row > div { padding: 10px 12px; }

  /* ledger rows: the timestamp goes, statuses shrink, and long mono
     op names may break instead of overlapping the status column */
  .ledger { padding: 18px 14px 22px; }
  .lg-row { padding: 10px 12px; gap: 10px; }
  .lg-time { display: none; }
  .lg-status { min-width: 0; }
  .lg-op { overflow-wrap: anywhere; }
  .lg-rev { white-space: normal; overflow: visible; text-overflow: clip; }
  .ledger-sum { padding: 10px 12px; gap: 10px; }
}
