/* Agent run show. Builds on tasks.css .task-workspace tokens, hero, steps, facts, and buttons. */
.task-workspace .run-show {
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #9fabbd; }
  .lnk { font-size: 12px; font-weight: 600; color: var(--link); }
  .pill.skip::before { background: transparent; border: 1px dashed currentColor; }
  .pv code { font: 11.5px var(--mono); color: var(--muted); }
  .btn-reject { background: #5a2f17; border-color: #9a5a2f; color: #ffd2b5; }
  .btn-danger { background: transparent; border-color: #6b3540; color: var(--red); }
  .btn.off { color: var(--faint); cursor: not-allowed; }
  .card-h { flex-wrap: wrap; }
  .card-h .aside { font-size: 12px; color: var(--muted); }
  .card-h .tags { display: flex; gap: 6px; flex-wrap: wrap; }

  /* Hero */
  .hero-band { height: 84px; }
  .hero-band.b-live { background: linear-gradient(110deg, #1c2f4f 0%, #203743 60%, #262f4a 100%); color: #a7c6f5; }
  .hero-band.b-error { background: linear-gradient(110deg, #3a1d27 0%, #2e2233 55%, #262f4a 100%); color: #f0a7b2; }
  .hero-band.b-blocked { background: linear-gradient(110deg, #3a301d 0%, #2e2a26 55%, #262f4a 100%); color: #f6d18f; }
  .hero-band.b-legacy { background: linear-gradient(110deg, #262d38 0%, #252c3a 60%, #262f4a 100%); color: #95a2b5; }
  .hero-body .eyebrow { display: flex; align-items: center; gap: 8px; color: #a8c9fe; }
  .hero-body .eyebrow code { font: 600 11px var(--mono); letter-spacing: 0; text-transform: none; }
  .hero-body h1 { margin-top: 6px; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; }
  .hero-meta a.tasklink { color: var(--link); font-weight: 550; }
  .hero-meta b { color: #e3e8f0; font-weight: 550; }
  .life { margin-top: 18px; gap: 12px 28px; }
  .steps li em { font: normal 11px var(--mono); color: var(--faint); }
  .steps li.skip + li::before { background: #4f8f74; }
  .steps li.skip { color: var(--muted); }
  .steps li.skip b { border-style: dashed; border-color: #748195; color: var(--muted); }
  .steps li.now em { color: #cfe2ff; }
  .steps li.now.off em { color: var(--muted); }
  .steps li.bad { color: var(--red); font-weight: 650; }
  .steps li.bad b { border-color: #ff929c; background: var(--red-wash); color: var(--red); box-shadow: 0 0 0 4px #ff929c26; }
  .steps li.bad.blk { color: var(--amber); }
  .steps li.bad.blk b { border-color: #f5c16b; background: var(--amber-wash); color: var(--amber); box-shadow: 0 0 0 4px #f5c16b26; }
  .acts { position: relative; }
  .acts .hint { font-size: 11.5px; color: var(--muted); }
  .auto { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 12px 5px 10px; border: 1px solid var(--edge); border-radius: 8px; background: #141d29; font-size: 12.5px; font-weight: 600; color: var(--soft); }
  .auto i { position: relative; width: 30px; height: 17px; border-radius: 17px; background: #3b4758; flex: none; }
  .auto i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #dfe6f0; }
  .auto[aria-pressed="true"] i { background: #2f8a5f; }
  .auto[aria-pressed="true"] i::after { left: 15px; }
  .reject[open] > summary { box-shadow: 0 0 0 3px #ffb07a33; }
  .pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 400px; max-width: calc(100vw - 40px); padding: 16px; background: #1d2837; border: 1px solid #5a3a28; border-radius: 12px; box-shadow: 0 18px 44px #000a; text-align: left; }
  .pop h3 { font-size: 14px; font-weight: 650; }
  .pop p { margin-top: 3px; font-size: 12px; color: var(--muted); }
  .pop label { display: block; margin-top: 12px; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: #9fabbd; }
  .pop textarea { display: block; width: 100%; margin-top: 6px; min-height: 104px; resize: vertical; padding: 10px 12px; border: 1px solid #9a5a2f; border-radius: 8px; background: #121b27; font-size: 13px; line-height: 1.5; color: #e6edf7; box-shadow: 0 0 0 3px #ffb07a22; outline: none; }
  .pop .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

  /* Alerts */
  .alert { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid; }
  .alert .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
  .alert .ic svg { width: 16px; height: 16px; }
  .alert h2 { font-size: 14px; font-weight: 650; color: #fff; }
  .alert p { margin-top: 3px; font-size: 13px; color: #d9dfe8; white-space: pre-wrap; }
  .alert.a-red { background: #2a1a20; border-color: #7a3943; }
  .alert.a-red .ic { background: var(--red-wash); color: var(--red); }
  .alert.a-amber { background: #2a2419; border-color: #7a5d2b; }
  .alert.a-amber .ic { background: var(--amber-wash); color: var(--amber); }
  .alert.a-blue { background: #172540; border-color: #355b93; }
  .alert.a-blue .ic { background: var(--blue-wash); color: var(--blue); }
  .alert .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: run-spin 1s linear infinite; }
  .restart-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; font-size: 12px; }
  .restart-steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .restart-steps span { padding-top: 7px; border-top: 2px solid #4f8f74; color: #b5dcc8; }
  .restart-steps span.on { border-color: #80acff; color: #cfe2ff; font-weight: 600; }
  .restart-steps span.next { border-color: #475566; color: var(--muted); }
  .alert .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
  .alert .foot b { color: #cfe2ff; font-weight: 550; font-family: var(--mono); font-size: 11.5px; }

  /* Grid */
  .rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 20px; align-items: start; }
  .rs-main, .rs-rail { display: grid; gap: 18px; min-width: 0; }
  .rs-rail { position: sticky; top: 20px; }
  .facts { grid-template-columns: 104px minmax(0, 1fr); gap: 9px 12px; }
  .facts .mono { font-size: 11.5px; }

  /* Pipeline */
  .pipe { list-style: none; margin: 0; padding: 12px 18px 6px; }
  .ph { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; }
  .ph:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; border-radius: 2px; background: #36445a; }
  .ph:is([data-phase-status="completed"], [data-phase-status="skipped"]):not(:last-child)::before { background: #4f8f74; }
  .ph-body { min-width: 0; }
  .ph-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3f4d62; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--faint); background: var(--panel); position: relative; }
  .ph[data-phase-status="completed"] .ph-mark { background: #2b6b52; border-color: #2b6b52; color: #e6fff3; }
  .ph[data-phase-status="skipped"] .ph-mark { border-style: dashed; border-color: #748195; color: var(--muted); }
  .ph:is([data-phase-status="running"], [data-phase-status="active"]) .ph-mark { border-color: #80acff; background: #233e60; color: #cfe2ff; box-shadow: 0 0 0 4px #80acff2b; }
  .ph:is([data-phase-status="rejected"], [data-phase-status="error"]) .ph-mark { border-color: #ff929c; background: var(--red-wash); color: var(--red); }
  .ph[data-phase-status="blocked"] .ph-mark { border-color: #f5c16b; background: var(--amber-wash); color: var(--amber); }
  .ph[data-phase-status="waiting"] .ph-mark { border-color: #748195; background: #2c3544; color: var(--soft); box-shadow: 0 0 0 4px #74819526; }
  .ph-head { display: flex; align-items: center; gap: 10px; min-height: 26px; flex-wrap: wrap; }
  .ph-head h3 { font-size: 14px; font-weight: 650; }
  .ph-head .time { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); }
  .ph-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
  .ph-note.blk { color: var(--amber); }
  .ex { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #151f2c; }
  .ex + .ex { margin-top: 6px; }
  .role { flex: none; white-space: nowrap; padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .r-design { background: var(--violet-wash); color: var(--violet); }
  .r-coding { background: var(--blue-wash); color: var(--blue); }
  .r-qa { background: #2d2a4a; color: #c4a5fc; }
  .r-architect { background: #213a3a; color: var(--teal); }
  .ex-who { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; }
  .ex-who .ttl { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .ex-end { display: flex; align-items: center; gap: 10px; }
  .phase-summary { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; }
  .phase-summary.s-bad { color: var(--red); }
  .phase-summary.s-ok { color: var(--green); }
  .phase-summary.s-run { color: var(--blue); }
  .ex-log { grid-column: 1 / -1; max-height: 96px; overflow: hidden; padding: 8px 10px; border-radius: 7px; background: #0f1823; border: 1px solid #243041; font: 11.5px/1.6 var(--mono); color: #9fb0c6; white-space: pre-wrap; }
  .ex-err { grid-column: 1 / -1; font-size: 12px; color: var(--red); white-space: pre-wrap; }
  .pipe-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
  .pipe-foot b { color: #dbe4f0; font-weight: 550; }

  /* CI gate: one card per changed repository, one row per latest workflow attempt for its SHA. */
  .gate { margin-top: 8px; border: 1px solid var(--rule); border-radius: 10px; background: #151f2c; overflow: hidden; }
  .gate + .gate { margin-top: 6px; }
  .gate.failed { border-color: #7a3943; }
  .gate-h { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; font-size: 12.5px; }
  .gate-h .gate-repo { font-weight: 600; color: #e2e9f3; }
  .gate-h .sha { font: 11.5px var(--mono); color: var(--link); }
  .gate-h .br { font: 11px var(--mono); color: var(--faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; flex: 1 1 120px; }
  .gate-h .sum { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; }
  .gate-h .sum.s-ok { color: var(--green); }
  .gate-h .sum.s-run { color: var(--blue); }
  .gate-h .sum.s-bad { color: var(--red); }
  .r-ci { background: #213a3a; color: var(--teal); }
  .wf { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
  .wf li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 8px 12px; font-size: 12.5px; }
  .wf li + li { border-top: 1px solid var(--rule); }
  .wf .st { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; border: 2px solid #748195; color: var(--soft); }
  .wf [data-check="queued"] .st { border-style: dashed; }
  .wf [data-check="in_progress"] .st { border-color: #80acff; border-right-color: transparent; animation: run-spin 1s linear infinite; }
  .wf [data-check="success"] .st { border-color: #2b6b52; background: #2b6b52; color: #e6fff3; }
  .wf [data-check="failure"] .st { border-color: #ff929c; background: var(--red-wash); color: var(--red); }
  .wf .nm { min-width: 0; }
  .wf .nm a { font-weight: 600; color: var(--link); }
  .wf .nm em { display: block; font: normal 11px var(--mono); color: var(--faint); margin-top: 1px; }
  .wf .nm em s { color: #8c6a72; }
  .wf .wf-lbl { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--soft); }
  .wf [data-check="in_progress"] .wf-lbl { color: var(--blue); }
  .wf [data-check="success"] .wf-lbl { color: var(--green); }
  .wf [data-check="failure"] .wf-lbl { color: var(--red); }
  .wf .tm { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; }
  .gate-x { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid #5a2c34; background: #2a1a20; font-size: 12.5px; color: #ffd3d8; }
  .gate-x b { display: block; color: #fff; font-weight: 650; font-size: 13px; }
  .gate-x code { font: 12px var(--mono); }
  .gate-x .mk { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; border: 1px solid currentColor; color: var(--red); }
  .gate-x .btn { margin-left: auto; flex: none; }
  .gate-note { margin-top: 6px; font-size: 12px; color: var(--muted); }
  .gate-note code { font: 11.5px var(--mono); color: #c2ccda; }
  @media (prefers-reduced-motion: reduce) { .wf [data-check="in_progress"] .st { animation: none; } }

  /* Summary */
  .run-prose { font-size: 13.5px; line-height: 1.6; color: #cdd6e2; }
  .run-prose > * + * { margin-top: 9px; }
  .run-prose :is(h1, h2, h3, h4, h5, h6) { font-size: 13px; font-weight: 650; color: #fff; margin-top: 14px; }
  .run-prose ul { list-style: disc; padding-left: 18px; }
  .run-prose ol { list-style: decimal; padding-left: 18px; }
  .run-prose li + li { margin-top: 3px; }
  .run-prose code { font: 12px var(--mono); padding: 1px 5px; border-radius: 4px; background: #121b27; color: #b9d5ff; }
  .run-prose pre { padding: 10px 12px; border-radius: 8px; background: #121b27; overflow-x: auto; }
  .run-prose pre code { padding: 0; background: none; }
  .run-prose strong { color: #fff; }
  .run-prose a { color: var(--link); }
  .copybtn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--edge); border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--soft); }
  .copybtn:hover { color: #fff; border-color: #4f6280; }

  /* QA verdict */
  .qa.ok { border-color: #2f6650; }
  .qa.bad { border-color: #7a3943; }
  .qa-h { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
  .qa.ok .qa-h { background: #1b3229; }
  .qa.bad .qa-h { background: #2c1a20; border-bottom: 1px solid #5a2c34; }
  .qa-h .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
  .qa.ok .ic { background: var(--green-wash); color: var(--green); }
  .qa.bad .ic { background: var(--red-wash); color: var(--red); }
  .qa-h h2 { font-size: 15px; font-weight: 650; }
  .qa-h p { font-size: 12px; color: var(--red); }
  .qa-h .end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .findings { list-style: none; margin: 0; padding: 4px 18px; }
  .findings li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); }
  .findings li:first-child { border-top: 0; }
  .findings .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red-wash); color: var(--red); font-size: 12px; font-weight: 700; }
  .findings h4 { font-size: 13.5px; font-weight: 650; margin-top: 3px; }
  .findings p { margin-top: 3px; font-size: 13px; color: #c7d1de; white-space: pre-wrap; }
  .qa-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--rule); background: #151f2c; font-size: 12px; color: var(--muted); }

  /* Repository results */
  .pr-link { font-size: 13px; word-break: break-all; }
  .callout { display: flex; gap: 12px; margin: 12px 18px 0; padding: 11px 14px; border-radius: 10px; border: 1px solid; font-size: 12.5px; }
  .callout b { display: block; font-size: 13px; color: #fff; font-weight: 650; }
  .callout .mk { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 1px solid currentColor; }
  .callout p { color: #c7d1de; margin-top: 2px; }
  .callout.c-green { background: #182b25; border-color: #2f6650; color: var(--green); }
  .callout.c-red { background: #2a1a20; border-color: #7a3943; color: var(--red); }
  .callout.c-amber { background: #2a2419; border-color: #7a5d2b; color: var(--amber); }
  .callout.c-blue { background: #172540; border-color: #355b93; color: var(--blue); }
  .callout.c-gray { background: #1b2433; border-color: var(--edge); color: var(--soft); }
  .repos { display: grid; gap: 10px; padding: 12px 18px 16px; }
  .repo { border: 1px solid var(--rule); border-radius: 11px; background: #151f2c; overflow: hidden; }
  .repo.failed { border-color: #7a3943; }
  .repo-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; }
  .repo-h > div { min-width: 0; }
  .repo-h h3 { font-size: 13.5px; font-weight: 650; }
  .repo-h small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
  .repo-h small a { color: var(--link); }
  .repo-h code { display: block; margin-top: 3px; font: 11px var(--mono); color: var(--faint); word-break: break-all; }
  .repo-cols { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; border-top: 1px solid var(--rule); }
  .repo-cols > div { padding: 11px 14px 13px; min-width: 0; font-size: 12px; color: var(--soft); }
  .repo-cols > div + div { border-left: 1px solid var(--rule); }
  .repo-cols h4 { margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
  .repo-cols p + p { margin-top: 4px; }
  .repo-cols a, .sha { font-family: var(--mono); font-size: 11.5px; color: var(--link); }
  .repo-cols a.prl, .repo-cols .chk a { font-family: inherit; font-size: 12px; }
  .repo-cols .chk a { color: inherit; }
  .repo-cols .dim { color: var(--muted); font-size: 11.5px; }
  .chk { display: flex; gap: 6px; }
  .chk::before { content: "✓"; color: #78d5aa; font-weight: 700; }
  .chk.x { color: var(--red); }
  .chk.x::before { content: "×"; color: #ff929c; }
  .chk em { font-style: normal; color: var(--faint); }
  .repo-err { margin: 0 14px 12px; padding: 8px 11px; border-radius: 8px; border: 1px solid #7a3943; background: #2a1a20; font-size: 12px; color: #ffd3d8; white-space: pre-wrap; }
  .sub-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--rule); background: #151f2c; font-size: 12px; color: var(--muted); }
  .sub-h b { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-weight: 650; }
  .rowlist > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--rule); }
  .rowlist > div > div { min-width: 0; }
  .rowlist h3 { font-size: 13px; font-weight: 600; color: #e2e9f3; }
  .rowlist small { display: block; font-size: 11.5px; color: var(--muted); }
  .rowlist code { display: block; margin-top: 2px; font: 11px var(--mono); color: var(--faint); word-break: break-all; }
  .rowlist .dl { display: inline-flex; min-height: 32px; align-items: center; margin-right: 12px; font-size: 12px; color: var(--link); }
  .tag { flex: none; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #2c3544; color: var(--soft); white-space: nowrap; }
  .tag.t-green { background: var(--green-wash); color: var(--green); }
  .tag.t-red { background: var(--red-wash); color: var(--red); }
  .tag.t-blue { background: var(--blue-wash); color: var(--blue); }
  .tag.t-amber { background: var(--amber-wash); color: var(--amber); }
  .empty { margin: 12px 18px 16px; padding: 22px 18px; border: 1px dashed #435168; border-radius: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
  .empty b { display: block; margin-bottom: 4px; font-size: 13.5px; color: #fff; font-weight: 650; }

  /* Design */
  .ad { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); gap: 16px; padding: 12px 18px 16px; }
  .shot { position: relative; display: block; border-radius: 9px; border: 1px solid #415066; background: #0f1621; overflow: hidden; aspect-ratio: 16 / 10; }
  .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .shot.none { display: grid; place-items: center; border-style: dashed; color: var(--muted); font-size: 12.5px; }
  .shot .vp { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: #0f1621e6; font: 600 10.5px var(--mono); color: #e3e8f0; }
  .ad-side { display: grid; gap: 12px; align-content: start; }
  .ad-side h3 { font-size: 16px; font-weight: 650; }
  .ad-side p:not(.eyebrow) { font-size: 12.5px; color: var(--muted); }
  .ad-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ad-facts div { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; font-size: 11.5px; color: var(--muted); }
  .ad-facts b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
  .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ad-acts { display: flex; gap: 8px; flex-wrap: wrap; }
  .revs { border-top: 1px solid var(--rule); }
  .revs > .sub-h { border-top: 0; }
  .rev { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--rule); }
  .rev h3 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13.5px; font-weight: 650; }
  .rev small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
  .rev .ra { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .rev .why { font-size: 11.5px; color: var(--faint); }
  .rev.new { background: #172540; box-shadow: inset 3px 0 0 #80acff; }
  .older { border-top: 1px solid var(--rule); }
  .older > summary { display: flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
  .older > summary svg { width: 13px; height: 13px; }
  .older[open] > summary svg { transform: rotate(180deg); }
  .design-skip { display: flex; align-items: center; gap: 12px; margin: 12px 18px 16px; padding: 12px 14px; border: 1px dashed #435168; border-radius: 10px; font-size: 12.5px; color: var(--muted); }
  .design-skip b { display: block; color: #fff; font-weight: 650; font-size: 13px; }
  .design-skip .tag { margin-left: auto; }

  /* Raw output */
  .raw > details + details { border-top: 1px solid var(--rule); }
  .raw summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; font-weight: 600; }
  .raw summary small { font-weight: 400; color: var(--muted); font-size: 12px; }
  .raw summary svg.chev { margin-left: auto; color: var(--muted); }
  .raw details[open] summary svg.chev { transform: rotate(180deg); }
  .raw pre { margin: 0 18px 16px; padding: 12px 14px; max-height: 300px; overflow: auto; border-radius: 9px; border: 1px solid #263346; background: #0f1823; font: 11.5px/1.6 var(--mono); color: #b4c2d6; white-space: pre-wrap; overflow-wrap: anywhere; }

  @media (max-width: 1379px) {
    .life { grid-template-columns: minmax(0, 1fr); }
    .acts { grid-column: 1; grid-row: auto; justify-content: flex-start; }
    .pop { left: 0; right: auto; }
  }
  @media (max-width: 1179px) {
    .rs-grid { grid-template-columns: minmax(0, 1fr); }
    .rs-rail { position: static; order: -1; }
    .rs-rail .facts { grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr); }
    .rs-rail .facts hr { display: none; }
    .ad { grid-template-columns: minmax(0, 1fr); }
    .ad-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ad-side > div:first-child { grid-column: 1 / -1; }
    .repo-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .repo-cols > div:first-child { grid-column: 1 / -1; }
    .repo-cols > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--rule); }
    .repo-cols > div:nth-child(3) { border-top: 1px solid var(--rule); }
  }
  @media (max-width: 767px) {
    .hero-band { height: 70px; }
    .hero-body { padding: 14px 16px 0; }
    .steps li.bad span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .acts > details { flex: 1 1 100%; }
    .acts > details > summary { width: 100%; }
    .acts .hint { display: none; }
    .pop { position: static; width: 100%; max-width: none; margin-top: 8px; }
    .rs-rail .facts { grid-template-columns: 88px minmax(0, 1fr); }
    .card-h, .pipe, .repos { padding-inline: 14px; }
    .card-b { padding-inline: 14px; }
    .ex-who { grid-column: 1 / -1; flex-wrap: wrap; gap: 6px 10px; }
    .ex-who .ttl { flex-basis: 100%; white-space: normal; }
    .ex-end { grid-column: 1 / -1; justify-content: space-between; }
    .ph-head .time { margin-left: 0; flex-basis: 100%; }
    .gate-h .br { flex-basis: 100%; order: 5; }
    .gate-h .sum { margin-left: 0; }
    .wf li { grid-template-columns: 16px minmax(0, 1fr) auto; }
    .wf .wf-lbl { grid-column: 2; grid-row: 2; }
    .wf .tm { grid-column: 3; grid-row: 1; }
    .gate-x { flex-wrap: wrap; }
    .gate-x > div { flex: 1 1 0; min-width: 0; }
    .gate-x .btn { margin-left: 30px; flex: 1 1 100%; }
    .repo-cols { grid-template-columns: minmax(0, 1fr); }
    .repo-cols > div + div { border-left: 0; border-top: 1px solid var(--rule); }
    .ad-side { grid-template-columns: minmax(0, 1fr); }
    .rev { grid-template-columns: 72px minmax(0, 1fr); padding-inline: 14px; }
    .rev .ra { grid-column: 1 / -1; justify-content: flex-start; }
    .rev .ra > .btn, .rev .ra > div { flex: 1; }
    .rev .ra .btn { width: 100%; }
    .qa-h { flex-wrap: wrap; padding-inline: 14px; }
    .qa-h .end { margin-left: 42px; justify-content: flex-start; }
    .findings, .qa-foot { padding-inline: 14px; }
    .restart-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .callout { margin-inline: 14px; }
    .rowlist > div, .sub-h, .raw summary, .older > summary { padding-inline: 14px; }
    .rowlist .copypath { min-height: 44px; }
    .raw pre { margin-inline: 14px; }
    .design-skip { flex-wrap: wrap; }
    .design-skip .tag { margin-left: 0; }
  }
}

@keyframes run-spin { to { transform: rotate(360deg); } }
