﻿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);
}

