/* Shared component styles carried from v4: bento cards (.pb), hero art slots, traced panes, xbow counter overrides. */
/* Phyllis additions on top of the xbow stylesheet (css/xbow.css). Keep this small. */



/* headline letters animate in (same timing feel as the original) */
@keyframes ph-ch { from { opacity: 0; filter: blur(.25em); transform: translateY(.2em); } }
.ph-ch { animation: ph-ch .6s cubic-bezier(.2,.7,.2,1) both; }

/* scroll reveal */
.ph-rv { opacity: 0; transform: translateY(16px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.ph-rv.ph-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ph-ch { animation: none; } .ph-rv { opacity: 1; transform: none; } }


/* Implement grid counter counts to 24 stories (xbow counted to 180) */
@keyframes estate-coverage__estate-count { 0%, 6% { --estate-apps: 0; } 28%, 100% { --estate-apps: 24; } }
@property --estate-apps { syntax: "<integer>"; initial-value: 24; inherits: false; }
/* build card: records counter */
@keyframes loop-panels-module__cWs0Ta__panels-runs { 0%, 4% { --runs: 0; } 21%, to { --runs: 14; } }

/* nav menu icons (ours) */
header [data-state] svg[viewBox="0 0 24 24"] { width: 100%; height: 100%; }
@property --runs { syntax: "<integer>"; inherits: false; initial-value: 14; }

/* ================================================================ Phyllis bento cards (.pb) — native */
.phx-host:not(.hero-finding__back):not(.hero-finding__front) { position: relative; }
.phx-host { container-type: inline-size; }
.pb {
  --bg: #0b0b0c; --card: #111112; --muted: #1d1d1f; --line: #262628; --line2: #333336;
  --fg: #f4f4f5; --fg2: #b4b4b8; --mfg: #78787d; --pfg: #f4f4f5; --ok: #2bb5cb; --ok-bg: rgba(43,181,203,.1);
  font-family: var(--font-geist-sans), ui-sans-serif, sans-serif; font-size: clamp(11px, 2.45cqw, 15px); line-height: 1.4;
  color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 30px 70px -30px rgba(0,0,0,.9);
}
.pb-light {
  --card: #ffffff; --muted: #f0f0f1; --line: #e6e6e8; --line2: #dcdcdf;
  --fg: #0b0b0c; --fg2: #47474c; --mfg: #85858a; --pfg: #0b0b0c; --ok: #027586; --ok-bg: #f1fbd0;
  box-shadow: 0 .25rem 1.25rem rgba(68,77,83,.1);
}
.pb * { box-sizing: border-box; }
.pb i, .pb em { font-style: normal; }
.pb-h { display: flex; align-items: center; gap: .65em; padding: .8em 1em; border-bottom: 1px solid var(--line); font-weight: 500; }
.pb-h b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-h code { font: 400 .92em var(--font-geist-mono), monospace; background: var(--muted); padding: .1em .4em; border-radius: .3em; }
.pb-ic { flex: none; width: 1.7em; height: 1.7em; border-radius: .4em; display: grid; place-items: center; background: var(--muted); color: var(--fg2); }
.pb-ic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-sp { flex: 1; }
.pb-m { font: 400 .85em/1 var(--font-geist-mono), monospace; color: var(--mfg); white-space: nowrap; }
.pb-m .add { color: var(--ok); } .pb-m .del { color: var(--mfg); }
.pb-big { font: 400 2.2em/1 var(--avenue-mono), monospace; letter-spacing: -.05em; display: flex; align-items: baseline; gap: .3em; }
.pb-big small { font: 400 .32em var(--font-geist-mono), monospace; letter-spacing: 0; color: var(--mfg); text-transform: uppercase; }
.pb-st { display: inline-flex; align-items: center; height: 1.75em; padding: 0 .6em; border-radius: .4em; font-size: .85em; font-weight: 600; white-space: nowrap; }
.pb-st.ok { color: var(--ok); background: var(--ok-bg); }
.pb-st.crit { color: var(--card); background: var(--fg); }
.pb-st.high { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.pb-st.med { color: var(--fg2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pb-st.gray { color: var(--mfg); background: var(--muted); }
.pb-btn { display: inline-flex; align-items: center; gap: .4em; height: 2em; padding: 0 .7em; border-radius: .45em; font-size: .88em; font-weight: 600; background: var(--fg); color: var(--card); white-space: nowrap; }
.pb-btn svg { width: .95em; height: .95em; fill: currentColor; }
.pb-score { display: grid; grid-template-columns: 7.6em 1fr; gap: 1.2em; padding: 1.1em 1em 1em; align-items: center; }
.pb-ring { position: relative; width: 7.6em; height: 7.6em; }
.pb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pb-ring circle { fill: none; stroke: var(--muted); stroke-width: 3; }
.pb-ring circle.v { stroke: var(--pfg); stroke-linecap: round; }
.pb-ring > div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.pb-ring b { font-size: 2.1em; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pb-ring small { font-size: .8em; color: var(--mfg); }
.pb-bars { display: grid; gap: .7em; }
.pb-pad { padding: 1.1em 1em; }
.pb-bar { display: grid; grid-template-columns: 8em 1fr 2em; gap: .8em; align-items: center; font-size: .9em; color: var(--fg2); }
.pb-t { height: .4em; border-radius: 1em; background: var(--muted); overflow: hidden; }
.pb-t i { display: block; height: 100%; border-radius: 1em; background: var(--pfg); }
.pb-t i.w { background: var(--mfg); }
.pb-bar em { text-align: right; color: var(--mfg); font-variant-numeric: tabular-nums; }
.pb-fr { display: flex; align-items: center; gap: .8em; padding: .75em 1em; border-top: 1px solid var(--line); }
.pb-h + .pb-fr { border-top: 0; }
.pb-x { flex: 1; min-width: 0; }
.pb-x b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-x small { display: block; font-size: .85em; color: var(--mfg); margin-top: .1em; }
.pb-x small.pb-k { font: 500 .7em var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .2em; }
.pb-n { flex: none; width: 4.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .85em var(--font-geist-mono), monospace; color: var(--mfg); }
.pb-chk { flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); display: grid; place-items: center; color: var(--ok); }
.pb-chk svg { width: .75em; height: .75em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pb-kv span { color: var(--mfg); font-size: .9em; }
.pb-kv b { margin-left: auto; font-weight: 500; text-align: right; }
.pb-kv .ok, .pb-kv b.ok { color: var(--ok); }
.pb-kv b i { margin-left: .5em; font-size: .85em; font-weight: 400; }
.pb-code { font: 400 .86em/1.75 var(--font-geist-mono), monospace; padding: .6em 0; color: var(--fg2); }
.pb-code div { padding: 0 1em; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.pb-code .ln { display: inline-block; width: 1.8em; color: var(--mfg); }
.pb-code .add { background: rgba(255,255,255,.045); } .pb-code .add .ln { color: var(--ok); }
.pb-code .k { color: var(--mfg); } .pb-code .s { color: var(--fg); } .pb-code .f { color: var(--fg); }
.pb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; padding: 1em; }
.pb-tiles span { padding: .65em .7em; border-radius: .5em; border: 1px dashed var(--line2); font: 400 .82em var(--font-geist-mono), monospace; color: var(--mfg); opacity: .7; }
.pb-tiles span.on { border: 1px solid var(--fg); background: var(--card); color: var(--fg); opacity: 1; }

/* slots */
.ph-hero-back { width: 92% !important; left: 2% !important; }
.ph-hero-front { width: 70% !important; left: 30% !important; top: 42% !important; }
.ph-hero-front .pb { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 80px -20px rgba(0,0,0,.95), 0 0 0 6px rgba(255,255,255,.025); }
.phx-trace { display: flex; align-items: center; }
.phx-trace .phx-pane { display: none; width: 100%; }
.phx-trace .phx-pane.on { display: block; animation: phx-in .5s ease both; }
@keyframes phx-in { from { opacity: 0; transform: translateY(8px); } }
.ph-fence { display: flex; align-items: center; }
.ph-fence .pb { width: 100%; }

/* ================================================================ splash of xbow green (only here) */
.ph-splash, [class*="proof-stats-module"][class*="__featured"] [class*="__value"] { color: #2bb5cb !important; }
::selection { background: #2bb5cb; color: #000; }

/* ================================================================ keygraph-influenced sections (.kx) */
.kx { position: relative; background: var(--color-background); color: var(--color-foreground); padding: 120px 0; }
.kx-wrap { width: min(1200px, 100% - 2 * var(--safe, 16px)); margin-inline: auto; position: relative; }
.kx-head { text-align: center; max-width: 820px; margin: 0 auto; }
.kx-head h2 { font-family: var(--avenue-mono); letter-spacing: -.05em; font-weight: 400; margin: 0; }
.kx-head p, .kx-lede { color: var(--color-muted); font-size: 1.125rem; line-height: 1.5; margin: 24px auto 0; max-width: 640px; text-align: center; }
/* isometric stack */
.kx-stage { position: relative; max-width: 760px; margin: 48px auto 0; }
.kx-iso { width: 100%; height: auto; display: block; overflow: visible; }
.kx-plane { fill: none; stroke: #2a2a2c; stroke-width: 1; stroke-dasharray: 2 4; }
.kx-dots { stroke: #3a3a3d; stroke-width: 2.2; stroke-linecap: round; }
.kx-lit { stroke: #d9d9dc; stroke-width: 2.6; stroke-linecap: round; animation: kx-tw 3.6s ease-in-out infinite; }
.kx-lit-top { stroke: #2bb5cb; }
@keyframes kx-tw { 50% { opacity: .55; } }
.kx-spine { stroke: #f4f4f5; stroke-width: 1.2; }
.kx-node circle { fill: #060606; stroke: #f4f4f5; stroke-width: 1.2; }
.kx-node path { fill: none; stroke: #f4f4f5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kx-top circle { fill: #2bb5cb; stroke: #2bb5cb; } .kx-top path { stroke: #060606; stroke-width: 2.4; }
.kx-lab { font: 500 11px var(--font-geist-mono), monospace; letter-spacing: .12em; fill: #f4f4f5; }
.kx-sub { font: 400 10px var(--font-geist-mono), monospace; fill: #78787d; }
.kx-top-lab { fill: #2bb5cb; }
.kx-call { position: absolute; width: 230px; padding: 16px 18px; background: rgba(6,6,6,.85); backdrop-filter: blur(6px); }
.kx-call::before, .kx-call::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(#f4f4f5,#f4f4f5) top left / 12px 1px no-repeat, linear-gradient(#f4f4f5,#f4f4f5) top left / 1px 12px no-repeat,
    linear-gradient(#f4f4f5,#f4f4f5) top right / 12px 1px no-repeat, linear-gradient(#f4f4f5,#f4f4f5) top right / 1px 12px no-repeat,
    linear-gradient(#f4f4f5,#f4f4f5) bottom left / 12px 1px no-repeat, linear-gradient(#f4f4f5,#f4f4f5) bottom left / 1px 12px no-repeat,
    linear-gradient(#f4f4f5,#f4f4f5) bottom right / 12px 1px no-repeat, linear-gradient(#f4f4f5,#f4f4f5) bottom right / 1px 12px no-repeat; }
.kx-call::after { display: none; }
.kx-call b { display: block; font-weight: 500; font-size: 1rem; }
.kx-call span { display: block; margin-top: 6px; color: var(--color-muted); font-size: .875rem; line-height: 1.45; }
.kx-call-l { left: -130px; top: 52%; }
.kx-call-r { right: -130px; top: 30%; }
/* ledger grid with crosshairs */
.kx-ledger { display: grid; margin-top: 64px; border-top: 1px solid #262628; border-left: 1px solid #262628; position: relative; }
.kx-3 { grid-template-columns: repeat(3, 1fr); }
.kx-cell { position: relative; padding: 28px 24px 32px; border-right: 1px solid #262628; border-bottom: 1px solid #262628; }
.kx-cell::before { content: "+"; position: absolute; right: -5px; bottom: -11px; font: 300 14px/1 var(--font-geist-mono), monospace; color: #6b6b70; z-index: 1; }
.kx-ic svg { width: 20px; height: 20px; fill: none; stroke: #f4f4f5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kx-cell h3 { margin: 18px 0 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.kx-cell p { margin: 10px 0 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.5; }
.kx-link { display: inline-block; margin-top: 20px; font: 500 .75rem var(--font-geist-mono), monospace; letter-spacing: .08em; text-transform: uppercase; color: #f4f4f5; }
.kx-link:hover { color: #2bb5cb; }
.kx-num { font: 400 .8125rem var(--font-geist-mono), monospace; color: #78787d; }
.kx-phase h3 { margin-top: 26px; }
.kx-mono { display: block; margin-top: 6px; font: 400 .8125rem var(--font-geist-mono), monospace; color: #9a9a9f; }
.kx-hot .kx-num, .kx-hot .kx-link { color: #2bb5cb; }
.kx-bar { border: 1px solid #262628; padding: 18px; text-align: center; position: relative; }
.kx-bar h2 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.kx-bar::before, .kx-bar::after { content: "+"; position: absolute; top: -10px; font: 300 14px/1 var(--font-geist-mono), monospace; color: #6b6b70; }
.kx-bar::before { left: -5px; } .kx-bar::after { right: -5px; }
/* two-tone statement + particles */
.kx-two { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; max-width: 900px; margin: 0 auto; text-align: center; text-wrap: balance; }
.kx-two span { color: #78787d; }
.kx-particles { position: relative; height: clamp(260px, 36vw, 440px); margin-top: 40px; }
.kx-particles canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kx-tt-sec { padding: 100px 0; }
@media (max-width: 1000px) {
  .kx-3 { grid-template-columns: 1fr; }
  .kx-call { position: relative; left: auto; right: auto; top: auto; width: auto; margin-top: 16px; }
}

/* product-page card parts */
.pb-msg { justify-content: flex-end; }
.pb-msg span { background: var(--muted); padding: .55em .8em; max-width: 80%; font-size: .92em; }
.pb-actions { justify-content: flex-end; gap: .5em; }
.pb-btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.pb-shot { margin: .9em 1em; border: 1px solid var(--line2); background: var(--bg); }
.pb-shot-bar { display: flex; align-items: center; gap: .4em; padding: .5em .7em; border-bottom: 1px solid var(--line); font: 400 .72em var(--font-geist-mono), monospace; color: var(--mfg); }
.pb-shot-bar i { width: .55em; height: .55em; border-radius: 50%; background: var(--line2); }
.pb-shot-bar span { margin-left: .5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-shot-body { padding: 1em; display: grid; gap: .6em; }
.pb-shot-body b { font-weight: 500; font-size: 1.05em; }
.pb-shot-body .f { display: grid; grid-template-columns: 8em 1fr; align-items: center; font-size: .85em; color: var(--fg2); }
.pb-shot-body .f em { font-style: normal; }
.pb-shot-body .f i { border: 1px solid var(--line2); padding: .35em .5em; color: var(--fg); }
.pb-shot-body .f i.req { border-color: var(--ok); color: var(--ok); }
.pb-shot-body .pb-btn { justify-self: start; }
/* product page hero art: one card, centred */
.ph-pg-art { display: grid; place-items: center; height: auto !important; container-type: inline-size; }
.ph-pg-art .ph-cardart { width: 100%; }

.ph-art .ph-cardart { width: min(100%, 520px); margin: 0 auto; }
.pb-code div { text-overflow: clip; }
@media (max-width: 640px) { .pb-code { font-size: .78em; } }
/* adopt cards */
.pb-phases { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pb-phase { padding: .9em 1em 1em; border-right: 1px solid var(--line); display: grid; gap: .3em; align-content: start; }
.pb-phase:last-child { border-right: 0; }
.pb-phase b { font-weight: 500; font-size: 1.05em; }
.pb-phase small { font-size: .82em; color: var(--mfg); }
.pb-phase .pb-n { width: auto; }
.pb-phase.on { background: var(--ok-bg); } .pb-phase.on .pb-n { color: var(--ok); }
.pb-guide { display: grid; gap: 0; }
.pb-gstep { display: grid; grid-template-columns: 2.4em 1fr; gap: .6em; padding: .8em 1em; border-bottom: 1px solid var(--line); }
.pb-gstep b { display: block; font-weight: 500; margin-bottom: .55em; }
.pb-gstep .pb-n { width: auto; }
.pb-shotmini { border: 1px solid var(--line2); background: var(--muted); padding: .55em; display: grid; gap: .35em; }
.pb-shotmini i { display: block; height: .5em; background: var(--line2); width: 70%; }
.pb-shotmini i.w { width: 100%; height: 1.4em; background: var(--card); border: 1px solid var(--line2); }
.pb-shotmini i.s { width: 40%; }
.pb-shotmini i.f { width: 100%; height: 1.1em; background: var(--card); border: 1px solid var(--line2); }
.pb-shotmini i.b { width: 5.5em; height: 1.5em; background: var(--fg); }
.pb-shotmini.crop { justify-items: start; padding: .8em; box-shadow: inset 0 0 0 2px var(--ok); }
.pb-t2 { position: relative; overflow: visible; }
.pb-t2 i { background: var(--line2) !important; }
.pb-t2 b { position: absolute; top: 50%; width: .7em; height: .7em; margin: -.35em 0 0 -.35em; border-radius: 50%; background: var(--fg); }

/* ---- Phyllis illustration set (scripts/v5/art.py): square panels, ribbon connectors, real records ---- */
.pa, .pa-panel { position: relative; border: 1px solid var(--hair-2); background: var(--raised); padding: 20px; font-family: var(--sans); color: var(--ink); text-align: left; }
.pa-loop { border: 0; background: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pa svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pa-x { position: absolute; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--ink-3), var(--ink-3)) 0 5px / 11px 1px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 5px 0 / 1px 11px no-repeat; }
.pa-x.tl { left: -6px; top: -6px; } .pa-x.tr { right: -6px; top: -6px; } .pa-x.bl { left: -6px; bottom: -6px; } .pa-x.br { right: -6px; bottom: -6px; }
.pa-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--hair);
  font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pa-h b { color: var(--ink); font-weight: 500; }
.pa-tag { flex: none; display: inline-flex; align-items: center; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border: 1px solid var(--hair-2); color: var(--ink-2); }
.pa-tag.go { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.pa-tag.hi { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pa [data-s] { opacity: .22; transition: opacity .45s, transform .45s, border-color .45s, background .45s, color .45s; }
.pa [data-s].on { opacity: 1; }
.pa small { display: block; font: 400 11px/1.5 var(--mono); color: var(--ink-3); }
/* ribbon: three parallel hairlines, after the mark */
.pa-tree, .pa-track { --rib: repeating-linear-gradient(var(--rd, 180deg), var(--hair-2) 0 1px, transparent 1px 3px); }

/* run: finding → fix → approved → read back → rescanned */
.pa-find { border: 1px solid var(--hair-2); padding: 14px; }
.pa-find b { display: block; margin: 4px 0 4px; font-size: 15px; font-weight: 500; }
.pa-find span { font-size: 13px; color: var(--ink-3); }
.pa-tree { list-style: none; margin: 0 0 0 24px; padding: 18px 0 0; position: relative; }
.pa-tree::before { content: ""; position: absolute; left: -17px; top: 0; bottom: 26px; width: 7px; --rd: 90deg; background: var(--rib); }
.pa-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.pa-step:last-child { border-bottom: 0; }
.pa-step::before { content: ""; position: absolute; left: -17px; top: calc(50% - 3px); width: 17px; height: 7px; background: var(--rib); }
.pa-box { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--hair-2); color: transparent; }
.pa-step.on .pa-box { border-color: var(--ink); color: var(--ink); }
.pa-step.on:last-child .pa-box { background: var(--accent); border-color: var(--accent); color: #000; }
.pa-tx { flex: 1; min-width: 0; } .pa-tx b { display: block; font-size: 14px; font-weight: 500; }

/* implement: the update set fills — built new or reused */
.pa-count { text-transform: none; letter-spacing: 0; }
.pa-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-rec { border: 1px solid var(--hair); padding: 10px 12px; transform: translateY(4px); }
.pa-rec.on { transform: none; border-color: var(--hair-2); }
.pa-rec b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-rec > span { display: flex; align-items: center; gap: 5px; margin-top: 6px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pa-rec.re > span { color: var(--accent-ink); }
.pa-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--hair-2); font-size: 13px; }

/* upgrade: a ribbon track from dev to UAT; production stays yours */
.pa-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 6px 0 18px; }
.pa-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 11px; height: 7px; background: var(--rib); }
.pa-track::after { content: ""; position: absolute; left: 10%; top: 13px; width: 64px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: pa-run 3.2s linear infinite; }
@keyframes pa-run { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(min(60cqw, 330px)); opacity: 0; } }
.pa-upg { container-type: inline-size; }
.pa-node { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.pa-sq { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--raised); color: transparent; }
.pa-node.on .pa-sq { border-color: var(--ink); color: var(--ink); }
.pa-node b { font: 500 11px var(--mono); color: var(--ink); } .pa-node small { font-size: 10px; text-align: center; }
.pa-node.prod { opacity: .7; } .pa-node.prod .pa-sq { border-style: dashed; color: var(--ink-3); } .pa-node.prod b { color: var(--ink-3); }
.pa-cards { position: relative; min-height: 96px; }
.pa-card { position: absolute; inset: 0; display: grid; align-content: start; gap: 6px; border: 1px solid var(--hair-2); padding: 14px; justify-items: start; }
.pa .pa-card, .pa .pa-card.on { opacity: 0; }
.pa .pa-card.on:not(:has(~ .pa-card.on)) { opacity: 1; }
.pa-card b { font-size: 15px; font-weight: 500; }

/* loop: build → approve → verify */
.pa-panel { min-height: 372px; display: flex; flex-direction: column; }
.pa-lanes { display: grid; }
.pa-lane { display: grid; grid-template-columns: 58px minmax(0, 1fr) 14px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--hair); }
.pa-lane b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-lane > span { color: var(--ink-3); } .pa-lane.on > span { color: var(--accent-ink); }
.pa-panel .pa-foot { margin-top: auto; }
.pa-ask > b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.pa-ask ol { list-style: none; margin: 14px 0 0; padding: 0; }
.pa-ask li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.pa-ask li span, .pa-ask li small { font: 400 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pa-btns { display: flex; gap: 8px; margin-top: 18px; }
.pa-btns i { font-style: normal; font: 500 12px var(--mono); padding: 9px 14px; border: 1px solid var(--hair-2); color: var(--ink); }
.pa .pa-btns i.yes[data-s] { opacity: 1; background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pa .pa-btns i.yes.on { background: var(--accent); border-color: var(--accent); color: #000; }
.pa-log { list-style: none; margin: 0; padding: 0; }
.pa-log li { display: grid; grid-template-columns: 46px 1fr 14px; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.pa-log li > span { color: var(--accent-ink); }
@media (max-width: 900px) { .pa-loop { grid-template-columns: 1fr; } .pa-panel { min-height: 0; } }
@media (max-width: 520px) { .pa-recs { grid-template-columns: 1fr; } .pa-node small { display: none; } }
@media (prefers-reduced-motion: reduce) { .pa-track::after { display: none; } }
.pa-node b { white-space: nowrap; }
@media (max-width: 520px) { .pa-h > span + span:not(.pa-tag):not(.pa-count) { display: none; } .pa-node b { font-size: 9.5px; } .pa { padding: 16px; } }
