/* ====================================================================
   settr — Hero v2 · "Live operating panel"
   A proof-styled dark hero that turns the right-side system visual
   into a full-width operating panel: large content viewer + live
   analytics + recommendation that cycles through real assets.
   ==================================================================== */

.hl-board{
  background: #161614;
  color: #FAFAF8;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  position: relative;
  isolation: isolate;
}
.hl-board.chrome{
  height: 100%;
  overflow: hidden;
}
.hl-board.flow{
  /* Live-page mode: natural flow, full-bleed dark band */
  margin: 0;
}

/* ---- Dark nav wrapper (live hero + any dark-hero page) ----------------- */
.hl-nav-wrap,
.site-nav-wrap--dark{
  background: #161614;
  color: #FAFAF8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hl-nav-wrap .nav,
.site-nav-wrap--dark .nav{
  border-bottom: 0;
}
.hl-nav-wrap .brand,
.site-nav-wrap--dark .brand{ color: #FAFAF8; }
/* Settr wordmark + mark are black SVGs — invert for the dark band */
.hl-nav-wrap .brand-wm,
.hl-nav-wrap .brand-mark img,
.site-nav-wrap--dark .brand-wm,
.site-nav-wrap--dark .brand-mark img{
  filter: invert(1) brightness(1.05);
}
.hl-nav-wrap .brand-tag,
.site-nav-wrap--dark .brand-tag{
  color: rgba(250,250,248,0.5);
  border-color: rgba(250,250,248,0.14);
}
.hl-nav-wrap .nav-links a,
.site-nav-wrap--dark .nav-links a{ color: rgba(250,250,248,0.62); }
.hl-nav-wrap .nav-links a:hover,
.site-nav-wrap--dark .nav-links a:hover{ color: #FAFAF8; }
.hl-nav-wrap .nav-links a[data-active="true"],
.site-nav-wrap--dark .nav-links a[data-active="true"]{ color: #FAFAF8; }
.hl-nav-wrap .nav-login,
.site-nav-wrap--dark .nav-login{
  color: rgba(250,250,248,0.62);
}
.hl-nav-wrap .nav-login:hover,
.site-nav-wrap--dark .nav-login:hover{ color: #FAFAF8; }
.hl-nav-wrap .nav-cta,
.site-nav-wrap--dark .nav-cta{
  background: #FAFAF8;
  color: #161614;
  border-color: #FAFAF8;
}
.hl-nav-wrap .nav-cta:hover,
.site-nav-wrap--dark .nav-cta:hover{
  background: transparent;
  color: #FAFAF8;
  border-color: rgba(250,250,248,0.4);
}

/* ---- Inverted marquee for the Live variant ----------------------------- */
[data-layout="live"] .marquee{
  background: var(--bg);             /* off-white #FAFAF8 */
  color: var(--fg);                  /* near-black */
  border-bottom: 1px solid var(--line);
}
[data-layout="live"] .marquee::after{
  /* No top white-haze / bottom black-shadow on a light surface */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.04) 100%);
}
[data-layout="live"] .marquee-fade-l{
  background: linear-gradient(to right, var(--bg) 30%, rgba(250,250,248,0));
}
[data-layout="live"] .marquee-fade-r{
  background: linear-gradient(to left,  var(--bg) 30%, rgba(250,250,248,0));
}
[data-layout="live"] .m-v{ color: var(--fg); }
[data-layout="live"] .m-t{ color: var(--muted); }
[data-layout="live"] .m-item::after{ background: var(--ghost); }
.hl-board::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(250,250,248,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.hl-board .container{
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  z-index: 1;
}

.hl-stamp{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
  border-bottom: 1px solid rgba(250,250,248,0.10);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  z-index: 1;
  position: relative;
}
.hl-stamp .l{ display: inline-flex; align-items: center; gap: 10px; color: #FAFAF8; }
.hl-stamp .l::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--state-pos);
  border-radius: 50%;
  display: inline-block;
  animation: hlPulse 2.4s ease-in-out infinite;
}
.hl-stamp .r{ color: rgba(250,250,248,0.62); }

@keyframes hlPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Body --------------------------------------------------------------- */
.hl-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 36px;
  position: relative;
  z-index: 1;
}

/* ---- Top: headline row -------------------------------------------------- */
.hl-top{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
}
.hl-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.62);
  margin-bottom: 18px;
}
.hl-kicker .bar{
  width: 22px; height: 1px;
  background: var(--state-pos);
}
.hl-headline{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #FAFAF8;
  margin: 0;
}
.hl-headline .emph{
  font: inherit;
  color: inherit;
}
.hl-headline .emph::after{
  content: ".";
}

/* Rotating headline word — sales → bookings → leads → (loop).
   Slot is taller than the line so descenders (g, p) never clip. */
.hl-headline .rota{ display:inline-block; vertical-align:top; height:1.18em; overflow:hidden; position:relative; }
.hl-headline .rota-track{ display:flex; flex-direction:column; will-change:transform;
  animation: hl-rota 9s cubic-bezier(0.72, 0, 0.18, 1) infinite; }
.hl-headline .rota-track > span{ display:block; height:1.32em; line-height:1.0; white-space:nowrap; }
@keyframes hl-rota{
  0%, 24%   { transform: translateY(0); }
  30%, 57%  { transform: translateY(-1.32em); }
  63%, 90%  { transform: translateY(-2.64em); }
  96%, 100% { transform: translateY(-3.96em); }
}
@media (prefers-reduced-motion: reduce){ .hl-headline .rota-track{ animation: none; } }
.hl-sub{
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(250,250,248,0.78);
  max-width: 50ch;
  margin: 22px 0 0;
}
.hl-sub strong{ color: #FAFAF8; font-weight: 500; }

.hl-top-r{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
  align-items: flex-end;
}
.hl-live-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FAFAF8;
  padding: 6px 12px;
  border: 1px solid rgba(250,250,248,0.14);
  background: rgba(250,250,248,0.04);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hl-live-pill::before{
  content: ""; width: 6px; height: 6px;
  background: var(--state-pos); border-radius: 50%;
  animation: hlPulse 2.4s ease-in-out infinite;
}
.hl-cycle-meta{
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.04em;
}

/* ---- The big operating panel ------------------------------------------ */
.hl-panel{
  position: relative;
  background: #1a1a18;
  border: 1px solid rgba(250,250,248,0.10);
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  /* head · rail · body grid (flexible) · foot — the 1fr must land on the
     body grid, not the rail; with only three tracks the rail row collapsed
     to 0 and its dots/labels overlapped the scoring grid. */
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 540px;
  height: 560px;
  max-height: 560px;
  contain: layout style;
}

/* corner registration marks intentionally removed when the panel uses
   the site's card radius — brackets fight rounded corners. */

/* head */
.hl-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(250,250,248,0.10);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250,250,248,0.72);
  letter-spacing: 0.04em;
}
.hl-panel-head .l{ display: inline-flex; align-items: center; gap: 10px; color: #FAFAF8; }
.hl-panel-head .l .sq{
  width: 7px; height: 7px;
  background: #FAFAF8;
}
.hl-panel-head .sep{ color: rgba(250,250,248,0.32); }
.hl-panel-head .r{
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: rgba(250,250,248,0.55);
}
.hl-clock{ font-variant-numeric: tabular-nums; color: rgba(250,250,248,0.72); }

/* ---- Stage rail -------------------------------------------------------- */
.hl-rail{
  position: relative;
  padding: 22px 32px 18px;
  border-bottom: 1px solid rgba(250,250,248,0.08);
}
/* `.nodes` is a 5-column grid. With each node a centered flex column,
   the dot at the top of each column has its center at x = 10%, 30%, 50%,
   70%, 90% of `.nodes` and y = half-dot-height (7px) from the top of
   `.nodes`. We anchor the axis line to those exact coordinates so it
   passes through every dot's center. */
.hl-rail .nodes{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.hl-rail .axis,
.hl-rail .axis-fill{
  position: absolute;
  top: 7px;
  height: 1px;
  transform: translateY(-50%);
  pointer-events: none;
}
.hl-rail .axis{
  left: 10%;
  right: 10%;
  background: rgba(250,250,248,0.12);
}
.hl-rail .axis-fill{
  left: 10%;
  width: 0;
  max-width: 80%;
  background: var(--state-pos);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hl-rail .node{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.hl-rail .node .dot{
  position: relative;
  box-sizing: border-box;
  width: 14px; height: 14px;
  border: 1px solid rgba(250,250,248,0.24);
  border-radius: 50%;
  background: #1a1a18;
  flex: 0 0 auto;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.hl-rail .node .dot::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  background: rgba(250,250,248,0.24);
  border-radius: 50%;
  transition: width 0.35s ease, height 0.35s ease, background 0.35s ease;
}
.hl-rail .node[data-state="done"] .dot{ border-color: rgba(250,250,248,0.72); }
.hl-rail .node[data-state="done"] .dot::after{ background: #FAFAF8; }
.hl-rail .node[data-state="active"] .dot{
  border-color: var(--state-pos);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--state-pos) 18%, transparent);
}
.hl-rail .node[data-state="active"] .dot::after{
  background: var(--state-pos);
  width: 6px; height: 6px;
}
.hl-rail .node .label{
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.hl-rail .node .label .num{ color: rgba(250,250,248,0.4); }
.hl-rail .node .label .name{ color: rgba(250,250,248,0.6); font-size: 11px; }
.hl-rail .node[data-state="done"] .label .name,
.hl-rail .node[data-state="active"] .label .name{ color: #FAFAF8; }

/* ---- Body grid --------------------------------------------------------- */
.hl-grid{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 280px;
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
}

/* col 1: video */
.hl-asset{
  border-right: 1px solid rgba(250,250,248,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hl-asset-thumb{
  position: relative;
  aspect-ratio: 9 / 14;
  background: #0e0e0d;
  border: 1px solid rgba(250,250,248,0.08);
  border-radius: var(--r-thumb);
  overflow: hidden;
}
.hl-asset-thumb video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0e0e0d;
  /* Reserve space before metadata loads — avoids column jump on first paint */
  min-height: 100%;
}
.hl-asset-thumb .badge{
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #FAFAF8;
  background: rgba(20,20,18,0.78);
  border: 1px solid rgba(250,250,248,0.14);
  border-radius: var(--r-badge);
  padding: 2px 7px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hl-asset-thumb .dur{
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #FAFAF8;
  background: rgba(20,20,18,0.78);
  padding: 2px 7px;
  border: 1px solid rgba(250,250,248,0.14);
  border-radius: var(--r-badge);
}
.hl-asset-thumb .reticle{
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
  border-style: solid;
  border-color: rgba(250,250,248,0.45);
  border-width: 0;
}
.hl-asset-thumb .reticle.tl{ top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.hl-asset-thumb .reticle.tr{ top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.hl-asset-thumb .reticle.bl{ bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.hl-asset-thumb .reticle.br{ bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

.hl-asset-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hl-asset-meta .handle{
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #FAFAF8;
  letter-spacing: -0.014em;
  margin-bottom: 4px;
}
.hl-asset-meta .row{
  display: flex; justify-content: space-between; gap: 12px;
  white-space: nowrap;
}
.hl-asset-meta .row .k{ color: rgba(250,250,248,0.42); }
.hl-asset-meta .row .v{ color: rgba(250,250,248,0.88); }

/* col 2: scores */
.hl-scoring{
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(250,250,248,0.08);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.hl-sec-label{
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(250,250,248,0.5);
}
.hl-sec-label strong{ color: #FAFAF8; font-weight: 500; }
.hl-sec-label .seq{ color: rgba(250,250,248,0.42); }

.hl-scorelist{
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(250,250,248,0.08);
}
.hl-scorerow{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 80px 56px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(250,250,248,0.06);
  font-family: var(--font-sans);
  font-size: 12.5px;
  transition: opacity 0.4s ease;
}
.hl-scorerow:last-child{ border-bottom: 0; }
.hl-scorerow .n{
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(250,250,248,0.4);
  letter-spacing: 0.04em;
}
.hl-scorerow .k{ color: rgba(250,250,248,0.8); }
.hl-scorerow .bar{
  position: relative;
  height: 3px;
  background: rgba(250,250,248,0.08);
  border-radius: var(--r-bar);
  overflow: hidden;
}
.hl-scorerow .bar i{
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(250,250,248,0.55);
  border-radius: var(--r-bar);
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hl-scorerow.signal .bar i{ background: var(--state-pos); }
.hl-scorerow .v{
  text-align: right;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #FAFAF8;
  font-variant-numeric: tabular-nums;
}
.hl-scorerow.signal .v{ color: var(--state-pos); }
.hl-scorerow.pending{ opacity: 0.35; }
.hl-scorerow.pending .v{ color: rgba(250,250,248,0.3); }
.hl-scorerow.pending .bar i{ width: 0 !important; }

/* col 3: recommendation */
.hl-reco{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.hl-action{
  border: 1px solid rgba(250,250,248,0.12);
  border-radius: var(--r-card);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(250,250,248,0.02);
  transition: all 0.4s ease;
  position: relative;
}
.hl-action.live{
  border-color: var(--state-pos);
  background: color-mix(in oklab, var(--state-pos) 6%, transparent);
}
.hl-action .ahead{
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hl-action .ahead .tag{
  color: rgba(250,250,248,0.5);
  display: inline-flex; align-items: center; gap: 6px;
}
.hl-action.live .ahead .tag{ color: #FAFAF8; }
.hl-action .ahead .stat{ color: rgba(250,250,248,0.42); }
.hl-action.live .ahead .stat{ color: var(--state-pos); }
.hl-action .body{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: #FAFAF8;
  letter-spacing: -0.014em;
  line-height: 1.2;
}
.hl-action .body::before{
  content: "▸  ";
  color: var(--state-pos);
  font-size: 14px;
}
.hl-action .why{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(250,250,248,0.55);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.hl-feedback{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid rgba(250,250,248,0.10);
  border-radius: var(--r-card);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hl-feedback.show{ opacity: 1; transform: translateY(0); }
.hl-feedback .cell{
  padding: 12px 10px;
  border-right: 1px solid rgba(250,250,248,0.10);
  display: flex; flex-direction: column; gap: 4px;
}
.hl-feedback .cell:last-child{ border-right: 0; }
.hl-feedback .k{
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.04em;
}
.hl-feedback .v{
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #FAFAF8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.012em;
}
.hl-feedback .v .sig{
  color: var(--state-pos);
  font-size: 10px;
  margin-right: 4px;
  font-family: var(--font-mono);
}

.hl-summary{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(250,250,248,0.55);
  letter-spacing: 0.02em;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(250,250,248,0.14);
}
.hl-summary .row{ display: flex; justify-content: space-between; gap: 12px; }
.hl-summary .row .v{ color: #FAFAF8; }

/* ---- Next list · vector matches panel ------------------------------- */
.hl-nextlist{
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px dashed rgba(250,250,248,0.14);
  display: flex; flex-direction: column;
  gap: 10px;
  opacity: 0.55;
  transition: opacity .45s cubic-bezier(.22,1,.36,1);
}
.hl-nextlist.show{ opacity: 1; }

.hl-nextlist .nl-head{
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(250,250,248,0.55);
}
.hl-nextlist .nl-h-l{ display: inline-flex; align-items: baseline; gap: 6px; }
.hl-nextlist .nl-h-l strong{ color: #FAFAF8; font-weight: 500; letter-spacing: 0; }
.hl-nextlist .nl-h-sep{ color: rgba(250,250,248,0.30); }
.hl-nextlist .nl-h-cohort{ color: rgba(250,250,248,0.72); }
.hl-nextlist .nl-h-r{
  color: var(--state-pos);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 9.5px;
}
.hl-nextlist:not(.show) .nl-h-r{ color: rgba(250,250,248,0.42); }

/* anchor row */
.hl-nextlist .nl-anchor{
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 6px 8px;
  border: 1px solid rgba(250,250,248,0.10);
  background: rgba(250,250,248,0.025);
  border-radius: 4px;
}
.nl-anchor .nl-a-tag{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.5);
  border: 1px solid rgba(250,250,248,0.14);
  padding: 2px 5px;
  border-radius: 2px;
}
.nl-anchor .nl-a-handle{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #FAFAF8;
  letter-spacing: -0.012em;
}
.nl-anchor .nl-a-meta{
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(250,250,248,0.5);
  text-align: right;
  letter-spacing: 0.02em;
}

.hl-nextlist .nl-rows-head{
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.42);
  padding-top: 2px;
}

.hl-nextlist .nl-rows{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.hl-nextlist .nl-row{
  display: grid;
  grid-template-columns: 26px minmax(0, 1.05fr) auto 36px 50px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(250,250,248,0.08);
  opacity: 0.18;
  transform: translateY(4px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.hl-nextlist .nl-row:last-child{ border-bottom: 0; }
/* stagger by index using nth-child */
.hl-nextlist .nl-row.on{ opacity: 1; transform: translateY(0); }
.hl-nextlist .nl-row.on:nth-child(1){ transition-delay: 0.00s; }
.hl-nextlist .nl-row.on:nth-child(2){ transition-delay: 0.10s; }
.hl-nextlist .nl-row.on:nth-child(3){ transition-delay: 0.20s; }
.hl-nextlist .nl-row.on:nth-child(4){ transition-delay: 0.30s; }
.hl-nextlist .nl-row.on:nth-child(5){ transition-delay: 0.40s; }

.nl-row .nl-n{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(250,250,248,0.42);
}
.nl-row .nl-handle{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #FAFAF8;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.nl-row .nl-region{
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(250,250,248,0.48);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nl-row .nl-bar{
  height: 2px;
  background: rgba(250,250,248,0.10);
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  width: 36px;
}
.nl-row .nl-bar i{
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--state-pos);
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.nl-row .nl-sim{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #FAFAF8;
  text-align: right;
  letter-spacing: 0;
}
.nl-row .nl-sim em{
  font-style: normal;
  font-size: 9px;
  color: rgba(250,250,248,0.5);
  margin-left: 1px;
}

.hl-nextlist .nl-foot{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(250,250,248,0.10);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(250,250,248,0.55);
}
.hl-nextlist .nl-foot-l{ display: inline-flex; align-items: center; gap: 6px; }
.hl-nextlist .nl-dot{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(250,250,248,0.32);
  display: inline-block;
}
.hl-nextlist.show .nl-dot{
  background: var(--state-pos);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--state-pos) 18%, transparent);
}
.hl-nextlist .nl-foot-r{ color: rgba(250,250,248,0.72); }
.hl-nextlist.show .nl-foot-r{ color: var(--state-pos); }

/* ---- Foot: ticker ------------------------------------------------------ */
.hl-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(250,250,248,0.10);
  background: rgba(250,250,248,0.02);
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250,250,248,0.55);
  overflow: hidden;
}
.hl-ticker{
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 18px;
}
.hl-ticker-track{
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  animation: hlTicker 32s linear infinite;
}
.hl-ticker-track .it{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(250,250,248,0.62);
}
.hl-ticker-track .it::before{
  content: ""; width: 4px; height: 4px;
  background: rgba(250,250,248,0.32);
  border-radius: 50%;
}
.hl-ticker-track .it.sig{ color: #FAFAF8; }
.hl-ticker-track .it.sig::before{
  background: var(--state-pos);
  width: 5px; height: 5px;
}
@keyframes hlTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- CTAs below panel -------------------------------------------------- */
.hl-cta-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
}
.hl-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 11px 18px;
  border: 1px solid rgba(250,250,248,0.14);
  background: transparent;
  color: #FAFAF8;
  border-radius: var(--r-btn);
  cursor: pointer;
}
.hl-cta.primary{
  background: #FAFAF8;
  color: #161614;
  border-color: #FAFAF8;
}
.hl-cta svg{ display: block; }
.hl-cta-tail{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.04em;
}
.hl-cta-tail .dot{
  width: 4px; height: 4px;
  background: rgba(250,250,248,0.5);
  border-radius: 50%;
}

/* ====================================================================
   Mobile / narrow-viewport layout
   The hero-live panel is locked to a 320 + 1fr + 280 column grid,
   so on narrow screens the right columns (Action / Next list) get
   clipped behind `overflow: hidden`. This block stacks the panel
   vertically and tightens the chrome so everything stays visible.
   ==================================================================== */
@media (max-width: 820px){
  .hl-board .container{ padding: 0 24px; }
  .hl-body{ padding: 32px 0 28px; }

  .hl-top{
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 28px;
  }
  .hl-top-r{ align-items: flex-start; }
  .hl-headline{ font-size: clamp(40px, 11vw, 60px); }
  .hl-sub{ font-size: 14px; margin-top: 16px; }

  /* Panel head: keep the brand + clock, drop the asset/node breadcrumb
     (it's repeated in the asset meta below). */
  .hl-panel{
    min-height: 0;
    height: auto;
    max-height: none;
    contain: none;
  }
  .hl-grid{ overflow: visible; }
  .hl-panel-head{ padding: 10px 14px; gap: 10px; }
  .hl-panel-head .r{ gap: 10px; font-size: 10px; }
  .hl-panel-head .r > span:not(.hl-clock):not(.sep){ display: none; }
  .hl-panel-head .r > .sep{ display: none; }

  /* Stage rail: keep the 5 dots + numbers, hide the long stage names —
     "CONTENT SIGNALS" can't fit a 55px column. The active stage name
     is already shown in the panel head meta. */
  .hl-rail{ padding: 18px 18px 14px; }
  .hl-rail .node .label .name{ display: none; }
  .hl-rail .node .label .num{ font-size: 9.5px; }

  /* Stack the 3-column body grid into a single column. */
  .hl-grid{ grid-template-columns: 1fr; }
  .hl-asset{
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(250,250,248,0.08);
    padding: 16px;
  }
  .hl-asset-thumb{
    flex: 0 0 120px;
    aspect-ratio: 9 / 14;
    max-width: 120px;
  }
  .hl-asset-meta{ flex: 1 1 auto; gap: 4px; }
  .hl-asset-meta .handle{ font-size: 16px; }

  .hl-scoring{
    padding: 18px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(250,250,248,0.08);
  }
  .hl-scorerow{
    grid-template-columns: 24px minmax(0, 1fr) 60px 44px;
    gap: 10px;
    padding: 10px 0;
    font-size: 12px;
  }
  .hl-scorerow .v{ font-size: 13px; }

  .hl-reco{ padding: 18px; gap: 12px; }
  .hl-action .body{ font-size: 16px; }
  .hl-feedback{ grid-template-columns: repeat(3, 1fr); }
  .hl-feedback .cell{ padding: 10px 8px; }
  .hl-feedback .v{ font-size: 15px; }

  /* Footer ticker stays — it's a marquee so width is fine. */
  .hl-foot{ padding: 10px 14px; }

  /* CTA row wraps with the audited-X tail dropping to its own line. */
  .hl-cta-row{ flex-wrap: wrap; gap: 10px; padding-top: 22px; }
  .hl-cta{ font-size: 12.5px; padding: 10px 16px; }
  .hl-cta-tail{
    margin-left: 0;
    flex-basis: 100%;
    order: 99;
    font-size: 10px;
  }
}

/* Very narrow screens: shrink reticles & feedback to keep everything
   inside the 360–390 px iPhone widths. */
@media (max-width: 480px){
  .hl-asset{ flex-direction: column; }
  .hl-asset-thumb{ flex: 0 0 auto; max-width: 100%; aspect-ratio: 16 / 11; }
  .hl-feedback .v{ font-size: 13px; }
  .hl-feedback .k{ font-size: 9px; }
}
