﻿.chemrytiq-page .chemrytiq-hero-section {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
}

.chemrytiq-page .chemrytiq-hero-copy > .search-hero-title,
.chemrytiq-page .chemrytiq-hero-title {
  margin: 0;
  color: var(--chemrytiq-text);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.chemrytiq-page .chemrytiq-hero-copy > .search-hero-sub,
.chemrytiq-page .chemrytiq-hero-subtitle {
  margin: 0;
  color: var(--chemrytiq-text-soft);
  font-size: 1.04rem;
  line-height: 1.55;
}

.chemrytiq-page .chemrytiq-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--chemrytiq-space-3);
}

.chemrytiq-page .chemrytiq-search-actions {
  display: grid;
  grid-auto-flow: column;
  gap: 0.75rem;
  align-items: center;
}

.chemrytiq-page .chemrytiq-search-input-shell {
  position: relative;
  min-width: 0;
}

.chemrytiq-page .chemrytiq-search-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: #8da0b6;
  pointer-events: none;
}

.chemrytiq-page .chemrytiq-search-input {
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 8.5rem 0 3rem;
  border: 1.5px solid var(--chemrytiq-border-strong);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--chemrytiq-text);
  font-size: 1.1rem;
  line-height: 1.35;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.chemrytiq-page .chemrytiq-search-input::placeholder {
  color: #93a3b7;
}

.chemrytiq-page .chemrytiq-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.chemrytiq-page .chemrytiq-search-typehint {
  right: 0.95rem;
  padding-inline: 0.95rem;
}

.chemrytiq-page .chemrytiq-search-submit {
  height: 54px;
  min-height: 54px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #0f6dbb 0%, #2c7fd1 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  gap: 0.65rem;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 14px 26px rgba(11, 111, 191, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.chemrytiq-page .chemrytiq-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(11, 111, 191, 0.22);
}

.chemrytiq-page .chemrytiq-search-clear {
  height: 54px;
  min-height: 54px;
  padding: 0 1.5rem;
  border: 1.5px solid var(--chemrytiq-border-strong);
  border-radius: 1.2rem;
  background: #ffffff;
  color: #35516e;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.chemrytiq-page .chemrytiq-search-clear:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: #f7fbff;
}

.chemrytiq-page .chemrytiq-filter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.chemrytiq-page .chemrytiq-search-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: 1rem;
  background: #eff4f9;
  min-width: 0;
}

.chemrytiq-page .chemrytiq-search-tab {
  padding: 0.8rem 1.05rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: #526b86;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.chemrytiq-page .chemrytiq-search-tab:hover {
  background: #e4edf8;
  color: var(--chemrytiq-text);
}

.chemrytiq-page .chemrytiq-search-tab.active {
  background: #fff;
  color: #1565c0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.chemrytiq-page .chemrytiq-source-picker {
  position: relative;
  flex: 0 0 auto;
}

.chemrytiq-page .chemrytiq-source-trigger,
.chemrytiq-page .chemrytiq-structure-toggle {
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1.5px solid var(--chemrytiq-border-strong);
  border-radius: 1rem;
  background: #fff;
  color: #334155;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.chemrytiq-page .chemrytiq-source-trigger:hover,
.chemrytiq-page .chemrytiq-source-trigger.open,
.chemrytiq-page .chemrytiq-structure-toggle:hover,
.chemrytiq-page .chemrytiq-structure-toggle.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: #f7fbff;
}

.chemrytiq-page .chemrytiq-source-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 23rem;
  max-width: min(92vw, 28rem);
  border: 1px solid var(--chemrytiq-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
  display: none;
  overflow: hidden;
  z-index: 80;
}

.chemrytiq-page .chemrytiq-source-dropdown.open {
  display: block;
}

.chemrytiq-page .chemrytiq-source-header {
  padding: 0.9rem 1rem 0.75rem;
  background: #f8fbff;
}

.chemrytiq-page .chemrytiq-source-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  max-height: 24rem;
  overflow: auto;
}

.chemrytiq-page .chemrytiq-source-option {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
}

.chemrytiq-page .chemrytiq-source-option:hover {
  background: #f7fbff;
}

.chemrytiq-page .chemrytiq-source-option.selected {
  background: #eef6ff;
}

.chemrytiq-page .chemrytiq-source-footer {
  padding: 0.8rem 1rem 1rem;
}

.chemrytiq-page .chemrytiq-structure-panel {
  display: none !important;
  margin-top: 1.1rem;
}

.chemrytiq-page .chemrytiq-structure-panel.open,
.chemrytiq-page .chemrytiq-structure-panel[aria-hidden="false"] {
  display: block !important;
}

.chemrytiq-page .chemrytiq-structure-panel[aria-hidden="true"] {
  display: none !important;
}

.chemrytiq-page .chemrytiq-structure-shell {
  padding: 1.15rem 1.2rem 1.25rem;
}

.chemrytiq-page .chemrytiq-structure-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.chemrytiq-page .chemrytiq-structure-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--chemrytiq-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.chemrytiq-page .struct-panel-hint {
  flex: 1 1 18rem;
  color: var(--chemrytiq-text-soft);
  font-size: 0.92rem;
}

.chemrytiq-page .struct-close-btn {
  border: none;
  background: transparent;
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  color: #94a3b8;
  font-size: 1rem;
  transition: background .15s ease, color .15s ease;
}

.chemrytiq-page .struct-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.chemrytiq-page .struct-controls .struct-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #5a7089;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chemrytiq-page .struct-smiles-ta {
  width: 100%;
  min-height: 7rem;
  border: 1.5px solid var(--chemrytiq-border-strong);
  border-radius: 0.85rem;
  background: #f8fbff;
  padding: 0.85rem 0.95rem;
  color: var(--chemrytiq-text);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chemrytiq-page .chemrytiq-structure-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chemrytiq-page .chemrytiq-structure-submit,
.chemrytiq-page .struct-search-btn {
  flex: 1 1 13rem;
  min-height: 2.9rem;
  padding-inline: 1.25rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1565c0, #1e88e5);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.26);
  transition: transform .15s ease, box-shadow .15s ease;
}

.chemrytiq-page .chemrytiq-structure-submit:hover,
.chemrytiq-page .struct-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.34);
}

.chemrytiq-page .chemrytiq-structure-clear,
.chemrytiq-page .struct-clear-btn {
  flex: 1 1 13rem;
  min-height: 2.9rem;
  padding-inline: 1rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: 0.85rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background .15s ease;
}

.chemrytiq-page .chemrytiq-structure-clear:hover,
.chemrytiq-page .struct-clear-btn:hover {
  background: #e2e8f0;
}

.chemrytiq-page .chemrytiq-structure-tip {
  margin: 0;
  color: #69819a;
  font-size: 0.86rem;
  line-height: 1.5;
}

