:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eef4f6;
  --ink: #162033;
  --muted: #667085;
  --line: #d7dee8;
  --teal: #126b73;
  --teal-soft: #dff3f1;
  --amber: #b7791f;
  --amber-soft: #fff4db;
  --rose: #b42346;
  --rose-soft: #ffe4e8;
  --green: #237a57;
  --green-soft: #dff7eb;
  --violet: #6655a8;
  --shadow: 0 14px 36px rgba(22, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.brand-copy {
  max-width: 340px;
}

.control-group {
  margin-bottom: 18px;
}

.ranking-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(300px, 1.4fr);
  gap: 12px;
  align-items: end;
  padding: 14px 16px 0;
}

.ranking-controls .control-group,
.site-search-controls .control-group {
  margin-bottom: 0;
}

.search-control {
  min-width: 0;
}

.site-search-controls {
  padding: 14px 16px 0;
}

.search-results {
  padding: 12px 16px 0;
}

.search-results-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
}

.search-results-head strong {
  color: #101828;
}

.search-results-head span {
  color: var(--muted);
}

.search-result-list {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
}

.search-result-item:hover {
  border-color: #9fc8c9;
  background: #f7fbfb;
}

.search-result-item strong,
.search-result-item small,
.search-result-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item strong {
  color: var(--teal);
  font-size: 13px;
}

.search-result-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.search-result-item em {
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
  font-style: normal;
}

.control-group label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.segmented button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.segmented button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
}

main {
  padding: 24px;
  max-width: 1540px;
  margin: 0 auto;
}

.detail-page {
  max-width: 1260px;
  margin: 0 auto;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.detail-topbar a,
.detail-hero a,
.identity-list a,
.source-list a {
  color: var(--teal);
  text-decoration: none;
}

.detail-topbar a:hover,
.detail-hero a:hover,
.identity-list a:hover,
.source-list a:hover {
  text-decoration: underline;
}

.detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-hero > div:not(.detail-visual) {
  min-width: 0;
  flex: 1 1 auto;
}

.detail-visual {
  flex: 0 0 86px;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.visual-frame {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f7fb;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.visual-frame img,
.visual-fallback {
  width: 100%;
  height: 100%;
}

.visual-frame img {
  display: block;
  object-fit: cover;
}

.detail-visual small {
  max-width: 96px;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.visual-fallback {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(0, 135, 122, 0.12), rgba(48, 108, 174, 0.12)),
    #fbfcfd;
}

.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #475467;
  line-height: 1.55;
}

.decision-summary {
  max-width: 860px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.decision-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.decision-main strong {
  min-width: 220px;
  color: #101828;
  font-size: 14px;
  line-height: 1.35;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.decision-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #ffffff;
}

.decision-grid span,
.score-guide span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.decision-grid strong {
  display: block;
  margin-top: 4px;
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-hero #detailKicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.detail-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: 0;
}

.detail-hero a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.decision-brief {
  padding: 16px;
}

.decision-lead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.decision-lead strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
}

.decision-lead span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.decision-tiles,
.data-health-grid,
.ranking-guide,
.candidate-why-grid {
  display: grid;
  gap: 10px;
}

.decision-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.decision-tiles div,
.data-health-card,
.ranking-guide div,
.candidate-why-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.decision-tiles span,
.data-health-card span,
.ranking-guide span,
.candidate-why-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.decision-tiles strong,
.data-health-card strong,
.ranking-guide strong,
.candidate-why-grid strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.decision-tiles small {
  display: block;
  margin-top: 6px;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.ranking-guide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 16px 0;
}

.data-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

.data-health-card.warn {
  border-color: #f2d39b;
  background: #fffaf0;
}

.data-health-card.ok {
  border-color: #c9e6de;
  background: #f4fbf8;
}

.data-health-card p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.data-health-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.data-health-tasks a {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

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

.stat {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.brief-card {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.brief-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-card strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.3;
}

.brief-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.watch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.watch-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
}

.watch-card:hover {
  border-color: #9fc8c9;
}

.watch-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.watch-head span {
  min-width: 0;
}

.watch-head strong,
.watch-head small,
.watch-next {
  display: block;
}

.watch-head strong {
  color: #101828;
  line-height: 1.25;
}

.watch-head small,
.watch-next {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.watch-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
}

.panel-head span,
.panel-head a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
}

td.num,
th.num {
  text-align: right;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #f4fbfa;
}

.game-cell {
  min-width: 0;
  white-space: normal;
}

.title-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

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

.list-icon {
  position: relative;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.list-icon img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-icon img + span {
  display: none;
}

.list-icon.is-fallback span {
  display: grid;
}

.game-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.game-link,
.inline-link {
  color: var(--teal);
  text-decoration: none;
}

.game-link:hover,
.inline-link:hover {
  text-decoration: underline;
}

.game-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-funding {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-funding.active {
  color: var(--teal);
}

.game-funding.niche {
  color: var(--amber);
}

.game-backer {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backer.hot,
.game-backer.active {
  color: var(--teal);
}

.game-backer.niche {
  color: var(--amber);
}

.funding-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

th:nth-child(1),
td:nth-child(1) {
  width: 64px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 220px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 126px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 110px;
}

th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6) {
  width: 92px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 136px;
}

th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9),
th:nth-child(10),
td:nth-child(10) {
  width: 110px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.pill.hot {
  background: var(--green-soft);
  color: var(--green);
}

.pill.active {
  background: var(--teal-soft);
  color: var(--teal);
}

.pill.niche {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.low,
.pill.review {
  background: var(--rose-soft);
  color: var(--rose);
}

.link-pill {
  color: var(--teal);
}

.bar-chart {
  padding: 18px 16px 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) 1fr 42px;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  margin-bottom: 10px;
}

.bar-label {
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e8eef3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--violet));
}

.bar-value {
  color: #344054;
  font-size: 12px;
  text-align: right;
}

.ranking-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 16px;
}

.ranking-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.ranking-card-head {
  padding: 12px 12px 9px;
  border-bottom: 1px solid #edf1f5;
}

.ranking-card-head strong,
.ranking-card-head small {
  display: block;
}

.ranking-card-head strong {
  font-size: 14px;
}

.ranking-card-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ranking-list {
  display: grid;
}

.ranking-row {
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  color: inherit;
  text-decoration: none;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: #f4fbfa;
}

.rank-no {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

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

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--teal);
  font-size: 13px;
}

.rank-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.rank-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.rank-reasons em {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef7f6;
  color: #21666a;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
}

.rank-score {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.promotion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.promotion-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.reader-summary {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #d7e7e4;
  border-radius: 8px;
  background: #f5fbfa;
}

.reader-summary p {
  margin: 0;
  color: #183b3d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.reader-summary-grid {
  display: grid;
  gap: 8px;
}

.reader-summary-grid div {
  min-width: 0;
}

.reader-summary-grid span {
  display: block;
  color: #607277;
  font-size: 11px;
  font-weight: 900;
}

.reader-summary-grid strong {
  display: block;
  margin-top: 3px;
  color: #213547;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.promotion-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.promotion-title span {
  min-width: 0;
}

.promotion-title strong,
.promotion-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-title strong {
  color: var(--teal);
  font-size: 14px;
}

.promotion-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.promotion-score {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.promotion-action {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.promotion-checks {
  display: grid;
  gap: 6px;
}

.promotion-check {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: center;
}

.promotion-check small {
  min-width: 0;
  color: #475467;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.empty.compact {
  padding: 12px;
  font-size: 12px;
}

.radar-list,
.signal-list,
.gap-list,
.queue-list,
.knowledge-list,
.discovery-list,
.discord-list,
.coverage-panel,
.detail-panel {
  padding: 16px;
}

.radar-item,
.signal-item,
.gap-item,
.queue-item,
.knowledge-item,
.discovery-item,
.discord-item {
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.radar-item:first-child,
.signal-item:first-child,
.gap-item:first-child,
.queue-item:first-child,
.knowledge-item:first-child,
.discovery-item:first-child,
.discord-item:first-child {
  padding-top: 0;
}

.radar-item:last-child,
.signal-item:last-child,
.gap-item:last-child,
.queue-item:last-child,
.knowledge-item:last-child,
.discovery-item:last-child,
.discord-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.discovery-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
}

.load-more-button {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 11px 14px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.load-more-button:hover {
  background: var(--teal-soft);
}

.load-more-button[hidden] {
  display: none;
}

.discord-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.discovery-item,
.discord-item {
  min-width: 0;
}

.discovery-item .tag-row,
.discord-item .tag-row {
  margin-bottom: 8px;
}

.discovery-item .inline-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.source-run-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.source-run-item {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.source-run-item.warn {
  border-color: #f2d39b;
  background: #fffaf0;
}

.source-run-item span,
.source-run-item small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-run-item strong {
  display: block;
  margin: 5px 0;
  font-size: 13px;
}

.queue-item {
  min-width: 0;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.task-stack {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.task-stack div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fff;
}

.task-stack strong,
.task-stack small {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.task-stack strong {
  color: #101828;
  font-size: 12px;
}

.task-stack small {
  margin-top: 3px;
  color: #475467;
  font-size: 11px;
}

.catalyst-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.catalyst-item {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.catalyst-item strong {
  display: block;
  margin-bottom: 4px;
}

.catalyst-item span {
  color: var(--muted);
  font-size: 12px;
}

.document-evidence {
  border-color: #cfe2e2;
  background: #f7fbfb;
}

.document-evidence .tag-row {
  margin-top: 8px;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.document-links.secondary {
  margin-top: 8px;
  opacity: 0.88;
}

.document-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.document-quality div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #cfe2e2;
  border-radius: 8px;
  background: #fff;
}

.document-quality span,
.document-quality strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-quality span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.document-quality strong {
  margin-top: 4px;
  color: #101828;
  font-size: 12px;
  line-height: 1.35;
}

.document-link {
  display: inline-flex;
  min-width: min(100%, 184px);
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #cfe2e2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.document-link:hover {
  border-color: #9fc8c9;
  background: #f2f8f8;
}

.document-link.muted {
  border-style: dashed;
  background: #f8fbfb;
}

.document-link strong {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
}

.document-link small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.history-row {
  display: grid;
  grid-template-columns: 96px 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 12px;
}

.history-row span {
  color: var(--muted);
}

.history-row strong {
  text-align: right;
}

.history-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-item {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.signal-item:hover {
  background: #f4fbfa;
}

.signal-item .pill {
  margin-bottom: 7px;
}

.signal-item .pill + .pill {
  margin-left: 6px;
}

.item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-weight: 800;
}

.item-title-with-icon .title-lockup {
  flex: 1 1 auto;
}

.item-title small {
  color: var(--muted);
  font-weight: 700;
}

.item-copy {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px;
  margin-bottom: 0;
}

.metric-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 10px;
}

.metric-details {
  margin-top: 10px;
  border-top: 1px solid #edf1f5;
  padding-top: 10px;
}

.metric-details summary {
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.metric-detail-grid {
  margin-top: 10px;
  margin-bottom: 0;
}

.identity-list {
  margin: 16px 0 0;
}

.identity-list dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.identity-list dd {
  margin: 5px 0 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.insight-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.insight-block h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 13px;
}

.insight-block p {
  margin: 0 0 10px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.muted-copy {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  align-items: center;
}

.check-row small {
  min-width: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-guide,
.signal-summary,
.profile-fact-grid,
.funding-grid,
.score-reason-grid,
.link-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-guide div,
.signal-summary div,
.profile-fact-grid div,
.funding-grid div,
.score-reason-grid div,
.link-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.score-guide strong,
.signal-summary strong,
.profile-fact-grid strong,
.funding-grid strong,
.score-reason-grid strong,
.link-card strong {
  display: block;
  margin-top: 6px;
  color: #101828;
  overflow-wrap: anywhere;
}

.profile-fact-grid,
.funding-grid,
.score-reason-grid {
  margin: 10px 0;
}

.profile-fact-grid span,
.funding-grid span,
.score-reason-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.link-card-list {
  grid-template-columns: 1fr;
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.link-card:hover {
  border-color: #9fc8c9;
  background: #f7fbfb;
}

.link-card strong {
  margin-top: 0;
  color: var(--teal);
  font-size: 13px;
}

.link-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.source-quality-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.source-quality-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.source-quality-item:hover {
  border-color: #9fc8c9;
  background: #f7fbfb;
}

.source-quality-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.source-quality-item strong {
  min-width: 0;
  color: #101828;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.source-quality-item small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.score-guide small {
  display: block;
  margin-top: 5px;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.caution-block {
  border-color: #f1d7a1;
  background: #fffaf0;
}

.caution-block h3,
.caution-block p {
  color: #7a4a00;
}

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

.signal-summary strong {
  font-size: 12px;
  line-height: 1.35;
}

.observation-table {
  display: grid;
  gap: 8px;
}

.observation-head,
.observation-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.2fr) 58px minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
}

.observation-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.observation-row {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.observation-row div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.observation-row strong {
  color: #101828;
  font-size: 13px;
}

.observation-row small {
  min-width: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.score-breakdown div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.score-breakdown span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.score-breakdown strong {
  display: block;
  margin-top: 4px;
}

.activity-evidence {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.activity-evidence-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.activity-evidence-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.activity-evidence-item small {
  min-width: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-evidence-item a {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.mini-dl {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px 10px;
  margin: 0;
  font-size: 13px;
}

.mini-dl dt {
  color: var(--muted);
  font-weight: 800;
}

.mini-dl dd {
  min-width: 0;
  margin: 0;
  color: #344054;
  overflow-wrap: anywhere;
}

.funding-note {
  margin-top: 8px;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.source-list {
  display: grid;
  gap: 6px;
}

.source-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-card {
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.signal-card:first-child {
  padding-top: 0;
}

.signal-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-table {
  display: grid;
  gap: 8px;
}

.history-head {
  display: grid;
  grid-template-columns: 96px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.history-data-row {
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.detail-task-list {
  display: block;
}

.metric {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.metric strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.detail-copy {
  margin: 0 0 12px;
  color: #475467;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warning-row {
  margin-top: 8px;
}

.coverage-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.coverage-track {
  height: 10px;
  border-radius: 999px;
  background: #e8eef3;
  overflow: hidden;
}

.coverage-fill {
  height: 100%;
  background: var(--green);
}

.readiness-card {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.readiness-card strong {
  display: block;
  margin-bottom: 6px;
}

.readiness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty {
  padding: 20px;
  color: var(--muted);
}

.dynamic-section {
  margin-top: 16px;
}

.audience-map,
.expansion-summary,
.expansion-list,
.decision-deck {
  display: grid;
  gap: 12px;
}

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

.audience-map a,
.expansion-summary div,
.expansion-card,
.decision-deck div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
}

.audience-map a:hover,
.expansion-card:hover {
  border-color: #9bb8be;
  background: #f6fafb;
}

.audience-map strong,
.expansion-summary strong,
.decision-deck strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.audience-map span,
.expansion-summary span,
.expansion-summary small,
.decision-deck span,
.expansion-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.expansion-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.expansion-card p {
  margin: 10px 0;
}

.decision-deck {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.category-page {
  padding: 24px;
}

.category-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.category-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.category-list a {
  display: block;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.category-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .ranking-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    min-width: 0;
  }

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

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

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

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }

  .queue-list {
    grid-template-columns: 1fr;
  }

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

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

  .source-run-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-board,
  .promotion-list,
  .ranking-guide,
  .data-health-grid,
  .document-quality,
  .decision-tiles,
  .audience-map,
  .expansion-summary,
  .expansion-list,
  .decision-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main {
    padding: 14px;
  }

  .detail-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ranking-controls,
  .summary-grid,
  .watch-list,
  .brief-grid,
  .metric-grid,
  .ranking-guide,
  .data-health-grid,
  .document-quality,
  .decision-tiles,
  .candidate-why-grid,
  .audience-map,
  .expansion-summary,
  .expansion-list,
  .decision-deck {
    grid-template-columns: 1fr;
  }

  .decision-lead {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 12px;
  }

  .track-control .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-visual {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .detail-hero h1 {
    font-size: 27px;
  }

  .detail-metric-grid {
    padding: 12px;
  }

  .check-row,
  .promotion-check,
  .activity-evidence-item,
  .source-quality-item,
  .mini-dl,
  .score-breakdown,
  .score-guide,
  .score-reason-grid,
  .profile-fact-grid,
  .funding-grid,
  .signal-summary,
  .observation-head,
  .observation-row,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .observation-head {
    display: none;
  }

  .source-quality-item small {
    grid-column: 1;
  }

  .history-head {
    grid-template-columns: 86px repeat(4, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .bar-row {
    grid-template-columns: 96px 1fr 38px;
  }

  .history-row {
    grid-template-columns: 86px 56px 1fr;
  }

  .discovery-list {
    grid-template-columns: 1fr;
  }

  .discord-list {
    grid-template-columns: 1fr;
  }

  .source-run-list {
    grid-template-columns: 1fr;
  }

  .ranking-board,
  .promotion-list {
    grid-template-columns: 1fr;
  }
}
body:not(.admin-mode) .admin-only {
  display: none !important;
}

body.admin-mode .dashboard-grid:not(.admin-only),
body.admin-mode .summary-grid:not(.admin-only),
body.admin-mode #searchSection {
  display: none !important;
}

.admin-intro {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px;
}

.admin-intro h1 {
  font-size: 22px;
  margin: 0 0 6px;
}

.admin-intro p {
  color: var(--muted);
  margin: 0;
}

.admin-intro a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
