:root {
  /* Keep this page on the same token system as the rest of the site. */
  --repo-bg: var(--bg, #fefefe);
  --repo-panel: var(--panel, #faf9f7);
  --repo-panel-hi: var(--panel-hi, #f6f5f3);
  --repo-border: var(--border, #f0eeea);
  --repo-border-hi: var(--border-hi, #e0ddd8);
  --repo-text: var(--text-hi, #222);
  --repo-mid: var(--text-mid, #888);
  --repo-lo: var(--text-lo, #bbb);
  --repo-brand: var(--brand, #2563eb);
  --repo-brand-hi: var(--brand-hi, #1d4ed8);
  --repo-brand-dim: var(--brand-dim, rgba(37, 99, 235, .06));
  --repo-brand-mid: var(--brand-mid, rgba(37, 99, 235, .18));
  --repo-success: var(--success, #059669);
  --repo-warn: var(--warn, #f59e0b);
  --repo-danger: var(--danger, #dc2626);
  --repo-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .04));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--repo-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--repo-text);
  background: var(--repo-bg);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", "DejaVu Sans Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: auto;
}

a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }

/* chan-nav.js supplies the shared navigation and tokens. The repository
   previously had decorative background shapes; the site uses quiet surfaces
   so leave this hook in place while making it intentionally inert. */
.repo-atmosphere { display: none; }

.repo-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.repo-mast {
  display: block;
  padding: 8px 0 14px;
  border-top: 1px solid var(--repo-border-hi);
  border-bottom: 1px solid var(--repo-border);
}

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

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--repo-brand);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover { color: var(--repo-brand-hi); text-decoration: underline; }

.eyebrow, .section-kicker {
  color: var(--repo-mid);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin-top: 3px;
  color: var(--repo-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}

h1 span { color: var(--repo-brand); }

.mast-lede {
  max-width: 760px;
  margin-top: 6px;
  color: var(--repo-mid);
  font-size: 11px;
  line-height: 1.6;
}

.mast-stamp {
  min-width: 210px;
  padding: 7px 0 0 14px;
  border-left: 1px solid var(--repo-border);
}

.stamp-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--repo-lo);
  font-size: 9px;
  letter-spacing: .06em;
}

.stamp-line b { color: var(--repo-text); font-size: 10px; letter-spacing: 0; }
.stamp-rule { height: 1px; margin: 7px 0; background: var(--repo-border); }
.stamp-note { margin-top: 8px; color: var(--repo-mid); font-size: 9px; line-height: 1.5; }

.repo-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 12px 0 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--repo-border);
}

.summary-card { min-width: 0; }

.summary-label {
  display: block;
  margin-bottom: 3px;
  color: var(--repo-mid);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  color: var(--repo-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.summary-card small {
  display: block;
  margin-top: 2px;
  color: var(--repo-lo);
  font-size: 9px;
  line-height: 1.45;
}

.repo-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin-bottom: 10px;
  padding: 8px 11px;
  border: 1px solid var(--repo-brand-mid);
  border-left: 3px solid var(--repo-brand);
  background: var(--repo-brand-dim);
  color: var(--repo-mid);
  font-size: 10px;
  line-height: 1.5;
}

.intro-mark {
  flex: 0 0 auto;
  color: var(--repo-brand);
  font-size: 17px;
  line-height: 1;
}

.repo-intro b { display: inline; color: var(--repo-text); font-size: 10px; }
.repo-intro span { display: inline; margin-left: 5px; }

.intro-key {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
  color: var(--repo-mid) !important;
  font-size: 9px !important;
}

.intro-key span { display: inline-block; margin: 0; }
.key-dot { width: 6px; height: 6px; border-radius: 50%; }
.key-dot.exact { background: var(--repo-brand); }
.key-dot.context { margin-left: 5px !important; background: var(--repo-warn); }

.repo-grid {
  display: block;
}

.panel {
  min-width: 0;
  border: 1px solid var(--repo-border);
  border-radius: 6px;
  background: var(--repo-panel);
  box-shadow: none;
}

.repo-list { overflow: hidden; }

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

h2 {
  margin-top: 2px;
  color: var(--repo-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.panel-count { color: var(--repo-mid); font-size: 10px; }
.panel-note { margin-top: 3px; color: var(--repo-lo); font-size: 9px; line-height: 1.4; }

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--repo-border);
  background: var(--repo-panel-hi);
}

.filter-search, .filter-select {
  display: flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid var(--repo-border-hi);
  border-radius: 5px;
  background: #fff;
}

.filter-search { flex: 1; min-width: 180px; }
.filter-search span { padding-left: 9px; color: var(--repo-brand); font-size: 15px; line-height: 1; }

.filter-search input, .filter-select select {
  width: 100%;
  min-width: 0;
  padding: 4px 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--repo-text);
  font-size: 11px;
}

.filter-search input::placeholder { color: var(--repo-lo); }
.filter-select { position: relative; flex: 0 1 150px; }

.filter-select span {
  position: absolute;
  top: -7px;
  left: 7px;
  padding: 0 3px;
  background: var(--repo-panel-hi);
  color: var(--repo-lo);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.filter-select select { padding-top: 7px; cursor: pointer; }

.filter-search:focus-within, .filter-select:focus-within {
  border-color: var(--repo-brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.transfer-table {
  width: 100%;
  min-width: 1450px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.transfer-table th {
  padding: 8px 10px;
  border-bottom: 2px solid #ddd;
  background: #f5f3f0;
  color: #999;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.transfer-table thead .table-group-row th {
  padding-top: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--repo-border-hi);
  background: #eeece8;
  color: var(--repo-mid);
  font-size: 8px;
  letter-spacing: .1em;
}

.transfer-table thead .table-column-row th {
  padding-top: 6px;
  padding-bottom: 7px;
  background: #f5f3f0;
}

.transfer-table thead th[rowspan] { vertical-align: middle; }
.transfer-table th.sortable { padding: 0; }

.sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button:hover, .transfer-table th[aria-sort="ascending"] .sort-button,
.transfer-table th[aria-sort="descending"] .sort-button { color: var(--repo-brand); }
.sort-arrow { min-width: 8px; color: var(--repo-brand); font-size: 11px; letter-spacing: 0; text-align: right; }

.transfer-table th:first-child, .transfer-table td:first-child { padding-left: 14px; }
.transfer-table th:last-child, .transfer-table td:last-child { padding-right: 14px; }
.transfer-table tbody tr { cursor: pointer; transition: background .1s ease; }
.transfer-table tbody tr:hover { background: var(--repo-brand-dim); }
.transfer-table tbody tr.selected { background: rgba(37, 99, 235, .09); box-shadow: inset 3px 0 var(--repo-brand); }

.transfer-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--repo-border);
  vertical-align: middle;
  font-size: 12px;
  white-space: nowrap;
}

.player-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--repo-text);
  text-align: left;
  cursor: pointer;
}

.player-name { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; }
.player-button:hover .player-name { color: var(--repo-brand); }
.player-meta { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--repo-mid); font-size: 9px; white-space: nowrap; }
.source-main, .destination-main { display: block; font-size: 10px; font-weight: 600; white-space: nowrap; }
.source-official, .destination-sub { display: block; max-width: 170px; overflow: hidden; color: var(--repo-lo); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.source-association, .source-group-type { display: block; margin-top: 2px; color: var(--repo-lo); font-size: 8px; white-space: nowrap; }

.projection-cell { min-width: 78px; text-align: right; }
.projection-cell.no-projection { color: var(--repo-lo); }
.projection-value { display: block; color: var(--repo-text); font-size: 11px; font-weight: 700; line-height: 1.2; }
.projection-cell.no-projection .projection-value { color: var(--repo-lo); font-weight: 500; }
.bpm-cell .projection-value { color: var(--repo-brand); }
.value-cell .projection-value { color: var(--repo-success); }
.value-cell.no-projection .projection-value { color: var(--repo-lo); }
.role-cell { min-width: 95px; text-align: left; }
.role-chip { display: inline-block; padding: 2px 5px; border: 1px solid var(--repo-border-hi); border-radius: 3px; color: var(--repo-text); font-size: 8px; font-weight: 700; line-height: 1.2; }
.role-starter { border-color: rgba(5, 150, 105, .28); background: rgba(5, 150, 105, .08); color: var(--repo-success); }
.role-rotation { border-color: var(--repo-brand-mid); background: var(--repo-brand-dim); color: var(--repo-brand); }
.role-bench { border-color: rgba(245, 158, 11, .28); background: rgba(245, 158, 11, .08); color: #a16207; }
.role-depth { background: var(--repo-panel-hi); color: var(--repo-mid); }
.projection-basis { display: block; margin-top: 2px; color: var(--repo-lo); font-size: 7px; }

.division-chip {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--repo-brand-mid);
  border-radius: 3px;
  background: var(--repo-brand-dim);
  color: var(--repo-brand);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.conf-chip {
  display: inline-block;
  max-width: 160px;
  padding: 2px 5px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 3px;
  background: rgba(245, 158, 11, .09);
  color: #a16207;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-line { color: var(--repo-text); font-size: 9px; line-height: 1.6; white-space: nowrap; }
.stat-line.muted { color: var(--repo-lo); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(5, 150, 105, .08);
  color: var(--repo-success);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.off { background: rgba(136, 136, 136, .08); color: var(--repo-mid); }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.history-counts { display: flex; gap: 7px; color: var(--repo-mid); font-size: 8px; white-space: nowrap; }
.history-counts b { color: var(--repo-brand); }
.history-counts .conf-count b { color: #a16207; }
.table-empty { padding: 36px 14px !important; color: var(--repo-mid); text-align: center; }

.list-footnote {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  color: var(--repo-lo);
  font-size: 9px;
  line-height: 1.5;
}

.status-dot { width: 6px; height: 6px; flex: 0 0 6px; margin-top: 5px; border-radius: 50%; background: var(--repo-success); }

.repo-detail {
  position: sticky;
  top: 52px;
  min-height: 560px;
  overflow: hidden;
}

.detail-loading {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 30px;
  color: var(--repo-mid);
  text-align: center;
}

.detail-loading small { color: var(--repo-lo); font-size: 9px; }
.loading-orbit { width: 24px; height: 24px; margin-bottom: 8px; border: 1px solid var(--repo-border-hi); border-top-color: var(--repo-brand); border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.detail-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--repo-border);
  background: var(--repo-brand-dim);
}

.detail-head .section-kicker { color: var(--repo-brand); }
.detail-head h2 { margin-top: 3px; color: var(--repo-text); font-size: 18px; }
.detail-destination { margin-top: 4px; color: var(--repo-mid); font-size: 9px; }
.detail-destination b { color: var(--repo-text); font-size: 10px; }
.detail-close-note { float: right; color: var(--repo-lo); font-size: 8px; }
.detail-edit { display: inline-block; margin-top: 7px; color: var(--repo-brand); font-size: 9px; font-weight: 600; text-decoration: none; }
.detail-edit:hover { color: var(--repo-brand-hi); text-decoration: underline; }

.route {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--repo-border);
  background: var(--repo-panel);
}

.route-card { min-width: 0; }
.route-card .route-label { display: block; margin-bottom: 3px; color: var(--repo-lo); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.route-card strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.route-card small { display: block; overflow: hidden; color: var(--repo-mid); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.route-card.source strong { color: var(--repo-brand); }
.route-card.destination strong { color: var(--repo-text); }
.route-arrow { color: var(--repo-lo); font-size: 16px; text-align: center; }

.detail-body { padding: 12px 14px 18px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--repo-border);
}

.metric { min-height: 62px; padding: 8px; background: var(--repo-panel-hi); }
.metric + .metric { border-left: 1px solid var(--repo-border); }
.metric-label { display: block; color: var(--repo-lo); font-size: 8px; line-height: 1.25; }
.metric strong { display: block; margin-top: 5px; color: var(--repo-text); font-size: 17px; font-weight: 700; line-height: 1.1; }
.metric small { display: block; margin-top: 3px; color: var(--repo-mid); font-size: 8px; }

.detail-section { margin-top: 15px; }
.detail-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--repo-border); }
.detail-section-head h3 { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.detail-section-head span { color: var(--repo-lo); font-size: 9px; }
.section-explain { margin: 0 0 7px; color: var(--repo-mid); font-size: 9px; line-height: 1.5; }

.history-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--repo-border);
}

.history-card:last-child { border-bottom: 0; }
.history-year { color: var(--repo-lo); font-size: 9px; }
.history-player { min-width: 0; }
.history-player b { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-player span { display: block; overflow: hidden; color: var(--repo-mid); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.history-outcome { text-align: right; white-space: nowrap; }
.history-outcome strong { display: block; color: var(--repo-brand); font-size: 9px; }
.history-outcome span { display: block; color: var(--repo-mid); font-size: 8px; }
.role-badge { display: inline-block; margin-top: 2px; padding: 1px 4px; border-radius: 3px; background: rgba(5, 150, 105, .08); color: var(--repo-success); font-size: 7px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.empty-history { padding: 10px 0; color: var(--repo-lo); font-size: 9px; }

.detail-note {
  margin-top: 16px;
  padding: 8px 10px;
  border-left: 2px solid var(--repo-warn);
  background: rgba(245, 158, 11, .08);
  color: #8a6214;
  font-size: 8px;
  line-height: 1.55;
}

.repo-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--repo-border);
  color: var(--repo-lo);
  font-size: 9px;
}

.repo-footer a { color: var(--repo-brand); text-decoration: none; }
.repo-footer a:hover { color: var(--repo-brand-hi); text-decoration: underline; }
code { color: var(--repo-mid); }

@media (max-width: 1080px) {
  .repo-grid { grid-template-columns: 1fr; }
  .repo-detail { position: static; min-height: 0; }
  .detail-loading { min-height: 280px; }
  .repo-detail .detail-body { max-width: 900px; }
}

@media (max-width: 760px) {
  .repo-shell { padding: 12px 10px 40px; }
  .repo-mast { display: block; padding-top: 7px; }
  h1 { font-size: 22px; }
  .mast-lede { margin-top: 5px; font-size: 10px; }
  .mast-stamp { width: 100%; margin-top: 12px; padding: 8px 0 0; border-top: 1px solid var(--repo-border); border-left: 0; }
  .stamp-note { margin-top: 8px; }
  .repo-summary { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .summary-card strong { font-size: 19px; }
  .repo-intro { align-items: flex-start; }
  .intro-key { display: none; }
  .filter-bar { flex-wrap: wrap; }
  .filter-search { flex-basis: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .panel-head { padding-right: 12px; padding-left: 12px; }
  .transfer-table th:first-child, .transfer-table td:first-child { padding-left: 12px; }
  .transfer-table th:last-child, .transfer-table td:last-child { padding-right: 12px; }
  .list-footnote { padding-right: 12px; padding-left: 12px; }
  .detail-head, .detail-body, .route { padding-right: 12px; padding-left: 12px; }
  .history-card { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .repo-footer { display: block; line-height: 2; }
}

/* Click-through detail treatment: the table stays the primary browsing surface. */
.repo-grid { display: block; }
.repo-list { width: 100%; }
.transfer-table tbody tr:focus-visible { outline: 2px solid var(--repo-brand); outline-offset: -2px; }
.table-empty b, .table-empty span { display: block; }
.table-empty b { margin-bottom: 3px; color: var(--repo-text); }
.table-empty span { color: var(--repo-lo); font-size: 10px; }

body.modal-open { overflow: hidden; }
.repo-modal[hidden] { display: none; }
.repo-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 30, .58);
  backdrop-filter: blur(4px);
  animation: modal-in .18s ease-out;
}
.repo-modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 32px));
  max-height: min(790px, calc(100vh - 34px));
  overflow: auto;
  border: 1px solid var(--repo-border-hi);
  border-radius: 8px;
  background: var(--repo-panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  animation: modal-in .2s ease-out;
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 11px;
  width: 27px;
  height: 27px;
  border: 1px solid var(--repo-border-hi);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--repo-mid);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { border-color: var(--repo-brand); color: var(--repo-brand); outline: 0; }
.repo-modal .detail-loading { min-height: 330px; }
.repo-modal .detail-head { padding-right: 54px; }
.source-detail-card {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--repo-brand-mid);
  border-left: 3px solid var(--repo-brand);
  background: var(--repo-brand-dim);
}
.source-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-detail-head strong { display: block; margin-top: 3px; color: var(--repo-text); font-size: 12px; }
.source-detail-head a { color: var(--repo-brand); font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.source-detail-head a:hover { color: var(--repo-brand-hi); text-decoration: underline; }
.source-link-muted { color: var(--repo-lo); font-size: 9px; white-space: nowrap; }
.source-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.source-stat-grid div { padding-top: 7px; border-top: 1px solid var(--repo-brand-mid); }
.source-stat-grid span { display: block; color: var(--repo-mid); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.source-stat-grid b { display: block; margin-top: 3px; color: var(--repo-brand); font-size: 17px; line-height: 1.1; }
.profile-bio {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--repo-border);
  background: var(--repo-panel-hi);
}
.profile-bio div { min-width: 0; padding: 7px 8px; }
.profile-bio div + div { border-left: 1px solid var(--repo-border); }
.profile-bio span { display: block; color: var(--repo-lo); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.profile-bio b { display: block; margin-top: 2px; overflow: hidden; color: var(--repo-text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.translation-projection-card {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--repo-border);
  border-left: 3px solid var(--repo-brand);
  background: var(--repo-panel-hi);
}
.translation-projection-card.available { border-color: var(--repo-brand-mid); background: var(--repo-brand-dim); }
.translation-projection-card.unavailable { border-left-color: var(--repo-border-hi); }
.translation-projection-card .source-detail-head strong { font-size: 11px; }
.projection-card-status { padding: 2px 5px; border-radius: 3px; background: rgba(5, 150, 105, .08); color: var(--repo-success); font-size: 8px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.projection-card-status.muted { background: rgba(136, 136, 136, .08); color: var(--repo-mid); }
.projection-metric-grid { margin: 10px 0 0; }
.projection-metric-grid .metric { min-height: 67px; }
.projection-metric-grid .metric strong { color: var(--repo-brand); }
.projection-metric-grid .metric strong.role-value { color: var(--repo-text); font-size: 13px; }
.projection-composites { margin-top: 10px; }
.composite-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 6px; }
.composite-grid div { padding: 6px 7px; border-top: 1px solid var(--repo-brand-mid); background: rgba(255, 255, 255, .42); }
.composite-grid span { display: block; color: var(--repo-mid); font-size: 8px; letter-spacing: .04em; }
.composite-grid b { display: block; margin-top: 2px; color: var(--repo-text); font-size: 13px; line-height: 1.1; }
.projection-note { margin-top: 9px; color: var(--repo-mid); font-size: 8px; line-height: 1.5; }
.repo-modal .metric-grid { grid-template-columns: repeat(4, 1fr); }
.history-player em { display: block; margin-top: 2px; overflow: hidden; color: var(--repo-lo); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 760px) {
  .repo-modal { padding: 10px; }
  .repo-modal-card { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .repo-modal .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .repo-modal .metric + .metric { border-left: 0; border-top: 1px solid var(--repo-border); }
  .source-stat-grid { gap: 6px; }
  .profile-bio { grid-template-columns: repeat(3, 1fr); }
  .profile-bio div:nth-child(4) { border-left: 0; border-top: 1px solid var(--repo-border); }
  .profile-bio div:nth-child(5) { border-top: 1px solid var(--repo-border); }
  .composite-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 450px) {
  .source-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
