/* CyberXYZ: product pages (VS Code extension, XYZ Scanner)
   Loaded after styles.css, product.css and tokens.css.
   - Page chrome (headings, bands, diagrams, captions) uses the brand tokens (--x-*).
   - Product mock-ups use the real product's own colours, never the brand's:
       .vs   VS Code, Default Light Modern      (--vsl-*)
       .tmw  a light terminal, VS Code ANSI      (--tml-*, --ansi-*)
       .app  the CyberXYZ dashboard              (--app-*)
   Motion: figures.js (scene engine) and the MOTION block at the end. */

:root {
  --vs-err: var(--vsl-err);
  --vs-warn: var(--vsl-warn);
}

/* ─── type and rhythm ───────────────────────────────────────────── */
.pp-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.pp-sec { padding: clamp(72px, 9vw, 132px) 0; }
.pp-sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.pp-h2 {
  font-family: var(--x-font-display); font-weight: var(--x-w-bold);
  font-size: var(--x-text-h2); line-height: var(--x-lh-h2); letter-spacing: var(--x-ls-h2);
  margin: 18px 0 0; color: var(--x-ink-900);
}
.pp-h3 {
  font-family: var(--x-font-display); font-weight: var(--x-w-bold);
  font-size: var(--x-text-h3); line-height: var(--x-lh-h3); letter-spacing: var(--x-ls-h3);
  margin: 18px 0 0; color: var(--x-ink-900);
}
.pp-lede { font-size: var(--x-text-lede); line-height: var(--x-lh-lede); color: var(--x-ink-500); max-width: 56ch; margin: 16px 0 0; }
.pp-more { display: inline-block; margin-top: 18px; font-family: var(--x-font-mono); font-size: 13px; color: var(--x-blue-500); border-bottom: 1px solid var(--x-blue-200); padding-bottom: 2px; }
.pp-more:hover { border-color: var(--x-blue-500); }
/* only the weights assets/fonts.css loads: DM Sans 400/500/600, JetBrains Mono 400/500/700 */
:where(.pp-hero, .pp-sec, .pp-sec--tight, .pp-band) :where(b, strong) { font-weight: var(--x-w-semibold); }
:where(.pp-hero, .pp-sec, .pp-sec--tight, .pp-band) .fig-caption { font-weight: var(--x-w-medium); }
/* captions must pass AA: ink-500, not the site's ink-400 */
:where(.pp-hero, .pp-sec, .pp-sec--tight, .pp-band) .fig-caption { color: var(--x-ink-500); }
:where(.pp-hero, .pp-sec, .pp-sec--tight, .pp-band) .frame__cap { color: var(--x-ink-500); font-size: var(--x-text-caption); line-height: var(--x-lh-caption); }
:where(.pp-sec, .pp-sec--tight, .pp-hero, .pp-band) :not(pre):not(.tm__body *):not(.vs *):not(.app *):not(.mini__fig *) > code {
  font-size: .88em; background: var(--x-orange-50); border: 1px solid var(--x-orange-200);
  color: var(--x-ink-700); border-radius: 6px; padding: 1px 6px;
}
:where(.pp-sec, .pp-hero, .pp-band) a:focus-visible, :where(.pp-sec, .pp-hero, .pp-band) button:focus-visible { outline: 2px solid var(--x-blue-500); outline-offset: 3px; border-radius: 6px; }
.pp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: end; margin-bottom: 40px; }
.pp-head .pp-lede { margin: 0; }
@media (max-width: 900px) { .pp-head { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ─── hero ─────────────────────────────────────────────────────── */
.pp-hero { position: relative; overflow: hidden; }
.pp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 85% 10%, var(--x-orange-100) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 5% 95%, var(--x-blue-100) 0%, transparent 60%);
}
.pp-hero__grid {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 2vw, 32px) clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.pp-hero__copy, .pp-hero__art { min-width: 0; }
.pp-hero__art { position: relative; }
.pp-hero__title {
  font-family: var(--x-font-display); font-weight: var(--x-w-black);
  font-size: var(--x-text-h1); line-height: var(--x-lh-h1); letter-spacing: var(--x-ls-h1);
  margin: 20px 0 0; color: var(--x-ink-900);
}
.pp-hero__title em, .pp-band__title em { font-style: italic; color: var(--x-orange-600); background: var(--x-brand-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.pp-hero__sub { margin: 22px 0 0; font-size: var(--x-text-lede); line-height: var(--x-lh-lede); color: var(--x-ink-500); max-width: 40ch; }
.pp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pp-hero__eco { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--x-orange-200); flex-wrap: wrap; }
.pp-hero__eco img { width: 26px; height: 26px; }
.pp-hero__eco span { font-family: var(--x-font-mono); font-size: var(--x-text-caption); color: var(--x-ink-500); }
@media (max-width: 1200px) {
  .pp-hero__grid { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); padding-left: var(--gutter); }
  .pp-hero__sub { max-width: 56ch; }
}
.pp-hero--stack .pp-hero__grid { grid-template-columns: minmax(0, 1fr); padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); row-gap: clamp(28px, 4vw, 44px); }
.pp-hero--stack .pp-hero__copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-content: start; }
.pp-hero--stack .pp-hero__copy > .eyebrow { grid-column: 1 / -1; justify-self: start; }
.pp-hero--stack .pp-hero__title { grid-column: 1; grid-row: 2 / span 4; align-self: start; }
.pp-hero--stack .pp-hero__copy > :not(.eyebrow):not(.pp-hero__title) { grid-column: 2; }
.pp-hero--stack .pp-hero__sub { margin-top: 24px; }
@media (max-width: 1000px) {
  .pp-hero--stack .pp-hero__copy { grid-template-columns: minmax(0, 1fr); }
  .pp-hero--stack .pp-hero__copy > * { grid-column: 1 !important; grid-row: auto !important; }
}

/* ════════════════════════════════════════════════════════════════════
   VS CODE with GitHub Light Default (real theme colours; brand never appears here)
   ════════════════════════════════════════════════════════════════════ */
.vs {
  --row: 22px;
  background: var(--vsl-editor-bg); color: var(--vsl-fg);
  border: 1px solid #d6d6d6; border-radius: 10px; overflow: hidden;
  font: 13px/1.4 var(--x-font-body);
  box-shadow: var(--x-shadow-lg);
  display: grid;
  grid-template-columns: 48px minmax(0, 300px) minmax(0, 1fr);
  grid-template-rows: 34px minmax(0, 1fr) 22px;
  grid-template-areas: "title title title" "act side main" "status status status";
  min-height: 520px;
}
.pp-hero .vs { min-height: 610px; }
.vs__title { grid-area: title; background: var(--vsl-chrome-bg); border-bottom: 1px solid var(--vsl-border); display: flex; align-items: center; padding: 0 12px; gap: 12px; }
.vs__title .frame__dots i { width: 12px; height: 12px; }
.vs__title-t { flex: 1; text-align: center; font-size: 12px; color: var(--vsl-desc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 50px; }
.vs__act { grid-area: act; background: var(--vsl-chrome-bg); border-right: 1px solid var(--vsl-border); display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.vs__act i { width: 48px; height: 48px; display: grid; place-items: center; color: var(--vsl-act-inactive); position: relative; }
.vs__act i svg { width: 24px; height: 24px; }
.vs__act i.is-on { color: var(--vsl-act-fg); }
.vs__act i.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--vsl-active-border); }
.vs__badge { position: absolute; right: 8px; bottom: 8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--vsl-accent); color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.vs__side { grid-area: side; background: var(--vsl-side-bg); border-right: 1px solid var(--vsl-border); min-width: 0; overflow: hidden; }
.vs__side-h { height: 35px; display: flex; align-items: center; padding: 0 12px 0 20px; font-size: 11px; color: var(--vsl-fg); letter-spacing: .02em; }
.vs__pane-h { height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; font-size: 11px; font-weight: 700; color: var(--vsl-fg); border-top: 1px solid var(--vsl-border); }
.vs__pane-h .vs__cnt { margin-left: auto; background: var(--vsl-badge-bg); color: var(--vsl-badge-fg); border-radius: 9px; font-size: 10px; font-weight: 600; padding: 0 6px; line-height: 16px; }
.vs__chev { width: 16px; height: 16px; flex: none; color: var(--vsl-fg); }
.vs__tree { list-style: none; margin: 0; padding: 0; }
.vs__tree li { height: var(--row); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; padding-right: 8px; font-size: 13px; }
.vs__tree li.is-sel { background: var(--vsl-select-bg); box-shadow: inset 0 0 0 1px var(--vsl-accent); }
.vs__tree li b { font-weight: 400; color: var(--vsl-fg); flex: none; }
.vs__tree li span.d { color: var(--vsl-desc); font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-left: 2px; }
.vs__tree li .ic { width: 16px; height: 16px; flex: none; }
.ind1 { padding-left: 8px; } .ind2 { padding-left: 24px; } .ind3 { padding-left: 40px; } .ind4 { padding-left: 56px; }
/* icon colours are the ThemeColors the extension asks for (viewItems.ts) */
.c-err { color: var(--vsl-error-fg); } .c-kev { color: var(--vsl-error-fg); } .c-warn { color: var(--vsl-warn); }
.c-ok { color: var(--vsl-pass); } .c-dim { color: var(--vsl-fg); } .c-blue { color: var(--vsl-const); } .c-info { color: var(--vsl-info); }

.vs__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; position: relative; }
.vs__tabs { height: 35px; background: var(--vsl-tabs-bg); display: flex; border-bottom: 1px solid var(--vsl-border); }
.vs__tab { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; color: var(--vsl-desc); border-right: 1px solid var(--vsl-border); white-space: nowrap; }
.vs__tab.is-on { background: var(--vsl-editor-bg); color: var(--vsl-fg); box-shadow: inset 0 2px 0 var(--vsl-active-border); margin-bottom: -1px; }
.vs__tab .jsn { color: #cbcb41; font-weight: 700; }
.vs__crumbs { height: 22px; display: flex; align-items: center; padding: 0 16px; font-size: 12px; color: var(--vsl-desc); gap: 6px; }
.vs__code { font: 13px/20px var(--x-font-mono); padding: 2px 0 16px; position: relative; flex: 1; }
.vs__ln { display: flex; white-space: pre; }
.vs__ln > i { width: 46px; flex: none; text-align: right; padding-right: 18px; color: var(--vsl-ln); font-style: normal; }
.vs__ln.is-cur { background: var(--vsl-line-hl); }
.vs__ln.is-cur > i { color: var(--vsl-ln-active); }
.k { color: var(--vsl-key); } .s { color: var(--vsl-str); } .p { color: var(--vsl-fg); } .n { color: var(--vsl-num); }
.sq { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.sq--err { text-decoration-color: var(--vsl-err); }
.sq--warn { text-decoration-color: var(--vsl-warn); }

.vs__hover {
  max-height: calc(100% - 240px); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
  position: absolute; left: 70px; top: 224px; width: min(430px, calc(100% - 84px));
  background: var(--vsl-widget-bg); border: 1px solid var(--vsl-widget-border); border-radius: 6px;
  box-shadow: 0 0 8px 2px var(--vsl-widget-shadow);
  font-family: var(--x-font-body); font-size: 13px; line-height: 1.45; color: var(--vsl-fg); padding: 8px 12px 10px;
  z-index: 2;
}
.vs__hover h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--vsl-fg); display: flex; gap: 6px; align-items: center; }
.vs__hover h5 { margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: var(--vsl-fg); }
.vs__hover blockquote { margin: 0 0 8px; padding: 2px 0 2px 10px; border-left: 3px solid var(--vsl-border); }
.vs__hover blockquote p { margin: 2px 0; }
.vs__hover p { margin: 4px 0; }
.vs__hover ul { margin: 2px 0 6px; padding-left: 18px; }
.vs__hover hr { border: 0; border-top: 1px solid var(--vsl-border); margin: 8px 0; }
.vs__hover code { font: 12px var(--x-font-mono); background: rgba(175,184,193,.2); padding: 0 4px; border-radius: 3px; border: 0; color: var(--vsl-fg); }

.vs__status { grid-area: status; background: var(--vsl-chrome-bg); border-top: 1px solid var(--vsl-border); display: flex; align-items: stretch; font-size: 12px; color: var(--vsl-desc); white-space: nowrap; overflow: hidden; }
.vs__status > span { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.vs__status .grow { flex: 1; }
.vs__status .xyz { background: var(--vsl-status-err-bg); color: #fff; }   /* statusBarItem.errorBackground: the extension's own choice */
.vs__status svg { width: 14px; height: 14px; }

.vs--pane { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "title title" "act side" "status status"; min-height: 0; }
.vs--pane .vs__side { border-right: 0; }
.vs--fix { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "title title" "act main" "status status"; min-height: 360px; }
.vs--fix .vs__code { opacity: .45; }
/* the stock quick pick */
.qp {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: min(700px, calc(100% - 24px));
  background: var(--vsl-widget-bg); border: 1px solid var(--vsl-border); border-radius: 6px;
  box-shadow: 0 0 8px 2px var(--vsl-widget-shadow); z-index: 3; overflow: hidden; color: var(--vsl-fg);
}
.qp__title { text-align: center; font-size: 12px; color: var(--vsl-fg); padding: 6px 10px 2px; }
.qp__input { display: flex; align-items: center; gap: 6px; margin: 4px 6px 6px; }
.qp__in { flex: 1; min-width: 0; background: var(--vsl-editor-bg); border: 1px solid var(--vsl-accent); border-radius: 6px; padding: 4px 6px; font-size: 13px; color: #767676; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp__ok { background: var(--vsl-button); color: #fff; border-radius: 6px; padding: 4px 11px; font-size: 13px; flex: none; }
.qp__sep { display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px; font-size: 12px; color: var(--vsl-picker-fg); }
.qp__sep::after { content: ""; flex: 1; border-top: 1px solid var(--vsl-border); }
.qp__item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 4px 12px; }
.qp__item.is-focus { background: var(--vsl-select-bg); box-shadow: inset 0 0 0 1px var(--vsl-accent); }
.qp__box { width: 16px; height: 16px; border: 1px solid var(--vsl-input-border); border-radius: 3px; background: var(--vsl-side-bg); margin-top: 2px; display: grid; place-items: center; }
.qp__box.is-on::after { content: ""; width: 8px; height: 4px; border: 1.6px solid var(--vsl-fg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); transition: opacity .2s ease; }
.qp__l { font-size: 13px; color: var(--vsl-fg); display: flex; gap: 6px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.qp__l .desc { color: var(--vsl-desc); font-size: 12px; }
.qp__l .flag { font-size: 13px; display: inline-flex; align-items: center; gap: 3px; color: var(--vsl-fg); }
.qp__d { font-size: 12px; color: var(--vsl-desc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .vs { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 30px auto auto 22px; grid-template-areas: "title title" "act side" "act main" "status status"; min-height: 0; font-size: 12px; }
  .pp-hero .vs { min-height: 0; }
  .vs__act i { width: 40px; height: 42px; }
  .vs__act i svg { width: 20px; height: 20px; }
  .vs__side { border-right: 0; border-bottom: 1px solid var(--vsl-border); }
  .vs__title-t { padding-right: 0; font-size: 11px; }
  .vs__code { font-size: 11.5px; line-height: 19px; overflow: hidden; }
  .vs__ln > i { width: 30px; padding-right: 10px; }
  .vs__hover { position: relative; left: auto; top: auto; width: auto; margin: 6px 8px 10px 30px; max-height: none; -webkit-mask-image: none; mask-image: none; }
  .vs__status .opt { display: none; }
  .vs--fix { grid-template-areas: "title title" "act main" "status status"; grid-template-rows: 30px auto 22px; }
  .vs--fix .vs__code { display: none; }
  .vs--fix .qp { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 8px; }
  .vs--pane { grid-template-rows: 30px auto 22px; grid-template-areas: "title title" "act side" "status status"; }
  .qp__d { white-space: normal; }
}

/* ════════════════════════════════════════════════════════════════════
   LIGHT TERMINAL: macOS window chrome, VS Code light ANSI palette
   ════════════════════════════════════════════════════════════════════ */
.tmw { background: var(--tml-bg); color: var(--tml-fg); border: 1px solid #c9c9c9; border-radius: 10px; overflow: hidden; box-shadow: 0 22px 50px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06); }
.tmw__bar { position: relative; height: 30px; display: flex; align-items: center; padding: 0 12px; background: linear-gradient(#f2f2f2, var(--tml-bar)); border-bottom: 1px solid var(--tml-bar-line); }
.tmw__bar .frame__dots i { width: 12px; height: 12px; }
.tmw__title { position: absolute; left: 70px; right: 70px; text-align: center; font: 500 12px/30px var(--x-font-body); color: var(--tml-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm__body { font: 12.5px/1.5 var(--x-font-mono); padding: 12px 14px 16px; overflow-x: auto; white-space: pre; tab-size: 4; background: var(--tml-bg); color: var(--tml-fg); }
.tm__body::-webkit-scrollbar { height: 8px; } .tm__body::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 4px; }
.tm__body .pr, .tm__body .cm, .tm__body .rl { color: var(--tml-fg); font-weight: 400; }
.tm__body .dm { color: var(--ansi-bright-black); }
.tm__body .ok { color: var(--ansi-green); }
.tm__body .bl { color: var(--ansi-red); font-weight: 700; }
.tm__body .al { color: var(--ansi-blue); }
.tm__body .wa { color: var(--ansi-yellow); }
.tm__body .hd { color: var(--tml-fg); font-weight: 700; }
.tmw--sm .tm__body { font-size: 11.5px; }
.term--anim .term__out { opacity: 0; transition: opacity .25s ease; }
.term--anim .term__out.is-shown { opacity: 1; }
.tm__body .term__line { display: block; min-height: 1em; font: inherit; line-height: inherit; color: inherit; white-space: pre; gap: 0; }
.tm__body .term__cmd { color: var(--tml-fg); }
@media (max-width: 600px) {
  .tm__body { font-size: 10.5px; padding: 12px; }
  .tmw--sm .tm__body { font-size: 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   CYBERXYZ DASHBOARD (app.cyberxyz.io), rebuilt from its components
   Fonts approximate Geist / Geist Mono with the site's DM Sans / JetBrains Mono.
   ════════════════════════════════════════════════════════════════════ */
.app { background: linear-gradient(160deg, #fdf6f2 0%, #f6f7fb 60%); border: 1px solid #d9d9e3; border-radius: 12px; overflow: hidden; box-shadow: var(--x-shadow-lg); color: var(--app-ink); font-family: var(--x-font-body); }
.app__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #f3f3f6; border-bottom: 1px solid #e3e3ea; }
.app__bar .frame__dots i { width: 11px; height: 11px; }
.app__url { flex: 1; min-width: 0; font: 12px var(--x-font-mono); color: var(--app-gray-500); background: #fff; border: 1px solid #e3e3ea; border-radius: 7px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__body { padding: 16px; }
.app__kicker { font: 700 10.5px var(--x-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--app-muted); }
.app__muted { color: var(--app-muted); }
.app__pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: inset 0 0 0 1px; }
.app__pill svg { width: 13px; height: 13px; }
.app__pill--ok { background: var(--x-success-50); color: var(--x-success-700); box-shadow: inset 0 0 0 1px var(--x-success-200); }
.app__pill--warn { background: var(--x-warning-50); color: var(--x-warning-700); box-shadow: inset 0 0 0 1px var(--x-warning-200); }
.app__pill--bad { background: var(--x-danger-50); color: var(--x-danger-700); box-shadow: inset 0 0 0 1px var(--x-danger-200); }
/* the xyz scan card (ScanCard.tsx) */
.appcard { position: relative; background: var(--app-card-bg); border: 1px solid var(--app-card-border); box-shadow: var(--app-card-shadow); border-radius: 16px; overflow: hidden; background-color: #fff; }
.appcard__rule { position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 2px 2px; }
.appcard__in { padding: 16px 16px 12px; }
.appcard__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.appcard__dot { width: 6px; height: 6px; border-radius: 50%; }
.appcard__type { font: 700 10.5px var(--x-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--app-ink); }
.appcard__eco { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.appcard__eco img { width: 14px; height: 14px; }
.appcard__os { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--app-line); font-size: 10px; font-weight: 500; color: var(--app-muted); }
.appcard__row { display: flex; align-items: flex-start; gap: 12px; }
.appcard__big { font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.appcard__noun { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--app-muted); margin-left: 8px; }
.appcard__cmd { font: 11px var(--x-font-mono); color: var(--app-muted); margin-top: 14px; }
.appcard__sect { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--app-line); }
.appcard__machine { font-size: 13px; font-weight: 600; margin-top: 4px; }
.appcard__foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--app-line); font-size: 11.5px; color: var(--app-muted); }
.appcard__av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #2e2eff; background: rgba(46,46,255,.14); box-shadow: inset 0 0 0 1px rgba(46,46,255,.3); }
.appcard__foot b { color: var(--app-ink); font-weight: 500; }
/* the machines table row (machines/page.tsx) */
.appm { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--app-line); font-size: 13px; }
.appm th { background: rgba(0,0,0,.03); text-align: left; padding: 9px 14px; font-size: 11px; font-weight: 600; color: var(--app-gray-500); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.appm td { padding: 11px 14px; border-top: 1px solid var(--app-gray-100); vertical-align: top; color: var(--app-gray-600); }
.appm .nm { font-weight: 600; color: var(--app-gray-900); display: flex; align-items: center; gap: 8px; }
.appm .nm svg { width: 16px; height: 16px; color: #2e2eff; }
.appm .sm { font-size: 12px; color: var(--app-gray-500); margin-top: 4px; line-height: 1.45; }
.appm .sm .x { color: #dc2626; font-weight: 600; }
.appm .note { font-size: 12px; color: var(--x-warning-700); margin-top: 2px; }
.appm .mono { font-family: var(--x-font-mono); font-size: 12px; }
.appm .shield { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fef3c7; color: var(--x-warning-700); }
.appm .shield svg { width: 12px; height: 12px; }
@media (max-width: 760px) { .appm th:nth-child(n+4), .appm td:nth-child(n+4) { display: none; } }

/* ─── layout helpers ───────────────────────────────────────────── */
.pp-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pp-show--rev { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
.pp-show--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-show__tell p { color: var(--x-ink-500); font-size: var(--x-text-body); line-height: 1.55; margin: 14px 0 0; }
@media (max-width: 1020px) { .pp-show, .pp-show--rev, .pp-show--half { grid-template-columns: minmax(0, 1fr); align-items: start; } .pp-show .pp-show__tell { order: -1; } }
.pp-pair { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: 44px; }
.pp-pair--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-pair--fix { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); margin-top: 0; }
.pp-pair--fix .tm__body { font-size: 10.5px; }
.pp-pair__note { margin: 14px 2px 0; font-size: var(--x-text-small); color: var(--x-ink-500); line-height: var(--x-lh-small); }
.pp-pair__note b { color: var(--x-ink-900); font-weight: 600; }
@media (max-width: 1020px) { .pp-pair, .pp-pair--even, .pp-pair--fix { grid-template-columns: minmax(0, 1fr); } }

/* ─── full-bleed brand band ─────────────────────────────────────── */
.pp-band {
  position: relative;
  background:
    radial-gradient(ellipse 50% 90% at 92% 10%, var(--x-orange-100) 0%, transparent 60%),
    radial-gradient(ellipse 50% 90% at 0% 100%, var(--x-blue-100) 0%, transparent 60%),
    var(--x-orange-50);
  border-bottom: 1px solid var(--x-orange-200);
}
.pp-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--x-brand-gradient); }
.pp-band__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pp-band__title { font-family: var(--x-font-display); font-weight: var(--x-w-black); letter-spacing: var(--x-ls-display); font-size: var(--x-text-display); line-height: var(--x-lh-display); margin: 18px 0 0; }
.pp-band__title em { display: block; width: fit-content; }
@media (max-width: 1100px) { .pp-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--x-brand-gradient); }
.pp-band__grid { grid-template-columns: minmax(0, 1fr); } }

/* ════════════════════════════════════════════════════════════════════
   FIGURE: the Issues view re-sorting (a stock VS Code pane)
   ════════════════════════════════════════════════════════════════════ */
.rank { background: var(--vsl-side-bg); border: 1px solid #d6d6d6; border-radius: 10px; box-shadow: var(--x-shadow-lg); overflow: hidden; color: var(--vsl-fg); font: 13px/1.4 var(--x-font-body); }
.rank__bar { display: flex; align-items: center; gap: 6px; height: 35px; padding: 0 12px 0 20px; font-size: 11px; letter-spacing: .02em; border-bottom: 1px solid var(--vsl-border); }
.rank__state { margin-left: auto; font-size: 11px; color: var(--vsl-desc); letter-spacing: 0; display: inline-flex; gap: 6px; align-items: center; }
.rank__state svg { width: 14px; height: 14px; animation: spin 1.2s linear infinite; }
.rank.is-sorted .rank__state svg { animation: none; opacity: 0; }
.rank__pane { height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; font-size: 11px; font-weight: 700; }
.rank__pane .vs__cnt { margin-left: auto; color: var(--vsl-badge-fg); background: var(--vsl-badge-bg); border-radius: 9px; font-size: 10px; padding: 0 6px; line-height: 16px; }
.rank__list { list-style: none; margin: 0; padding: 0 0 10px; position: relative; }
.rank__row { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px 0 8px; white-space: nowrap; overflow: hidden; transition: transform .6s var(--x-ease-out), opacity .4s ease; will-change: transform; }
.rank__row:first-child { background: var(--vsl-select-bg); box-shadow: inset 0 0 0 1px var(--vsl-accent); }
.rank__row .vs__chev { color: var(--vsl-fg); }
.rank__row .ic { width: 16px; height: 16px; flex: none; }
.rank__row b { font-weight: 400; flex: none; }
.rank__row span.d { color: var(--vsl-desc); font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-left: 2px; }
.rank__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-family: var(--x-font-mono); font-size: var(--x-text-caption); color: var(--x-ink-500); }
.rank__legend b { color: var(--x-orange-700); font-weight: 700; margin-right: 4px; }

/* ════════════════════════════════════════════════════════════════════
   FIGURES: three small editor figures (stock Light Modern)
   ════════════════════════════════════════════════════════════════════ */
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1000px) { .minis { grid-template-columns: minmax(0, 1fr); } }
.mini h3 { font-family: var(--x-font-display); font-weight: var(--x-w-bold); font-size: var(--x-text-h4); letter-spacing: var(--x-ls-h4); margin: 16px 0 6px; line-height: var(--x-lh-h4); }
.mini p { font-size: var(--x-text-small); color: var(--x-ink-500); line-height: 1.55; margin: 0; }
.mini__fig { background: var(--vsl-editor-bg); border: 1px solid #d6d6d6; border-radius: 8px; box-shadow: var(--x-shadow); padding: 0 0 14px; min-height: 232px; font: 12px/1.7 var(--x-font-mono); color: var(--vsl-fg); position: relative; overflow: hidden; }
.mini__fig > :not(.mini__file) { margin-left: 14px; margin-right: 14px; }
.mini__file { display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; font: 12px/34px var(--x-font-body); color: var(--vsl-fg); background: var(--vsl-tabs-bg); border-bottom: 1px solid var(--vsl-border); padding: 0 12px; margin-bottom: 10px; }
.mini__file span:last-child { color: var(--vsl-desc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtree { list-style: none; padding: 0; }
.mtree li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtree .t1 { padding-left: 14px; } .mtree .t2 { padding-left: 28px; }
.mtree .flag { color: var(--vsl-warn); }
.mtree .ok { color: var(--vsl-pass); }
.mtree .blk { color: var(--vsl-error-fg); }
.mhover { position: relative; margin-top: 8px; background: var(--vsl-widget-bg); border: 1px solid var(--vsl-widget-border); border-radius: 4px; box-shadow: 0 0 8px 2px var(--vsl-widget-shadow); padding: 8px 10px; font: 12.5px/1.5 var(--x-font-body); }
.mhover b { font-weight: 600; }
.mhover code { font: 11.5px var(--x-font-mono); background: rgba(175,184,193,.2); padding: 0 3px; border-radius: 3px; }
.mclock { font: 11px/34px var(--x-font-body); color: var(--vsl-desc); flex: none; }
.mclock b { color: var(--vsl-fg); font-weight: 600; }
.mback { margin-top: 10px; padding: 6px 10px; border: 1px solid var(--vsl-border); border-left: 3px solid var(--vsl-warn); border-radius: 3px; background: var(--vsl-bar-bg); font: 12px/1.5 var(--x-font-body); }

/* ════════════════════════════════════════════════════════════════════
   FIGURE: the proxy, live (pipetree language, brand diagram)
   ════════════════════════════════════════════════════════════════════ */
.pipe__out.note { color: var(--x-blue-500); background: var(--x-blue-100); }
.pipe__out.alert { color: var(--x-blue-500); background: var(--x-blue-100); }
.pipe__node--off { background: var(--x-paper-2) !important; border: 1px dashed var(--x-ink-400) !important; color: var(--x-ink-500) !important; text-decoration: line-through; }
.pipe__node--engine { background: var(--x-orange-100) !important; border-color: var(--x-orange-500) !important; color: var(--x-ink-900) !important; font-weight: 700; }  /* ink text: orange on its tint was 3.2:1 */
.pipetree--wide .pipe__job { flex-basis: 150px; }
.pipetree--cmd .pipe__job { flex: 0 0 230px; }
.pipetree--cmd .pipe__job b { font-size: 12px; white-space: normal; }
.pipetree--cmd .pipe__job span { white-space: normal; color: var(--x-ink-500); }
.pipe__reason { display: block; font-family: var(--x-font-mono); font-size: 10.5px; font-weight: 500; color: var(--x-danger-700); margin-top: 2px; }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap > :not(:first-child) { visibility: hidden; }
.is-live .swap > * { visibility: visible; }
.pipetree__source-logos img { object-fit: contain; }
.engine-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: flex-end; font-family: var(--x-font-mono); font-size: 11px; }
.engine-note span { background: var(--x-orange-50); border: 1px solid var(--x-orange-200); border-radius: 999px; padding: 4px 10px; color: var(--x-ink-700); }

/* ════════════════════════════════════════════════════════════════════
   FIGURE: the always-on agent loop, ending on the Machines page
   ════════════════════════════════════════════════════════════════════ */
.agent { background: var(--x-white); border: 1px solid var(--x-line); border-radius: var(--x-radius-lg); box-shadow: var(--x-shadow); padding: clamp(20px, 3vw, 32px); }
.agent__track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.agent__rail { position: absolute; left: 4%; right: 4%; top: 21px; height: 2px; background: var(--x-line); border-radius: 2px; overflow: hidden; }
.agent__rail i { position: absolute; inset: 0; background: var(--x-orange-500); transform-origin: left center; transform: scaleX(1); }
.agent__st { position: relative; text-align: center; }
.agent__dot { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: var(--x-white); border: 2px solid var(--x-orange-500); display: grid; place-items: center; color: var(--x-orange-700); position: relative; z-index: 1; transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s var(--x-ease-out); }
.agent__dot svg { width: 20px; height: 20px; }
.agent__st b { display: block; font-family: var(--x-font-mono); font-size: var(--x-text-caption); font-weight: var(--x-w-bold); color: var(--x-ink-900); margin-top: 12px; }
.agent__st span { display: block; font-size: 13.5px; color: var(--x-ink-500); line-height: 1.4; margin-top: 4px; }
.agent__st.is-fail .agent__dot { border-color: var(--x-danger-600); color: var(--x-danger-700); }
.agent__lands { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--x-line); }
.agent__lands .fig-caption { margin-bottom: 10px; }
@media (max-width: 900px) {
  .agent__track { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .agent__rail { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .agent__rail i { transform-origin: center top; }
  .agent__st { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; text-align: left; align-items: center; }
  .agent__dot { margin: 0; }
  .agent__st b { margin-top: 0; }
}

/* ─── exit codes (semantic) ─────────────────────────────────────── */
.exits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--x-line); border-radius: var(--x-radius-md); overflow: hidden; background: var(--x-white); }
.exits div { padding: 18px 16px 16px; border-left: 1px solid var(--x-line); }
.exits div:first-child { border-left: 0; }
.exits b { display: block; font-family: var(--x-font-display); font-weight: var(--x-w-black); font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; }
.exits span { display: block; font-family: var(--x-font-mono); font-size: var(--x-text-caption); color: var(--x-ink-500); margin-top: 8px; }
.exits .x0 b { color: var(--x-success-700); } .exits .x1 b { color: var(--x-danger-600); } .exits .x2 b { color: var(--x-warning-500); } .exits .x3 b { color: #0369a1; }  /* ALERT is sky */ .exits .x4 b { color: var(--x-ink-400); }
.exits .x1 { background: var(--x-danger-50); }
@media (max-width: 700px) { .exits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .exits div { border-top: 1px solid var(--x-line); } .exits div:nth-child(odd) { border-left: 0; } .exits div:nth-child(-n+2) { border-top: 0; } .exits .x4 { grid-column: 1 / -1; } }

/* ─── privacy ───────────────────────────────────────────────────── */
.pp-priv { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pp-priv__col h3 { font-family: var(--x-font-mono); font-size: var(--x-text-label); font-weight: var(--x-w-bold); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--x-ink-900); color: var(--x-ink-900); }
.pp-priv__col--no h3 { border-bottom-color: var(--x-orange-500); color: var(--x-orange-700); }
.pp-priv__col ul { list-style: none; margin: 0; padding: 0; }
.pp-priv__col li { font-size: 15px; color: var(--x-ink-700); padding: 9px 0; border-bottom: 1px solid var(--x-line); line-height: 1.45; }
@media (max-width: 900px) { .pp-priv { grid-template-columns: minmax(0, 1fr); } }

/* ─── install CTA: brand-tinted steps ──────────────────────────── */
.pp-install { border: 1px solid var(--x-orange-200); border-radius: 22px; background: var(--x-white); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); box-shadow: var(--x-shadow); }
.pp-install__main { padding: clamp(28px, 4vw, 52px); }
.pp-install__main .pp-h2 { font-size: clamp(32px, 4vw, 52px); }
.pp-install__main .cmd { margin-top: 26px; }
.pp-install__main .cmd__text { overflow-wrap: anywhere; white-space: normal; word-break: break-all; }
.pp-install__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pp-install__steps {
  list-style: none; margin: 0; padding: clamp(28px, 4vw, 52px); counter-reset: st; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: center;
  background: linear-gradient(135deg, #fff3ec 0%, #f9f0f6 50%, #eef0fe 100%);  /* the wash, softened for a text panel */
  border-left: 1px solid rgba(10,10,35,.07);
}
.pp-install__steps li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.pp-install__steps li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--x-brand-gradient) border-box; color: var(--x-ink-900); display: grid; place-items: center; font-family: var(--x-font-mono); font-size: 13px; font-weight: var(--x-w-bold); box-sizing: border-box; }
.pp-install__steps li > div > b { display: block; font-size: 16px; color: var(--x-ink-900); }
.pp-install__steps li > div > span { display: block; color: var(--x-ink-700); font-size: var(--x-text-small); line-height: var(--x-lh-small); margin-top: 3px; }
.pp-install__steps li > div > span code { font-size: 12.5px; background: var(--x-white) !important; }
.pp-install__steps li > div > .fig-caption { font-size: 10px; margin: 0 0 10px 2px; line-height: 1.4; }
.pp-install__term { display: block !important; }
.pp-install__term::before { display: none !important; }
.pp-install__term .tm__body { font-size: 10px; }
.pp-install__foot { grid-column: 1 / -1; border-top: 1px solid var(--x-orange-200); padding: 14px clamp(28px, 4vw, 52px); font-size: 13.5px; color: var(--x-ink-500); background: var(--x-orange-50); }
.pp-install__foot a { color: var(--x-blue-500); }
@media (max-width: 900px) { .pp-install { grid-template-columns: minmax(0, 1fr); } .pp-install__steps { border-left: 0; border-top: 1px solid var(--x-orange-200); } }

/* ─── coverage strip ────────────────────────────────────────────── */
.pp-cover { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--x-orange-200); border-bottom: 1px solid var(--x-orange-200); }
.pp-cover div { padding: 18px 18px 16px 0; }
.pp-cover div + div { padding-left: 18px; border-left: 1px solid var(--x-orange-200); }
.pp-cover img { width: 24px; height: 24px; margin-bottom: 10px; }
.pp-cover b { display: block; font-size: 15px; }
.pp-cover span { display: block; font-family: var(--x-font-mono); font-size: var(--x-text-caption); color: var(--x-ink-500); margin-top: 4px; line-height: 1.5; }
.pp-cover-note { font-size: 14px; color: var(--x-ink-500); margin: 14px 0 0; max-width: 90ch; }
@media (max-width: 800px) { .pp-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-cover div:nth-child(3) { border-left: 0; padding-left: 0; } .pp-cover div:nth-child(n+3) { border-top: 1px solid var(--x-orange-200); } }

/* ─── command index ─────────────────────────────────────────────── */
.cmdx { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid transparent; border-image: var(--x-brand-gradient) 1; }
.cmdx a { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--x-orange-200); align-items: baseline; transition: background .2s ease; }
.cmdx a:hover { background: linear-gradient(90deg, var(--x-orange-100), transparent 70%); }
.cmdx code { font-family: var(--x-font-mono); font-size: 13px; color: var(--x-ink-900); background: none !important; border: 0 !important; padding: 0 !important; font-weight: var(--x-w-bold); }
.cmdx span { font-size: var(--x-text-small); color: var(--x-ink-500); line-height: 1.45; }
@media (max-width: 800px) { .cmdx a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ─── CI: pipetree first, gate facts under it ───────────────────── */
.pp-ci { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 8px; }
.pp-ci > .reveal:first-child { max-width: 1000px; }
.pp-ci__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: start; }
.pp-ci__facts > .fig-caption { grid-column: 1 / -1; }
@media (max-width: 900px) { .pp-ci__facts { grid-template-columns: minmax(0, 1fr); } .pp-oneliners { margin-top: 18px !important; } }
.pp-oneliners { list-style: none; margin: 0; padding: 0; }
.pp-oneliners li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--x-orange-200); font-size: 14px; color: var(--x-ink-700); line-height: 1.5; }
.pp-oneliners li:first-child { border-top: 0; padding-top: 0; }
.pp-oneliners img { width: 20px; height: 20px; margin-top: 1px; }
.pp-oneliners code { overflow-wrap: anywhere; }

/* ─── pipetree containment (product.css uses `auto 1fr` and nowrap pills) ─ */
.pipetree { grid-template-columns: auto minmax(0, 1fr); }
.pipe__lane, .pipetree__lanes { min-width: 0; }
@media (max-width: 1100px) {
  .pipetree--wide .pipe__lane, .pipetree--cmd .pipe__lane, .pp-ci .pipe__lane { flex-wrap: wrap; row-gap: 12px; }
  .pipetree--wide .pipe__chain, .pipetree--cmd .pipe__chain, .pp-ci .pipe__chain { order: 3; width: 100%; }
  .pipetree--wide .pipe__out, .pipetree--cmd .pipe__out, .pp-ci .pipe__out { margin-left: auto; }
  .pipetree--cmd .pipe__job { flex: 1 1 200px; }
}
@media (max-width: 760px) { .pipetree { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .pipe__node { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: center; padding: 6px 10px; font-size: 11px; }
  .pipe__conn { min-width: 8px; }
  .pipe__job { flex-basis: auto; }
}

/* ════════════════════════════════════════════════════════════════════
   MOTION
   figures.js runs each [data-scene] figure as a looping story while it is on
   screen: it adds .is-live (so the steps below start hidden), then adds .on
   to each [data-at] element at its time and removes it at [data-out]. Off
   screen it stops and shows the final state. Without JS, or with
   prefers-reduced-motion, .is-live is never added: every figure is finished.
   ════════════════════════════════════════════════════════════════════ */
@keyframes chipLand { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
@keyframes pkt { from { background-position: -12px 50%; } to { background-position: calc(100% + 12px) 50%; } }
@keyframes rsHide { to { visibility: hidden; } }
@keyframes rsShow { to { visibility: visible; } }

.is-live [data-at] { opacity: 0; transform: translateY(8px); transition: opacity var(--x-dur-row) var(--x-ease), transform var(--x-dur-row) var(--x-ease); }
.is-live [data-at].on { opacity: 1; transform: none; }
.is-live [data-at][data-fx="pop"] { transform: scale(.2); transition-timing-function: cubic-bezier(.34,1.56,.64,1); transition-duration: var(--x-dur-chip); }
.is-live [data-at][data-fx="pop"].on { transform: scale(1); }
.is-live [data-at][data-fx="card"] { transform: translateY(16px) scale(.95); transition-duration: var(--x-dur-card); transition-timing-function: var(--x-ease-out); }
.is-live [data-at][data-fx="card"].on { transform: none; }
.is-live [data-at][data-fx="fade"] { transform: none; }
.is-live [data-at][data-fx="flash"] { opacity: 1; transform: none; transition: background-color .5s ease, box-shadow .5s ease; }
.is-live [data-at][data-fx="flash"].on { background-color: var(--x-orange-50); box-shadow: inset 3px 0 0 var(--x-orange-500); }
/* squiggles draw rather than fade */
.is-live .sq[data-at] { opacity: 1; transform: none; text-decoration-color: transparent; transition: text-decoration-color .45s ease; }
.is-live .sq--err[data-at].on { text-decoration-color: var(--vsl-err); }
.is-live .sq--warn[data-at].on { text-decoration-color: var(--vsl-warn); }
/* checkboxes tick rather than fade */
.is-live .qp__box[data-at] { opacity: 1; transform: none; }
.is-live .qp__box[data-at]::after { opacity: 0; }
.is-live .qp__box[data-at].on::after { opacity: 1; }
/* a pressed button (button.hoverBackground) */
.is-live .qp__ok[data-at] { opacity: 1; transform: none; }
.is-live .qp__ok[data-at].on { background: var(--vsl-button-hover); }
/* agent stations light in turn; the rail fills */
.is-live .agent__st .agent__dot { background: var(--x-white); border-color: var(--x-line); color: var(--x-ink-400); }
.is-live .agent__st[data-at] { opacity: 1; transform: none; }
.is-live .agent__st[data-at].on .agent__dot { background: var(--x-orange-500); border-color: var(--x-orange-500); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px var(--x-orange-100); }
.is-live .agent__st.is-fail[data-at].on .agent__dot { background: var(--x-danger-600); border-color: var(--x-danger-600); box-shadow: 0 0 0 6px var(--x-danger-50); }
.is-live .agent__rail i { transform: scaleX(0); }
.is-live .agent__rail i[data-at] { opacity: 1; }
.is-live .agent__rail i[data-at].on { transform: scaleX(1); }
@media (max-width: 900px) { .is-live .agent__rail i { transform: scaleY(0); } .is-live .agent__rail i[data-at].on { transform: scaleY(1); } }
/* ranking: rows arrive in random order, then re-sort (figures.js, FLIP) */
.is-live .rank__row.is-new { opacity: 0; transform: translateX(-14px); }
.is-live .rank:not(.is-sorted) .rank__row:first-child { background: none; box-shadow: none; }

/* packets: an orange dot travels each connector, lanes staggered (loop, like connFlow) */
.pipetree--live .pipe__conn { height: 10px; background: linear-gradient(var(--x-line), var(--x-line)) center / 100% 2px no-repeat; border-radius: 0; overflow: visible; }
.pipetree--live .pipe__conn::after {
  background-image: radial-gradient(circle, var(--x-orange-500) 0 3.5px, transparent 4px);
  background-size: 10px 10px; background-repeat: no-repeat;
  animation: pkt var(--x-loop-flow) linear infinite;
}
.pipetree--live .pipe__lane:nth-child(2) .pipe__conn::after { animation-delay: .4s; }
.pipetree--live .pipe__lane:nth-child(3) .pipe__conn::after { animation-delay: .8s; }
.pipetree--live .pipe__lane:nth-child(4) .pipe__conn::after { animation-delay: 1.2s; }
.pipetree--live .pipe__lane:nth-child(5) .pipe__conn::after { animation-delay: .2s; }
.pipetree--live .pipe__lane--block .pipe__conn:last-of-type::after { background-image: none; }
.pipetree--live .pipe__lane--block .pipe__conn:first-of-type::after { background-image: radial-gradient(circle, var(--x-danger-600) 0 3.5px, transparent 4px); }
.is-live .pipetree--cmd .pipe__lane[data-at] .pipe__conn::after { animation-play-state: paused; opacity: 0; }
.is-live .pipetree--cmd .pipe__lane[data-at].on .pipe__conn::after { animation-play-state: running; opacity: 1; }
@media (max-width: 760px) { .is-live .pipetree--cmd .pipe__lane[data-at]:not(.on) { display: none; } }

/* pause every infinite loop while its figure is off screen */
[data-live]:not(.is-visible) .pipe__conn::after,
[data-live]:not(.is-visible) .pipe__out.block,
[data-live]:not(.is-visible) .rank__state svg { animation-play-state: paused; }

/* the resolving status cell in xyz proxy status: final state by default */
.rs { display: inline-grid; }
.rs > * { grid-area: 1 / 1; }
.rs .w { visibility: hidden; color: var(--ansi-bright-black); }
@media (prefers-reduced-motion: no-preference) {
  .term--anim .term__out .rs .w { visibility: visible; }
  .term--anim .term__out .rs .d { visibility: hidden; }
  .term--anim .term__out.is-shown .rs .w { animation: rsHide 0s linear .45s forwards; }
  .term--anim .term__out.is-shown .rs .d { animation: rsShow 0s linear .45s forwards; }
  .tm__body .gate-line.is-shown { animation: cardPop var(--x-dur-card) var(--x-ease-out) both; transform-origin: left center; }
}
@media (prefers-reduced-motion: reduce) {
  .pipetree--live .pipe__conn::after, .rank__state svg, .rank__row { animation: none !important; transition: none !important; }
}
/* "scanning workspace" only while the scene is sorting; the finished list has no spinner */
.rank:not(.is-live) .rank__state, .rank.is-sorted .rank__state { visibility: hidden; }


/* ════════════════════════════════════════════════════════════════════
   DARK TERMINAL: VS Code Dark Modern integrated terminal (fig. 03 only)
   ════════════════════════════════════════════════════════════════════ */
.tmd { background: var(--tmd-bg); color: var(--tmd-fg); border: 1px solid #2b2b2b; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(10,10,35,.22), 0 4px 12px rgba(10,10,35,.12), inset 0 1px 0 rgba(255,255,255,.04); }
.tmd__tabs { display: flex; align-items: center; gap: 18px; height: 35px; padding: 0 14px; border-bottom: 1px solid var(--tmd-border); font: 11px/35px var(--x-font-body); letter-spacing: .04em; color: var(--tmd-dim); }
.tmd__tabs .frame__dots { margin-right: 6px; }
.tmd__tabs .frame__dots i { width: 11px; height: 11px; }
.tmd__tabs span.on { color: #e7e7e7; box-shadow: inset 0 -1px 0 var(--tmd-tab); }
.tmd__tabs .sh { margin-left: auto; letter-spacing: 0; display: inline-flex; gap: 6px; align-items: center; color: #cccccc; }
.tmd__tabs .sh svg { width: 14px; height: 14px; }
.tmd .tm__body { background: var(--tmd-bg); color: var(--tmd-fg); padding: 10px 14px 16px 30px; position: relative; font-size: 12px; line-height: 1.55; }
.tmd .tm__body .rl, .tmd .tm__body .pr, .tmd .tm__body .cm { color: var(--tmd-fg); }
.tmd .tm__body .hd { color: #e5e5e5; font-weight: 700; }
.tmd .tm__body .bl { color: var(--ansi-d-bright-red); font-weight: 700; }
.tmd .tm__body .al { color: var(--ansi-d-blue); }
.tmd .tm__body .ok { color: var(--ansi-d-green); }
.tmd .tm__body .dm { color: var(--ansi-d-bright-black); }
.tmd .ps-dir { color: var(--ansi-d-cyan); font-weight: 700; }
.tmd .ps-on { color: var(--tmd-fg); }
.tmd .ps-git { color: var(--ansi-d-magenta); font-weight: 700; }
.tmd .ps-ok { color: var(--ansi-d-green); font-weight: 700; }
.tmd .ps-err { color: var(--ansi-d-bright-red); font-weight: 700; }
/* shell-integration command decorations in the gutter (VS Code) */
.tmd .deco { position: absolute; left: 12px; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.tmd .deco--err { background: #f14c4c; }
.tmd .deco--none { border: 1px solid #5a5a5a; }
.tmd .blk { display: block; border-top: 1px solid #262626; margin: 8px -14px 0 -30px; padding: 8px 14px 0 30px; position: relative; }
.tmd .blk:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.tmd .cursor { display: inline-block; width: 7px; height: 15px; background: var(--tmd-fg); vertical-align: -3px; animation: hhBlink var(--x-loop-caret) steps(1) infinite; }
@media (max-width: 600px) { .tmd .tm__body { font-size: 10px; padding-left: 24px; } .tmd .deco { left: 8px; } .tmd__tabs span:not(.on):not(.sh) { display: none; } }

/* ════════════════════════════════════════════════════════════════════
   FIGURE: a day with the agent (line-drawn story, looping)
   ════════════════════════════════════════════════════════════════════ */
.story { background: var(--x-white); border: 1px solid var(--x-line); border-radius: var(--x-radius-lg); box-shadow: var(--x-shadow); padding: clamp(16px, 2.4vw, 28px); }
.story svg.stage { display: block; width: 100%; height: auto; overflow: visible; }
.story .ln { fill: none; stroke: var(--x-ink-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story .ln--soft { stroke: #c9c9d6; stroke-width: 1.5; }
.story .ln--brand { stroke: url(#brandGrad); stroke-width: 2.5; }
.story .ln--ok { stroke: var(--x-success-600); stroke-width: 2.5; }
.story .ln--bad { stroke: var(--x-danger-600); stroke-width: 2.5; }
.story text { font-family: var(--x-font-mono); font-size: 12px; fill: var(--x-ink-700); }
.story text.t-sm { font-size: 10.5px; fill: var(--x-ink-500); }
.story text.t-ok { fill: var(--x-success-700); }
.story text.t-bad { fill: var(--x-danger-700); }
.story text.t-head { font-family: var(--x-font-body); font-weight: 600; font-size: 13px; fill: var(--x-ink-900); }
.story .pulse { fill: var(--x-orange-500); }
.story__caps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: sc; }
.story__caps li { counter-increment: sc; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: var(--x-text-small); color: var(--x-ink-700); line-height: 1.45; }
.story__caps li::before { content: counter(sc); font: 700 12px var(--x-font-mono); color: var(--x-orange-700); }
/* static (no JS, reduced motion): the storyboard's last frame plus every caption */
.story:not(.is-live) .scene:not(.scene--final) { display: none; }
/* live: one scene at a time, strokes draw in, one caption at a time */
.is-live .scene[data-at] { transform: none; transition: opacity .45s ease; }
.is-live .scene .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--x-ease-out); }
.is-live .scene.on .d { stroke-dashoffset: 0; }
.is-live .scene.on .d2 { transition-delay: .6s; }
.is-live .scene.on .d3 { transition-delay: 1.3s; }
.is-live .scene [data-at] { transform: none; }
.story.is-live .story__caps { display: block; min-height: 1.5em; }
.story.is-live .story__caps li { position: absolute; }
.story.is-live .story__caps { position: relative; height: 2.9em; }
.story .hb { animation: hbTravel 2s linear infinite; }
@keyframes hbTravel { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(196px); opacity: 0; } }
[data-live]:not(.is-visible) .hb, [data-live]:not(.is-visible) .cursor { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .story .hb, .tmd .cursor { animation: none; } }

/* ════════════════════════════════════════════════════════════════════
   CHART: the Mini Shai-Hulud wave on a time axis (published data only)
   ════════════════════════════════════════════════════════════════════ */
.wave { background: var(--x-white); border: 1px solid var(--x-line); border-radius: var(--x-radius-lg); padding: 18px 20px 12px; margin-bottom: clamp(24px, 3vw, 36px); }
.wave__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: baseline; }
.wave__title { font: 700 var(--x-text-h4)/1.2 var(--x-font-display); letter-spacing: var(--x-ls-h4); margin: 0; color: var(--x-ink-900); }
.wave__legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--x-ink-500); }
.wave__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wave__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.wave svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.wave text { font-family: var(--x-font-mono); font-size: 11px; fill: var(--x-ink-500); }
.wave text.lbl { font-family: var(--x-font-body); font-size: 12.5px; fill: var(--x-ink-700); }
.wave text.lbl-b { font-family: var(--x-font-body); font-size: 12.5px; font-weight: 600; fill: var(--x-ink-900); }
.wave .grid { stroke: #ececf3; stroke-width: 1; }
.wave .axis { stroke: #d9d9e3; stroke-width: 1; }
.wave .band { fill: var(--x-danger-50); }
.wave .band-edge { stroke: var(--x-danger-200); stroke-width: 1; }
.wave .ev { fill: var(--x-ink-500); stroke: #fff; stroke-width: 2; }
.wave .ev-us { stroke: #fff; stroke-width: 2; }
.wave .lead { stroke: url(#leadGrad); stroke-width: 2.5; stroke-linecap: round; }
.wave .hit { fill: transparent; cursor: default; }
.wave .hit:hover + .tipg, .wave .hit:focus + .tipg { opacity: 1; }
.wave .tipg { opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.wave .tipg rect { fill: var(--x-ink-900); rx: 6; }
.wave .tipg text { fill: #fff; font-family: var(--x-font-body); font-size: 12px; }
.wave__cap { font-family: var(--x-font-mono); font-size: var(--x-text-caption); color: var(--x-ink-500); margin: 6px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wave.reveal .lead { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--x-ease-out) .3s; }
  .wave.reveal.in-view .lead { stroke-dashoffset: 0; }
}
.is-live .scene .dl { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 1; transform: none; transition: stroke-dashoffset .8s var(--x-ease-out); }
.is-live .scene .dl.on { stroke-dashoffset: 0; }
.story .agent__lands { margin-top: 20px; }
.wave__list { display: none; list-style: none; margin: 10px 0 0; padding: 0; }
.wave__list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--x-line); font-size: 13.5px; color: var(--x-ink-700); }
.wave__list li b { font-family: var(--x-font-mono); font-weight: 700; font-size: 12px; color: var(--x-ink-900); }
.wave__list li.us b { background: var(--x-brand-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 640px) { .wave svg { display: none; } .wave__list { display: block; } }
.tmd svg, .story__caps svg { display: inline-block; }
.tmd .tm__body .term__cmd { color: var(--tmd-fg); }
.tmd .deco { top: 3px; margin-top: 0; }
.tmd .blk + .blk .deco { top: 12px; }
.pp-pair--fix .tmd .tm__body { font-size: 10.5px; }
@media (max-width: 600px) { .pp-pair--fix .tmd .tm__body { font-size: 9.5px; } }

/* ════════════════════════════════════════════════════════════════════
   CHART (VS Code): issues before and after one Fix All (unit chart)
   ════════════════════════════════════════════════════════════════════ */
.fx { margin: clamp(32px, 4vw, 48px) 0 0; background: var(--x-white); border: 1px solid var(--x-line); border-radius: var(--x-radius-lg); padding: 18px 20px 14px; }
.fx__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; align-items: baseline; }
.fx__title { font: 700 var(--x-text-h4)/1.25 var(--x-font-display); letter-spacing: var(--x-ls-h4); margin: 0; color: var(--x-ink-900); max-width: 60ch; }
.fx__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--x-ink-500); }
.fx__legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-danger { background: var(--x-danger-600); } .k-warn { background: var(--x-warning-500); } .k-ok { background: var(--x-success-600); }
.fx__rows { display: grid; gap: 12px; margin-top: 16px; }
.fx__row { display: grid; grid-template-columns: 58px 30px minmax(0, 1fr); gap: 12px; align-items: center; }
.fx__lbl { font: 500 var(--x-text-caption) var(--x-font-mono); color: var(--x-ink-500); text-transform: uppercase; letter-spacing: .04em; }
.fx__n { font: 800 28px/1 var(--x-font-display); color: var(--x-ink-900); font-variant-numeric: tabular-nums; }
.fx__cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx__cell { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: start; padding: 9px 10px; border-radius: 10px; border: 1px solid; min-height: 58px; }
.fx__cell b { font: 700 12px/1.35 var(--x-font-mono); color: var(--x-ink-900); overflow-wrap: anywhere; }
.fx__cell span:not(.fx__ic) { grid-column: 2; font-size: 12.5px; line-height: 1.35; color: var(--x-ink-700); }
.fx__ic { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--x-font-mono); color: #fff; }
.fx__cell--danger { background: var(--x-danger-50); border-color: var(--x-danger-200); } .fx__cell--danger .fx__ic { background: var(--x-danger-600); }
.fx__cell--warn { background: var(--x-warning-50); border-color: var(--x-warning-200); } .fx__cell--warn .fx__ic { background: var(--x-warning-700); }
.fx__cell--ok { background: var(--x-white); border-style: dashed; border-color: var(--x-success-200); } .fx__cell--ok .fx__ic { background: var(--x-success-700); }
.fx__cell--ok b { color: var(--x-ink-500); text-decoration: line-through; text-decoration-color: var(--x-ink-400); }
@media (max-width: 900px) { .fx__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx__row { grid-template-columns: 1fr auto; } .fx__cells { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .fx.reveal .fx__row + .fx__row .fx__cell { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
  .fx.reveal.in-view .fx__row + .fx__row .fx__cell { opacity: 1; transform: none; }
  .fx.reveal.in-view .fx__row + .fx__row .fx__cell:nth-child(1) { transition-delay: .5s; }
  .fx.reveal.in-view .fx__row + .fx__row .fx__cell:nth-child(2) { transition-delay: .8s; }
  .fx.reveal.in-view .fx__row + .fx__row .fx__cell:nth-child(3) { transition-delay: 1.1s; }
  .fx.reveal.in-view .fx__row + .fx__row .fx__cell:nth-child(4) { transition-delay: 1.4s; }
}

/* ════════════════════════════════════════════════════════════════════
   FIGURE: ppf-fleet coverage + agent events (dashboard home, HomeCards.tsx)
   ════════════════════════════════════════════════════════════════════ */
.ppf-fleet__app { background: linear-gradient(160deg, #fdf3ef 0%, #f5f6fb 55%, #f7f3fb 100%); }
.ppf-fleet__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
@media (max-width: 960px) { .ppf-fleet__grid { grid-template-columns: minmax(0, 1fr); } }
.ppf-cov, .ppf-feed { background: rgba(255,255,255,.72); border: 1px solid var(--app-card-border); box-shadow: var(--app-card-shadow); border-radius: 16px; padding: 20px; color: var(--app-ink); }
.ppf-cov__title { display: flex; gap: 12px; align-items: flex-start; }
.ppf-cov__bar-accent { width: 4px; align-self: stretch; min-height: 34px; border-radius: 999px; background: linear-gradient(180deg, var(--accent, #2e2eff), color-mix(in srgb, var(--accent, #2e2eff) 45%, transparent)); flex: none; }
.ppf-cov__title div { flex: 1; min-width: 0; }
.ppf-cov__title h4 { margin: 0; font: 700 17px/1.2 var(--x-font-body); letter-spacing: -.01em; }
.ppf-cov__title p { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: var(--app-muted); }
.ppf-cov__all { font: 600 12px var(--x-font-mono); color: #ef4136; white-space: nowrap; }
.ppf-cov__meter { margin-top: 16px; }
.ppf-cov__nums { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.ppf-cov__nums b { font: 800 18px var(--x-font-mono); font-variant-numeric: tabular-nums; }
.ppf-cov__pct { font: 12px var(--x-font-mono); color: var(--app-muted); }
.ppf-cov__track { position: relative; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(226,232,240,.7); }
.ppf-cov__bars { position: absolute; inset: 0; display: flex; }
.ppf-cov__bars i { display: block; height: 100%; }
.s-routed { background: #10b981; } .s-partial { background: #fbbf24; } .s-not { background: #dc2626; } .s-silent { background: #64748b; } .s-outdated { background: #8b5cf6; }
.ppf-fleet:not(.is-live) .ppf-cov__bars:not(:last-child) { display: none; }
.ppf-cov__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ppf-cov__tile { border-radius: 12px; box-shadow: inset 0 0 0 1px; padding: 10px 12px; transition: opacity .3s ease; }
.ppf-cov__tile div { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--app-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppf-cov__tile svg { width: 14px; height: 14px; flex: none; display: inline-block; }
.ppf-cov__tile b { display: block; margin-top: 4px; font: 800 20px/1 var(--x-font-mono); font-variant-numeric: tabular-nums; }
.t-routed { background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; color: #047857; }
.t-partial { background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; color: #b45309; }
.t-not { background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; color: #b91c1c; }
.t-silent { background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; color: #334155; }
.t-outdated { background: #f5f3ff; box-shadow: inset 0 0 0 1px #ddd6fe; color: #6d28d9; }
.ppf-cov__tile:has(b:is(:empty)) { opacity: .6; }
.ppf-cov__attn { margin-top: 16px; }
.ppf-cov__attn ul { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--app-line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.6); }
.ppf-cov__attn li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--app-line); max-height: 60px; overflow: hidden; transition: max-height .45s ease, padding .45s ease, opacity .35s ease; }
.ppf-cov__attn li:first-child { border-top: 0; }
.ppf-cov__attn li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ppf-cov__attn li b { font: 600 13px var(--x-font-mono); }
.ppf-cov__attn li span { flex: 1; min-width: 9rem; font-size: 12px; color: var(--app-muted); }
.ppf-cov__attn li em { font: 11px var(--x-font-mono); font-style: normal; color: var(--app-muted); }
.ppf-fleet:not(.is-live) .ppf-cov__attn { display: none; }
.ppf-cov__ok { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: #047857; }
.ppf-cov__ok svg { width: 16px; height: 16px; display: inline-block; }
.ppf-cov__foot { margin: 12px 0 0; font-size: 11px; color: var(--app-muted); }
.ppf-feed__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.ppf-feed__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--app-line); max-height: 120px; overflow: hidden; transition: max-height .5s ease, padding .5s ease, opacity .4s ease, transform .5s var(--x-ease-out); }
.ppf-feed__list li:first-child { border-top: 0; }
.ppf-feed__list svg { width: 18px; height: 18px; margin-top: 1px; display: block; }
.ppf-feed__list b { display: block; font-size: 13px; font-weight: 600; }
.ppf-feed__list span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--app-muted); }
.ppf-feed__list code { font: 12px var(--x-font-mono); color: var(--app-ink); background: none !important; border: 0 !important; padding: 0 !important; }
.ppf-feed__list em { font: 11px var(--x-font-mono); font-style: normal; color: var(--app-muted); white-space: nowrap; }
.ev-ok svg { color: #059669; } .ev-fix svg { color: #2e2eff; } .ev-bad svg { color: #dc2626; } .ev-up svg { color: #7c3aed; }
/* rows collapse while hidden, so arrivals push the list down and resolved issues close up */
.is-live .ppf-feed__list li[data-at]:not(.on), .is-live .ppf-cov__attn li[data-at]:not(.on) { max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
.is-live .ppf-cov__ok[data-at]:not(.on) { display: none; }
[data-live]:not(.is-visible) * { animation-play-state: paused; }

/* ════════════════════════════════════════════════════════════════════
   FIGURE: one engine, every surface (hub and spokes; the CI pipetree is lanes)
   ════════════════════════════════════════════════════════════════════ */
.hub { background: none; border: 0; padding: 0; }  /* sits on the page ground (2026-10-17) */
.hub__svg { display: block; width: 100%; height: auto; }
.hub__node rect { fill: var(--x-white); stroke: var(--x-line); stroke-width: 1.5; }
.hub__node--dash rect { fill: var(--x-blue-100); stroke: var(--x-blue-200); }
.hub__t { font: 700 15px var(--x-font-body); fill: var(--x-ink-900); }
.hub__s { font: 12px var(--x-font-body); fill: var(--x-ink-500); }
.hub__core { fill: var(--x-white); stroke: url(#hubGrad); stroke-width: 3; }
.hub__spoke { fill: none; stroke: var(--x-orange-500); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; animation: hubFlow 1.2s linear infinite; }
.hub__spoke--down { stroke: var(--x-blue-500); }
@keyframes hubFlow { to { stroke-dashoffset: -22; } }
.hub__list { display: none; list-style: none; margin: 0; padding: 0; }
.hub__list li { padding: 10px 0; border-top: 1px solid var(--x-line); font-size: 14px; color: var(--x-ink-700); line-height: 1.45; }
.hub__list li:first-child { border-top: 0; }
.hub__list b { display: block; font-size: 15px; color: var(--x-ink-900); }
@media (max-width: 700px) { .hub__svg { display: none; } .hub__list { display: block; } }
[data-live]:not(.is-visible) .hub__spoke { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hub__spoke { animation: none; } }
.ppf-fleet:not(.is-live) .ppf-cov__tile:not(.t-routed) { opacity: .6; }

/* ─── round-5 polish (figs. 04–06), from the design critique ───────── */
/* captions: left-aligned under their figure, one measure, never ragged-right */
:where(.pp-sec, .pp-sec--tight) .pp-pair .frame__cap, #code-scan .frame__cap, .ppf-fleet .frame__cap { text-align: left; max-width: 72ch; margin-top: 10px; }
.pp-pair--fix { align-items: start; }
.pp-pair--fix > div:last-child .pp-pair__note { margin-top: 16px; }
.pp-pair--fix .app__body { padding: 14px; }
/* fig. 06: text and terminal share a top line; the terminal sized to its content */
.pp-show--code { grid-template-columns: minmax(0, 360px) minmax(0, 660px); justify-content: space-between; align-items: start; }
.pp-show--code .pp-show__tell { padding-top: 26px; }
.pp-show--code .tmw .tm__body { font-size: 12.5px; padding: 14px 18px 18px; }
@media (max-width: 1020px) { .pp-show--code { grid-template-columns: minmax(0, 1fr); } .pp-show--code .pp-show__tell { padding-top: 0; } }
@media (max-width: 600px) { .pp-show--code .tmw .tm__body { font-size: 10.5px; } }
.pp-pair--fix > div:first-child .frame__cap { max-width: none; }

/* ── xyz MCP page (2026-10-20): the agents as chips, the tools as cards ── */
.mcls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcl { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 600 15.5px/1.3 var(--font-body); color: var(--ink); }
.mcl svg, .mcl img { flex: none; width: 22px; height: 22px; color: var(--ink-2); }
.mtools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mtool { padding: 18px 20px; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.92) 45%); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff; }
.mtool__n { display: inline-block; font: 600 13px/1.3 var(--font-mono); color: var(--ink); background: #fff1e8; border-radius: 6px; padding: 3px 8px; }
.mtool p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.mhook__agent svg { width: 34px; height: 34px; color: var(--ink-2); }
#hosted .tmw { max-width: 820px; }
@media (max-width: 900px) { .mcls, .mtools { grid-template-columns: minmax(0, 1fr); } }
