/* Copyright Chemryt Informatics Private Limited */
/* ChemrytFCM scientific UI rule: keep molecule controls compact so structures, identities, and measured values stay visually primary. */
:root {
  --chemrytfcm-ink: var(--chemrytiq-text, #12304d);
  --chemrytfcm-muted: var(--chemrytiq-text-soft, #445d73);
  --chemrytfcm-soft-muted: var(--chemrytiq-text-muted, #6f8498);
  --chemrytfcm-line: var(--chemrytiq-border, #d7e3ef);
  --chemrytfcm-line-strong: var(--chemrytiq-border-strong, #c5d4e5);
  --chemrytfcm-panel: var(--chemrytiq-surface, #ffffff);
  --chemrytfcm-soft: var(--chemrytiq-surface-soft, #f7fbff);
  --chemrytfcm-blue: #1976d2;
  --chemrytfcm-blue-soft: #eef6ff;
  --chemrytfcm-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --chemrytfcm-page-max: 1120px;
  /* Important ChemrytLabs layout note:
     Shared header content is inside Bootstrap's header.main > .container, while
     module pages often sit outside that container. Do not use width: 100vw,
     calc(100% - npx), or arbitrary left/right margins for module shells; those
     drift against the logo because scrollbars and Bootstrap gutters change the
     effective right edge. Measure the Chemryt logo/header content line in JS and
     set these variables so module panels align with the Chemryt logo/header. Use
     the trim variable only for small visual border/rounding corrections. */
  --chemrytfcm-align-left: max(15px, calc((100vw - 1170px) / 2));
  --chemrytfcm-align-right: max(15px, calc((100vw - 1170px) / 2));
  --chemrytfcm-align-width: min(1170px, calc(100vw - var(--chemrytfcm-align-left) - var(--chemrytfcm-align-right)));
  --chemrytfcm-align-trim: 3px;
  --chemrytfcm-weight-regular: 400;
  --chemrytfcm-weight-medium: 500;
  --chemrytfcm-weight-semibold: 600;
  --chemrytfcm-weight-heading: 700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #f3f7fb;
  color: var(--chemrytfcm-ink);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.chemrytfcm-shell {
  /* Keep this shell tied to --chemrytfcm-align-* from the measured header logo/content line. */
  box-sizing: border-box;
  width: calc(var(--chemrytfcm-align-width) - var(--chemrytfcm-align-trim)) !important;
  max-width: none !important;
  margin: 1.25rem auto 3rem var(--chemrytfcm-align-left) !important;
  padding-inline: 0 !important;
  overflow-x: clip;
}

header.main .logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
}

header.main .logo img {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
}

.chemryt-module-navbar .chemryt-module-navbar__list {
  box-sizing: border-box;
  width: calc(var(--chemrytfcm-align-width) - var(--chemrytfcm-align-trim)) !important;
  max-width: none !important;
  margin-left: var(--chemrytfcm-align-left) !important;
  margin-right: auto !important;
  padding-inline: 0 !important;
}

.chemrytfcm-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  margin: 0 auto;
  padding: 0 0 24px;
}

.chemrytfcm-topbar,
.chemrytfcm-workbench {
  width: 100%;
  margin: 0 auto 12px;
}

.chemrytfcm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(13, 65, 98, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(12, 54, 88, 0.95), rgba(32, 110, 136, 0.92)),
    linear-gradient(120deg, #0e334d, #1f6c86);
  box-shadow: 0 18px 40px rgba(20, 46, 67, 0.08);
  color: #f5fbff;
  padding: 12px 16px;
}

.chemrytfcm-kicker {
  display: block;
  margin-bottom: 3px;
  color: rgba(226, 244, 255, 0.86);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.chemrytfcm-page h1,
.chemrytfcm-page h2,
.chemrytfcm-page h3,
.chemrytfcm-page p {
  margin: 0;
}

.chemrytfcm-page h1 {
  color: #f5fbff !important;
  font-size: 20px !important;
  font-weight: var(--chemrytfcm-weight-heading) !important;
  line-height: 1.15 !important;
  letter-spacing: 0;
}

.chemrytfcm-page h2 {
  color: var(--chemrytfcm-ink);
  font-size: 13px !important;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.2 !important;
}

.chemrytfcm-page p {
  color: var(--chemrytfcm-muted);
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.chemrytfcm-topbar p {
  max-width: 680px;
  color: rgba(233, 245, 255, 0.84) !important;
  font-size: 12px !important;
}

.chemrytfcm-workbench {
  display: grid;
  gap: 12px;
}

.chemrytfcm-editor-panel,
.chemrytfcm-panel {
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: var(--chemrytfcm-panel);
  box-shadow: var(--chemrytfcm-shadow);
  padding: 10px;
}

.chemrytfcm-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.chemrytfcm-panel-head > span {
  flex: 0 0 auto;
  color: var(--chemrytfcm-muted);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.25;
}

.chemrytfcm-panel-smiles {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--chemrytfcm-weight-regular);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--chemrytfcm-muted);
  margin: 2px 0 4px;
}

.chemrytfcm-panel-smiles-label {
  flex: 0 0 auto;
  font-weight: var(--chemrytfcm-weight-medium);
}

.chemrytfcm-panel-smiles-value {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.chemrytfcm-loader-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: -2px 0 8px;
}

.chemrytfcm-loader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.chemrytfcm-loader-actions .chemrytfcm-molecule-mode {
  flex: 0 0 auto;
  margin-left: auto;
}

.chemrytfcm-loader-actions .chemrytfcm-view-toggle {
  flex: 0 0 auto;
  margin-left: 2px;
}

.chemrytfcm-page button {
  min-height: 30px;
  border: 1px solid #bad2e8;
  border-radius: 7px;
  background: #f8fbfe;
  color: var(--chemrytfcm-blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chemrytfcm-page button:hover {
  border-color: var(--chemrytfcm-blue);
  background: var(--chemrytfcm-blue-soft);
}

.chemrytfcm-page button.primary {
  border-color: var(--chemrytfcm-blue);
  background: var(--chemrytfcm-blue);
  color: #ffffff;
}

.chemrytfcm-loader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.chemrytfcm-structure-viewer {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.chemrytfcm-molecule-info {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 300px;
  height: 300px;
  overflow: auto;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px;
}

.chemrytfcm-info-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e1ebf3;
  padding-bottom: 7px;
}

.chemrytfcm-info-head strong {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.2;
}

.chemrytfcm-info-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--chemrytfcm-soft-muted);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-regular);
  line-height: 1.2;
  white-space: nowrap;
}

.chemrytfcm-loader-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.chemrytfcm-loader-fields .wide {
  grid-column: 1 / -1;
}

.chemrytfcm-loader-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--chemrytfcm-muted);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.2;
}

.chemrytfcm-loader-fields input {
  min-width: 0;
  min-height: 30px;
  width: 100%;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-regular);
  padding: 0 9px;
}

.chemrytfcm-loader-fields input[readonly],
.chemrytfcm-loader-fields .chemrytfcm-readonly-output {
  border-color: #dbe6f0;
  background: linear-gradient(180deg, #f8fbfe, #f2f6fa);
  color: #254762;
  box-shadow: inset 3px 0 0 rgba(25, 118, 210, 0.18);
  cursor: default;
}

.chemrytfcm-loader-fields input[readonly]:focus {
  outline: none;
  border-color: #dbe6f0;
  box-shadow: inset 3px 0 0 rgba(25, 118, 210, 0.18);
}

.chemrytfcm-resolved-name {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  width: 100%;
  border: 1px solid #dbe6f0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-regular);
  padding: 0 9px;
  box-sizing: border-box;
}

.chemrytfcm-molecule-mode {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.chemrytfcm-molecule-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: fit-content;
  min-height: 30px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.15;
  padding: 0 10px;
  white-space: nowrap;
}

.chemrytfcm-molecule-mode input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  accent-color: var(--chemrytfcm-blue);
}

.chemrytfcm-molecule-mode label:has(input:checked) {
  border-color: #9bc5e6;
  background: var(--chemrytfcm-blue-soft);
  color: #145074;
}

.chemrytfcm-dropzone {
  display: grid;
  gap: 5px;
  min-height: 64px;
  border: 1px dashed #9fc4df;
  border-radius: 7px;
  background: #f4f9fd;
  color: var(--chemrytfcm-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.2;
  padding: 7px;
}

.chemrytfcm-dropzone strong {
  color: #145074;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-dropzone input {
  width: 100%;
  min-height: 0;
  height: auto;
  font-size: 10px;
}

.chemrytfcm-dropzone.is-over {
  border-color: var(--chemrytfcm-blue);
  background: var(--chemrytfcm-blue-soft);
}

.chemrytfcm-dropzone[hidden] {
  display: none !important;
}

.chemrytfcm-blueprint-panel {
  margin-top: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: var(--chemrytfcm-soft);
  padding: 8px;
}

.chemrytfcm-blueprint-panel[hidden] {
  display: none !important;
}

.chemrytfcm-blueprint-panel label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.chemrytfcm-blueprint-panel label span {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-mixture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.chemrytfcm-mixture-head strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-page .chemrytfcm-mixture-head button {
  min-height: 23px !important;
  height: 23px !important;
  font-size: 10px !important;
}

.chemrytfcm-mixture-table {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chemrytfcm-mixture-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(120px, 1.2fr) minmax(58px, 0.45fr) minmax(120px, 1.1fr);
  gap: 4px;
  min-width: 0;
}

.chemrytfcm-mixture-row-head {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-blueprint-panel .chemrytfcm-mixture-row input {
  min-width: 0;
  min-height: 24px !important;
  height: 24px !important;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 5px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  font-size: 10px !important;
  padding: 0 6px !important;
}

.chemrytfcm-blueprint-panel textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.chemrytfcm-blueprint-panel p {
  margin-top: 5px;
}

.chemrytfcm-stale-structure-warning {
  grid-column: 1 / -1;
  border: 1px solid #f2c16d;
  border-left: 4px solid #c96b00;
  border-radius: 8px;
  background: #fff8e7;
  padding: 9px 10px;
}

.chemrytfcm-stale-structure-warning strong {
  display: block;
  color: #7a3f00;
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
  margin-bottom: 3px;
}

.chemrytfcm-stale-structure-warning p {
  color: #6b4a19 !important;
  font-size: 11px !important;
}

.chemrytfcm-structure-relevance-panel.is-stale > .chemrytfcm-decision-grid,
.chemrytfcm-structure-relevance-panel.is-stale > .chemrytfcm-req-card {
  opacity: 0.46;
  filter: grayscale(0.25);
}

.chemrytfcm-loader-readouts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.chemrytfcm-loader-readouts > div:not(.chemrytfcm-prediction-actions),
.chemrytfcm-prediction-actions {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 7px;
}

.chemrytfcm-loader-readouts .chemrytfcm-scientist-gates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 7px;
}

.chemrytfcm-loader-readouts dt,
.chemrytfcm-loader-readouts dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

.chemrytfcm-loader-readouts dt {
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-medium);
}

.chemrytfcm-loader-readouts dd {
  color: var(--chemrytfcm-ink);
  font-weight: var(--chemrytfcm-weight-regular);
  word-break: break-word;
}

.chemrytfcm-prediction-actions {
  grid-template-columns: 1fr;
  min-width: 0;
}

.chemrytfcm-prediction-actions > span {
  display: none;
}

.chemrytfcm-inline-prediction {
  grid-column: 1;
  justify-self: start;
  min-width: 112px !important;
}

.chemrytfcm-plant-command {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.chemrytfcm-plant-command-head,
.chemrytfcm-plant-command-foot,
.chemrytfcm-plant-profile > div,
.chemrytfcm-plant-decision > div,
.chemrytfcm-plant-remediation > div,
.chemrytfcm-plant-formulation > div,
.chemrytfcm-plant-benchmark-head,
.chemrytfcm-plant-sandbox-head,
.chemrytfcm-plant-crop-head,
.chemrytfcm-plant-crop-summary,
.chemrytfcm-plant-climate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chemrytfcm-plant-command strong,
.chemrytfcm-plant-profile b {
  color: var(--chemrytfcm-ink);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-plant-command span,
.chemrytfcm-plant-profile p,
.chemrytfcm-plant-profile li,
.chemrytfcm-plant-decision td,
.chemrytfcm-plant-decision th,
.chemrytfcm-plant-remediation p,
.chemrytfcm-plant-remediation td,
.chemrytfcm-plant-remediation th,
.chemrytfcm-plant-formulation p,
.chemrytfcm-plant-formulation td,
.chemrytfcm-plant-formulation th,
.chemrytfcm-plant-benchmark p,
.chemrytfcm-plant-benchmark label,
.chemrytfcm-plant-sandbox p,
.chemrytfcm-plant-sandbox td,
.chemrytfcm-plant-sandbox th,
.chemrytfcm-plant-sandbox small,
.chemrytfcm-plant-crop p,
.chemrytfcm-plant-crop td,
.chemrytfcm-plant-crop th,
.chemrytfcm-plant-climate label,
.chemrytfcm-plant-climate small {
  color: var(--chemrytfcm-muted);
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.chemrytfcm-plant-command mark {
  flex: 0 0 auto;
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 4px 7px;
}

.chemrytfcm-plant-command mark.pass {
  background: #dff7ed;
  color: #0d7a56;
}

.chemrytfcm-plant-command mark.warn {
  background: #fff4d5;
  color: #8a5b00;
}

.chemrytfcm-plant-command mark.risk {
  background: #ffe0e0;
  color: #a32d2d;
}

.chemrytfcm-plant-profile,
.chemrytfcm-plant-decision,
.chemrytfcm-plant-remediation,
.chemrytfcm-plant-formulation,
.chemrytfcm-plant-benchmark,
.chemrytfcm-plant-sandbox,
.chemrytfcm-plant-crop,
.chemrytfcm-plant-climate {
  display: grid;
  gap: 8px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #ffffff;
  padding: 9px;
}

.chemrytfcm-plant-profile p,
.chemrytfcm-plant-profile ul,
.chemrytfcm-plant-remediation p,
.chemrytfcm-plant-formulation p,
.chemrytfcm-plant-benchmark p,
.chemrytfcm-plant-sandbox p,
.chemrytfcm-plant-crop p {
  margin: 0;
}

.chemrytfcm-plant-profile ul {
  display: grid;
  gap: 5px;
  padding-left: 16px;
}

.chemrytfcm-plant-decision table,
.chemrytfcm-plant-remediation table,
.chemrytfcm-plant-formulation table,
.chemrytfcm-plant-sandbox table,
.chemrytfcm-plant-crop table {
  width: 100%;
  border-collapse: collapse;
}

.chemrytfcm-plant-decision th,
.chemrytfcm-plant-decision td,
.chemrytfcm-plant-remediation th,
.chemrytfcm-plant-remediation td,
.chemrytfcm-plant-formulation th,
.chemrytfcm-plant-formulation td,
.chemrytfcm-plant-sandbox th,
.chemrytfcm-plant-sandbox td,
.chemrytfcm-plant-crop th,
.chemrytfcm-plant-crop td {
  border-top: 1px solid #e8f0f7;
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-fit-bar {
  display: inline-flex;
  width: 56px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f7;
  vertical-align: middle;
}

.chemrytfcm-fit-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1976d2;
}

.chemrytfcm-plant-formulation td b {
  margin-left: 6px;
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-plant-sandbox-head label,
.chemrytfcm-plant-benchmark-head label,
.chemrytfcm-plant-crop-head label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-medium);
}

.chemrytfcm-plant-sandbox-head select,
.chemrytfcm-plant-benchmark-head select,
.chemrytfcm-plant-crop-head select {
  min-height: 28px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  padding: 0 7px;
}

.chemrytfcm-benchmark-button {
  justify-self: start;
  min-width: 190px !important;
}

.chemrytfcm-plant-benchmark-output {
  display: grid;
  gap: 7px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 8px;
}

.chemrytfcm-plant-benchmark-output[hidden] {
  display: none !important;
}

.chemrytfcm-plant-benchmark-output svg {
  display: block;
  width: 100%;
  height: 132px;
}

.chemrytfcm-plant-benchmark-output line {
  stroke: #b9cadd;
  stroke-width: 1;
}

.chemrytfcm-plant-benchmark-output polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chemrytfcm-plant-benchmark-output polyline.current {
  stroke: #1976d2;
}

.chemrytfcm-plant-benchmark-output polyline.standard {
  stroke: #0d7a56;
  stroke-dasharray: 5 4;
}

.chemrytfcm-plant-benchmark-output text {
  fill: var(--chemrytfcm-muted);
  font-size: 10px;
}

.chemrytfcm-benchmark-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chemrytfcm-benchmark-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chemrytfcm-benchmark-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.chemrytfcm-benchmark-legend i.current {
  background: #1976d2;
}

.chemrytfcm-benchmark-legend i.standard {
  background: #0d7a56;
}

.chemrytfcm-plant-sandbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chemrytfcm-plant-sandbox-grid > div {
  display: grid;
  gap: 3px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 8px;
}

.chemrytfcm-plant-sandbox-grid strong {
  font-size: 12px;
  line-height: 1;
}

.chemrytfcm-plant-sandbox tr.better td:last-child {
  color: #0d7a56;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-plant-sandbox tr.worse td:last-child {
  color: #a32d2d;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-plant-sandbox tr.flat td:last-child {
  color: var(--chemrytfcm-muted);
}

.chemrytfcm-plant-crop-summary {
  align-items: start;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 8px;
}

.chemrytfcm-plant-crop-summary mark {
  flex: 0 0 auto;
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 4px 7px;
}

.chemrytfcm-plant-crop-summary mark.pass {
  background: #dff7ed;
  color: #0d7a56;
}

.chemrytfcm-plant-crop-summary mark.warn {
  background: #fff4d5;
  color: #8a5b00;
}

.chemrytfcm-plant-crop-summary mark.risk {
  background: #ffe0e0;
  color: #a32d2d;
}

.chemrytfcm-plant-climate-head mark {
  flex: 0 0 auto;
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 4px 7px;
}

.chemrytfcm-plant-climate-head mark.pass {
  background: #dff7ed;
  color: #0d7a56;
}

.chemrytfcm-plant-climate-head mark.warn {
  background: #fff4d5;
  color: #8a5b00;
}

.chemrytfcm-plant-climate-head mark.risk {
  background: #ffe0e0;
  color: #a32d2d;
}

.chemrytfcm-plant-climate-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chemrytfcm-plant-climate-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.chemrytfcm-plant-climate-controls label span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chemrytfcm-plant-climate-controls input {
  width: 100%;
  accent-color: var(--chemrytfcm-blue);
}

.chemrytfcm-plant-climate-chart {
  min-height: 124px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 6px;
}

.chemrytfcm-plant-climate-chart svg {
  display: block;
  width: 100%;
  height: 124px;
}

.chemrytfcm-plant-climate-chart polyline {
  fill: none;
  stroke: #1976d2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chemrytfcm-plant-climate-chart line {
  stroke: #b9cadd;
  stroke-width: 1;
}

.chemrytfcm-plant-climate-chart circle {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 2;
}

.chemrytfcm-plant-climate-chart text {
  fill: var(--chemrytfcm-muted);
  font-size: 10px;
}

.chemrytfcm-plant-climate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chemrytfcm-plant-climate-grid > div {
  display: grid;
  gap: 3px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 8px;
}

.chemrytfcm-plant-climate-grid strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-plant-command-foot {
  border-top: 1px solid #e1ebf3;
  padding-top: 8px;
}

.chemrytfcm-rule-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 0;
}

.chemrytfcm-rule-list span,
.chemrytfcm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 22px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 7px;
  background: var(--chemrytfcm-soft);
  color: #31516c;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.15;
  padding: 0 7px;
  white-space: nowrap;
}

.chemrytfcm-editor-frame {
  position: relative;
  min-width: 0;
  min-height: 300px;
  height: 300px;
  overflow: hidden;
  border: 1px solid #c9dcea;
  border-radius: 8px;
  background: var(--chemrytfcm-soft);
}

.chemrytfcm-editor-frame.is-depict {
  cursor: pointer;
}

.chemrytfcm-editor-frame.is-depict::after {
  content: "Click structure to edit";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border: 1px solid #bad2e8;
  border-radius: 999px;
  background: rgba(248, 251, 254, 0.92);
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 5px 8px;
  pointer-events: none;
}

.chemrytfcm-editor-frame:focus,
.chemrytfcm-editor-frame:focus-visible,
.chemrytfcm-jsme:focus,
.chemrytfcm-jsme:focus-visible,
.chemrytfcm-jsme *:focus,
.chemrytfcm-jsme *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.chemrytfcm-view-toggle {
  justify-self: end;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #bad2e8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.chemrytfcm-view-toggle button {
  min-width: 34px !important;
  width: 34px !important;
  height: 24px !important;
  min-height: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #145074 !important;
  padding: 0 !important;
}

.chemrytfcm-view-toggle button + button {
  border-left: 1px solid #d7e3ef !important;
}

.chemrytfcm-view-toggle button.is-active {
  background: #1976d2 !important;
  color: #ffffff !important;
}

.chemrytfcm-jsme {
  width: 100%;
  max-width: 100%;
  min-height: 300px;
  height: 300px;
  overflow: hidden;
}

.chemrytfcm-jsme > *,
.chemrytfcm-jsme iframe,
.chemrytfcm-jsme table,
.chemrytfcm-jsme svg {
  border-color: transparent !important;
  outline: none !important;
  max-width: 100% !important;
}

.chemrytfcm-3d-viewer {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: 300px;
  background: #ffffff;
}

.chemrytfcm-3d-viewer[hidden] {
  display: none !important;
}

.chemrytfcm-3d-canvas {
  width: 100%;
  height: 100%;
}

.chemrytfcm-3d-viewer > span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  border: 1px solid #d7e3ef;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--chemrytfcm-muted);
  font-size: 10px !important;
  line-height: 1.2;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-2d-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.chemrytfcm-editor-frame.is-3d .chemrytfcm-2d-highlight-layer {
  display: none !important;
}

.chemrytfcm-alert-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.chemrytfcm-alert-highlight-box {
  position: absolute;
  border: 2px solid #c58a36;
  border-radius: 50%;
  background: rgba(197, 138, 54, 0.12);
  box-shadow: 0 0 0 4px rgba(197, 138, 54, 0.08);
}

.chemrytfcm-alert-highlight-box.metal {
  border-color: #b94f4f;
  background: rgba(185, 79, 79, 0.14);
  box-shadow: 0 0 0 4px rgba(185, 79, 79, 0.08);
}

.chemrytfcm-alert-highlight-box.aryl {
  border-color: #1976d2;
  background: rgba(25, 118, 210, 0.1);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.07);
}

.chemrytfcm-alert-highlight-box.amide {
  border-color: #2e7d57;
  background: rgba(46, 125, 87, 0.1);
  box-shadow: 0 0 0 4px rgba(46, 125, 87, 0.07);
}

.chemrytfcm-alert-highlight-box.ester {
  border-color: #b06a1f;
  background: rgba(176, 106, 31, 0.1);
  box-shadow: 0 0 0 4px rgba(176, 106, 31, 0.07);
}

.chemrytfcm-alert-highlight-layer strong,
.chemrytfcm-alert-highlight-layer em {
  position: absolute;
  left: 8px;
  max-width: min(360px, calc(100% - 16px));
  border: 1px solid var(--chemrytfcm-line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 6px;
}

.chemrytfcm-alert-highlight-layer strong {
  bottom: 30px;
  border-radius: 6px 6px 0 0;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-alert-highlight-layer em {
  bottom: 8px;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  color: var(--chemrytfcm-muted);
  font-style: normal;
}

.chemrytfcm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.chemrytfcm-metric-card {
  display: grid;
  gap: 3px;
  min-height: 44px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  padding: 7px 9px;
}

.chemrytfcm-metric-card span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.1;
  text-transform: uppercase;
}

.chemrytfcm-metric-card strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.2;
}

.chemrytfcm-requirement-tracker {
  margin: 0 0 12px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--chemrytfcm-shadow);
  padding: 10px;
}

.chemrytfcm-progress {
  position: relative;
  height: 6px;
  overflow: hidden;
  margin: -2px 0 9px;
  border-radius: 999px;
  background: #e8f0f8;
}

.chemrytfcm-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1976d2, #23a783);
  transition: width 180ms ease;
}

.chemrytfcm-progress.is-active .chemrytfcm-progress-bar {
  background: linear-gradient(90deg, #1976d2, #23a783, #1976d2);
  background-size: 180% 100%;
  animation: chemrytfcm-progress-pulse 1.2s linear infinite;
}

@keyframes chemrytfcm-progress-pulse {
  from { background-position: 0 0; }
  to { background-position: 180% 0; }
}

.chemrytfcm-requirement-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
}

.chemrytfcm-requirement-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}

.chemrytfcm-requirement-table th,
.chemrytfcm-requirement-table td {
  border-bottom: 1px solid #e8f0f8;
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  line-height: 1.3;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-requirement-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6fbff;
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-requirement-table th:nth-child(1),
.chemrytfcm-requirement-table td:nth-child(1) {
  width: 70px;
}

.chemrytfcm-requirement-table th:nth-child(2),
.chemrytfcm-requirement-table td:nth-child(2) {
  width: 170px;
}

.chemrytfcm-requirement-table th:nth-child(5),
.chemrytfcm-requirement-table td:nth-child(5),
.chemrytfcm-requirement-table th:nth-child(6),
.chemrytfcm-requirement-table td:nth-child(6) {
  width: 90px;
}

.chemrytfcm-requirement-table tbody tr {
  cursor: pointer;
}

.chemrytfcm-requirement-table tbody tr:hover {
  background: #f8fbfe;
}

.chemrytfcm-requirement-table td strong,
.chemrytfcm-requirement-table td span,
.chemrytfcm-requirement-table td small {
  display: block;
}

.chemrytfcm-requirement-table td small {
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
}

.chemrytfcm-requirement-table td {
  overflow-wrap: anywhere;
}

.chemrytfcm-requirement-table mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 0 7px;
  text-transform: capitalize;
}

.chemrytfcm-requirement-table tr.pass mark {
  background: #e9f8f0;
  color: #047857;
}

.chemrytfcm-requirement-table tr.warn mark {
  background: #fff4dc;
  color: #9a5b05;
}

.chemrytfcm-requirement-table tr.risk mark {
  background: #ffe8e6;
  color: #b91c1c;
}

.chemrytfcm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--chemrytfcm-shadow);
  padding: 6px;
}

.chemrytfcm-tabs button {
  min-width: 82px;
  min-height: 28px;
  border-color: #b9d5ea;
  border-radius: 6px;
  background: #ffffff;
  color: #145074;
  font-size: 11px;
}

.chemrytfcm-tabs button:hover,
.chemrytfcm-tabs button.is-active {
  border-color: #1976d2;
  background: #1976d2;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.chemrytfcm-panel {
  margin-bottom: 12px;
}

.chemrytfcm-card-grid {
  display: block;
  min-width: 0;
}

.chemrytfcm-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.chemrytfcm-decision-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-left: 4px solid #1976d2;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytfcm-decision-grid article.pass {
  border-left-color: #047857;
}

.chemrytfcm-decision-grid article.warn {
  border-left-color: #b45309;
}

.chemrytfcm-decision-grid article.risk {
  border-left-color: #b91c1c;
}

.chemrytfcm-decision-grid span,
.chemrytfcm-decision-grid strong,
.chemrytfcm-decision-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-decision-grid span {
  color: var(--chemrytfcm-muted);
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-decision-grid strong {
  color: var(--chemrytfcm-ink);
  font-size: 13px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.1;
}

.chemrytfcm-decision-grid small {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.2;
}

.chemrytfcm-decision-graph {
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytfcm-decision-graph svg {
  display: block;
  width: 100%;
  height: 116px;
}

.chemrytfcm-decision-graph line {
  stroke: #ef4444;
  stroke-dasharray: 5 4;
  stroke-width: 2;
}

.chemrytfcm-decision-graph polyline {
  fill: none;
  stroke: #1976d2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chemrytfcm-decision-graph text {
  fill: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-result-table-wrap {
  overflow: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
}

.chemrytfcm-result-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}

.chemrytfcm-result-table th,
.chemrytfcm-result-table td {
  border-bottom: 1px solid #e8f0f8;
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  line-height: 1.3;
  padding: 7px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.chemrytfcm-result-table th {
  background: #f6fbff;
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-result-table th:nth-child(1),
.chemrytfcm-result-table td:nth-child(1),
.chemrytfcm-result-table th:nth-child(4),
.chemrytfcm-result-table td:nth-child(4),
.chemrytfcm-result-table th:nth-child(5),
.chemrytfcm-result-table td:nth-child(5) {
  width: 88px;
}

.chemrytfcm-result-table td span,
.chemrytfcm-result-table td small {
  display: block;
}

.chemrytfcm-result-table td small {
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
}

.chemrytfcm-result-table tr.is-focused {
  outline: 3px solid rgba(25, 118, 210, 0.22);
  outline-offset: -3px;
}

.chemrytfcm-result-table mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 0 7px;
  text-transform: capitalize;
}

.chemrytfcm-result-table tr.pass mark {
  background: #e9f8f0;
  color: #047857;
}

.chemrytfcm-result-table tr.warn mark {
  background: #fff4dc;
  color: #9a5b05;
}

.chemrytfcm-result-table tr.risk mark {
  background: #ffe8e6;
  color: #b91c1c;
}

.chemrytfcm-doc-breakdown {
  overflow: hidden;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-doc-breakdown + .chemrytfcm-doc-breakdown,
.chemrytfcm-doc-breakdown + .chemrytfcm-req-card,
.chemrytfcm-decision-grid + .chemrytfcm-doc-breakdown {
  margin-top: 8px;
}

.chemrytfcm-doc-breakdown header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--chemrytfcm-line);
  background: #f7fbff;
  padding: 7px 9px;
}

.chemrytfcm-doc-breakdown h3 {
  margin: 0;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
}

.chemrytfcm-doc-breakdown p {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.chemrytfcm-doc-table-wrap {
  overflow-x: auto;
}

.chemrytfcm-doc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.chemrytfcm-doc-table th,
.chemrytfcm-doc-table td {
  border-bottom: 1px solid var(--chemrytfcm-line);
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  line-height: 1.28;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-doc-table th {
  background: #fbfdff;
  color: var(--chemrytfcm-ink);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-doc-table th:first-child,
.chemrytfcm-doc-table td:first-child {
  width: 26%;
}

.chemrytfcm-doc-table th:nth-child(3),
.chemrytfcm-doc-table td:nth-child(3),
.chemrytfcm-doc-table th:nth-child(5),
.chemrytfcm-doc-table td:nth-child(5) {
  width: 12%;
}

.chemrytfcm-doc-table strong,
.chemrytfcm-doc-table small {
  display: block;
}

.chemrytfcm-doc-table strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-doc-table small {
  margin-top: 2px;
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.2;
}

.chemrytfcm-doc-table tr.warn {
  background: rgba(180, 83, 9, 0.045);
}

.chemrytfcm-doc-table mark {
  display: inline-flex;
  min-width: 50px;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 5px 7px;
}

.chemrytfcm-doc-table mark.warn {
  background: #fff7ed;
  color: #b45309;
}

.chemrytfcm-doc-table mark.risk {
  background: #fef2f2;
  color: #b91c1c;
}

.chemrytfcm-ttc-workflow {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 4px solid #047857;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytfcm-ttc-workflow.warn {
  border-left-color: #b45309;
}

.chemrytfcm-ttc-workflow.risk {
  border-left-color: #b91c1c;
}

.chemrytfcm-ttc-workflow header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e8f0f8;
  padding-bottom: 7px;
}

.chemrytfcm-ttc-workflow h3 {
  margin: 0;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
}

.chemrytfcm-ttc-workflow p {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.chemrytfcm-testing-plan,
.chemrytfcm-doc-export {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 4px solid #1976d2;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytfcm-doc-export {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 8px;
}

.chemrytfcm-testing-plan header {
  border-bottom: 1px solid #e8f0f8;
  padding-bottom: 7px;
}

.chemrytfcm-testing-plan h3,
.chemrytfcm-doc-export h3 {
  margin: 0;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
}

.chemrytfcm-testing-plan p,
.chemrytfcm-doc-export p {
  margin: 2px 0 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.chemrytfcm-xai-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.chemrytfcm-structure-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.chemrytfcm-structure-info-panel {
  min-width: 0;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrytfcm-structure-info-panel h3 {
  margin: 0;
  border-bottom: 1px solid #e2edf6;
  background: #f8fbfe;
  color: #092d4a;
  font-size: 10px !important;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.1;
  padding: 8px 9px;
  text-transform: uppercase;
}

.chemrytfcm-registry-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 9px;
  border-bottom: 1px solid #e2edf6;
  background: #f8fbfe;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.35;
}

.chemrytfcm-registry-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8aa0b5;
}

.chemrytfcm-registry-progress.resolving .chemrytfcm-registry-dot {
  background: #1976d2;
  box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.38);
  animation: chemrytfcm-registry-pulse 1.1s ease-out infinite;
}

.chemrytfcm-registry-progress.resolved {
  background: #f2fbf7;
  color: #17613f;
}

.chemrytfcm-registry-progress.resolved .chemrytfcm-registry-dot {
  background: #23a783;
}

.chemrytfcm-registry-progress.unresolved,
.chemrytfcm-registry-progress.error {
  background: #fffaf0;
  color: #7b5618;
}

.chemrytfcm-registry-progress.unresolved .chemrytfcm-registry-dot,
.chemrytfcm-registry-progress.error .chemrytfcm-registry-dot {
  background: #d99018;
}

@keyframes chemrytfcm-registry-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.38); }
  100% { box-shadow: 0 0 0 8px rgba(25, 118, 210, 0); }
}

.chemrytfcm-structure-info-panel dl {
  display: grid;
  margin: 0;
}

.chemrytfcm-structure-info-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
}

.chemrytfcm-structure-info-row + .chemrytfcm-structure-info-row {
  border-top: 1px solid #e8f0f8;
}

.chemrytfcm-structure-info-row dt,
.chemrytfcm-structure-info-row dd {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

.chemrytfcm-structure-info-row dt {
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-structure-info-row dd {
  display: grid;
  gap: 2px;
}

.chemrytfcm-structure-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.chemrytfcm-structure-value:has(.chemrytfcm-alert-chip) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chemrytfcm-alert-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.chemrytfcm-alert-chip:hover,
.chemrytfcm-alert-chip:focus-visible {
  border-color: #9eb7d0;
  background: #eef6ff;
  outline: none;
}

.chemrytfcm-alert-cues {
  flex-basis: 100%;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.chemrytfcm-structure-info-row dd strong {
  display: block;
  min-width: 0;
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-regular);
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-structure-info-row dd .chemrytfcm-structure-value > span {
  grid-column: 1 / -1;
}

.chemrytfcm-copy-icon {
  position: relative;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  border-radius: 4px !important;
  padding: 0 !important;
}

.chemrytfcm-copy-icon::before,
.chemrytfcm-copy-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.chemrytfcm-copy-icon::before {
  left: 6px;
  top: 4px;
  background: #f8fbfe;
}

.chemrytfcm-copy-icon::after {
  left: 8px;
  top: 6px;
  background: #ffffff;
}

.chemrytfcm-structure-info-row dd span {
  color: var(--chemrytfcm-muted);
  font-size: 10px !important;
  line-height: 1.25;
}

.chemrytfcm-structure-relevance-panel {
  min-height: 0;
}

.chemrytfcm-xai-panel {
  min-width: 0;
  min-height: 214px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrytfcm-xai-panel h3 {
  margin: 0;
  border-bottom: 1px solid #e2edf6;
  background: #f8fbfe;
  color: #092d4a;
  font-size: 10px !important;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.1;
  padding: 8px 9px;
  text-transform: uppercase;
}

.chemrytfcm-xai-row {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 9px;
  cursor: pointer;
}

.chemrytfcm-xai-row + .chemrytfcm-xai-row {
  border-top: 1px solid #e8f0f8;
}

.chemrytfcm-xai-row.is-active {
  border-color: #0966c2;
  background: #eef7ff;
  padding-right: 62px;
  box-shadow: inset 4px 0 0 #0966c2, 0 0 0 2px rgba(9, 102, 194, 0.16);
}

.chemrytfcm-xai-row.is-active::after {
  content: "Active";
  position: absolute;
  top: 6px;
  right: 7px;
  border-radius: 999px;
  background: #0966c2;
  color: #ffffff;
  font-size: 8px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}

.chemrytfcm-xai-row:focus-visible {
  outline: 2px solid #0966c2;
  outline-offset: 2px;
}

.chemrytfcm-xai-row-main {
  display: grid;
  grid-template-columns: 8px 28px 16px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.chemrytfcm-xai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.chemrytfcm-xai-row-main strong,
.chemrytfcm-xai-row-main span,
.chemrytfcm-xai-row-main em {
  min-width: 0;
  color: var(--chemrytfcm-ink);
  font-size: 11px !important;
  line-height: 1.15;
}

.chemrytfcm-xai-row-main strong {
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-xai-row-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: var(--chemrytfcm-weight-medium);
  white-space: nowrap;
}

.chemrytfcm-xai-row-main em {
  color: var(--chemrytfcm-muted);
  font-style: normal;
  text-align: right;
}

.chemrytfcm-xai-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #b9d5ea;
  border-radius: 50%;
  background: #f8fbfe;
  color: #145074 !important;
  cursor: help;
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-xai-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef6;
}

.chemrytfcm-xai-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

.chemrytfcm-xai-scale {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 5px;
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-xai-scale span,
.chemrytfcm-xai-scale strong {
  min-width: 0;
  font-size: 9px !important;
  line-height: 1;
}

.chemrytfcm-xai-scale strong {
  overflow: hidden;
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-medium);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-xai-scale span:last-child {
  text-align: right;
}

.chemrytfcm-xai-row small {
  display: block;
  min-height: 28px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-logp-zone {
  display: grid;
  gap: 4px;
  margin-top: 1px;
}

.chemrytfcm-logp-zone-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd 0%, #e2e8f0 24%, #e2e8f0 68%, #fca5a5 100%);
}

.chemrytfcm-logp-zone-ideal {
  position: absolute;
  inset-block: 0;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.82);
}

.chemrytfcm-logp-zone-track i {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 13px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
  transform: translateX(-1px);
}

.chemrytfcm-logp-zone-labels {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 5px;
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-logp-zone-labels span,
.chemrytfcm-logp-zone-labels strong {
  min-width: 0;
  font-size: 9px !important;
  line-height: 1;
}

.chemrytfcm-logp-zone-labels strong {
  overflow: hidden;
  color: var(--chemrytfcm-muted);
  font-weight: var(--chemrytfcm-weight-medium);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-logp-zone-labels span:last-child {
  text-align: right;
}

.chemrytfcm-logp-zone small {
  min-height: 0;
  font-size: 9px;
}

.chemrytfcm-xai-row.warn .chemrytfcm-xai-dot,
.chemrytfcm-xai-row.warn .chemrytfcm-xai-track span {
  background: #f59e0b;
}

.chemrytfcm-xai-row.risk .chemrytfcm-xai-dot,
.chemrytfcm-xai-row.risk .chemrytfcm-xai-track span {
  background: #ef4444;
}

.chemrytfcm-xai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid #e2edf6;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.2;
  padding-top: 7px;
}

.chemrytfcm-xai-footer strong {
  color: var(--chemrytfcm-blue);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-moa-panel {
  margin: 0 0 12px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  padding: 10px 12px;
}

.chemrytfcm-moa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chemrytfcm-moa-head strong,
.chemrytfcm-moa-family strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-moa-head span,
.chemrytfcm-moa-family span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-moa-panel p {
  margin: 0 0 9px;
  color: var(--chemrytfcm-text);
  font-size: 11px;
  line-height: 1.45;
}

.chemrytfcm-moa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.chemrytfcm-moa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  width: fit-content;
  border: 1px solid #c9d5df;
  border-radius: 6px;
  padding: 3px 7px;
  max-width: 100%;
}

.chemrytfcm-moa-badge em {
  color: inherit;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chemrytfcm-moa-badge strong {
  color: inherit;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.2;
}

.chemrytfcm-moa-badge.frac {
  border-color: #8dc66f;
  background: #e8f5df;
  color: #245a1c;
}

.chemrytfcm-moa-badge.irac {
  border-color: #7da2df;
  background: #e8f0ff;
  color: #173d75;
}

.chemrytfcm-moa-badge.hrac {
  border-color: #e6ae5a;
  background: #fff0d9;
  color: #744600;
}

.chemrytfcm-moa-badge.moa {
  border-color: #c89ccc;
  background: #f7eef8;
  color: #613463;
}

.chemrytfcm-moa-family {
  border-top: 1px solid var(--chemrytfcm-line);
  padding-top: 8px;
}

.chemrytfcm-moa-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.chemrytfcm-moa-evidence li {
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.2;
  padding: 3px 7px;
}

.chemrytfcm-biohub {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.chemrytfcm-biohub-title,
.chemrytfcm-biohub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-biohub-title strong,
.chemrytfcm-biohub-head strong {
  display: block;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-biohub-title span,
.chemrytfcm-biohub-head span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-biohub-head mark {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.chemrytfcm-biohub-module {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--chemrytfcm-line);
  padding-top: 8px;
}

.chemrytfcm-spectrum-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-spectrum-table th,
.chemrytfcm-spectrum-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: middle;
}

.chemrytfcm-spectrum-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytfcm-spectrum-table td strong,
.chemrytfcm-spectrum-table td b {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.2;
}

.chemrytfcm-spectrum-table td span {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-spectrum-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf3f8;
}

.chemrytfcm-spectrum-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7ba7c7;
}

.chemrytfcm-spectrum-table tr.target-strong .chemrytfcm-spectrum-bar span {
  background: #2f7d55;
}

.chemrytfcm-spectrum-table tr.target-moderate .chemrytfcm-spectrum-bar span {
  background: #6f9f63;
}

.chemrytfcm-spectrum-table tr.target-weak .chemrytfcm-spectrum-bar span {
  background: #9fb5c4;
}

.chemrytfcm-spectrum-table tr.nontarget-high .chemrytfcm-spectrum-bar span {
  background: #b94f4f;
}

.chemrytfcm-spectrum-table tr.nontarget-watch .chemrytfcm-spectrum-bar span {
  background: #c58a36;
}

.chemrytfcm-spectrum-table tr.nontarget-low .chemrytfcm-spectrum-bar span {
  background: #7aa1a8;
}

.chemrytfcm-biohub-note {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-mobility-grid-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) 1fr;
  gap: 10px;
  align-items: stretch;
}

.chemrytfcm-mobility-grid {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(240, 247, 252, 0.94) 0 33.33%, rgba(245, 250, 244, 0.94) 33.33% 66.66%, rgba(252, 246, 238, 0.94) 66.66% 100%);
}

.chemrytfcm-mobility-grid::before,
.chemrytfcm-mobility-grid::after {
  position: absolute;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-mobility-grid::before {
  content: "LogP low -> high";
  right: 8px;
  bottom: 7px;
}

.chemrytfcm-mobility-grid::after {
  content: "pKa / pH";
  left: 8px;
  top: 7px;
}

.chemrytfcm-mobility-grid .zone {
  position: absolute;
  top: 36px;
  width: 33.33%;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.chemrytfcm-mobility-grid .zone.symplastic {
  left: 0;
}

.chemrytfcm-mobility-grid .zone.apoplastic {
  left: 33.33%;
}

.chemrytfcm-mobility-grid .zone.contact {
  left: 66.66%;
}

.chemrytfcm-mobility-grid i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #12315c;
  box-shadow: 0 0 0 1px rgba(18, 49, 92, 0.35);
  transform: translate(-50%, 50%);
}

.chemrytfcm-mobility-readout {
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-mobility-readout strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-mobility-readout span {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytfcm-mobility-readout p {
  margin: 7px 0 0;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.45;
}

.chemrytfcm-mobility-readout.contact {
  border-left: 3px solid #b36b2c;
}

.chemrytfcm-mobility-readout.apoplastic {
  border-left: 3px solid #3f7eab;
}

.chemrytfcm-mobility-readout.symplastic {
  border-left: 3px solid #4d8b56;
}

.chemrytfcm-softspot-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1fr;
  gap: 10px;
  align-items: stretch;
}

.chemrytfcm-softspot-map {
  position: relative;
  min-height: 128px;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #fbfdff;
}

.chemrytfcm-softspot-map svg {
  display: block;
  width: 100%;
  height: 128px;
}

.chemrytfcm-softspot-map path,
.chemrytfcm-softspot-map line {
  fill: none;
  stroke: #58728b;
  stroke-width: 2;
}

.chemrytfcm-softspot-map text {
  fill: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: 700;
}

.chemrytfcm-softspot-map span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.chemrytfcm-softspot-map span.high {
  background: #b94f4f;
}

.chemrytfcm-softspot-map span.watch {
  background: #c58a36;
}

.chemrytfcm-softspot-map span.low {
  background: #5f8ca3;
}

.chemrytfcm-softspot-primary {
  border: 1px solid #d5e1ec;
  border-left: 3px solid #b94f4f;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-softspot-primary strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-softspot-primary span {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytfcm-softspot-primary p {
  margin: 7px 0 0;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.45;
}

.chemrytfcm-softspot-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-softspot-table th,
.chemrytfcm-softspot-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: middle;
}

.chemrytfcm-softspot-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytfcm-softspot-table th:first-child,
.chemrytfcm-softspot-table td:first-child {
  width: 28px;
}

.chemrytfcm-softspot-table th:nth-child(3),
.chemrytfcm-softspot-table td:nth-child(3) {
  width: 110px;
}

.chemrytfcm-softspot-table td b,
.chemrytfcm-softspot-table td strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.2;
}

.chemrytfcm-softspot-table td span {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-softspot-table tr.high .chemrytfcm-spectrum-bar span {
  background: #b94f4f;
}

.chemrytfcm-softspot-table tr.watch .chemrytfcm-spectrum-bar span {
  background: #c58a36;
}

.chemrytfcm-softspot-table tr.low .chemrytfcm-spectrum-bar span {
  background: #5f8ca3;
}

.chemrytfcm-ecotox-hub {
  display: grid;
  gap: 9px;
}

.chemrytfcm-ecotox-module {
  display: grid;
  gap: 8px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-ecotox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-ecotox-head strong {
  display: block;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-ecotox-head span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-ecotox-head mark {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.chemrytfcm-ecotox-summary,
.chemrytfcm-ecotox-suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-ecotox-summary article,
.chemrytfcm-ecotox-suggestions article {
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-ecotox-summary article.risk {
  border-left: 3px solid #b94f4f;
}

.chemrytfcm-ecotox-summary article.warn {
  border-left: 3px solid #c58a36;
}

.chemrytfcm-ecotox-summary article.pass {
  border-left: 3px solid #4d8b56;
}

.chemrytfcm-ecotox-summary strong,
.chemrytfcm-ecotox-suggestions strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-ecotox-summary span,
.chemrytfcm-ecotox-suggestions span,
.chemrytfcm-ecotox-suggestions em {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
}

.chemrytfcm-ecotox-suggestions p {
  margin: 5px 0 0;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-mixture-row,
.chemrytfcm-ecotox-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.chemrytfcm-mixture-row label,
.chemrytfcm-ecotox-controls label {
  display: grid;
  gap: 4px;
}

.chemrytfcm-mixture-row label span,
.chemrytfcm-ecotox-controls label span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytfcm-mixture-row output {
  min-height: 26px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.3;
  padding: 6px 8px;
}

.chemrytfcm-ecotox-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-ecotox-table th,
.chemrytfcm-ecotox-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: middle;
}

.chemrytfcm-ecotox-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytfcm-ecotox-table td strong,
.chemrytfcm-ecotox-table td b {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.2;
}

.chemrytfcm-ecotox-table td span {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-ecotox-table tr.risk .chemrytfcm-spectrum-bar span {
  background: #b94f4f;
}

.chemrytfcm-ecotox-table tr.warn .chemrytfcm-spectrum-bar span {
  background: #c58a36;
}

.chemrytfcm-ecotox-table tr.pass .chemrytfcm-spectrum-bar span {
  background: #4d8b56;
}

.chemrytfcm-reg-threshold-table th:nth-child(1),
.chemrytfcm-reg-threshold-table td:nth-child(1) {
  width: 18%;
}

.chemrytfcm-reg-threshold-table th:nth-child(2),
.chemrytfcm-reg-threshold-table td:nth-child(2) {
  width: 16%;
}

.chemrytfcm-reg-threshold-table th:nth-child(3),
.chemrytfcm-reg-threshold-table td:nth-child(3) {
  width: 13%;
}

.chemrytfcm-reg-threshold-table th:nth-child(4),
.chemrytfcm-reg-threshold-table td:nth-child(4) {
  width: 25%;
}

.chemrytfcm-reg-tier {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 7px;
  text-transform: uppercase;
}

.chemrytfcm-reg-tier.risk {
  border-color: #d7a0a0;
  background: #fff4f2;
  color: #8f3434;
}

.chemrytfcm-reg-tier.warn {
  border-color: #e5c48f;
  background: #fff8ea;
  color: #8a5c18;
}

.chemrytfcm-reg-tier.pass {
  border-color: #b9d7bd;
  background: #f3fbf4;
  color: #2f6f3a;
}

.chemrytfcm-region-toggle {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 7px;
  background: #f6f9fc;
  padding: 2px;
}

.chemrytfcm-region-toggle button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.chemrytfcm-region-toggle button.is-active {
  background: #ffffff;
  color: var(--chemrytfcm-blue);
  box-shadow: inset 0 0 0 1px #cbd8e6;
}

.chemrytfcm-species-table th:nth-child(1),
.chemrytfcm-species-table td:nth-child(1) {
  width: 18%;
}

.chemrytfcm-species-table th:nth-child(2),
.chemrytfcm-species-table td:nth-child(2) {
  width: 30%;
}

.chemrytfcm-species-table th:nth-child(3),
.chemrytfcm-species-table td:nth-child(3) {
  width: 18%;
}

.chemrytfcm-species-table i {
  font-style: italic;
}

.chemrytfcm-fate-crossref {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-fate-crossref article {
  border: 1px solid var(--chemrytfcm-line);
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-fate-crossref article.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-fate-crossref article.warn {
  border-left-color: #c58a36;
}

.chemrytfcm-fate-crossref article.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-fate-crossref span,
.chemrytfcm-fate-crossref em {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.chemrytfcm-fate-crossref strong {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-text);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.15;
}

.chemrytfcm-fate-crossref p {
  margin: 5px 0 4px;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-analogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-analogue-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-analogue-grid article.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-analogue-grid article.warn {
  border-left-color: #c58a36;
}

.chemrytfcm-analogue-grid article.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-analogue-grid strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.2;
}

.chemrytfcm-analogue-grid span,
.chemrytfcm-analogue-grid em {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.chemrytfcm-analogue-grid p {
  margin: 0;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-analogue-grid ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 14px;
  color: var(--chemrytfcm-text);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-human-hub {
  display: grid;
  gap: 9px;
}

.chemrytfcm-human-module {
  display: grid;
  gap: 8px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-human-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-human-head strong {
  display: block;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-human-head span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-human-head mark {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.chemrytfcm-human-head mark.risk {
  border-color: #d7a0a0;
  background: #fff4f2;
  color: #8f3434;
}

.chemrytfcm-human-head mark.warn {
  border-color: #e5c48f;
  background: #fff8ea;
  color: #8a5c18;
}

.chemrytfcm-human-summary,
.chemrytfcm-ppe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-human-summary article,
.chemrytfcm-ppe-grid article {
  border: 1px solid var(--chemrytfcm-line);
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-human-summary article.risk,
.chemrytfcm-ppe-grid article.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-human-summary article.warn,
.chemrytfcm-ppe-grid article.warn {
  border-left-color: #c58a36;
}

.chemrytfcm-human-summary article.pass,
.chemrytfcm-ppe-grid article.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-human-summary strong,
.chemrytfcm-ppe-grid strong {
  display: block;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-human-summary span,
.chemrytfcm-human-summary em,
.chemrytfcm-ppe-grid span {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.chemrytfcm-derisk-action {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #bfd2e5;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  padding: 5px 6px;
  text-align: left;
}

.chemrytfcm-derisk-action:hover,
.chemrytfcm-derisk-action:focus-visible {
  border-color: #89aecd;
  background: #edf5fb;
}

.chemrytfcm-derisk-action[aria-expanded="true"] {
  border-color: #8fbf91;
  background: #f1faef;
  color: #23602c;
}

.chemrytfcm-derisk-output {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  border-top: 1px solid #e2ebf3;
  padding-top: 6px;
}

.chemrytfcm-derisk-output[hidden] {
  display: none !important;
}

.chemrytfcm-derisk-output div {
  border: 1px solid #dbe6f0;
  border-radius: 6px;
  background: #ffffff;
  padding: 5px 6px;
}

.chemrytfcm-derisk-output strong {
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytfcm-derisk-output span {
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
}

.chemrytfcm-ppe-grid p {
  margin: 5px 0 0;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-human-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-human-table th,
.chemrytfcm-human-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-human-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytfcm-human-table th:first-child,
.chemrytfcm-human-table td:first-child {
  width: 24%;
}

.chemrytfcm-human-table td strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-library-hub {
  display: grid;
  gap: 9px;
}

.chemrytfcm-library-module {
  display: grid;
  gap: 8px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-library-head strong {
  display: block;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-library-head span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-library-head mark {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.chemrytfcm-library-moves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-library-moves article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-library-moves article.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-library-moves article.warn {
  border-left-color: #c58a36;
}

.chemrytfcm-library-moves article.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-library-moves article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.chemrytfcm-library-moves strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-library-moves mark {
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--chemrytfcm-blue);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
  white-space: nowrap;
}

.chemrytfcm-library-moves p {
  margin: 0;
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.chemrytfcm-library-moves p b {
  color: var(--chemrytfcm-blue);
}

.chemrytfcm-library-moves footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chemrytfcm-library-moves footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--chemrytfcm-muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 5px;
}

.chemrytfcm-library-moves footer span.up {
  border-color: #bcd8b8;
  background: #f2faef;
  color: #2f6d35;
}

.chemrytfcm-library-moves footer span.down {
  border-color: #d9c8a2;
  background: #fff9eb;
  color: #876017;
}

.chemrytfcm-library-moves footer span.review {
  border-color: #d8c1dc;
  background: #fbf5ff;
  color: #6c3676;
}

.chemrytfcm-library-moves footer b {
  color: inherit;
  font-size: 8px;
}

.chemrytfcm-library-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-library-table th,
.chemrytfcm-library-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-library-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytfcm-library-table th:first-child,
.chemrytfcm-library-table td:first-child {
  width: 24%;
}

.chemrytfcm-library-table td strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-halogen-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-halogen-table th,
.chemrytfcm-halogen-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-halogen-table th {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytfcm-halogen-table th:first-child,
.chemrytfcm-halogen-table td:first-child {
  width: 11%;
}

.chemrytfcm-halogen-table th:nth-child(3),
.chemrytfcm-halogen-table th:nth-child(4),
.chemrytfcm-halogen-table td:nth-child(3),
.chemrytfcm-halogen-table td:nth-child(4) {
  width: 13%;
  text-align: center;
}

.chemrytfcm-halogen-table strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: 900;
}

.chemrytfcm-halogen-table td {
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.chemrytfcm-halogen-table td span {
  display: inline-flex;
  justify-content: center;
  min-width: 26px;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 5px;
}

.chemrytfcm-halogen-table b {
  display: inline-flex;
  margin-bottom: 3px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}

.chemrytfcm-halogen-table em {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

.chemrytfcm-halogen-table tr.risk td:first-child {
  border-left: 3px solid #b94f4f;
}

.chemrytfcm-halogen-table tr.warn td:first-child {
  border-left: 3px solid #c58a36;
}

.chemrytfcm-halogen-table tr.pass td:first-child {
  border-left: 3px solid #4d8b56;
}

.chemrytfcm-crop-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-crop-core-grid article {
  border: 1px solid var(--chemrytfcm-line);
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-crop-core-grid article.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-crop-core-grid article.warn {
  border-left-color: #c58a36;
}

.chemrytfcm-crop-core-grid article.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-crop-core-grid span {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytfcm-crop-core-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--chemrytfcm-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.chemrytfcm-crop-core-grid p,
.chemrytfcm-crop-core-grid li {
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
}

.chemrytfcm-crop-core-grid p {
  margin: 5px 0 0;
}

.chemrytfcm-crop-core-grid ul {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  padding-left: 14px;
}

.chemrytfcm-crop-core-decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
  background: #f8fbfe;
  padding: 7px 8px;
}

.chemrytfcm-crop-core-decision strong {
  color: var(--chemrytfcm-blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytfcm-crop-core-decision span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.chemrytfcm-ml-hub {
  display: grid;
  gap: 9px;
}

.chemrytfcm-ml-module {
  display: grid;
  gap: 8px;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.chemrytfcm-ml-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-ml-head strong {
  display: block;
  color: var(--chemrytfcm-blue);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.25;
}

.chemrytfcm-ml-head span {
  display: block;
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytfcm-ml-head mark {
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.chemrytfcm-ml-controls {
  display: grid;
  grid-template-columns: minmax(180px, 330px) auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  justify-content: start;
}

.chemrytfcm-ml-controls > span {
  grid-column: 1 / -1;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.chemrytfcm-ml-controls select,
.chemrytfcm-ml-controls button {
  min-height: 30px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 7px;
}

.chemrytfcm-ml-controls select {
  width: 100%;
}

.chemrytfcm-ml-controls button {
  background: var(--chemrytfcm-blue);
  color: #ffffff;
  white-space: nowrap;
}

.chemrytfcm-ml-controls button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.chemrytfcm-ml-results {
  overflow: auto;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
}

.chemrytfcm-ml-results table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
  background: #ffffff;
}

.chemrytfcm-ml-results th,
.chemrytfcm-ml-results td {
  border-bottom: 1px solid #e7eef5;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-ml-results th {
  color: var(--chemrytfcm-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytfcm-ml-results td {
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

.chemrytfcm-ml-results td span {
  display: block;
}

.chemrytfcm-ml-results td strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: 750;
}

.chemrytfcm-ml-results td span {
  margin-top: 2px;
  color: var(--chemrytfcm-muted);
  font-size: 8px;
  font-weight: 600;
}

.chemrytfcm-ml-results mark {
  display: inline-flex;
  border: 1px solid #d7e2ec;
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

.chemrytfcm-ml-results mark.risk {
  border-color: #dfb4ae;
  background: #fff3f1;
  color: #9b3d35;
}

.chemrytfcm-ml-results mark.warn {
  border-color: #dec795;
  background: #fff9e8;
  color: #8a6325;
}

.chemrytfcm-ml-results mark.watch {
  border-color: #c8d5a9;
  background: #f8fbef;
  color: #647331;
}

.chemrytfcm-ml-results mark.pass {
  border-color: #b7d5c0;
  background: #f1faf4;
  color: #356d46;
}

.chemrytfcm-ml-results tr.risk {
  background: #fffafa;
}

.chemrytfcm-ml-results tr.warn {
  background: #fffdf7;
}

.chemrytfcm-ml-results tr.watch {
  background: #fcfdf8;
}

.chemrytfcm-ml-results tr.pass {
  background: #fbfefd;
}

.chemrytfcm-ml-results tr.pass td:first-child {
  border-left: 3px solid #4d8b56;
}

.chemrytfcm-ml-results tr.warn td:first-child {
  border-left: 3px solid #c58a36;
}

.chemrytfcm-ml-results tr.watch td:first-child {
  border-left: 3px solid #9cae55;
}

.chemrytfcm-ml-results tr.risk td:first-child {
  border-left: 3px solid #b94f4f;
}

.chemrytfcm-ml-prediction {
  display: grid;
  gap: 3px;
  border: 1px solid #cbd8e6;
  border-left: 3px solid #9db2c8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-ml-prediction.pass {
  border-left-color: #4d8b56;
}

.chemrytfcm-ml-prediction.risk {
  border-left-color: #b94f4f;
}

.chemrytfcm-ml-prediction strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: 900;
}

.chemrytfcm-ml-prediction span,
.chemrytfcm-ml-prediction em {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.chemrytfcm-library-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-library-queue div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  row-gap: 2px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytfcm-library-queue span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
}

.chemrytfcm-library-queue strong {
  color: var(--chemrytfcm-text);
  font-size: 10px;
  line-height: 1.2;
}

.chemrytfcm-library-queue em {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.chemrytfcm-library-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-library-gates label {
  display: grid;
  gap: 4px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 6px 7px;
}

.chemrytfcm-library-gates span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytfcm-library-gates input {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 6px;
}

.chemrytfcm-library-variant-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.chemrytfcm-library-variant-table th,
.chemrytfcm-library-variant-table td {
  border-bottom: 1px solid #e7eef5;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.chemrytfcm-library-variant-table th {
  color: var(--chemrytfcm-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrytfcm-library-variant-table td {
  color: var(--chemrytfcm-text);
  font-size: 9px;
  font-weight: 700;
}

.chemrytfcm-library-variant-table td:nth-child(2) {
  width: 24%;
}

.chemrytfcm-library-variant-table strong {
  color: var(--chemrytfcm-blue);
  font-size: 9px;
  font-weight: 800;
}

.chemrytfcm-library-variant-table mark {
  display: inline-flex;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}

.chemrytfcm-library-formtag {
  display: inline-flex;
  margin-bottom: 3px;
  border: 1px solid #bfd2e5;
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--chemrytfcm-blue);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}

.chemrytfcm-library-variant-table em {
  display: block;
  color: var(--chemrytfcm-muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.chemrytfcm-library-variant-table tr.pass mark {
  border-color: #bcd8b8;
  background: #f2faef;
  color: #2f6d35;
}

.chemrytfcm-library-variant-table tr.flag mark {
  border-color: #d9c8a2;
  background: #fff9eb;
  color: #876017;
}

.chemrytfcm-library-variant-table tr.drop mark {
  border-color: #d7a0a0;
  background: #fff4f2;
  color: #8f3434;
}

.chemrytfcm-library-variant-table tr.drop td:first-child {
  border-left: 3px solid #b94f4f;
}

.chemrytfcm-library-variant-table tr.flag td:first-child {
  border-left: 3px solid #c58a36;
}

.chemrytfcm-library-variant-table tr.pass td:first-child {
  border-left: 3px solid #4d8b56;
}

.chemrytfcm-physchem-command {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid #cfe1f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.chemrytfcm-fate-command {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid #cfe1f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.chemrytfcm-reg-command {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid #cfe1f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.chemrytfcm-physchem-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-physchem-command-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chemrytfcm-physchem-command-head strong {
  color: #092d4a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-heading);
  letter-spacing: 0;
}

.chemrytfcm-physchem-command-head span {
  overflow: hidden;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-physchem-command-head mark {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f8ef;
  color: #087349;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-physchem-command-head mark.warn {
  background: #fff7e6;
  color: #9a5b00;
}

.chemrytfcm-physchem-command-head mark.risk {
  background: #fff1f1;
  color: #b42318;
}

.chemrytfcm-physchem-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chemrytfcm-physchem-context p {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-contrib-map {
  display: grid;
  gap: 7px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-contrib-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-contrib-copy strong {
  color: #092d4a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-contrib-copy span {
  overflow: hidden;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-contrib-map svg {
  width: 100%;
  height: 178px;
  border-radius: 7px;
  background: #ffffff;
}

.chemrytfcm-contrib-map line {
  stroke: #8da9bf;
  stroke-width: 2;
  stroke-linecap: round;
}

.chemrytfcm-contrib-fragment {
  cursor: help;
  outline: none;
}

.chemrytfcm-contrib-fragment polygon,
.chemrytfcm-contrib-fragment rect,
.chemrytfcm-contrib-fragment circle {
  stroke-width: 2;
  transition: filter 0.15s ease, stroke-width 0.15s ease;
}

.chemrytfcm-contrib-fragment text {
  dominant-baseline: middle;
  fill: #0f172a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  pointer-events: none;
  text-anchor: middle;
}

.chemrytfcm-contrib-fragment:hover polygon,
.chemrytfcm-contrib-fragment:hover rect,
.chemrytfcm-contrib-fragment:hover circle,
.chemrytfcm-contrib-fragment:focus polygon,
.chemrytfcm-contrib-fragment:focus rect,
.chemrytfcm-contrib-fragment:focus circle {
  filter: drop-shadow(0 3px 8px rgba(9, 45, 74, 0.22));
  stroke-width: 3;
}

.chemrytfcm-contrib-fragment.lipophilic polygon,
.chemrytfcm-contrib-fragment.lipophilic circle {
  fill: #bfeee6;
  stroke: #087f73;
}

.chemrytfcm-contrib-fragment.hydrophilic rect {
  fill: #ffe3e3;
  stroke: #dc2626;
}

.chemrytfcm-contrib-fragment.metal circle {
  fill: #fef3c7;
  stroke: #b7791f;
}

.chemrytfcm-contrib-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.chemrytfcm-contrib-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-contrib-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.chemrytfcm-contrib-legend i.lipophilic {
  background: #087f73;
}

.chemrytfcm-contrib-legend i.hydrophilic {
  background: #dc2626;
}

.chemrytfcm-contrib-legend i.metal {
  background: #b7791f;
}

.chemrytfcm-contrib-map small {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-contrib-empty {
  color: var(--chemrytfcm-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.chemrytfcm-field-impact {
  display: grid;
  gap: 7px;
}

.chemrytfcm-field-impact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chemrytfcm-field-impact-head strong {
  color: #092d4a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-field-impact-head span {
  overflow: hidden;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-impact-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-left-width: 4px;
  border-radius: 7px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-impact-card.pass {
  border-left-color: #10b981;
}

.chemrytfcm-impact-card.warn {
  border-left-color: #f59e0b;
}

.chemrytfcm-impact-card.risk {
  border-left-color: #ef4444;
}

.chemrytfcm-impact-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.chemrytfcm-impact-card strong,
.chemrytfcm-impact-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-impact-card strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-impact-card span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
  text-align: right;
}

.chemrytfcm-impact-card p {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-formulation-mitigation {
  display: grid;
  gap: 7px;
}

.chemrytfcm-formulation-mitigation table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-formulation-mitigation th,
.chemrytfcm-formulation-mitigation td {
  border-bottom: 1px solid #e8f0f8;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-formulation-mitigation th {
  background: #f8fbfe;
  color: #092d4a;
  font-size: 9px;
  font-weight: var(--chemrytfcm-weight-heading);
  line-height: 1.1;
  text-transform: uppercase;
}

.chemrytfcm-formulation-mitigation td {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.35;
}

.chemrytfcm-formulation-mitigation tr:last-child td {
  border-bottom: 0;
}

.chemrytfcm-formulation-mitigation td:first-child {
  width: 28%;
  border-left: 4px solid #94a3b8;
}

.chemrytfcm-formulation-mitigation tr.best td:first-child {
  border-left-color: #10b981;
}

.chemrytfcm-formulation-mitigation tr.possible td:first-child {
  border-left-color: #f59e0b;
}

.chemrytfcm-formulation-mitigation tr.support td:first-child {
  border-left-color: #3b82f6;
}

.chemrytfcm-formulation-mitigation td strong,
.chemrytfcm-formulation-mitigation td span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-formulation-mitigation td strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.1;
}

.chemrytfcm-formulation-mitigation td span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.2;
  margin-top: 2px;
}

.chemrytfcm-formulation-mitigation small {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.2;
}

.chemrytfcm-fate-pathway,
.chemrytfcm-metabolite-screen,
.chemrytfcm-kinetic-models {
  display: grid;
  gap: 7px;
}

.chemrytfcm-fate-pathway svg {
  width: 100%;
  height: 220px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fbfdff;
}

.chemrytfcm-fate-pathway marker path {
  fill: #54708a;
}

.chemrytfcm-fate-pathway path {
  fill: none;
  marker-end: url(#chemrytfcm-arrow);
  stroke: #54708a;
  stroke-width: 2;
}

.chemrytfcm-fate-pathway rect {
  fill: #ffffff;
  stroke: #9fb6cc;
  stroke-width: 2;
}

.chemrytfcm-fate-pathway .parent rect {
  fill: #eef7ff;
  stroke: #0966c2;
}

.chemrytfcm-fate-pathway .mobile rect {
  fill: #ecfeff;
  stroke: #0891b2;
}

.chemrytfcm-fate-pathway .toxic rect {
  fill: #fff1f1;
  stroke: #ef4444;
}

.chemrytfcm-fate-pathway text {
  fill: #17324d;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-medium);
  text-anchor: middle;
}

.chemrytfcm-metabolite-screen table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-metabolite-screen th,
.chemrytfcm-metabolite-screen td {
  border-bottom: 1px solid #e8f0f8;
  padding: 7px 8px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-metabolite-screen th {
  background: #f8fbfe;
  color: #092d4a;
  font-size: 9px;
  font-weight: var(--chemrytfcm-weight-heading);
  text-transform: uppercase;
}

.chemrytfcm-metabolite-screen tr:last-child td {
  border-bottom: 0;
}

.chemrytfcm-metabolite-screen td:first-child {
  border-left: 4px solid #10b981;
}

.chemrytfcm-metabolite-screen tr.warn td:first-child {
  border-left-color: #f59e0b;
}

.chemrytfcm-metabolite-screen tr.risk td:first-child {
  border-left-color: #ef4444;
}

.chemrytfcm-metabolite-screen td strong,
.chemrytfcm-metabolite-screen td span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-metabolite-screen td strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-metabolite-screen td span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
}

.chemrytfcm-reg-matrix,
.chemrytfcm-reg-suggestions,
.chemrytfcm-buffer-calc {
  display: grid;
  gap: 7px;
}

.chemrytfcm-reg-matrix table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-reg-matrix th,
.chemrytfcm-reg-matrix td {
  border-bottom: 1px solid #e8f0f8;
  padding: 7px 8px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-reg-matrix th {
  background: #f8fbfe;
  color: #092d4a;
  font-size: 9px;
  font-weight: var(--chemrytfcm-weight-heading);
  text-transform: uppercase;
}

.chemrytfcm-reg-matrix tr:last-child td {
  border-bottom: 0;
}

.chemrytfcm-reg-matrix td:first-child {
  width: 24%;
  border-left: 4px solid #10b981;
}

.chemrytfcm-reg-matrix tr.warn td:first-child {
  border-left-color: #f59e0b;
}

.chemrytfcm-reg-matrix tr.risk td:first-child {
  border-left-color: #ef4444;
}

.chemrytfcm-reg-matrix td strong,
.chemrytfcm-reg-matrix td span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-reg-matrix td strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-reg-matrix td span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
}

.chemrytfcm-reg-suggestion-grid,
.chemrytfcm-buffer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-reg-suggestion-grid article,
.chemrytfcm-buffer-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-left: 4px solid #10b981;
  border-radius: 7px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-reg-suggestion-grid article.warn {
  border-left-color: #f59e0b;
}

.chemrytfcm-reg-suggestion-grid article.risk {
  border-left-color: #ef4444;
}

.chemrytfcm-reg-suggestion-grid strong,
.chemrytfcm-buffer-grid span,
.chemrytfcm-buffer-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-reg-suggestion-grid strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-reg-suggestion-grid p,
.chemrytfcm-buffer-grid small {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.3;
}

.chemrytfcm-buffer-grid span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-buffer-grid strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-formulation-simulator {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-climate-simulator {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-scenario-presets label {
  display: grid;
  gap: 4px;
}

.chemrytfcm-scenario-presets span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-scenario-presets select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfe1f3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  line-height: 1.1;
  padding: 6px 7px;
}

.chemrytfcm-climate-sliders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-climate-sliders label {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-radius: 7px;
  background: #ffffff;
  padding: 7px;
}

.chemrytfcm-climate-sliders span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-climate-sliders strong {
  color: var(--chemrytfcm-ink);
  font-size: 9px;
  font-weight: var(--chemrytfcm-weight-semibold);
  white-space: nowrap;
}

.chemrytfcm-climate-sliders input[type="range"] {
  width: 100%;
  accent-color: #0966c2;
}

.chemrytfcm-simulator-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
}

.chemrytfcm-simulator-controls label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.chemrytfcm-simulator-controls span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-simulator-controls select,
.chemrytfcm-simulator-controls input {
  min-width: 0;
  border: 1px solid #cfe1f3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  line-height: 1.1;
  padding: 6px 7px;
}

.chemrytfcm-simulator-controls em {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.chemrytfcm-adjuvant-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.chemrytfcm-adjuvant-matrix label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.1;
  padding: 6px;
}

.chemrytfcm-adjuvant-matrix input {
  flex: 0 0 auto;
}

.chemrytfcm-simulator-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-simulator-output article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-left: 4px solid #0966c2;
  border-radius: 7px;
  background: #ffffff;
  padding: 7px;
}

.chemrytfcm-simulator-output span,
.chemrytfcm-simulator-output strong,
.chemrytfcm-simulator-output small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chemrytfcm-simulator-output span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.chemrytfcm-simulator-output strong {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.1;
  white-space: nowrap;
}

.chemrytfcm-simulator-output small {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-kinetic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.chemrytfcm-kinetic-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytfcm-kinetic-grid article div {
  display: grid;
  gap: 2px;
}

.chemrytfcm-kinetic-grid strong,
.chemrytfcm-kinetic-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-kinetic-grid strong {
  color: #092d4a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-kinetic-grid span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-kinetic-grid svg {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  background: #ffffff;
}

.chemrytfcm-kinetic-grid polyline {
  fill: none;
  stroke: #0966c2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chemrytfcm-kinetic-grid p {
  margin: 0;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-rule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.chemrytfcm-rule-badge {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #dbe8f4;
  border-radius: 7px;
  background: #f8fbfe;
  padding: 7px;
}

.chemrytfcm-rule-badge span,
.chemrytfcm-rule-badge strong,
.chemrytfcm-rule-badge em,
.chemrytfcm-rule-badge small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytfcm-rule-badge span {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1;
}

.chemrytfcm-rule-badge strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-rule-badge em {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.chemrytfcm-rule-badge small {
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.15;
}

.chemrytfcm-rule-badge.pass {
  border-color: #c8ead9;
}

.chemrytfcm-rule-badge.risk {
  border-color: #ffd2d2;
  background: #fff8f8;
}

.chemrytfcm-rule-badge.risk strong {
  color: #b42318;
}

.chemrytfcm-physchem-command-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e8f0f8;
  padding-top: 8px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1;
}

.chemrytfcm-physchem-command-foot strong {
  color: #092d4a;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

@media (max-width: 920px) {
  .chemrytfcm-physchem-context {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytfcm-impact-grid {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-kinetic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytfcm-reg-suggestion-grid,
  .chemrytfcm-buffer-grid {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-simulator-controls,
  .chemrytfcm-simulator-output {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-climate-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytfcm-adjuvant-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chemrytfcm-empty-results {
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  padding: 10px;
}

.chemrytfcm-req-card {
  display: grid;
  gap: 7px;
  min-height: 154px;
  border: 1px solid var(--chemrytfcm-line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px;
}

.chemrytfcm-req-card.pass {
  border-left-color: #047857;
}

.chemrytfcm-req-card.warn {
  border-left-color: #b45309;
}

.chemrytfcm-req-card.risk {
  border-left-color: #b91c1c;
}

.chemrytfcm-req-card.is-focused,
.chemrytfcm-panel.is-focused {
  outline: 3px solid rgba(25, 118, 210, 0.22);
  outline-offset: 2px;
}

.chemrytfcm-req-card > div {
  display: grid;
  gap: 3px;
}

.chemrytfcm-req-card > div span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 10px !important;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.1;
}

.chemrytfcm-req-card > div strong {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.2;
}

.chemrytfcm-req-card p {
  color: var(--chemrytfcm-muted);
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.chemrytfcm-req-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chemrytfcm-req-card li {
  min-height: 19px;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #e1ebf3;
  border-radius: 6px;
  background: #ffffff;
  color: #31516c;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-medium);
  line-height: 1.2;
  padding: 3px 5px;
}

.chemrytfcm-model-empty,
.chemrytfcm-model-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 4px solid #b45309;
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px 10px;
}

.chemrytfcm-model-empty strong,
.chemrytfcm-model-summary-strip strong {
  color: var(--chemrytfcm-ink);
  font-size: 13px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-model-empty span,
.chemrytfcm-model-summary-strip span,
.chemrytfcm-model-summary-strip b {
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  line-height: 1.3;
}

.chemrytfcm-model-summary-strip.pass {
  border-left-color: #047857;
}

.chemrytfcm-model-summary-strip.warn {
  border-left-color: #b45309;
}

.chemrytfcm-model-summary-strip.risk,
.chemrytfcm-model-empty.risk {
  border-left-color: #b91c1c;
}

.chemrytfcm-model-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-model-dashboard {
  display: grid;
  gap: 8px;
}

.chemrytfcm-model-section {
  overflow: hidden;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 4px solid #047857;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytfcm-production-gate {
  display: grid;
  gap: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-left: 4px solid #047857;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.chemrytfcm-production-gate.warn {
  border-left-color: #b45309;
  background: #fffaf0;
}

.chemrytfcm-production-gate.risk {
  border-left-color: #b91c1c;
  background: #fff7f7;
}

.chemrytfcm-production-gate header,
.chemrytfcm-production-gate > div {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.chemrytfcm-production-gate header {
  align-items: center;
  justify-content: space-between;
}

.chemrytfcm-production-gate header span {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  text-transform: uppercase;
}

.chemrytfcm-production-gate h3 {
  margin: 2px 0 0;
  color: var(--chemrytfcm-ink);
  font-size: 15px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-production-gate header > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 5px 9px;
}

.chemrytfcm-production-gate.warn header > strong {
  background: #fff7ed;
  color: #b45309;
}

.chemrytfcm-production-gate.risk header > strong {
  background: #fef2f2;
  color: #b91c1c;
}

.chemrytfcm-production-gate > p {
  color: var(--chemrytfcm-muted) !important;
  font-size: 11px !important;
}

.chemrytfcm-production-gate article {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #dce8f3;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px;
}

.chemrytfcm-production-gate article.warn {
  border-color: #f3d59c;
}

.chemrytfcm-production-gate article.risk {
  border-color: #f0b4b4;
  background: rgba(255, 245, 245, 0.9);
}

.chemrytfcm-production-gate article span,
.chemrytfcm-production-gate article strong,
.chemrytfcm-production-gate article p {
  display: block;
}

.chemrytfcm-production-gate article span {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-production-gate article strong {
  margin-top: 3px;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-production-gate article p {
  margin-top: 5px !important;
  color: var(--chemrytfcm-muted) !important;
  font-size: 10px !important;
}

.chemrytfcm-verification-checklist {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e7f4;
  border-radius: 8px;
  background: #f8fbfe;
  padding: 9px;
}

.chemrytfcm-verification-checklist header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chemrytfcm-verification-checklist header span {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-verification-checklist header strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef6ff;
  color: #145074;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 5px 8px;
}

.chemrytfcm-verification-checklist ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chemrytfcm-verification-checklist li {
  position: relative;
  border: 1px solid #e0ebf5;
  border-radius: 7px;
  background: #ffffff;
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  line-height: 1.3;
  padding: 7px 8px 7px 28px;
}

.chemrytfcm-verification-checklist li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid #9db9d3;
  border-radius: 3px;
  background: #ffffff;
}

.chemrytfcm-model-science-note {
  display: grid;
  gap: 6px;
  border: 1px solid #d8e3ee;
  border-left: 4px solid #386f9d;
  border-radius: 8px;
  background: #f7fbff;
  padding: 9px;
}

.chemrytfcm-model-science-note header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chemrytfcm-model-science-note header span {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-model-science-note header strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef6ff;
  color: #145074;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 5px 8px;
}

.chemrytfcm-model-science-note p {
  color: var(--chemrytfcm-muted) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.chemrytfcm-model-watch-items {
  display: grid;
  gap: 8px;
  border: 1px solid #f3d59c;
  border-left: 4px solid #b45309;
  border-radius: 8px;
  background: #fffaf0;
  padding: 9px;
}

.chemrytfcm-model-watch-items header,
.chemrytfcm-model-watch-items > div {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.chemrytfcm-model-watch-items header {
  align-items: center;
  justify-content: space-between;
}

.chemrytfcm-model-watch-items header span {
  color: #8a5b00;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  text-transform: uppercase;
}

.chemrytfcm-model-watch-items h3 {
  margin: 2px 0 0;
  color: var(--chemrytfcm-ink);
  font-size: 13px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-model-watch-items header > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  padding: 5px 9px;
}

.chemrytfcm-model-watch-items article {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #f3d59c;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
}

.chemrytfcm-model-watch-items article.risk {
  border-color: #f0b4b4;
  background: rgba(255, 245, 245, 0.88);
}

.chemrytfcm-model-watch-items article span,
.chemrytfcm-model-watch-items article strong,
.chemrytfcm-model-watch-items article p {
  display: block;
}

.chemrytfcm-model-watch-items article span {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-model-watch-items article strong {
  margin-top: 3px;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-heading);
}

.chemrytfcm-model-watch-items article p {
  margin-top: 5px !important;
  color: var(--chemrytfcm-muted) !important;
  font-size: 10px !important;
}

.chemrytfcm-model-section.warn {
  border-left-color: #b45309;
}

.chemrytfcm-model-section.risk {
  border-left-color: #b91c1c;
}

.chemrytfcm-model-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--chemrytfcm-line);
  background: #f7fbff;
  padding: 7px 9px;
}

.chemrytfcm-model-section h3 {
  margin: 0;
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
}

.chemrytfcm-model-section p {
  margin: 2px 0 0;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytfcm-model-section > header > span {
  flex: 0 0 auto;
  min-width: 72px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  text-align: center;
  padding: 5px 7px;
}

.chemrytfcm-model-section.warn > header > span {
  background: #fff7ed;
  color: #b45309;
}

.chemrytfcm-model-section.risk > header > span {
  background: #fef2f2;
  color: #b91c1c;
}

.chemrytfcm-model-section .chemrytfcm-model-table-wrap {
  border: 0;
  border-radius: 0;
}

.chemrytfcm-model-decision-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.chemrytfcm-model-decision-table th,
.chemrytfcm-model-decision-table td {
  border-bottom: 1px solid var(--chemrytfcm-line);
  color: var(--chemrytfcm-muted);
  font-size: 11px;
  line-height: 1.32;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.chemrytfcm-model-decision-table th {
  background: #f5f9fd;
  color: var(--chemrytfcm-ink);
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-model-decision-table th:nth-child(1),
.chemrytfcm-model-decision-table td:nth-child(1) {
  width: 21%;
}

.chemrytfcm-model-decision-table th:nth-child(2),
.chemrytfcm-model-decision-table td:nth-child(2) {
  width: 18%;
}

.chemrytfcm-model-decision-table th:nth-child(3),
.chemrytfcm-model-decision-table td:nth-child(3) {
  width: 12%;
}

.chemrytfcm-model-decision-table th:nth-child(4),
.chemrytfcm-model-decision-table td:nth-child(4) {
  width: 13%;
}

.chemrytfcm-model-decision-table td strong,
.chemrytfcm-model-decision-table td small {
  display: block;
}

.chemrytfcm-model-decision-table td strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-model-decision-table td small {
  margin-top: 2px;
  color: var(--chemrytfcm-soft-muted);
  font-size: 10px;
}

.chemrytfcm-model-decision-table mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 5px 7px;
}

.chemrytfcm-model-decision-table mark i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.14);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.chemrytfcm-model-decision-table tr.warn mark {
  background: #fff7ed;
  color: #b45309;
}

.chemrytfcm-model-decision-table tr.warn mark i {
  background: rgba(180, 83, 9, 0.14);
}

.chemrytfcm-model-decision-table tr.risk mark {
  background: #fef2f2;
  color: #b91c1c;
}

.chemrytfcm-model-decision-table tr.risk {
  background: rgba(185, 28, 28, 0.055);
}

.chemrytfcm-model-decision-table tr.warn {
  background: rgba(180, 83, 9, 0.045);
}

.chemrytfcm-model-decision-table tr.risk mark i {
  background: rgba(185, 28, 28, 0.14);
}

.chemrytfcm-model-missing {
  color: var(--chemrytfcm-soft-muted);
  font-size: 11px;
}

.chemrytfcm-model-tier {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: #eef6ff;
  color: #145074;
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  padding: 0 8px;
}

.chemrytfcm-model-tier-note {
  display: block;
  margin-top: 4px;
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.2;
}

.chemrytfcm-model-polymer-call {
  display: grid;
  gap: 3px;
}

.chemrytfcm-model-polymer-call strong {
  color: var(--chemrytfcm-ink);
  font-size: 11px;
  font-weight: var(--chemrytfcm-weight-semibold);
}

.chemrytfcm-model-polymer-call small {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.2;
}

.chemrytfcm-model-probability {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.chemrytfcm-model-probability > div {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e8eef5;
}

.chemrytfcm-model-probability > div > span {
  display: block;
  width: var(--model-prob);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #047857, #b45309 55%, #b91c1c);
}

.chemrytfcm-model-probability > strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-model-scale {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.chemrytfcm-model-scale-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fef2f2, #fff7ed 22%, #ecfdf5 45%, #ecfdf5 62%, #fff7ed 78%, #fef2f2);
}

.chemrytfcm-model-scale-track > span {
  position: absolute;
  left: var(--model-low);
  width: calc(var(--model-high) - var(--model-low));
  min-width: 10px;
  height: 100%;
  border-radius: inherit;
  background: rgba(4, 120, 87, 0.22);
}

.chemrytfcm-model-scale-track > i {
  position: absolute;
  top: -3px;
  left: var(--model-pos);
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #092d4a;
  transform: translateX(-1px);
}

.chemrytfcm-model-scale-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

.chemrytfcm-model-scale-labels span,
.chemrytfcm-model-scale-labels strong {
  overflow: hidden;
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chemrytfcm-model-scale-labels strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  text-align: center;
}

.chemrytfcm-model-scale-labels span:last-child {
  text-align: right;
}

.chemrytfcm-model-confidence {
  display: grid;
  gap: 2px;
  min-width: 82px;
}

.chemrytfcm-model-confidence span {
  display: inline-flex;
  gap: 3px;
}

.chemrytfcm-model-confidence i {
  display: block;
  width: 16px;
  height: 5px;
  border-radius: 999px;
  background: #dbe6ef;
}

.chemrytfcm-model-confidence.pass i.on {
  background: #047857;
}

.chemrytfcm-model-confidence.warn i.on {
  background: #b45309;
}

.chemrytfcm-model-confidence.risk i.on {
  background: #b91c1c;
}

.chemrytfcm-model-confidence strong,
.chemrytfcm-model-confidence small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chemrytfcm-model-confidence strong {
  color: var(--chemrytfcm-ink);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
}

.chemrytfcm-model-confidence small {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px;
  line-height: 1.1;
}

.chemrytfcm-page button.chemrytfcm-model-action {
  min-width: 82px !important;
  height: 22px !important;
  min-height: 22px !important;
  border-color: #bfd7ed;
  background: #ffffff;
  color: #145074;
  font-size: 9px !important;
  white-space: nowrap;
}

.chemrytfcm-page button.chemrytfcm-model-action.warn {
  border-color: #f0c38a;
  background: #fffaf2;
  color: #92400e;
}

.chemrytfcm-page button.chemrytfcm-model-action.risk {
  border-color: #f1b7b7;
  background: #fff7f7;
  color: #991b1b;
}

.chemrytfcm-model-decision-table td > .chemrytfcm-model-action + small {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  color: var(--chemrytfcm-muted);
  font-size: 9px;
  line-height: 1.25;
}

.chemrytfcm-editor-frame.is-model-alert-focus {
  outline: 3px solid rgba(185, 28, 28, 0.24);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(185, 28, 28, 0.08);
}

.chemrytfcm-model-rationale {
  display: grid;
  gap: 6px;
  border: 1px solid #cfe0ef;
  border-left: 4px solid #1976d2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
}

.chemrytfcm-model-rationale[hidden] {
  display: none;
}

.chemrytfcm-model-rationale > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chemrytfcm-model-rationale > div span {
  color: var(--chemrytfcm-soft-muted);
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1;
  text-transform: uppercase;
}

.chemrytfcm-page .chemrytfcm-model-rationale button {
  min-width: 46px !important;
  height: 20px !important;
  min-height: 20px !important;
  font-size: 9px !important;
}

.chemrytfcm-model-rationale strong {
  color: var(--chemrytfcm-ink);
  font-size: 12px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.15;
}

.chemrytfcm-model-rationale p {
  color: var(--chemrytfcm-muted);
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.chemrytfcm-model-rationale ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chemrytfcm-model-rationale li {
  border: 1px solid #e1ebf3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  line-height: 1.25;
  padding: 5px 6px;
}

.chemrytfcm-report {
  width: 100%;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--chemrytfcm-line-strong);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--chemrytfcm-ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px;
}

@media (max-width: 820px) {
  .chemrytfcm-shell {
    width: var(--chemrytfcm-align-width) !important;
    margin: 1rem auto 2rem var(--chemrytfcm-align-left) !important;
    padding-inline: 0 !important;
  }

  .chemrytfcm-loader-layout {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-molecule-info {
    height: auto;
    min-height: 0;
  }

  .chemrytfcm-editor-frame,
  .chemrytfcm-jsme,
  .chemrytfcm-3d-viewer {
    min-height: 260px;
    height: 260px;
  }

  .chemrytfcm-panel-head,
  .chemrytfcm-loader-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chemrytfcm-summary-grid,
  .chemrytfcm-card-grid {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-requirement-table-wrap {
    max-height: 360px;
  }

  .chemrytfcm-requirement-table {
    min-width: 760px;
  }

  .chemrytfcm-structure-split {
    grid-template-columns: 1fr;
  }

  .chemrytfcm-structure-info-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (min-width: 821px) and (max-width: 1060px) {
  .chemrytfcm-card-grid,
  .chemrytfcm-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytfcm-requirement-table {
    min-width: 840px;
  }

  .chemrytfcm-structure-split {
    grid-template-columns: 1fr;
  }
}

/* Scientist-first compact override layer: module UI values must stay smaller than site marketing controls. */
.chemrytfcm-page {
  font-size: 11px !important;
}

.chemrytfcm-page .chemrytfcm-topbar {
  padding: 9px 13px !important;
}

.chemrytfcm-page .chemrytfcm-kicker {
  font-size: 9px !important;
  line-height: 1.1 !important;
}

.chemrytfcm-page h1 {
  font-size: 17px !important;
}

.chemrytfcm-page h2 {
  font-size: 12px !important;
}

.chemrytfcm-page h3,
.chemrytfcm-page p,
.chemrytfcm-page label,
.chemrytfcm-page output,
.chemrytfcm-page dt,
.chemrytfcm-page dd,
.chemrytfcm-page td,
.chemrytfcm-page th,
.chemrytfcm-page span {
  font-size: 11px !important;
}

.chemrytfcm-page button,
.chemrytfcm-page .chemrytfcm-actions a {
  min-height: 21px !important;
  height: 21px !important;
  width: fit-content !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-medium, 500) !important;
  line-height: 1 !important;
  padding: 0 9px !important;
}

.chemrytfcm-page .chemrytfcm-tabs {
  gap: 4px !important;
  padding: 5px !important;
}

.chemrytfcm-page .chemrytfcm-tabs button {
  min-width: 78px !important;
}

.chemrytfcm-page input,
.chemrytfcm-page textarea,
.chemrytfcm-page select {
  font-size: 11px !important;
}

.chemrytfcm-page input,
.chemrytfcm-page select {
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 7px !important;
}

.chemrytfcm-page input[type="file"] {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.chemrytfcm-page textarea {
  min-height: 104px !important;
  line-height: 1.35 !important;
  padding: 7px !important;
}

.chemrytfcm-migration-inputs,
.chemrytfcm-clearance-controls,
.chemrytfcm-nias-inputs {
  display: grid;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid var(--chemrytfcm-line);
  border-radius: 8px;
  background: var(--chemrytfcm-panel);
}

.chemrytfcm-migration-inputs {
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) minmax(96px, 120px) minmax(150px, 190px) minmax(110px, 150px) minmax(90px, 120px) auto;
  grid-template-rows: 12px 21px;
  align-items: start;
  justify-content: start;
}

.chemrytfcm-clearance-controls {
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) auto;
  grid-template-rows: 12px 21px;
  align-items: start;
  justify-content: start;
}

.chemrytfcm-nias-inputs {
  grid-template-columns: minmax(140px, 180px) minmax(90px, 120px) minmax(90px, 120px) minmax(130px, 170px) minmax(130px, 170px) auto;
  grid-template-rows: 12px 21px;
  align-items: start;
  justify-content: start;
}

.chemrytfcm-clearance-apply {
  min-width: 128px;
  min-height: 21px !important;
  height: 21px !important;
  width: 100% !important;
  white-space: nowrap;
}

.chemrytfcm-clearance-controls select {
  min-height: 21px !important;
  height: 21px !important;
  width: 100%;
  border-color: #8fbbe5 !important;
  background:
    linear-gradient(180deg, #ffffff, #f3f9ff),
    linear-gradient(90deg, rgba(25, 118, 210, 0.08), rgba(25, 118, 210, 0));
  color: var(--chemrytfcm-ink);
  font-weight: var(--chemrytfcm-weight-semibold);
  cursor: pointer;
}

.chemrytfcm-clearance-pills {
  display: grid;
  gap: 6px;
  margin: -2px 0 8px;
  padding: 7px 8px;
  border: 1px solid #d9e7f4;
  border-radius: 8px;
  background: #f8fbfe;
}

.chemrytfcm-clearance-pills > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.chemrytfcm-clearance-pills span {
  min-width: 78px;
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 1.2;
}

.chemrytfcm-page .chemrytfcm-clearance-pills button {
  min-height: 23px !important;
  height: 23px !important;
  border-color: #b9d4ed;
  border-radius: 999px;
  background: #ffffff;
  color: #16446d;
  font-size: 10px !important;
  padding: 0 10px !important;
  white-space: nowrap;
}

.chemrytfcm-page .chemrytfcm-clearance-pills button:hover,
.chemrytfcm-page .chemrytfcm-clearance-pills button.is-active {
  border-color: var(--chemrytfcm-blue);
  background: var(--chemrytfcm-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.14);
}

.chemrytfcm-migration-run {
  min-width: 150px;
  min-height: 21px !important;
  height: 21px !important;
  width: 100% !important;
  margin-bottom: 0;
  white-space: nowrap;
}

.chemrytfcm-nias-run {
  min-width: 140px;
  min-height: 21px !important;
  height: 21px !important;
  width: 100% !important;
  margin-bottom: 0;
  white-space: nowrap;
}

.chemrytfcm-migration-inputs input,
.chemrytfcm-migration-inputs select,
.chemrytfcm-nias-inputs input,
.chemrytfcm-nias-inputs select {
  min-height: 21px !important;
  height: 21px !important;
  width: 100%;
}

.chemrytfcm-migration-inputs label span,
.chemrytfcm-clearance-controls label span,
.chemrytfcm-nias-inputs label span,
.chemrytfcm-control-action > span {
  color: var(--chemrytfcm-muted);
  font-size: 10px;
  font-weight: var(--chemrytfcm-weight-semibold);
  line-height: 12px;
  height: 12px;
}

.chemrytfcm-migration-inputs label,
.chemrytfcm-clearance-controls label,
.chemrytfcm-nias-inputs label,
.chemrytfcm-control-action {
  display: contents;
}

.chemrytfcm-control-action > span {
  visibility: hidden;
}

.chemrytfcm-migration-inputs label > span,
.chemrytfcm-migration-inputs .chemrytfcm-control-action > span,
.chemrytfcm-clearance-controls label > span,
.chemrytfcm-clearance-controls .chemrytfcm-control-action > span,
.chemrytfcm-nias-inputs label > span,
.chemrytfcm-nias-inputs .chemrytfcm-control-action > span {
  grid-row: 1;
}

.chemrytfcm-migration-inputs label > input,
.chemrytfcm-migration-inputs label > select,
.chemrytfcm-migration-inputs .chemrytfcm-control-action > button,
.chemrytfcm-clearance-controls label > select,
.chemrytfcm-clearance-controls .chemrytfcm-control-action > button,
.chemrytfcm-nias-inputs label > input,
.chemrytfcm-nias-inputs label > select,
.chemrytfcm-nias-inputs .chemrytfcm-control-action > button {
  grid-row: 2;
  align-self: stretch;
}

.chemrytfcm-clearance-controls label:nth-of-type(1) > *,
.chemrytfcm-migration-inputs label:nth-of-type(1) > *,
.chemrytfcm-nias-inputs label:nth-of-type(1) > * {
  grid-column: 1;
}

.chemrytfcm-clearance-controls label:nth-of-type(2) > *,
.chemrytfcm-migration-inputs label:nth-of-type(2) > *,
.chemrytfcm-nias-inputs label:nth-of-type(2) > * {
  grid-column: 2;
}

.chemrytfcm-clearance-controls .chemrytfcm-control-action > * {
  grid-column: 3;
}

.chemrytfcm-migration-inputs label:nth-of-type(3) > * {
  grid-column: 3;
}

.chemrytfcm-nias-inputs label:nth-of-type(3) > * {
  grid-column: 3;
}

.chemrytfcm-migration-inputs label:nth-of-type(4) > * {
  grid-column: 4;
}

.chemrytfcm-nias-inputs label:nth-of-type(4) > * {
  grid-column: 4;
}

.chemrytfcm-migration-inputs label:nth-of-type(5) > * {
  grid-column: 5;
}

.chemrytfcm-nias-inputs label:nth-of-type(5) > * {
  grid-column: 5;
}

.chemrytfcm-nias-inputs .chemrytfcm-control-action > * {
  grid-column: 6;
}

.chemrytfcm-migration-inputs label:nth-of-type(6) > * {
  grid-column: 6;
}

.chemrytfcm-migration-inputs .chemrytfcm-control-action > * {
  grid-column: 7;
}

@media (max-width: 980px) {
  .chemrytfcm-migration-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 620px) {
  .chemrytfcm-migration-inputs,
  .chemrytfcm-clearance-controls,
  .chemrytfcm-nias-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .chemrytfcm-migration-inputs label,
  .chemrytfcm-clearance-controls label,
  .chemrytfcm-nias-inputs label,
  .chemrytfcm-control-action {
    display: grid;
    grid-template-rows: 12px 21px;
    gap: 4px;
  }

  .chemrytfcm-migration-inputs label > *,
  .chemrytfcm-migration-inputs .chemrytfcm-control-action > *,
  .chemrytfcm-clearance-controls label > *,
  .chemrytfcm-clearance-controls .chemrytfcm-control-action > *,
  .chemrytfcm-nias-inputs label > *,
  .chemrytfcm-nias-inputs .chemrytfcm-control-action > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

.chemrytfcm-page .chemrytfcm-selfies-editor textarea {
  min-height: 24px !important;
  max-height: 32px !important;
  line-height: 1.25 !important;
  padding-block: 5px !important;
}

.chemrytfcm-page .chemrytfcm-editor-panel,
.chemrytfcm-page .chemrytfcm-input-panel,
.chemrytfcm-page .chemrytfcm-control-panel,
.chemrytfcm-page .chemrytfcm-panel,
.chemrytfcm-page .chemrytfcm-molecule-info,
.chemrytfcm-page .chemrytfcm-tool-row {
  padding: 8px !important;
}

.chemrytfcm-page .chemrytfcm-panel-head {
  margin-bottom: 6px !important;
}

.chemrytfcm-page .chemrytfcm-badge,
.chemrytfcm-page .chemrytfcm-rule-list span {
  min-height: 20px !important;
  font-size: 10px !important;
  padding: 0 6px !important;
}

.chemrytfcm-page th,
.chemrytfcm-page td {
  padding: 6px 7px !important;
  line-height: 1.25 !important;
}

.chemrytfcm-page .chemrytfcm-mode-toggle label {
  min-height: 21px !important;
  height: 21px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-medium, 500) !important;
  padding: 0 7px !important;
}

.chemrytfcm-page .chemrytfcm-molecule-mode label {
  min-height: 21px !important;
  height: 21px !important;
  width: auto !important;
  min-width: fit-content !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytfcm-weight-medium, 500) !important;
  padding: 0 8px !important;
}

.chemrytfcm-page .chemrytfcm-mode-toggle input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
}

.chemrytfcm-page .chemrytfcm-molecule-mode input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  padding: 0 !important;
}

.chemrytfcm-page .chemrytfcm-summary-grid {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.chemrytfcm-page .chemrytfcm-metric-card {
  min-height: 42px !important;
  gap: 2px !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
}

.chemrytfcm-page .chemrytfcm-metric-card span {
  color: var(--chemrytfcm-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.chemrytfcm-page .chemrytfcm-metric-card strong {
  font-size: 11px !important;
  font-weight: var(--chemrytfcm-weight-semibold) !important;
  line-height: 1.2 !important;
}

.chemrytfcm-page .chemrytfcm-transport-point {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

.chemrytfcm-page .chemrytfcm-copy-icon {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
}

