html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

body {
  overflow-y: auto;
}

html::-webkit-scrollbar {
  width: 14px;
}

html::-webkit-scrollbar-track {
  background: #edf4fb;
}

html::-webkit-scrollbar-thumb {
  background: #9fb7d1;
  border: 3px solid #edf4fb;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #7f9fbe;
}

.chemrytiq-page {
  --chemrytiq-page-max: 1120px;
  --chemrytiq-space-1: 0.5rem;
  --chemrytiq-space-2: 0.75rem;
  --chemrytiq-space-3: 1rem;
  --chemrytiq-space-4: 1.25rem;
  --chemrytiq-space-5: 1.5rem;
  --chemrytiq-radius-lg: 1.5rem;
  --chemrytiq-radius-md: 1rem;
  --chemrytiq-radius-sm: 0.75rem;
  --chemrytiq-border: #d7e3ef;
  --chemrytiq-border-strong: #c5d4e5;
  --chemrytiq-text: #12304d;
  --chemrytiq-text-soft: #59718a;
  --chemrytiq-surface: #ffffff;
  --chemrytiq-surface-soft: #f7fbff;
  --chemrytiq-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  width: min(100%, var(--chemrytiq-page-max));
  max-width: var(--chemrytiq-page-max);
  margin: 2rem auto 3rem;
  padding-inline: 1.5rem;
}

.chemrytiq-page *,
.chemrytiq-page *::before,
.chemrytiq-page *::after {
  box-sizing: border-box;
}

.chemrytiq-search-card,
.chemrytiq-results-panel,
.chemrytiq-structure-panel {
  position: relative;
  width: 100%;
}

.chemrytiq-search-card {
  display: grid;
  gap: var(--chemrytiq-space-4);
  padding: 1.9rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: var(--chemrytiq-radius-lg);
  background: var(--chemrytiq-surface);
  box-shadow: var(--chemrytiq-shadow);
  overflow: visible;
}

.chemrytiq-search-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5.75rem;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(12, 109, 191, 0.08), rgba(16, 185, 129, 0.05));
  pointer-events: none;
}

.chemrytiq-hero-section,
.chemrytiq-search-row,
.chemrytiq-filter-row,
.chemrytiq-results-panel,
.chemrytiq-structure-panel {
  position: relative;
  z-index: 1;
}

.chemrytiq-results-panel {
  margin-top: 2rem;
}

.chemrytiq-empty-state,
.chemrytiq-structure-panel {
  border: 1px solid var(--chemrytiq-border);
  border-radius: var(--chemrytiq-radius-lg);
  background: var(--chemrytiq-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}


.chemrytiq-module-launcher {
  padding: 1.5rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: var(--chemrytiq-radius-lg);
  background: var(--chemrytiq-surface);
  box-shadow: var(--chemrytiq-shadow);
}

.chemrytiq-module-launcher__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.chemrytiq-module-launcher__eyebrow {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--chemrytiq-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chemrytiq-module-launcher__title {
  margin: 0;
  color: var(--chemrytiq-text);
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
  line-height: 1.08;
}

.chemrytiq-module-launcher__copy {
  margin: 0;
  max-width: 760px;
  color: var(--chemrytiq-text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.chemrytiq-module-launcher__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.chemrytiq-module-launcher__card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--chemrytiq-text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.chemrytiq-module-launcher__card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.chemrytiq-module-launcher__card.is-active {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.chemrytiq-module-launcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1rem;
}

.chemrytiq-module-launcher__label {
  color: var(--chemrytiq-text);
  font-size: 0.98rem;
  font-weight: 800;
}

.chemrytiq-module-launcher__desc {
  color: var(--chemrytiq-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .chemrytiq-module-launcher__header {
    flex-direction: column;
  }
}