:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #243d39;
  background: #f6f7f3;
  font-synthesis: none;
  --teal: #177363;
  --muted: #73837d;
  --line: #e0e6df;
  --gold: #edb55d;
  --paper: #fff;
  --dark: #102b2d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
summary {
  cursor: pointer;
}
button {
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #6cb7a4;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.app {
  max-width: 1600px;
  margin: auto;
  padding: 0 52px;
  background: #f6f7f3;
}
.app:fullscreen {
  overflow: auto;
  max-width: none;
}
.topbar {
  height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 2px;
}
.brand b {
  font-size: 13px;
  font-weight: 500;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 5px;
}
.brand-mark {
  font:
    italic 34px Georgia,
    serif;
  background: var(--teal);
  color: white;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 3px;
}
.topbar nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: #61736c;
}
.topbar nav a:hover {
  color: var(--teal);
}
.button {
  background: white;
  border: 1px solid #d5dfd6;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  color: #294a42;
  white-space: nowrap;
}
.button:hover {
  background: #e9f2ec;
}
.button.quiet {
  background: transparent;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 42px 0 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--teal);
  margin: 0 0 12px;
  display: block;
}
.eyebrow > span {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
}
h1 {
  margin: 0 0 15px;
  font-size: 37px;
  letter-spacing: -1px;
  font-weight: 600;
}
h1 span {
  font-weight: 400;
  margin-left: 14px;
  color: #6a7c73;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.snapshot {
  font-size: 12px;
  color: var(--teal);
  padding: 14px 0 14px 20px;
  border-left: 1px solid #d8e2da;
  white-space: nowrap;
}
.snapshot small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #2c9075;
  border-radius: 50%;
  margin-right: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 0 0 36px;
}
.stats > div {
  border: 1px solid var(--line);
  padding: 20px 23px;
  background: #fff;
  border-radius: 9px;
  position: relative;
}
.stats > div > span {
  font-size: 11px;
  color: #6b8077;
}
.stats strong {
  display: block;
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stats strong small {
  font-size: 11px;
  font-weight: 400;
  color: #7a8c82;
  letter-spacing: 0;
}
.stats p {
  font-size: 10px;
  margin: 7px 0 0;
  color: #819087;
}
.stats .verified {
  background: #eaf2e9;
  border-color: #d8e5d5;
}
.stats .verified strong {
  color: var(--teal);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-index {
  font-size: 10px;
  color: var(--teal);
  border: 1px solid #cbdacf;
  border-radius: 4px;
  padding: 4px 5px;
  font-family: monospace;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.section-heading > p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.viewer-card {
  background: var(--dark);
  border: 1px solid #163a3b;
  border-radius: 10px;
  overflow: hidden;
  color: #c7dcd6;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.viewer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  border-bottom: 1px solid #2a4545;
  gap: 8px;
}
.viewer-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.model-tag {
  font-size: 10px;
  letter-spacing: 1px;
  background: #2c5952;
  color: #b9ead5;
  border: 1px solid #3b6b60;
  border-radius: 4px;
  padding: 5px 8px;
}
.viewer-heading strong {
  font-size: 15px;
  letter-spacing: 0.4px;
  font-weight: 500;
  color: #f2f6ef;
}
#viewer-format {
  font-size: 9px;
  color: #779b94;
}
.viewer-button {
  font-size: 10px;
  background: transparent;
  border: 1px solid #365450;
  color: #b9d1c8;
  border-radius: 4px;
  padding: 7px 9px;
}
.viewer-button:hover,
.viewer-button[aria-pressed="true"] {
  background: #346358;
  color: white;
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  flex-wrap: wrap;
  z-index: 1;
}
.viewer-toolbar label {
  font-size: 10px;
  color: #8eafa5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewer-toolbar select {
  border: 1px solid #365450;
  border-radius: 4px;
  background: #1a3838;
  padding: 5px;
  color: #c7dcd6;
  font-size: 10px;
}
.molecule {
  height: 416px;
  min-height: 350px;
  position: relative;
  flex: 1;
}
.viewer-status {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #102b2df0;
  padding: 30px;
  font-size: 12px;
  line-height: 1.8;
}
.viewer-status.error {
  color: #ffc6a0;
}
.viewer-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #294342;
  font-size: 10px;
  align-items: center;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.legend span:before,
.chart-legend span:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: var(--legend);
  margin-right: 6px;
}
.viewer-link {
  color: #a5cbb9;
  white-space: nowrap;
}
.confidence-legend {
  padding: 10px 20px;
  display: flex;
  gap: 12px;
  font-size: 9px;
  border-top: 1px solid #294342;
}
.confidence-legend span:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 5px;
  background: var(--legend);
  margin-right: 5px;
}
.confidence-legend small {
  margin-left: auto;
  color: #9cafac;
}
.detail-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-top .eyebrow {
  font-size: 9px;
  margin: 0;
  letter-spacing: 1.4px;
}
.route-tag {
  font-size: 9px;
  color: var(--teal);
  padding: 5px 8px;
  background: #eef4ed;
  border-radius: 4px;
}
.candidate-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0 15px;
}
.candidate-heading h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0;
}
.candidate-heading > span {
  font: 10px monospace;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}
.sequence {
  font-size: 13px;
  letter-spacing: 0.7px;
  overflow-wrap: anywhere;
  display: block;
  padding: 14px 12px;
  color: #3f6256;
  background: #f3f6f1;
  border: 1px solid #e8ede4;
  border-radius: 5px;
}
.sequence-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}
.text-button {
  color: var(--teal);
  font-size: 10px;
  border: 0;
  background: none;
  padding: 3px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.detail-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0 17px;
}
.field-label {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
}
.model-switch {
  display: flex;
  gap: 7px;
}
.model-switch button {
  border: 1px solid #dce5db;
  border-radius: 5px;
  padding: 8px 15px;
  background: #fff;
  color: #5c7168;
  font-size: 11px;
}
.model-switch button.active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 17px;
}
.score-card {
  padding: 13px 14px;
  border: 1px solid #e5eae2;
  border-radius: 5px;
  background: #fcfdfb;
}
.score-card span {
  font-size: 10px;
  color: #6c8075;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.score-card strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.score-card em {
  font-size: 9px;
  font-style: normal;
  color: #8a9a8e;
}
.score-note {
  font-size: 10px;
  line-height: 1.8;
  color: #7d8578;
  margin: 13px 0 0;
}
.native-details {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--teal);
}
.native-details summary {
  padding: 5px 0;
}
.native-details pre {
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow: auto;
  color: #4f6258;
  font-size: 10px;
  background: #f3f6f1;
  padding: 10px;
}
.native-details dt {
  margin-top: 8px;
  color: #74867a;
}
.native-details dd {
  margin: 3px 0;
  word-break: break-all;
  font-family: monospace;
  color: #526c5e;
}
.compare-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #61786a;
  margin-top: 15px;
}
.compare-toggle input {
  accent-color: var(--teal);
}
.comparison {
  margin-top: 20px;
  background: #fff;
  padding: 22px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.comparison h3 {
  font-size: 14px;
}
.comparison label {
  font-size: 11px;
}
.comparison select {
  padding: 7px;
  margin-left: 8px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.compare-grid > div {
  border-radius: 7px;
  overflow: hidden;
  background: var(--dark);
  color: #c7dcd6;
}
.compare-grid h4 {
  font-size: 12px;
  margin: 15px 20px;
  font-weight: 500;
}
.compare-viewer {
  height: 350px;
  position: relative;
}
#compare-status {
  font-size: 11px;
  color: var(--muted);
}
.library {
  margin-top: 38px;
}
.library-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}
.library-tabs button {
  font-size: 13px;
  padding: 12px 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8c978f;
}
.library-tabs button[aria-selected="true"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.library-tabs span {
  font-size: 10px;
  border-radius: 4px;
  background: #e7eee3;
  padding: 2px 6px;
  margin-left: 5px;
  color: #718671;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.chart-card,
.reading-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 23px;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-heading h3 {
  font-size: 13px;
  margin: 0;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #778a7e;
}
.chart-card > p {
  font-size: 9px;
  color: #8c9a90;
  line-height: 1.8;
  margin: 0;
}
#scatter {
  margin: 8px 0;
  min-height: 230px;
}
#scatter svg {
  width: 100%;
  height: 230px;
  display: block;
  overflow: visible;
}
.chart-point {
  cursor: pointer;
  transition: r 0.1s;
}
.chart-point:hover {
  stroke: #143f31;
  stroke-width: 2.5;
}
.reading-card {
  background: #ecf1e8;
  position: relative;
  overflow: hidden;
}
.reading-card h3 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 500;
  margin: 15px 0;
}
.reading-card .eyebrow {
  font-size: 9px;
  color: #819078;
}
.reading-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #74816d;
  margin: 9px 0;
}
.reading-card p b {
  font-weight: 500;
  color: #46654e;
}
.reading-card .caution {
  font-size: 10px;
  border-top: 1px solid #d5dfce;
  margin-top: 17px;
  padding-top: 12px;
  color: #889079;
}
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.filters {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  flex-wrap: wrap;
}
.filters label {
  font-size: 10px;
  color: #7d8c81;
  display: flex;
  align-items: center;
  gap: 7px;
}
.filters input,
.filters select {
  background: #f8faf6;
  border: 1px solid #dfe6da;
  border-radius: 5px;
  padding: 9px 8px;
  color: #486451;
  font-size: 11px;
}
.search-label {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-label > span {
  position: absolute;
  left: 10px;
  font-size: 22px;
  color: #7d998b;
}
.filters .search-label input {
  width: 100%;
  padding-left: 34px;
}
.filters input[type="number"] {
  width: 70px;
}
.table-description {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0e9;
  padding: 10px 20px;
  font-size: 10px;
  color: #9aa397;
}
.table-description > span:first-child {
  color: #637e67;
}
.table-scroll {
  overflow: auto;
  max-height: 650px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f5f7f2;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  font-size: 10px;
  font-weight: 500;
  color: #7d8d7d;
  height: 43px;
}
th button {
  background: none;
  border: 0;
  padding: 12px 0;
  color: inherit;
  font: inherit;
  width: 100%;
  text-align: left;
}
th button span {
  margin-left: 6px;
  font-size: 10px;
  color: #a4b09e;
}
th[aria-sort="ascending"] button,
th[aria-sort="descending"] button {
  color: var(--teal);
}
td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0e9;
  color: #617665;
  font-variant-numeric: tabular-nums;
}
td:first-child {
  font-weight: 500;
  color: #315d46;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #f5f9f2;
}
tbody tr.selected {
  background: #edf5e8;
}
tbody tr.selected td:first-child {
  box-shadow: inset 3px 0 var(--teal);
}
td code {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #82917d;
}
.table-model {
  font-size: 9px;
  padding: 4px 6px;
  border: 1px solid #dbe4d8;
  border-radius: 4px;
  background: white;
}
.number-cell {
  min-width: 85px;
}
.score-bar {
  height: 3px;
  width: 55px;
  background: #e5ebdf;
  margin-top: 5px;
  border-radius: 2px;
  overflow: hidden;
}
.score-bar > i {
  display: block;
  height: 100%;
  background: #76a186;
}
.view-row {
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 10px;
  padding: 5px;
}
.empty-row {
  text-align: center;
  padding: 35px;
  white-space: normal;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 10px;
  color: #889684;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pagination label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination select {
  padding: 6px;
  border: 1px solid #e0e6d9;
  background: #fff;
  border-radius: 4px;
  color: #637960;
  font-size: 10px;
}
.pagination .button {
  font-size: 10px;
  padding: 7px 10px;
}
.provenance {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  margin: 36px 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.provenance h2 {
  display: inline-block;
  margin-left: 10px;
  font-size: 15px;
}
.provenance p {
  font-size: 11px;
  line-height: 1.8;
  color: #8d9887;
}
.provenance dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 10px;
  margin: 0;
  font-size: 10px;
  color: #71876d;
}
.provenance dt {
  color: #91a08b;
}
.provenance dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.provenance details {
  font-size: 10px;
  color: #7b8d74;
  margin-top: 14px;
}
.provenance li {
  line-height: 1.8;
  margin-bottom: 5px;
  word-break: break-all;
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #99a392;
  letter-spacing: 0.5px;
}
footer a {
  color: #608364;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: #214f42;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 6px 30px #173f3926;
}
.fatal {
  position: fixed;
  inset: 20%;
  background: white;
  border: 1px solid #d8c1a7;
  padding: 40px;
  border-radius: 10px;
  z-index: 100;
  line-height: 2;
  overflow: auto;
}
@media (min-width: 1450px) {
  .molecule {
    min-height: 455px;
  }
}
@media (max-width: 1100px) {
  .app {
    padding: 0 25px;
  }
  .explorer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  }
  .viewer-toolbar {
    padding: 12px;
  }
  .viewer-heading {
    padding: 16px 13px;
  }
  .detail-card {
    padding: 20px;
  }
  .stats > div {
    padding: 18px;
  }
  .stats p {
    font-size: 9px;
  }
  .analysis-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .filters {
    gap: 10px;
  }
  .intro h1 {
    font-size: 30px;
  }
}
@media (max-width: 800px) {
  .app {
    padding: 0 18px;
  }
  .topbar {
    height: 76px;
  }
  .topbar nav {
    display: none;
  }
  .intro {
    padding-top: 30px;
  }
  .snapshot {
    display: none;
  }
  h1 span {
    display: block;
    margin: 4px 0 0;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 27px;
  }
  .stats strong {
    font-size: 30px;
  }
  .explorer-grid,
  .analysis-grid,
  .provenance {
    grid-template-columns: 1fr;
  }
  .molecule {
    height: 390px;
    flex: none;
  }
  .section-heading > p {
    display: none;
  }
  .detail-card {
    padding: 23px;
  }
  .score-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .score-card {
    padding: 12px 8px;
  }
  .score-card strong {
    font-size: 21px;
  }
  .score-card span {
    font-size: 9px;
  }
  .score-card em {
    display: none;
  }
  .reading-card h3 br {
    display: none;
  }
  .reading-card h3 {
    font-size: 20px;
  }
  .reading-card {
    padding: 20px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-viewer {
    height: 300px;
  }
  .filters {
    padding: 15px;
  }
  .search-label {
    flex-basis: 100%;
  }
  .table-description {
    gap: 10px;
    font-size: 9px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination > div {
    gap: 8px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 8px;
  }
  .brand {
    font-size: 14px;
  }
  .brand b {
    font-size: 10px;
  }
  .brand small {
    font-size: 6px;
  }
  .viewer-toolbar {
    gap: 7px;
  }
  .viewer-heading strong {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .button {
    font-size: 10px;
    padding: 9px;
  }
  .fatal {
    inset: 10%;
    padding: 25px;
  }
  .provenance {
    gap: 12px;
  }
  .library {
    margin-top: 28px;
  }
}

.binding-card {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.binding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.binding-header .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.binding-header h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.binding-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.binding-controls label {
  font-size: 11px;
  color: var(--muted);
}
.binding-controls select {
  font-size: 11px;
  color: #375e50;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-left: 5px;
  background: #f7faf5;
}
.binding-summary {
  font-size: 12px;
  color: #617667;
  margin: 17px 0 12px;
}
.binding-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  color: #839082;
  margin-bottom: 18px;
}
.receptor-key:before,
.peptide-key:before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 2px;
  margin-right: 6px;
  background: #238771;
}
.peptide-key:before {
  background: #e7ac51;
}
.binding-chain {
  border-top: 1px solid #edf0e9;
  padding: 16px 0 10px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
}
.binding-chain-label b {
  display: block;
  font-size: 12px;
  color: #287e69;
  margin: 4px 0 8px;
}
.peptide-chain .binding-chain-label b {
  color: #ac711f;
}
.binding-chain-label span {
  font-size: 10px;
  color: #899485;
}
.numbering-label {
  display: block;
  font-size: 9px;
  color: #6a8f7d;
  margin-top: 7px;
}
.residue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.residue-chip {
  width: 34px;
  min-height: 46px;
  padding: 5px 1px;
  border-radius: 5px;
  border: 1px solid #d9e9df;
  background: #edf6ef;
  color: #629884;
}
.residue-chip strong {
  display: block;
  font:
    600 15px ui-monospace,
    monospace;
}
.residue-chip small {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  margin-top: 5px;
}
.receptor-residue.contact {
  background: #238771;
  color: #fff;
  border-color: #238771;
}
.peptide-residue {
  background: #fcf4e5;
  border-color: #efdfc1;
  color: #a98c56;
}
.peptide-residue.contact {
  background: #e7ac51;
  border-color: #e7ac51;
  color: #493316;
}
.residue-chip:hover {
  box-shadow: 0 0 0 2px #a8c9b6;
}
.residue-chip[aria-pressed="true"] {
  outline: 2px solid #153f35;
  outline-offset: 2px;
}
.residue-fragments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.residue-fragment {
  min-width: 0;
}
.fragment-range {
  font:
    9px ui-monospace,
    monospace;
  color: #839582;
  display: block;
  margin-bottom: 6px;
}
.fragment-break {
  font-size: 18px;
  color: #839582;
  margin-top: 10px;
}
.no-contacts {
  font-size: 11px;
  color: #899485;
  margin: 8px 0;
}
.binding-method {
  font-size: 10px;
  color: #82907f;
  line-height: 1.9;
  margin: 14px 0 0;
}
.residue-selection {
  font-size: 11px;
  color: var(--teal);
  line-height: 1.7;
  margin: 12px 0 0;
}
@media (max-width: 800px) {
  .binding-card {
    padding: 19px;
  }
  .binding-chain {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .binding-chain-label b {
    display: inline-block;
    margin-right: 10px;
  }
  .binding-controls .button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .binding-legend {
    gap: 10px;
  }
  .residue-chip {
    width: 32px;
  }
}
