.seq-borat-logo {
  display: block;
  flex: 0 0 auto;
  width: 440px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.seq-borat-tab-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 8px;
}

.seq-borat-tab-heading h3 {
  margin: 4px 0 0;
  color: #07554F;
  font-weight: 700;
  line-height: 1.2;
}

.seq-borat-taxon-icon {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}

.seq-borat-taxon-meta {
  margin-top: 2px;
  line-height: 1.2;
}

.seq-borat-winner-badge,
.seq-borat-eligible-badge,
.seq-borat-muted-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.seq-borat-winner-badge {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
}

.seq-borat-eligible-badge {
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
}

.seq-borat-muted-badge {
  color: #475467;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
}

.seq-borat-selection-reason {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.seq-borat-add-genome-btn {
  white-space: nowrap;
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.seq-borat-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.seq-borat-table-wrap .Reactable,
.seq-borat-table-wrap .rt-table {
  width: 100% !important;
}

.seq-borat-table-wrap .rt-td {
  overflow: visible;
}

.seq-borat-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.seq-borat-section-heading h4 {
  margin: 0;
  color: #0d3440;
  font-weight: 700;
}

.seq-borat-plot-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  min-height: 24px;
}

.seq-borat-plot-heading h5 {
  margin: 0;
  color: #0d3440;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.seq-borat-info-btn,
.seq-borat-qc-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(7, 85, 79, 0.28);
  border-radius: 999px;
  background: rgba(7, 85, 79, 0.06);
  color: #07554f;
  cursor: pointer;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.seq-borat-info-btn:hover,
.seq-borat-info-btn:focus,
.seq-borat-qc-info-btn:hover,
.seq-borat-qc-info-btn:focus {
  background: #07554f;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 85, 79, 0.12);
}

.seq-borat-info-glyph,
.seq-borat-qc-info-glyph {
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}

.seq-borat-qc-groups {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.seq-borat-qc-group {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  flex: 1 1 0;
  min-width: 72px;
  padding: 6px 7px 7px 9px;
  border: 1px solid rgba(7, 85, 79, 0.10);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 132, 66, 0.07);
}

.seq-borat-qc-group::before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #07554f, #668442);
  content: "";
}

.seq-borat-qc-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.seq-borat-qc-heading-code {
  color: #07554f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seq-borat-qc-heading-text {
  display: block;
  color: #667085;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seq-borat-qc-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
}

.seq-borat-qc-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: help;
  user-select: none;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.seq-borat-qc-tile.is-good {
  background: #5b9c61;
  border-color: #4a8450;
}

.seq-borat-qc-tile.is-warn {
  background: #e7a63e;
  border-color: #c98c2c;
}

.seq-borat-qc-tile.is-bad {
  background: #c95a61;
  border-color: #a8464c;
}

.seq-borat-qc-tile.is-unknown {
  background: #d8dee6;
  border-color: #c0c7d1;
}

.seq-borat-qc-letter {
  color: transparent;
  font-size: 0;
}

.seq-borat-qc-group:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(102, 132, 66, 0.14);
}

.seq-borat-help-modal {
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.seq-borat-help-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

.seq-borat-help-section h4,
.seq-borat-help-modal h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0d3440;
  font-size: 15px;
  font-weight: 700;
}

.seq-borat-help-modal ul {
  margin: 0;
  padding-left: 18px;
}

.seq-borat-help-modal li {
  margin-bottom: 8px;
  color: #354f58;
  line-height: 1.45;
}

.modal-dialog:has(.seq-borat-help-modal) .modal-content {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(7, 85, 79, 0.12);
  box-shadow: 0 18px 40px rgba(16, 45, 53, 0.18);
}

.seq-borat-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.seq-borat-live-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.seq-borat-live-metric {
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid var(--app-border-soft, #d7e0e3);
  border-radius: 8px;
  background: #fff;
}

.seq-borat-live-metric-label {
  color: var(--app-text-secondary, #354f58);
  font-size: 11px;
  font-weight: 650;
}

.seq-borat-live-metric-value {
  margin-top: 4px;
  color: var(--app-text, #102d35);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.1;
}

.seq-borat-live-metric-detail {
  margin-top: 4px;
  color: var(--app-text-secondary, #354f58);
  font-size: 11px;
}

.seq-borat-plot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.seq-borat-plot-card {
  min-width: 0;
  padding: 12px 14px 8px;
  border: 1px solid var(--app-border-soft, #d7e0e3);
  border-radius: 9px;
  background: #fff;
}

.seq-borat-plot-card h5 {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .seq-borat-plot-grid {
    grid-template-columns: 1fr;
  }
}

.blast-composition-card .shiny-plot-output {
  overflow: hidden;
}
