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

* {
  box-sizing: border-box;
}

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

.chemrytac-shell {
  /* Keep this shell tied to --chemrytac-align-* from the measured header logo/content line. */
  box-sizing: border-box;
  width: calc(var(--chemrytac-align-width) - var(--chemrytac-align-trim)) !important;
  max-width: none !important;
  margin: 1.25rem auto 3rem var(--chemrytac-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(--chemrytac-align-width) - var(--chemrytac-align-trim)) !important;
  max-width: none !important;
  margin-left: var(--chemrytac-align-left) !important;
  margin-right: auto !important;
  padding-inline: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.chemrytac-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(--chemrytac-weight-medium);
  line-height: 1.2;
  padding: 3px 5px;
}

.chemrytac-report {
  width: 100%;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--chemrytac-line-strong);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--chemrytac-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) {
  .chemrytac-shell {
    width: var(--chemrytac-align-width) !important;
    margin: 1rem auto 2rem var(--chemrytac-align-left) !important;
    padding-inline: 0 !important;
  }

  .chemrytac-layout-debug-grid {
    grid-template-columns: 1fr;
  }

  .chemrytac-loader-layout {
    grid-template-columns: 1fr;
  }

  .chemrytac-molecule-info {
    height: auto;
    min-height: 0;
  }

  .chemrytac-editor-frame,
  .chemrytac-jsme,
  .chemrytac-3d-viewer {
    min-height: 260px;
    height: 260px;
  }

  .chemrytac-panel-head,
  .chemrytac-loader-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chemrytac-summary-grid,
  .chemrytac-card-grid {
    grid-template-columns: 1fr;
  }

  .chemrytac-requirement-table-wrap {
    max-height: 360px;
  }

  .chemrytac-requirement-table {
    min-width: 760px;
  }

  .chemrytac-structure-split {
    grid-template-columns: 1fr;
  }

  .chemrytac-structure-info-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (min-width: 821px) and (max-width: 1060px) {
  .chemrytac-card-grid,
  .chemrytac-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrytac-requirement-table {
    min-width: 840px;
  }

  .chemrytac-structure-split {
    grid-template-columns: 1fr;
  }
}

/* Scientist-first compact override layer: module UI values must stay smaller than site marketing controls. */
.chemrytac-page {
  font-size: 11px !important;
}

.chemrytac-page .chemrytac-topbar {
  padding: 9px 13px !important;
}

.chemrytac-page .chemrytac-kicker {
  font-size: 9px !important;
  line-height: 1.1 !important;
}

.chemrytac-page h1 {
  font-size: 17px !important;
}

.chemrytac-page h2 {
  font-size: 12px !important;
}

.chemrytac-page h3,
.chemrytac-page p,
.chemrytac-page label,
.chemrytac-page output,
.chemrytac-page dt,
.chemrytac-page dd,
.chemrytac-page td,
.chemrytac-page th,
.chemrytac-page span {
  font-size: 11px !important;
}

.chemrytac-page button,
.chemrytac-page .chemrytac-actions a {
  min-height: 21px !important;
  height: 21px !important;
  width: fit-content !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytac-weight-medium, 500) !important;
  line-height: 1 !important;
  padding: 0 9px !important;
}

.chemrytac-page .chemrytac-tabs {
  gap: 4px !important;
  padding: 5px !important;
}

.chemrytac-page .chemrytac-tabs button {
  min-width: 78px !important;
}

.chemrytac-page input,
.chemrytac-page textarea,
.chemrytac-page select {
  font-size: 11px !important;
}

.chemrytac-page input,
.chemrytac-page select {
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 7px !important;
}

.chemrytac-page input[type="file"] {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.chemrytac-page textarea {
  min-height: 104px !important;
  line-height: 1.35 !important;
  padding: 7px !important;
}

.chemrytac-page .chemrytac-selfies-editor textarea {
  min-height: 24px !important;
  max-height: 32px !important;
  line-height: 1.25 !important;
  padding-block: 5px !important;
}

.chemrytac-page .chemrytac-editor-panel,
.chemrytac-page .chemrytac-input-panel,
.chemrytac-page .chemrytac-control-panel,
.chemrytac-page .chemrytac-panel,
.chemrytac-page .chemrytac-molecule-info,
.chemrytac-page .chemrytac-tool-row {
  padding: 8px !important;
}

.chemrytac-page .chemrytac-panel-head {
  margin-bottom: 6px !important;
}

.chemrytac-page .chemrytac-badge,
.chemrytac-page .chemrytac-rule-list span {
  min-height: 20px !important;
  font-size: 10px !important;
  padding: 0 6px !important;
}

.chemrytac-page th,
.chemrytac-page td {
  padding: 6px 7px !important;
  line-height: 1.25 !important;
}

.chemrytac-page .chemrytac-mode-toggle label {
  min-height: 21px !important;
  height: 21px !important;
  font-size: 9px !important;
  font-weight: var(--chemrytac-weight-medium, 500) !important;
  padding: 0 7px !important;
}

.chemrytac-page .chemrytac-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(--chemrytac-weight-medium, 500) !important;
  padding: 0 8px !important;
}

.chemrytac-page .chemrytac-mode-toggle input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
}

.chemrytac-page .chemrytac-molecule-mode input {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  padding: 0 !important;
}

.chemrytac-page .chemrytac-summary-grid {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.chemrytac-page .chemrytac-metric-card {
  min-height: 42px !important;
  gap: 2px !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
}

.chemrytac-page .chemrytac-metric-card span {
  color: var(--chemrytac-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.chemrytac-page .chemrytac-metric-card strong {
  font-size: 11px !important;
  font-weight: var(--chemrytac-weight-semibold) !important;
  line-height: 1.2 !important;
}

.chemrytac-page .chemrytac-transport-point {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

.chemrytac-page .chemrytac-copy-icon {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
}
