/* Copyright Chemryt Informatics Private Limited */
.chemrytiq-aem-page,
.chemrytiq-aem-page * {
  box-sizing: border-box;
}

.chemrytiq-page .chemrytiq-aem,
.chemrytiq-page .chemrytiq-aem *,
.chemrytiq-aem-page {
  font-family: inherit;
}

.chemrytiq-aem-page {
  color: #172235;
}

.chemrytiq-aem-hero {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem;
  margin: 0.75rem 0;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.chemrytiq-aem-kicker,
.chemrytiq-aem-small-label {
  color: #42607d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chemrytiq-aem-hero h1,
.chemrytiq-aem-panel h2,
.chemrytiq-aem-graph-panel h2,
.chemrytiq-aem-control-card h2,
.chemrytiq-aem-visual-tools h2,
.chemrytiq-aem-conformer-selector h2,
.chemrytiq-aem-analysis-card h2,
.chemrytiq-aem-alert-list h3,
.chemrytiq-aem-strain-table h3 {
  margin: 0;
  color: #12304d;
  line-height: 1.25;
}

.chemrytiq-aem-hero h1 {
  font-size: 1.18rem;
  font-weight: 800;
}

.chemrytiq-aem-hero p,
.chemrytiq-aem-panel-head p,
.chemrytiq-aem-muted {
  color: #5b6f84;
  line-height: 1.55;
}

.chemrytiq-aem-hero-actions,
.chemrytiq-aem-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.chemrytiq-aem-link,
.chemrytiq-aem-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid #1f6fb8;
  border-radius: 0.5rem;
  background: #1669b2;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.chemrytiq-aem-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chemrytiq-aem-button--secondary,
.chemrytiq-aem-link {
  background: #fff;
  color: #175c9f;
}

.chemrytiq-aem-button--ghost,
.chemrytiq-aem-button--quiet {
  border-color: #d4e1ef;
  background: #eef5fc;
  color: #284761;
}

.chemrytiq-aem-grid,
.chemrytiq-aem-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.chemrytiq-aem-view-grid--analysis {
  grid-template-columns: minmax(24rem, 1.08fr) minmax(20rem, 0.92fr);
  align-items: stretch;
}

.chemrytiq-aem-panel {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.chemrytiq-aem-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.chemrytiq-aem-panel h2,
.chemrytiq-aem-graph-panel h2,
.chemrytiq-aem-control-card h2,
.chemrytiq-aem-visual-tools h2,
.chemrytiq-aem-conformer-selector h2,
.chemrytiq-aem-analysis-card h2 {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
  color: #12304d;
  line-height: 1.25;
}

.chemrytiq-aem-viewer {
  position: relative;
  height: clamp(20rem, 34vh, 24rem);
  min-height: 20rem;
  border: 1px solid #dbe7f3;
  border-radius: 0.65rem;
  background: #f7fbff;
  overflow: hidden;
}

.chemrytiq-aem-viewer > span {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d7e3ee;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  color: #526b83;
  font-weight: 700;
}

.chemrytiq-aem-label {
  display: block;
  margin: 0.9rem 0 0.45rem;
  color: #263d55;
  font-size: 0.88rem;
  font-weight: 800;
}

.chemrytiq-aem-textarea {
  width: 100%;
  resize: vertical;
  padding: 0.85rem;
  border: 1px solid #cfddea;
  border-radius: 0.55rem;
  color: #18283a;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
}

.chemrytiq-aem-status,
.chemrytiq-aem-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid #d7e3ee;
  border-radius: 999px;
  background: #f6fbff;
  color: #375972;
  font-size: 0.78rem;
  font-weight: 800;
}

.chemrytiq-aem-chip--ok {
  border-color: #bfe7cf;
  background: #f0fdf5;
  color: #166534;
}

.chemrytiq-aem-chip--danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.chemrytiq-aem-molecule-card,
.chemrytiq-aem-options,
.chemrytiq-aem-report-body {
  display: grid;
  gap: 0.75rem;
}

.chemrytiq-aem-molecule-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(7rem, 0.58fr) minmax(9rem, 0.72fr) minmax(8rem, 0.68fr) minmax(7rem, 0.52fr);
  padding: 0.85rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.65rem;
  background: #f9fcff;
}

.chemrytiq-aem-molecule-card strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.chemrytiq-aem-visual-column,
.chemrytiq-aem-control-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.chemrytiq-aem-viewer-card {
  display: grid;
  gap: 0.85rem;
}

.chemrytiq-aem-viewer-card .chemrytiq-aem-viewer {
  height: clamp(24rem, 52vh, 34rem);
}

.chemrytiq-aem-viewer-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  align-items: center;
  padding-top: 0.78rem;
  border-top: 1px solid #e0eaf4;
}

.chemrytiq-aem-viewer-footer .chemrytiq-aem-button,
.chemrytiq-aem-viewer-footer .chemrytiq-aem-toggle {
  min-height: 2.2rem;
}

.chemrytiq-aem-viewer-footer-note {
  flex: 1 1 12rem;
  min-width: 0;
  color: #52677d;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}

.chemrytiq-aem-control-card,
.chemrytiq-aem-visual-tools {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.chemrytiq-aem-engine-card {
  position: relative;
  display: grid;
  gap: 0.78rem;
  overflow: hidden;
}

.chemrytiq-aem-engine-card--alert {
  border-color: #f2b84b;
  box-shadow: none;
}

.chemrytiq-aem-engine-card--alert::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.34rem;
  background: #f2a51f;
}

.chemrytiq-aem-chip--warn {
  border-color: #f6c768;
  background: #fff8e6;
  color: #8a5b05;
}

.chemrytiq-aem-engine-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.chemrytiq-aem-engine-params > div {
  min-width: 0;
  padding: 0.68rem 0.72rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.55rem;
  background: #f9fcff;
}

.chemrytiq-aem-engine-params strong {
  display: block;
  margin-top: 0.2rem;
  color: #12304d;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-control-column .chemrytiq-aem-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.chemrytiq-aem-control-column .chemrytiq-aem-report-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chemrytiq-aem-control-column .chemrytiq-aem-graph {
  min-height: 16rem;
}

.chemrytiq-aem-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.chemrytiq-aem-tool-panel {
  display: grid;
  min-width: 0;
}

.chemrytiq-aem-tool-panel .chemrytiq-aem-alignment-panel,
.chemrytiq-aem-tool-panel .chemrytiq-aem-dihedral-panel {
  min-height: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.chemrytiq-aem-metrics-conformer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0.65rem;
  border: 1px solid #d7e4f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.chemrytiq-aem-metrics-conformer-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel,
.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-conformer-selector {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 19.5rem;
  min-height: 19.5rem;
  max-height: 19.5rem;
  margin-top: 0;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel {
  border-right: 1px solid #d7e4f0;
  padding-left: 0.2rem;
}

.chemrytiq-aem-metrics-conformer-row--single .chemrytiq-aem-graph-panel,
.chemrytiq-aem-metrics-conformer-row--single .chemrytiq-aem-conformer-selector {
  border-right: 0;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph {
  display: grid;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  padding: 0.2rem 0.25rem 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-svg {
  width: 100%;
  height: 100%;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-conformer-table {
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow-y: scroll;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-conformer-row {
  min-height: 2.15rem;
  padding: 0.42rem 0.6rem;
}

.chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-conformer-row--head {
  min-height: 1.95rem;
}

.chemrytiq-aem-performance-alert {
  padding: 0.72rem 0.85rem;
  border: 1px solid #f6d58f;
  border-radius: 0.65rem;
  background: #fff8e6;
  color: #73510b;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.chemrytiq-aem-performance-alert--danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.chemrytiq-aem-options {
  grid-template-columns: minmax(13rem, 1.2fr) minmax(8rem, 0.72fr) minmax(8rem, 0.72fr) minmax(12rem, 1.1fr);
  margin-top: 1rem;
}

.chemrytiq-aem-options label {
  display: grid;
  gap: 0.35rem;
  color: #334e67;
  font-weight: 800;
}

.chemrytiq-aem-options input,
.chemrytiq-aem-options select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #cfddea;
  border-radius: 0.5rem;
  background: #fff;
  color: #18283a;
}

.chemrytiq-aem-options select:disabled {
  color: #64748b;
}

.chemrytiq-aem-forcefield-note {
  padding: 0.66rem 0.8rem;
  border: 1px solid #d7e3ee;
  border-radius: 0.6rem;
  background: #f8fbff;
  color: #375972;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.chemrytiq-aem-forcefield-note--warn {
  border-color: #f6d58f;
  background: #fff8e6;
  color: #73510b;
}

.chemrytiq-aem-dihedral-panel {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e5ef;
  border-radius: 0.65rem;
  background: #fbfdff;
}

.chemrytiq-aem-dihedral-bonds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 6.8rem;
  overflow: auto;
}

.chemrytiq-aem-dihedral-bond {
  min-height: 1.45rem;
  padding: 0.2rem 0.42rem;
  border: 1px solid #cfddea;
  border-radius: 5px;
  background: #fff;
  color: #31526d;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}

.chemrytiq-aem-dihedral-bond.is-active {
  border-color: #1f7ac5;
  background: #ecf7ff;
  color: #155f99;
}

.chemrytiq-aem-dihedral-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #52677d;
  font-size: 0.78rem;
  font-weight: 600;
}

.chemrytiq-aem-rotamer-scan {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #dfeaf4;
  border-radius: 8px;
  background: #fff;
}

.chemrytiq-aem-rotamer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: #334e67;
  font-size: 0.76rem;
}

.chemrytiq-aem-rotamer-head strong {
  color: #12304d;
  font-size: 0.78rem;
}

.chemrytiq-aem-rotamer-head span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.chemrytiq-aem-rotamer-chart {
  position: relative;
  min-height: 8.2rem;
}

.chemrytiq-aem-rotamer-svg {
  display: block;
  width: 100%;
  height: 8.2rem;
}

.chemrytiq-aem-rotamer-svg line {
  stroke: #cbd9e7;
  stroke-width: 1.4;
}

.chemrytiq-aem-rotamer-svg path {
  fill: none;
  stroke: #1f7ac5;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chemrytiq-aem-rotamer-svg text {
  fill: #52677d;
  font-size: 10px;
  font-weight: 700;
}

.chemrytiq-aem-rotamer-point {
  position: absolute;
  width: 0.58rem;
  height: 0.58rem;
  margin: -0.29rem 0 0 -0.29rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #1f7ac5;
  box-shadow: 0 0 0 1px #1f7ac5;
  cursor: pointer;
}

.chemrytiq-aem-rotamer-point:hover,
.chemrytiq-aem-rotamer-point:focus-visible {
  background: #0f5f9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 197, 0.18);
  outline: none;
}

.chemrytiq-aem-rotamer-point span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  z-index: 2;
  display: none;
  width: max-content;
  max-width: 11rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #bfd7ee;
  border-radius: 5px;
  background: #fff;
  color: #12304d;
  font-size: 0.7rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.chemrytiq-aem-rotamer-point:hover span,
.chemrytiq-aem-rotamer-point:focus-visible span {
  display: block;
}

.chemrytiq-aem-dihedral-slider {
  display: grid;
  gap: 0.4rem;
  color: #334e67;
  font-size: 0.76rem;
  font-weight: 500;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border: 1px solid #dfeaf4;
  border-radius: 8px;
  background: #fff;
}

.chemrytiq-aem-dihedral-slider-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.chemrytiq-aem-dihedral-slider-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-dihedral-slider-head label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #52677d;
  font-size: 0.7rem;
  font-weight: 500;
}

.chemrytiq-aem-dihedral-slider-head input[type="number"] {
  width: 3.6rem;
  min-height: 1.45rem;
  padding: 0.16rem 0.3rem;
  border: 1px solid #cfddea;
  border-radius: 6px;
  background: #fbfdff;
  color: #12304d;
  font: inherit;
  text-align: right;
}

.chemrytiq-aem-dihedral-slider input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  height: 0.9rem;
  background: transparent;
  accent-color: #1f7ac5;
}

.chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border: 1px solid #c8d4df;
  border-radius: 999px;
  background: #edf3f8;
}

.chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 1px solid #1f7ac5;
  border-radius: 50%;
  background: #1f7ac5;
}

.chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-track {
  height: 4px;
  border: 1px solid #c8d4df;
  border-radius: 999px;
  background: #edf3f8;
}

.chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid #1f7ac5;
  border-radius: 50%;
  background: #1f7ac5;
}

.chemrytiq-aem-dihedral-meter {
  height: 0.58rem;
  border-radius: 999px;
  background: #e8f0f8;
  overflow: hidden;
}

.chemrytiq-aem-dihedral-meter > div {
  width: 0;
  height: 100%;
  background: #d45b33;
  transition: width 0.16s ease;
}

.chemrytiq-aem-dihedral-readout {
  min-height: 2.4rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.5rem;
  background: #fff;
  color: #52677d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.chemrytiq-aem-conformer-selector {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.chemrytiq-aem-conformer-table {
  display: grid;
  max-height: 22rem;
  overflow: auto;
  border: 1px solid #e0eaf4;
  border-radius: 0.55rem;
  background: #fbfdff;
}

.chemrytiq-aem-conformer-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 1rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.55rem;
  background: #fbfdff;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.chemrytiq-aem-conformer-row {
  display: grid;
  grid-template-columns: minmax(4.8rem, 0.85fr) minmax(4.6rem, 0.8fr) minmax(3.8rem, 0.65fr) minmax(4.8rem, 0.8fr);
  gap: 0.45rem;
  align-items: center;
  min-width: 22rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-bottom: 1px solid #e6eef7;
  background: #fff;
  color: #2d4962;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.chemrytiq-aem-conformer-row:last-child {
  border-bottom: 0;
}

.chemrytiq-aem-conformer-row--head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 2.25rem;
  background: #f0f6fc;
  color: #42607d;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: default;
}

.chemrytiq-aem-conformer-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-conformer-row.is-active {
  border-left: 0.28rem solid #1f7ac5;
  background: #ecf7ff;
  color: #12304d;
}

.chemrytiq-aem-conformer-row:not(.chemrytiq-aem-conformer-row--head):hover,
.chemrytiq-aem-conformer-row:not(.chemrytiq-aem-conformer-row--head):focus-visible {
  background: #f4faff;
}

.chemrytiq-aem-conformer-note {
  color: #52677d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.chemrytiq-aem-surface-panel {
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e5ef;
  border-radius: 0.65rem;
  background: #fbfdff;
}

.chemrytiq-aem-alignment-panel {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e5ef;
  border-radius: 0.65rem;
  background: #fbfdff;
}

.chemrytiq-aem-panel-help {
  max-width: 44rem;
  margin: 0;
  color: #445d73;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.42;
}

.chemrytiq-aem-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.chemrytiq-aem-alignment-note {
  color: #52677d;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.chemrytiq-aem-surface-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  align-items: center;
}

.chemrytiq-aem-toggle {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.48rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid #cfddea;
  border-radius: 999px;
  background: #fff;
  color: #31526d;
  font-size: 0.82rem;
  font-weight: 800;
}

.chemrytiq-aem-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #1f7ac5;
}

.chemrytiq-aem-esp-legend {
  display: grid;
  grid-template-columns: auto minmax(8rem, 16rem) auto;
  gap: 0.55rem;
  align-items: center;
  color: #52677d;
  font-size: 0.78rem;
  font-weight: 800;
}

.chemrytiq-aem-esp-legend i {
  display: block;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #123ce8 0%, #f7f8ff 50%, #df1f18 100%);
}

.chemrytiq-aem-surface-note {
  color: #52677d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.chemrytiq-aem-issue-drawer {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #fecaca;
  border-left: 0.35rem solid #ff1111;
  border-radius: 0.65rem;
  background: #fff7f7;
  color: #7f1d1d;
  box-shadow: none;
}

.chemrytiq-aem-issue-map {
  min-height: 8rem;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.chemrytiq-aem-issue-map svg {
  display: block;
  width: 100%;
  height: 10rem;
}

.chemrytiq-aem-issue-map line {
  stroke: #94a3b8;
  stroke-width: 2;
}

.chemrytiq-aem-issue-map circle {
  fill: #e2e8f0;
  stroke: #64748b;
  stroke-width: 1.4;
}

.chemrytiq-aem-issue-map circle.is-issue {
  fill: #ff1111;
  stroke: #7f1d1d;
  stroke-width: 2.2;
}

.chemrytiq-aem-issue-map text {
  fill: #334155;
  font-size: 0.58rem;
  font-weight: 800;
}

.chemrytiq-aem-issue-list {
  display: grid;
  gap: 0.55rem;
}

.chemrytiq-aem-issue-item {
  display: grid;
  gap: 0.22rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid #fed7aa;
  border-radius: 0.5rem;
  background: #fffaf0;
  line-height: 1.4;
}

.chemrytiq-aem-issue-item--error {
  border-color: #fecaca;
  background: #fff1f2;
}

.chemrytiq-aem-issue-item strong {
  color: #991b1b;
  font-size: 0.82rem;
}

.chemrytiq-aem-issue-item span {
  color: #7f1d1d;
  font-size: 0.84rem;
  font-weight: 800;
}

.chemrytiq-aem-esp-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.chemrytiq-aem-alert-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid #f6c768;
  border-radius: 0.6rem;
  background: #fff8e6;
  color: #73510b;
}

.chemrytiq-aem-alert-list h3 {
  margin: 0;
  font-size: 0.92rem;
}

.chemrytiq-aem-alert-list__item {
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.chemrytiq-aem-alert-action {
  justify-self: start;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e3a635;
  border-radius: 0.45rem;
  background: #fff;
  color: #73510b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.chemrytiq-aem-alert-action:hover,
.chemrytiq-aem-alert-action:focus-visible {
  border-color: #b87912;
  color: #4f3505;
}

.chemrytiq-aem-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0 0.7rem;
}

.chemrytiq-aem-progress {
  height: 0.6rem;
  margin: 0;
  border-radius: 999px;
  background: #e8f0f8;
  overflow: hidden;
}

.chemrytiq-aem-progress-bar {
  width: 0%;
  height: 100%;
  background: #1f7ac5;
  transition: width 0.18s ease;
}

.chemrytiq-aem-progress-label {
  min-width: 5.8rem;
  color: #445d73;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.chemrytiq-aem-readout {
  min-height: 3.2rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.6rem;
  background: #fbfdff;
  color: #52677d;
  line-height: 1.5;
}

.chemrytiq-aem-cache-badge {
  display: inline-flex;
  margin-left: 0.55rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid #bfe7cf;
  border-radius: 999px;
  background: #f0fdf5;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 900;
  vertical-align: middle;
}

.chemrytiq-aem-viewer-state {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 0.75rem;
  color: #52677d;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.chemrytiq-aem-viewer-state--loading {
  color: #1f5f99;
}

.chemrytiq-aem-viewer-state--error {
  color: #991b1b;
}

.chemrytiq-aem-graph {
  min-height: 20rem;
  padding: 0.85rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.6rem;
  background: #fbfdff;
}

.chemrytiq-aem-graph-panel {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.chemrytiq-aem-graph-empty {
  display: grid;
  min-height: 7.4rem;
  place-items: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.chemrytiq-aem-graph-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chemrytiq-aem-graph-svg line {
  stroke: #cbd9e7;
  stroke-width: 1.5;
}

.chemrytiq-aem-graph-svg path {
  fill: none;
  stroke: #1f7ac5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chemrytiq-aem-graph-point {
  fill: #1f7ac5;
  stroke: #ffffff;
  stroke-width: 1.4;
  cursor: pointer;
  transition: r 0.15s ease, fill 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.chemrytiq-aem-graph-point:hover,
.chemrytiq-aem-graph-point:focus {
  fill: #0f5f9f;
  outline: none;
  r: 6.5;
}

.chemrytiq-aem-graph-point.is-active {
  fill: #0b4f86;
  stroke: #ffb020;
  stroke-width: 3;
  r: 6.8;
}

.chemrytiq-aem-graph-svg text {
  fill: #52677d;
  font-size: 10.5px;
  font-weight: 700;
}

.chemrytiq-aem-report {
  margin-bottom: 1.5rem;
}

.chemrytiq-aem-empty {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  color: #52677d;
}

.chemrytiq-aem-empty strong {
  color: #143250;
  font-size: 1rem;
}

.chemrytiq-aem-empty ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.chemrytiq-aem-prerun {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
  gap: 1rem;
  align-items: stretch;
  max-width: none;
}

.chemrytiq-aem-prerun-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.chemrytiq-aem-prerun-preview {
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: 0.6rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrytiq-aem-prerun-copy strong {
  color: #143250;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.chemrytiq-aem-prerun-copy span,
.chemrytiq-aem-prerun-copy em {
  color: #52677d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.chemrytiq-aem-prerun-copy em {
  font-style: normal;
  color: #21425f;
}

.chemrytiq-aem-prerun-2d {
  display: grid;
  place-items: center;
  min-height: 9rem;
  width: 100%;
  overflow: hidden;
}

.chemrytiq-aem-prerun-2d svg {
  display: block;
  width: 100%;
  max-width: 17rem;
  max-height: 12rem;
  height: auto;
}

.chemrytiq-aem-prerun-2d-fallback {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
}

.chemrytiq-aem-prerun-2d-fallback code {
  display: block;
  max-width: 100%;
  padding: 0.65rem;
  overflow-x: auto;
  border: 1px solid #e0eaf4;
  border-radius: 8px;
  background: #f8fbff;
  color: #12304d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.chemrytiq-aem-prerun-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.chemrytiq-aem-prerun-source label,
.chemrytiq-aem-prerun-status {
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
}

.chemrytiq-aem-prerun-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  align-items: baseline;
  padding: 0.55rem 0.65rem;
}

.chemrytiq-aem-prerun-status strong {
  color: #143250;
  font-size: 0.82rem;
  font-weight: 800;
}

.chemrytiq-aem-prerun-status span {
  color: #52677d;
  font-size: 0.8rem;
  font-weight: 650;
}

.chemrytiq-aem-prerun-source label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.12rem 0.45rem;
  align-items: center;
  min-width: 0;
  padding: 0.46rem 0.55rem;
  color: #31526d;
  font-size: 0.82rem;
  font-weight: 850;
}

.chemrytiq-aem-prerun-source label:has(input:checked) {
  border-color: #1976d2;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.chemrytiq-aem-prerun-source input[type="radio"] {
  grid-row: 1 / span 2;
  margin: 0;
  accent-color: #1976d2;
}

.chemrytiq-aem-prerun-source input[type="text"] {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  padding: 0.26rem 0.4rem;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  background: #ffffff;
  color: #12304d;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
}

.chemrytiq-aem-prerun-source input[type="text"]::placeholder {
  color: #8aa0b5;
}

.chemrytiq-aem-prerun-source input[type="text"]:focus {
  border-color: #1976d2;
  outline: 2px solid rgba(25, 118, 210, 0.18);
  outline-offset: 0;
}

.chemrytiq-aem-prerun-source label.is-disabled {
  color: #8aa0b5;
  background: #f8fbfe;
  opacity: 0.72;
}

.chemrytiq-aem-prerun-source code {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #52677d;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-button {
  justify-self: start;
  width: auto;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 0.25rem;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-aem-empty [data-aem-start-job]:not(:disabled) {
  border-color: #1976d2;
  background: #1976d2;
  color: #ffffff;
}

.chemrytiq-page .chemrytiq-aem-empty [data-aem-start-job]:not(:disabled):hover {
  border-color: #0f5f9f;
  background: #0f5f9f;
  color: #ffffff;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-button:disabled {
  border-color: #cfddea;
  background: #eef3f8;
  color: #8aa0b5;
  opacity: 1;
}

.chemrytiq-aem-debug-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #f7fbff;
  color: #294866;
}

.chemrytiq-aem-debug-panel > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: baseline;
}

.chemrytiq-aem-debug-copy {
  min-height: 21px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid #1f6fb8;
  border-radius: 0.25rem;
  background: #fff;
  color: #175c9f;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.chemrytiq-aem-debug-copy:hover {
  background: #ecf7ff;
}

.chemrytiq-aem-debug-panel strong {
  color: #143250;
  font-size: 0.82rem;
  font-weight: 800;
}

.chemrytiq-aem-debug-panel span {
  color: #52677d;
  font-size: 0.76rem;
  font-weight: 650;
}

.chemrytiq-aem-debug-log {
  display: grid;
  gap: 0.32rem;
  max-height: 8.5rem;
  overflow: auto;
}

.chemrytiq-aem-debug-log div {
  display: grid;
  grid-template-columns: 5.7rem minmax(8rem, 0.72fr) minmax(10rem, 1fr);
  gap: 0.4rem;
  align-items: start;
  padding: 0.35rem 0.45rem;
  border: 1px solid #e0eaf4;
  border-radius: 6px;
  background: #fff;
}

.chemrytiq-aem-debug-log b,
.chemrytiq-aem-debug-log code {
  color: #31526d;
  font-size: 0.7rem;
  font-weight: 650;
}

.chemrytiq-aem-debug-log code {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytiq-aem-tab {
  display: grid;
  gap: 1rem;
}

.chemrytiq-aem-tab-hero {
  padding: 0.75rem 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: none;
}

.chemrytiq-aem-tab-hero h3 {
  margin: 0;
  color: #12304d;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.chemrytiq-aem-titlebar .chemrytiq-aem-kicker {
  flex: 0 0 auto;
}

.chemrytiq-aem-titlebar h3 {
  flex: 0 1 auto;
  min-width: min(16rem, 100%);
}

.chemrytiq-aem-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin: 0.35rem 0 0.45rem;
}

.chemrytiq-aem-action-row .chemrytiq-aem-button {
  min-height: 2.25rem;
  padding: 0.58rem 0.72rem;
  font-size: 0.84rem;
}

.chemrytiq-aem-output-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #d9e5f2;
  border-radius: 0.65rem;
  background: #f9fcff;
}

.chemrytiq-aem-output-row .chemrytiq-aem-button {
  min-height: 2.2rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}

.chemrytiq-aem-report-body {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chemrytiq-aem-analysis-card {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.chemrytiq-aem-analysis-card .chemrytiq-aem-panel-head {
  margin-bottom: 0;
}

.chemrytiq-aem-analysis-card .chemrytiq-aem-panel-head .chemrytiq-aem-chip {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.chemrytiq-aem-report-body--summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chemrytiq-aem-report-body--meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chemrytiq-aem-report-item {
  padding: 0.85rem;
  border: 1px solid #e0eaf4;
  border-radius: 0.65rem;
  background: #f9fcff;
}

.chemrytiq-aem-report-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #143250;
}

.chemrytiq-aem-code-block {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.chemrytiq-aem-code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #52677d;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytiq-aem-code-block__head button {
  min-height: 1.75rem;
  padding: 0.2rem 0.52rem;
  border: 1px solid #cfddea;
  border-radius: 6px;
  background: #fff;
  color: #155f99;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.chemrytiq-aem-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 0.62rem 0.7rem;
  overflow-x: auto;
  border: 1px solid #dfeaf4;
  border-radius: 8px;
  background: #f8fbff;
}

.chemrytiq-aem-code-block code {
  display: block;
  width: max-content;
  min-width: 100%;
  color: #12304d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre;
}

.chemrytiq-aem-strain-table,
.chemrytiq-aem-lifecycle-table {
  grid-column: 1 / -1;
  overflow-x: auto;
  padding: 0.9rem;
  border: 1px solid #d9e5f2;
  border-radius: 0.65rem;
  background: #fff;
}

.chemrytiq-aem-strain-table h3 {
  margin: 0 0 0.7rem;
  color: #143250;
  font-size: 1rem;
  font-weight: 800;
}

.chemrytiq-aem-strain-table table,
.chemrytiq-aem-lifecycle-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
  color: #334e67;
  font-size: 0.86rem;
}

.chemrytiq-aem-strain-table th,
.chemrytiq-aem-strain-table td,
.chemrytiq-aem-lifecycle-table th,
.chemrytiq-aem-lifecycle-table td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid #e2ebf4;
  text-align: left;
}

.chemrytiq-aem-strain-table thead th,
.chemrytiq-aem-lifecycle-table thead th {
  color: #143250;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chemrytiq-aem-strain-table tbody th,
.chemrytiq-aem-lifecycle-table tbody th {
  color: #143250;
}

.chemrytiq-aem-enum {
  margin: 1.1rem 0;
  padding: 0.85rem;
  border: 1px solid #d9e5f2;
  border-radius: 0.65rem;
  background: #fbfdff;
  color: #143250;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chemrytiq-aem-enum {
  display: none !important;
}

.chemrytiq-aem-enum *,
.chemrytiq-aem-enum *::before,
.chemrytiq-aem-enum *::after {
  font-family: inherit;
  letter-spacing: 0;
}

.chemrytiq-aem-enum .chemrytiq-aem-panel-head {
  align-items: center;
  gap: 0.8rem;
}

.chemrytiq-aem-enum .chemrytiq-aem-kicker {
  font-size: 0.72rem;
  font-weight: 900;
}

.chemrytiq-aem-enum .chemrytiq-aem-panel-head h2 {
  margin: 0.18rem 0 0;
  color: #143250;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.chemrytiq-aem-enum .chemrytiq-aem-label {
  color: #143250;
  font-size: 0.78rem;
  font-weight: 900;
}

.chemrytiq-aem-enum .chemrytiq-aem-button {
  font-size: 0.82rem;
  font-weight: 800;
}

.chemrytiq-aem-enum-layout {
  display: grid;
  grid-template-columns: minmax(17.5rem, 22.5rem) 1fr;
  gap: 1rem;
}

.chemrytiq-aem-enum-side,
.chemrytiq-aem-enum-main {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.chemrytiq-aem-enum-table th button,
.chemrytiq-aem-enum-card > button,
.chemrytiq-aem-enum-table td button {
  border: 1px solid #cfe0ef;
  border-radius: 0.45rem;
  background: #fff;
  color: #21425f;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.chemrytiq-aem-enum-inline {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: #36516b;
  font-size: 0.82rem;
  font-weight: 800;
}

.chemrytiq-aem-enum-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.chemrytiq-aem-enum-button-row .chemrytiq-aem-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.chemrytiq-aem-enum-help,
.chemrytiq-aem-enum-source {
  padding: 0.72rem;
  border: 1px solid #d7e4f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #36516b;
}

.chemrytiq-aem-enum-help {
  display: grid;
  gap: 0.35rem;
}

.chemrytiq-aem-enum-help strong {
  color: #143250;
  font-size: 0.9rem;
  font-weight: 900;
}

.chemrytiq-aem-enum-help span {
  color: #36516b;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.chemrytiq-aem-enum-help code,
.chemrytiq-aem-enum-source {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.chemrytiq-aem-enum .chemrytiq-aem-textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.83rem;
  font-weight: 600;
}

.chemrytiq-aem-enum-library {
  display: grid;
  gap: 0.65rem;
  max-height: 16.25rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.chemrytiq-aem-enum-library fieldset {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid #d7e4f0;
  border-radius: 0.5rem;
  background: #fff;
}

.chemrytiq-aem-enum-library legend {
  padding: 0 0.35rem;
  color: #143250;
  font-size: 0.78rem;
  font-weight: 900;
}

.chemrytiq-aem-enum-library label {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.45rem;
  align-items: center;
  margin: 0.35rem 0;
  color: #36516b;
  font-size: 0.82rem;
  font-weight: 700;
}

.chemrytiq-aem-enum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.6rem, 1fr));
  gap: 0.65rem;
  min-height: 10rem;
}

.chemrytiq-aem-enum-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 10rem;
  place-items: center;
  border: 1px dashed #b8cad9;
  border-radius: 0.5rem;
  color: #52677d;
  font-weight: 800;
}

.chemrytiq-aem-enum-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #d7e4f0;
  border-radius: 0.5rem;
  background: #fff;
  align-content: start;
}

.chemrytiq-aem-enum-card.is-starred {
  border-color: #d29a22;
}

.chemrytiq-aem-enum-card > button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.9rem;
  height: 1.9rem;
  color: #a06d00;
}

.chemrytiq-aem-enum-svg {
  display: grid;
  min-height: 9.4rem;
  place-items: center;
  overflow: hidden;
}

.chemrytiq-aem-enum-svg svg {
  max-width: 100%;
  height: auto;
}

.chemrytiq-aem-enum-card strong,
.chemrytiq-aem-enum-card small,
.chemrytiq-aem-enum-table td code,
.chemrytiq-aem-enum-table td small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chemrytiq-aem-enum-card strong {
  color: #263b50;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.chemrytiq-aem-enum-card small,
.chemrytiq-aem-enum-table td small {
  color: #64788d;
  font-size: 0.7rem;
  font-weight: 600;
}

.chemrytiq-aem-enum-table {
  overflow: auto;
}

.chemrytiq-aem-enum-table h3 {
  font-size: 0.98rem;
  font-weight: 900;
}

.chemrytiq-aem-enum-table th button {
  padding: 0.32rem 0.5rem;
}

.chemrytiq-aem-enum-table td code,
.chemrytiq-aem-enum-table td small {
  display: block;
  max-width: 22.5rem;
}

.chemrytiq-aem-enum-table td,
.chemrytiq-aem-enum-table th {
  font-size: 0.8rem;
}

.chemrytiq-aem-enum-table td code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.chemrytiq-page .chemrytiq-aem,
.chemrytiq-page .chemrytiq-aem-empty {
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.chemrytiq-page .chemrytiq-aem *,
.chemrytiq-page .chemrytiq-aem *::before,
.chemrytiq-page .chemrytiq-aem *::after,
.chemrytiq-page .chemrytiq-aem-empty *,
.chemrytiq-page .chemrytiq-aem-empty *::before,
.chemrytiq-page .chemrytiq-aem-empty *::after {
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: 0;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-tab-hero,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-selector,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-analysis-card,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-strain-table,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-lifecycle-table,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-issue-drawer {
  border-radius: 8px;
  box-shadow: none;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-tab-hero {
  padding: 0.85rem;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-selector,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-analysis-card,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-issue-drawer {
  gap: 0.62rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel-head {
  gap: 0.75rem;
  margin-bottom: 0.62rem;
  align-items: center;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero h1 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-selector h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-analysis-card h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-issue-drawer h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alert-list h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-strain-table h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-tab-hero h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum .chemrytiq-aem-panel-head h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-table h3 {
  margin: 0;
  color: #143250;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-kicker,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-small-label,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-cache-badge {
  font-size: 0.72rem;
  font-weight: 750;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero p,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel-head p,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-muted,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel-help,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-readout {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-link,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-action-row .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum .chemrytiq-aem-button {
  min-height: 21px;
  padding: 0 9px;
  border-radius: 0.25rem;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-button:disabled {
  border-color: #cfddea;
  background: #eef3f8;
  color: #8aa0b5;
  opacity: 1;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-control-row,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-action-row,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-row,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-bonds {
  gap: 0.45rem;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-chip,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-toggle {
  min-height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-toggle input {
  width: 0.9rem;
  height: 0.9rem;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider {
  gap: 0.3rem;
  padding: 0.45rem 0.55rem !important;
  font-size: 0.74rem;
  font-weight: 500;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-readout,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-readout {
  min-height: auto;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-esp-legend {
  grid-template-columns: auto minmax(7rem, 15rem) auto;
  justify-content: start;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-esp-legend i {
  height: 0.5rem;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-report-item,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-card,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-library fieldset,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-help,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-source,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-row {
  border-radius: 8px;
}

/* Scientific UI rule copied from PolyPred: compact chrome, readable data. */
.chemrytiq-page .chemrytiq-aem,
.chemrytiq-page .chemrytiq-aem-empty {
  color: #526176 !important;
  font-family: inherit !important;
  font-size: 0.84rem !important;
  line-height: 1.42 !important;
}

.chemrytiq-page .chemrytiq-aem {
  display: grid !important;
  gap: 0.75rem !important;
  padding: 0.8rem !important;
  border: 1px solid #d7e4f0 !important;
  border-radius: 8px !important;
  background: #f7fbff !important;
}

.chemrytiq-page .chemrytiq-aem-empty {
  padding: 0.8rem !important;
  border: 1px solid #d7e4f0 !important;
  border-radius: 8px !important;
  background: #f7fbff !important;
}

.chemrytiq-page .chemrytiq-aem *,
.chemrytiq-page .chemrytiq-aem-empty * {
  letter-spacing: 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-tab-hero,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-selector,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-analysis-card,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-strain-table,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-lifecycle-table,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-issue-drawer {
  border: 1px solid #d7e4f0 !important;
  background: #fbfdff !important;
  padding: 0.65rem !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-molecule-card,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-forcefield-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-performance-alert,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-readout,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-report-item,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-viewer,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-panel {
  border: 1px solid #d7e4f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row {
  gap: 0 !important;
  padding: 0.65rem !important;
  border: 1px solid #d7e4f0 !important;
  border-radius: 8px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-conformer-selector {
  height: 19.5rem !important;
  min-height: 19.5rem !important;
  max-height: 19.5rem !important;
  margin-top: 0 !important;
  padding: 0.4rem 0.65rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel {
  border-right: 1px solid #d7e4f0 !important;
  padding-left: 0.2rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row--single .chemrytiq-aem-graph-panel,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row--single .chemrytiq-aem-conformer-selector {
  border-right: 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph {
  padding: 0.2rem 0.25rem 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  max-width: none !important;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-preview {
  display: grid !important;
  min-height: 9rem !important;
  place-items: center !important;
  padding: 0.6rem !important;
  border: 1px solid #d7e4f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-2d {
  min-height: 9rem !important;
  width: 100% !important;
}

.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-2d svg {
  width: 100% !important;
  max-width: 17rem !important;
  max-height: 12rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options {
  padding: 0.65rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-graph-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-selector h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-panel h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-analysis-card h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-issue-drawer h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alert-list h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-strain-table h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-tab-hero h3,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum .chemrytiq-aem-panel-head h2,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum-table h3,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-copy > strong {
  margin: 0 !important;
  color: #12304d !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-molecule-card strong,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-report-item strong,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-panel strong,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-debug-panel strong {
  color: #12304d !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider span {
  color: #12304d !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider-head label {
  color: #52677d !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider-head input[type="number"] {
  width: 3.4rem !important;
  min-height: 1.4rem !important;
  padding: 0.12rem 0.28rem !important;
  border-radius: 5px !important;
  color: #12304d !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider input[type="range"] {
  height: 0.8rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-thumb {
  width: 12px !important;
  height: 12px !important;
  margin-top: -5px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-track {
  height: 4px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-thumb {
  width: 12px !important;
  height: 12px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-kicker,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-small-label,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-cache-badge,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options label > span,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel-head span,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-report-item small,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-source code,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-log b {
  color: #445d73 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-hero p,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-panel-head p,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-muted,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-alignment-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-forcefield-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-performance-alert,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-conformer-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-readout,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-copy span,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-copy em,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-panel span {
  color: #445d73 !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options {
  grid-template-columns: minmax(12rem, 1.1fr) minmax(7rem, 0.7fr) minmax(7rem, 0.7fr) minmax(10rem, 1fr) !important;
  gap: 0.55rem !important;
  margin-top: 0.65rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options label {
  gap: 0.28rem !important;
  min-width: 0 !important;
  color: #445d73 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options input,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-options select,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-textarea,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum .chemrytiq-aem-textarea {
  min-height: 31px !important;
  padding: 0.35rem 0.55rem !important;
  border: 1px solid #cfe0ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #445d73 !important;
  font: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-forcefield-note,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-performance-alert,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-readout,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-readout {
  padding: 0.55rem 0.7rem !important;
  border-left-width: 2px !important;
  border-radius: 8px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-progress-row {
  gap: 0.45rem !important;
  margin: 0.55rem 0 0.35rem !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-progress {
  height: 0.42rem !important;
  margin: 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-progress-label {
  min-width: 5.2rem !important;
  color: #445d73 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-action-row,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-surface-row,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-bonds {
  gap: 0.45rem !important;
  margin: 0.55rem 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-link,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-action-row .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-enum .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-button,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-copy,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-debug-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 21px !important;
  height: 21px !important;
  margin-top: 0 !important;
  padding: 0 0.55rem !important;
  border: 1px solid #bfd7ee !important;
  border-radius: 7px !important;
  background: #eef6ff !important;
  color: #0f5f9f !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-link:hover,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-button:hover,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-debug-copy:hover,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-button:hover,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-debug-copy:hover {
  border-color: #7db6e8 !important;
  background: #dceeff !important;
  color: #0f5f9f !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-button:disabled,
.chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-button:disabled {
  border-color: #cfddea !important;
  background: #eef3f8 !important;
  color: #8aa0b5 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-chip,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 20px !important;
  height: 20px !important;
  padding: 0 7px !important;
  border: 1px solid #bfd7ee !important;
  border-radius: 999px !important;
  background: #f7fbff !important;
  color: #0f5f9f !important;
  font: inherit !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-toggle {
  gap: 5px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-toggle input {
  width: 11px !important;
  height: 11px !important;
  margin: 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-bond {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border: 1px solid #c7d9ea !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #31526d !important;
  font: inherit !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-bond.is-active {
  border-color: #7db6e8 !important;
  background: #eef7ff !important;
  color: #155f99 !important;
}

/* Final ChemrytIQ-native normalization for local dihedral controls. */
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-bonds {
  gap: 0.45rem !important;
  margin: 0.55rem 0 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel button.chemrytiq-aem-dihedral-bond {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 0 !important;
  min-height: 21px !important;
  height: 21px !important;
  margin: 0 !important;
  padding: 0 0.55rem !important;
  border: 1px solid #bfd7ee !important;
  border-radius: 7px !important;
  background: #eef6ff !important;
  color: #0f5f9f !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transform: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel button.chemrytiq-aem-dihedral-bond:hover,
.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel button.chemrytiq-aem-dihedral-bond:focus-visible {
  border-color: #7db6e8 !important;
  background: #dceeff !important;
  color: #0f5f9f !important;
  transform: none !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel button.chemrytiq-aem-dihedral-bond.is-active {
  border-color: #7db6e8 !important;
  background: #dceeff !important;
  color: #0f5f9f !important;
  font-weight: 800 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider {
  gap: 0.25rem !important;
  padding: 0.42rem 0.55rem !important;
  border-color: #d7e4f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider-head span {
  color: #0f172a !important;
  font-size: 0.76rem !important;
  font-weight: 550 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider input[type="range"] {
  height: 10px !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px !important;
  border: 0 !important;
  background: #cbd5e1 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider input[type="range"]::-webkit-slider-thumb {
  width: 10px !important;
  height: 10px !important;
  margin-top: -3.5px !important;
  border: 1px solid #1f7ac5 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-track {
  height: 3px !important;
  border: 0 !important;
  background: #cbd5e1 !important;
}

.chemrytiq-page .chemrytiq-aem .chemrytiq-aem-dihedral-panel .chemrytiq-aem-dihedral-slider input[type="range"]::-moz-range-thumb {
  width: 10px !important;
  height: 10px !important;
  border: 1px solid #1f7ac5 !important;
}

@media (max-width: 900px) {
  .chemrytiq-aem-hero,
  .chemrytiq-aem-panel-head {
    display: grid;
  }

  .chemrytiq-aem-grid,
  .chemrytiq-aem-view-grid,
  .chemrytiq-aem-main-split,
  .chemrytiq-aem-tool-grid,
  .chemrytiq-aem-metrics-conformer-row,
  .chemrytiq-aem-report-body,
  .chemrytiq-aem-enum-layout,
  .chemrytiq-aem-prerun {
    grid-template-columns: 1fr;
  }

  .chemrytiq-aem-control-column .chemrytiq-aem-options,
  .chemrytiq-aem-control-column .chemrytiq-aem-report-body,
  .chemrytiq-aem-report-body--summary,
  .chemrytiq-aem-report-body--meta,
  .chemrytiq-aem-engine-params {
    grid-template-columns: 1fr;
  }

  .chemrytiq-aem-viewer-card .chemrytiq-aem-viewer {
    height: clamp(20rem, 48vh, 28rem);
  }

  .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel {
    border-right: 0;
    border-bottom: 1px solid #d7e4f0;
    padding-bottom: 0.85rem;
  }

  .chemrytiq-page .chemrytiq-aem .chemrytiq-aem-metrics-conformer-row .chemrytiq-aem-graph-panel {
    border-right: 0 !important;
    border-bottom: 1px solid #d7e4f0 !important;
    padding-bottom: 0.85rem !important;
  }

  .chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun {
    grid-template-columns: 1fr !important;
  }

  .chemrytiq-aem-prerun-2d,
  .chemrytiq-page .chemrytiq-aem-empty .chemrytiq-aem-prerun-2d {
    min-height: 9rem !important;
  }

  .chemrytiq-aem-molecule-card {
    grid-template-columns: 1fr;
  }

  .chemrytiq-aem-enum-button-row {
    grid-template-columns: 1fr;
  }

  .chemrytiq-aem-debug-log div {
    grid-template-columns: 1fr;
  }
}
