/* TF-ART — framework explorer + survey-specific components (v1)
   Everything beyond the forked skeleton lives here:
   hero variant, abstract body, explorer layout, framework diagram,
   sidebar directory, pipeline strip, highlight state machine. */

/* ============================================================
   HERO — survey variant
   ============================================================ */
.hero--survey {
  min-height: 92svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* aurora wash — soft indigo→violet→cyan field behind the topology */
.hero--survey::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--aurora);
}

.hero__topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.78;
  pointer-events: none;
  mask-image: radial-gradient(125% 96% at 50% 38%, #000 36%, transparent 82%);
  -webkit-mask-image: radial-gradient(125% 96% at 50% 38%, #000 36%, transparent 82%);
}
.hero__topo svg { width: 100%; height: 100%; display: block; }

.hero--survey .hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: clamp(14px, 1.15vw, 16.5px);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}

.hero__title--survey {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-display);
}
.hero__title-line { display: block; white-space: nowrap; }
@media (max-width: 680px) {
  .hero__title-line { white-space: normal; display: inline; }
  .hero--survey { min-height: 88svh; }
}

.hero__sub--survey {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 25px);
  color: var(--text-soft);
  letter-spacing: 0.012em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-7);
}

.hero--survey .hero__affil {
  font-style: italic;
  color: var(--text-soft);
}
.hero--survey .hero__affil a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.hero--survey .hero__affil a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hero--survey .hero__marks { color: var(--text-muted); }

.hero--survey .btn--primary {
  background: linear-gradient(125deg, var(--accent) 0%, #5C7DF5 52%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
              0 10px 26px -12px rgba(46, 107, 242, 0.5);
}
.hero--survey .btn--primary:hover {
  background: linear-gradient(125deg, var(--accent-hot) 0%, #4E6FF0 52%, var(--accent-2) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 18px 42px -14px rgba(46, 107, 242, 0.60),
              0 6px 16px -8px rgba(167, 139, 250, 0.45);
}
.hero--survey .btn--primary:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 8px 20px -12px rgba(46, 107, 242, 0.5);
}
.hero--survey .btn--primary .btn__icon { stroke: currentColor; }

.stats--hero {
  margin-top: var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--s-6);
}
@media (min-width: 720px) {
  .stats--hero {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    column-gap: 0;
  }
}
/* refined numerals + unit + label for the hero metrics */
.stats--hero .stat__value {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stats--hero .stat__value .unit {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.4em;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}
.stats--hero .stat__label {
  margin-top: var(--s-2);
  font-family: var(--serif-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
/* keep each metric's caption on a single line once columns are wide enough */
@media (min-width: 1160px) {
  .stats--hero .stat__label { white-space: nowrap; }
}
/* elegant gradient dividers between the three metrics (desktop) */
@media (min-width: 720px) {
  .stats--hero .stat { border-top: none; padding: 2px var(--s-5); position: relative; }
  .stats--hero .stat:first-child { padding-left: 0; }
  .stats--hero .stat:last-child { padding-right: 0; }
  .stats--hero .stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 66%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-strong) 28%, var(--border-strong) 72%, transparent);
  }
}

/* ============================================================
   ABSTRACT body
   ============================================================ */
.abstract-body {
  max-width: 70ch;
}
.abstract-body p {
  font-family: var(--serif-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  margin-bottom: var(--s-5);
}
.abstract-body strong { color: var(--text-display); font-weight: 600; }

/* ============================================================
   EXPLORER — section shell
   ============================================================ */
.explorer-section {
  position: relative;
  /* Fig.2 fidelity: the interactive figure keeps the paper's letter-blue,
     while the rest of the page uses the new indigo accent. */
  --accent:      var(--accent-fig);
  --accent-hot:  #005A9E;
  --accent-soft: var(--accent-fig-soft);
  --accent-line: var(--accent-fig-line);
  /* blueprint grid backdrop */
  background-image:
    radial-gradient(var(--blueprint-dot) 1px, transparent 1px),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.explorer-lead { max-width: 72ch; }

.explorer-hint {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.explorer-hint kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  background: var(--bg-elev);
}

/* ============================================================
   EXPLORER — two-column app layout
   ============================================================ */
.explorer {
  display: grid;
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
  gap: var(--s-6);
  width: min(1680px, 100% - 2 * var(--container-pad));
  margin: var(--s-8) auto 0;
  position: relative;
  /* contained instrument panel: both columns scroll internally */
  height: calc(100vh - var(--nav-height) - 24px);
  height: calc(100dvh - var(--nav-height) - 24px);
}

/* corner registration ticks */
.explorer::before,
.explorer::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--border-strong);
  border-style: solid;
  pointer-events: none;
}
.explorer::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.explorer::after  { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }

/* ============================================================
   SIDEBAR — paper directory
   ============================================================ */
.explorer__sidebar {
  position: relative; /* .paper offsetParent anchor for scrollToRef math */
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.sidebar__head {
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  flex: 0 0 auto;
}

.sidebar__search {
  width: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--d-fast) var(--ease);
}
.sidebar__search::placeholder { color: var(--text-muted); opacity: 0.7; }
.sidebar__search:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.sidebar__search::-webkit-search-cancel-button { -webkit-appearance: none; }

.sidebar__row {
  margin-top: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.sidebar__scope {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  overflow: hidden;
}
.sidebar__scope button {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.sidebar__scope button.is-active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}
.sidebar__scope button:not(.is-active):hover { color: var(--text); }

.sidebar__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__status .hl { color: var(--accent); }

.paper__node {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  margin-left: 5px;
  vertical-align: 2px;
}
.paper:not(.paper--mapped) .paper__num { opacity: 0.55; }

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: var(--s-2);
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  overscroll-behavior: contain;
}

/* --- paper row --- */
.paper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-3);
  padding: 9px 10px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: opacity var(--d-fast) var(--ease),
              background var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease);
}
.paper + .paper { margin-top: 2px; }
.paper:hover { background: var(--bg-elev-2); }

.paper__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-warm);
  letter-spacing: 0.02em;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.paper__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* title is a real link → opens the paper in a new tab */
a.paper__title {
  text-decoration: none;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease);
}
a.paper__title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.paper__meta {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.paper__meta a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-strong);
  transition: color var(--d-fast) var(--ease);
}
.paper__meta a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
/* explicit "arXiv ↗ / DOI ↗" affordance, pinned to the right of the meta row */
.paper__ext {
  margin-left: auto;
  flex: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--accent);
  border-bottom-color: var(--accent-line);
}

/* paper states */
.paper.is-dim { opacity: 0.3; }
.paper.is-hit {
  background: var(--bg-elev-2);
  border-left-color: var(--accent);
}
.paper.is-hit .paper__num { color: var(--accent); }
.paper.is-pinned {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  border-left-color: var(--accent);
}
.paper.is-pinned .paper__num { color: var(--accent-hot); }
.paper.is-pinned .paper__title { color: var(--text-display); }

/* ============================================================
   FRAMEWORK — diagram column (compact, mirrors Fig. 2)
   ============================================================ */
.explorer__main {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow-y: auto;            /* safety on short viewports; fits without scroll >=800px tall */
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.framework {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 600px; /* CLS guard before JS render */
  height: 100%;
  padding-top: 38px;   /* headroom for the input pills (measurements/estimation) */
  padding-left: 34px;  /* corridor for the fusion-forward (left) rails */
  padding-right: 46px; /* corridor for the skip-phase (right) rails + feedback */
}

/* connector overlay */
.fw-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.fw-wires path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.fw-wires path.is-ambient {
  /* no stroke-dasharray here: main edges default to solid; aux edges keep their
     inline dash (a CSS dasharray would beat the presentation attribute) */
  animation: none;
  stroke-linecap: round;
}
.fw-wires path.is-hit {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  animation: wire-pulse 1.6s linear infinite;
  filter: drop-shadow(0 1px 3px rgba(0, 112, 192, 0.35));
}
.fw-wires .fw-wires__head { fill: var(--border-strong); stroke: none; }
.fw-wires .fw-wires__head.is-hit { fill: var(--accent); }
@keyframes wire-pulse { to { stroke-dashoffset: -64; } }

/* --- phase panels: backgrounds sampled from the rendered figure --- */
.fw-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 12px 10px 28px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 2px rgba(16, 32, 48, 0.04);
}
/* top-light gradient over each sampled wash → dimensional, not flat pastel */
.fw-panel[data-panel="fusion"] { background: linear-gradient(176deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 26%), var(--fig-fusion-panel); border-color: var(--fig-fusion-line); }
.fw-panel[data-panel="phase1"] { background: linear-gradient(176deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 26%), var(--fig-p1-panel); border-color: var(--fig-p1-line); }
.fw-panel[data-panel="phase2"] { background: linear-gradient(176deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 26%), var(--fig-p2-panel); border-color: var(--fig-p2-line); }
.fw-panel[data-panel="phase3"] { background: linear-gradient(176deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 26%), var(--fig-p3-panel); border-color: var(--fig-p3-line); }

/* vertical phase rail label, zero vertical cost (figure's left margin labels) */
.fw-panel__rail {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.fw-panel__grid {
  display: grid;
  grid-template-columns: minmax(150px, 172px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.fw-panel__grid--right { grid-template-columns: minmax(0, 1fr) minmax(150px, 172px); }

.fw-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;   /* hosts the within-panel sequential arrows */
  min-width: 0;
}

/* --- component: figure-style header strip + box row --- */
.fw-comp {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(16, 32, 48, 0.06), 0 1px 1px rgba(16, 32, 48, 0.04);
}

.fw-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 8px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-display);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: filter var(--d-fast) var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-strip:hover, .fw-strip:focus-visible { filter: brightness(0.96); outline: none; }
.fw-strip__letter {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
}

[data-panel="fusion"] .fw-strip { background: var(--fig-fusion-head); }
[data-panel="phase1"] .fw-comp > .fw-strip { background: var(--fig-p1-head); }
[data-panel="phase2"] .fw-comp > .fw-strip { background: var(--fig-p2-head); }
[data-panel="phase3"] .fw-comp > .fw-strip { background: var(--fig-p3-head); }
.fw-strip--side { background: var(--fig-side-head) !important; }

.fw-comp__boxes {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

/* --- (a) perception rows: Modalities / Sensing (2026-08 Fig. 2) --- */
.fw-prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: stretch;
}
.fw-prow + .fw-prow .fw-comp__boxes--prow { padding-top: 0; }
.fw-prow__tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
  justify-self: center;
  padding: 2px 0;
}
.fw-box--name { justify-content: center; }
.fw-box--name .fw-box__abbrev--name {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  white-space: normal;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- side panels (c)/(e): cream, dashed, docked --- */
.fw-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%), var(--fig-side-panel);
  border: 1px dashed var(--fig-side-line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(16, 32, 48, 0.05);
}
.fw-side .fw-strip--side {
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid var(--fig-side-line);
}
.fw-comp__boxes--side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  flex: 1 1 auto;
  align-content: start;
}
.fw-side__note {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 6px;
}
.fw-side__note--foot { margin-top: auto; border-top: 1px dashed var(--fig-side-line); }

/* --- bands (forwarded/predicted modality strips) --- */
.fw-band {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  min-width: 0;
}
.fw-band__group {
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  flex: var(--gcols, 1);
}
.fw-band__title {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  padding: 4px 6px;
  border-bottom: 1px dashed var(--border-strong);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-panel="phase2"] .fw-band__title { background: var(--fig-p2-head); }
[data-panel="phase3"] .fw-band__title { background: var(--fig-band-p3); }
.fw-band__title:hover, .fw-band__title:focus-visible { filter: brightness(0.96); outline: none; }
.fw-band__boxes {
  display: grid;
  grid-template-columns: repeat(var(--gcols, 3), minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
}

/* --- box (the interactive atom): white, hairline, code + count --- */
.fw-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 26px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  box-shadow: 0 1px 1.5px rgba(16, 32, 48, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color var(--d-fast) var(--ease),
              box-shadow var(--d-fast) var(--ease),
              opacity var(--d-fast) var(--ease),
              transform var(--d-fast) var(--ease),
              background var(--d-fast) var(--ease);
}

.fw-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.fw-box__abbrev {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fw-box__count {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0 5px;
  flex: 0 0 auto;
  transition: inherit;
}

.fw-box__label {
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fw-box--labeled { min-height: 34px; }

/* box states */
.fw-box:hover,
.fw-box:focus-visible,
.fw-box.is-preview {
  border-color: var(--accent-line);
  box-shadow: 0 2px 8px rgba(0, 112, 192, 0.14);
  outline: none;
}
.fw-box.is-hit {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line), 0 2px 8px rgba(0, 112, 192, 0.18);
}
.fw-box.is-hit .fw-box__abbrev { color: var(--accent-hot); }
.fw-box.is-hit .fw-box__count {
  color: #fff;
  background: var(--accent);
}
.fw-box.is-pinned { background: var(--accent-soft); }
.fw-box.is-dim { opacity: 0.34; }
.fw-comp.is-dim, .fw-band__group.is-dim, .fw-side.is-dim { opacity: 0.5; }

.fw-comp.is-hit > .fw-strip, .fw-side.is-hit .fw-strip { filter: brightness(0.97); }

/* ============================================================
   PIPELINE STRIP — pinned selection path
   ============================================================ */
.pipeline-strip {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  z-index: 6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px -16px rgba(16, 32, 48, 0.20);
  padding: 7px 10px;
}
.pipeline-strip[hidden] { display: none; }

.pipeline-strip__who {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-hot);
  margin-right: var(--s-2);
  max-width: 34ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-strip__chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.pipeline-strip__chip:hover { border-color: var(--accent); color: var(--accent-hot); }
.pipeline-strip__chip .ph { color: var(--text-muted); margin-right: 4px; }

.pipeline-strip__arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.pipeline-strip__clear {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--d-fast) var(--ease);
}
.pipeline-strip__clear:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .explorer { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: var(--s-4); }
}

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; height: auto; }

  .explorer__sidebar {
    position: relative;
    top: auto;
    order: 2;
    height: auto;
    max-height: 62vh;
  }
  .explorer__main {
    order: 1;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .fw-wires { display: none; }

  .fw-panel__grid,
  .fw-panel__grid--right { grid-template-columns: 1fr; }
  .fw-panel { padding-left: 14px; }
  .fw-panel__rail { display: none; }
  .fw-comp__boxes { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important; }
  .fw-band { grid-auto-flow: row; }

  .pipeline-strip { position: relative; top: auto; left: auto; right: auto; margin-bottom: var(--s-3); }
}

/* ============================================================
   MOBILE POLISH
   ============================================================ */
@media (max-width: 720px) {
  /* long FIG. labels must wrap, not push the page wide */
  .media-block__label { white-space: normal; }

  .sidebar__row { flex-wrap: wrap; }
  .pipeline-strip__who { max-width: 100%; }
}

/* cool-tinted media-block rule (skeleton ships a warm rgba) */
.media-block__rule { background: rgba(159, 180, 204, 0.22); }

/* native SVG chart card */
.media-block__chrome--chart { padding: var(--s-6) var(--s-5) var(--s-4); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fw-wires path.is-ambient,
  .fw-wires path.is-hit { animation: none; }
}
