.chemrytiq-page .chemrytio-structure-modal__analog {
  flex: 1 1 13rem;
  min-height: 2.9rem;
  padding-inline: 1.25rem;
  border: 1px solid #bad7c1;
  border-radius: 0.85rem;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.chemrytiq-page .chemrytio-structure-modal__analog:hover {
  transform: translateY(-1px);
  border-color: #86efac;
  background: #dcfce7;
}

.chemrytiq-page .chemrytiq-result-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0.85rem;
  padding: 0.4rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid #dbe4ef;
  border-radius: 0.85rem;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(15, 50, 77, 0.06);
}

.chemrytiq-page .chemrytiq-result-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0 1.05rem 0 0.75rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: #4d6378;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.chemrytiq-page .chemrytiq-result-tab::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #edf6ff;
  color: #0f6dbb;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="results"]::before {
  content: "⌕";
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="identityresolver"]::before {
  content: "ID";
  font-size: 0.66rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="analogs"]::before {
  content: "≈";
  font-size: 0.95rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="compare"]::before {
  content: "↔";
  font-size: 0.9rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="mccp"]::before {
  content: "MC";
  font-size: 0.62rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="pcp"]::before {
  content: "Ph";
  font-size: 0.62rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="results"]::before {
  content: "S";
  font-size: 0.66rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="analogs"]::before {
  content: "Sim";
  font-size: 0.55rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="compare"]::before {
  content: "Cmp";
  font-size: 0.55rem;
}

.chemrytiq-page .chemrytiq-result-tab[data-chemrytiq-result-tab="toxpred"]::before {
  content: "Tx";
  font-size: 0.62rem;
}

.chemrytiq-page .chemrytiq-result-tab:hover,
.chemrytiq-page .chemrytiq-result-tab:focus-visible {
  background: #eef6ff;
  color: #0f5f9f;
  outline: none;
  transform: translateY(-1px);
}

.chemrytiq-page .chemrytiq-result-tab.is-active {
  background: #1976d2;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(25, 118, 210, 0.24);
}

.chemrytiq-page .chemrytiq-result-tab.is-active::before {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (max-width: 760px) {
  .chemrytiq-page .chemrytiq-result-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .chemrytiq-page .chemrytiq-result-tab {
    flex: 0 0 auto;
  }
}

.chemrytiq-page .chemrytiq-tab-panel {
  display: none;
}

.chemrytiq-page .chemrytiq-tab-panel.is-active {
  display: block;
}

.chemrytiq-page .chemrytiq-analog-empty {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem;
  border: 1px dashed #cbd7e5;
  border-radius: 0.85rem;
  background: #f8fbff;
  color: #52677d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chemrytiq-page .chemrytiq-analog-empty strong {
  color: #16324d;
  font-size: 1rem;
}

.chemrytiq-page .chemrytiq-analog-empty ul {
  margin: 0.1rem 0 0;
  padding-left: 1.1rem;
}

.chemrytiq-page .chemrytiq-analog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.chemrytiq-page .chemrytiq-analog-chip,
.chemrytiq-page .chemrytiq-analog-action,
.chemrytiq-page .chemrytiq-find-similar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-analog-chip {
  padding: 0.55rem 0.75rem;
  border: 1px solid #dbe4ef;
  background: #f8fbff;
  color: #304c67;
}

.chemrytiq-page .chemrytiq-analog-action,
.chemrytiq-page .chemrytiq-find-similar {
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #bad7c1;
  background: #f0fdf4;
  color: #166534;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.chemrytiq-page .chemrytiq-analog-action:hover,
.chemrytiq-page .chemrytiq-find-similar:hover {
  transform: translateY(-1px);
  border-color: #86efac;
  background: #dcfce7;
}

.chemrytiq-page .chemrytiq-find-similar {
  margin-top: 0.65rem;
}

.chemrytiq-page .chemrytiq-analog-empty-action {
  gap: 0.5rem;
  justify-self: start;
  min-height: 2.85rem;
  margin-top: 0.45rem;
  padding: 0 1.1rem;
  border: 1px solid #75c78a;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.24);
}

.chemrytiq-page .chemrytiq-analog-empty-action svg {
  flex: 0 0 auto;
}

.chemrytiq-page .chemrytiq-analog-empty-action:hover {
  border-color: #15803d;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.3);
}

.chemrytiq-page .chemrytiq-find-similar.is-hidden {
  display: none;
}

.chemrytiq-page .chemrytiq-analog-note {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.chemrytiq-page .chemrytiq-analog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 28rem));
  justify-content: start;
  align-items: stretch;
  gap: 0.85rem;
}

.chemrytiq-page .chemrytiq-analog-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #dce6f0;
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.chemrytiq-page .chemrytiq-analog-morebar {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.95rem;
}

.chemrytiq-page .chemrytiq-analog-more {
  min-height: 2.55rem;
  padding: 0 1.05rem;
  border: 1px solid #b8d3ee;
  border-radius: 0.7rem;
  background: #eef6ff;
  color: #0f5f9f;
  font-size: 0.9rem;
  font-weight: 850;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.chemrytiq-page .chemrytiq-analog-more:hover {
  transform: translateY(-1px);
  border-color: #7db6e8;
  background: #dceeff;
}

.chemrytiq-page .chemrytiq-analog-depiction {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce6f0;
  border-radius: 0.55rem;
  background: #ffffff;
  overflow: hidden;
}

.chemrytiq-page .chemrytiq-analog-depiction svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.chemrytiq-page .chemrytiq-analog-depiction__placeholder {
  padding: 0.35rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.chemrytiq-page .chemrytiq-analog-depiction.is-missing {
  border-style: dashed;
  background: #f8fafc;
}

.chemrytiq-page .chemrytiq-analog-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chemrytiq-page .chemrytiq-analog-body {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.chemrytiq-page .chemrytiq-analog-title {
  margin: 0;
  color: #10263d;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.chemrytiq-page .chemrytiq-analog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chemrytiq-page .chemrytiq-analog-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #36516b;
  font-size: 0.76rem;
  font-weight: 800;
}

.chemrytiq-page .chemrytiq-analog-smiles {
  color: #334155;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chemrytiq-page .chemrytiq-analog-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.chemrytiq-page .chemrytiq-analog-links a,
.chemrytiq-page .chemrytiq-analog-search,
.chemrytiq-page .chemrytiq-analog-links .chemrytiq-compare-add {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  border: none;
  background: transparent;
  color: #0f6dbb;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.chemrytiq-page .chemrytiq-analog-links .chemrytiq-compare-add {
  margin-top: 0;
  color: #7c3aed;
}

.chemrytiq-page .chemrytiq-analog-search:hover,
.chemrytiq-page .chemrytiq-analog-links a:hover,
.chemrytiq-page .chemrytiq-analog-links .chemrytiq-compare-add:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}

.chemrytiq-page .chemrytiq-scaffold-group {
  display: grid;
  gap: 0.65rem;
}

.chemrytiq-page .chemrytiq-scaffold-heading {
  margin: 0.7rem 0 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .chemrytiq-page .chemrytiq-analog-grid {
    grid-template-columns: 1fr;
  }

  .chemrytiq-page .chemrytiq-analog-card {
    grid-template-columns: 1fr;
  }

  .chemrytiq-page .chemrytiq-analog-depiction {
    width: 100%;
    height: 9rem;
  }
}
