@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #24312f;
  background: #f5f6f3;
  font-synthesis: none;
  --green: #176b59;
  --muted: #7a8580;
  --line: #e5e9e3;
  --ink: #263b35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-color: #48aa8b;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover:not(:disabled) {
  background: #edf4ee;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 74px;
  border-bottom: 1px solid #e5e9e1;
  background: #ffffffdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #89918c;
}
.brand strong {
  font-family: Manrope, sans-serif;
  font-size: 21px;
  color: #253a32;
  letter-spacing: -0.7px;
}
.brand-icon {
  font-size: 35px;
  color: var(--green);
}
.brand-divider {
  height: 19px;
  width: 1px;
  background: #d9dfd7;
  margin: 0 4px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #718077;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #73ae80;
  border-radius: 50%;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: #6c7a71;
}
.top-right button {
  margin-left: 20px;
}
main {
  max-width: 1660px;
  margin: auto;
  padding: 38px 40px 70px;
}
.workspace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #85958a;
}
h1 {
  font:
    650 29px/1.3 Manrope,
    sans-serif;
  letter-spacing: -1.15px;
  margin: 10px 0;
}
h2 {
  font:
    650 18px Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
p {
  line-height: 1.55;
}
.workspace-title p {
  font-size: 13px;
  color: #8a948d;
  margin: 0;
}
.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.step {
  color: #a0a89f;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.step b {
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #dfe5dc;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.step.active {
  color: #176b59;
  font-weight: 600;
}
.step.active b {
  background: #176b59;
  color: #fff;
  border-color: #176b59;
}
.steps i {
  width: 24px;
  height: 1px;
  background: #dfe5dc;
}
.studio-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.query-column {
  display: grid;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 10px #243b2503;
}
.composer {
  padding: 21px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.spark {
  color: #389275;
  font-size: 22px;
}
.badge {
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid #e1e9df;
  border-radius: 5px;
  color: #89917e;
  background: #f8faf6;
  margin-left: auto;
  font-weight: 500;
}
.assistant-intro {
  margin: 20px 0 5px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.35px;
}
.muted {
  font-size: 12px;
  color: #8c958d;
  margin: 0 0 18px;
  line-height: 1.6;
}
#messages .answer {
  font-size: 12px;
  color: #547364;
  background: #f4f8f2;
  border-left: 2px solid #75a68b;
  padding: 10px;
  margin: 14px 0;
}
.composer form {
  border: 1px solid #dce4da;
  border-radius: 11px;
  background: #fbfcfa;
  padding: 12px 10px 8px;
  box-shadow: 0 2px 4px #284a2103;
}
.composer textarea {
  border: 0;
  background: none;
  resize: vertical;
  min-height: 100px;
  max-height: 230px;
  width: 100%;
  font-size: 12px;
  line-height: 1.7;
  padding: 0 3px;
  color: #354c40;
  outline: none;
}
.composer textarea::placeholder {
  color: #a1a99f;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.composer-actions button {
  font-size: 10px;
  padding: 8px;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
}
.primary:hover:not(:disabled) {
  background: #105542;
  color: #fff;
}
.primary span {
  font-size: 16px;
}
.examples {
  display: flex;
  gap: 5px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.examples button {
  font-size: 9px;
  border-radius: 20px;
  padding: 6px 9px;
  color: #819078;
  background: #fafbf8;
}
.review {
  padding: 22px;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.review-heading h2 {
  font-size: 20px;
}
.field {
  margin-bottom: 17px;
  transition:
    box-shadow 0.3s,
    background 0.3s;
  border-radius: 8px;
}
.field label,
.property-heading label {
  font-size: 11px;
  font-weight: 600;
  color: #586a5d;
  display: block;
  margin-bottom: 7px;
}
.field small {
  display: block;
  font-size: 9px;
  color: #9aa397;
  margin-top: 5px;
}
.field select,
input {
  width: 100%;
  border: 1px solid #e1e6de;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
  font-size: 11px;
  color: #53644e;
  min-width: 0;
}
.field select {
  cursor: pointer;
}
input::placeholder {
  color: #a6aea2;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 10px;
  color: #50816c;
  font-weight: 500;
}
.structure-preview {
  height: 122px;
  background: #fbfcf8;
  width: 100%;
  border: 1px dashed #dce4d6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px;
}
.structure-preview svg {
  width: 100%;
  height: 100%;
}
.structure-preview > span {
  font-size: 32px;
  color: #b5c4ac;
}
.structure-preview small {
  font-size: 10px;
}
.structure-inputs {
  margin-top: 10px;
  display: grid;
  gap: 5px;
}
.structure-inputs label {
  font-size: 9px;
  margin: 0;
}
.structure-inputs label small {
  display: inline;
  margin-left: 5px;
  font-weight: 400;
}
.structure-inputs input {
  padding: 7px 9px;
  font: 10px monospace;
}
.property-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
}
.property-row {
  margin-bottom: 17px;
  padding: 3px;
  border-radius: 7px;
}
.property-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #5c6c58;
}
.property-top label {
  flex: 1;
}
.property-top input {
  width: 72px;
  padding: 5px 6px;
  text-align: right;
  font-size: 11px;
}
.property-top small {
  font-size: 9px;
  color: #9aa291;
}
.property-row input[type="range"] {
  accent-color: #488c6b;
  border: none;
  padding: 0;
  margin-top: 8px;
  height: 4px;
  cursor: pointer;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a0aa99;
  margin-top: 5px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 11px;
  color: #758169;
}
summary {
  cursor: pointer;
  margin-bottom: 12px;
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}
.advanced-grid label {
  font-size: 9px;
  display: grid;
  gap: 5px;
}
.advanced-grid input {
  padding: 8px;
}
.query-note {
  font-size: 10px;
  color: #87947c;
  line-height: 1.6;
  margin: 18px 0 14px;
}
.confirm {
  width: 100%;
  justify-content: space-between;
}
.fine-print {
  font-size: 9px;
  color: #99a18f;
  line-height: 1.6;
  margin: 11px 0 0;
}
#unresolved:not(:empty) {
  font-size: 11px;
  color: #9c5b30;
  background: #fff4e7;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
}
.explore-column {
  min-width: 0;
  display: grid;
  gap: 17px;
}
.map-card {
  background: #122823;
  border: 1px solid #18352c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px #253e2510;
}
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 25px 0;
  position: relative;
  z-index: 2;
}
.map-header h2 {
  color: #e4eee0;
  font-weight: 500;
  font-size: 19px;
}
.map-header .eyebrow {
  color: #759786;
}
.map-tools {
  display: flex;
  gap: 7px;
}
.map-tools button {
  background: #ffffff06;
  border: 1px solid #ffffff12;
  color: #93b29b;
  font-size: 10px;
  padding: 8px 10px;
}
.map-tools button:hover:not(:disabled) {
  background: #ffffff12;
}
.map-tools .on {
  color: #b6dac1;
  border-color: #ffffff25;
}
.map-viewport {
  height: 470px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #203d3300, #0e231d40);
}
.map-viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#overlay {
  pointer-events: none;
  z-index: 3;
}
#map {
  z-index: 2;
  cursor: grab;
}
#density-map {
  opacity: 0.8;
}
.map-bottom {
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  font-size: 9px;
  color: #8da58a;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px 0 10px;
}
.green {
  background: #70dec1;
}
.violet {
  background: #a799ef;
}
.amber {
  background: #e8bd7b;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 24px;
  color: #799780;
  font-size: 9px;
  border-top: 1px solid #ffffff0b;
  background: #0e241b44;
}
.line-key {
  display: inline-block;
  width: 15px;
  height: 1px;
  background: #80b998;
  margin: 0 6px 3px 0;
}
.run-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 21px;
}
.run-icon {
  width: 35px;
  height: 35px;
  background: #f0f5eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #78a17b;
  font-size: 23px;
  flex-shrink: 0;
}
.run-strip strong {
  font-size: 12px;
  font-weight: 500;
}
.run-strip p {
  font-size: 10px;
  color: #95a08c;
  margin: 4px 0 0;
}
#hit-counter {
  font: 600 25px Manrope;
  margin-left: auto;
  color: #4d7157;
  white-space: nowrap;
}
#hit-counter small {
  font: 400 10px "DM Sans";
  color: #99a48c;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.results-heading h2 {
  font-size: 20px;
}
.results-heading h2 span {
  font: 500 10px "DM Sans";
  background: #e9ede4;
  color: #8b9881;
  border-radius: 5px;
  padding: 3px 6px;
  vertical-align: middle;
  margin-left: 5px;
}
.result-actions {
  display: flex;
  gap: 8px;
}
.result-actions button {
  font-size: 10px;
  padding: 9px 12px;
  background: transparent;
  border-color: #dce3d5;
  color: #728367;
}
.results-subline {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #929e86;
  margin: 11px 0 17px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.empty-results {
  grid-column: 1/-1;
  text-align: center;
  border: 1px dashed #dce4d3;
  border-radius: 12px;
  padding: 40px 20px;
  color: #b2bda5;
}
.empty-results > span {
  font-size: 37px;
}
.empty-results h3 {
  font: 500 17px Manrope;
  color: #7f9271;
  letter-spacing: -0.5px;
  margin: 12px 0 7px;
}
.empty-results p {
  font-size: 11px;
  color: #a0ac94;
  margin: 0;
}
.molecule-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8da;
  border-radius: 12px;
  padding: 12px;
  animation: arrive 0.7s ease both;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.molecule-card:hover {
  border-color: #8db594;
  box-shadow: 0 5px 18px #2455350a;
}
.molecule-card.selected {
  border-color: #387e59;
  background: #fbfff9;
}
.mol-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #95a58a;
}
.mol-top input {
  width: 13px;
  accent-color: #488767;
  cursor: pointer;
}
.molecule-card svg {
  width: 100%;
  height: 122px;
  display: block;
}
.mol-price {
  font-size: 16px;
  color: #3a5a40;
  font-weight: 600;
}
.mol-price small {
  font-size: 9px;
  color: #9ba88f;
  font-weight: 400;
}
.mol-props {
  display: flex;
  gap: 7px;
  font-size: 9px;
  color: #8c9b7e;
  padding-top: 9px;
  margin-top: 8px;
  border-top: 1px solid #eef1e9;
  flex-wrap: wrap;
}
.mol-props b {
  font-weight: 500;
  color: #617953;
}
.mol-id {
  font: 8px monospace;
  color: #a0ad92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 7px;
}
.mol-verified {
  font-size: 8px;
  color: #70a17d;
  margin-left: auto;
}
.hover-card {
  position: absolute;
  z-index: 5;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 170px;
  right: 20px;
  top: 15px;
  box-shadow: 0 5px 20px #0003;
  font-size: 10px;
}
.hover-card svg {
  width: 150px;
  height: 95px;
}
dialog {
  border: 1px solid #dce5d5;
  border-radius: 16px;
  box-shadow: 0 30px 100px #0b261c44;
  padding: 0;
}
dialog::backdrop {
  background: #172e2555;
  backdrop-filter: blur(5px);
}
#editor-dialog {
  width: min(1100px, 94vw);
  height: min(750px, 90vh);
  overflow: hidden;
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #f7faf4;
  color: #6f7e63;
  font-size: 12px;
}
.dialog-bar button {
  padding: 4px 10px;
  border: 0;
  background: none;
  font-size: 23px;
}
iframe {
  border: 0;
  width: 100%;
  height: calc(100% - 53px);
  background: #fff;
}
.small-dialog {
  padding: 30px;
  width: 450px;
  max-width: 92vw;
  color: #526647;
}
.small-dialog h2 {
  font-size: 22px;
}
.small-dialog p {
  font-size: 12px;
  color: #829175;
}
.small-dialog .primary {
  margin: 8px 0;
  width: 100%;
}
.export-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.export-options a {
  padding: 14px;
  border: 1px solid #dde7d4;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.export-options small {
  display: block;
  font-size: 10px;
  color: #94a184;
  margin-top: 4px;
}
.highlight {
  animation: fieldglow 1.8s ease;
}
.busy #run-icon {
  animation: spin 3s linear infinite;
}
.busy .status-dot {
  animation: pulse 1.5s ease infinite;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 10px;
  background: #234b37;
  color: #fff;
  box-shadow: 0 6px 30px #0002;
  font-size: 12px;
  z-index: 20;
  max-width: 85vw;
}
.planning {
  opacity: 0.7;
}
#plan.planning {
  animation: pulse 1.5s ease infinite;
}
@keyframes fieldglow {
  0%,
  70% {
    box-shadow: 0 0 0 5px #a8cf9c33;
    background: #eff8e9;
  }
  100% {
    box-shadow: none;
    background: transparent;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1500px) {
  .studio-layout {
    grid-template-columns: 385px minmax(0, 1fr);
  }
  .map-viewport {
    height: 510px;
  }
  .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  main {
    padding: 25px 22px;
  }
  .studio-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 17px;
  }
  h1 {
    font-size: 24px;
  }
  .steps {
    display: none;
  }
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-caption > span:last-child {
    display: none;
  }
  .map-viewport {
    height: 440px;
  }
  .result-actions button {
    padding: 8px;
  }
  .map-header {
    padding: 20px 17px 0;
  }
  .map-tools button {
    font-size: 9px;
    padding: 7px;
  }
  .review {
    padding: 18px;
  }
  .composer {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 0 18px;
    height: 60px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand > span:last-child,
  .brand-divider,
  .top-right .quiet {
    display: none;
  }
  .top-right {
    font-size: 9px;
  }
  main {
    padding: 24px 15px;
  }
  .workspace-title {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 24px;
    max-width: 320px;
  }
  .workspace-title p {
    font-size: 11px;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .query-column {
    display: contents;
  }
  .composer {
    grid-row: 1;
  }
  .review {
    grid-row: 2;
  }
  .explore-column {
    grid-row: 3;
  }
  .map-viewport {
    height: 360px;
  }
  .results-heading h2 {
    font-size: 17px;
  }
  .result-actions {
    gap: 4px;
  }
  .result-actions button {
    font-size: 9px;
  }
  .map-bottom {
    left: 15px;
    right: 15px;
    font-size: 8px;
  }
  .map-bottom > span:last-child {
    display: none;
  }
  .map-caption {
    padding: 12px 15px;
  }
  .run-strip {
    padding: 15px;
  }
  .run-strip strong {
    font-size: 11px;
  }
  .run-strip p {
    font-size: 9px;
  }
  #hit-counter {
    font-size: 21px;
  }
  .results-grid {
    gap: 9px;
  }
  .molecule-card {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep the chemistry within reach while the map stays visible. */
@media (min-width: 761px) {
  .query-column {
    max-height: calc(100vh - 265px);
    min-height: 650px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccd7c4 transparent;
    padding-right: 3px;
    border-radius: 15px;
  }
  .explore-column {
    position: sticky;
    top: 20px;
  }
  .review {
    position: relative;
  }
  .confirm {
    position: sticky;
    bottom: 0;
    box-shadow: 0 -8px 16px #fff;
    z-index: 6;
  }
  #property-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
  }
  .property-top {
    flex-wrap: wrap;
  }
  .property-top label {
    flex-basis: 100%;
    font-size: 10px;
  }
  .property-top input {
    width: 65px;
    margin-left: auto;
  }
  .structure-preview {
    height: 94px;
  }
  .has-plan .composer textarea {
    min-height: 60px;
    height: 60px;
  }
  .has-plan .examples {
    display: none;
  }
  .has-plan .composer {
    padding: 17px;
  }
  .has-plan .composer .answer {
    margin: 8px 0;
    font-size: 11px;
  }
}
@media (min-width: 1100px) {
  .search-phase .map-viewport {
    height: 340px;
    transition: height 0.6s ease;
  }
  .search-phase .workspace-title {
    margin-bottom: 20px;
  }
  .search-phase .workspace-title h1 {
    font-size: 25px;
  }
  .search-phase .workspace-title p {
    display: none;
  }
}
.blue {
  background: #82bcf0;
}
/* Reviewable workflows, hover previews and conformer comparison. */
[hidden] {
  display: none !important;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 12px 0;
}
.check-label input {
  width: auto;
}
.capability-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}
.hover-card {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  width: 270px;
  background: #fff;
  border: 1px solid #d7e3dc;
  border-radius: 12px;
  box-shadow: 0 10px 40px #0003;
  padding: 8px;
  color: #183c30;
}
.hover-card svg {
  width: 100%;
  height: 170px;
  display: block;
}
.hover-card small {
  display: block;
  padding: 5px;
  font-size: 11px;
}
.results-section {
  scroll-margin-top: 28px;
  outline: none;
}
#load-more {
  display: block;
  margin: 24px auto;
}
.score-label {
  display: block;
  color: #39735d;
  padding: 8px 14px 0;
  font-size: 11px;
}
.view-overlap {
  margin: 10px 12px 14px;
  width: calc(100% - 24px);
  font-size: 12px;
}
#alignment-dialog {
  width: min(1000px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 16px;
}
#alignment-viewer {
  height: 480px;
  max-height: 60vh;
  position: relative;
}
.alignment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  align-items: center;
  font-size: 12px;
}
.alignment-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.alignment-controls input {
  width: auto;
}
#alignment-caption {
  font-size: 12px;
  color: #62776e;
  padding: 0 20px 20px;
  line-height: 1.7;
}
#quote-dialog {
  width: min(660px, 94vw);
}
#quote-form {
  display: grid;
  gap: 12px;
}
#quote-preview {
  white-space: pre-wrap;
  background: #f4f7f4;
  padding: 15px;
  font-size: 12px;
}
.quote-alternatives {
  display: flex;
  gap: 18px;
  margin: 16px 0;
  font-size: 12px;
}
#optimization-controls,
#conformer-controls {
  padding: 14px;
  border: 1px solid #d8e5de;
  border-radius: 12px;
  background: #f7faf7;
}
#optimization-controls label,
#conformer-controls label {
  display: block;
  margin: 10px 0 6px;
}
#optimization-controls small,
#conformer-controls small {
  line-height: 1.6;
  display: block;
  margin: 8px 0;
}
@media (max-width: 600px) {
  .map-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .map-header {
    gap: 10px;
  }
  .hover-card {
    width: 230px;
  }
  .alignment-controls {
    gap: 10px;
  }
}

#quote-message,
#required_all,
#variants-input {
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #d8e2db;
  border-radius: 9px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.prediction-label {
  display: block;
  padding: 6px 14px 12px;
  color: #60756d;
  font-size: 11px;
  line-height: 1.5;
}

.search-activity { color: var(--muted, #61786d); font-size: 12px; margin: -6px 4px 0; }

/* The live 3D comparison occupies the chemical-space panel after its short intro. */
.ensemble-card { padding: 24px; overflow: hidden; }
.ensemble-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ensemble-heading h2 { margin: 8px 0 12px; font-size: 24px; }
.ensemble-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: #65766d; }
.ensemble-legend i { display: inline-block; width: 18px; height: 3px; margin: 0 7px 3px 0; }
.query-key { background: #2979e8; }
.candidate-key { background: #9561ca; }
#ensemble-viewer { position: relative; width: 100%; height: 390px; background: #f5f7f5; border-radius: 12px; margin: 16px 0; }
#ensemble-status { font-size: 13px; color: #445a50; min-height: 20px; }
.ensemble-note, .conformer-projection-label { font-size: 11px; color: #738477; }
.conformer-projection-label { display: block; margin: -4px 16px 12px; }
@media (max-width: 600px) { .ensemble-card { padding: 16px; } #ensemble-viewer { height: 300px; } .ensemble-heading h2 { font-size: 20px; } }

.molecule-card .spatial-picture svg { height: 180px; }
