/* Copyright Chemryt Informatics Private Limited */
.chemrytksm-results {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

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

.chemrytksm-summary-card {
  border: 1px solid #cfe0ee;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 11px;
}

.chemrytksm-summary-card span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-summary-card strong {
  color: #143553;
  font-size: 12px !important;
  line-height: 1.15;
}

.chemrytksm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid #d3e0eb;
  border-radius: 12px;
  background: #f8fbfe;
  padding: 6px;
  width: 100%;
}

.chemrytksm-tabs button {
  min-width: 110px !important;
  justify-content: center !important;
  flex: 0 1 auto;
}

.chemrytksm-tabs button.is-active {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
  color: #ffffff !important;
}

.chemrytksm-tab-panels {
  display: grid;
  width: 100%;
  min-width: 0;
}

.chemrytksm-panel {
  display: none;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 12px;
  width: 100%;
  min-width: 0;
}

.chemrytksm-panel.is-active {
  display: block;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child .chemrytksm-card-head {
  grid-column: 1 / -1;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child .chemrytksm-tool-grid {
  grid-template-columns: 1fr;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child .chemrytksm-inline-actions {
  align-self: end;
  padding-bottom: 0;
}

.chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child .chemrytksm-output-stack {
  align-self: end;
}

.chemrytksm-prerun-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.chemrytksm-prerun-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.chemrytksm-prerun-panel__head strong {
  color: #143553;
  font-size: 12px !important;
}

.chemrytksm-prerun-panel__head span {
  color: #6f8498;
  font-size: 11px !important;
  white-space: nowrap;
}

.chemrytksm-prerun-panel__grid,
.chemrytksm-panel-grid,
.chemrytksm-structure-layout,
.chemrytksm-metric-grid {
  display: grid;
  gap: 10px;
}

.chemrytksm-prerun-panel__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chemrytksm-panel-grid,
.chemrytksm-structure-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Regulatory review is document-like: stack full-width sections to avoid tall, empty grid columns. */
.chemrytksm-panel[data-chemrytksm-panel="regulatory"] > .chemrytksm-panel-grid {
  grid-template-columns: minmax(0, 1fr);
}
.chemrytksm-panel[data-chemrytksm-panel="sustainability"] > .chemrytksm-panel-grid { grid-template-columns: minmax(0, 1fr); }
.chemrytksm-panel[data-chemrytksm-panel="sustainability"] > .chemrytksm-data-card { width: 100%; margin-top: 10px; }
.chemrytksm-panel[data-chemrytksm-panel="sustainability"] .chemrytksm-tool-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.chemrytksm-panel[data-chemrytksm-panel="regulatory"] > .chemrytksm-panel-grid > .chemrytksm-data-card,
.chemrytksm-panel[data-chemrytksm-panel="regulatory"] > .chemrytksm-data-card {
  width: 100%;
}

.chemrytksm-prerun-card,
.chemrytksm-data-card,
.chemrytksm-metric-card {
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  min-width: 0;
}

.chemrytksm-prerun-card h3,
.chemrytksm-data-card h3 {
  color: #143553;
  font-size: 12px !important;
  line-height: 1.2;
}

.chemrytksm-prerun-card p,
.chemrytksm-data-card p,
.chemrytksm-note-stack p {
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.chemrytksm-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chemrytksm-card-head span {
  color: #6f8498;
  font-size: 10px !important;
  text-transform: uppercase;
}

.chemrytksm-identity-table {
  display: grid;
}

.chemrytksm-identity-table > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e6eef5;
}

.chemrytksm-identity-table > div:last-child {
  border-bottom: 0;
}

.chemrytksm-identity-table dt {
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-identity-table dd {
  margin: 0;
  color: #143553;
  font-size: 11px !important;
  line-height: 1.3;
  word-break: break-word;
}

.chemrytksm-requirement-list {
  margin: 0;
  padding-left: 17px;
  color: #143553;
}

.chemrytksm-requirement-list li {
  margin: 0 0 7px;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-requirement-list li:last-child {
  margin-bottom: 0;
}

.chemrytksm-note-stack {
  display: grid;
  gap: 8px;
}

.chemrytksm-route-builder,
.chemrytksm-route-builder__grid,
.chemrytksm-route-results,
.chemrytksm-route-body,
.chemrytksm-route-meta,
.chemrytksm-tool-grid,
.chemrytksm-output-stack {
  display: grid;
  gap: 10px;
}

.chemrytksm-route-builder__grid,
.chemrytksm-route-body,
.chemrytksm-route-meta,
.chemrytksm-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chemrytksm-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.chemrytksm-field span,
.chemrytksm-route-block span,
.chemrytksm-route-meta dt {
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-field input,
.chemrytksm-field select,
.chemrytksm-field textarea {
  min-width: 0;
  min-height: 30px;
  width: 100%;
  border: 1px solid #c5d4e5;
  border-radius: 7px;
  background: #ffffff;
  color: #143553;
  font-size: 12px;
  font-weight: 400;
  padding: 0 9px;
}

.chemrytksm-field textarea {
  min-height: 86px;
  padding: 8px 9px;
  resize: vertical;
}

.chemrytksm-field--full {
  grid-column: 1 / -1;
}

.chemrytksm-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chemrytksm-route-empty {
  border: 1px dashed #c8d8e8;
  border-radius: 10px;
  background: #fbfdff;
  color: #35526c;
  padding: 14px;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-route-card {
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
}

.chemrytksm-route-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chemrytksm-route-card__head strong {
  display: block;
  color: #1976d2;
  font-size: 10px !important;
  text-transform: uppercase;
}

.chemrytksm-route-card__head h4 {
  margin: 2px 0 0;
  color: #143553;
  font-size: 12px !important;
  line-height: 1.2;
}

.chemrytksm-route-score {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1976d2;
  font-size: 10px !important;
  font-weight: 700;
  white-space: nowrap;
}

.chemrytksm-info-dot {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border: 1px solid #9fb2c5;
  border-radius: 50%;
  color: #35526c !important;
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  cursor: help;
}

.chemrytksm-precedent-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.chemrytksm-precedent-toolbar .chemrytksm-field {
  width: min(260px, 100%);
}

.chemrytksm-precedent-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.chemrytksm-precedent-score-grid div {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-precedent-score-grid span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-precedent-score-grid strong {
  display: block;
  color: #143553;
  font-size: 12px !important;
}

.chemrytksm-precedent-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chemrytksm-precedent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 700;
}

.chemrytksm-precedent-badge.pass {
  background: #f4fbf5;
  color: #1e7d32;
}

.chemrytksm-precedent-badge.watch {
  background: #fff8e6;
  color: #9a6700;
}

.chemrytksm-precedent-badge.risk {
  background: #fdf4f3;
  color: #b3261e;
}

.chemrytksm-route-meta {
  margin-bottom: 8px;
}

.chemrytksm-route-meta div {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-route-meta dd,
.chemrytksm-route-block p {
  margin: 4px 0 0;
  color: #143553;
  font-size: 11px !important;
  line-height: 1.35;
  word-break: break-word;
}

.chemrytksm-route-block {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-route-steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #143553;
}

.chemrytksm-route-steps li {
  margin-bottom: 6px;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-route-steps li:last-child {
  margin-bottom: 0;
}

.chemrytksm-output-card {
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.chemrytksm-output-card strong {
  display: block;
  color: #143553;
  font-size: 11px !important;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.chemrytksm-output-card p {
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

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

.chemrytksm-metric-card span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-metric-card strong {
  display: block;
  color: #143553;
  font-size: 12px !important;
  line-height: 1.2;
}

.chemrytksm-metric-card small {
  display: block;
  margin-top: 4px;
  color: #6f8498;
  font-size: 10px !important;
  line-height: 1.25;
}

.chemrytksm-ml-results {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.chemrytksm-ml-results .chemrytksm-panel-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.chemrytksm-ml-results .chemrytksm-method-assistant,
.chemrytksm-ml-results .chemrytksm-domain-card,
.chemrytksm-ml-results .chemrytksm-impurity-fate,
.chemrytksm-ml-results .chemrytksm-metadata-gap-card {
  grid-column: 1 / -1;
}

.chemrytksm-ml-results .chemrytksm-data-card {
  width: 100%;
}

.chemrytksm-ml-results .chemrytksm-ml-table {
  min-width: 520px;
}

.chemrytksm-ml-results .chemrytksm-data-card {
  overflow-x: auto;
}

.chemrytksm-ml-table {
  width: 100%;
  border-collapse: collapse;
}

.chemrytksm-ml-table th {
  text-align: left;
  color: #6f8498;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid #dbe6f0;
}

.chemrytksm-ml-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e6eef5;
  color: #143553;
  font-size: 11px !important;
  line-height: 1.35;
  vertical-align: top;
}

.chemrytksm-ml-table td code {
  font-size: 10px !important;
  word-break: break-word;
}

.chemrytksm-ml-table td span {
  display: block;
  color: #6f8498;
  font-size: 10px !important;
}

.chemrytksm-ml-table tr:last-child td {
  border-bottom: 0;
}

.chemrytksm-ml-table tr.risk td strong,
.chemrytksm-output-card.risk strong {
  color: #b3261e;
}

.chemrytksm-ml-table tr.pass td strong,
.chemrytksm-output-card.pass strong {
  color: #1e7d32;
}

.chemrytksm-ml-table tr.watch td strong {
  color: #9a6700;
}

.chemrytksm-output-card.risk {
  border-color: #f3c6c2;
  background: #fdf4f3;
}

.chemrytksm-output-card.pass {
  border-color: #c7e6cd;
  background: #f4fbf5;
}

.chemrytksm-ml-table mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 700;
  background: none;
}

.chemrytksm-ml-table mark.risk {
  background: #fdf4f3;
  color: #b3261e;
}

.chemrytksm-ml-table mark.pass {
  background: #f4fbf5;
  color: #1e7d32;
}

.chemrytksm-ml-table mark.watch {
  background: #fff8e6;
  color: #9a6700;
}

.chemrytksm-ml-table mark.confidence,
mark.confidence {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 700;
  background: #eef3f8;
  color: #35526c;
  white-space: nowrap;
}

.chemrytksm-ml-table mark.confidence--high,
mark.confidence--high {
  background: #f4fbf5;
  color: #1e7d32;
}

.chemrytksm-ml-table mark.confidence--medium,
mark.confidence--medium {
  background: #fff8e6;
  color: #9a6700;
}

.chemrytksm-ml-table mark.confidence--low,
.chemrytksm-ml-table mark.confidence--out,
mark.confidence--low,
mark.confidence--out {
  background: #fdf4f3;
  color: #b3261e;
}

.chemrytksm-domain-card {
  grid-column: 1 / -1;
}

.chemrytksm-domain-card.risk {
  border-color: #f3c6c2;
  background: #fffafa;
}

.chemrytksm-domain-card.watch {
  border-color: #f1d38a;
  background: #fffdf5;
}

.chemrytksm-domain-card.pass {
  border-color: #c7e6cd;
  background: #fbfffb;
}

.chemrytksm-domain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.chemrytksm-domain-layout p,
.chemrytksm-domain-layout li {
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-domain-layout p {
  margin-top: 7px;
}

.chemrytksm-domain-layout ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.chemrytksm-domain-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chemrytksm-domain-metrics div {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-domain-metrics span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-domain-metrics strong {
  display: block;
  color: #143553;
  font-size: 12px !important;
}

.chemrytksm-impurity-fate {
  grid-column: 1 / -1;
}

.chemrytksm-impurity-fate__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chemrytksm-impurity-fate__intro p {
  flex: 1 1 280px;
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-impurity-fate__cta {
  min-height: 38px !important;
  padding-inline: 16px !important;
  box-shadow: 0 8px 18px rgba(25, 118, 210, 0.16);
}

.chemrytksm-impurity-card {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.chemrytksm-impurity-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.chemrytksm-impurity-card__head strong {
  display: block;
  color: #143553;
  font-size: 12px !important;
  line-height: 1.2;
}

.chemrytksm-impurity-card__head code {
  display: block;
  margin-top: 4px;
  color: #35526c;
  font-size: 10px !important;
  word-break: break-word;
}

.chemrytksm-impurity-card > p,
.chemrytksm-impurity-fate-note p {
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-fate-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.chemrytksm-fate-flow span {
  position: relative;
  min-height: 28px;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  background: #ffffff;
  color: #143553;
  padding: 7px 8px;
  font-size: 10px !important;
  font-weight: 700;
  text-align: center;
}

.chemrytksm-fate-flow span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f8498;
  font-size: 11px;
}

.chemrytksm-impurity-fate-note {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-impurity-fate-note span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-impurity-fate-note strong {
  display: block;
  margin-bottom: 4px;
  color: #143553;
  font-size: 11px !important;
}

.chemrytksm-metadata-gap-card {
  grid-column: 1 / -1;
}

.chemrytksm-metadata-gap {
  display: grid;
  gap: 8px;
}

.chemrytksm-metadata-gap__block {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-metadata-gap__block span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-metadata-gap__block p,
.chemrytksm-metadata-gap__block li {
  color: #35526c;
  font-size: 11px !important;
  line-height: 1.35;
}

.chemrytksm-metadata-gap__block ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.chemrytksm-method-assistant {
  grid-column: 1 / -1;
}

.chemrytksm-method-readout {
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.chemrytksm-method-readout span,
.chemrytksm-method-summary span {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chemrytksm-method-readout strong,
.chemrytksm-method-summary strong {
  display: block;
  color: #143553;
  font-size: 12px !important;
  line-height: 1.2;
}

.chemrytksm-method-readout small {
  display: block;
  margin-top: 4px;
  color: #6f8498;
  font-size: 10px !important;
  line-height: 1.3;
}

.chemrytksm-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.chemrytksm-method-plan {
  min-width: 0;
}

.chemrytksm-method-plan > strong {
  display: block;
  margin-bottom: 6px;
  color: #143553;
  font-size: 11px !important;
  text-transform: uppercase;
}

.chemrytksm-chromatogram {
  position: relative;
  min-height: 172px;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 255, 0.92)),
    repeating-linear-gradient(90deg, rgba(111, 132, 152, 0.10) 0, rgba(111, 132, 152, 0.10) 1px, transparent 1px, transparent 12.5%);
  overflow: hidden;
}

.chemrytksm-chromatogram__axis {
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 30px;
  height: 1px;
  background: #9fb2c5;
}

.chemrytksm-peak {
  position: absolute;
  bottom: 31px;
  width: 34px;
  transform: translateX(-50%);
  border-radius: 50% 50% 4px 4px / 75% 75% 4px 4px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.chemrytksm-peak--main {
  background: linear-gradient(180deg, #1976d2, #5fa8e8);
  box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.18);
}

.chemrytksm-peak--impurity {
  width: 24px;
  background: linear-gradient(180deg, #8b6f47, #c8a46b);
  opacity: 0.78;
}

.chemrytksm-chromatogram__label {
  position: absolute;
  bottom: 122px;
  transform: translateX(-50%);
  min-width: 68px;
  border: 1px solid #cfe0ee;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: #143553;
  padding: 4px 6px;
  font-size: 10px !important;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

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

.chemrytksm-method-summary div {
  border: 1px solid #e6eef5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytksm-compare-summary {
  display: grid;
  gap: 10px;
}

.chemrytksm-compare-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #35526c;
  font-size: 10px !important;
  text-transform: uppercase;
}

.chemrytksm-compare-summary code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  color: #143553;
  font-size: 11px !important;
}

.chemrytksm-delta {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 700;
}

.chemrytksm-delta--up {
  background: #fdf4f3;
  color: #b3261e;
}

.chemrytksm-delta--down {
  background: #f4fbf5;
  color: #1e7d32;
}

.chemrytksm-delta--flat {
  background: #eef3f8;
  color: #35526c;
}

@media (max-width: 960px) {
  .chemrytksm-summary-grid,
  .chemrytksm-prerun-panel__grid,
  .chemrytksm-panel-grid,
  .chemrytksm-structure-layout,
  .chemrytksm-metric-grid,
  .chemrytksm-route-builder__grid,
  .chemrytksm-route-body,
  .chemrytksm-route-meta,
  .chemrytksm-tool-grid {
    grid-template-columns: 1fr;
  }

  .chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active {
    grid-template-columns: 1fr;
  }

  .chemrytksm-panel[data-chemrytksm-panel="predictions"].is-active > .chemrytksm-data-card:first-child {
    grid-template-columns: 1fr;
  }

  .chemrytksm-method-layout,
  .chemrytksm-method-summary,
  .chemrytksm-domain-layout,
  .chemrytksm-domain-metrics,
  .chemrytksm-precedent-score-grid,
  .chemrytksm-fate-flow {
    grid-template-columns: 1fr;
  }

  .chemrytksm-fate-flow span::after {
    display: none;
  }
}
.chemrytksm-purge-calculator { margin-top: 12px; padding: 11px; border: 1px solid #d8e4ef; border-radius: 8px; background: #f8fbfe; }
.chemrytksm-q11-engine { margin-top: 12px; padding: 11px; border: 1px solid #d8e4ef; border-radius: 8px; background: #fbfdff; }
.chemrytksm-q11-checklist { display: grid; gap: 7px; margin-bottom: 10px; }
.chemrytksm-q11-checklist label { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid #dce7f0; border-radius: 7px; background: #fff; cursor: pointer; }
.chemrytksm-q11-checklist input { margin-top: 2px; }.chemrytksm-q11-checklist span { display: grid; gap: 2px; }.chemrytksm-q11-checklist small { color: var(--chemrytksm-soft-muted); }
.chemrytksm-q11-engine textarea { width: 100%; resize: vertical; }
.chemrytksm-sus-scale-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; align-items: center; }
.chemrytksm-sus-scale-grid label, .chemrytksm-sus-scale-grid div { display: grid; gap: 5px; }.chemrytksm-sus-scale-grid input { width: 100%; }
.chemrytksm-sus-scale-grid div { padding: 8px; border: 1px solid #dce7f0; border-radius: 7px; background: #f8fbfe; }
.chemrytksm-sus-mass-bar { display: flex; height: 24px; margin-top: 10px; border-radius: 6px; overflow: hidden; background: #e8edf2; }
.chemrytksm-sus-mass-bar span, .chemrytksm-sus-mass-bar i { display: grid; place-items: center; min-width: 55px; font-style: normal; color: #fff; }.chemrytksm-sus-mass-bar span { background: #279463; }.chemrytksm-sus-mass-bar i { background: #d98a20; }
.chemrytksm-sus-alt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chemrytksm-sus-alt-grid article { padding: 10px; border: 1px solid #dce7f0; border-radius: 8px; background: #fff; }.chemrytksm-sus-alt-grid article > div { display: flex; justify-content: space-between; gap: 8px; }.chemrytksm-sus-alt-grid mark { border-radius: 999px; padding: 3px 7px; background: #e5f6ed; color: #237c55; }.chemrytksm-sus-alt-grid span { color: var(--chemrytksm-soft-muted); }
.chemrytksm-solvent-detail { display: flex; align-items: flex-start; gap: 12px; padding: 11px; border: 1px solid #dce7f0; border-radius: 8px; background: #fff; }
.chemrytksm-solvent-detail > mark { min-width: 68px; padding: 6px 9px; border-radius: 999px; text-align: center; font-weight: 700; }.chemrytksm-solvent-detail mark.is-green { background: #dff4e9; color: #20764f; }.chemrytksm-solvent-detail mark.is-yellow { background: #fff0c9; color: #946300; }.chemrytksm-solvent-detail mark.is-red { background: #fde3e3; color: #ad2929; }
.chemrytksm-solvent-detail > div { display: grid; gap: 4px; }.chemrytksm-solvent-detail span { color: var(--chemrytksm-muted); }
.chemrytksm-solvent-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.chemrytksm-solvent-badges button.is-green { border-color: #68b68d; color: #20764f; background: #effaf4; }.chemrytksm-solvent-badges button.is-yellow { border-color: #ddb84d; color: #8b6100; background: #fff9e8; }.chemrytksm-solvent-badges button.is-red { border-color: #df8585; color: #a52b2b; background: #fff1f1; }.chemrytksm-solvent-badges button.is-active { outline: 2px solid currentColor; outline-offset: 1px; }
@media (max-width: 1100px) { .chemrytksm-panel[data-chemrytksm-panel="sustainability"] .chemrytksm-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .chemrytksm-sus-scale-grid, .chemrytksm-sus-alt-grid { grid-template-columns: 1fr; } .chemrytksm-panel[data-chemrytksm-panel="sustainability"] .chemrytksm-tool-grid { grid-template-columns: 1fr; } }
.chemrytksm-purge-calculator > p { margin-bottom: 9px; }
.chemrytksm-purge-factor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chemrytksm-purge-result { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; padding: 8px; border-radius: 7px; background: #eaf5ff; }
.chemrytksm-purge-result strong { color: #0b67b2; font-size: 14px; }
.chemrytksm-purge-evidence { margin-top: 10px; }
.chemrytksm-purge-evidence input { width: 90px; min-height: 25px; border: 1px solid #c7d8e8; border-radius: 5px; padding: 2px 6px; }
.chemrytksm-evidence-note { margin-top: 8px !important; }
@media (max-width: 960px) { .chemrytksm-purge-factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .chemrytksm-purge-factor-grid { grid-template-columns: 1fr; } .chemrytksm-purge-result { grid-template-columns: auto 1fr; } }
.chemrytksm-reg-alert-widget { margin-top: 10px; padding: 10px; border: 1px solid #d8e4ef; border-radius: 8px; background: #fbfdff; }
.chemrytksm-risk-light { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #eef2f5; }
.chemrytksm-risk-light i { width: 10px; height: 10px; border-radius: 50%; background: #8898a8; }
.chemrytksm-risk-light.is-high i { background: #d93636; box-shadow: 0 0 8px #d93636; }
.chemrytksm-risk-light.is-medium i { background: #e69a16; box-shadow: 0 0 8px #e69a16; }
.chemrytksm-risk-light.is-low i { background: #279463; box-shadow: 0 0 8px #279463; }
.chemrytksm-reg-alert-widget ul { padding-left: 18px; color: var(--chemrytksm-muted); }
.chemrytksm-reg-alert-widget small { color: var(--chemrytksm-soft-muted); }
.chemrytksm-carryover-simulator { margin-top: 10px; }
.chemrytksm-simulator-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.chemrytksm-simulator-controls label { display: grid; gap: 6px; }
.chemrytksm-simulator-controls input { width: 100%; }
.chemrytksm-carryover-meter { position: relative; height: 10px; margin: 14px 0; border-radius: 10px; background: #e7edf3; overflow: hidden; }
.chemrytksm-carryover-meter span { display: block; height: 100%; transition: width .2s; }
.chemrytksm-carryover-meter span.is-pass { background: #279463; } .chemrytksm-carryover-meter span.is-fail { background: #d93636; }
.chemrytksm-carryover-readout { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.chemrytksm-carryover-readout div { display: grid; gap: 2px; }.chemrytksm-carryover-readout span { color: var(--chemrytksm-soft-muted); }
.chemrytksm-carryover-readout mark { padding: 5px 9px; border-radius: 999px; font-weight: 700; }.chemrytksm-carryover-readout mark.is-pass { background: #e4f6ed; color: #237c55; }.chemrytksm-carryover-readout mark.is-fail { background: #fde8e8; color: #b52c2c; }
.chemrytksm-fate-map { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chemrytksm-fate-map div { min-width: 105px; padding: 8px; border: 1px solid #d8e4ef; border-radius: 7px; background: #f8fbfe; display: grid; }
.chemrytksm-fate-map p { flex-basis: 100%; font-weight: 700; }.chemrytksm-fate-map p.is-pass { color: #237c55; }.chemrytksm-fate-map p.is-fail { color: #b52c2c; }
@media (max-width: 720px) { .chemrytksm-simulator-controls { grid-template-columns: 1fr; } .chemrytksm-carryover-readout { grid-template-columns: 1fr; } }
