/* ============================================================
   The Epitom application UI.
   Proportions and copy are reconstructed from the source product
   recording. See hero/README.md for data provenance.
   ============================================================ */

/* ---------------- sidebar ---------------- */

.sidebar {
  width: 279px;
  flex: none;
  background: var(--hpd-paper);
  border-right: 1px solid var(--hpd-line);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand { display: flex; align-items: center; gap: 9px; padding: 7px 9px 15px; }
.brand-mark { width: 15px; height: 15px; border-radius: 3px; background: var(--hpd-ink); flex: none; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.brand-switch {
  margin-left: auto; font-size: 11.5px; color: var(--hpd-ink-faint);
  border: 1px solid var(--hpd-line-strong); border-radius: 5px; padding: 2px 7px;
}

.nav-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--hpd-ink-faint); padding: 16px 9px 7px;
  display: flex; align-items: center; gap: 7px;
}
.nav-label .beta {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
  color: var(--hpd-accent); background: var(--hpd-accent-soft);
  border-radius: 4px; padding: 1px 5px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px;
  border-radius: 7px; font-size: 13.5px; color: var(--hpd-ink-soft);
}
.nav-item svg { flex: none; opacity: 0.75; width: 15px; height: 15px; }
.nav-item.is-active { background: rgba(27, 26, 25, 0.055); color: var(--hpd-ink); font-weight: 500; }
.nav-item.is-active svg { opacity: 1; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }

.gated {
  margin-top: 10px; display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  color: var(--hpd-warn); background: var(--hpd-warn-soft);
  border-radius: 7px; padding: 7px 9px;
}
.gated svg { width: 13px; height: 13px; flex: none; }
.gated .tag {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--hpd-warn); color: #fff; border-radius: 3px; padding: 1px 4px;
}

/* ---------------- main column ---------------- */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--hpd-paper); }

.topbar {
  height: 46px; flex: none; border-bottom: 1px solid var(--hpd-line);
  background: var(--hpd-surface); display: flex; align-items: center; padding: 0 22px; gap: 10px;
}
.crumb { position: relative; width: 430px; height: 18px; }
.crumb-swap {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px;
  white-space: nowrap; font-size: 13px; color: var(--hpd-ink-soft);
}
.crumb-swap svg { width: 14px; height: 14px; flex: none; }
.crumb-swap .sep { color: var(--hpd-ink-faint); }
.crumb-swap .here { color: var(--hpd-ink); font-weight: 500; }
.topbar-right {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
  color: var(--hpd-ink-faint); font-size: 12.5px;
}
.topbar-right svg { width: 15px; height: 15px; }

.filterbar {
  height: 60px; flex: none; display: flex; align-items: center; gap: 9px;
  padding: 0 26px; border-bottom: 1px solid var(--hpd-line); background: var(--hpd-surface);
}

.chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border: 1px solid var(--hpd-line-strong);
  border-radius: 7px; font-size: 12.5px; color: var(--hpd-ink-soft); background: var(--hpd-surface);
}
.chip svg { width: 13px; height: 13px; flex: none; }
.chip .caret { color: var(--hpd-ink-faint); font-size: 9px; }
.chip.is-lit { border-color: var(--hpd-accent); color: var(--hpd-ink); background: var(--hpd-accent-soft); }
.chip .ring {
  position: absolute; inset: -3px; border: 1.5px solid var(--hpd-accent);
  border-radius: 10px; opacity: 0;
}

/* ---------------- shared furniture ---------------- */

.card {
  background: var(--hpd-surface); border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius-card); box-shadow: var(--hpd-shadow-card);
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px; }
.card-head > svg { width: 15px; height: 15px; flex: none; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.pill {
  font-size: 11.5px; color: var(--hpd-ink-soft); border: 1px solid var(--hpd-line-strong);
  border-radius: var(--hpd-radius-pill); padding: 2px 10px; white-space: nowrap;
}
.info { color: var(--hpd-ink-faint); font-size: 11px; }

.seg { display: inline-flex; border: 1px solid var(--hpd-line-strong); border-radius: 7px; overflow: hidden; margin-left: auto; }
.seg span { font-size: 11.5px; color: var(--hpd-ink-faint); padding: 4px 10px; border-right: 1px solid var(--hpd-line); }
.seg span:last-child { border-right: 0; }
.seg span.on { color: var(--hpd-ink); font-weight: 600; background: rgba(27, 26, 25, 0.05); }

.page-head { display: flex; align-items: flex-start; gap: 16px; }
.page-h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.028em; margin: 0; }
.page-sub { font-size: 13.5px; color: var(--hpd-ink-soft); margin: 7px 0 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border: 1px solid var(--hpd-line-strong); border-radius: 7px;
  font-size: 12.5px; color: var(--hpd-ink-soft); background: var(--hpd-surface);
}
.btn-ghost svg { width: 12px; height: 12px; }
.btn-accent {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 16px; background: var(--hpd-accent); color: var(--hpd-accent-ink);
  border-radius: var(--hpd-radius-pill); font-size: 12.5px; font-weight: 600;
}
.btn-accent .ring {
  position: absolute; inset: -4px; border: 1.5px solid var(--hpd-accent);
  border-radius: var(--hpd-radius-pill); opacity: 0;
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  background: var(--hpd-ink); color: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 500;
}

/* ---------------- Overview: summary + next best actions ---------------- */

#ovSummary { position: absolute; top: 0; left: 26px; right: 26px; height: 218px; overflow: hidden; }
.sum-badge {
  width: 21px; height: 21px; border-radius: 5px; background: var(--hpd-accent-soft);
  color: var(--hpd-accent); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.sum-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.sum-line { font-size: 13px; line-height: 1.55; color: var(--hpd-ink-soft); display: flex; gap: 9px; }
.sum-line::before { content: "•"; color: var(--hpd-ink-faint); flex: none; }
.sum-line b { color: var(--hpd-ink); font-weight: 600; }

#ovActions { position: absolute; top: 290px; left: 26px; right: 26px; height: 280px; }
.nba-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 14px; }
.nba-head svg { width: 16px; height: 16px; flex: none; }
.nba-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.nba-head .btn-ghost { margin-left: auto; }
.nba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nba-card { padding: 15px 17px; display: flex; flex-direction: column; gap: 9px; min-height: 208px; }
.nba-top { display: flex; align-items: center; gap: 10px; }
.nba-kind { font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--hpd-ink-faint); }
.nba-impact {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: var(--hpd-bad); background: var(--hpd-bad-soft);
  border-radius: var(--hpd-radius-pill); padding: 2px 8px;
}
.nba-impact::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nba-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.008em; }
.nba-desc { font-size: 12px; line-height: 1.5; color: var(--hpd-ink-soft); }
.nba-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--hpd-ink-soft);
  border: 1px solid var(--hpd-line); border-radius: 6px; padding: 4px 8px;
  max-width: 205px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.src-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--hpd-ink-faint); border: 1px solid var(--hpd-line); border-radius: 5px; padding: 3px 6px;
}
.nba-foot .btn-accent { margin-left: auto; height: 27px; min-width: 44px; padding: 0 13px; font-size: 12px; }

/* ---------------- Command Center row ---------------- */

#ovRow { position: absolute; top: 600px; left: 26px; right: 26px; height: 520px; display: flex; gap: 22px; }
#ccTraj { width: 1047px; flex: none; display: flex; flex-direction: column; }
#ccLead { flex: 1; display: flex; flex-direction: column; }

.plot { position: relative; flex: 1; padding: 6px 22px 0; min-height: 0; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: var(--hpd-line); stroke-width: 1; }
.axis-text { font-family: var(--hpd-font); font-size: 15px; fill: var(--hpd-ink-faint); }
.series { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.xaxis { display: flex; justify-content: space-between; padding: 8px 22px 0 78px; font-size: 11.5px; color: var(--hpd-ink-faint); }

.chart-foot {
  border-top: 1px solid var(--hpd-line); margin-top: 12px; padding: 13px 20px;
  display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--hpd-ink-faint);
}
.tabs { margin-left: auto; display: flex; gap: 3px; position: relative; }
.tab { font-size: 12.5px; color: var(--hpd-ink-faint); padding: 5px 13px; border-radius: 6px; white-space: nowrap; }
.tab.on { color: var(--hpd-ink); font-weight: 600; }
.tab-underline { position: absolute; bottom: -3px; height: 2px; background: var(--hpd-accent); border-radius: 2px; opacity: 0; }

.tooltip {
  position: absolute; background: var(--hpd-surface); border: 1px solid var(--hpd-line-strong);
  border-radius: 9px; box-shadow: var(--hpd-shadow-card); padding: 10px 12px; min-width: 196px; opacity: 0;
}
.tt-date { font-size: 11px; color: var(--hpd-ink-faint); margin-bottom: 7px; }
.tt-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 0; }
.tt-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tt-row .nm { color: var(--hpd-ink-soft); }
.tt-row .vl { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* leaderboard */

.lb { flex: 1; display: flex; flex-direction: column; padding: 0 6px 6px; min-height: 0; }
.lb-row {
  display: grid; grid-template-columns: 40px 1fr 132px 116px 122px 122px;
  align-items: center; padding: 0 14px; height: 62px; font-size: 13.5px;
}
.lb-row.head { height: 40px; font-size: 11.5px; color: var(--hpd-ink-faint); border-bottom: 1px solid var(--hpd-line); }
.lb-row .num { color: var(--hpd-ink-faint); font-size: 12px; }
.lb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.lb-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owned {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--hpd-warn);
  background: var(--hpd-warn-soft); border-radius: 4px; padding: 2px 6px; flex: none;
}
.lb-cell { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.lb-cell .v { font-weight: 500; }
.lb-cell .d { font-size: 10px; }
.lb-cell .d.up { color: var(--hpd-good); }
.lb-cell .d.dn { color: var(--hpd-bad); }
.lb-row + .lb-row:not(.head) { border-top: 1px solid var(--hpd-line); }
#lbHero { border-radius: 10px; }
#lbHeroVis .v { font-weight: 600; }

/* bottom strip — peripheral only */

#ovBottom { position: absolute; top: 1150px; left: 26px; right: 26px; height: 450px; display: flex; gap: 22px; }
#ovBottom > .card { flex: 1; display: flex; flex-direction: column; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 40px; padding: 24px 40px 30px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; display: block; }
.mv-group { font-size: 11px; font-weight: 600; color: var(--hpd-good); padding: 10px 16px 6px; display: flex; align-items: center; gap: 7px; }
.mv-row {
  display: grid; grid-template-columns: 34px 1fr 110px 110px 104px; align-items: center;
  height: 52px; padding: 0 16px; font-size: 13px; border-top: 1px solid var(--hpd-line);
}

/* ---------------- Prompts ---------------- */

#pmWrap { display: flex; gap: 22px; }
#pPrompts .page-head { position: absolute; left: 0; right: 0; top: -72px; padding-left: 26px; }
#pmTopics { width: 320px; flex: none; height: auto; align-self: flex-start; padding: 14px; }
#pmTable { flex: 1; height: 976px; overflow: hidden; padding: 0; }
.tp-head { display: flex; align-items: center; padding: 4px 8px 12px; font-size: 13px; font-weight: 600; }
.tp-head .meta { margin-left: auto; font-weight: 400; font-size: 11.5px; color: var(--hpd-ink-faint); }
.tp-add { font-size: 12px; color: var(--hpd-accent); padding: 7px 8px; }
.tp-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px; font-size: 12.5px; color: var(--hpd-ink-soft); }
.tp-item.on { background: rgba(27, 26, 25, 0.05); color: var(--hpd-ink); font-weight: 500; }
.tp-item svg { width: 13px; height: 13px; flex: none; }
.tp-item .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tp-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-item .pc { margin-left: auto; font-size: 11px; color: var(--hpd-good); font-variant-numeric: tabular-nums; }
.tp-item .ct { font-size: 11px; color: var(--hpd-ink-faint); width: 16px; text-align: right; }

.pm-controls { display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 22px; font-size: 12.5px; color: var(--hpd-ink-faint); }
.pm-controls .t.on { color: var(--hpd-ink); font-weight: 600; }
.pm-controls .right { margin-left: auto; font-size: 12px; }
.pm-tabs { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-bottom: 1px solid var(--hpd-line); }
.pm-tab { font-size: 12.5px; padding: 5px 12px; border-radius: 7px; color: var(--hpd-ink-faint); }
.pm-tab.on { background: rgba(27, 26, 25, 0.05); color: var(--hpd-ink); font-weight: 500; }
.pm-tabs .btn-dark { margin-left: auto; }

.pr-row {
  display: grid; grid-template-columns: 42px 660px 125px 115px 125px 115px 170px 115px 145px 1fr;
  align-items: center; height: 56px; padding: 0 22px; font-size: 13px; font-variant-numeric: tabular-nums;
}
.pr-row.head { height: 46px; font-size: 11.5px; color: var(--hpd-ink-faint); border-bottom: 1px solid var(--hpd-line); font-variant-numeric: normal; }
.pr-row + .pr-row:not(.head) { border-top: 1px solid var(--hpd-line); }
.pr-box { width: 13px; height: 13px; border: 1px solid var(--hpd-line-strong); border-radius: 3.5px; }
.pr-text { padding-right: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-pos { color: var(--hpd-ink-soft); }
.pr-sent { color: var(--hpd-good); font-weight: 500; }
.pr-sent.zero { color: var(--hpd-ink-faint); font-weight: 400; }
.loc { font-size: 11.5px; color: var(--hpd-ink-faint); }

.eng { display: flex; align-items: center; }
.eng i {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--hpd-surface);
  background: var(--hpd-ink-faint); display: block; margin-left: -5px; opacity: 0.34;
}
.eng i:first-child { margin-left: 0; }
.eng .n { margin-left: 8px; font-size: 11.5px; color: var(--hpd-ink-faint); }

.vol { display: flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.vol i { width: 3.5px; background: var(--hpd-good); border-radius: 1px; display: block; }

.tag-b { font-size: 10px; color: var(--hpd-ink-soft); border: 1px solid var(--hpd-line); border-radius: 5px; padding: 2px 7px; }
.tag-b.cmp { color: var(--hpd-accent); border-color: var(--hpd-accent); background: var(--hpd-accent-soft); font-weight: 600; }
.tag-plus { font-size: 11px; color: var(--hpd-ink-faint); border: 1px dashed var(--hpd-line-strong); border-radius: 5px; padding: 2px 7px; }

/* ---------------- Citations ---------------- */

.cite-row { display: flex; gap: 22px; margin-top: 26px; }
#citeRetrieval { width: 1047px; flex: none; height: 420px; display: flex; flex-direction: column; }
#citeTypes { flex: 1; height: 420px; }
#pCitations .cite-row { justify-content: center; }
#citeEvidenceRow { display: none; }
#citeOverview { margin-top: 24px; }
#citePromptOverview { padding: 18px 24px 20px; overflow: hidden; }
.cite-overview-kicker {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; color: var(--hpd-ink-faint);
}
.cite-overview-kicker span:last-child { letter-spacing: 0.04em; font-weight: 600; }
#citePromptOverview h2 { margin: 10px 0 0; font-size: 26px; line-height: 1.18; letter-spacing: -0.024em; }
#citePromptOverview p { max-width: 1660px; margin: 9px 0 0; font-size: 14px; line-height: 1.45; color: var(--hpd-ink-soft); }
#citePromptOverview p b { color: var(--hpd-ink); font-weight: 600; }
.cite-overview-engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.cite-overview-engines > span {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--hpd-line); border-radius: 8px; background: var(--hpd-paper);
}
.cite-overview-engines b { font-size: 12.5px; font-weight: 600; }
.cite-overview-engines small { font-size: 11px; color: var(--hpd-ink-faint); white-space: nowrap; }
.cite-overview-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  border-top: 1px solid var(--hpd-line); margin-top: 15px; padding-top: 11px;
}
.cite-overview-meta span { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--hpd-ink-faint); }
.cite-overview-meta b { font-size: 11.5px; text-transform: none; letter-spacing: 0; color: var(--hpd-ink-soft); font-weight: 600; }
#citeOverviewRow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; margin-top: 18px; }
#citeOverviewLeaderboard, #citeOverviewRow #citeTypes { height: 360px; min-width: 0; overflow: hidden; }
#citeOverviewLeaderboard { display: flex; flex-direction: column; }
#citeOverviewLeaderboard .card-head, #citeOverviewRow #citeTypes .card-head { padding: 14px 16px; }
.cite-overview-lb { padding: 0 6px 6px; }
.cite-overview-lb .lb-row { grid-template-columns: 30px minmax(0, 1fr) 80px 70px 78px 78px; height: 42px; padding: 0 10px; font-size: 11px; }
.cite-overview-lb .lb-row.head { height: 32px; font-size: 9px; }
.cite-overview-lb .lb-brand { gap: 6px; }
.cite-overview-lb .lb-swatch { width: 8px; height: 8px; }
.cite-overview-lb .owned { font-size: 7px; padding: 1px 4px; }
#citeOverviewRow #citeTypes { flex: none; width: auto; }
#citeOverviewRow #citeTypes .type-list { padding: 4px 16px 12px; }
#citeOverviewRow #citeTypes .type-row { grid-template-columns: 125px minmax(0, 1fr) 48px; height: 36px; font-size: 11px; gap: 10px; }
#citeOverviewRow #citeTypes .type-row .nm { gap: 7px; }
.count-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hpd-ink-soft);
  border: 1px solid var(--hpd-line-strong); border-radius: 8px; padding: 6px 12px;
}
.count-pill b { color: var(--hpd-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.type-list { padding: 4px 20px 16px; display: flex; flex-direction: column; }
.type-row { display: grid; grid-template-columns: 190px 1fr 74px; align-items: center; gap: 16px; height: 42px; font-size: 13px; }
.type-row .nm { display: flex; align-items: center; gap: 9px; color: var(--hpd-ink-soft); }
.type-row .nm i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.type-track { height: 7px; background: var(--hpd-line); border-radius: 4px; overflow: hidden; }
.type-track b { display: block; height: 100%; border-radius: 4px; width: 0; }
.type-row .pc { text-align: right; font-variant-numeric: tabular-nums; color: var(--hpd-ink-soft); }
.type-row.is-gap .nm, .type-row.is-gap .pc { color: var(--hpd-ink); font-weight: 600; }

#citeUrls { margin-top: 24px; height: 500px; overflow: hidden; }
.cu-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--hpd-ink-soft); }
.toggle .track { width: 38px; height: 21px; border-radius: 100px; background: var(--hpd-line-strong); position: relative; display: block; }
.toggle .track i { position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.cu-filters { display: flex; align-items: center; gap: 9px; padding: 0 20px 14px; }
.cu-filters .btn-ghost { margin-left: auto; }
.cu-row {
  display: grid; grid-template-columns: 1fr 140px 130px 150px 118px 140px 120px;
  align-items: center; height: 62px; padding: 0 20px; font-size: 13px; font-variant-numeric: tabular-nums;
}
.cu-row.head { height: 44px; font-size: 11.5px; color: var(--hpd-ink-faint); border-bottom: 1px solid var(--hpd-line); font-variant-numeric: normal; }
.cu-row + .cu-row:not(.head) { border-top: 1px solid var(--hpd-line); }
.cu-title { display: block; font-size: 13px; color: var(--hpd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 22px; }
.cu-url { display: block; font-size: 11px; color: var(--hpd-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gap-score { font-weight: 600; }

/* ---------------- Opportunities ---------------- */

.opp-wrap { display: flex; gap: 22px; margin-top: 22px; }
#oppRail { width: 300px; flex: none; }
.rail-tabs { display: flex; gap: 22px; font-size: 13px; padding: 0 10px 6px; }
.rail-tabs .on { font-weight: 600; border-bottom: 2px solid var(--hpd-ink); padding-bottom: 8px; }
.rail-tabs .on span, .rail-tabs .off span { color: var(--hpd-ink-faint); font-weight: 400; }
.rail-tabs .off { color: var(--hpd-ink-faint); padding-bottom: 8px; }
.rail-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--hpd-ink-faint); padding: 14px 10px 8px; }
.rail-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 13px; color: var(--hpd-ink-soft); }
.rail-item.on { background: rgba(27, 26, 25, 0.05); color: var(--hpd-ink); font-weight: 500; }
.rail-item .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--hpd-good); }

#oppList {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.opp { padding: 20px 22px; display: flex; flex-direction: column; gap: 11px; }
.opp-kind { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hpd-ink-faint); }
.opp-kind .lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.opp-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.opp-desc { font-size: 13px; color: var(--hpd-ink-soft); }
.opp-warn { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--hpd-warn); }
.opp-evidence { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--hpd-ink-soft);
  border: 1px solid var(--hpd-line); border-radius: 7px; padding: 6px 10px; background: var(--hpd-surface);
}
.ev-chip b { color: var(--hpd-ink); font-weight: 600; }
.ev-chip .peek { color: var(--hpd-ink-faint); border-left: 1px solid var(--hpd-line); padding-left: 8px; margin-left: 2px; }
.opp-foot { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--hpd-ink-faint); }
.impact {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  color: var(--hpd-good); background: var(--hpd-good-soft); border-radius: var(--hpd-radius-pill); padding: 3px 10px;
}
.impact::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.opp-foot .why { color: var(--hpd-ink-soft); }
.opp-state { white-space: nowrap; }
.opp.is-focus { border-color: var(--hpd-accent); box-shadow: 0 12px 30px -12px rgba(84, 68, 236, 0.34); }
.opp-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.opp-cta .btn-accent { height: 32px; }
.opp-cta-action.is-done { background: var(--hpd-good); color: #fff; }
.credits { font-size: 11px; color: var(--hpd-ink-faint); }
.btn-locked {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  border: 1px solid var(--hpd-line-strong); border-radius: var(--hpd-radius-pill);
  font-size: 12.5px; color: var(--hpd-ink-faint); background: var(--hpd-paper);
}

/* ---------------- Action panel ---------------- */

/* Geometry is fixed for the whole film — only the HEIGHT animates as the
   panel moves opportunity -> run -> agent. Changing left/top/width makes
   the panel jump. */
#actionPanel {
  position: absolute; left: 510px; top: 34px; width: 1180px;
  background: var(--hpd-surface); border: 1px solid var(--hpd-line-strong);
  border-radius: 16px; box-shadow: var(--hpd-shadow-panel); overflow: hidden;
}
.ap-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hpd-line); }
.ap-head .t { font-size: 14px; font-weight: 600; }
.ap-head .x { margin-left: auto; color: var(--hpd-ink-faint); font-size: 15px; }

.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  border-radius: var(--hpd-radius-pill); padding: 3px 10px;
  color: var(--hpd-good); background: var(--hpd-good-soft);
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.running { color: var(--hpd-accent); background: var(--hpd-accent-soft); }

.ap-stage { position: relative; overflow: hidden; }
.ap-face { position: absolute; top: 0; left: 0; width: 100%; padding: 22px; opacity: 0; }

.ap-crumb { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--hpd-ink-faint); }
.ap-crumb .impact { margin-left: auto; }
.ap-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 0; }

.ap-why { margin-top: 16px; background: var(--hpd-paper); border: 1px solid var(--hpd-line); border-radius: 10px; padding: 15px 17px; }
.ap-why .lbl { font-size: 11px; font-weight: 600; color: var(--hpd-ink); margin-bottom: 6px; }
.ap-why p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--hpd-ink-soft); }
.ap-why .out { margin-top: 11px; font-size: 12.5px; line-height: 1.5; color: var(--hpd-ink-soft); }
.ap-why .out b { color: var(--hpd-ink); font-weight: 600; }

.bd-head { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hpd-ink-soft); }
.bd-head svg { width: 13px; height: 13px; }
.bd-head .car { color: var(--hpd-ink-faint); font-size: 10px; }
.bd-grid { margin-top: 10px; border: 1px solid var(--hpd-line); border-radius: 10px; overflow: hidden; }
.bd-row { display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--hpd-line); }
.bd-row:last-child { border-bottom: 0; }
.bd-k { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hpd-ink-faint); }
.bd-v { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--hpd-ink-soft); flex-wrap: wrap; }
.bd-v b { color: var(--hpd-ink); font-weight: 600; }
.bd-v .q { font-style: italic; }

.stat-grid {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hpd-line); border: 1px solid var(--hpd-line); border-radius: 10px; overflow: hidden;
}
.stat { background: var(--hpd-surface); padding: 13px 15px; }
.stat .k { font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hpd-ink-faint); }
.stat .v { margin-top: 5px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

.ap-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--hpd-line); background: var(--hpd-paper); }
.skill-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--hpd-ink-soft);
  border: 1px solid var(--hpd-line-strong); border-radius: 7px; padding: 6px 10px; background: var(--hpd-surface);
}
.skill-chip b { color: var(--hpd-ink); font-weight: 600; }
.ap-foot .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* agent faces */

.ag-head { display: flex; align-items: flex-start; gap: 12px; }
.ag-title { font-size: 15px; font-weight: 600; }
.ag-sub { font-size: 12.5px; color: var(--hpd-ink-soft); margin-top: 4px; }
.ag-step-count { margin-left: auto; font-size: 11.5px; color: var(--hpd-ink-faint); white-space: nowrap; }
.ag-bar { margin-top: 15px; height: 3px; background: var(--hpd-line); border-radius: 3px; overflow: hidden; }
.ag-bar i { display: block; height: 100%; width: 0; background: var(--hpd-accent); border-radius: 3px; }
.ag-steps { margin-top: 16px; border-top: 1px solid var(--hpd-line); }
.ag-step { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--hpd-line); }
.ag-step.tall { align-items: flex-start; padding: 15px 2px; }
.ag-step:last-child { border-bottom: 0; }
.ag-mark { width: 16px; height: 16px; flex: none; }
.ag-mark .ring2 { fill: none; stroke: var(--hpd-line-strong); stroke-width: 1.6; }
.ag-mark .tick { fill: none; stroke: var(--hpd-good); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ag-mark .spin { fill: none; stroke: var(--hpd-accent); stroke-width: 1.8; stroke-linecap: round; }
.ag-name { font-size: 13.5px; font-weight: 500; }
.ag-name.muted { color: var(--hpd-ink-faint); }
.ag-detail { font-size: 12px; color: var(--hpd-ink-soft); margin-top: 3px; }
.ag-note { margin-left: auto; font-size: 11.5px; color: var(--hpd-ink-faint); }

/* ---------------- Artifact: FAQ answer + LinkedIn execution ---------------- */

#artifactPanel {
  position: absolute; left: 430px; top: 46px; width: 1340px;
  background: var(--hpd-surface); border: 1px solid var(--hpd-line-strong);
  border-radius: 16px; box-shadow: var(--hpd-shadow-panel); overflow: hidden;
}
.af-head { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--hpd-line); }
.af-head .t { font-size: 14px; font-weight: 600; }
.af-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-ghost-sm { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--hpd-line-strong); border-radius: 7px; font-size: 12px; color: var(--hpd-ink-soft); background: var(--hpd-surface); }
.btn-dark-sm { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--hpd-ink); color: #fff; border-radius: 7px; font-size: 12px; font-weight: 500; }

.af-doc { padding: 20px 24px 24px; }
.af-doctitle { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--hpd-line); }
.artifact-type-icons { position: relative; width: 15px; height: 15px; flex: none; }
.artifact-type-icons > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.artifact-type-icons .linkedin-icon { width: 15px; height: 15px; }
.af-doctitle svg { width: 15px; height: 15px; flex: none; }
.af-doctitle .nm { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.af-doctitle .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.af-tool { font-size: 11.5px; color: var(--hpd-ink-soft); border: 1px solid var(--hpd-line); border-radius: 6px; padding: 4px 9px; }
.af-tool.on { color: var(--hpd-ink); background: var(--hpd-paper); border-color: var(--hpd-line-strong); font-weight: 500; }
.af-publish { font-size: 11.5px; font-weight: 600; color: var(--hpd-accent-ink); background: var(--hpd-accent); border-radius: 6px; padding: 5px 12px; }

#artifactViews { position: relative; height: 560px; }
.artifact-view { position: absolute; inset: 0; opacity: 0; }
.brief-kicker { padding: 20px 0 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hpd-ink-faint); }

.faq-answer { border: 1px solid var(--hpd-line-strong); border-radius: 12px; padding: 6px 24px; background: var(--hpd-paper); box-shadow: var(--hpd-shadow-card); }
.faq-answer__item { padding: 16px 0; }
.faq-answer__item + .faq-answer__item { border-top: 1px solid var(--hpd-line); }
.faq-answer__item h3 { margin: 0; font-size: 16px; line-height: 1.35; letter-spacing: -0.012em; }
.faq-answer__item p { margin: 7px 0 0; max-width: 1020px; font-size: 13.5px; line-height: 1.55; color: var(--hpd-ink-soft); }

.brief-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--hpd-line); }
.brief-row:last-child { border-bottom: 0; }
.brief-k { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hpd-ink-faint); padding-top: 3px; }
.brief-v { font-size: 13.5px; color: var(--hpd-ink); line-height: 1.5; }
.brief-v .muted { color: var(--hpd-ink-soft); }
.brief-v .q { font-style: italic; }
.src-row { display: flex; flex-wrap: wrap; gap: 8px; }
.src { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--hpd-ink-soft); border: 1px solid var(--hpd-line); border-radius: 7px; padding: 5px 10px; background: var(--hpd-surface); }
.src b { color: var(--hpd-ink); font-weight: 600; }
.src .rate { color: var(--hpd-ink-faint); border-left: 1px solid var(--hpd-line); padding-left: 7px; }
.struct { display: flex; flex-direction: column; gap: 7px; }
.struct div { display: flex; gap: 10px; font-size: 12.5px; color: var(--hpd-ink-soft); }
.struct div i { color: var(--hpd-ink-faint); font-style: normal; width: 15px; flex: none; font-variant-numeric: tabular-nums; }

.li-view-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 17px; }
.li-branding { display: flex; align-items: center; gap: 10px; }
.linkedin-icon { display: block; width: 30px; height: 30px; flex: none; object-fit: contain; }
.linkedin-icon--small { width: 14px; height: 14px; color: currentColor; }
.li-platform { font-size: 15px; font-weight: 600; }
.li-caption { margin-top: 3px; font-size: 12px; color: var(--hpd-ink-soft); }
.li-ready { font-size: 11.5px; font-weight: 600; color: var(--hpd-good); background: var(--hpd-good-soft); border-radius: var(--hpd-radius-pill); padding: 5px 10px; }
.li-post { max-width: 720px; margin: 8px auto 0; padding: 20px; border: 1px solid var(--hpd-line-strong); border-radius: 12px; background: var(--hpd-surface); box-shadow: var(--hpd-shadow-card); }
.li-post-head { display: flex; align-items: center; gap: 10px; }
.li-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--hpd-accent-ink); background: var(--hpd-ink); font-size: 14px; font-weight: 700; }
.li-author { font-size: 13px; font-weight: 600; }
.li-meta { margin-top: 3px; font-size: 11px; color: var(--hpd-ink-faint); }
.li-copy { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--hpd-ink); }
.li-grounded { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--hpd-line); font-size: 11.5px; color: var(--hpd-ink-soft); }
.li-grounded svg { width: 14px; height: 14px; color: var(--hpd-accent); }
.li-footer { display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 19px auto 0; }
.li-draft-state { font-size: 11.5px; color: var(--hpd-ink-faint); }
.li-footer .af-publish { display: inline-flex; align-items: center; gap: 7px; }
