:root {
  color-scheme: light;
  --bg: #f7faf6;
  --surface: #ffffff;
  --soft: #f2f6f1;
  --soft-strong: #eaf1e8;
  --ink: #101510;
  --muted: #667065;
  --faint: #9aa39a;
  --line: #e1e8df;
  --green: #00c805;
  --green-dark: #008c13;
  --green-soft: #e8f8e8;
  --red: #e5484d;
  --red-soft: #fff0f1;
  --amber: #a96e00;
  --amber-soft: #fff5de;
  --shadow: 0 12px 32px rgba(27, 38, 26, 0.08);
  --radius: 18px;
  --font: "Helvetica Neue", "SF Pro Text", "Avenir Next", ui-sans-serif, sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 280px),
    var(--bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
  letter-spacing: -0.015em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 200, 5, 0.08), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(117, 168, 109, 0.12), transparent 28%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(225, 232, 223, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  gap: 12px;
}

.brand-row,
.brand-lockup,
.headline-row,
.section-head,
.row-main,
.person-line,
.status-row,
.spectrum-labels,
.person-scan,
.call-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  justify-content: flex-start;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-title,
.brand-subtitle,
.timestamp,
.microcopy,
.metric-label,
.metric-value,
.section-kicker,
.section-title,
.summary,
.headline,
.hero-card-label,
.hero-card-value,
.hero-card-note,
.ticker-symbol,
.row-label,
.subvalue,
.person-name,
.footer,
.thesis,
.mini-copy {
  margin: 0;
}

.brand-title {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 760;
}

.brand-subtitle,
.timestamp,
.microcopy,
.mini-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
}

.nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 6px rgba(16, 21, 16, 0.08);
}

.bottom-nav {
  display: none;
}

.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.label,
.row-label,
.detail-label,
.hero-card-label,
.metric-label,
.section-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headline {
  margin-top: 4px;
  font-size: clamp(42px, 9vw, 76px);
  line-height: 0.94;
  font-weight: 760;
}

.people-hero .headline {
  font-size: clamp(36px, 8vw, 66px);
}

.headline.positive,
.value.positive,
.move.positive,
.metric-value.positive,
.ticker-pill strong.positive,
.detail-value.positive {
  color: var(--green-dark);
}

.headline.negative,
.value.negative,
.move.negative,
.metric-value.negative,
.ticker-pill strong.negative,
.detail-value.negative {
  color: var(--red);
}

.summary {
  margin-top: 11px;
  max-width: 780px;
  color: #334033;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.hero-card,
.avatar-stack-card,
.accountability-card,
.spectrum-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.hero-card,
.avatar-stack-card {
  min-height: 122px;
  padding: 15px;
  background: linear-gradient(180deg, var(--soft), #fff);
}

.hero-card-value {
  margin-top: 9px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 760;
  text-transform: capitalize;
}

.hero-card-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.hero-move {
  font-size: clamp(22px, 5vw, 34px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
}

.dot.working,
.dot.sha6ir {
  background: var(--green);
}

.dot.poor,
.dot.ahbal {
  background: var(--red);
}

.ticker-rail {
  display: flex;
  gap: 8px;
  margin: 14px -18px 0;
  padding: 0 18px 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-rail::-webkit-scrollbar {
  display: none;
}

.ticker-pill {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  min-width: 132px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 14px rgba(16, 21, 16, 0.04);
}

.ticker-pill span,
.ticker-pill strong {
  font-size: 13px;
  font-weight: 760;
}

.ticker-pill small {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.ticker-pill strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.metric-strip,
.accountability-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accountability-grid {
  grid-template-columns: 1fr;
}

.metric {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-value {
  margin-top: 7px;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 760;
}

.accountability-card,
.spectrum-card {
  padding: 14px;
}

.status-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status-row span,
.call-counts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.status-row strong,
.call-counts strong {
  color: var(--ink);
  font-size: 14px;
}

.control-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(16, 21, 16, 0.05);
}

.search-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.search-icon {
  color: var(--faint);
  font-size: 18px;
  font-weight: 800;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.search-bar input::placeholder {
  color: var(--faint);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(16, 21, 16, 0.08);
}

.section {
  margin-top: 22px;
}

.section-title {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 760;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

.ticker-row,
.person-row,
.empty-state {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ticker-row,
.person-row {
  box-shadow: 0 5px 18px rgba(16, 21, 16, 0.045);
}

.ticker-row {
  overflow: hidden;
}

.ticker-row summary {
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.ticker-row summary::-webkit-details-marker {
  display: none;
}

.ticker-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.ticker-icon.positive {
  background: var(--green-soft);
  color: var(--green-dark);
}

.ticker-icon.negative {
  background: var(--red-soft);
  color: var(--red);
}

.ticker-identity {
  min-width: 0;
  flex: 1 1 220px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 5px 8px;
}

.ticker-symbol,
.person-name {
  font-size: 21px;
  line-height: 1.05;
  font-weight: 760;
}

.ticker-identity .row-label {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  min-height: 22px;
  padding: 4px 8px;
  border: 0;
  font-size: 11px;
  text-transform: capitalize;
}

.status-badge.working,
.status-badge.sha6ir {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-badge.poor,
.status-badge.ahbal {
  background: var(--red-soft);
  color: var(--red);
}

.status-badge.mixed,
.status-badge.neutral {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.unscored,
.status-badge.unverified {
  background: var(--soft);
  color: var(--muted);
}

.row-meter {
  width: min(22vw, 132px);
  height: 30px;
  flex: 0 1 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-meter span {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}

.row-meter span::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: var(--width, 50%);
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
}

.row-meter .positive {
  color: var(--green);
}

.row-meter .negative {
  color: var(--red);
}

.row-meter .neutral {
  color: var(--amber);
}

.price-stack,
.person-score {
  min-width: 92px;
  text-align: right;
}

.value,
.move {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 760;
  white-space: nowrap;
}

.subvalue {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.subvalue.price {
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.detail-panel {
  margin: 0 9px 9px;
  padding: 11px;
  border-radius: 15px;
  background: var(--soft);
}

.detail-grid,
.read-grid {
  display: grid;
  gap: 8px;
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid > div,
.read-grid > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.detail-label,
.read-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-value {
  margin-top: 5px;
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.read-grid {
  margin-top: 8px;
}

.read-grid p,
.thesis {
  margin: 6px 0 0;
  color: #334033;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 500;
}

.thesis {
  padding: 11px 2px 0;
}

.person-row {
  padding: 14px;
}

.rank-badge {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.person-row:nth-child(1) .rank-badge {
  background: #f4d86b;
  color: #3a2a00;
}

.person-row:nth-child(2) .rank-badge {
  background: #d9dde2;
  color: #252a30;
}

.person-row:nth-child(3) .rank-badge {
  background: #d9a46d;
  color: #301a06;
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-left: 7px;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.avatar + .avatar {
  margin-left: -9px;
}

.avatar.active {
  background: var(--green);
  color: #051005;
}

.person-copy {
  min-width: 0;
  flex: 1;
}

.person-score .status-badge {
  margin-top: 6px;
}

.person-scan {
  align-items: flex-end;
  margin-top: 12px;
}

.spark-bars {
  min-width: 150px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.spark-bars span {
  width: 10px;
  height: var(--height, 14px);
  border-radius: 999px 999px 2px 2px;
  background: var(--faint);
}

.spark-bars span.positive {
  background: var(--green);
}

.spark-bars span.negative {
  background: var(--red);
}

.spark-bars span.neutral {
  background: var(--amber);
}

.call-counts {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 11px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
}

.chip.empty {
  background: var(--soft);
  color: var(--muted);
}

.bar {
  height: 7px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  width: var(--width, 50%);
  border-radius: inherit;
  background: var(--green);
}

.bar-fill.negative {
  background: var(--red);
}

.bar-fill.empty {
  background: #ccd4ca;
}

.spectrum-card {
  margin-top: 14px;
}

.spectrum-labels {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spectrum-track {
  position: relative;
  height: 42px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-soft), var(--soft), var(--green-soft));
}

.spectrum-dot {
  position: absolute;
  top: 50%;
  left: var(--left, 50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(16, 21, 16, 0.1);
}

.spectrum-dot.positive {
  background: var(--green);
  color: #051005;
}

.spectrum-dot.negative {
  background: var(--red);
  color: #fff;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.footer {
  padding: 26px 4px 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

@media (min-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr 360px;
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr 260px;
    align-items: stretch;
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .accountability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .control-panel {
    grid-template-columns: 1fr 420px;
    align-items: center;
  }

  .read-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .list {
    gap: 8px;
  }

  .ticker-row summary {
    padding: 12px 16px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 14px;
  }

  .topbar-inner {
    padding: 11px 14px;
  }

  .hero {
    padding: 16px;
    border-radius: 22px;
  }

  .headline-row,
  .section-head,
  .row-main,
  .person-line,
  .person-scan {
    align-items: flex-start;
  }

  .row-main {
    gap: 10px;
  }

  .headline-row {
    gap: 10px;
  }

  .status {
    margin-top: 6px;
  }

  .metric-strip {
    display: none;
  }

  .accountability-grid {
    display: none;
  }

  .row-meter {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    overflow-x: auto;
  }

  .segmented button {
    min-width: 82px;
  }

  .ticker-rail {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .ticker-symbol,
  .person-name {
    font-size: 19px;
  }

  .price-stack,
  .person-score {
    min-width: 78px;
  }

  .value,
  .move {
    font-size: 18px;
  }

  .spark-bars {
    min-width: 98px;
  }
}
