.detail-v1 {
  --v1-ink: #10263f;
  --v1-navy: #0a2e56;
  --v1-blue: #1769aa;
  --v1-cyan: #2d8fbc;
  --v1-paper: #fbfcfa;
  --v1-line: #d9e2e8;
  --v1-muted: #627487;
  --v1-detected: #1769aa;
  --v1-absent: #8795a1;
  --v1-warning: #a86213;
  --v1-display: "Source Sans 3", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --v1-body: "Source Sans 3", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background: var(--v1-paper);
  color: var(--v1-ink);
  font-family: var(--v1-body);
}

.detail-v1 .tool-navigation {
  background: rgba(251, 252, 250, 0.96);
}

.v1-page {
  padding: 30px 0 80px;
  background:
    linear-gradient(rgba(16, 38, 63, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 63, 0.025) 1px, transparent 1px),
    var(--v1-paper);
  background-size: 40px 40px;
}

.v1-page .tool-breadcrumb {
  margin-bottom: 16px;
  font-family: var(--v1-body);
  font-size: 14px;
  line-height: 20px;
}

.v1-report-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #123f6b;
  color: #fff;
  background: var(--v1-navy);
}

.v1-report-head::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 49.85%, rgba(255, 255, 255, 0.18) 50%, transparent 50.15%),
    linear-gradient(transparent 0 49.85%, rgba(255, 255, 255, 0.18) 50%, transparent 50.15%);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.v1-report-head__identity,
.v1-score-card {
  position: relative;
  z-index: 1;
}

.v1-report-head__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px;
}

.v1-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #b9d8ef;
  font: 700 12px/1 var(--v1-display);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.v1-kicker span:first-child {
  padding: 7px 9px 6px;
  border: 1px solid rgba(185, 216, 239, 0.4);
}

.v1-report-head h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(34px, 4vw, 54px)/1.02 var(--v1-display);
  letter-spacing: -0.025em;
}

.v1-report-head h1 span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.v1-locus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 22px 0 30px;
  color: #d7e6f2;
  font-size: 14px;
}

.v1-locus a {
  color: #fff !important;
  font-weight: 700;
}

.v1-locus code {
  color: #d7e6f2;
  font: 600 13px/1.5 var(--tc-font-mono);
}

.v1-locus > * + * {
  position: relative;
}

.v1-locus > * + *::before {
  position: absolute;
  top: 50%;
  left: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: #6d9abc;
}

.v1-head-actions,
.v1-inline-actions,
.v1-meta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.v1-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.v1-button--primary {
  color: var(--v1-navy);
  background: #fff;
}

.v1-button--primary:hover {
  background: #dff1fb;
}

.v1-button--quiet {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
}

.v1-button--quiet:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.v1-button--outline {
  border-color: #9db2c1;
  color: var(--v1-blue);
  background: transparent;
}

.v1-button--outline:hover {
  border-color: var(--v1-blue);
  background: #edf6fb;
}

.v1-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 24, 46, 0.36);
}

.v1-score-card__label {
  margin: 0;
  color: #9fc5df;
  font: 700 12px/1 var(--v1-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v1-score-card__value {
  margin: 8px 0 16px;
  color: #fff;
  font: 700 72px/1 var(--v1-display);
  font-variant-numeric: tabular-nums;
}

.v1-score-card__rule {
  height: 4px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.v1-score-card__rule span {
  display: block;
  height: 100%;
  background: #6ec4e8;
}

.v1-score-card__summary {
  margin: 0;
  color: #eaf5fb;
  font-size: 14px;
  line-height: 1.5;
}

.v1-score-card__summary strong {
  color: #fff;
  font: 700 22px/1 var(--v1-display);
}

.v1-score-card__note {
  margin: 8px 0 0;
  color: #9fc5df;
  font-size: 12px;
  line-height: 1.5;
}

.v1-section-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  overflow-x: auto;
  margin-bottom: 0;
  border-right: 1px solid var(--v1-line);
  border-bottom: 1px solid var(--v1-line);
  border-left: 1px solid var(--v1-line);
  background: rgba(251, 252, 250, 0.96);
  scrollbar-width: none;
}

.v1-section-nav::-webkit-scrollbar {
  display: none;
}

.v1-section-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 17px 20px;
  color: #52677a !important;
  font: 700 12px/1 var(--v1-display);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.v1-section-nav a::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 2px;
  content: "";
  background: var(--v1-blue);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.v1-section-nav a:hover,
.v1-section-nav a.is-active {
  color: var(--v1-blue) !important;
}

.v1-section-nav a:hover::after,
.v1-section-nav a.is-active::after {
  transform: scaleX(1);
}

.v1-section {
  scroll-margin-top: 68px;
  padding: 72px 0 68px;
  border-bottom: 1px solid var(--v1-line);
}

.v1-section:last-child {
  border-bottom: 0;
}

.v1-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.v1-section-index {
  margin: 0 0 9px;
  color: var(--v1-blue);
  font: 700 11px/1 var(--v1-display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.v1-section-heading h2 {
  margin: 0;
  color: var(--v1-ink);
  font: 700 clamp(26px, 3vw, 38px)/1.12 var(--v1-display);
  letter-spacing: -0.025em;
}

.v1-section-heading p:not(.v1-section-index) {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--v1-muted);
  font-size: 14px;
  line-height: 1.6;
}

.v1-count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--v1-line);
}

.v1-count strong {
  color: var(--v1-blue);
  font: 700 40px/1 var(--v1-display);
}

.v1-count span {
  max-width: 100px;
  color: var(--v1-muted);
  font-size: 12px;
  line-height: 1.3;
}

.v1-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(400px, 0.5fr);
  border: 1px solid var(--v1-line);
  background: #fff;
}

.v1-evidence-list {
  min-width: 0;
}

.v1-evidence-row {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 10px 20px;
  border-bottom: 1px solid #e6ecef;
}

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

.v1-evidence-row__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--v1-detected);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.v1-evidence-row__status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.v1-evidence-row h3 {
  margin: 0;
  color: var(--v1-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.v1-evidence-row p {
  display: none;
}

.v1-evidence-row > strong {
  color: var(--v1-blue);
  font: 700 12px/1 var(--tc-font-mono);
  text-align: right;
}

.v1-evidence-row.is-absent {
  background: #f7f8f8;
}

.v1-evidence-row.is-absent .v1-evidence-row__status,
.v1-evidence-row.is-absent > strong {
  color: var(--v1-absent);
}

.v1-radar-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-left: 1px solid var(--v1-line);
  background: #f8faf9;
}

.v1-radar-panel .detail-radar__chart {
  width: 100%;
  height: 270px;
}

.v1-radar-panel p {
  margin: 0 0 3px;
  color: var(--v1-ink);
  font: 700 14px/1.3 var(--v1-display);
}

.v1-radar-panel > span {
  color: var(--v1-muted);
  font-size: 12px;
  line-height: 1.5;
}

.v1-meta-pair span {
  padding: 8px 10px;
  border: 1px solid var(--v1-line);
  color: var(--v1-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.v1-structure-panel {
  padding: 24px 28px 18px;
  border: 1px solid var(--v1-line);
  background: #fff;
}

.v1-structure-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.v1-structure-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v1-muted);
  font-size: 12px;
  font-weight: 700;
}

.v1-structure-key span::before {
  width: 18px;
  height: 5px;
  content: "";
  border-radius: 3px;
  background: #4f86b8;
}

.v1-structure-key .is-ires::before { background: #e58a3a; }
.v1-structure-key .is-m6a::before { background: #4d9366; }
.v1-structure-key .is-tis::before { background: #cf6258; }

.v1-structure-panel .structure-chart {
  height: 260px;
}

.v1-site-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--v1-line);
  border-bottom: 1px solid var(--v1-line);
  border-left: 1px solid var(--v1-line);
  background: #fff;
}

.v1-site-groups > section {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--v1-line);
}

.v1-site-groups > section:last-child {
  border-right: 0;
}

.v1-site-groups h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px;
  color: var(--v1-ink);
  font: 700 13px/1 var(--v1-display);
  text-transform: uppercase;
}

.v1-site-groups h3 span {
  color: var(--v1-muted);
  font: 700 11px/1 var(--v1-body);
}

.v1-chip-list {
  display: grid;
  gap: 7px;
}

.detail-v1 .region-chip {
  width: 100%;
  justify-content: flex-start;
  border-radius: 2px;
  text-align: left;
}

.v1-inline-actions button,
.v1-inline-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--v1-line);
  border-radius: 2px;
  color: var(--v1-blue) !important;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.v1-sequence-shell {
  overflow: hidden;
  border: 1px solid #183d5d;
  background: #0d2439;
}

.v1-sequence-ruler {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #7291aa;
  font: 600 10px/1 var(--tc-font-mono);
}

.v1-sequence-ruler span:not(:first-child) {
  text-align: right;
}

.detail-v1 .sequence-view {
  /* min-height: 158px; */
  margin: 0;
  padding: 28px 24px;
  color: #d8e8f3;
  background: transparent;
  font-family: var(--tc-font-mono);
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0;
}

.v1-data-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border-left: 3px solid #c27a22;
  color: #73430d;
  background: #fff8e8;
}

.v1-data-notice > i {
  margin-top: 3px;
}

.v1-data-notice strong,
.v1-data-notice p {
  margin: 0;
}

.v1-data-notice strong {
  font-size: 13px;
}

.v1-data-notice p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.v1-orf-list {
  display: grid;
  gap: 12px;
}

.v1-orf-card {
  border: 1px solid var(--v1-line);
  background: #fff;
}

.v1-orf-card__summary {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr) minmax(220px, 0.9fr) 170px auto;
  align-items: center;
  gap: 22px;
  min-height: 136px;
  padding: 20px 24px;
}

.v1-orf-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--v1-navy);
  font: 700 13px/1 var(--v1-display);
}

.v1-orf-card__summary p,
.v1-orf-card__summary h3 {
  margin: 0;
}

.v1-orf-card__summary p {
  margin-bottom: 5px;
  color: var(--v1-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v1-orf-card__summary h3 {
  color: var(--v1-ink);
  font: 700 14px/1.4 var(--tc-font-mono);
}

.v1-orf-card__summary dl {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.v1-orf-card__summary dl > div {
  padding-left: 13px;
  /* border-left: 1px solid var(--v1-line); */
}

.v1-orf-card__summary dt {
  color: var(--v1-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.v1-orf-card__summary dd {
  margin: 5px 0 0;
  color: var(--v1-ink);
  font-size: 14px;
  font-weight: 700;
}

.v1-orf-card__summary dd.is-missing {
  color: var(--v1-absent);
}

.v1-orf-card .orf-structure {
  width: 170px;
  height: 94px;
}

.v1-orf-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--v1-line);
  border-radius: 2px;
  color: var(--v1-blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.v1-orf-toggle i {
  transition: transform 180ms ease;
}

.v1-orf-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.v1-ms-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid #dce5e9;
  color: var(--v1-blue);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.v1-ms-preview img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.v1-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--v1-line);
  background: #fff;
}

.v1-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.v1-table-wrap th,
.v1-table-wrap td {
  padding: 16px 18px;
  border-bottom: 1px solid #e6ecef;
  text-align: left;
}

.v1-table-wrap th {
  color: var(--tc-slate-600);
  background: #f6f8f8;
  font: 700 11px/1 var(--v1-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v1-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.v1-table-wrap td:first-child {
  font-weight: 700;
}

.v1-table-wrap td:first-child i {
  margin-right: 9px;
}

.v1-file-status {
  padding: 4px 7px;
  color: #25603d;
  background: #e8f5ed;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.v1-copy-toast {
  position: fixed;
  z-index: 100;
  /* 中和 popover 的 UA 默认值（inset:0 / margin:auto / border），保留原定位。 */
  inset: auto;
  right: 24px;
  bottom: 24px;
  margin: 0;
  border: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--v1-navy);
  box-shadow: 0 8px 24px rgba(10, 46, 86, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.detail-v1 .download-menu__items {
  top: calc(100% + 7px);
  right: auto;
  left: 0;
}

.detail-v1 .upload-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--v1-ink);
  font-size: 13px;
  font-weight: 700;
}

.detail-v1 .upload-form input,
.detail-v1 .upload-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--v1-line);
}

@media (max-width: 1023px) {
  .v1-report-head {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .v1-report-head__identity {
    padding: 36px;
  }

  .v1-score-card {
    padding: 32px 28px;
  }

  .v1-evidence-grid {
    grid-template-columns: 1fr;
  }

  .v1-radar-panel {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    border-top: 1px solid var(--v1-line);
    border-left: 0;
  }

  .v1-radar-panel .detail-radar__chart {
    grid-row: span 2;
  }

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

  .v1-site-groups > section:nth-child(2) {
    border-right: 0;
  }

  .v1-site-groups > section:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v1-line);
  }

  .v1-orf-card__summary {
    grid-template-columns: 44px minmax(220px, 1fr) minmax(210px, 1fr) auto;
  }

  .v1-orf-card .orf-structure {
    display: none;
  }

  .v1-ms-preview {
    grid-column: 1 / -1;
    max-width: 220px;
  }
}

@media (max-width: 767px) {
  .v1-page {
    padding-top: 20px;
  }

  .v1-report-head {
    grid-template-columns: 1fr;
  }

  .v1-report-head__identity,
  .v1-score-card {
    padding: 28px 22px;
  }

  .v1-score-card {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .v1-score-card__value {
    font-size: 58px;
  }

  .v1-section-nav {
    margin-right: -16px;
    margin-left: -16px;
  }

  .v1-section-nav a {
    padding: 15px 14px;
    font-size: 12px;
  }

  .v1-section {
    padding: 52px 0 48px;
  }

  .v1-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

  .v1-evidence-row {
    grid-template-columns: 84px minmax(0, 1fr) 42px;
    gap: 12px;
    padding: 10px 14px;
  }

  .v1-radar-panel {
    display: block;
  }

  .v1-site-groups {
    grid-template-columns: 1fr;
  }

  .v1-site-groups > section,
  .v1-site-groups > section:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--v1-line);
  }

  .v1-site-groups > section:last-child {
    border-bottom: 0;
  }

  .v1-structure-panel {
    padding: 18px 12px 10px;
  }

  .v1-structure-panel .structure-chart {
    height: 220px;
  }

  .detail-v1 .sequence-view {
    font-size: 12px;
  }

  .v1-orf-card__summary {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .v1-orf-card__summary dl,
  .v1-orf-toggle {
    grid-column: 2;
  }

  .v1-ms-preview {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-v1 *,
  .detail-v1 *::before,
  .detail-v1 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Align the v1 information architecture with the established detail.html design language. */
.detail-v1 {
  --v1-ink: var(--tc-slate-900);
  --v1-navy: var(--tc-slate-900);
  --v1-blue: var(--tc-blue);
  --v1-paper: var(--tc-slate-50);
  --v1-line: var(--tc-slate-200);
  --v1-muted: var(--tc-slate-500);
  --v1-detected: var(--tc-blue);
  --v1-absent: var(--tc-slate-400);
  --v1-display: "Source Sans 3", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --v1-body: "Source Sans 3", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-family: var(--v1-body);
}

.v1-page {
  padding: 32px 0 64px;
  background: var(--tc-slate-50);
}

.v1-report-head {
  min-height: 270px;
  overflow: visible;
  border: 1px solid var(--tc-slate-200);
  border-radius: 16px;
  color: var(--tc-slate-800);
  background: var(--tc-white);
  box-shadow: var(--tc-shadow-card);
}

.v1-report-head::before {
  display: none;
}

.v1-report-head__identity {
  padding: 32px;
}

.v1-kicker {
  margin-bottom: 10px;
  color: var(--tc-slate-500);
  font-family: inherit;
}

.v1-kicker span:first-child {
  border-color: #bfdbfe;
  border-radius: 6px;
  color: var(--tc-blue);
  background: var(--tc-blue-mist);
}

.v1-report-head h1 {
  color: var(--tc-slate-900);
  font-family: var(--tc-font-mono);
  font-size: clamp(26px, 4vw, 30px);
  line-height: 30px;
}

.v1-report-head h1 span {
  color: var(--tc-slate-500);
  letter-spacing: 0;
}

.v1-locus {
  margin: 15px 0;
  color: var(--tc-slate-600);
}

.v1-locus a {
  color: var(--tc-blue) !important;
}

.v1-locus code {
  color: var(--tc-slate-600);
}

.v1-locus > * + *::before {
  background: var(--tc-slate-300, #cbd5e1);
}

.v1-button {
  border-radius: 8px;
  font-size: 14px;
}

.v1-button--primary {
  border-color: var(--tc-blue);
  color: #fff;
  background: var(--tc-blue);
}

.v1-button--primary:hover {
  color: #fff;
  background: var(--tc-blue-dark);
}

.v1-button--quiet {
  border-color: var(--tc-slate-200);
  color: var(--tc-blue);
  background: var(--tc-white);
}

.v1-button--quiet:hover {
  border-color: #93c5fd;
  color: var(--tc-blue-dark);
  background: var(--tc-blue-mist);
}

.v1-button--outline {
  border-color: var(--tc-blue);
  color: var(--tc-blue);
  background: var(--tc-white);
}

.v1-score-card {
  margin: 20px;
  padding: 28px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: var(--tc-slate-800);
  background: var(--tc-blue-mist);
}

.v1-score-card__label {
  color: var(--tc-slate-500);
  font-family: inherit;
}

.v1-score-card__value {
  color: var(--tc-blue);
  font-family: inherit;
  font-size: 64px;
}

.v1-score-card__rule {
  background: var(--tc-blue-soft);
}

.v1-score-card__rule span {
  background: var(--tc-blue);
}

.v1-score-card__summary,
.v1-score-card__summary strong {
  color: var(--tc-slate-800);
  font-family: inherit;
}

.v1-score-card__note {
  color: var(--tc-slate-500);
}

.v1-section-nav {
  top: 72px;
  margin-top: 16px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--tc-shadow-card);
}

.v1-section-nav a {
  color: var(--tc-slate-500) !important;
  font-family: inherit;
}

.v1-detail-info {
  margin-top: 24px;
}

.v1-detail-info .detail-info__block:first-child {
  border-right: 1px solid var(--tc-slate-200);
}

.v1-section {
  margin-top: 24px;
  padding: 0 24px 24px;
  scroll-margin-top: 136px;
  overflow: hidden;
  border: 1px solid var(--tc-slate-200);
  border-radius: 16px;
  background: var(--tc-white);
  box-shadow: var(--tc-shadow-card);
}

.v1-section-heading {
  align-items: center;
  margin: 0 -24px 24px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--tc-slate-200);
}

.v1-section-index {
  margin-bottom: 5px;
  color: var(--tc-blue);
  font-family: inherit;
}

.v1-section-heading h2 {
  color: var(--tc-slate-900);
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
}

.v1-section-heading p:not(.v1-section-index) {
  margin-top: 5px;
  color: var(--tc-slate-500);
}

.v1-count strong {
  color: var(--tc-blue);
  font-family: inherit;
}

.v1-evidence-grid,
.v1-structure-panel,
.v1-site-groups,
.v1-table-wrap {
  border-color: var(--tc-slate-200);
  border-radius: 12px;
}

.v1-evidence-grid,
.v1-site-groups {
  overflow: hidden;
}

.v1-evidence-row__status,
.v1-evidence-row > strong {
  color: var(--tc-blue);
}

.v1-evidence-row.is-absent .v1-evidence-row__status,
.v1-evidence-row.is-absent > strong {
  color: var(--tc-slate-600);
}

.v1-radar-panel {
  background: var(--tc-slate-50);
}

.v1-meta-pair span {
  border-radius: 6px;
  color: var(--tc-slate-600);
  background: var(--tc-slate-50);
}

.v1-structure-panel {
  border-radius: 12px 12px 0 0;
}

.v1-site-groups {
  border-radius: 0 0 12px 12px;
}

.detail-v1 .region-chip,
.v1-inline-actions button,
.v1-inline-actions a,
.v1-orf-toggle {
  min-height: 30px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 5px;
}

.v1-sequence-shell {
  border-color: var(--tc-slate-900);
  border-radius: 12px;
  background: var(--tc-slate-900);
}

.v1-data-notice {
  border-radius: 8px;
}

.v1-orf-card {
  overflow: hidden;
  border-color: var(--tc-slate-200);
  border-radius: 12px;
  box-shadow: var(--tc-shadow-card);
}

.v1-orf-index {
  border-radius: 8px;
  background: var(--tc-blue);
  font-family: inherit;
}

.v1-orf-card__summary h3 {
  color: var(--tc-slate-800);
}

.v1-file-status {
  border-radius: 5px;
}

.v1-copy-toast {
  border-radius: 8px;
  background: var(--tc-slate-900);
}

/* 成功提示变体：顶部居中，绿色主色（置于末尾以覆盖上方的 background）。 */
.v1-copy-toast--success {
  top: 24px;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.28);
}

@media (max-width: 767px) {
  .v1-report-head__identity {
    padding: 28px 22px;
  }

  .v1-score-card {
    margin: 0 16px 16px;
    padding: 24px;
    border-top: 1px solid #bfdbfe;
  }

  .v1-section-nav {
    top: 58px;
    margin-right: 0;
    margin-left: 0;
    border-radius: 10px;
  }

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

  .v1-detail-info .detail-info__block:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--tc-slate-200);
  }

  .v1-section {
    padding: 0 16px 16px;
  }

  .v1-section-heading {
    margin: 0 -16px 20px;
    padding: 18px 16px;
  }
}

.v1-structure-panel {
  border-radius: 12px;
}

.v1-sequence-subsection {
  margin: 16px 0;
  padding: 18px;
  scroll-margin-top: 136px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 12px;
  background: var(--tc-slate-50);
}

.v1-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.v1-subsection-heading .v1-section-index {
  margin-bottom: 4px;
}

.v1-subsection-heading h3 {
  margin: 0;
  color: var(--tc-slate-900);
  font-size: 16px;
  line-height: 1.35;
}

.v1-subsection-heading p:not(.v1-section-index) {
  margin: 4px 0 0;
  color: var(--tc-slate-500);
  font-size: 12px;
}

/* Dynamic site groups: stable 2 × 2 layout with per-group disclosure. */
.v1-site-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.v1-site-groups > section,
.v1-site-groups > section:nth-child(2),
.v1-site-groups > section:nth-child(-n + 2),
.v1-site-groups > section:last-child {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 10px;
  background: var(--tc-white);
}

.v1-site-groups h3 {
  margin-bottom: 16px;
}

.v1-site-groups h3 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--tc-blue);
  background: var(--tc-blue-mist);
  font-variant-numeric: tabular-nums;
}

.v1-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.detail-v1 .v1-chip-list .region-chip {
  width: auto;
  max-width: 100%;
}

.v1-site-more {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: var(--tc-blue);
  background: var(--tc-blue-mist);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.v1-site-more:hover {
  border-color: var(--tc-blue);
  background: var(--tc-blue-soft);
}

.v1-site-more i {
  font-size: 12px;
  transition: transform 160ms ease-out;
}

.v1-site-more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.v1-site-empty {
  margin: 0;
  padding: 6px;
  border: 1px dashed var(--tc-slate-200);
  border-radius: 8px;
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  font-size: 12px;
}

.v1-chip-list > [hidden] {
  display: none;
}

@media (max-width: 767px) {
  .v1-sequence-subsection {
    padding: 14px;
  }

  .v1-subsection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .v1-site-groups {
    grid-template-columns: 1fr;
  }
}

/* Keep the record download menu above the sticky section navigation. */
.v1-report-head__identity {
  z-index: 40;
}

.detail-v1 .v1-report-head .download-menu,
.detail-v1 .v1-report-head .download-menu__items {
  z-index: 50;
}

.v1-layout-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 8px;
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  font-size: 12px;
  line-height: 1.5;
}

.v1-layout-demo-note i {
  margin-top: 3px;
  color: var(--tc-blue);
}

.v1-layout-demo-note strong {
  color: var(--tc-slate-700, #334155);
}

.detail-v1 .v1-chip-list .v1-demo-chip,
.detail-v1 .v1-chip-list .v1-demo-chip:hover {
  border-style: dashed;
  border-color: var(--tc-slate-200);
  opacity: 0.72;
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  cursor: default;
}

/* Integrated record summary for the CEPT1 source record. */
.v1-report-head {
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 0;
}

.v1-report-head__identity {
  justify-content: flex-start;
}

.v1-report-head h1 {
  overflow-wrap: anywhere;
}

.v1-record-meta {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.8fr) minmax(250px, 1.7fr) minmax(70px, 0.5fr);
  gap: 1px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--tc-slate-200);
  border-radius: 10px;
  background: var(--tc-slate-200);
}

.v1-record-meta > div {
  min-width: 0;
  padding: 12px 14px;
  background: var(--tc-slate-50);
}

.v1-record-meta__location {
  grid-column: auto;
}

.v1-record-meta dt,
.v1-record-meta dd {
  margin: 0;
}

.v1-record-meta dt {
  margin-bottom: 5px;
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v1-record-meta dd {
  overflow-wrap: anywhere;
  color: var(--tc-slate-800);
  font-size: 12px;
  font-weight: 700;
}

.v1-record-meta a {
  color: var(--tc-blue) !important;
}

.v1-record-meta code {
  color: inherit;
  font-size: 12px;
}

.v1-xrefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.v1-xrefs__label {
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v1-xrefs > a,
.v1-xrefs > span:not(.v1-xrefs__label) {
  padding: 6px 8px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 6px;
  color: var(--tc-slate-600) !important;
  background: var(--tc-white);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
}

.v1-xrefs > a:hover {
  border-color: #93c5fd;
  color: var(--tc-blue) !important;
  background: var(--tc-blue-mist);
}

.v1-xrefs strong {
  color: var(--tc-slate-800);
}

.v1-score-card {
  align-self: stretch;
  justify-content: center;
}

.v1-score-card__value {
  margin-bottom: 24px;
  font-size: 42px;
  letter-spacing: -0.035em;
}

/* Evidence definitions: quick summary plus a full keyboard/touch accessible layer. */
.v1-section.v1-evidence {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.v1-evidence-grid {
  overflow: visible;
}

.v1-evidence-list {
  position: relative;
  z-index: 2;
  border-radius: 12px 0 0 12px;
  background: var(--tc-white);
}
.v1-evidence-list article:first-child {
  border-radius: 12px 0 0 0;
}
.v1-evidence-name {
  position: relative;
  min-width: 0;
}

.v1-evidence-name h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.v1-evidence-help {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tc-slate-400);
  background: transparent;
  cursor: help;
}

.v1-evidence-help::before {
  position: absolute;
  content: "";
  inset: -10px;
  border-radius: 50%;
}

.v1-evidence-help:hover,
.v1-evidence-help:focus-visible,
.v1-evidence-help[aria-expanded="true"] {
  color: var(--tc-blue);
  background: var(--tc-blue-mist);
  outline: 2px solid transparent;
}

.v1-evidence-help:focus-visible {
  outline-color: var(--tc-blue);
  outline-offset: 2px;
}

.v1-evidence-tooltip {
  position: absolute;
  z-index: 80;
  top: 31px;
  left: 0;
  width: min(390px, calc(100vw - 64px));
  padding: 14px 16px;
  visibility: hidden;
  border: 1px solid var(--tc-slate-200);
  border-radius: 9px;
  opacity: 0;
  color: var(--tc-slate-600);
  background: var(--tc-white);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.v1-evidence-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tc-slate-800);
  font-size: 12px;
}

.v1-evidence-name:has(.v1-evidence-help:hover) .v1-evidence-tooltip,
.v1-evidence-name:focus-within .v1-evidence-tooltip,
.v1-evidence-name.is-help-open .v1-evidence-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.v1-radar-panel {
  border-radius: 0 12px 12px 0;
  position: relative;
  z-index: 1;
}

.v1-orf-card__summary {
  grid-template-columns: 44px minmax(165px, 0.7fr) minmax(300px, 1.2fr) 170px auto;
}

.v1-file-status--demo {
  color: var(--tc-amber-700);
  background: var(--tc-amber-100);
}

.v1-upload-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--tc-amber-200);
  border-radius: 8px;
  color: var(--tc-slate-600);
  background: var(--tc-amber-50);
  font-size: 13px;
  line-height: 1.55;
}

.v1-upload-fields {
  display: grid;
  gap: 16px;
}

.v1-upload-fields:disabled {
  opacity: 0.72;
}

.detail-v1 .content-dialog .content-button:disabled {
  border-color: var(--tc-slate-200);
  color: var(--tc-slate-500);
  background: var(--tc-slate-100);
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .v1-report-head {
    grid-template-columns: 1fr;
  }

  .v1-score-card {
    margin-top: 0;
  }

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

  .v1-record-meta__location {
    grid-column: span 2;
  }

  .v1-orf-card__summary {
    grid-template-columns: 44px minmax(180px, 0.8fr) minmax(300px, 1.2fr) auto;
  }

  .v1-evidence-list {
    border-radius: 12px 12px 0 0;
  }
}

@media (max-width: 767px) {
  .v1-record-meta {
    grid-template-columns: 1fr 1fr;
  }

  .v1-record-meta__location {
    grid-column: 1 / -1;
  }

  .v1-score-card__value {
    font-size: 38px;
  }

  .v1-evidence-tooltip {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .v1-orf-card__summary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .v1-orf-card__summary dl,
  .v1-orf-toggle {
    grid-column: 2;
  }
}

/* Detail report V2: evidence-first hierarchy and scientific visualizations. */
.detail-v1 .v1-report-head {
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, 0.92fr);
  min-height: 440px;
  /* overflow: hidden; */
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.detail-v1 .v1-report-head__identity {
  min-width: 0;
  padding: 28px 30px 26px;
}

.detail-v1 .v1-kicker {
  margin-bottom: 12px;
}

.detail-v1 .v1-locus {
  margin: 12px 0 18px;
}

.v1-context-panel {
  overflow: hidden;
  border: 1px solid var(--tc-slate-200);
  border-radius: 10px;
  background: var(--tc-white);
}

.v1-context-panel__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(210px, 0.85fr);
  min-width: 0;
}

.v1-taxon-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-right: 1px solid var(--tc-slate-200);
  background: #f6f9fc;
}

.v1-taxon-context__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c7d8e8;
  border-radius: 8px;
  color: var(--tc-blue);
  background: var(--tc-white);
  font-size: 24px;
}

.v1-taxon-context > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v1-taxon-context > div > span,
.v1-locus-context > div > span,
.v1-external-reference > span,
.v1-assembly-context dt,
.v1-evidence-profile__heading span,
.v1-evidence-score > span {
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v1-taxon-context a {
  overflow: hidden;
  color: var(--tc-slate-900) !important;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v1-taxon-context small {
  color: var(--tc-slate-500);
  font: 500 11px/1.35 var(--tc-font-mono);
}

.v1-assembly-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  align-content: center;
}

.v1-assembly-context > div {
  min-width: 0;
  padding: 15px 14px;
}

.v1-assembly-context > div + div {
  border-left: 1px solid var(--tc-slate-200);
}

.v1-assembly-context dt,
.v1-assembly-context dd {
  margin: 0;
}

.v1-assembly-context dd {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--tc-slate-800);
  font: 650 12px/1.35 var(--tc-font-mono);
}

.v1-locus-context {
  display: grid;
  grid-template-columns: minmax(245px, 0.9fr) minmax(250px, 1.1fr);
  align-items: center;
  gap: 26px;
  min-width: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--tc-slate-200);
}

.v1-locus-context > div:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.v1-locus-context code {
  overflow-wrap: anywhere;
  color: var(--tc-slate-800);
  font: 650 12px/1.35 var(--tc-font-mono);
}

.v1-chromosome-context {
  min-width: 0;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--tc-slate-200);
}

.v1-chromosome-context__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.v1-chromosome-context__head > span {
  color: var(--tc-slate-600);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v1-chromosome-context__head > small {
  padding: 3px 6px;
  border: 1px solid #c7d8e8;
  border-radius: 4px;
  color: #356f9f;
  background: #f6f9fc;
  font: 700 10px/1.1 var(--tc-font-mono);
  text-transform: uppercase;
}

.v1-chromosome-scale {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
  color: var(--tc-slate-500);
  font: 600 11px/1 var(--tc-font-mono);
}

.v1-chromosome-scale i {
  position: relative;
  display: block;
  height: 5px;
  border-radius: 2px;
  background: #dbe4ec;
}

.v1-chromosome-scale b {
  position: absolute;
  top: -4px;
  left: 65.5%;
  width: 2px;
  height: 13px;
  border-radius: 1px;
  background: var(--tc-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.v1-chromosome-scale b > span {
  position: absolute;
  top: 16px;
  left: 50%;
  color: var(--tc-blue);
  font: 700 11px/1 var(--tc-font-mono);
  transform: translateX(-50%);
  white-space: nowrap;
}

.v1-chromosome-context__source {
  margin: 20px 0 0;
  color: var(--tc-slate-500);
  font: 500 11px/1.35 var(--tc-font-mono);
}

.v1-chromosome-context__source a {
  color: #356f9f !important;
  font-weight: 700;
  text-decoration: none;
}

.v1-chromosome-context__source a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v1-external-reference {
  display: flex;
  gap: 12px;
  min-width: 0;
  margin-top: 10px;
}

.v1-external-reference > span {
  line-height: 30px;
}

.v1-external-reference__list > span,
.v1-external-reference__list > a {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 6px;
  color: var(--tc-slate-600) !important;
  background: var(--tc-white);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.v1-external-reference__list > span strong,
.v1-external-reference__list > a strong {
  color: var(--tc-slate-800);
}

.v1-external-reference__list > a i {
  color: var(--tc-slate-400);
  font-size: 12px;
}

.v1-external-reference__list > a:hover {
  border-color: #9dc5ec;
  color: var(--tc-blue) !important;
  background: var(--tc-blue-mist);
}

.v1-evidence-profile {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-content: center;
  gap: 16px;
  padding: 22px 20px;
  border-left: 1px solid var(--tc-slate-200);
  background: #f7f9fb;
}

.v1-evidence-profile__summary,
.v1-evidence-profile__metrics {
  min-width: 0;
}

.v1-evidence-profile__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.v1-evidence-profile__heading strong {
  color: var(--tc-blue);
  font-size: 12px;
  font-weight: 750;
}

.v1-evidence-profile .detail-radar__chart {
  width: 100%;
  height: 250px;
}

.v1-evidence-profile__metrics {
  display: grid;
  grid-template-columns: minmax(136px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--tc-slate-200);
}

.v1-evidence-score {
  display: grid;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--tc-slate-200);
}

.v1-evidence-score > strong {
  color: var(--tc-slate-900);
  font: 750 24px/1.25 var(--tc-font-mono);
}

.v1-evidence-score small {
  color: var(--tc-slate-500);
  font: 500 11px/1.35 var(--tc-font-mono);
}

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

.v1-signal {
  display: grid;
  grid-template-columns: 43px minmax(26px, 1fr) 34px;
  align-items: center;
  gap: 6px;
  color: var(--tc-slate-500);
  font: 650 11px/1 var(--tc-font-mono);
}

.v1-signal > i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--tc-slate-200);
}

.v1-signal > i > b {
  display: block;
  width: var(--signal);
  height: 100%;
  border-radius: inherit;
  background: var(--tc-blue);
  transform-origin: left;
  animation: v1-signal-reveal 520ms ease-out both;
}

.v1-signal.is-absent > i > b {
  min-width: 0;
  background: var(--tc-slate-400);
}

.v1-signal > strong {
  color: var(--tc-slate-700);
  font-weight: 700;
  text-align: right;
}

@keyframes v1-signal-reveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.detail-v1 .v1-evidence-grid {
  display: block;
}

.detail-v1 .v1-evidence-list {
  overflow: visible;
  border-radius: 12px;
}

.v1-external-reference__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v1-annotation-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--tc-slate-500);
  font-size: 12px;
}

.v1-annotation-summary strong {
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--tc-slate-700);
  background: var(--tc-slate-100);
  font: 650 11px/1 var(--tc-font-mono);
}

.v1-annotation-summary span:nth-of-type(2) {
  margin-left: auto;
}

.detail-v1 .v1-structure-panel .structure-chart {
  width: 100%;
  height: 330px;
}

.detail-v1 .v1-structure-key .is-tis::before {
  border: 1px dashed var(--tc-slate-400);
  background: transparent;
}

.detail-v1 .v1-orf-card__summary {
  display: grid;
  grid-template-columns: minmax(192px, 0.55fr) 250px 260px minmax(248px, 0.8fr);
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
}

.v1-orf-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.v1-orf-title > div {
  min-width: 0;
}

.v1-orf-title > div > span {
  display: block;
  margin-top: 6px;
  color: var(--tc-slate-500);
  font-size: 12px;
}

.v1-orf-map {
  width: 250px;
  min-width: 250px;
}

.detail-v1 .v1-orf-map .orf-structure {
  display: block;
  width: 250px;
  height: 214px;
}

.v1-orf-map__legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: -20px;
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 650;
}

.v1-orf-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.v1-orf-map__legend span::before {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  content: "";
  background: var(--tc-blue);
}

.v1-orf-map__legend .is-overlap::before {
  background: #d8893e;
}

.v1-orf-cycle-facts {
  display: grid;
  /* 一行 2 个：标签在左、取值在右。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--tc-slate-200);
  border-radius: 8px;
  overflow: hidden;
}

.detail-v1 .v1-orf-cycle-facts > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 12px;
  border-left: 0;
  border-top: 0;
}

/* 2 列网格：首行不加横线，最左列不加竖线。 */
.v1-orf-cycle-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--tc-slate-200);
}

.v1-orf-cycle-facts > div:nth-child(2n) {
  border-left: 1px solid var(--tc-slate-200);
}

/* 一行一个（ORF 卡片用）：单列铺满，恢复逐行分隔线，取消偶数位竖线。 */
.v1-orf-cycle-facts--single {
  grid-template-columns: minmax(0, 1fr);
}

.v1-orf-cycle-facts--single > div:nth-child(n + 2) {
  border-top: 1px solid var(--tc-slate-200);
}

.v1-orf-cycle-facts--single > div:nth-child(2n) {
  border-left: 0;
}

.detail-v1 .v1-orf-cycle-facts dt {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.detail-v1 .v1-orf-cycle-facts dd {
  margin: 0 0 0 auto;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

/* ORF 卡片右侧的质谱（MS）证据面板。 */
.v1-orf-ms {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 8px;
  background: #fff;
}

.v1-orf-ms__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v1-orf-ms__label {
  margin: 0;
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.v1-orf-ms__count {
  padding: 2px 8px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 999px;
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  font-size: 12px;
  font-weight: 600;
}

.v1-orf-ms__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v1-orf-ms__item + .v1-orf-ms__item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--tc-slate-200);
}

.v1-orf-ms__file {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tc-blue);
  font: 650 11px/1.4 var(--tc-font-mono);
  overflow-wrap: anywhere;
}

.v1-orf-ms__file i {
  flex: none;
}

.v1-orf-ms__file.is-empty {
  color: var(--tc-slate-400);
  font-family: inherit;
}

.v1-orf-ms__file.is-disabled {
  color: var(--tc-slate-500);
  cursor: not-allowed;
}

.v1-orf-ms__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
}

.v1-orf-ms__peptide {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--tc-slate-700);
  background: var(--tc-slate-100);
  font: 650 11px/1.4 var(--tc-font-mono);
}

.v1-orf-ms__qvalue {
  color: var(--tc-slate-600);
  font-size: 12px;
  font-weight: 600;
}

/* 无 MS 证据时弱化占位：虚线边框 + 浅灰文字，不抢夺视觉焦点。 */
.v1-orf-ms--empty {
  border-style: dashed;
}

.v1-orf-ms__empty {
  margin: 0;
  color: var(--tc-slate-400);
  font-size: 12px;
}

/* ORF 序列抽屉壳（原生 <dialog> + showModal）：通顶通底贴右边。 */
.detail-v1 .v1-seq-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100%;
  /* 中和原生 <dialog> 的 UA 默认 max-width/max-height，保证贴边通顶到底。 */
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--tc-slate-200);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--tc-shadow-elevated);
  color: var(--tc-slate-900);
}

/* 宽度由组件通过 CSS 变量传入；min(..., 100%) 保证窄屏不溢出。 */
.detail-v1 .v1-seq-drawer {
  width: min(var(--v1-seq-drawer-width, 560px), 100%);
}

/* 打开态用 flex 固定头部、滚动正文；关闭时保持浏览器默认 display: none。 */
.detail-v1 .v1-seq-drawer[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: v1-drawer-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-v1 .v1-seq-drawer::backdrop {
  background: rgba(15, 23, 42, 0.48);
  animation: v1-drawer-backdrop-enter 200ms ease-out both;
}

@keyframes v1-drawer-enter {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes v1-drawer-backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.v1-drawer__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--tc-slate-200);
}

.v1-drawer__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.v1-drawer__head p {
  margin: 4px 0 0;
  color: var(--tc-slate-500);
  font-size: 12px;
}

.v1-drawer__body {
  overflow: auto;
  padding: 16px 24px 24px;
}

/* —— ORF 序列抽屉：序列区块 —— */
.v1-seq-drawer__seqs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 18px;
}

.v1-seq-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* margin-bottom: 8px; */
}

.v1-seq-block__head .btn-sm {
  margin: 0;
  min-height: 24px;
  padding: 0 4px;
}

/* 悬浮表位 / 肽段 / 基序时，氨基酸序列中被定位的残基以天蓝色高亮。 */
.detail-v1 .sequence-highlight--site {
  color: #0f172a;
  background: #87ceeb;
}

.v1-seq-block h4,
.v1-drawer-section h4 {
  margin: 0;
  font: 700 12px/1 var(--v1-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tc-slate-700);
}

/* —— 抽屉内数据区块（Degrons / Neoantigens） —— */
.v1-drawer-section {
  margin-bottom: 12px;
}

.v1-drawer-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.v1-drawer-section__count {
  padding: 2px 8px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 999px;
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  font-size: 12px;
  font-weight: 600;
}

/* 加载 / 空态 / 错误态：弱化占位，错误态可重试。 */
.v1-drawer-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--tc-slate-200);
  border-radius: 8px;
  color: var(--tc-slate-400);
  background: var(--tc-slate-50);
  font-size: 12px;
}

.v1-drawer-state.is-error {
  border-style: solid;
  border-color: #f3d2c9;
  color: #b4503a;
  background: #fdf3f0;
}

.v1-drawer-state__retry {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.v1-drawer-state__retry:hover {
  background: currentColor;
  color: #fff;
}

/* Degrons：指标收进区块标题行右侧，基序以表格展示。 */
.v1-degron + .v1-degron {
  margin-top: 12px;
}

.v1-degron__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.v1-degron-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--tc-slate-200);
  border-radius: 999px;
  background: var(--tc-slate-50);
}

.v1-degron-metric dt {
  color: var(--tc-slate-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.v1-degron-metric dd {
  margin: 0;
  color: var(--tc-slate-900);
  font: 700 12px/1 var(--tc-font-mono);
}

/* 抽屉内数据表（Neoantigens 候选 / Degron 基序）：紧凑行高，窄宽下横向滚动。 */
.v1-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tc-slate-200);
  border-radius: 8px;
}

.v1-drawer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.v1-drawer-table th {
  padding: 6px 9px;
  border-bottom: 1px solid var(--tc-slate-200);
  color: var(--tc-slate-500);
  background: var(--tc-slate-50);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.v1-drawer-table td {
  padding: 6px 9px;
  border-bottom: 1px solid #edf1f4;
  color: var(--tc-slate-700);
  vertical-align: middle;
}

.v1-drawer-table tbody tr:last-child td {
  border-bottom: 0;
}

.v1-drawer-table tbody tr:hover {
  background: #f8fafb;
}

.v1-drawer-table .is-num {
  text-align: right;
  font-family: var(--tc-font-mono);
}

/* 悬浮可定位到氨基酸序列的单元格：提示可交互，并给悬浮态底色。 */
.v1-drawer-table td.v1-drawer-table__site {
  cursor: help;
}

.v1-drawer-table tbody tr td.v1-drawer-table__site:hover {
  background: #e2edf7;
}

/* 超长表头限宽换行，避免单列把整表撑宽。 */
.v1-drawer-table th.v1-drawer-table__th-wrap {
  width: 132px;
  min-width: 132px;
  white-space: normal;
  line-height: 1.35;
  vertical-align: bottom;
}

.v1-neo-table__epitope {
  font-family: var(--tc-font-mono);
  font-weight: 700;
  color: #274159;
  letter-spacing: 0.04em;
}

.v1-neo-table__bsj {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.12);
  color: #92520a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.v1-neo-table__ms {
  font-family: var(--tc-font-mono);
  color: var(--v1-blue);
}

.v1-neo-table__ms-pos {
  margin-left: 4px;
  color: var(--tc-slate-400);
  font-family: var(--tc-font-mono);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .detail-v1 .v1-seq-drawer[open],
  .detail-v1 .v1-seq-drawer[open]::backdrop {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .detail-v1 .v1-report-head {
    grid-template-columns: 1fr;
  }

  .v1-evidence-profile {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--tc-slate-200);
    border-left: 0;
  }

  .detail-v1 .v1-orf-card__summary {
    grid-template-columns: minmax(170px, 0.7fr) 250px 260px;
  }

  .detail-v1 .v1-orf-ms {
    grid-column: 1 / -1;
  }

  .detail-v1 .v1-orf-toggle {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .detail-v1 .v1-orf-card__summary {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }

  .detail-v1 .v1-orf-cycle-facts,
  .detail-v1 .v1-orf-ms,
  .detail-v1 .v1-orf-toggle {
    grid-column: 1 / -1;
  }

  .detail-v1 .v1-orf-toggle {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .detail-v1 .v1-report-head__identity {
    padding: 24px 18px 20px;
  }

  .detail-v1 .v1-report-head h1 {
    overflow-wrap: anywhere;
    font-size: 23px;
    line-height: 1.2;
  }

  .v1-context-panel__top,
  .v1-locus-context {
    grid-template-columns: 1fr;
  }

  .v1-taxon-context {
    border-right: 0;
    border-bottom: 1px solid var(--tc-slate-200);
  }

  .v1-locus-context {
    gap: 13px;
  }

  .v1-chromosome-context {
    padding: 13px 0 0;
    border-top: 1px solid var(--tc-slate-200);
    border-left: 0;
  }

  .v1-external-reference {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .v1-evidence-profile {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px;
  }

  .v1-evidence-profile .detail-radar__chart {
    height: 240px;
  }

  .v1-evidence-profile__metrics {
    gap: 14px;
    padding: 14px 0 0;
    border-top: 1px solid var(--tc-slate-200);
    border-left: 0;
  }

  .v1-evidence-score {
    padding-right: 14px;
  }

  .v1-signal-strip {
    grid-template-columns: 1fr;
  }

  .detail-v1 .v1-structure-panel {
    padding: 18px 8px 8px;
  }

  .v1-annotation-summary {
    margin: 10px 8px 0;
  }

  .detail-v1 .v1-structure-panel .structure-chart {
    height: 310px;
  }

  .detail-v1 .v1-orf-card__summary {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 16px;
  }

  .v1-orf-title,
  .v1-orf-map,
  .detail-v1 .v1-orf-cycle-facts,
  .detail-v1 .v1-orf-ms,
  .detail-v1 .v1-orf-toggle {
    grid-column: 1;
  }

  .v1-orf-map {
    width: min(100%, 280px);
    min-width: 0;
    justify-self: center;
  }

  .detail-v1 .v1-orf-map .orf-structure {
    width: 100%;
    height: 250px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .v1-signal > i > b {
    animation: none;
  }
}
