/* Ermineline application + marketing styles. Tokens live in brand.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ermineline-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--ermineline-font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: var(--ink);
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------- Shared chrome ---------- */
.sample-banner {
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gold);
}
.sample-banner a { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn.primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}
.btn.gold:hover { background: var(--gold); color: var(--ink); }
.btn.small { padding: 7px 12px; font-size: 11px; }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Chips, sentiment, severity ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  color: var(--stone);
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--paper);
}
.sent {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}
.sent.pos { color: var(--color-pos); background: rgba(63,90,58,0.08); border-color: rgba(63,90,58,0.25); }
.sent.neg { color: var(--color-neg); background: rgba(122,58,58,0.08); border-color: rgba(122,58,58,0.25); }
.sent.neu { color: var(--stone); background: rgba(140,136,131,0.1); }

/* ---------- App shell ---------- */
.app {
  display: flex;
  min-height: calc(100vh - 33px);
  background: var(--ivory);
}
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 28px 0 20px;
  min-height: calc(100vh - 33px);
}
.brand { padding: 0 22px 28px; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-lockup:hover { color: inherit; }
.brand-mark { width: 28px; height: 38px; flex: 0 0 28px; color: var(--ivory); }
.brand-name {
  font-family: var(--ermineline-font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--ermineline-font-body);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--sidebar-muted);
  margin-top: 3px;
  text-transform: none;
  font-style: italic;
}
.nav { flex: 1; padding: 0 12px; }
.nav-section {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 10px 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #D9D4CC;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--ivory); background: rgba(247,244,239,0.06); }
.nav a.active {
  color: var(--ivory);
  background: rgba(196,163,90,0.14);
  box-shadow: inset 2px 0 0 var(--gold);
}
.nav a .num {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
  width: 14px;
  text-align: center;
  flex: 0 0 14px;
}
.sidebar-foot {
  padding: 16px 22px 4px;
  font-size: 11px;
  color: var(--sidebar-muted);
  line-height: 1.45;
  border-top: 1px solid rgba(217,212,204,0.15);
  margin: 16px 12px 0;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 36px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--ivory);
}
.topbar h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 500;
}
.topbar .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--stone);
}
.content { padding: 28px 36px 56px; }

/* ---------- Panels, grids, metrics ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0;
}
.panel h2 {
  font-size: 20px;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.panel h2 .hint,
.hint {
  font-family: var(--ermineline-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-style: normal;
}
.grid-2, .grid-4, .grid-3 {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { width: 220px; flex-basis: 220px; }
  .content, .topbar { padding-left: 20px; padding-right: 20px; }
}

.metric {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.metric::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 2px;
  background: var(--gold);
}
.metric .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.metric .value {
  font-family: var(--ermineline-font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric .delta { font-size: 12px; color: var(--stone); margin-top: 6px; }
.metric .delta.up { color: var(--color-pos); }
.metric .delta.down { color: var(--color-neg); }

/* ---------- Charts ---------- */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 180px;
  padding: 12px 4px 0;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(to top, rgba(196,163,90,0.07), transparent 55%);
  position: relative;
}
.chart .bar {
  flex: 1;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.chart .bar:nth-child(odd) { opacity: 0.78; }
.chart .chart-label { display: none; }
.chart.line {
  display: block;
  background: linear-gradient(to top, rgba(196,163,90,0.06), transparent 55%);
  padding: 8px 4px 0;
  height: auto;
}
.chart.line svg { width: 100%; height: 150px; display: block; }
.chart.stacked { align-items: stretch; height: 220px; gap: 14px; padding-top: 8px; }
.chart.stacked .stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}
.chart.stacked .seg { width: 100%; }
.chart.stacked .seg.pos { background: var(--color-pos); }
.chart.stacked .seg.neu { background: var(--hairline); }
.chart.stacked .seg.neg { background: var(--color-neg); }
.chart-caption {
  font-size: 11px;
  color: var(--stone);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Share-of-voice bars (competitors) */
.sov-bar {
  display: flex;
  height: 14px;
  background: rgba(217,212,204,0.5);
  border-radius: 1px;
  overflow: hidden;
  margin: 6px 0 14px;
}
.sov-bar > span { display: block; height: 100%; }
.sov-bar .acme { background: var(--gold); }
.sov-bar .bb { background: var(--ink); }
.sov-bar .st { background: #5C5854; }
.sov-bar .it { background: var(--stone); }

/* ---------- Tables ---------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 10px 8px 0;
}
table.data td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data th, table.data td { padding-right: 12px; }
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data .right { text-align: right; padding-right: 16px; }
table.data th.right { text-align: right; }
table.data strong { font-weight: 600; }

/* ---------- Mentions, alerts ---------- */
.mention-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.mention-row:last-child { border-bottom: 0; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  flex: 0 0 36px;
  font-weight: 500;
}
.mention-row .handle { font-weight: 600; margin-right: 8px; }
.mention-row .when { color: var(--stone); font-size: 12px; margin-right: 8px; }
.mention-row .text { margin: 4px 0 6px; }
.mention-row .stats { font-size: 12px; color: var(--stone); display: flex; gap: 14px; }

.alert-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.alert-item:last-of-type { border-bottom: 0; }
.sev {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 8px;
}
.sev.high { background: var(--color-alert-high); box-shadow: 0 0 0 4px rgba(122,58,58,0.15); }
.sev.med { background: var(--color-alert-med); box-shadow: 0 0 0 4px rgba(154,122,50,0.15); }
.sev.low { background: var(--stone); }
.muted { color: var(--stone); }
.wire-note {
  font-size: 13px;
  color: var(--stone);
  margin: 12px 0 0;
}
.wire-note a { color: var(--ink); }

/* ---------- Forms, steps, tabs ---------- */
label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="search"],
input[type="date"], select, textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 9px 11px;
  border-radius: 2px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,163,90,0.18);
}
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tag-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  border: 1px solid var(--hairline); background: #fff; padding: 6px 8px; border-radius: 2px;
}
.tag {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 13px;
}
.steps {
  display: flex;
  gap: 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  list-style: none;
}
.steps .step, .steps li, .step {
  flex: 1;
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--stone);
  position: relative;
  text-align: left;
}
.step::after {
  content: "";
  position: absolute;
  left: 0; right: 16px; bottom: -1px;
  height: 2px;
  background: transparent;
}
.step.active, .steps .active { color: var(--ink); font-weight: 600; }
.step.active::after, .steps .active::after { background: var(--gold); }
.step .n, .step-num {
  display: inline-block;
  width: 20px; height: 20px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 11px;
  margin-right: 6px;
}
.step.active .n, .step.active .step-num { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.step-panel { display: none; }
.step-panel.active, .step-panel[aria-hidden="false"] { display: block; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; }
.tabs a, .tabs button, .tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 14px 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
  text-decoration: none;
}
.tabs a.active, .tabs button.active, .tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Price cards (onboarding review + residual) */
.price-card, .pkg-card {
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 22px 22px 20px;
  border-radius: 3px;
  position: relative;
}
.price-card.featured, .pkg-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}
.price-card.featured::before, .pkg-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -10px; left: 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
}
.price, .pkg-price {
  font-family: var(--ermineline-font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.price small, .pkg-price small { font-size: 14px; color: var(--stone); font-family: var(--ermineline-font-body); }

/* Filters / toolbars */
.toolbar, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar select, .filters select, .toolbar input, .filters input { width: auto; }

/* ---------- Marketing landing ---------- */
.mkt { background: var(--ivory); color: var(--ink); }
.mkt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 33px;
  background: rgba(247,244,239,0.96);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.mkt-nav .lockup {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.mkt-nav .lockup svg { width: 26px; height: 36px; }
.mkt-nav .lockup .nm {
  font-family: var(--ermineline-font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 15px;
}
.mkt-nav ul {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.mkt-nav ul a { text-decoration: none; color: var(--ink); }
.mkt-nav ul a:hover { color: var(--gold); }
.mkt-nav .nav-cta { display: flex; gap: 10px; align-items: center; }

.hero {
  padding: 88px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 22px;
}
.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #3a3a3a;
  max-width: 36em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-aside {
  background: var(--ink);
  color: var(--ivory);
  padding: 32px 28px 28px;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.hero-aside::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.hero-aside .mini-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(217,212,204,0.18); }
.hero-stat .k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hairline); }
.hero-stat .v { font-family: var(--ermineline-font-display); font-size: 26px; }
.hero-aside .caption { font-size: 11px; color: #B7B2AB; margin-top: 16px; font-style: italic; }

.section { padding: 80px 48px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section h2 { font-size: 36px; margin-bottom: 8px; }
.section .intro { color: #3a3a3a; max-width: 40em; margin: 0 0 40px; font-size: 17px; }
.gold-rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 0 0 22px; }

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.how-step {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 28px 26px 26px;
  border-radius: 3px;
}
.how-step .n {
  font-family: var(--ermineline-font-display);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 22px; margin-bottom: 8px; }
.how-step p { margin: 0; color: #3a3a3a; font-size: 15px; }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg-card h3 { font-size: 24px; margin: 0 0 4px; }
.pkg-card .who { color: var(--stone); font-size: 13px; margin: 0 0 16px; }
.pkg-card ul { margin: 16px 0 22px; padding: 0 0 0 18px; color: #3a3a3a; }
.pkg-card li { margin: 6px 0; }
.pkg-card .pkg-price { margin: 8px 0 4px; }
.addons { margin-top: 48px; }
.addons table.data { background: var(--paper); }
.addons table.data td, .addons table.data th { padding: 12px 16px; }

.cta-band {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 48px;
}
.cta-band .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-band h2 { color: var(--ivory); font-size: 36px; }
.cta-band p { color: #D9D4CC; }
.cta-band .placeholder-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.cta-band label { color: var(--hairline); }
.cta-band input, .cta-band select, .cta-band textarea {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: var(--ivory);
}
.cta-band input:focus, .cta-band select:focus, .cta-band textarea:focus {
  border-color: var(--gold);
}
.cta-band .btn.primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.cta-band .btn.primary:hover { background: var(--gold); border-color: var(--gold); }

.mkt-footer {
  padding: 28px 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--stone);
  background: var(--ivory);
}
.mkt-footer a { color: var(--stone); text-decoration: none; }
.mkt-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero, .cta-band .section-inner, .how, .packages { grid-template-columns: 1fr; }
  .mkt-nav, .hero, .section, .cta-band, .mkt-footer { padding-left: 22px; padding-right: 22px; }
  .mkt-nav ul { display: none; }
}

/* Onboarding package selector residual */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; } }
.price-card.selected, .pkg-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* Residual wireframe utility classes, restyled */
.progress { height: 8px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold); }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .row-fields, .field-row { grid-template-columns: 1fr; } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.spacer { flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.help { font-size: 12px; color: var(--stone); margin-top: 6px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--hairline); background: #fff; padding: 8px; border-radius: 2px; }
.check-list { display: flex; gap: 16px; align-items: center; padding-top: 8px; }
.check-list label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); display: flex; gap: 6px; align-items: center; margin: 0; }
.stack-sm li { padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.stack-sm li:last-child { border-bottom: 0; }
.tag .x { color: var(--stone); cursor: default; margin-left: 4px; }
label.field > span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; }

/* Horizontal stacked bars for topics */
.hstacks { display: flex; flex-direction: column; gap: 14px; }
.hstack { display: grid; grid-template-columns: 140px 1fr 52px; gap: 10px; align-items: center; }
.hstack .nm { font-size: 12px; color: var(--ink); }
.hstack .barline { display: flex; height: 10px; background: transparent; border-radius: 1px; overflow: hidden; }
.hstack .barline .pos { background: var(--color-pos); }
.hstack .barline .neu { background: var(--hairline); }
.hstack .barline .neg { background: var(--color-neg); }
.hstack .pct { font-size: 11px; color: var(--stone); text-align: right; }
.hstacks-legend { display: flex; gap: 16px; font-size: 11px; color: var(--stone); margin-top: 12px; }
.hstacks-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
