@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap";

/* src/frontend/styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #151924;
  --true-black: #000;
  --white: #fff;
  --paper: #e4dad9;
  --accent-primary: #e53d26;
  --accent-alt: #d73b26;
  --accent-deep: #c03827;
  --accent-soft: #e78375;
  --surface: #35343d;
  --muted: #67696d;
  --disabled: #a0a0a0;
  --warm-muted: #9b8d8d;
  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --layout-intro-max: 1400px;
  --layout-content-max: 1400px;
  --layout-content-wide-max: 1400px;
  --layout-gutter: 2rem;
  --layout-gutter-wide: 1.25rem;
  --layout-gutter-tablet: 1rem;
  --layout-gutter-mobile: .75rem;
  --transition-fast: .1s ease;
  --transition-base: .2s ease;
  --transition-slow: .4s cubic-bezier(.16, 1, .3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}

body {
  font-family: var(--font-display);
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.5;
}

::selection {
  background: var(--accent-primary);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.header {
  position: fixed;
  z-index: 100;
  display: flex;
  background: var(--ink);
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items:  center;
  padding: 1.25rem 2.5rem;
  top: 0;
  left: 0;
  right: 0;
}

.logo {
  display: flex;
  font-family: var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  align-items:  center;
  gap: .5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.logo-mark {
  display: flex;
  align-items:  center;
  gap: 2px;
}

.logo-mark span {
  display: inline-block;
  background: var(--accent-primary);
  width: 8px;
  height: 8px;
}

.logo-mark span:nth-child(2) {
  opacity: .6;
}

.logo-mark span:nth-child(3) {
  opacity: .3;
}

.header-status {
  display: flex;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  align-items:  center;
  gap: .75rem;
  font-size: .6875rem;
}

.header-actions {
  display: flex;
  align-items:  center;
  gap: 1.25rem;
}

.header-user {
  display: inline-flex;
  align-items:  center;
  gap: .75rem;
}

.header-user-email {
  font-family: var(--font-mono);
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  font-size: .6875rem;
}

.header-user-role {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .625rem;
}

.header-logout-btn {
  padding: .55rem .8rem;
}

.status-indicator {
  background: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
  width: 6px;
  height: 6px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 2.5rem 4rem;
}

.app-shell {
  padding: 7rem 0 4rem;
}

.app-shell__intro, .app-shell__content {
  max-width: var(--layout-content-max);
  padding-inline: var(--layout-gutter);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.app-shell__intro {
  max-width: var(--layout-intro-max);
}

.app-shell__content--wide {
  max-width: var(--layout-content-wide-max);
  padding-inline: var(--layout-gutter-wide);
}

.login-container {
  display: flex;
  background: radial-gradient(circle at 20% 10%, #e53d2633, transparent 38%), radial-gradient(circle at 80% 100%, #35343da6, transparent 45%), var(--ink);
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  padding: 2rem;
}

.login-card {
  background: var(--true-black);
  border: 1px solid var(--surface);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: min(420px, 100%);
  padding: 1.75rem;
}

.login-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .625rem;
}

.login-title {
  letter-spacing: -.02em;
  font-size: 2rem;
  line-height: 1.05;
}

.login-subtitle {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.login-label {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .625rem;
}

.login-input {
  background: var(--ink);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  width: 100%;
  padding: .78rem .85rem;
  font-size: .8125rem;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.login-error {
  color: #fca5a5;
  font-family: var(--font-mono);
  background: #ef444414;
  border: 1px solid #ef444466;
  padding: .65rem .75rem;
  font-size: .75rem;
}

.login-submit {
  width: 100%;
  margin-top: .4rem;
}

.hero-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--surface);
}

.hero-title {
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-title .accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .05em;
  max-width: 480px;
  font-size: .8125rem;
}

.score-form {
  display: flex;
  margin-bottom: var(--space-xl);
  gap: 0;
}

.score-form input {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  letter-spacing: .02em;
  transition: border-color var(--transition-base);
  border-right: none;
  flex: 1;
  padding: 1.25rem 1.5rem;
  font-size: .9375rem;
}

.score-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.score-form input::placeholder {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}

.btn {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  padding: 1.25rem 2rem;
  font-size: .75rem;
  font-weight: 600;
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

.leaderboard-section {
  position: relative;
}

.section-header {
  display: flex;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items:  center;
}

.section-controls {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.category-filter {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color var(--transition-base);
  padding: .5rem 1rem;
  font-size: .75rem;
}

.category-filter:hover, .category-filter:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.section-title {
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
}

.section-count {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .75rem;
}

.leaderboard-search {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  transition: border-color var(--transition-base);
  width: 180px;
  padding: .5rem 1rem;
  font-size: .75rem;
}

.leaderboard-search::placeholder {
  color: var(--disabled);
}

.leaderboard-search:hover, .leaderboard-search:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.pagination-bar {
  display: flex;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
  justify-content: center;
  align-items:  center;
  gap: 1rem;
}

.pagination-btn {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color var(--transition-base), opacity var(--transition-base);
  padding: .4rem 1rem;
  font-size: .75rem;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
}

.pagination-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.pagination-info {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
}

.leaderboard {
  width: 100%;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 100px 60px 50px 55px 55px 65px 40px 55px 60px;
  border-bottom: 1px solid var(--surface);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  gap: .5rem;
  padding: .875rem 0;
  font-size: .5625rem;
  font-weight: 500;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 100px 60px 50px 55px 55px 65px 40px 55px 60px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid #35343d80;
  align-items:  center;
  gap: .5rem;
  width: 100%;
  padding: .875rem 0;
  font-family: inherit;
}

.leaderboard-row:hover {
  background: #e53d2608;
}

.leaderboard-row:hover .handle {
  color: var(--accent-primary);
}

.leaderboard-row:focus {
  outline: none;
}

.leaderboard-row:focus-visible {
  outline: 1px solid var(--accent-primary);
  outline-offset: -1px;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.rank {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.rank.top-3 {
  color: var(--accent-soft);
}

.rank.rank-1 {
  color: var(--accent-primary);
  font-weight: 600;
}

.project-info {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  gap: .125rem;
}

.project-name {
  letter-spacing: -.01em;
  transition: color var(--transition-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 500;
}

.handle {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-base);
  width: -moz-fit-content;
  width: fit-content;
  font-size: .6875rem;
  font-weight: 400;
}

a.handle:hover {
  color: var(--accent-primary);
}

.category-cell {
  display: flex;
  overflow: hidden;
  align-items:  center;
}

.category-badge {
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 2px;
  max-width: 100%;
  padding: .25rem .5rem;
  font-size: .5625rem;
  font-weight: 500;
}

.category-badge.uncategorized {
  background: var(--surface);
  color: var(--muted);
}

.trend-cell {
  display: flex;
  justify-content: center;
  align-items:  center;
}

.rank-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  border-radius: 3px;
  align-items:  center;
  gap: 2px;
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 600;
}

.rank-up {
  color: #22c55e;
  background: #22c55e1f;
}

.rank-down {
  color: #ef4444;
  background: #ef44441f;
}

.rank-new {
  color: #a78bfa;
  letter-spacing: .05em;
  background: #a78bfa26;
  font-size: .625rem;
}

.rank-arrow {
  font-size: .625rem;
}

.rank-no-change {
  color: var(--muted);
  font-size: .75rem;
}

.rank-badge-wrapper {
  position: relative;
  display: inline-flex;
  cursor: default;
  align-items:  center;
}

.rank-popover {
  position: absolute;
  z-index: 50;
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  animation: popover-fade-in .15s ease-out;
  pointer-events: none;
  border-radius: 6px;
  min-width: 220px;
  padding: 8px 10px;
  font-size: .7rem;
  line-height: 1.4;
  bottom: calc(100% + 6px);
  right: 0;
  box-shadow: 0 4px 16px #0006;
}

@keyframes popover-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rank-popover-header {
  display: grid;
  grid-template-columns: 1fr 48px 48px 48px;
  border-bottom: 1px solid var(--border, #2a2a4a);
  color: var(--muted, #888);
  text-transform: uppercase;
  letter-spacing: .04em;
  gap: 4px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  font-size: .6rem;
}

.rank-popover-row {
  display: grid;
  grid-template-columns: 1fr 48px 48px 48px;
  gap: 4px;
  padding: 2px 0;
}

.rank-popover-total {
  border-bottom: 1px solid var(--border, #2a2a4a);
  margin-bottom: 2px;
  padding-bottom: 4px;
  font-weight: 600;
}

.rank-popover-label {
  color: var(--text, #e0e0e0);
}

.rank-popover-val {
  text-align: right;
  color: var(--muted, #888);
}

.rank-popover-delta {
  text-align: right;
  font-weight: 600;
}

.rank-popover-hint {
  color: var(--muted, #888);
  white-space: nowrap;
  font-style: italic;
}

.rank-popover-up {
  color: #22c55e;
}

.rank-popover-down {
  color: #ef4444;
}

.score-cell {
  display: flex;
  font-family: var(--font-mono);
  text-align: right;
  flex-direction: column;
  font-size: .75rem;
  font-weight: 500;
}

.score-cell.social {
  color: var(--accent-primary);
}

.score-cell.backers {
  color: var(--accent-soft);
}

.score-cell.pedigree {
  color: var(--paper);
}

.score-cell.momentum {
  color: #7dd3fc;
}

.score-cell.dev {
  color: var(--white);
}

.score-cell.revenue {
  color: #a3e635;
}

.sort-header {
  display: flex;
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-base);
  white-space: nowrap;
  background: none;
  border: none;
  align-items:  center;
  gap: .25rem;
  padding: 0;
}

.sort-header:hover {
  color: var(--white);
}

.sort-header.active {
  color: var(--accent-primary);
}

.sort-arrow {
  opacity: .8;
  font-size: .625rem;
}

.alpha-score {
  display: flex;
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  flex-direction: column;
  font-size: 1.125rem;
  font-weight: 600;
}

.alpha-score.high {
  color: var(--accent-primary);
}

.alpha-score.medium {
  color: var(--accent-soft);
}

.alpha-score.low {
  color: var(--muted);
}

.percentile-badge {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .5rem;
  font-weight: 500;
  line-height: 1;
}

.score-value {
  line-height: 1.2;
}

.score-rank {
  font-family: var(--font-mono);
  color: var(--muted);
  opacity: .7;
  text-align: right;
  font-size: .5rem;
  font-weight: 400;
  line-height: 1;
}

.confidence {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .875rem;
}

.last-audit {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
}

.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 1.5rem;
  padding: 6rem 2rem;
}

.spinner {
  border: 2px solid var(--surface);
  border-top-color: var(--accent-primary);
  animation: spin .8s linear infinite;
  width: 24px;
  height: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .75rem;
}

.empty-state {
  text-align: center;
  padding: 6rem 2rem;
}

.empty-state h3 {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.empty-state p {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .8125rem;
}

.modal-overlay {
  position: fixed;
  display: flex;
  z-index: 200;
  animation: fade-in .2s ease-out;
  background: #000000e6;
  justify-content: center;
  align-items:  center;
  padding: 2rem;
  inset: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--surface);
  overflow-y: auto;
  animation: modal-in .3s cubic-bezier(.16, 1, .3, 1);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items:  center;
  padding: 1.5rem 2rem;
}

.modal-header h2 {
  letter-spacing: -.02em;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: .75rem;
}

.modal-handle {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: .8125rem;
}

.modal-handle:hover {
  color: var(--accent-primary);
}

.modal-close {
  display: flex;
  border: 1px solid var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-base);
  background: none;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

.modal-close:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.markdown-block {
  display: flex;
  color: var(--paper);
  flex-direction: column;
  gap: .5rem;
}

.markdown-block p, .markdown-block ul, .markdown-block h4, .markdown-block h5, .markdown-block h6 {
  margin: 0;
}

.markdown-block ul {
  padding-left: 1.1rem;
}

.markdown-block li + li {
  margin-top: .2rem;
}

.markdown-block h4, .markdown-block h5, .markdown-block h6 {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .68rem;
}

.markdown-block a {
  color: var(--accent-soft);
}

.markdown-block code {
  font-family: var(--font-mono);
  background: #ffffff0f;
  padding: .05rem .25rem;
  font-size: .82em;
}

.total-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  background: var(--true-black);
  border: 1px solid var(--surface);
  align-items:  center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2.5rem;
}

.score-main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.total-score-value {
  letter-spacing: -.04em;
  color: var(--accent-primary);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}

.total-score-max {
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 400;
}

.total-score-label {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items:  center;
  gap: .5rem;
  margin-top: .5rem;
  font-size: .625rem;
}

.total-score-label .overall-rank {
  color: var(--text-secondary);
  letter-spacing: .05em;
  text-transform: none;
  font-size: .65rem;
}

.total-score-label .percentile-badge {
  color: var(--accent-primary);
  letter-spacing: .04em;
  text-transform: none;
  background: #6366f126;
  border-radius: 3px;
  padding: .15rem .4rem;
  font-size: .55rem;
  font-weight: 600;
}

.confidence-display {
  text-align: right;
  border-left: 1px solid var(--surface);
  padding-left: 2rem;
}

.confidence-value {
  letter-spacing: -.02em;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 600;
}

.confidence-label {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
  font-size: .625rem;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--surface);
  border: 1px solid var(--surface);
  gap: 1px;
  margin-bottom: 2rem;
}

.score-category {
  background: var(--ink);
  padding: 1.5rem;
}

.score-category-label {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
  font-size: .5625rem;
  font-weight: 500;
}

.score-category-value {
  letter-spacing: -.02em;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.score-category-max {
  font-family: var(--font-mono);
  color: var(--disabled);
  margin-top: .25rem;
  font-size: .75rem;
}

.score-category:first-child .score-category-value {
  color: var(--accent-primary);
}

.score-category:nth-child(2) .score-category-value {
  color: var(--accent-soft);
}

.score-category:nth-child(3) .score-category-value {
  color: var(--paper);
}

.score-category:nth-child(4) .score-category-value {
  color: #7dd3fc;
}

.score-category:nth-child(5) .score-category-value {
  color: var(--white);
}

.score-category:nth-child(6) .score-category-value {
  color: #a3e635;
}

.workstation-link-section {
  text-align: center;
  padding: 1rem 1.5rem;
}

.notes-section {
  border: 1px solid var(--surface);
  background: #35343d4d;
  padding: 1.25rem 1.5rem;
}

.notes-label {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
  font-size: .625rem;
  font-weight: 500;
}

.notes-content {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .8125rem;
  line-height: 1.6;
}

.mini-chart {
  padding: 0;
}

.mini-chart-label {
  font-family: var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  min-height: 1em;
  margin-bottom: .25rem;
  font-size: .6rem;
  font-weight: 500;
}

.mini-chart svg {
  display: block;
  cursor: crosshair;
  width: 100%;
  height: 6.5rem;
}

.modal-title-row {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.modal-title-row .category-badge {
  font-size: .625rem;
}

.providers-compact {
  border: 1px solid var(--surface);
  border-radius: 4px;
  padding: .75rem;
}

.providers-compact-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: .5rem;
}

.providers-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.provider-chip {
  display: inline-flex;
  font-size: .65rem;
  font-family: var(--font-mono);
  border-radius: 3px;
  align-items:  center;
  gap: .3rem;
  padding: .2rem .5rem;
}

.provider-chip-ok {
  color: var(--text-secondary);
  background: #22c55e0f;
  border: 1px solid #22c55e26;
}

.provider-chip-failed {
  color: #ef4444b3;
  background: #ef44440f;
  border: 1px solid #ef444426;
}

.providers-section {
  border: 1px solid var(--surface);
}

.providers-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  justify-content: space-between;
  align-items:  center;
  padding: 1rem 1.5rem;
  font-size: .625rem;
  font-weight: 500;
}

.provider-row {
  display: grid;
  grid-template-columns: 160px 100px 120px 1fr;
  transition: background var(--transition-base);
  border-bottom: 1px solid #35343d80;
  padding: 1rem 1.5rem;
  font-size: .875rem;
}

.provider-row:last-child {
  border-bottom: none;
}

.provider-row:hover {
  background: #35343d4d;
}

.provider-name {
  color: var(--white);
  text-transform: capitalize;
  font-weight: 500;
}

.provider-status {
  display: flex;
  font-family: var(--font-mono);
  color: var(--muted);
  align-items:  center;
  gap: .5rem;
  font-size: .75rem;
}

.status-dot {
  width: 6px;
  height: 6px;
}

.status-dot.success {
  background: var(--accent-primary);
}

.status-dot.error {
  background: var(--disabled);
}

.provider-score {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .875rem;
}

.provider-api {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: right;
  font-size: .6875rem;
}

.provider-row.has-error {
  background: #ef44440d;
}

.provider-error {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  color: #ef4444;
  padding-top: .5rem;
  padding-left: 160px;
  font-size: .6875rem;
}

.community-section {
  animation: fade-in .3s ease-out;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-md);
}

.community-panel {
  border: 1px solid var(--surface);
  background: var(--true-black);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.community-panel-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: .75rem;
}

.community-panel-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.community-block-title {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .625rem;
}

.community-input, .community-textarea, .community-panel select {
  background: var(--ink);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  transition: border-color var(--transition-base);
  width: 100%;
  padding: .75rem .9rem;
  font-size: .8125rem;
}

.community-input:focus, .community-textarea:focus, .community-panel select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.community-textarea {
  resize: vertical;
  min-height: 90px;
}

.community-input-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.community-db-list {
  overflow-y: auto;
  border: 1px solid var(--surface);
  background: var(--ink);
  max-height: 190px;
}

.community-db-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  font-family: var(--font-mono);
  border-bottom: 1px solid #35343d80;
  align-items:  center;
  gap: .5rem;
  padding: .5rem .7rem;
  font-size: .75rem;
}

.community-db-item:last-child {
  border-bottom: none;
}

.community-db-item input {
  accent-color: var(--accent-primary);
}

.community-db-name {
  color: var(--white);
}

.community-db-handle {
  color: var(--muted);
}

.community-empty {
  border: 1px dashed var(--surface);
  font-family: var(--font-mono);
  color: var(--muted);
  padding: .75rem;
  font-size: .75rem;
}

.community-empty.queue {
  margin-top: .5rem;
}

.community-file-input {
  display: none;
}

.community-dropzone {
  border: 1px dashed var(--surface);
  background: var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 1rem;
  font-size: .75rem;
}

.community-dropzone:hover, .community-dropzone.drag-active {
  border-color: var(--accent-primary);
  color: var(--white);
}

.community-csv-mapper {
  border: 1px solid var(--surface);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .75rem;
}

.community-csv-title {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .6875rem;
}

.community-csv-controls {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: .5rem 1rem;
}

.community-inline-option {
  display: inline-flex;
  font-family: var(--font-mono);
  color: var(--muted);
  align-items:  center;
  gap: .5rem;
  font-size: .6875rem;
}

.community-inline-option input[type="number"] {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  width: 78px;
  padding: .4rem;
  font-size: .75rem;
}

.community-csv-preview {
  overflow-x: auto;
  border: 1px solid var(--surface);
}

.community-csv-preview table {
  border-collapse: collapse;
  width: 100%;
}

.community-csv-preview td {
  font-family: var(--font-mono);
  color: var(--white);
  white-space: nowrap;
  border-bottom: 1px solid #35343d73;
  border-right: 1px solid #35343d73;
  min-width: 120px;
  padding: .4rem .5rem;
  font-size: .6875rem;
}

.community-csv-preview tr:last-child td {
  border-bottom: none;
}

.community-csv-preview td:last-child {
  border-right: none;
}

.community-csv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.community-target-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.community-target-chip {
  display: inline-flex;
  background: var(--surface);
  font-family: var(--font-mono);
  color: var(--white);
  align-items:  center;
  gap: .45rem;
  padding: .3rem .5rem;
  font-size: .6875rem;
}

.community-target-source {
  color: var(--muted);
  text-transform: uppercase;
}

.community-target-chip button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-size: .8rem;
  line-height: 1;
}

.community-target-chip button:hover {
  color: var(--accent-primary);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.community-warning {
  font-family: var(--font-mono);
  color: #f59e0b;
  margin-top: .25rem;
  font-size: .6875rem;
}

.community-queue-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.community-queue-item {
  border: 1px solid var(--surface);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .75rem;
}

.community-queue-item.completed {
  border-color: #22c55e80;
}

.community-queue-item.failed {
  border-color: #ef444480;
}

.community-queue-item.processing {
  border-color: #e53d2680;
}

.community-queue-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}

.community-queue-handle {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .8125rem;
}

.community-queue-meta, .community-queue-stage {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .625rem;
}

.community-queue-terminal {
  display: flex;
  background: #00000059;
  border: 1px solid #35343dcc;
  flex-direction: column;
  gap: .2rem;
  padding: .45rem .55rem;
}

.community-telemetry-line {
  font-family: var(--font-mono);
  color: var(--disabled);
  word-break: break-word;
  font-size: .625rem;
}

.community-status {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .625rem;
}

.community-status.submitting, .community-status.queued {
  color: var(--disabled);
}

.community-status.processing {
  color: var(--accent-primary);
}

.community-status.completed {
  color: #22c55e;
}

.community-status.failed {
  color: #ef4444;
}

.community-status.skipped {
  color: #f59e0b;
}

.community-note {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .6875rem;
}

.admin-users-section {
  animation: fade-in .3s ease-out;
}

.admin-users-card {
  border: 1px solid var(--surface);
  background: var(--true-black);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.admin-users-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: .75rem;
}

.admin-users-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, .8fr) auto auto;
  align-items:  center;
  gap: .6rem;
}

.admin-users-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface);
  background: var(--ink);
}

.admin-users-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-users-table th, .admin-users-table td {
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #35343d8c;
  padding: .7rem .75rem;
  font-size: .75rem;
}

.admin-users-table th {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: #35343d40;
}

.admin-users-table td {
  color: var(--white);
}

.admin-users-table tbody tr:hover {
  background: #35343d38;
}

@media (width <= 1280px) {
  .app-shell__intro, .app-shell__content {
    padding-inline-start: 1.5rem;
    padding-inline-end: 1.5rem;
  }

  .app-shell__content--wide {
    padding-inline-start: 1rem;
    padding-inline-end: 1rem;
  }

  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 35px minmax(0, 1fr) 90px 55px 45px 50px 50px 55px 35px 50px 55px;
    font-size: .5rem;
  }

  .score-cell {
    font-size: .6875rem;
  }

  .score-rank {
    display: none;
  }
}

@media (width <= 1024px) {
  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 35px 1fr 55px 45px 50px 50px 55px;
  }

  .category-cell, .score-cell.dev, .score-cell.revenue, .trend-cell, .percentile-badge {
    display: none;
  }

  .score-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-controls {
    flex-direction: column;
    align-items:  flex-end;
    gap: .5rem;
  }

  .community-grid, .community-input-row {
    grid-template-columns: 1fr;
  }

  .admin-users-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 768px) {
  .app-shell {
    padding: 6rem 0 3rem;
  }

  .app-shell__intro, .app-shell__content, .app-shell__content--wide {
    padding-inline: var(--layout-gutter-tablet);
  }

  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 30px 1fr 50px 45px 50px 50px;
  }

  .score-cell.momentum {
    display: none;
  }

  .community-panel {
    padding: 1rem;
  }

  .community-csv-controls {
    flex-direction: column;
    align-items:  flex-start;
  }

  .header {
    padding: 1rem;
  }

  .header-actions {
    gap: .75rem;
  }

  .header-user-email {
    max-width: 140px;
  }

  .admin-users-form {
    grid-template-columns: 1fr;
  }
}

@media (width <= 640px) {
  .app-shell__intro, .app-shell__content, .app-shell__content--wide {
    padding-inline: var(--layout-gutter-mobile);
  }

  .header {
    gap: .5rem;
    padding: .75rem 1rem;
  }

  .logo {
    letter-spacing: .14em;
    font-size: .95rem;
  }

  .header-actions {
    gap: .5rem;
    min-width: 0;
    margin-left: auto;
  }

  .header-status {
    display: none;
  }

  .header-user {
    gap: .5rem;
    min-width: 0;
  }

  .header-user-email, .header-user-role {
    display: none;
  }

  .header-logout-btn {
    padding: .45rem .65rem;
  }

  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 30px 1fr 50px;
  }

  .score-cell {
    display: none;
  }

  .score-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-category {
    padding: 1rem;
  }

  .score-category-value {
    font-size: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items:  flex-start;
    gap: 1rem;
  }

  .section-controls {
    flex-flow: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .leaderboard-search {
    order: -1;
    width: 100%;
  }

  .community-actions .btn {
    width: 100%;
  }
}

@media (width <= 768px) {
  .container {
    padding: 6rem 1.5rem 3rem;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .score-form {
    flex-direction: column;
  }

  .score-form input {
    border-right: 1px solid var(--surface);
    border-bottom: none;
  }

  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 50px 1fr 80px;
  }

  .confidence {
    display: none;
  }

  .modal {
    height: 100vh;
    max-height: 100vh;
    margin: 0;
  }

  .modal-overlay {
    padding: 1rem;
  }

  .modal-header {
    align-items:  flex-start;
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .total-score {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .total-score-value {
    font-size: 3.5rem;
  }

  .confidence-display {
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--surface);
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .provider-row {
    grid-template-columns: 1fr 80px;
  }

  .provider-score, .provider-api {
    display: none;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaderboard-row {
  animation: slide-up .4s ease-out backwards;
}

.leaderboard-row:first-child {
  animation-delay: 50ms;
}

.leaderboard-row:nth-child(2) {
  animation-delay: .1s;
}

.leaderboard-row:nth-child(3) {
  animation-delay: .15s;
}

.leaderboard-row:nth-child(4) {
  animation-delay: .2s;
}

.leaderboard-row:nth-child(5) {
  animation-delay: .25s;
}

.leaderboard-row:nth-child(6) {
  animation-delay: .3s;
}

.leaderboard-row:nth-child(7) {
  animation-delay: .35s;
}

.leaderboard-row:nth-child(8) {
  animation-delay: .4s;
}

.leaderboard-row:nth-child(9) {
  animation-delay: .45s;
}

.leaderboard-row:nth-child(10) {
  animation-delay: .5s;
}

.view-toggle {
  display: flex;
  margin-bottom: var(--space-lg);
  justify-content: center;
  gap: 0;
}

.view-toggle-btn {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: .875rem 1.5rem;
  font-size: .6875rem;
  font-weight: 500;
}

.view-toggle-btn:not(:last-child) {
  border-right: none;
}

.view-toggle-btn:hover {
  color: var(--white);
}

.view-toggle-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--white);
}

.td-dashboard {
  animation: fade-in .3s ease-out;
}

.td-period-bar {
  display: flex;
  margin-bottom: var(--space-lg);
  background: var(--surface);
  border-radius: 6px;
  gap: 2px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px;
}

.td-period-pill {
  font-family: var(--font-mono);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  border-radius: 4px;
  padding: .4rem 1.2rem;
  font-size: .75rem;
  font-weight: 500;
}

.td-period-pill:hover {
  color: var(--white);
}

.td-period-pill.active {
  background: var(--ink);
  color: var(--white);
}

.td-overview {
  margin-bottom: var(--space-lg);
}

.td-overview-top {
  display: grid;
  grid-template-columns: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--surface);
  margin-bottom: var(--space-md);
  gap: 1px;
}

.td-sentiment {
  display: flex;
  background: var(--true-black);
  align-items:  center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
}

.td-sentiment-icon {
  font-size: 2rem;
  font-weight: 700;
}

.td-sentiment.bullish .td-sentiment-icon {
  color: #22c55e;
}

.td-sentiment.neutral .td-sentiment-icon {
  color: var(--muted);
}

.td-sentiment.bearish .td-sentiment-icon {
  color: #ef4444;
}

.td-sentiment-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.td-sentiment-value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
}

.td-label {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .5625rem;
  font-weight: 500;
}

.td-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  gap: 1px;
}

.td-metric {
  background: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem;
}

.td-metric-value {
  letter-spacing: -.02em;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.td-metric-value.positive {
  color: #22c55e;
}

.td-metric-value.negative {
  color: #ef4444;
}

.td-overview-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.td-chart-label {
  font-family: var(--font-mono);
  color: var(--muted);
  min-height: 1.2em;
  margin-bottom: .5rem;
  font-size: .6875rem;
}

.td-chart-empty {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  font-size: .75rem;
}

.td-dist-chart, .td-trend-chart {
  background: var(--true-black);
  border: 1px solid var(--surface);
  padding: 1rem 1.25rem;
}

.td-dist-chart svg, .td-trend-chart svg {
  width: 100%;
  height: auto;
}

.td-section {
  margin-bottom: var(--space-lg);
}

.td-section-title {
  font-family: var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-md);
  font-size: .6875rem;
  font-weight: 500;
}

.td-panel-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items:  center;
  padding: .75rem 1.25rem;
}

.td-panel-title {
  font-family: var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 500;
}

.td-panel-count {
  font-family: var(--font-mono);
  color: var(--disabled);
  font-size: .625rem;
}

.td-empty {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .75rem;
}

.td-movers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.td-movers-panel, .td-compact-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
}

.td-mover-row {
  display: grid;
  grid-template-columns: 24px 1fr 48px 56px 56px 80px;
  transition: background var(--transition-base);
  align-items:  center;
  gap: .5rem;
  padding: .6rem 1.25rem;
}

.td-mover-row:hover {
  background: #35343d4d;
}

.td-clickable {
  cursor: pointer;
}

button.td-compact-row, button.td-mover-row {
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  width: 100%;
}

.td-mover-rank {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 500;
}

.td-mover-info {
  display: flex;
  align-items:  center;
  gap: .5rem;
  min-width: 0;
}

.td-mover-name {
  font-family: var(--font-mono);
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .8125rem;
}

.td-cat-badge {
  font-family: var(--font-mono);
  white-space: nowrap;
  border-radius: 3px;
  flex-shrink: 0;
  padding: .1rem .4rem;
  font-size: .5625rem;
  font-weight: 500;
}

.td-mover-score {
  font-family: var(--font-mono);
  color: var(--disabled);
  text-align: right;
  font-size: .75rem;
}

.td-mover-delta {
  font-family: var(--font-mono);
  text-align: right;
  font-size: .75rem;
  font-weight: 600;
}

.td-mover-delta.positive {
  color: #22c55e;
}

.td-mover-delta.negative {
  color: #ef4444;
}

.td-mover-pct {
  font-family: var(--font-mono);
  color: var(--disabled);
  text-align: right;
  font-size: .625rem;
}

.td-mover-breakdown {
  min-width: 0;
}

.td-breakdown-bar {
  display: flex;
  overflow: hidden;
  background: #35343d80;
  border-radius: 3px;
  height: 6px;
}

.td-breakdown-empty {
  opacity: .3;
}

.td-breakdown-segment {
  transition: opacity var(--transition-fast);
  min-width: 1px;
}

.td-compact-list {
  padding: .25rem 0;
}

.td-compact-row {
  display: grid;
  grid-template-columns: 1fr 48px 64px;
  transition: background var(--transition-base);
  align-items:  center;
  gap: .5rem;
  padding: .5rem 1.25rem;
}

.td-compact-row:hover {
  background: #35343d4d;
}

.td-compact-name {
  font-family: var(--font-mono);
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .8125rem;
}

.td-compact-score {
  font-family: var(--font-mono);
  color: var(--disabled);
  text-align: right;
  font-size: .75rem;
}

.td-compact-delta {
  font-family: var(--font-mono);
  text-align: right;
  font-size: .75rem;
  font-weight: 600;
}

.td-compact-delta.positive {
  color: #22c55e;
}

.td-compact-delta.negative {
  color: #ef4444;
}

.td-cat-section {
  display: flex;
  gap: var(--space-md);
  flex-direction: column;
}

.td-cat-chart-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
}

.td-cat-chart {
  padding: 1rem 1.25rem;
}

.td-cat-chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items:  center;
  gap: .75rem;
  padding: .35rem 0;
}

.td-cat-chart-label {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .75rem;
}

.td-cat-chart-track {
  overflow: hidden;
  background: #35343d80;
  border-radius: 4px;
  height: 8px;
}

.td-cat-chart-fill {
  transition: width var(--transition-slow);
  border-radius: 4px;
  height: 100%;
}

.td-cat-chart-value {
  font-family: var(--font-mono);
  color: var(--disabled);
  text-align: right;
  font-size: .6875rem;
}

.td-cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.td-cat-card {
  background: var(--true-black);
  border: 1px solid var(--surface);
  border-top: 3px solid var(--surface);
  padding: 1rem;
}

.td-cat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .75rem;
}

.td-cat-card-name {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
}

.td-cat-card-count {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .625rem;
}

.td-cat-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: .5rem;
}

.td-cat-card-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.td-cat-card-stat-value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.td-cat-card-stat-value.positive {
  color: #22c55e;
}

.td-cat-card-stat-value.negative {
  color: #ef4444;
}

.td-cat-card-stat-label {
  font-family: var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .5rem;
}

.td-cat-card-movers {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.td-cat-card-mover {
  font-family: var(--font-mono);
  font-size: .625rem;
}

.td-cat-card-mover.positive {
  color: #22c55e;
}

.td-cat-card-mover.negative {
  color: #ef4444;
}

.td-composition-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
}

.td-composition {
  padding: 1rem 1.25rem;
}

.td-comp-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px 30px;
  align-items:  center;
  gap: .75rem;
  padding: .4rem 0;
}

.td-comp-label {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .75rem;
}

.td-comp-track {
  overflow: hidden;
  background: #35343d80;
  border-radius: 5px;
  height: 10px;
}

.td-comp-fill {
  transition: width var(--transition-slow);
  border-radius: 5px;
  height: 100%;
}

.td-comp-value {
  font-family: var(--font-mono);
  color: var(--white);
  text-align: right;
  font-size: .6875rem;
  font-weight: 600;
}

.td-comp-max {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .5625rem;
}

.positive {
  color: #22c55e;
}

.negative {
  color: #ef4444;
}

@media (width <= 1024px) {
  .td-movers-grid, .td-overview-charts {
    grid-template-columns: 1fr;
  }

  .td-metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .td-mover-row {
    grid-template-columns: 24px 1fr 48px 56px;
  }

  .td-mover-pct, .td-mover-breakdown {
    display: none;
  }
}

@media (width <= 768px) {
  .td-overview-top {
    grid-template-columns: 1fr;
  }

  .td-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-mover-row {
    grid-template-columns: 24px 1fr 56px;
  }

  .td-mover-score {
    display: none;
  }

  .td-cat-cards {
    grid-template-columns: 1fr;
  }
}

@media (width <= 640px) {
  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-title-row {
    min-width: 0;
  }
}

.toast-container {
  position: fixed;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 400px;
  top: 5rem;
  right: 1.5rem;
}

.toast {
  display: flex;
  background: var(--ink);
  border: 1px solid var(--surface);
  animation: toast-in .3s cubic-bezier(.16, 1, .3, 1);
  align-items:  flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
  font-size: .875rem;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  margin-bottom: .25rem;
  font-size: .875rem;
  font-weight: 600;
}

.toast-message {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.toast-close {
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-base);
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.toast-close:hover {
  color: var(--white);
}

.toast-success {
  border-color: #22c55e;
}

.toast-success .toast-icon {
  color: #22c55e;
}

.toast-error {
  border-color: #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-color: var(--accent-primary);
}

.toast-info .toast-icon {
  color: var(--accent-primary);
}

.scoring-progress-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.scoring-progress {
  background: var(--true-black);
  border: 1px solid var(--surface);
  animation: fade-in .3s ease-out;
  padding: 1.5rem;
}

.scoring-progress.processing {
  border-color: #e53d2680;
}

.scoring-progress.completed {
  border-color: #22c55e80;
}

.scoring-progress.failed, .scoring-progress.partial {
  border-color: #ef444480;
}

.scoring-progress-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 1rem;
}

.scoring-progress-title {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.scoring-progress-title h3 {
  letter-spacing: -.01em;
  font-size: 1rem;
  font-weight: 600;
}

.scoring-progress-handle {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: .75rem;
}

.scoring-progress-status {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .6875rem;
}

.scoring-progress-status.processing {
  color: var(--accent-primary);
}

.scoring-progress-status.completed {
  color: #22c55e;
}

.scoring-progress-status.failed {
  color: #ef4444;
}

.scoring-progress-status.partial {
  color: #f59e0b;
}

.scoring-progress-meta {
  display: inline-flex;
  align-items:  center;
  gap: .65rem;
}

.scoring-progress-close {
  border: 1px solid var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-base);
  background: none;
  width: 24px;
  height: 24px;
  font-size: .875rem;
  line-height: 1;
}

.scoring-progress-close:hover {
  color: var(--white);
  border-color: var(--accent-primary);
}

.scoring-progress-bar {
  background: var(--surface);
  overflow: hidden;
  height: 4px;
  margin-bottom: 1rem;
}

.scoring-progress-fill {
  background: var(--accent-primary);
  height: 100%;
  transition: width .3s ease-out;
}

.scoring-progress-fill.completed {
  background: #22c55e;
}

.scoring-progress-fill.failed {
  background: #ef4444;
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.provider-chip {
  display: inline-flex;
  background: var(--surface);
  font-family: var(--font-mono);
  text-transform: capitalize;
  color: var(--muted);
  transition: all var(--transition-base);
  align-items:  center;
  gap: .375rem;
  padding: .375rem .625rem;
  font-size: .6875rem;
  font-weight: 500;
}

.provider-chip .chip-icon {
  font-size: .625rem;
}

.provider-chip.pending {
  background: var(--surface);
  color: var(--muted);
}

.provider-chip.success {
  color: #22c55e;
  background: #22c55e26;
}

.provider-chip.error {
  color: #ef4444;
  background: #ef444426;
}

.provider-chip.processing {
  color: var(--accent-primary);
  background: #e53d2626;
}

.spinner-small {
  border: 1.5px solid var(--surface);
  border-top-color: var(--accent-primary);
  animation: spin .8s linear infinite;
  width: 12px;
  height: 12px;
}

.scoring-progress-title {
  display: flex;
  align-items:  center;
  gap: .75rem;
  font-size: .875rem;
  font-weight: 500;
}

.scoring-progress-time {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
}

.scoring-progress-providers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.scoring-progress-hints {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.progress-hint {
  border: 1px solid var(--surface);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .2rem .45rem;
  font-size: .625rem;
}

.progress-hint.busy {
  color: #f59e0b;
  border-color: #f59e0b;
}

.scoring-progress-result {
  border-top: 1px solid var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.score-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}

.score-result {
  color: var(--accent-primary);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .875rem;
}

.score-confidence {
  color: var(--warm-muted);
  font-size: .7rem;
  font-family: var(--font-mono);
  background: #ffffff0a;
  border-radius: 100px;
  margin-left: auto;
  padding: .15rem .5rem;
}

.score-partial-note {
  color: #f59e0b;
  background: #f59e0b1a;
  border-radius: 100px;
  margin-left: .5rem;
  padding: .1rem .45rem;
  font-size: .65rem;
  font-weight: 500;
}

.score-notes {
  color: var(--warm-muted);
  font-size: .7rem;
  font-family: var(--font-mono);
  border-left: 2px solid var(--surface);
  background: #ffffff06;
  padding: .5rem .65rem;
  line-height: 1.6;
}

.score-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff05;
  border-radius: 6px;
  width: 100%;
  font-size: .75rem;
}

.score-table th {
  text-align: left;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--surface);
  background: #ffffff08;
  padding: .5rem .65rem;
  font-size: .65rem;
  font-weight: 600;
}

.score-table td {
  border-bottom: 1px solid #ffffff0a;
  padding: .45rem .65rem;
}

.score-table tr:last-child td {
  border-bottom: none;
}

.score-table .mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

.score-table .row-failed td {
  opacity: .45;
  color: var(--muted);
}

.score-table .row-failed td:first-child {
  opacity: .7;
}

.score-table .dim {
  opacity: .4;
  font-weight: 400;
}

.score-table .rank-cell {
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 500;
}

.status-ok {
  color: #22c55e;
  font-size: .65rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.status-fail {
  color: #ef4444;
  font-size: .65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: help;
}

.section-label {
  color: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid #ffffff0f;
  margin-bottom: .5rem;
  padding-bottom: .35rem;
  font-size: .65rem;
  font-weight: 700;
}

.failed-details-section {
  background: #ef44440a;
  border: 1px solid #ef44441f;
  border-radius: 6px;
  padding: .75rem;
}

.failed-detail-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .25rem 0;
  font-size: .7rem;
}

.failed-detail-row + .failed-detail-row {
  border-top: 1px solid #ef44440f;
}

.failed-name {
  color: #ef4444;
  white-space: nowrap;
  min-width: 85px;
  font-weight: 600;
}

.failed-reason {
  color: var(--muted);
  font-family: var(--font-mono);
  word-break: break-word;
  font-size: .625rem;
  line-height: 1.4;
}

.backers-section {
  background: #3b82f60a;
  border: 1px solid #3b82f61a;
  border-radius: 6px;
  padding: .75rem;
}

.backers-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}

.meta-chip {
  color: #93c5fd;
  font-size: .7rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: #3b82f614;
  border: 1px solid #3b82f626;
  border-radius: 100px;
  padding: .2rem .55rem;
}

.investor-tiers {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .5rem;
}

.tier-row {
  display: flex;
  background: #ffffff06;
  border-radius: 4px;
  align-items:  center;
  gap: .5rem;
  padding: .3rem .5rem;
  font-size: .72rem;
}

.tier-badge {
  color: #fff;
  letter-spacing: .02em;
  border-radius: 3px;
  flex-shrink: 0;
  padding: .15rem .4rem;
  font-size: .55rem;
  font-weight: 700;
}

.tier-badge.tier-1 {
  background: var(--accent-primary);
}

.tier-badge.tier-2 {
  background: #8b5cf6;
}

.tier-badge.tier-3 {
  background: var(--muted);
}

.all-investors {
  display: flex;
  border-top: 1px solid #3b82f614;
  flex-wrap: wrap;
  gap: .3rem;
  padding-top: .4rem;
}

.investor-chip {
  color: var(--warm-muted);
  background: #ffffff0a;
  border: 1px solid #ffffff0f;
  border-radius: 3px;
  padding: .15rem .45rem;
  font-size: .65rem;
}

.investor-chip--warm {
  color: #fbbf24;
  background: #fbbf241f;
  border-color: #fbbf244d;
}

.warm-intro-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fbbf24;
  vertical-align: middle;
  background: #fbbf2426;
  border: 1px solid #fbbf2440;
  border-radius: 3px;
  margin-left: .5rem;
  padding: .1rem .4rem;
  font-size: .6rem;
  font-weight: 600;
}

.warm-intro-contacts {
  background: #fbbf240d;
  border: 1px solid #fbbf241f;
  border-radius: 4px;
  margin-top: .5rem;
  padding: .5rem;
}

.warm-intro-contacts-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fbbf24;
  margin-bottom: .35rem;
  font-size: .6rem;
  font-weight: 600;
}

.warm-intro-contact-row {
  display: flex;
  align-items:  center;
  gap: .4rem;
  padding: .15rem 0;
  font-size: .7rem;
}

.warm-intro-contact-name {
  color: #e8e0df;
  font-weight: 500;
}

.warm-intro-contact-role {
  color: var(--warm-muted);
  font-size: .6rem;
}

.warm-intro-contact-fund {
  color: #fbbf24;
  margin-left: auto;
  font-size: .6rem;
}

.btn-warm-intro {
  color: #fbbf24;
  background: #fbbf241f;
  border-color: #fbbf244d;
  margin-top: .5rem;
}

.btn-warm-intro:hover {
  background: #fbbf2433;
}

.founder-section {
  background: #8b5cf60a;
  border: 1px solid #8b5cf61a;
  border-radius: 6px;
  padding: .75rem;
}

.founder-info {
  display: flex;
  align-items:  center;
  gap: .5rem;
  margin-bottom: .35rem;
}

.founder-name {
  font-size: .85rem;
  font-weight: 600;
}

.founder-handle {
  color: var(--accent-primary);
  font-size: .75rem;
  font-weight: 400;
}

.founder-bullets {
  color: var(--warm-muted);
  margin: .4rem 0 0 .75rem;
  padding: 0;
  font-size: .7rem;
  line-height: 1.6;
}

.founder-bullets li {
  margin-bottom: .15rem;
}

.founder-reason {
  color: var(--warm-muted);
  background: #ffffff06;
  border-radius: 4px;
  padding: .4rem .5rem;
  font-size: .7rem;
  line-height: 1.5;
}

.founder-prompt {
  background: #f59e0b0f;
  border: 1px solid #f59e0b33;
  border-radius: 6px;
  padding: .85rem;
}

.founder-prompt-header {
  display: flex;
  align-items:  center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.founder-prompt-icon {
  display: inline-flex;
  color: #f59e0b;
  background: #f59e0b26;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
  font-size: .75rem;
  font-weight: 700;
}

.founder-prompt-title {
  color: #f59e0b;
  font-size: .8rem;
  font-weight: 600;
}

.founder-prompt-desc {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: .65rem;
  font-size: .7rem;
  line-height: 1.4;
}

.founder-prompt-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .65rem;
}

.founder-prompt-inputs input {
  background: var(--true-black);
  color: var(--white);
  font-family: var(--font-mono);
  transition: border-color var(--transition-base);
  border: 1px solid #f59e0b33;
  width: 100%;
  padding: .55rem .75rem;
  font-size: .75rem;
}

.founder-prompt-inputs input:focus {
  outline: none;
  border-color: #f59e0b;
}

.founder-prompt-inputs input::placeholder {
  color: var(--muted);
  font-size: .7rem;
}

.founder-prompt-inputs input:disabled {
  opacity: .5;
}

.founder-prompt-submit {
  color: #f59e0b;
  display: inline-flex;
  background: #f59e0b26;
  border-color: #f59e0b4d;
  align-items:  center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-size: .65rem;
}

.founder-prompt-submit:hover:not(:disabled) {
  background: #f59e0b40;
  border-color: #f59e0b;
}

.founder-prompt-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (width <= 640px) {
  .founder-prompt-inputs {
    grid-template-columns: 1fr;
  }
}

.community-progress-block {
  border-top: 1px solid var(--surface);
  margin-top: .9rem;
  padding-top: .9rem;
}

.community-progress-header {
  display: flex;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  justify-content: space-between;
  align-items:  center;
  margin-bottom: .5rem;
  font-size: .7rem;
}

.community-progress-stage {
  color: var(--accent-primary);
}

.community-progress-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.community-progress-counts span {
  background: var(--surface);
  font-family: var(--font-mono);
  color: var(--white);
  padding: .22rem .45rem;
  font-size: .66rem;
}

.community-progress-queue {
  font-family: var(--font-mono);
  color: var(--disabled);
  margin-top: .45rem;
  font-size: .625rem;
}

.rescore-modal-overlay {
  position: fixed;
  display: flex;
  z-index: 250;
  animation: fade-in .2s ease-out;
  background: #000000e6;
  justify-content: center;
  align-items:  center;
  padding: 2rem;
  inset: 0;
}

.rescore-modal {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--surface);
  overflow-y: auto;
  animation: modal-in .3s cubic-bezier(.16, 1, .3, 1);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
}

.rescore-modal-header {
  display: flex;
  border-bottom: 1px solid var(--surface);
  justify-content: space-between;
  align-items:  center;
  padding: 1.25rem 1.5rem;
}

.rescore-modal-header h3 {
  letter-spacing: -.02em;
  font-size: 1.125rem;
  font-weight: 600;
}

.rescore-modal-body, .rescore-form {
  padding: 1.5rem;
}

.provider-errors {
  background: #ef444414;
  border: 1px solid #ef44444d;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.provider-errors-title {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: .75rem;
  font-size: .625rem;
  font-weight: 500;
}

.provider-error-item {
  display: flex;
  border-bottom: 1px solid #ef444426;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 1rem;
  padding: .5rem 0;
}

.provider-error-item:last-child {
  border-bottom: none;
}

.provider-error-name {
  font-family: var(--font-mono);
  color: var(--white);
  text-transform: capitalize;
  font-size: .75rem;
  font-weight: 500;
}

.provider-error-msg {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: right;
  max-width: 300px;
  font-size: .6875rem;
}

.form-section {
  border-bottom: 1px solid var(--surface);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
  font-size: .625rem;
  font-weight: 500;
}

.form-section-desc {
  font-family: var(--font-mono);
  color: var(--disabled);
  margin-bottom: 1rem;
  font-size: .75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: .05em;
  color: var(--disabled);
  margin-bottom: .5rem;
  font-size: .6875rem;
  font-weight: 500;
}

.form-group input, .form-group select {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  transition: border-color var(--transition-base);
  width: 100%;
  padding: .75rem 1rem;
  font-size: .8125rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group.has-error input, .form-group.has-error select {
  border-color: #ef4444;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-actions {
  display: flex;
  border-top: 1px solid var(--surface);
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.btn-small {
  padding: .625rem 1rem;
  font-size: .6875rem;
}

.btn-secondary {
  border: 1px solid var(--surface);
  color: var(--muted);
  background: none;
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: none;
}

@media (width <= 768px) {
  .toast-container {
    max-width: none;
    left: 1rem;
    right: 1rem;
  }

  .scoring-progress-header {
    flex-direction: column;
    align-items:  flex-start;
    gap: .5rem;
  }

  .scoring-progress-meta {
    justify-content: space-between;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .rescore-modal {
    height: auto;
    max-height: 100vh;
    margin: 0;
  }
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-wrapper input {
  width: 100%;
  padding-right: 2.5rem;
}

.input-status {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
}

.input-status.validating {
  background: var(--text-muted);
  animation: pulse 1s infinite;
}

.input-status.valid {
  background: #10b981;
}

.input-status.invalid {
  background: #ef4444;
}

.input-status.warning {
  background: #f59e0b;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.validation-feedback {
  display: flex;
  border-radius: 6px;
  flex-wrap: wrap;
  align-items:  center;
  gap: .5rem;
  margin-top: -.5rem;
  padding: .5rem .75rem;
  font-size: .8rem;
}

.validation-feedback.valid {
  color: #10b981;
  background: #10b9811a;
  border: 1px solid #10b98133;
}

.validation-feedback.warning {
  color: #f59e0b;
  background: #f59e0b1a;
  border: 1px solid #f59e0b33;
}

.validation-feedback.invalid {
  color: #ef4444;
  background: #ef44441a;
  border: 1px solid #ef444433;
}

.validation-stat {
  font-size: .75rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  background: #ffffff14;
  border-radius: 4px;
  padding: .15rem .5rem;
}

.validation-tags {
  opacity: .8;
  font-size: .75rem;
}

.founder-section {
  background: #7c3aed0f;
  border: 1px solid #7c3aed26;
  border-radius: 8px;
  padding: 1rem;
}

.founder-header {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-size: .75rem;
}

.founder-info {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: .5rem;
}

.founder-name {
  color: var(--text-primary);
  font-weight: 600;
}

.founder-twitter {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: .85rem;
}

.founder-twitter:hover {
  text-decoration: underline;
}

.founder-tier {
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 600;
}

.founder-tier.tier-1 {
  color: #10b981;
  background: #10b98126;
}

.founder-tier.tier-2 {
  color: #3b82f6;
  background: #3b82f626;
}

.founder-tier.tier-3 {
  color: #9ca3af;
  background: #9ca3af26;
}

.founder-reason {
  color: var(--text-secondary);
  margin-top: .5rem;
  font-size: .8rem;
  line-height: 1.4;
}

.founder-social-scores {
  display: flex;
  gap: .75rem;
  margin-top: .35rem;
  font-size: .7rem;
}

.founder-social-item {
  color: var(--text-secondary);
  background: #6366f114;
  border-radius: 4px;
  padding: .15rem .5rem;
  font-weight: 500;
}

.founder-edit-form {
  background: #7c3aed0f;
  border: 1px solid #7c3aed26;
  border-radius: 8px;
  margin-top: .5rem;
  padding: .75rem;
}

.founder-edit-field {
  margin-bottom: .5rem;
}

.founder-edit-label {
  display: block;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
  font-size: .7rem;
  font-weight: 600;
}

.founder-edit-label .founder-edit-at {
  color: #1d9bf0;
  font-weight: 700;
}

.founder-edit-field input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-sizing: border-box;
  border-radius: 4px;
  width: 100%;
  padding: .45rem .6rem;
  font-size: .8rem;
}

.founder-edit-field input:focus {
  outline: none;
  border-color: #7c3aed80;
}

.founder-edit-handle-wrap {
  position: relative;
  display: flex;
  align-items:  center;
}

.founder-edit-handle-prefix {
  position: absolute;
  color: #1d9bf0;
  pointer-events: none;
  font-size: .8rem;
  font-weight: 600;
  left: .6rem;
}

.founder-edit-handle-wrap input {
  padding-left: 1.4rem;
}

.founder-edit-error {
  color: var(--danger);
  margin-bottom: .5rem;
  font-size: .75rem;
}

.founder-edit-actions {
  display: flex;
  gap: .5rem;
}

.founder-edit-actions .btn {
  padding: .3rem .75rem;
  font-size: .75rem;
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.backer-section {
  background: #3b82f60f;
  border: 1px solid #3b82f626;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1rem;
}

.backer-header {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  font-size: .75rem;
}

.funding-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}

.funding-stat {
  text-align: center;
}

.funding-stat-value {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
}

.funding-stat-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-top: .15rem;
  font-size: .7rem;
}

.investor-groups {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.investor-group {
  display: flex;
  align-items:  flex-start;
  gap: .5rem;
}

.investor-group-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  min-width: 3rem;
  padding-top: .2rem;
  font-size: .7rem;
}

.investor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.investor-tag {
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 500;
}

.investor-tag.tier-1 {
  color: #10b981;
  background: #10b9811f;
}

.investor-tag.tier-2 {
  color: #3b82f6;
  background: #3b82f61f;
}

.investor-tag.lead {
  color: #ef4444;
  background: #ef44441f;
}

.export-btn {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--surface);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  background: none;
  padding: .35rem .75rem;
  font-size: .6875rem;
}

.export-btn:hover {
  color: var(--white);
  border-color: var(--accent-primary);
}

.api-status-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.api-status-view__section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.api-status-view__section-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.api-run-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
  overflow: hidden;
  display: inline-block;
  border-radius: 6px;
  min-width: 0;
}

.api-run-panel__head {
  display: grid;
  grid-template-columns: 2.5rem 4rem 4rem 4rem 4rem 4.5rem;
  border-bottom: 1px solid var(--surface);
  gap: .75rem;
  padding: .45rem 1rem;
}

.api-run-panel__head-cell {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: right;
  font-size: .55rem;
}

.api-run-panel__head-cell:first-child {
  text-align: left;
}

.api-run-row {
  display: grid;
  grid-template-columns: 2.5rem 4rem 4rem 4rem 4rem 4.5rem;
  align-items:  center;
  gap: .75rem;
  padding: .5rem 1rem;
}

.api-run-row + .api-run-row {
  border-top: 1px solid var(--surface);
}

.api-run-row__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.api-run-row__cell {
  text-align: right;
}

.api-run-row__value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
}

.api-run-row__value--positive {
  color: #10b981;
}

.api-run-row__value--negative {
  color: #ef4444;
}

.api-quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}

.api-quota-card {
  background: var(--true-black);
  border: 1px solid var(--surface);
  display: flex;
  border-radius: 6px;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
}

.api-quota-card__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.api-quota-card__name {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

.api-quota-card__badge {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 3px;
  padding: .15rem .4rem;
  font-size: .6rem;
  font-weight: 600;
}

.api-quota-card__badge--healthy {
  color: #10b981;
  background: #10b9811f;
}

.api-quota-card__badge--warning {
  color: #f59e0b;
  background: #f59e0b1f;
}

.api-quota-card__badge--critical {
  color: #ef4444;
  background: #ef44441f;
}

.api-quota-card__bar {
  background: var(--surface);
  overflow: hidden;
  border-radius: 2px;
  height: 4px;
}

.api-quota-card__fill {
  border-radius: 2px;
  height: 100%;
  transition: width .5s;
}

.api-quota-card__fill--healthy {
  background: #10b981;
}

.api-quota-card__fill--warning {
  background: #f59e0b;
}

.api-quota-card__fill--critical {
  background: #ef4444;
}

.api-quota-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.api-quota-card__detail {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.api-quota-card__detail-value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
}

.api-quota-card__detail-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .6rem;
}

.api-quota-card__footer {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .65rem;
}

.api-prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}

.api-prov-card {
  background: var(--true-black);
  border: 1px solid var(--surface);
  display: flex;
  border-radius: 6px;
  flex-direction: column;
  gap: .6rem;
  padding: .85rem 1rem;
}

.api-prov-card--critical {
  border-left: 3px solid var(--accent-primary);
}

.api-prov-card__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.api-prov-card__id {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.api-prov-card__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.api-prov-card__dot.configured {
  background: #10b981;
}

.api-prov-card__dot.missing {
  background: #ef4444;
}

.api-prov-card__name {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

.api-prov-card__domain {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .65rem;
}

.api-prov-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
}

.api-prov-card__metric {
  display: flex;
  font-family: var(--font-mono);
  justify-content: space-between;
  align-items: baseline;
  font-size: .7rem;
}

.api-prov-card__metric-val {
  color: var(--white);
  font-weight: 600;
}

.api-prov-card__metric-key {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .6rem;
}

.text-positive {
  color: #10b981;
}

.text-warning {
  color: #f59e0b;
}

.api-prov-card__error {
  color: #ef4444;
  font-family: var(--font-mono);
  word-break: break-all;
  background: #ef444414;
  border-radius: 4px;
  padding: .35rem .5rem;
  font-size: .65rem;
}

.api-keys-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  background: var(--true-black);
  border: 1px solid var(--surface);
  border-radius: 6px;
  gap: .4rem;
  padding: .75rem 1rem;
}

.api-key-row {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.api-key-row__name {
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: .7rem;
}

.api-key-row__name--missing {
  color: var(--muted);
  opacity: .6;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 100px 60px 50px 55px 55px 65px 40px 55px 60px;
  border-bottom: 1px solid #35343d80;
  align-items:  center;
  gap: .5rem;
  padding: .875rem 0;
}

.skeleton-line {
  background: linear-gradient(90deg, var(--surface) 0%, #67696d4d 50%, var(--surface) 100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  background-size: 200px 100%;
  border-radius: 3px;
  height: .75rem;
}

.skeleton-rank {
  width: 22px;
  height: .75rem;
}

.skeleton-name {
  width: 70%;
  height: .75rem;
}

.skeleton-category {
  border-radius: 100px;
  width: 60px;
  height: 1.25rem;
}

.skeleton-score {
  width: 32px;
  height: .75rem;
}

.evidence-error {
  display: flex;
  background: #ef44440f;
  border: 1px solid #ef444433;
  border-radius: 6px;
  align-items:  center;
  gap: .75rem;
  margin-bottom: .75rem;
  padding: .85rem 1rem;
}

.evidence-error-text {
  font-family: var(--font-mono);
  color: #ef4444;
  flex: 1;
  font-size: .75rem;
}

.evidence-error .btn {
  color: #ef4444;
  background: #ef44441f;
  border: 1px solid #ef44444d;
  flex-shrink: 0;
  padding: .35rem .75rem;
  font-size: .65rem;
}

.evidence-error .btn:hover {
  background: #ef444433;
}

.scoring-empty-state {
  border: 2px dashed var(--surface);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .05em;
  padding: 1.25rem;
  font-size: .75rem;
}

.scoring-progress-label {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: .25rem;
  font-size: .65rem;
}

.founder-prompt {
  background: #f59e0b14;
  border-left: 3px solid #f59e0b;
}

.sort-arrow-inactive {
  opacity: .3;
  transition: opacity var(--transition-base);
  margin-left: .15rem;
}

.sort-header:hover .sort-arrow-inactive {
  opacity: .6;
}

.toast {
  position: relative;
  overflow: hidden;
}

.toast-countdown {
  position: absolute;
  animation: toast-countdown 5s linear forwards;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
}

@keyframes toast-countdown {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.toast-success .toast-countdown {
  background: #22c55e;
}

.toast-error .toast-countdown {
  background: #ef4444;
}

.toast-info .toast-countdown {
  background: var(--accent-primary);
}

.form-helper-error {
  font-family: var(--font-mono);
  color: #ef4444;
  margin-top: .25rem;
  font-size: .65rem;
}

.confidence-high {
  color: #22c55e;
}

.confidence-medium {
  color: #f59e0b;
}

.confidence-low {
  color: #ef4444;
}

.confidence-tier-label {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-left: .35rem;
  font-size: .55rem;
}

.score-confidence.confidence-high {
  color: #22c55e;
  background: #22c55e1a;
}

.score-confidence.confidence-medium {
  color: #f59e0b;
  background: #f59e0b1a;
}

.score-confidence.confidence-low {
  color: #ef4444;
  background: #ef44441a;
}

.discovery-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.discovery-view__section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.discovery-view__section-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.discovery-view__actions {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.discovery-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.discovery-panels--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (width <= 1100px) {
  .discovery-panels--3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 700px) {
  .discovery-panels, .discovery-panels--3col {
    grid-template-columns: 1fr;
  }
}

.discovery-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
  display: flex;
  border-radius: 6px;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
}

.discovery-panel__title {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .15rem;
  font-size: .65rem;
  font-weight: 600;
}

.discovery-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .75rem 1rem;
}

.discovery-kv {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.discovery-kv__val {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
}

.discovery-kv__val--positive {
  color: #10b981;
}

.discovery-kv__key {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .6rem;
  line-height: 1.2;
}

.discovery-sources-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.discovery-source-row {
  display: flex;
  align-items:  center;
  gap: .5rem;
  padding: .3rem 0;
}

.discovery-source-row__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.discovery-source-row__dot.configured {
  background: #10b981;
}

.discovery-source-row__dot.missing {
  opacity: .5;
  background: #ef4444;
}

.discovery-source-row__name {
  color: var(--white);
  min-width: 70px;
  font-size: .8rem;
  font-weight: 600;
}

.discovery-source-row__stat {
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: .7rem;
}

.discovery-source-row__stat--off {
  color: var(--muted);
  opacity: .6;
}

.discovery-source-row__time {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-left: auto;
  font-size: .65rem;
}

.discovery-lastrun {
  background: var(--true-black);
  border: 1px solid var(--surface);
  display: flex;
  border-radius: 6px;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
}

.discovery-lastrun__header {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.discovery-lastrun__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem 1rem;
}

.discovery-lastrun__item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.discovery-lastrun__val {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
}

.discovery-lastrun__val--positive {
  color: #10b981;
}

.discovery-lastrun__val--negative {
  color: #ef4444;
}

.discovery-lastrun__key {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .6rem;
}

.discovery-feed-panel {
  background: var(--true-black);
  border: 1px solid var(--surface);
  overflow: hidden;
  border-radius: 6px;
}

.discovery-status-pill {
  display: inline-flex;
  border: 1px solid var(--surface);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items:  center;
  padding: .2rem .5rem;
  font-size: .625rem;
}

.discovery-status-pill--running {
  color: #10b981;
  border-color: #10b981;
}

.discovery-status-pill--idle {
  border-color: var(--surface);
  color: var(--muted);
}

.discovery-progress-track {
  background: var(--true-black);
  border: 1px solid var(--surface);
  overflow: hidden;
  width: 100%;
  height: 8px;
  margin-bottom: 1rem;
}

.discovery-progress-fill {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-soft));
  transition: width var(--transition-base);
  height: 100%;
}

.discovery-meta-row {
  display: flex;
  color: var(--muted);
  font-family: var(--font-mono);
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  font-size: .6875rem;
}

.discovery-callout {
  color: var(--paper);
  font-family: var(--font-mono);
  margin-top: 1rem;
  font-size: .75rem;
}

.discovery-feed-status {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .625rem;
}

.discovery-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 90px 80px;
  transition: background var(--transition-base);
  align-items:  center;
  gap: .75rem;
  padding: .75rem 1.5rem;
}

.discovery-feed-source {
  font-family: var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a0a0a0;
  text-align: center;
  white-space: nowrap;
  background: #35343d80;
  border-radius: 3px;
  padding: .125rem .375rem;
  font-size: .6rem;
}

.discovery-feed-source--defillama {
  color: #60a5fa;
  background: #60a5fa1a;
}

.discovery-feed-source--moni_mindshare {
  color: #f59e0b;
  background: #f59e0b1a;
}

.discovery-feed-source--rootdata {
  color: #10b981;
  background: #10b9811a;
}

.discovery-feed-source--exa {
  color: #a78bfa;
  background: #a78bfa1a;
}

.discovery-feed-row:hover {
  background: #35343d4d;
}

.discovery-feed-identity {
  min-width: 0;
}

.discovery-feed-name {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  white-space: normal;
  word-break: break-word;
  font-size: .875rem;
  line-height: 1.2;
}

.discovery-feed-identity--clickable {
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  min-width: 0;
  padding: 0;
}

.discovery-feed-identity--clickable:hover .discovery-feed-name {
  color: var(--accent-primary);
}

.discovery-feed-handle {
  display: inline-block;
  color: var(--muted);
  font-family: var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
  margin-top: .2rem;
  font-size: .75rem;
}

.discovery-feed-handle:hover {
  color: var(--accent-primary);
}

.discovery-feed-time {
  color: var(--disabled);
  font-family: var(--font-mono);
  text-align: right;
  font-size: .75rem;
}

.discovery-feed-status--queued {
  color: #f59e0b;
}

.discovery-feed-status--scoring {
  color: #60a5fa;
}

.discovery-feed-status--scored {
  color: #10b981;
}

.discovery-feed-status--failed {
  color: #ef4444;
}

.ev-workstation-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ev-focus-banner {
  display: flex;
  background: linear-gradient(90deg, #60a5fa1f, #10b98114), #00000052;
  border: 1px solid #60a5fa59;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
  padding: .85rem 1rem;
}

.ev-focus-banner__copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.ev-stat-row {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
}

.ev-stat-card {
  display: flex;
  background: var(--true-black);
  border: 1px solid var(--surface);
  border-radius: 6px;
  flex: 1;
  align-items:  center;
  gap: .75rem;
  padding: .75rem 1rem;
}

.ev-stat-card__value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.ev-stat-card__value--positive {
  color: #10b981;
}

.ev-stat-card__value--negative {
  color: #ef4444;
}

.ev-stat-card__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.ev-stat-card__title {
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
}

.ev-stat-card__sub {
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.2;
}

.ev-filters, .ev-brief-panel, .ev-import-panel, .ev-followups-panel, .ev-workstation-table, .project-workflow-panel, .ev-handoff-card {
  border: 1px solid var(--surface);
  background: #00000052;
  padding: 1.25rem;
}

.ev-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ev-filters__topline, .ev-brief-panel__header, .ev-import-panel__header, .ev-followups-panel__header, .ev-workstation-table__header, .project-workflow-panel__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
}

.ev-filters__controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(140px, .6fr));
  gap: .75rem;
}

.ev-filters__controls > * {
  min-width: 0;
}

.ev-filters .leaderboard-search, .ev-filters .category-filter {
  width: 100%;
  max-width: 100%;
}

.ev-filters__scopes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ev-brief-panel__subhead, .ev-import-panel__subhead {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: .25rem;
  font-size: .7rem;
}

.ev-brief-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .85rem;
  margin-top: 1rem;
}

.ev-brief-panel__column, .ev-import-panel__card {
  display: flex;
  background: #00000038;
  border: 1px solid #67696d59;
  flex-direction: column;
  min-height: 0;
  padding: .9rem;
}

.ev-brief-panel__column {
  min-height: 26rem;
}

.ev-brief-panel__column--priorities {
  background: linear-gradient(#60a5fa14, #0000 22%), #00000038;
}

.ev-brief-panel__column--calls {
  background: linear-gradient(#10b98114, #0000 22%), #00000038;
}

.ev-brief-panel__column--warm-leads {
  background: linear-gradient(#fbbf241a, #0000 22%), #00000038;
}

.ev-brief-panel__column-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.ev-brief-panel__column-title, .ev-import-panel__card-title {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .65rem;
}

.ev-import-panel__card-title {
  margin-bottom: .75rem;
}

.ev-brief-panel__count-pill {
  display: inline-flex;
  color: var(--paper);
  font-family: var(--font-mono);
  background: #ffffff0a;
  border: 1px solid #67696d73;
  justify-content: center;
  align-items:  center;
  min-width: 1.8rem;
  padding: .2rem .5rem;
  font-size: .68rem;
}

.ev-brief-panel__list {
  --ev-brief-card-min-height: 5.75rem;
  --ev-brief-list-gap: .65rem;
  display: flex;
  gap: var(--ev-brief-list-gap);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  flex-direction: column;
  min-height: 0;
  max-height: 24.95rem;
  padding-right: .2rem;
}

.ev-brief-panel__item {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  min-height: var(--ev-brief-card-min-height);
  flex: none;
}

.ev-brief-panel__item:hover {
  border-color: var(--accent-primary);
}

.ev-brief-panel__item-hitbox {
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: .75rem;
}

.ev-brief-panel__item-head, .ev-import-panel__run-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: .75rem;
  font-size: .78rem;
}

.ev-brief-panel__item-body {
  color: var(--paper);
  margin-top: .4rem;
  font-size: .82rem;
}

.ev-brief-panel__item-body--preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.ev-brief-panel__item--call-prep {
  display: flex;
  flex-direction: column;
}

.ev-brief-panel__item-head--stacked {
  align-items:  flex-start;
  gap: .5rem;
}

.ev-brief-panel__item-title-wrap, .ev-brief-panel__item-badges, .ev-brief-panel__call-meta, .project-workflow-panel__call-prep-head, .project-workflow-panel__call-prep-actions, .call-prep-structured__footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: .5rem;
}

.ev-brief-panel__call-summary {
  color: var(--paper);
  margin-top: .55rem;
  font-size: .84rem;
}

.ev-brief-panel__call-progress, .ev-brief-panel__call-error {
  font-family: var(--font-mono);
  margin-top: .55rem;
  font-size: .68rem;
}

.ev-brief-panel__call-progress {
  color: #93c5fd;
}

.ev-brief-panel__call-error {
  color: #fca5a5;
}

.ev-brief-panel__call-objective {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .75rem;
}

.ev-brief-panel__mini-label, .call-prep-structured__label {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .62rem;
}

.ev-brief-panel__call-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .75rem;
}

.ev-brief-panel__call-list-item, .call-prep-structured__text {
  color: var(--paper);
  font-size: .82rem;
}

.ev-brief-panel__call-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: .75rem;
  font-size: .68rem;
}

.ev-brief-panel__item-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 .75rem .6rem;
}

.ev-brief-panel__toggle {
  color: var(--accent-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: none;
  border: none;
  font-size: .68rem;
}

.ev-brief-panel__item-expanded {
  border-top: 1px solid #67696d59;
  padding: .7rem .75rem .85rem;
}

.ev-brief-panel__risk-wrap {
  position: relative;
  min-height: var(--ev-brief-card-min-height);
  flex: none;
}

.ev-brief-panel__risk-wrap .ev-risk-pill {
  position: absolute;
  top: .7rem;
  right: .75rem;
}

.ev-brief-panel__item-meta, .ev-import-panel__status, .ev-import-panel__run, .ev-workstation-table__date-meta, .project-workflow-panel__artifact-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: .35rem;
  font-size: .7rem;
}

.project-workflow-panel__artifact-meta--live {
  color: #93c5fd;
}

.ev-risk-pill, .ev-track-pill {
  display: inline-flex;
  font-family: var(--font-mono);
  text-transform: lowercase;
  color: var(--paper);
  background: #ffffff08;
  border: 1px solid #67696d73;
  justify-content: center;
  align-items:  center;
  padding: .2rem .45rem;
  font-size: .65rem;
}

.ev-risk-pill--high {
  color: #fca5a5;
  border-color: #ef444466;
}

.ev-risk-pill--medium {
  color: #fcd34d;
  border-color: #f59e0b66;
}

.ev-risk-pill--low {
  color: #6ee7b7;
  border-color: #10b98166;
}

.call-prep-status-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--paper);
  background: #ffffff08;
  border: 1px solid #67696d73;
  justify-content: center;
  align-items:  center;
  padding: .2rem .45rem;
  font-size: .65rem;
}

.call-prep-status-badge--fresh {
  color: #6ee7b7;
  border-color: #10b98166;
}

.call-prep-status-badge--stale, .call-prep-status-badge--needs_input {
  color: #fcd34d;
  border-color: #f59e0b73;
}

.call-prep-status-badge--generating {
  color: #93c5fd;
  border-color: #60a5fa73;
}

.call-prep-status-badge--failed {
  color: #fca5a5;
  border-color: #ef444473;
}

.ev-import-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}

.ev-import-panel__actions, .ev-handoff-card__actions, .ev-handoff-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.ev-import-panel__runs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1rem;
}

.ev-import-panel__run {
  background: #0000002e;
  border: 1px solid #67696d59;
  padding: .75rem;
}

.ev-import-panel__error, .ev-handoff-card__error {
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: .75rem;
}

.ev-followups-panel__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.ev-followups-panel__item {
  background: var(--true-black);
  border: 1px solid var(--surface);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-base);
  padding: .9rem 1rem;
}

.ev-followups-panel__item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.ev-followups-panel__item.is-overdue {
  border-color: #e53d268c;
}

.ev-followups-panel__identity, .ev-followups-panel__meta {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: .75rem;
}

.ev-followups-panel__handle, .ev-followups-panel__meta, .ev-followups-panel__action, .ev-workstation-table__source, .project-workflow-panel__meta, .ev-handoff-card__meta, .project-workflow-panel__event-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .7rem;
}

.ev-followups-panel__name, .ev-workstation-table__identity {
  font-size: .875rem;
}

.ev-followups-panel__action {
  color: var(--paper);
  margin-top: .65rem;
}

.ev-workstation-table__grid .sortable-th {
  cursor: pointer;
  user-select: none;
}

.ev-workstation-table__grid .sortable-th:hover {
  color: var(--white);
}

.ev-workstation-table__wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.ev-workstation-table__grid {
  min-width: 960px;
}

.ev-workstation-table__grid th, .ev-workstation-table__grid td {
  padding: .5rem;
}

.ev-workstation-table__grid tbody tr.is-overdue {
  background: #e53d260f;
}

.ev-workstation-table__grid tbody tr.is-warm-lead {
  background: #fbbf2414;
  box-shadow: inset 3px 0 #fbbf24cc;
}

.ev-workstation-table__grid tbody tr.is-focused {
  background: #60a5fa1f;
  box-shadow: inset 3px 0 #60a5facc;
}

.ev-workstation-table__grid tbody tr.is-saving {
  opacity: .72;
}

.ev-workstation-table__identity {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  max-width: 140px;
}

.ev-workstation-table__row-status {
  color: #60a5fa;
}

.ev-workstation-table__select, .ev-workstation-table__input {
  width: 100%;
  min-width: 100px;
  font-size: .75rem;
}

.ev-workstation-table__select--stage {
  min-width: 180px;
}

.ev-workstation-table__input {
  background: var(--ink);
  border: 1px solid var(--surface);
  color: var(--white);
  font-family: var(--font-mono);
  padding: .5rem .65rem;
}

.ev-workstation-table__source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.ev-workstation-table__call-ready {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 170px;
}

.ev-workstation-table__call-ready-note, .project-workflow-panel__call-ready-idle {
  display: inline-flex;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--muted);
  background: #ffffff08;
  border: 1px solid #67696d73;
  justify-content: center;
  align-items:  center;
  width: -moz-fit-content;
  width: fit-content;
  padding: .2rem .45rem;
  font-size: .65rem;
}

.ev-workstation-table__call-ready-meta {
  color: var(--muted);
}

.ev-workstation-table__date-wrap {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.ev-workstation-table__actions {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 120px;
}

.app-shell__content--wide .community-panel, .app-shell__content--wide .admin-users-card, .app-shell__content--wide .ev-filters, .app-shell__content--wide .ev-brief-panel, .app-shell__content--wide .ev-import-panel, .app-shell__content--wide .ev-followups-panel, .app-shell__content--wide .ev-workstation-table {
  padding: 1rem;
}

.app-shell__content--wide .providers-header, .app-shell__content--wide .provider-row, .app-shell__content--wide .discovery-feed-row {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.project-workflow-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-workflow-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.project-workflow-panel__tab {
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
  background: #ffffff05;
  border: 1px solid #67696d73;
  padding: .5rem .8rem;
  font-size: .68rem;
}

.project-workflow-panel__tab:hover {
  border-color: var(--accent-primary);
  color: var(--white);
}

.project-workflow-panel__tab.is-active {
  color: var(--white);
  background: #e53d261f;
  border-color: #e53d2699;
}

.project-workflow-panel__tab-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-workflow-panel__flags {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.project-workflow-panel__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}

.project-workflow-panel__grid--stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-workflow-panel__field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.project-workflow-panel__field span {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .65rem;
}

.project-workflow-panel__field--wide {
  grid-column: span 2;
}

.project-workflow-panel__field--full {
  grid-column: 1 / -1;
}

.project-workflow-panel__field textarea {
  resize: vertical;
}

.project-workflow-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-workflow-panel__artifacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.project-workflow-panel__artifacts--single {
  grid-template-columns: 1fr;
}

.project-workflow-panel__artifact {
  background: #0000002e;
  border: 1px solid #67696d59;
  padding: .8rem;
}

.project-workflow-panel__artifact-title {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .65rem;
}

.project-workflow-panel__call-prep {
  display: flex;
  background: #0000002e;
  border: 1px solid #67696d59;
  flex-direction: column;
  gap: .85rem;
  padding: .9rem;
}

.project-workflow-panel__call-prep-head {
  justify-content: space-between;
}

.project-workflow-panel__call-prep-actions {
  justify-content: flex-end;
}

.project-workflow-panel__call-prep-sources {
  display: flex;
  border-top: 1px solid #67696d38;
  flex-direction: column;
  gap: .6rem;
  padding-top: .85rem;
}

.call-prep-structured {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.call-prep-structured__summary {
  color: var(--white);
  font-size: .88rem;
}

.call-prep-structured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.call-prep-structured__section {
  display: flex;
  background: #ffffff05;
  border: 1px solid #67696d38;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: .75rem;
}

.call-prep-structured__list {
  display: flex;
  color: var(--paper);
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  padding-left: 1rem;
  font-size: .82rem;
}

.call-prep-structured__empty {
  color: var(--muted);
  font-size: .8rem;
}

.call-prep-structured__footer {
  display: flex;
  border-top: 1px solid #67696d38;
  flex-direction: column;
  gap: .6rem;
  padding-top: .75rem;
}

.call-prep-structured__provenance {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.markdown-block--brief {
  font-size: .78rem;
}

.markdown-block--workflow {
  margin-top: .45rem;
  font-size: .84rem;
}

.markdown-block--meta {
  border-top: 1px solid #67696d38;
  margin-top: .55rem;
  padding-top: .55rem;
}

.markdown-block--event {
  margin-top: .4rem;
}

.ev-handoff-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ev-handoff-card__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
}

.ev-handoff-card__status {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .625rem;
}

.ev-handoff-card__status--queued, .ev-handoff-card__status--processing {
  color: #f59e0b;
}

.ev-handoff-card__status--completed {
  color: #10b981;
}

.ev-handoff-card__status--failed {
  color: #ef4444;
}

.ev-handoff-card__status--idle {
  color: var(--muted);
}

.ev-handoff-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ev-handoff-card__id {
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: .75rem;
}

.project-workflow-panel__timeline {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.project-workflow-panel__link-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .55rem;
}

.project-workflow-panel__link-list a {
  color: var(--accent-soft);
  text-decoration: none;
}

.project-workflow-panel__link-list a:hover {
  color: var(--white);
}

.project-workflow-panel__composer, .project-workflow-panel__events {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.project-workflow-panel__event {
  border: 1px solid #67696d59;
  padding: .75rem;
}

.project-workflow-panel__event-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
  font-size: .8rem;
}

.project-workflow-panel__event-note {
  color: var(--paper);
  white-space: pre-wrap;
  margin-top: .4rem;
}

@media (width <= 1024px) {
  .ev-stat-row {
    flex-wrap: wrap;
  }

  .ev-stat-card {
    flex: calc(50% - .5rem);
    min-width: 0;
  }

  .ev-brief-panel__grid, .ev-import-panel__grid, .ev-filters__controls, .call-prep-structured__grid, .project-workflow-panel__artifacts, .project-workflow-panel__grid, .project-workflow-panel__grid--stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ev-followups-panel__list {
    grid-template-columns: 1fr;
  }

  .ev-handoff-card__meta, .project-workflow-panel__meta {
    flex-direction: column;
    align-items:  flex-start;
  }
}

@media (width <= 640px) {
  .ev-stat-card {
    flex: 100%;
  }

  .ev-brief-panel__grid, .ev-import-panel__grid, .ev-filters__controls, .call-prep-structured__grid, .project-workflow-panel__artifacts, .project-workflow-panel__grid, .project-workflow-panel__grid--stacked {
    grid-template-columns: 1fr;
  }

  .project-workflow-panel__field--wide, .project-workflow-panel__field--full {
    grid-column: auto;
  }
}

.meth-container {
  padding: var(--space-md) 0;
  max-width: 1000px;
  margin: 0 auto;
}

.meth-section {
  padding-bottom: var(--space-xl);
}

.meth-section__title {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-sm);
  letter-spacing: -.02em;
  font-size: 1.7rem;
  font-weight: 700;
}

.meth-section__intro {
  color: var(--warm-muted);
  margin-bottom: var(--space-lg);
  max-width: 720px;
  font-size: .95rem;
  line-height: 1.65;
}

.meth-subsection-title {
  font-family: var(--font-display);
  color: var(--white);
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.15rem;
  font-weight: 600;
}

.meth-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-overview-card {
  background: var(--ink);
  padding: var(--space-lg) var(--space-md);
  transition: border-color var(--transition-base);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-overview-card:hover {
  border-color: #ffffff1f;
}

.meth-overview-card__icon {
  margin-bottom: var(--space-sm);
  font-size: 1.8rem;
}

.meth-overview-card h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  font-weight: 600;
}

.meth-overview-card p {
  color: var(--warm-muted);
  font-size: .85rem;
  line-height: 1.55;
}

.meth-formula-box {
  background: var(--ink);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-formula-box h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
}

.meth-formula {
  display: flex;
  padding: var(--space-md);
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
  background: #0000004d;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  font-size: .9rem;
}

.meth-formula__term {
  background: #ffffff0d;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 600;
}

.meth-formula__op {
  color: var(--muted);
  font-weight: 400;
}

.meth-formula__result {
  color: var(--accent-primary);
  background: #e53d261a;
  border: 1px solid #e53d2640;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 700;
}

.meth-formula__note {
  color: var(--warm-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.meth-donut-container {
  display: flex;
  align-items:  center;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--ink);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-donut {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.meth-donut__segment {
  transition: opacity var(--transition-base);
}

.meth-donut__center-num {
  font-family: var(--font-display);
  fill: var(--white);
  transform-origin: 100px 100px;
  font-size: 28px;
  font-weight: 700;
  transform: rotate(90deg);
}

.meth-donut__center-label {
  font-family: var(--font-display);
  fill: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  transform-origin: 100px 100px;
  font-size: 11px;
  font-weight: 500;
  transform: rotate(90deg);
}

.meth-donut__legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meth-donut__legend-item {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.meth-donut__legend-dot {
  border-radius: 2px;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.meth-donut__legend-name {
  color: var(--white);
  font-family: var(--font-display);
  min-width: 80px;
  font-size: .85rem;
  font-weight: 500;
}

.meth-donut__legend-weight {
  color: var(--warm-muted);
  font-family: var(--font-mono);
  font-size: .8rem;
}

.meth-weight-bars {
  display: flex;
  margin-bottom: var(--space-lg);
  flex-direction: column;
  gap: 8px;
}

.meth-weight-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meth-weight-bar__label {
  display: flex;
  font-family: var(--font-display);
  color: var(--white);
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 500;
}

.meth-weight-bar__pts {
  color: var(--warm-muted);
  font-family: var(--font-mono);
  font-size: .78rem;
}

.meth-weight-bar__track {
  overflow: hidden;
  background: #ffffff0f;
  border-radius: 3px;
  height: 6px;
}

.meth-weight-bar__fill {
  border-radius: 3px;
  height: 100%;
  transition: width .6s cubic-bezier(.16,1,.3,1);
}

.meth-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-category-card {
  background: var(--ink);
  padding: var(--space-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
  border: 1px solid #ffffff0f;
  border-left: 3px solid var(--cat-color, var(--muted));
  color: inherit;
  border-radius: 12px;
  width: 100%;
  font-family: inherit;
}

.meth-category-card:hover {
  border-color: #ffffff1f;
  border-left-color: var(--cat-color, var(--muted));
  background: #151924e6;
}

.meth-category-card--expanded {
  grid-column: 1 / -1;
}

.meth-category-card__header {
  display: flex;
  align-items:  center;
  gap: var(--space-sm);
  margin-bottom: 6px;
}

.meth-category-card__icon {
  font-size: 1.3rem;
}

.meth-category-card__title-group {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex: 1;
}

.meth-category-card__name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.meth-category-card__weight {
  font-family: var(--font-mono);
  color: var(--cat-color, var(--muted));
  font-size: .78rem;
  font-weight: 500;
}

.meth-category-card__chevron {
  color: var(--muted);
  font-size: .9rem;
}

.meth-category-card__tagline {
  color: var(--warm-muted);
  margin-left: 2rem;
  font-size: .82rem;
  line-height: 1.45;
}

.meth-category-card__details {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid #ffffff0f;
}

.meth-category-card__description {
  color: #ffffffbf;
  margin-bottom: var(--space-md);
  font-size: .88rem;
  line-height: 1.6;
}

.meth-category-card__signals, .meth-category-card__sources {
  margin-bottom: var(--space-md);
}

.meth-category-card__signals h4, .meth-category-card__sources h4 {
  font-family: var(--font-display);
  color: var(--cat-color, var(--muted));
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 600;
}

.meth-category-card__signals ul, .meth-category-card__sources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meth-category-card__signals li, .meth-category-card__sources li {
  color: var(--warm-muted);
  position: relative;
  padding-left: 14px;
  font-size: .82rem;
  line-height: 1.45;
}

.meth-category-card__signals li:before, .meth-category-card__sources li:before {
  content: "›";
  position: absolute;
  color: var(--cat-color, var(--muted));
  font-weight: 600;
  left: 0;
}

.meth-tier-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-tier-table {
  background: var(--ink);
  padding: var(--space-md);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-tier-table h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.meth-tier-table__intro {
  color: var(--warm-muted);
  margin-bottom: var(--space-md);
  font-size: .82rem;
  line-height: 1.5;
}

.meth-tier-table__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meth-tier-row {
  display: flex;
  align-items:  flex-start;
  gap: 10px;
}

.meth-tier-row__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
}

.meth-tier-row__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meth-tier-row__content strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: .85rem;
}

.meth-tier-row__examples, .meth-tier-row__desc {
  color: var(--warm-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.meth-tier-row__impact, .meth-tier-row__score {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .75rem;
}

.meth-callout {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  background: #e53d260f;
  border: 1px solid #e53d2626;
  border-radius: 12px;
}

.meth-callout h4 {
  font-family: var(--font-display);
  color: var(--accent-primary);
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 600;
}

.meth-callout p {
  color: #ffffffb3;
  font-size: .85rem;
  line-height: 1.6;
}

.meth-callout__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.meth-callout__grid--3col {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--space-md);
}

.meth-callout__grid--3col .meth-callout__item {
  padding: var(--space-sm) var(--space-md);
  background: #ffffff08;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  gap: 6px;
}

.meth-callout__grid--3col .meth-callout__label {
  letter-spacing: .04em;
  font-size: .82rem;
}

.meth-callout__grid--3col .meth-callout__value {
  color: var(--warm-muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.5;
}

.meth-callout__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meth-callout__label {
  font-family: var(--font-display);
  color: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 600;
}

.meth-callout__value {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}

.meth-pipeline {
  margin-bottom: var(--space-lg);
}

.meth-pipeline-step {
  display: flex;
  gap: var(--space-md);
}

.meth-pipeline-step__indicator {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
}

.meth-pipeline-step__dot {
  display: flex;
  font-family: var(--font-mono);
  color: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  font-size: .82rem;
  font-weight: 700;
}

.meth-pipeline-step__line {
  background: #ffffff14;
  flex: 1;
  width: 2px;
  min-height: 20px;
}

.meth-pipeline-step__content {
  padding-bottom: var(--space-lg);
}

.meth-pipeline-step__title {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 4px;
  font-size: .95rem;
  font-weight: 600;
}

.meth-pipeline-step__desc {
  color: var(--warm-muted);
  max-width: 560px;
  font-size: .82rem;
  line-height: 1.55;
}

.meth-pipeline-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-pipeline-note {
  background: var(--ink);
  padding: var(--space-md);
  border: 1px solid #ffffff0f;
  border-radius: 10px;
}

.meth-pipeline-note h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 600;
}

.meth-pipeline-note p {
  color: var(--warm-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.meth-discovery-sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-discovery-source {
  background: var(--ink);
  padding: var(--space-md);
  transition: border-color var(--transition-base);
  border: 1px solid #ffffff0f;
  border-left: 3px solid;
  border-radius: 10px;
}

.meth-discovery-source:hover {
  border-color: #ffffff1f;
}

.meth-discovery-source__header {
  display: flex;
  align-items:  center;
  gap: var(--space-sm);
  margin-bottom: 8px;
}

.meth-discovery-source__icon {
  font-size: 1.3rem;
}

.meth-discovery-source__name {
  font-family: var(--font-display);
  color: var(--white);
  flex: 1;
  font-size: .92rem;
  font-weight: 600;
}

.meth-discovery-source__cadence {
  font-family: var(--font-mono);
  color: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #ffffff0d;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 500;
}

.meth-discovery-source__desc {
  color: var(--warm-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.meth-filter-flow {
  display: flex;
  margin-bottom: var(--space-lg);
  flex-direction: column;
  align-items: stretch;
}

.meth-filter-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--ink);
  border: 1px solid #ffffff0f;
  border-radius: 10px;
}

.meth-filter-step--reject {
  background: #ef444408;
  border-color: #ef444433;
}

.meth-filter-step--final {
  background: #34d39908;
  border-color: #34d39933;
}

.meth-filter-step__icon {
  display: flex;
  font-family: var(--font-mono);
  color: var(--white);
  background: #ffffff14;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-size: .78rem;
  font-weight: 700;
}

.meth-filter-step--reject .meth-filter-step__icon {
  color: #ef4444;
  background: #ef444426;
}

.meth-filter-step--final .meth-filter-step__icon {
  color: #34d399;
  background: #34d39926;
}

.meth-filter-step__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meth-filter-step__content strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: .88rem;
}

.meth-filter-step__content span {
  color: var(--warm-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.meth-filter-connector {
  background: #ffffff14;
  width: 2px;
  height: 16px;
  margin: 0 auto;
}

.meth-ranking-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meth-ranking-badge-card {
  background: var(--ink);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-ranking-badge-card h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: var(--space-sm) 0 6px;
  font-size: .88rem;
  font-weight: 600;
}

.meth-ranking-badge-card p {
  color: var(--warm-muted);
  text-align: left;
  font-size: .78rem;
  line-height: 1.5;
}

.meth-ranking-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  border-radius: 6px;
  align-items:  center;
  gap: 3px;
  padding: 6px 14px;
  font-size: .88rem;
  font-weight: 700;
}

.meth-ranking-badge--up {
  color: #34d399;
  background: #34d3991f;
}

.meth-ranking-badge--down {
  color: #ef4444;
  background: #ef44441f;
}

.meth-ranking-badge--stable {
  color: var(--muted);
  background: #ffffff0f;
  font-size: 1.1rem;
}

.meth-ranking-badge--new {
  color: #fbbf24;
  letter-spacing: .08em;
  background: #fbbf241f;
  font-size: .75rem;
}

.meth-ranking-arrow {
  font-size: .7rem;
}

.meth-ranking-compact {
  display: flex;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.meth-ranking-item {
  display: flex;
  align-items:  center;
  gap: var(--space-sm);
  color: var(--warm-muted);
  font-size: .85rem;
}

.meth-confidence-scale {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-direction: column;
}

.meth-confidence-level {
  display: flex;
  gap: var(--space-md);
  background: var(--ink);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  align-items:  center;
}

.meth-confidence-level__bar {
  position: absolute;
  background: var(--conf-color);
  border-radius: 3px 3px 0 0;
  height: 3px;
  top: 0;
  left: 0;
}

.meth-confidence-level__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meth-confidence-level__info strong {
  font-family: var(--font-display);
  color: var(--conf-color);
  font-size: .88rem;
}

.meth-confidence-level__info span {
  color: var(--warm-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.meth-example {
  background: var(--ink);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
}

.meth-example__title {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
}

.meth-example__bars {
  display: flex;
  margin-bottom: var(--space-md);
  flex-direction: column;
  gap: 14px;
}

.meth-example__row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  grid-template-rows: auto auto;
  gap: 0 var(--space-sm);
  align-items:  center;
}

.meth-example__name {
  font-family: var(--font-display);
  grid-row: 1;
  font-size: .82rem;
  font-weight: 600;
}

.meth-example__track {
  overflow: hidden;
  position: relative;
  grid-row: 1;
  background: #ffffff0d;
  border-radius: 4px;
  height: 8px;
}

.meth-example__fill {
  transition: width .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--ex-delay, 0s);
  border-radius: 4px;
  width: 0;
  height: 100%;
}

.meth-example__fill--active {
  width: var(--ex-width);
}

.meth-example__cap {
  display: none;
}

.meth-example__score {
  font-family: var(--font-mono);
  color: var(--white);
  text-align: right;
  grid-row: 1;
  font-size: .82rem;
  font-weight: 600;
}

.meth-example__max {
  color: var(--muted);
  font-weight: 400;
}

.meth-example__note {
  color: var(--muted);
  grid-column: 2 / -1;
  grid-row: 2;
  padding-top: 2px;
  font-size: .72rem;
  line-height: 1.3;
}

.meth-example__total {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid #ffffff14;
}

.meth-example__total-label {
  font-family: var(--font-display);
  color: var(--warm-muted);
  flex: 1;
  font-size: .88rem;
  font-weight: 600;
}

.meth-example__total-value {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.meth-example__total-max {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .88rem;
}

.meth-flow-rows {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-direction: column;
}

.meth-flow-row {
  display: grid;
  grid-template-columns: 1fr auto 140px;
  grid-template-rows: auto auto;
  gap: 0 var(--space-md);
  background: var(--ink);
  border: 1px solid #ffffff0f;
  border-left: 3px solid var(--flow-color);
  padding: var(--space-md);
  transition: border-color var(--transition-base), box-shadow .25s ease-out;
  border-radius: 10px;
  align-items:  center;
}

.meth-flow-row:hover {
  border-color: var(--flow-color);
  box-shadow: 0 4px 20px #00000040;
}

.meth-flow-sources {
  display: flex;
  grid-row: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.meth-flow-source {
  font-family: var(--font-mono);
  color: var(--white);
  white-space: nowrap;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background .2s ease-out, border-color .2s ease-out;
  font-size: .72rem;
  font-weight: 500;
}

.meth-flow-row:hover .meth-flow-source {
  background: #ffffff1a;
  border-color: #ffffff26;
}

.meth-flow-connector {
  display: flex;
  grid-row: 1;
  align-items:  center;
  gap: 0;
  min-width: 60px;
}

.meth-flow-connector__line {
  background: repeating-linear-gradient(90deg, var(--flow-color) 0, var(--flow-color) 6px, transparent 6px, transparent 12px);
  animation: methFlowDash .8s linear infinite;
  opacity: .5;
  background-size: 24px 2px;
  flex: 1;
  height: 2px;
}

.meth-flow-row:hover .meth-flow-connector__line {
  opacity: 1;
}

.meth-flow-connector__arrow {
  color: var(--flow-color);
  opacity: .6;
  transition: opacity .2s ease-out;
  font-size: 1rem;
  line-height: 1;
}

.meth-flow-row:hover .meth-flow-connector__arrow {
  opacity: 1;
}

@keyframes methFlowDash {
  to {
    background-position: 24px 0;
  }
}

.meth-flow-target {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  grid-row: 1;
}

.meth-flow-target__name {
  font-family: var(--font-display);
  color: var(--flow-color);
  font-size: .95rem;
  font-weight: 600;
}

.meth-flow-target__weight {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .72rem;
}

.meth-flow-method {
  color: var(--muted);
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 6px;
  font-size: .75rem;
  font-style: italic;
}

.meth-flow-legend {
  margin-bottom: var(--space-md);
}

.meth-flow-legend__item {
  display: flex;
  align-items:  center;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: .78rem;
}

.meth-flow-legend__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

@media (width <= 600px) {
  .meth-flow-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .meth-flow-connector {
    display: none;
  }

  .meth-flow-target {
    grid-row: auto;
  }

  .meth-example__row {
    grid-template-columns: 70px 1fr 40px;
  }
}

.meth-weight-bar__fill {
  transition: width .9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--bar-delay, 0s);
  width: 0;
}

.meth-weight-bar__fill--active {
  width: var(--bar-width);
}

.meth-donut__segment {
  transition: stroke-dasharray .9s cubic-bezier(.16,1,.3,1);
}

.meth-pipeline-step__dot {
  position: relative;
  z-index: 1;
}

.meth-section--visible .meth-pipeline-step__dot:after {
  content: "";
  position: absolute;
  z-index: -1;
  animation: methDotPulse 2.5s ease-out infinite;
  animation-delay: calc(var(--reveal-index, 0) * .3s + .8s);
  background: currentColor;
  border-radius: 50%;
  inset: 0;
}

@keyframes methDotPulse {
  0% {
    transform: scale(1);
    opacity: .4;
  }

  70%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.meth-pipeline-step__line {
  transform-origin: top;
  transition: transform .5s ease-out;
  transform: scaleY(0);
}

.meth-section--visible .meth-pipeline-step__line {
  transition-delay: calc(var(--reveal-index, 0) * 80ms + .3s);
  transform: scaleY(1);
}

.meth-filter-connector {
  transform-origin: top;
  transition: transform .35s ease-out;
  transform: scaleY(0);
}

.meth-section--visible .meth-filter-connector {
  transition-delay: calc(var(--reveal-index, 0) * .1s + .2s);
  transform: scaleY(1);
}

.meth-overview-card {
  transition: border-color var(--transition-base), transform .25s ease-out, box-shadow .25s ease-out;
}

.meth-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px #00000059;
}

.meth-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px #00000040;
}

.meth-discovery-source {
  transition: border-color var(--transition-base), transform .25s ease-out, box-shadow .25s ease-out;
}

.meth-discovery-source:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #0000004d;
}

.meth-pipeline-note {
  transition: border-color var(--transition-base), transform .25s ease-out;
}

.meth-pipeline-note:hover {
  border-color: #ffffff1f;
  transform: translateY(-2px);
}

.meth-ranking-badge-card {
  transition: border-color var(--transition-base), transform .25s ease-out;
}

.meth-ranking-badge-card:hover {
  border-color: #ffffff1f;
  transform: translateY(-2px);
}

.meth-ranking-badge {
  transition: transform .2s ease-out;
}

.meth-ranking-badge-card:hover .meth-ranking-badge {
  transform: scale(1.1);
}

.meth-category-card__details-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease-out;
}

.meth-category-card--expanded .meth-category-card__details-wrap {
  grid-template-rows: 1fr;
}

.meth-category-card__details-wrap > .meth-category-card__details {
  overflow: hidden;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.meth-category-card__details-inner {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid #ffffff0f;
}

.meth-confidence-level__bar {
  transform-origin: left;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--reveal-index, 0) * .12s + .2s);
  transform: scaleX(0);
}

.meth-section--visible .meth-confidence-level__bar {
  transform: scaleX(1);
}

.meth-donut__legend-item {
  cursor: default;
  transition: transform .2s ease-out;
}

.meth-donut__legend-item:hover {
  transform: translateX(4px);
}

.meth-tier-row {
  border-radius: 6px;
  margin: -6px -8px;
  padding: 6px 8px;
  transition: background .2s ease-out;
}

.meth-tier-row:hover {
  background: #ffffff08;
}

@media (prefers-reduced-motion: reduce) {
  .meth-weight-bar__fill {
    width: var(--bar-width) !important;
    transition: none !important;
  }

  .meth-confidence-level__bar, .meth-pipeline-step__line, .meth-filter-connector {
    transition: none !important;
    transform: none !important;
  }

  .meth-section--visible .meth-pipeline-step__dot:after {
    animation: none !important;
  }
}

@media (width <= 900px) {
  .meth-overview-grid, .meth-categories-grid, .meth-tier-tables, .meth-discovery-sources, .meth-pipeline-notes {
    grid-template-columns: 1fr;
  }

  .meth-ranking-badges, .meth-callout__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meth-donut-container {
    flex-direction: column;
    align-items:  center;
  }
}

@media (width <= 600px) {
  .meth-ranking-badges, .meth-callout__grid {
    grid-template-columns: 1fr;
  }

  .meth-formula {
    gap: 4px;
    font-size: .78rem;
  }
}
