:root {
  --bg: #f6f8f5;
  --surface: #fff;
  --text: #172b28;
  --muted: #63716c;
  --primary: #0d8273;
  --primary-dark: #096659;
  --line: #dce3de;
  --danger: #b64536;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
svg {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
::selection {
  background: #cce8df;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--primary);
}
.skip-link:focus {
  top: 10px;
}
.page {
  display: none;
}
.page.active {
  display: block;
  animation: pageIn 0.3s var(--ease);
}
.site-navbar {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #f6f8f5;
}
.navbar-inner {
  max-width: 1440px;
  height: 100%;
  padding: 0 40px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-mark {
  width: 24px;
  height: 29px;
  color: var(--primary);
}
.brand-period {
  display: none;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.navbar-link {
  position: relative;
  padding: 22px 0;
  color: var(--muted);
}
.navbar-link.active,
.navbar-link:hover {
  color: var(--text);
}
.navbar-link.active::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: var(--primary);
}
.github-link {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.github-link span {
  margin-left: 5px;
}
.landing {
  max-width: 1320px;
  padding: 0 40px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0 56px;
}
.eyebrow {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(36px, 3.3vw, 48px);
  font-weight: 570;
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin: 22px 0;
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
  max-width: 470px;
  color: #4e6059;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 21px;
}
.btn {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.btn-primary,
.btn-accent {
  background: var(--primary);
  color: white;
}
.btn-primary:hover,
.btn-accent:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  border-color: #bccac3;
  background: transparent;
}
.btn-secondary:hover {
  background: #eaf0eb;
}
/* RDKit-aligned structures share their ring coordinates throughout the 8 s cycle. */
.molecule-stage {
  position: relative;
  height: 380px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
}
.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  position: relative;
  z-index: 2;
}
.stage-header > span {
  font-size: 12px;
  color: var(--muted);
}
.motion-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  font-size: 12px;
}
.motion-toggle:hover {
  background: var(--bg);
}
.structure-scene {
  position: absolute;
  inset: 35px 0 65px;
}
.molecule-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.molecule-svg path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.molecule-benzene,
.compound-benzene {
  animation: benzenePhase 8s infinite;
}
.molecule-phenol,
.compound-phenol {
  opacity: 0;
  animation: phenolPhase 8s infinite;
}
.molecule-anisole,
.compound-anisole {
  opacity: 0;
  animation: anisolePhase 8s infinite;
}
.molecule-benzene [class*="bond-"] {
  stroke-dasharray: 170;
  animation: drawBond 8s infinite;
}
.molecule-phenol [class*="bond-5"],
.molecule-anisole [class*="bond-5"],
.molecule-anisole [class*="bond-6"] {
  stroke-dasharray: 100;
  animation: substituentBond 8s infinite;
}
.site-highlight {
  position: absolute;
  width: 42px;
  height: 42px;
  left: calc(54.5% - 21px);
  top: calc(50% - 21px);
  border: 1px solid #0d82734d;
  background: #0d827307;
  border-radius: 50%;
  animation: sitePulse 8s infinite;
  pointer-events: none;
}
.stage-bottom {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.stage-compounds {
  height: 43px;
  position: relative;
  flex: 1;
}
.compound {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.compound small {
  font-size: 10px;
  color: var(--muted);
}
.compound strong {
  font-size: 18px;
  font-weight: 550;
}
.compound code {
  font: 12px monospace;
  color: var(--muted);
  padding-left: 12px;
}
.phase-dots {
  display: flex;
  gap: 6px;
}
.phase-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.15;
  animation: dotPhase 8s infinite;
}
.phase-dots i:nth-child(2) {
  animation-delay: 2.66s;
}
.phase-dots i:nth-child(3) {
  animation-delay: 5.33s;
}
.illustration-note {
  position: absolute;
  left: 22px;
  bottom: 13px;
  font-size: 10px;
  color: var(--muted);
}
.molecule-stage.paused * {
  animation-play-state: paused !important;
}
.capabilities {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.capabilities > h2 {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 20px;
}
.feature-card {
  display: block;
  min-width: 0;
  padding: 0 20px 0 0;
}
.feature-card + .feature-card {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.feature-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.feature-card h3 span {
  color: var(--primary);
  font-size: 18px;
  transition: transform 0.16s;
}
.feature-card:hover h3 span {
  transform: translate(2px, -2px);
}
.feature-card:hover h3 {
  color: var(--primary);
}
.feature-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  max-width: 475px;
}
.feature-meta {
  color: var(--primary);
  font-size: 12px;
  margin-top: 17px;
}
.workflow {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 12px;
}
.workflow-label {
  font-weight: 600;
}
.workflow ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.workflow li:not(:last-child)::after {
  content: "→";
  margin-left: 20px;
  color: #9baaa1;
}
.landing-footer {
  padding: 26px 0 20px;
  border-top: 1px solid var(--line);
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.footer-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.institutions {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.footer-bottom {
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
}
.footer-bottom a:hover {
  color: var(--primary);
}
/* Workbench: inputs and results share a quiet, practical visual hierarchy. */
.app-container {
  max-width: 1440px;
  margin: auto;
  padding: 28px 40px 48px;
}
.workbench-heading h1 {
  font-size: 28px;
  font-weight: 570;
  line-height: 1.3;
  letter-spacing: -0.7px;
}
.workbench-heading p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--muted);
}
.tab-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 24px;
}
.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 10px 0 13px;
  color: var(--muted);
  font-size: 14px;
  transition:
    color 0.16s,
    border-color 0.16s;
}
.tab-btn svg {
  width: 17px;
  height: 17px;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 550;
}
.tab-panel {
  animation: pageIn 0.3s var(--ease);
}
.content-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.form-layout,
.result-section {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.form-layout {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-topline {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-topline h2,
.result-heading h2 {
  font-size: 15px;
  font-weight: 600;
}
.form-group {
  min-width: 0;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.form-group label,
.section-label {
  font-size: 13px;
  font-weight: 550;
}
.label-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.example-btn {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 3px 9px;
  color: var(--primary);
}
.example-btn:hover {
  background: var(--bg);
}
textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid #cbd6ce;
  border-radius: 4px;
  background: white;
  padding: 10px 11px;
  font:
    13px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  transition: border-color 0.16s;
}
textarea {
  display: block;
  resize: vertical;
  min-height: 96px;
}
textarea::placeholder,
input::placeholder {
  color: #7e8a83;
}
textarea:focus,
input[type="text"]:focus {
  border-color: var(--primary);
}
#genText {
  font-family: inherit;
  font-size: 13px;
  min-height: 110px;
}
.structure-preview {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: -8px;
  background: #fcfdfb;
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.preview-top > span {
  font-size: 11px;
  color: var(--muted);
}
.preview-top select {
  font-size: 11px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  max-width: 145px;
}
.preview-drawing {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}
.preview-drawing svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 95%;
}
.preview-smiles {
  display: block;
  text-align: center;
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.text-btn {
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-size: 11px;
  color: var(--primary);
}
.text-btn:hover {
  text-decoration: underline;
}
.action-sep {
  color: #bdc8c0;
  font-size: 11px;
}
.status-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#propertiesStatus {
  font-size: 11px;
}
.status-error {
  color: var(--danger);
}
.status-ok {
  color: var(--primary);
}
.icon-btn {
  width: 27px;
  height: 27px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 400 !important;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.16s,
    border-color 0.16s;
}
.chip input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--primary);
}
.chip:has(input:checked) {
  background: #f2f7f3;
  border-color: #c1d5c9;
  color: #245b4f;
}
.chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chip-skeleton {
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f4ef, #e1eade, #f0f4ef);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.form-layout > .btn {
  width: 100%;
  margin-top: 0;
}
.form-layout > .btn svg {
  display: none;
}
.preset-section {
  margin-top: 12px;
}
.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.preset-label {
  font-size: 11px;
  color: var(--muted);
}
.preset-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.preset-tag {
  font-size: 11px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: white;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.preset-tag.used {
  background: #f0f6f0;
  border-color: #bfd2c4;
  color: #356147;
}
.preset-tag:hover {
  border-color: var(--primary);
}
.advanced-parameters {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.advanced-parameters summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.param-grid {
  margin-top: 12px;
}
.param-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}
.field-help {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: -5px;
}
.result-section {
  padding: 20px;
  min-height: 400px;
}
.result-heading {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  flex-direction: column;
}
.result-heading > .label-actions {
  width: 100%;
  justify-content: space-between;
}
.result-heading
  > .label-actions:has(.status-text:empty):has(.export-btns[style*="none"]) {
  display: none;
}
.result-table-wrap {
  overflow: auto;
  max-width: 100%;
  margin-top: 14px;
  max-height: 740px;
  scrollbar-width: thin;
  scrollbar-color: #c6d5c9 transparent;
}
.result-table-wrap.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 302px;
  margin-top: 0;
}
.empty-state {
  text-align: center;
  padding: 36px 16px;
}
.empty-state h4 {
  font-size: 15px;
  font-weight: 550;
}
.empty-state p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.empty-table {
  width: 98px;
  height: 58px;
  margin: 0 auto 24px;
  border: 1px solid #d9e2dc;
  border-radius: 3px;
  overflow: hidden;
}
.empty-table i {
  display: block;
  height: 19px;
  border-bottom: 1px solid #e5ebe6;
  background: linear-gradient(
    to right,
    transparent 30%,
    #e5ebe6 30%,
    #e5ebe6 31%,
    transparent 31%,
    transparent 64%,
    #e5ebe6 64%,
    #e5ebe6 65%,
    transparent 65%
  );
}
.empty-table i:first-child {
  background-color: #f3f6f2;
}
.state-indicator {
  width: 23px;
  height: 23px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 18px;
}
[data-state="loading"] .state-indicator {
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
[data-state="error"] .state-indicator {
  border-color: var(--danger);
}
[data-state="error"] .state-indicator::after {
  content: "!";
  display: block;
  font-size: 13px;
  line-height: 19px;
  color: var(--danger);
}
.export-btns {
  display: flex;
  gap: 6px;
}
.export-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--primary);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
}
.export-btn:hover {
  background: var(--bg);
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.65;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f5f0;
  color: #496052;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  min-width: 75px;
  border-bottom: 1px solid #e9eee8;
  color: #40574a;
  vertical-align: middle;
}
tr:hover td {
  background: #fafcf8;
}
.cell-smiles {
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  min-width: 145px;
  max-width: 225px;
  overflow-wrap: anywhere;
}
.cell-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mol-cell {
  padding: 5px 10px;
}
.mol-render {
  min-width: 160px;
  min-height: 90px;
  display: grid;
  place-items: center;
}
.mol-render svg {
  width: 160px;
  height: 90px;
}
.mol-placeholder {
  font-size: 11px;
  color: var(--muted);
  max-width: 145px;
  text-align: center;
}
.cell-ok {
  color: var(--primary);
}
.cell-no {
  color: var(--danger);
}
.status-details {
  flex-basis: 100%;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.status-details summary {
  cursor: pointer;
  color: var(--danger);
}
.status-details pre {
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #ecd9d3;
  background: #fdf9f7;
  color: #82655c;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  .navbar-inner,
  .landing,
  .app-container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero {
    gap: 30px;
    padding: 48px 0;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    width: 225px;
    justify-content: space-between;
  }
  .content-card {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 1023px) {
  .content-card {
    grid-template-columns: 1fr;
  }
  .result-section {
    min-height: 360px;
  }
  .form-layout {
    gap: 18px;
  }
  .preview-drawing {
    height: 140px;
  }
  .hero {
    gap: 24px;
  }
  .feature-grid {
    gap: 24px;
  }
}
@media (max-width: 650px) {
  .site-navbar {
    height: 62px;
  }
  .navbar-inner,
  .landing,
  .app-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .navbar-brand {
    font-size: 22px;
    gap: 6px;
  }
  .brand-mark {
    width: 20px;
    height: 25px;
  }
  .navbar-links {
    gap: 14px;
    font-size: 12px;
  }
  .navbar-link {
    padding: 20px 0;
  }
  .github-link {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1.2px;
    margin: 16px 0;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: row;
    margin-top: 22px;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-detail {
    font-size: 11px;
    margin-top: 16px;
  }
  .molecule-stage {
    height: 320px;
  }
  .stage-header {
    padding: 14px 16px;
  }
  .stage-header > span {
    font-size: 11px;
  }
  .stage-bottom {
    left: 16px;
    right: 16px;
    bottom: 39px;
  }
  .illustration-note {
    left: 16px;
    font-size: 9px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-card + .feature-card {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .feature-card {
    padding: 0;
  }
  .feature-card h3 {
    font-size: 19px;
  }
  .workflow {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .workflow ol {
    flex-direction: column;
    gap: 7px;
  }
  .workflow li:not(:last-child)::after {
    content: none;
  }
  .workflow ol {
    list-style: decimal;
    padding-left: 18px;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .institutions {
    text-align: left;
  }
  .app-container {
    padding-top: 25px;
  }
  .workbench-heading h1 {
    font-size: 26px;
  }
  .workbench-heading p {
    font-size: 13px;
    max-width: 310px;
  }
  .tab-bar {
    gap: 16px;
    margin: 18px 0 20px;
  }
  .tab-btn {
    font-size: 12px;
    flex: 1;
    gap: 5px;
    white-space: nowrap;
  }
  .tab-btn svg {
    width: 15px;
    height: 15px;
  }
  .form-layout,
  .result-section {
    padding: 16px;
  }
  .result-table-wrap.empty {
    min-height: 250px;
  }
  .result-section {
    min-height: 330px;
  }
  .empty-state {
    padding: 25px 3px;
  }
  .empty-state p {
    font-size: 12px;
  }
  textarea,
  input[type="text"],
  #genText {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .molecule-benzene,
  .molecule-phenol,
  .compound-benzene,
  .compound-phenol {
    opacity: 0 !important;
  }
  .molecule-anisole,
  .compound-anisole {
    opacity: 1 !important;
  }
  .site-highlight {
    display: none;
  }
  .phase-dots i {
    opacity: 0.15;
  }
  .phase-dots i:last-child {
    opacity: 0.9;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes benzenePhase {
  0%,
  27%,
  100% {
    opacity: 1;
  }
  32%,
  95% {
    opacity: 0;
  }
}
@keyframes phenolPhase {
  0%,
  28%,
  66%,
  100% {
    opacity: 0;
  }
  34%,
  60% {
    opacity: 1;
  }
}
@keyframes anisolePhase {
  0%,
  61%,
  100% {
    opacity: 0;
  }
  67%,
  94% {
    opacity: 1;
  }
}
@keyframes drawBond {
  0% {
    stroke-dashoffset: 170;
  }
  14%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes substituentBond {
  0%,
  27% {
    stroke-dashoffset: 100;
  }
  38%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes sitePulse {
  0%,
  14%,
  50%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  22%,
  30% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}
@keyframes dotPhase {
  0%,
  27% {
    opacity: 0.9;
  }
  34%,
  94% {
    opacity: 0.15;
  }
  100% {
    opacity: 0.9;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.cell-text {
  min-width: 240px;
  max-width: 300px;
  overflow-wrap: anywhere;
}

.example-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.example-controls select {
  max-width: 155px;
  min-height: 28px;
  font-size: 12px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.change-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.change-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.change-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-edited {
  background: #ffb84d;
}
.legend-input {
  background: #61adef;
}
.comparison-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 200px;
}
.mol-render {
  min-width: 200px;
  min-height: 120px;
}
.mol-render svg {
  width: 200px;
  height: 120px;
}
