/* Copyright Chemryt Informatics Private Limited */
/* ChemrytSCI scientific UI rule: keep molecule controls compact so structures, identities, and measured values stay visually primary. */
:root {
  --chemrytsci-ink: var(--chemrytiq-text, #12304d);
  --chemrytsci-muted: var(--chemrytiq-text-soft, #445d73);
  --chemrytsci-soft-muted: var(--chemrytiq-text-muted, #6f8498);
  --chemrytsci-line: var(--chemrytiq-border, #d7e3ef);
  --chemrytsci-line-strong: var(--chemrytiq-border-strong, #c5d4e5);
  --chemrytsci-panel: var(--chemrytiq-surface, #ffffff);
  --chemrytsci-soft: var(--chemrytiq-surface-soft, #f7fbff);
  --chemrytsci-blue: #1976d2;
  --chemrytsci-blue-soft: #eef6ff;
  --chemrytsci-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --chemrytsci-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. */
  --chemrytsci-align-left: 30px;
  --chemrytsci-align-right: 15px;
  --chemrytsci-align-width: auto;
  --chemrytsci-align-trim: 3px;
  --chemrytsci-weight-regular: 400;
  --chemrytsci-weight-medium: 500;
  --chemrytsci-weight-semibold: 600;
  --chemrytsci-weight-heading: 700;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

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

.chemrytsci-shell {
  /* Keep this shell tied to --chemrytsci-align-* from the measured header logo/content line.
     Wrapped in min(100%, ...) so an unmeasured/invalid --chemrytsci-align-width (e.g. before
     JS runs, or if it fails) can never make the shell wider than the viewport. */
  box-sizing: border-box;
  width: min(100%, calc(var(--chemrytsci-align-width) - var(--chemrytsci-align-trim))) !important;
  max-width: 100% !important;
  margin: 1.25rem auto 3rem var(--chemrytsci-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(--chemrytsci-align-width) - var(--chemrytsci-align-trim)) !important;
  max-width: none !important;
  margin-left: var(--chemrytsci-align-left) !important;
  margin-right: auto !important;
  padding-inline: 0 !important;
}

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

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

.chemrytsci-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;
}

.chemrytsci-layout-debug {
  width: 100%;
  margin: 0 auto 12px;
  border: 1px solid #b9d5ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--chemrytsci-shadow);
  padding: 9px;
}

.chemrytsci-layout-debug[hidden] {
  display: none !important;
}

.chemrytsci-layout-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chemrytsci-layout-debug article {
  min-width: 0;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #fbfdff;
  padding: 7px;
}

.chemrytsci-layout-debug article > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--chemrytsci-ink);
  font-size: 11px;
  font-weight: var(--chemrytsci-weight-semibold);
  line-height: 1.2;
}

.chemrytsci-layout-debug dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.chemrytsci-layout-debug dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.chemrytsci-layout-debug dt,
.chemrytsci-layout-debug dd {
  margin: 0;
  color: var(--chemrytsci-muted);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytsci-layout-debug dt {
  font-weight: var(--chemrytsci-weight-semibold);
}

.chemrytsci-layout-debug dd {
  color: var(--chemrytsci-ink);
  overflow-wrap: anywhere;
}

.chemrytsci-layout-debug .is-ok {
  color: #047857 !important;
  font-weight: var(--chemrytsci-weight-semibold);
}

.chemrytsci-layout-debug .is-warn {
  color: #b45309 !important;
  font-weight: var(--chemrytsci-weight-semibold);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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(--chemrytsci-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px;
}

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

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

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

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

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

.chemrytsci-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-blue);
  cursor: pointer;
}

.chemrytsci-compare-toggle input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.chemrytsci-compare-panel {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--chemrytsci-line);
  border-radius: 8px;
  background: var(--chemrytsci-soft);
}

.chemrytsci-compare-baseline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--chemrytsci-muted);
}

.chemrytsci-compare-baseline strong {
  color: var(--chemrytsci-ink);
}

.chemrytsci-compare-panel .chemrytsci-loader-fields {
  margin-bottom: 10px;
}

/* Interactive Phase Behavior & Formulation Window — visual bar showing the
   Insoluble / Clear Micellar / Cloudy zones across a -10..60 C range, with a
   marker for the chemist's selected use temperature. */
.chemrytsci-phase-window {
  margin-bottom: 12px;
  padding: 10px 12px 14px;
  border: 1px solid var(--chemrytsci-line);
  border-radius: 8px;
  background: #ffffff;
}

.chemrytsci-phase-window-title {
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
  margin-bottom: 8px;
}

.chemrytsci-phase-window-bar {
  position: relative;
  height: 26px;
  margin-bottom: 16px;
}

.chemrytsci-phase-window-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--chemrytsci-line-strong);
}

.chemrytsci-phase-window-zone-label {
  position: absolute;
  top: 100%;
  margin-top: 3px;
  font-size: 9px;
  color: var(--chemrytsci-muted);
  white-space: nowrap;
  transform: translateX(-50%);
}

.chemrytsci-phase-window-zone-label:first-child {
  transform: translateX(0);
}

.chemrytsci-phase-window-zone-label.is-last {
  transform: translateX(-100%);
}

.chemrytsci-phase-window-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #12304d;
  z-index: 2;
}

.chemrytsci-phase-window-marker::after {
  content: attr(data-temp-label);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: #12304d;
  white-space: nowrap;
  background: #ffffff;
  padding: 0 3px;
  border-radius: 3px;
}

.chemrytsci-phase-window-note {
  font-size: 11px;
  font-weight: var(--chemrytsci-weight-medium);
}

.chemrytsci-phase-window-note.pass { color: #1d7a3f; }
.chemrytsci-phase-window-note.warn { color: #9a6a00; }
.chemrytsci-phase-window-note.risk { color: #b3261e; }

/* Formulation Sandbox: always-visible composition sliders (not collapsed like
   the environmental-parameter form below) so blending is part of the main flow. */
.chemrytsci-sandbox {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--chemrytsci-line);
  background: #f7faf9;
}

.chemrytsci-sandbox-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.chemrytsci-sandbox-head strong {
  font-size: 12px;
  color: var(--chemrytsci-ink);
}

.chemrytsci-sandbox-hint {
  font-size: 10.5px;
  color: var(--chemrytsci-muted);
  line-height: 1.35;
}

.chemrytsci-sandbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.chemrytsci-sandbox-label {
  font-size: 11px;
  color: var(--chemrytsci-ink);
}

.chemrytsci-sandbox-cosurf-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--chemrytsci-ink);
}

.chemrytsci-sandbox-cosurf-select select {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--chemrytsci-line);
}

.chemrytsci-sandbox-pct {
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-blue);
  min-width: 36px;
  text-align: right;
}

.chemrytsci-sandbox-slider {
  width: 100%;
  accent-color: var(--chemrytsci-blue);
}

.chemrytsci-sandbox-slider:disabled {
  opacity: 0.45;
}

/* Per-tab parameter forms: collapsed by default (one-click Analyze works off the
   pre-filled defaults already in each field); user opens this only to tune inputs. */
.chemrytsci-params {
  margin-bottom: 10px;
}

.chemrytsci-params > summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-blue);
  padding: 7px 10px;
  border: 1px solid var(--chemrytsci-line);
  border-radius: 7px;
  background: var(--chemrytsci-soft);
}

.chemrytsci-params > summary::-webkit-details-marker {
  display: none;
}

.chemrytsci-params > summary::before {
  content: "▸ ";
}

.chemrytsci-params[open] > summary::before {
  content: "▾ ";
}

.chemrytsci-params > summary:hover {
  border-color: var(--chemrytsci-blue);
}

.chemrytsci-params > .chemrytsci-loader-fields {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--chemrytsci-line);
  border-radius: 7px;
  background: #ffffff;
}

@media (max-width: 920px) {
  .chemrytsci-loader-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .chemrytsci-loader-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.chemrytsci-resolved-name {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  width: 100%;
  border: 1px solid var(--chemrytsci-line-strong);
  border-radius: 7px;
  background: var(--chemrytsci-surface-muted, #f3f4f6);
  color: var(--chemrytsci-ink);
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-regular);
  padding: 0 9px;
  box-sizing: border-box;
}

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

.chemrytsci-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(--chemrytsci-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--chemrytsci-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: var(--chemrytsci-weight-medium);
  line-height: 1.15;
  padding: 0 10px;
  white-space: nowrap;
}

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

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

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

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

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

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

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

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

.chemrytsci-loader-readouts > div:not(.chemrytsci-prediction-actions),
.chemrytsci-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-editor-frame.is-depict {
  cursor: crosshair;
}

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

.chemrytsci-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;
}

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

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

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

.chemrytsci-jsme > *,
.chemrytsci-jsme iframe,
.chemrytsci-jsme table,
.chemrytsci-jsme svg {
  max-width: 100% !important;
}

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

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

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

.chemrytsci-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(--chemrytsci-muted);
  font-size: 10px !important;
  line-height: 1.2;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytsci-jsme-edit-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none !important;
  place-items: center;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden;
  border: 0;
  border-radius: 8px !important;
  background: #ffffff;
  cursor: crosshair !important;
  padding: 0 !important;
}

.chemrytsci-editor-frame.is-depict .chemrytsci-jsme-edit-layer {
  display: grid !important;
}

.chemrytsci-editor-frame.is-3d .chemrytsci-jsme-edit-layer {
  display: none !important;
}

.chemrytsci-jsme-edit-layer svg {
  width: min(92%, 620px);
  height: 260px;
}

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

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

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

.chemrytsci-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);
}

.chemrytsci-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);
}

.chemrytsci-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);
}

.chemrytsci-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);
}

.chemrytsci-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);
}

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

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

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

.chemrytsci-jsme-depict-empty {
  color: var(--chemrytsci-muted);
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-medium);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-tabs button {
  min-width: 88px;
  border-color: #b9d5ea;
  border-radius: 8px;
  background: #ffffff;
  color: #145074;
}

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

.chemrytsci-panel {
  margin-bottom: 12px;
  /* Reserve consistent space across tabs so switching between a tall and a short
     panel doesn't visibly jump the page height. */
  min-height: 420px;
  animation: chemrytsci-panel-fade-in 0.12s ease;
}

@keyframes chemrytsci-panel-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.chemrytsci-result-table-wrap {
  overflow: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  /* Reserve roughly the height of a loaded 10-row table so the empty/loading
     placeholder doesn't collapse-then-expand when the async analysis resolves. */
  min-height: 360px;
}

/* ---- Actionable Triage top bar ----
   A 2-second, before-the-numbers scan of the most decision-relevant flags,
   rendered above the Go/No-Go banner and the dashboard cards. */
.chemrytsci-triage-panel {
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.chemrytsci-triage-row {
  display: grid;
  grid-template-columns: 150px 90px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #eef3f8;
  background: #ffffff;
}

.chemrytsci-triage-row:last-child {
  border-bottom: none;
}

.chemrytsci-triage-row.risk { background: #fffaf9; }
.chemrytsci-triage-row.warn { background: #fffcf5; }

.chemrytsci-triage-label {
  font-size: 11.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
  white-space: nowrap;
}

.chemrytsci-triage-status {
  font-size: 10px;
  font-weight: var(--chemrytsci-weight-semibold);
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  width: fit-content;
}

.chemrytsci-triage-status.pass { background: #e6f6ec; color: #1d7a3f; }
.chemrytsci-triage-status.warn { background: #fff1cf; color: #9a6a00; }
.chemrytsci-triage-status.risk { background: #fde2df; color: #b3261e; }

.chemrytsci-triage-quicktake {
  font-size: 11px;
  color: var(--chemrytsci-muted);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .chemrytsci-triage-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---- Scientist-first decision dashboard (Raw Materials) ----
   Replaces the flat text table with a scannable Go/No-Go banner + visual
   cards (HLB gauge, blend split bar, synergy badge, packing geometry badge)
   so a chemist gets an instant signal instead of reading paragraphs. */
.chemrytsci-gonogo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: var(--chemrytsci-weight-semibold);
}

.chemrytsci-gonogo-banner .chemrytsci-gonogo-icon {
  font-size: 18px;
  line-height: 1;
}

.chemrytsci-gonogo-banner.go { background: #e6f6ec; color: #1d7a3f; border: 1px solid #b6e3c6; }
.chemrytsci-gonogo-banner.caution { background: #fff6e0; color: #9a6a00; border: 1px solid #f4dfa0; }
.chemrytsci-gonogo-banner.no-go { background: #fde9e7; color: #b3261e; border: 1px solid #f3c4c0; }

.chemrytsci-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.chemrytsci-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #ffffff;
}

.chemrytsci-dash-card {
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chemrytsci-dash-card.risk { border-color: #f3c4c0; background: #fffaf9; }
.chemrytsci-dash-card.warn { border-color: #f4dfa0; background: #fffcf5; }

.chemrytsci-dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.chemrytsci-dash-card-title {
  font-size: 11.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
  line-height: 1.3;
}

.chemrytsci-dash-card-badge {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: var(--chemrytsci-weight-semibold);
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
}

.chemrytsci-dash-card-badge.pass { background: #e6f6ec; color: #1d7a3f; }
.chemrytsci-dash-card-badge.warn { background: #fff1cf; color: #9a6a00; }
.chemrytsci-dash-card-badge.risk { background: #fde2df; color: #b3261e; }

.chemrytsci-dash-card-detail {
  font-size: 10px;
  color: var(--chemrytsci-muted);
  line-height: 1.35;
}

.chemrytsci-performance-card {
  min-height: 0;
}

.chemrytsci-performance-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chemrytsci-performance-values span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f6fbff;
  border: 1px solid #e1ebf3;
  color: var(--chemrytsci-ink);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytsci-regulatory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #ffffff;
}

.chemrytsci-regulatory-card {
  min-height: 0;
}

.chemrytsci-regulatory-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chemrytsci-regulatory-values span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f6fbff;
  border: 1px solid #e1ebf3;
  color: var(--chemrytsci-ink);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytsci-stability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #ffffff;
}

.chemrytsci-stability-card {
  min-height: 0;
}

.chemrytsci-stability-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chemrytsci-stability-values span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f6fbff;
  border: 1px solid #e1ebf3;
  color: var(--chemrytsci-ink);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytsci-applications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #ffffff;
}

.chemrytsci-applications-card {
  min-height: 0;
}

.chemrytsci-applications-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chemrytsci-applications-values span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f6fbff;
  border: 1px solid #e1ebf3;
  color: var(--chemrytsci-ink);
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .chemrytsci-performance-grid,
  .chemrytsci-regulatory-grid,
  .chemrytsci-stability-grid,
  .chemrytsci-applications-grid {
    grid-template-columns: 1fr;
  }
}

/* HLB gauge: 0-20 horizontal bar with a marker at the computed value */
.chemrytsci-hlb-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #f4c7c3 0%, #f4c7c3 15%, #bfe3cc 15%, #bfe3cc 65%, #c9dcf4 65%, #c9dcf4 100%);
  margin: 6px 0 14px;
}

.chemrytsci-hlb-gauge-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #12304d;
}

.chemrytsci-hlb-gauge-marker::after {
  content: attr(data-value-label);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: #12304d;
  white-space: nowrap;
}

.chemrytsci-hlb-gauge-application {
  font-size: 10.5px;
  font-weight: var(--chemrytsci-weight-medium);
  color: var(--chemrytsci-blue);
}

/* Blend split bar: visual A/B ratio instead of "29.8% / 70.2%" buried in text */
.chemrytsci-blend-bar {
  display: flex;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  font-size: 9.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: #ffffff;
  margin: 4px 0;
}

.chemrytsci-blend-bar-a {
  background: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}

.chemrytsci-blend-bar-b {
  background: #e07a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}

.chemrytsci-blend-legend {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--chemrytsci-muted);
}

.chemrytsci-synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e6f6ec;
  color: #1d7a3f;
  font-size: 10.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  width: fit-content;
}

.chemrytsci-packing-geometry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
}

.chemrytsci-packing-geometry .chemrytsci-packing-pc {
  font-size: 10px;
  font-weight: var(--chemrytsci-weight-regular);
  color: var(--chemrytsci-muted);
}

/* ---- Grouped Insight Cards: consolidate related data points (Krafft/Use Temp/PIT,
   Packing Parameter/micelle shape) into one scannable visual per real-world question,
   instead of three separate flat rows the chemist has to mentally cross-reference. */
.chemrytsci-insight-card {
  grid-column: 1 / -1;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chemrytsci-insight-card-title {
  font-size: 12.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
}

/* Solubility & Temperature Window: thermometer-style timeline */
.chemrytsci-temp-timeline {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: #f4c7c3;
  margin: 10px 0 26px;
}

.chemrytsci-temp-timeline-safe {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #bfe3cc;
  border-radius: 7px;
}

.chemrytsci-temp-timeline-point {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: #12304d;
}

.chemrytsci-temp-timeline-point .chemrytsci-temp-timeline-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: var(--chemrytsci-weight-medium);
  color: var(--chemrytsci-muted);
  white-space: nowrap;
}

.chemrytsci-temp-timeline-marker {
  position: absolute;
  top: -9px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #12304d;
  transform: translateX(-6px);
}

.chemrytsci-temp-timeline-marker .chemrytsci-temp-timeline-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: #12304d;
  white-space: nowrap;
  background: #ffffff;
  padding: 0 3px;
  border-radius: 3px;
}

.chemrytsci-insight-note {
  font-size: 11px;
  font-weight: var(--chemrytsci-weight-medium);
}

.chemrytsci-insight-note.pass { color: #1d7a3f; }
.chemrytsci-insight-note.warn { color: #9a6a00; }
.chemrytsci-insight-note.risk { color: #b3261e; }

/* Micellar Architecture: shape icon + Pc gauge */
.chemrytsci-micelle-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chemrytsci-micelle-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chemrytsci-micelle-info {
  flex: 1 1 auto;
  min-width: 0;
}

.chemrytsci-micelle-geometry-label {
  font-size: 12.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
  margin-bottom: 6px;
}

.chemrytsci-pc-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #c9dcf4 0%, #c9dcf4 27.7%, #bfe3cc 27.7%, #bfe3cc 41.6%, #f0d6f0 41.6%, #f0d6f0 66.6%, #f4c7c3 66.6%, #f4c7c3 100%);
}

.chemrytsci-pc-gauge-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #12304d;
}

.chemrytsci-pc-gauge-marker::after {
  content: attr(data-pc-label);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: #12304d;
  white-space: nowrap;
}

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

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

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

/* Table columns after the Req/ID column was removed: 1=Result, 2=Values, 3=Status. */
.chemrytsci-result-table th:nth-child(3),
.chemrytsci-result-table td:nth-child(3) {
  width: 88px;
}

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

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

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

/* Compare with Benchmark: a dedicated table class so its 3 columns (Result /
   Baseline / Candidate) never collide with .chemrytsci-result-table's nth-child(3)
   width:88px rule (meant for that table's Status column) — that collision was
   squeezing the Candidate column to 88px, forcing severe text wrap and bloating
   every row's height with blank space. */
.chemrytsci-compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}

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

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

.chemrytsci-compare-table th:nth-child(1),
.chemrytsci-compare-table td:nth-child(1) {
  width: 22%;
}

.chemrytsci-compare-table th:nth-child(2),
.chemrytsci-compare-table td:nth-child(2),
.chemrytsci-compare-table th:nth-child(3),
.chemrytsci-compare-table td:nth-child(3) {
  width: 39%;
}

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

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

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

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

.chemrytsci-formulation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #ffffff;
}

.chemrytsci-formulation-card {
  min-height: 0;
}

.chemrytsci-formulation-card-phase {
  margin-top: -2px;
  color: var(--chemrytsci-muted);
  font-size: 10px;
  line-height: 1.25;
}

.chemrytsci-formulation-card-property {
  color: var(--chemrytsci-ink);
  font-size: 12px;
  font-weight: var(--chemrytsci-weight-semibold);
  line-height: 1.25;
}

.chemrytsci-formulation-action {
  display: grid;
  gap: 3px;
  margin-top: 2px;
  padding: 7px 8px;
  border: 1px solid #e1ebf3;
  border-radius: 6px;
  background: #f8fbfe;
}

.chemrytsci-formulation-action strong {
  color: var(--chemrytsci-ink);
  font-size: 10.5px;
  line-height: 1.35;
}

.chemrytsci-formulation-action small {
  color: var(--chemrytsci-muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .chemrytsci-formulation-grid {
    grid-template-columns: 1fr;
  }
}

/* Prescriptive Triage: "here is how to fix it" box paired with every warning,
   instead of leaving the chemist with only a Warn/Pass status. */
.chemrytsci-prescription {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 3px solid #9a6a00;
  background: #fff8e8;
}

.chemrytsci-prescription.risk {
  border-left-color: #b3261e;
  background: #fdeceb;
}

.chemrytsci-prescription-title {
  font-size: 10.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  color: var(--chemrytsci-ink);
  margin-bottom: 3px;
}

.chemrytsci-prescription-line {
  font-size: 10px;
  color: var(--chemrytsci-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.chemrytsci-prescription-line strong {
  color: var(--chemrytsci-ink);
}

/* Smart Substitution Engine: one-click path to load a more resilient
   alternative molecule and re-run the failing test. */
.chemrytsci-prescription-switch {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 4px 9px;
  border: 1px solid #9a6a00;
  border-radius: 5px;
  background: #ffffff;
  color: #9a5b05;
  font-size: 10px;
  font-weight: var(--chemrytsci-weight-semibold);
  cursor: pointer;
}

.chemrytsci-prescription.risk .chemrytsci-prescription-switch {
  border-color: #b3261e;
  color: #b91c1c;
}

.chemrytsci-prescription-switch:hover {
  background: #fff4dc;
}

.chemrytsci-prescription.risk .chemrytsci-prescription-switch:hover {
  background: #fdeceb;
}

.chemrytsci-prescription-alt-reason {
  margin-top: 3px;
  font-style: italic;
}

.chemrytsci-remediation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.chemrytsci-salt-curve {
  margin-top: 7px;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #fbfdff;
  padding: 6px;
}

.chemrytsci-salt-curve svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.chemrytsci-salt-curve text {
  fill: var(--chemrytsci-muted);
  font-size: 9px;
  font-weight: var(--chemrytsci-weight-medium);
}

.chemrytsci-salt-curve .axis {
  stroke: #8fa8bd;
  stroke-width: 1.3;
}

.chemrytsci-salt-curve .curve {
  fill: none;
  stroke: #1976d2;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chemrytsci-salt-curve .plateau {
  stroke: #1d7a3f;
  stroke-width: 3;
  stroke-linecap: round;
}

.chemrytsci-salt-curve .peak {
  fill: #1d7a3f;
  stroke: #ffffff;
  stroke-width: 2;
}

.chemrytsci-salt-curve .current {
  fill: #1d7a3f;
  stroke: #ffffff;
  stroke-width: 2;
}

.chemrytsci-salt-curve .current.warn {
  fill: #b3261e;
}

.chemrytsci-salt-curve .peak-label {
  fill: #1d7a3f;
  font-weight: var(--chemrytsci-weight-semibold);
}

.chemrytsci-salt-curve .current-label {
  fill: #b3261e;
  font-weight: var(--chemrytsci-weight-semibold);
}

.chemrytsci-salt-curve-note {
  color: var(--chemrytsci-muted);
  font-size: 9.5px;
  line-height: 1.3;
}

.chemrytsci-phase-map {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.chemrytsci-phase-map-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--chemrytsci-ink);
  font-size: 9.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  line-height: 1.2;
}

.chemrytsci-phase-map-track {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  min-height: 28px;
}

.chemrytsci-phase-map-segment {
  height: 4px;
  background: #9fc4df;
}

.chemrytsci-phase-map-segment.start {
  border-radius: 999px 0 0 999px;
}

.chemrytsci-phase-map-segment.end {
  border-radius: 0 999px 999px 0;
}

.chemrytsci-phase-map-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #f0a9a3;
  border-radius: 6px;
  background: repeating-linear-gradient(
    45deg,
    #fde2df,
    #fde2df 6px,
    #fff7f6 6px,
    #fff7f6 12px
  );
  color: #b3261e;
  font-size: 9.5px;
  font-weight: var(--chemrytsci-weight-semibold);
  line-height: 1.15;
  text-align: center;
}

.chemrytsci-phase-map-note {
  color: var(--chemrytsci-muted);
  font-size: 9.5px;
  line-height: 1.3;
}

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

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

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

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

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

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

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

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

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

.chemrytsci-structure-info-row dd {
  display: grid;
  gap: 4px;
}

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

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

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

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

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

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

.chemrytsci-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;
}

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

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

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

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

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

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

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

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

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

.chemrytsci-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);
}

.chemrytsci-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(--chemrytsci-weight-semibold);
  line-height: 1;
  padding: 3px 5px;
  text-transform: uppercase;
}

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

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

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

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

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

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

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

.chemrytsci-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(--chemrytsci-weight-semibold);
  line-height: 1;
}

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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%);
}

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

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

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

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

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

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

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

.chemrytsci-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%);
}

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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(--chemrytsci-blue);
  font-size: 9px;
  font-weight: 800;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-reg-suggestion-grid article,
.chemrytsci-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytsci-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(--chemrytsci-weight-medium);
  line-height: 1.2;
  padding: 3px 5px;
}

.chemrytsci-report {
  width: 100%;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--chemrytsci-line-strong);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--chemrytsci-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) {
  .chemrytsci-shell {
    width: var(--chemrytsci-align-width) !important;
    margin: 1rem auto 2rem var(--chemrytsci-align-left) !important;
    padding-inline: 0 !important;
  }

  .chemrytsci-layout-debug-grid {
    grid-template-columns: 1fr;
  }

  .chemrytsci-loader-layout {
    grid-template-columns: 1fr;
  }

  .chemrytsci-molecule-info {
    height: auto;
    min-height: 0;
  }

  .chemrytsci-editor-frame,
  .chemrytsci-jsme,
  .chemrytsci-3d-viewer {
    min-height: 260px;
    height: 260px;
  }

  .chemrytsci-panel-head,
  .chemrytsci-loader-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chemrytsci-summary-grid,
  .chemrytsci-card-grid {
    grid-template-columns: 1fr;
  }

  .chemrytsci-requirement-table-wrap {
    max-height: 360px;
  }

  .chemrytsci-requirement-table {
    min-width: 760px;
  }

  .chemrytsci-structure-split {
    grid-template-columns: 1fr;
  }

  .chemrytsci-structure-info-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (min-width: 821px) and (max-width: 1060px) {
  .chemrytsci-card-grid,
  .chemrytsci-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytsci-requirement-table {
    min-width: 840px;
  }

  .chemrytsci-structure-split {
    grid-template-columns: 1fr;
  }
}

/* Scientist-first compact override layer: module UI values must stay smaller than site marketing controls. */
.chemrytsci-page {
  font-size: 11px !important;
}

.chemrytsci-page .chemrytsci-topbar {
  padding: 9px 13px !important;
}

.chemrytsci-page .chemrytsci-kicker {
  font-size: 9px !important;
  line-height: 1.1 !important;
}

.chemrytsci-page h1 {
  font-size: 17px !important;
}

.chemrytsci-page h2 {
  font-size: 12px !important;
}

.chemrytsci-page h3,
.chemrytsci-page p,
.chemrytsci-page label,
.chemrytsci-page output,
.chemrytsci-page dt,
.chemrytsci-page dd,
.chemrytsci-page td,
.chemrytsci-page th,
.chemrytsci-page span {
  font-size: 11px !important;
}

.chemrytsci-page button,
.chemrytsci-page .chemrytsci-actions a {
  min-height: 21px !important;
  height: 21px !important;
  width: fit-content !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytsci-weight-medium, 500) !important;
  line-height: 1 !important;
  padding: 0 9px !important;
}

.chemrytsci-page .chemrytsci-tabs {
  gap: 4px !important;
  padding: 5px !important;
}

.chemrytsci-page .chemrytsci-tabs button {
  min-width: 78px !important;
}

.chemrytsci-page input,
.chemrytsci-page textarea,
.chemrytsci-page select {
  font-size: 11px !important;
}

.chemrytsci-page input,
.chemrytsci-page select {
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 7px !important;
}

.chemrytsci-page input[type="file"] {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.chemrytsci-page textarea {
  min-height: 104px !important;
  line-height: 1.35 !important;
  padding: 7px !important;
}

.chemrytsci-page .chemrytsci-selfies-editor textarea {
  min-height: 24px !important;
  max-height: 32px !important;
  line-height: 1.25 !important;
  padding-block: 5px !important;
}

.chemrytsci-page .chemrytsci-editor-panel,
.chemrytsci-page .chemrytsci-input-panel,
.chemrytsci-page .chemrytsci-control-panel,
.chemrytsci-page .chemrytsci-panel,
.chemrytsci-page .chemrytsci-molecule-info,
.chemrytsci-page .chemrytsci-tool-row {
  padding: 8px !important;
}

.chemrytsci-page .chemrytsci-panel-head {
  margin-bottom: 6px !important;
}

.chemrytsci-page .chemrytsci-badge,
.chemrytsci-page .chemrytsci-rule-list span {
  min-height: 20px !important;
  font-size: 10px !important;
  padding: 0 6px !important;
}

.chemrytsci-page th,
.chemrytsci-page td {
  padding: 6px 7px !important;
  line-height: 1.25 !important;
}

.chemrytsci-page .chemrytsci-mode-toggle label {
  min-height: 21px !important;
  height: 21px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytsci-weight-medium, 500) !important;
  padding: 0 7px !important;
}

.chemrytsci-page .chemrytsci-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(--chemrytsci-weight-medium, 500) !important;
  padding: 0 8px !important;
}

.chemrytsci-page .chemrytsci-mode-toggle input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
}

.chemrytsci-page .chemrytsci-molecule-mode input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  padding: 0 !important;
}

.chemrytsci-page .chemrytsci-summary-grid {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.chemrytsci-page .chemrytsci-metric-card {
  min-height: 42px !important;
  gap: 2px !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
}

.chemrytsci-page .chemrytsci-metric-card span {
  color: var(--chemrytsci-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.chemrytsci-page .chemrytsci-metric-card strong {
  font-size: 11px !important;
  font-weight: var(--chemrytsci-weight-semibold) !important;
  line-height: 1.2 !important;
}

.chemrytsci-page .chemrytsci-transport-point {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* Overflow safety net: ChemrytSCI has more tabs/longer labels than ChemrytAC's
   original set — never let a single button or field force the page wider than
   the viewport (the cause of the oversized/clipped mobile layout bug). */
.chemrytsci-shell,
.chemrytsci-page {
  overflow-x: hidden;
}

.chemrytsci-tabs button {
  white-space: normal;
  max-width: 100%;
}

.chemrytsci-loader-fields input,
.chemrytsci-loader-fields select {
  max-width: 100%;
}

.chemrytsci-page .chemrytsci-copy-icon {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
}
