/* Copyright Chemryt Informatics Private Limited */
/* ChemrytEM uses the same contained workbench geometry as ChemrytAC. */
:root {
  --chemrytem-ink: var(--chemrytiq-text, #12304d);
  --chemrytem-muted: var(--chemrytiq-text-soft, #445d73);
  --chemrytem-soft-muted: var(--chemrytiq-text-muted, #6f8498);
  --chemrytem-line: var(--chemrytiq-border, #d7e3ef);
  --chemrytem-line-strong: var(--chemrytiq-border-strong, #c5d4e5);
  --chemrytem-panel: var(--chemrytiq-surface, #ffffff);
  --chemrytem-soft: var(--chemrytiq-surface-soft, #f7fbff);
  --chemrytem-blue: #1976d2;
  --chemrytem-blue-soft: #eef6ff;
  --chemrytem-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --chemrytem-align-left: 30px;
  --chemrytem-align-right: 15px;
  --chemrytem-align-width: auto;
  --chemrytem-align-trim: 3px;
  --chemrytem-weight-regular: 400;
  --chemrytem-weight-medium: 500;
  --chemrytem-weight-semibold: 600;
  --chemrytem-weight-heading: 700;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

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(--chemrytem-align-width) - var(--chemrytem-align-trim)) !important;
  max-width: none !important;
  margin-left: var(--chemrytem-align-left) !important;
  margin-right: auto !important;
  padding-inline: 0 !important;
}

.chemrytem-shell {
  box-sizing: border-box;
  width: calc(var(--chemrytem-align-width) - var(--chemrytem-align-trim)) !important;
  max-width: none !important;
  min-width: 0;
  margin: 1.25rem auto 3rem var(--chemrytem-align-left) !important;
  padding: 0 !important;
  overflow-x: clip;
}

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

.chemrytem-layout-debug,
.chemrytem-topbar,
.chemrytem-workbench {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto 12px;
}

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

.chemrytem-kicker {
  display: block;
  color: rgba(245, 251, 255, 0.82);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-heading);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

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

.chemrytem-page h1 {
  color: #ffffff;
  font-size: 18px;
  font-weight: var(--chemrytem-weight-heading);
  line-height: 1.12;
}

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

.chemrytem-page p {
  color: var(--chemrytem-muted);
  font-size: 12px;
  line-height: 1.3;
}

.chemrytem-topbar p {
  max-width: 700px;
  color: rgba(233, 245, 255, 0.86);
}

.chemrytem-layout-debug {
  border: 1px solid #b9d5ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--chemrytem-shadow);
  padding: 9px;
}

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

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

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

.chemrytem-layout-debug strong {
  display: block;
  margin-bottom: 6px;
  color: var(--chemrytem-ink);
  font-size: 12px;
}

.chemrytem-layout-debug dl,
.chemrytem-layout-debug div {
  min-width: 0;
}

.chemrytem-layout-debug dl {
  margin: 0;
}

.chemrytem-layout-debug dl > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.chemrytem-layout-debug dt,
.chemrytem-layout-debug dd {
  margin: 0;
  color: var(--chemrytem-ink);
  font-size: 12px;
  line-height: 1.45;
}

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

.chemrytem-layout-debug dd.is-ok,
.chemrytem-panel-head > span.is-ok {
  color: #007f5f;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-layout-debug dd.is-warn,
.chemrytem-panel-head > span.is-warn {
  color: #b45309;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-editor-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: var(--chemrytem-panel);
  box-shadow: var(--chemrytem-shadow);
  padding: 10px;
  overflow: hidden;
}

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

.chemrytem-panel-head > div {
  min-width: 0;
}

.chemrytem-panel-head > span {
  flex: 0 1 34%;
  min-width: 0;
  overflow: hidden;
  color: var(--chemrytem-muted);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-loader-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
}

.chemrytem-loader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chemrytem-page button:not(.chemrytem-jsme *) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  border: 1px solid var(--chemrytem-line-strong);
  border-radius: 5px;
  background: #f8fbfe;
  color: #0966c2;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1;
  padding: 0 12px;
}

.chemrytem-page button:not(.chemrytem-jsme *):hover {
  border-color: var(--chemrytem-blue);
  background: var(--chemrytem-blue-soft);
}

.chemrytem-page button:not(.chemrytem-jsme *).primary {
  border-color: var(--chemrytem-blue);
  background: var(--chemrytem-blue);
  color: #ffffff;
}

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

.chemrytem-structure-viewer {
  display: block;
  position: relative;
  min-width: 0;
}

.chemrytem-view-toggle {
  display: inline-flex;
  position: absolute;
  right: 0;
  top: -34px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--chemrytem-line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.chemrytem-view-toggle button {
  min-width: 48px;
  min-height: 21px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #0f4068;
  padding: 0 11px;
}

.chemrytem-view-toggle button.is-active {
  background: var(--chemrytem-blue);
  color: #ffffff;
}

.chemrytem-editor-frame {
  position: relative;
  height: 330px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: #ffffff;
}

.chemrytem-jsme,
.chemrytem-3d-viewer,
.chemrytem-3d-canvas {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
}

.chemrytem-jsme iframe {
  max-width: 100% !important;
}

.chemrytem-3d-viewer {
  position: relative;
  background: #f8fbfe;
}

.chemrytem-3d-viewer > span {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 24px);
  color: var(--chemrytem-muted);
  font-size: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.chemrytem-jsme-edit-layer,
.chemrytem-2d-highlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chemrytem-2d-highlight-layer {
  z-index: 4;
  display: grid;
  place-items: center;
  color: #0b3357;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  text-align: center;
}

.chemrytem-2d-highlight-layer[hidden] {
  display: none;
}

.chemrytem-2d-highlight-layer span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  border: 1px solid rgba(25, 118, 210, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(8, 47, 73, 0.12);
  padding: 4px 9px;
  transform: translateX(-50%);
}

.chemrytem-highlight-ring,
.chemrytem-highlight-path,
.chemrytem-highlight-bond {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.chemrytem-highlight-ring {
  width: 132px;
  height: 86px;
  border: 3px solid rgba(25, 118, 210, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(25, 118, 210, 0.12);
  animation: chemrytem-highlight-pulse 1.1s ease-in-out infinite;
}

.chemrytem-highlight-path {
  width: 185px;
  height: 22px;
  border-top: 4px solid rgba(0, 137, 123, 0.82);
  border-bottom: 4px solid rgba(0, 137, 123, 0.18);
  transform: translate(-50%, -50%) rotate(-28deg);
  animation: chemrytem-highlight-path-pulse 1.1s ease-in-out infinite;
}

.chemrytem-highlight-bond {
  width: 112px;
  height: 0;
  border-top: 5px solid rgba(239, 68, 68, 0.78);
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: chemrytem-highlight-bond-pulse 1.1s ease-in-out infinite;
}

.chemrytem-picloud {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 132px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.chemrytem-picloud-lobe,
.chemrytem-picloud-bridge,
.chemrytem-picloud-twist {
  position: absolute;
  display: block;
  pointer-events: none;
}

.chemrytem-picloud-lobe {
  width: 92px;
  height: 48px;
  border: 2px solid rgba(25, 118, 210, 0.46);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(25, 118, 210, 0.34), rgba(25, 118, 210, 0.08) 58%, rgba(25, 118, 210, 0) 72%);
  box-shadow: 0 0 18px rgba(25, 118, 210, 0.32);
  animation: chemrytem-picloud-pulse 1.25s ease-in-out infinite;
}

.chemrytem-picloud-lobe.is-a {
  left: 8px;
  top: 28px;
}

.chemrytem-picloud-lobe.is-b {
  left: 70px;
  top: 43px;
}

.chemrytem-picloud-lobe.is-c {
  right: 8px;
  top: 28px;
}

.chemrytem-picloud-bridge {
  left: 32px;
  top: 58px;
  width: 166px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 137, 123, 0.12), rgba(25, 118, 210, 0.5), rgba(0, 137, 123, 0.12));
  filter: blur(1px);
  animation: chemrytem-picloud-flow 1.4s ease-in-out infinite;
}

.chemrytem-picloud-twist {
  right: 18px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(239, 68, 68, 0.82);
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.11);
}

.chemrytem-picloud-twist::before,
.chemrytem-picloud-twist::after {
  position: absolute;
  left: 7px;
  top: 14px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.9);
  content: "";
}

.chemrytem-picloud-twist::before {
  transform: rotate(45deg);
}

.chemrytem-picloud-twist::after {
  transform: rotate(-45deg);
}

.chemrytem-picloud.is-muted {
  opacity: 0.48;
  filter: grayscale(0.35);
}

.chemrytem-highlight-dot {
  position: absolute;
  top: 49%;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(239, 68, 68, 0.82);
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12);
  animation: chemrytem-highlight-dot-pulse 1.1s ease-in-out infinite;
}

.chemrytem-highlight-dot.is-left {
  left: 41%;
}

.chemrytem-highlight-dot.is-right {
  right: 41%;
}

@keyframes chemrytem-highlight-pulse {
  50% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes chemrytem-highlight-path-pulse {
  50% {
    opacity: 0.55;
    transform: translate(-50%, -50%) rotate(-28deg) scale(1.04);
  }
}

@keyframes chemrytem-highlight-bond-pulse {
  50% {
    opacity: 0.55;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1.04);
  }
}

@keyframes chemrytem-highlight-dot-pulse {
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

@keyframes chemrytem-picloud-pulse {
  50% {
    opacity: 0.68;
    transform: scale(1.06);
  }
}

@keyframes chemrytem-picloud-flow {
  50% {
    opacity: 0.58;
    transform: scaleX(0.94);
  }
}

.chemrytem-jsme-edit-layer {
  display: none;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  pointer-events: auto;
}

.chemrytem-editor-frame.is-depict .chemrytem-jsme-edit-layer {
  display: grid;
}

.chemrytem-editor-frame.is-3d .chemrytem-jsme-edit-layer,
.chemrytem-editor-frame.is-edit .chemrytem-jsme-edit-layer {
  display: none;
}

.chemrytem-jsme-edit-layer svg {
  display: block;
  width: min(86%, 420px);
  height: auto;
}

.chemrytem-jsme-edit-layer .chemrytem-ferrocene-depiction {
  width: min(94%, 620px);
  max-height: 94%;
  color: #0f172a;
}

.chemrytem-jsme-depict-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px dashed var(--chemrytem-line-strong);
  border-radius: 7px;
  color: var(--chemrytem-muted);
  font-size: 12px;
  padding: 0 12px;
}

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

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

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

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

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

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

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

.chemrytem-loader-fields span,
.chemrytem-loader-readouts dt {
  color: var(--chemrytem-muted);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.2;
}

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

.chemrytem-loader-fields select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-loader-fields .chemrytem-sample-module-field {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 0.64fr);
  align-items: center;
  column-gap: 10px;
}

.chemrytem-loader-fields .chemrytem-sample-module-field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-loader-fields .chemrytem-sample-module-field select {
  max-width: 100%;
}

.chemrytem-loader-readouts {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.chemrytem-loader-readouts div {
  min-width: 0;
}

.chemrytem-loader-readouts > div:first-child {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.chemrytem-loader-readouts > div:first-child dt {
  white-space: nowrap;
}

.chemrytem-loader-readouts dt,
.chemrytem-loader-readouts dd {
  margin: 0;
}

.chemrytem-loader-readouts dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-regular);
  line-height: 1.3;
}

.chemrytem-prediction-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0;
}

.chemrytem-inline-prediction {
  min-width: 120px;
  max-width: 180px;
}

.chemrytem-results {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 8px;
}

.chemrytem-results[hidden] {
  display: none;
}

.chemrytem-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: #f7fbff;
  padding: 9px 10px;
}

.chemrytem-progress[hidden] {
  display: none;
}

.chemrytem-progress-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #c8dff2;
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: chemrytem-spin 0.8s linear infinite;
}

.chemrytem-progress strong,
.chemrytem-progress span {
  display: block;
  min-width: 0;
  line-height: 1.3;
}

.chemrytem-progress strong {
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-progress span {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-regular);
}

.chemrytem-page.is-predicting button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

@keyframes chemrytem-spin {
  to {
    transform: rotate(360deg);
  }
}

.chemrytem-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.chemrytem-result-summary article {
  min-width: 0;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.chemrytem-result-summary span {
  display: block;
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytem-result-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 6px;
}

.chemrytem-result-tabs button {
  min-height: 21px;
  min-width: 94px;
  border: 1px solid var(--chemrytem-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytem-accent);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1;
  padding: 0 10px;
}

.chemrytem-result-tabs button.is-active {
  border-color: #1976d2;
  background: #1976d2;
  color: #ffffff;
}

/* Model decision workspace */
.chemrytem-model-workspace {
  display: grid;
  gap: 8px;
  color: var(--chemrytem-ink);
}

.chemrytem-model-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: var(--chemrytem-soft);
}

.chemrytem-model-hero span,
.chemrytem-model-provenance span {
  color: var(--chemrytem-soft-muted);
  font-size: 9px;
  font-weight: var(--chemrytem-weight-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.chemrytem-model-hero h3 { margin: 2px 0; color: var(--chemrytem-ink); font-size: 13px; font-weight: var(--chemrytem-weight-semibold); line-height: 1.2; }
.chemrytem-model-hero p { margin: 0; color: var(--chemrytem-muted); font-size: 10px; line-height: 1.25; }
.chemrytem-model-hero aside { min-width: 82px; text-align: center; }
.chemrytem-model-hero aside strong { display: block; color: #007d67; font-size: 16px; font-weight: var(--chemrytem-weight-heading); line-height: 1; }
.chemrytem-model-hero aside span { letter-spacing: 0; text-transform: none; }

.chemrytem-model-table-wrap {
  overflow-x: auto;
  border: 1px solid #ccdeed;
  border-radius: 8px;
  background: #fff;
}

.chemrytem-model-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.chemrytem-model-table th,
.chemrytem-model-table td { padding: 7px 8px; border-bottom: 1px solid var(--chemrytem-line); text-align: left; vertical-align: top; }
.chemrytem-model-table th { background: var(--chemrytem-soft); color: var(--chemrytem-ink); font-size: 10px; font-weight: var(--chemrytem-weight-semibold); line-height: 1.2; }
.chemrytem-model-table th:nth-child(1) { width: 20%; }
.chemrytem-model-table th:nth-child(2) { width: 18%; }
.chemrytem-model-table th:nth-child(3) { width: 15%; }
.chemrytem-model-table th:nth-child(4) { width: 18%; }
.chemrytem-model-table tr:last-child td { border-bottom: 0; }
.chemrytem-model-table tr.risk { background: #fff6f6; }
.chemrytem-model-table tr.warn { background: #fffbf5; }
.chemrytem-model-table td strong,
.chemrytem-model-table td small { display: block; }
.chemrytem-model-table td strong { color: var(--chemrytem-ink); font-size: 11px; font-weight: var(--chemrytem-weight-semibold); line-height: 1.25; }
.chemrytem-model-table td small { margin-top: 2px; color: var(--chemrytem-soft-muted); font-size: 9px; line-height: 1.25; }

.chemrytem-model-table mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 102px;
  padding: 4px 7px;
  border: 1px solid #a9dfca;
  border-radius: 999px;
  background: #eaf9f2;
  color: #00745f;
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
}
.chemrytem-model-table mark i { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #c9efdf; font-size: 7px; font-style: normal; }
.chemrytem-model-table tr.warn mark { border-color: #f3c989; background: #fff7eb; color: #ad5805; }
.chemrytem-model-table tr.warn mark i { background: #f7e4c9; }
.chemrytem-model-table tr.risk mark { border-color: #f1b0b0; background: #fff0f0; color: #bb2028; }
.chemrytem-model-table tr.risk mark i { background: #f9d7d9; }

.chemrytem-model-confidence > div { width: 100%; height: 5px; overflow: hidden; border-radius: 99px; background: #dce8f1; }
.chemrytem-model-confidence > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087e69, #31ad87); }
.chemrytem-model-confidence > strong { margin-top: 3px; }

.chemrytem-model-action { display: inline-block; min-width: 92px; padding: 5px 7px; border: 1px solid #a9cdec; border-radius: 5px; color: #07518a; text-align: center; font-size: 9px; font-weight: var(--chemrytem-weight-semibold); line-height: 1.1; }
.chemrytem-model-action.warn { border-color: #efb96d; color: #a64f00; }
.chemrytem-model-action.risk { border-color: #eea1a5; color: #b51e27; }

.chemrytem-model-provenance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--chemrytem-line); border-radius: 8px; background: var(--chemrytem-line); }
.chemrytem-model-provenance div { min-width: 0; padding: 7px 8px; background: var(--chemrytem-soft); }
.chemrytem-model-provenance strong { display: block; overflow-wrap: anywhere; margin-top: 2px; color: var(--chemrytem-ink); font-size: 9px; font-weight: var(--chemrytem-weight-medium); line-height: 1.3; }
.chemrytem-model-disclaimer { margin: 0; padding: 6px 8px; border-left: 3px solid #db8b22; background: #fff9ef; color: #72511e; font-size: 9px; line-height: 1.25; }
.chemrytem-model-artifacts { border: 1px solid #d6e3ed; border-radius: 8px; background: #fbfdfe; }
.chemrytem-model-artifacts summary { cursor: pointer; padding: 6px 8px; color: var(--chemrytem-muted); font-size: 10px; font-weight: var(--chemrytem-weight-semibold); }
.chemrytem-model-artifacts ol { margin: 0; padding: 0 28px 8px; }
.chemrytem-model-artifacts li { margin-top: 3px; color: var(--chemrytem-muted); font-size: 9px; }
.chemrytem-model-artifacts li strong,
.chemrytem-model-artifacts li span { display: block; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .chemrytem-model-provenance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .chemrytem-model-hero { align-items: flex-start; flex-direction: column; }
  .chemrytem-model-hero aside { text-align: left; }
  .chemrytem-model-provenance { grid-template-columns: 1fr; }
}

.chemrytem-result-panel {
  min-width: 0;
  border: 1px solid var(--chemrytem-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.chemrytem-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.chemrytem-result-card {
  min-width: 0;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.chemrytem-result-card-wide {
  grid-column: 1 / -1;
}

.chemrytem-result-card h3 {
  margin: 0 0 8px;
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.25;
}

.chemrytem-topology-card {
  background: #fafdff;
}

.chemrytem-topology-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}

.chemrytem-topology-head h3 {
  margin: 0;
}

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

.chemrytem-radar-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.chemrytem-radar-wrap svg {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
}

.chemrytem-radar-grid-ring {
  fill: none;
  stroke: #dbe9f5;
  stroke-width: 1;
}

.chemrytem-radar-spoke {
  stroke: #e5eef7;
  stroke-width: 1;
}

.chemrytem-radar-fill {
  fill: rgba(25, 118, 210, 0.18);
  stroke: #1976d2;
  stroke-width: 2;
}

.chemrytem-radar-node {
  fill: #1976d2;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.chemrytem-radar-label {
  fill: var(--chemrytem-muted);
  font-size: 9px;
  font-weight: var(--chemrytem-weight-semibold);
  text-anchor: middle;
}

.chemrytem-radar-wrap ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chemrytem-radar-wrap li {
  min-width: 0;
  border: 1px solid #e1ebf3;
  border-radius: 7px;
  background: #ffffff;
  padding: 7px 8px;
}

.chemrytem-radar-wrap li span,
.chemrytem-radar-wrap li strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-radar-wrap li span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-radar-wrap li strong {
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-radar-wrap li em {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--chemrytem-weight-regular);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-radar-wrap-dual {
  align-items: start;
}

.chemrytem-radar-plot {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.chemrytem-radar-fill-reference {
  fill: rgba(0, 137, 123, 0.13);
  stroke: rgba(0, 137, 123, 0.82);
}

.chemrytem-radar-fill-current {
  fill: rgba(25, 118, 210, 0.18);
  stroke: #1976d2;
}

.chemrytem-radar-node-reference {
  fill: rgba(0, 137, 123, 0.9);
}

.chemrytem-radar-node-current {
  fill: #1976d2;
}

.chemrytem-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.chemrytem-radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.2;
}

.chemrytem-radar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chemrytem-radar-legend i.is-current {
  background: #1976d2;
}

.chemrytem-radar-legend i.is-reference {
  background: rgba(0, 137, 123, 0.82);
}

.chemrytem-matrix-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.chemrytem-matrix-wrap svg {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.chemrytem-matrix-frame {
  x: 20px;
  y: 20px;
  width: 180px;
  height: 140px;
  fill: #fbfdff;
  stroke: #d9e8f3;
}

.chemrytem-matrix-zone {
  stroke: rgba(18, 48, 77, 0.08);
}

.chemrytem-matrix-zone.is-green {
  fill: #edf9f1;
}

.chemrytem-matrix-zone.is-yellow {
  fill: #fff6df;
}

.chemrytem-matrix-zone.is-neutral {
  fill: #f5f9fd;
}

.chemrytem-matrix-zone.is-red {
  fill: #fff0f0;
}

.chemrytem-matrix-axis {
  stroke: #a9bfd3;
  stroke-width: 1.2;
}

.chemrytem-matrix-zone-label,
.chemrytem-matrix-axis-label {
  fill: var(--chemrytem-muted);
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-matrix-zone-label {
  font-size: 8px;
  text-anchor: middle;
}

.chemrytem-matrix-axis-label {
  font-size: 8px;
  text-anchor: middle;
}

.chemrytem-matrix-axis-label.is-vertical {
  transform: rotate(-90deg);
  transform-origin: 10px 90px;
}

.chemrytem-matrix-point.is-current {
  fill: #1976d2;
  stroke: #ffffff;
  stroke-width: 2;
}

.chemrytem-matrix-point-ring {
  fill: none;
  stroke: rgba(25, 118, 210, 0.22);
  stroke-width: 3;
}

.chemrytem-matrix-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.chemrytem-matrix-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-matrix-summary span,
.chemrytem-matrix-summary strong,
.chemrytem-matrix-summary em,
.chemrytem-matrix-callout p {
  min-width: 0;
  margin: 0;
}

.chemrytem-matrix-summary span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.2;
}

.chemrytem-matrix-summary strong {
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.3;
}

.chemrytem-matrix-summary em {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.chemrytem-matrix-callout.is-green {
  border-color: #c9ebd4;
  background: #f5fcf7;
}

.chemrytem-matrix-callout.is-yellow {
  border-color: #f5dfaa;
  background: #fffaf0;
}

.chemrytem-matrix-callout.is-red {
  border-color: #f2c8c8;
  background: #fff5f5;
}

.chemrytem-matrix-callout.is-neutral {
  border-color: #dce7f2;
  background: #f8fbfe;
}

.chemrytem-matrix-callout p {
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.35;
}

.chemrytem-picloud-trigger {
  min-height: 21px;
  margin-top: 8px;
  border: 1px solid rgba(25, 118, 210, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: #1976d2;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  padding: 0 10px;
}

.chemrytem-picloud-trigger:hover,
.chemrytem-picloud-trigger:focus,
.chemrytem-picloud-trigger.is-highlight-active {
  background: #eef6ff;
}

.chemrytem-picloud-trigger.is-highlight-active {
  border-color: rgba(25, 118, 210, 0.58);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.12);
}

.chemrytem-electrochem-target {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.chemrytem-electrochem-target label {
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
}

.chemrytem-electrochem-target select {
  min-width: 0;
  min-height: 30px;
  border: 1px solid #cfe0ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-medium);
  padding: 0 9px;
}

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

.chemrytem-triage-card {
  display: grid;
  gap: 5px;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-triage-card strong {
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.25;
}

.chemrytem-triage-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chemrytem-triage-card div span {
  color: var(--chemrytem-ink);
  font-size: 13px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
}

.chemrytem-triage-card p {
  margin: 0;
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytem-triage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  white-space: nowrap;
}

.chemrytem-triage-badge.is-green {
  background: #edf9f1;
  color: #157347;
}

.chemrytem-triage-badge.is-yellow {
  background: #fff6df;
  color: #9a6700;
}

.chemrytem-triage-badge.is-red {
  background: #fff0f0;
  color: #c03636;
}

.chemrytem-triage-badge.is-neutral {
  background: #f1f5f9;
  color: #51606f;
}

.chemrytem-inline-target {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  line-height: 1.3;
}

.chemrytem-optimizer-list {
  display: grid;
  gap: 8px;
}

.chemrytem-optimizer-tip {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.chemrytem-optimizer-tip header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chemrytem-optimizer-tip header strong {
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.25;
}

.chemrytem-optimizer-tip header span {
  min-width: 0;
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.2;
  text-align: right;
}

.chemrytem-optimizer-tip p {
  margin: 0;
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.4;
}

.chemrytem-optimizer-action {
  justify-self: start;
  min-height: 21px;
  border: 1px solid rgba(25, 118, 210, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: #1976d2;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  padding: 0 10px;
}

.chemrytem-optimizer-action:hover,
.chemrytem-optimizer-action:focus {
  background: #eef6ff;
}

.chemrytem-formulation-sandbox {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.chemrytem-formulation-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) max-content max-content minmax(120px, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.chemrytem-formulation-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-formulation-toolbar input,
.chemrytem-formulation-table input,
.chemrytem-formulation-table select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid #cfe0ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 7px;
}

.chemrytem-formulation-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 34px);
  gap: 4px;
  padding: 3px;
  border: 1px solid #d9e8f3;
  border-radius: 7px;
  background: #f5f9fd;
}

.chemrytem-formulation-toggle button {
  min-height: 25px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--chemrytem-muted);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-formulation-toggle button.is-active {
  border-color: rgba(25, 118, 210, 0.32);
  background: #ffffff;
  color: #1976d2;
}
.chemrytem-formulation-copy {
  width: auto;
  min-width: max-content;
  min-height: 31px;
  justify-self: start;
  border: 1px solid rgba(0, 137, 123, 0.32);
  border-radius: 7px;
  background: #ffffff;
  color: #007f5f;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  padding: 0 10px;
  white-space: nowrap;
}

.chemrytem-formulation-copy:hover,
.chemrytem-formulation-copy:focus,
.chemrytem-formulation-copy.is-copied {
  background: #effaf5;
}

.chemrytem-formulation-toolbar > span {
  min-width: 0;
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.3;
  text-align: right;
}

.chemrytem-formulation-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytem-formulation-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.chemrytem-formulation-table th,
.chemrytem-formulation-table td {
  border-bottom: 1px solid #edf4fa;
  padding: 7px;
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  vertical-align: top;
}

.chemrytem-formulation-table th {
  background: #f5f9fd;
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  text-transform: uppercase;
}

.chemrytem-formulation-table td:first-child {
  min-width: 190px;
}

.chemrytem-formulation-table strong,
.chemrytem-formulation-table span {
  display: block;
  min-width: 0;
}

.chemrytem-formulation-table span {
  margin-top: 3px;
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
}
.chemrytem-formulation-swap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin-top: 6px;
  min-width: 0;
}

.chemrytem-formulation-swap button {
  min-height: 28px;
  border: 1px solid rgba(25, 118, 210, 0.32);
  border-radius: 6px;
  background: #ffffff;
  color: #1976d2;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  padding: 0 8px;
}

.chemrytem-formulation-swap button:hover,
.chemrytem-formulation-swap button:focus {
  background: #eef6ff;
}
.chemrytem-formulation-live {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.chemrytem-formulation-live-grid div {
  min-width: 0;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-formulation-live-grid span,
.chemrytem-formulation-live-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-formulation-live-grid span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-formulation-live-grid strong {
  margin-top: 3px;
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-formulation-warning {
  margin: 0;
  border: 1px solid #d9e8f3;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.35;
  padding: 8px 10px;
}

.chemrytem-formulation-warning.is-green {
  border-left-color: #18a558;
  background: #f7fcf8;
}

.chemrytem-formulation-warning.is-yellow {
  border-left-color: #f0a202;
  background: #fffaf1;
}

.chemrytem-formulation-warning.is-red {
  border-left-color: #e64a4a;
  background: #fff5f5;
}
.chemrytem-formulation-sandbox[data-chemrytem-formulation-mode="mass"] [data-chemrytem-formulation-mass],
.chemrytem-formulation-sandbox[data-chemrytem-formulation-mode="volume"] [data-chemrytem-formulation-volume],
.chemrytem-formulation-sandbox[data-chemrytem-formulation-mode="molarity"] [data-chemrytem-formulation-molarity] {
  border-color: rgba(25, 118, 210, 0.58);
  background: #eef6ff;
}
.chemrytem-geometry-torsion {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.chemrytem-geometry-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.chemrytem-geometry-selectors label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-geometry-selectors select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid #cfe0ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 11px;
  padding: 4px 7px;
}

.chemrytem-geometry-readout {
  display: grid;
  gap: 3px;
  border: 1px solid #d9e8f3;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.chemrytem-geometry-readout strong,
.chemrytem-geometry-readout span,
.chemrytem-geometry-readout p {
  margin: 0;
  min-width: 0;
  line-height: 1.3;
}

.chemrytem-geometry-readout strong {
  color: var(--chemrytem-ink);
  font-size: 14px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-geometry-readout span {
  color: var(--chemrytem-muted);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-geometry-readout p {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
}

.chemrytem-geometry-readout.is-green {
  border-left-color: #18a558;
  background: #f7fcf8;
}

.chemrytem-geometry-readout.is-yellow {
  border-left-color: #f0a202;
  background: #fffaf1;
}

.chemrytem-geometry-readout.is-red {
  border-left-color: #e64a4a;
  background: #fff5f5;
}

.chemrytem-geometry-shape {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.chemrytem-geometry-shape-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.chemrytem-geometry-shape-grid div {
  min-width: 0;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-geometry-shape-grid span,
.chemrytem-geometry-shape-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-geometry-shape-grid span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-geometry-shape-grid strong {
  margin-top: 3px;
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
}
.chemrytem-geometry-action {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(25, 118, 210, 0.32);
  border-radius: 7px;
  background: #ffffff;
  color: #1976d2;
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
  padding: 0 10px;
}

.chemrytem-geometry-action:hover,
.chemrytem-geometry-action:focus {
  background: #eef6ff;
}
.chemrytem-conformer-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.chemrytem-conformer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chemrytem-conformer-toolbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-conformer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chemrytem-conformer-list button {
  display: inline-grid;
  gap: 1px;
  min-height: 34px;
  border: 1px solid #d9e8f3;
  border-radius: 7px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  padding: 4px 8px;
  text-align: left;
}

.chemrytem-conformer-list button.is-active {
  border-color: rgba(25, 118, 210, 0.45);
  background: #eef6ff;
}

.chemrytem-conformer-list strong,
.chemrytem-conformer-list span {
  font-size: 10px;
  line-height: 1.15;
}

.chemrytem-conformer-list span {
  color: var(--chemrytem-soft-muted);
}

.chemrytem-conformer-empty {
  display: grid;
  gap: 3px;
  border: 1px dashed #c8d9e6;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.chemrytem-conformer-empty strong,
.chemrytem-conformer-empty span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
}

.chemrytem-conformer-empty strong {
  color: var(--chemrytem-ink);
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-conformer-empty span {
  color: var(--chemrytem-soft-muted);
}

.chemrytem-conformer-stage[hidden] {
  display: none;
}

.chemrytem-conformer-visual {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(170px, 1fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.chemrytem-conformer-preview,
.chemrytem-conformer-readout,
.chemrytem-conformer-landscape {
  min-width: 0;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytem-conformer-preview {
  display: grid;
  place-items: center;
  padding: 6px;
}

.chemrytem-conformer-preview svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.chemrytem-conformer-preview rect {
  fill: #f8fbfd;
  stroke: #e0ebf4;
}

.chemrytem-conformer-bonds line {
  stroke: #8aa0b2;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.chemrytem-conformer-atoms circle {
  stroke: #ffffff;
  stroke-width: 1.2;
}

.chemrytem-conformer-preview-empty {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
}

.chemrytem-conformer-readout {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
}

.chemrytem-conformer-readout strong,
.chemrytem-conformer-readout span,
.chemrytem-conformer-readout dt,
.chemrytem-conformer-readout dd {
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
}

.chemrytem-conformer-readout strong {
  color: var(--chemrytem-ink);
  font-size: 13px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-conformer-readout span,
.chemrytem-conformer-readout dt {
  color: var(--chemrytem-soft-muted);
}

.chemrytem-conformer-readout dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.chemrytem-conformer-readout dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.chemrytem-conformer-readout dd {
  margin: 0;
  color: var(--chemrytem-ink);
  font-weight: var(--chemrytem-weight-semibold);
  text-align: right;
}

.chemrytem-conformer-landscape {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 96px;
  padding: 10px;
}

.chemrytem-conformer-landscape button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 34px;
  border: 0;
  background: transparent;
  color: var(--chemrytem-soft-muted);
  padding: 0;
}

.chemrytem-conformer-landscape i {
  display: block;
  width: 18px;
  height: var(--bar-h);
  min-height: 12px;
  border-radius: 5px 5px 2px 2px;
  background: #9eb8ce;
}

.chemrytem-conformer-landscape button.is-active i {
  background: #1976d2;
}

.chemrytem-conformer-landscape span {
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-conformer-details {
  min-width: 0;
}

.chemrytem-conformer-details summary {
  cursor: pointer;
  color: var(--chemrytem-muted);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-conformer-xyz {
  max-height: 150px;
  margin: 8px 0 0;
  overflow: auto;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 10px;
  line-height: 1.35;
  padding: 8px;
  white-space: pre;
}
.chemrytem-result-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.chemrytem-thermogram-card svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytem-headroom-gauge {
  display: grid;
  gap: 10px;
}

.chemrytem-thermal-visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.chemrytem-thermal-plot,
.chemrytem-thermal-visual-info {
  min-width: 0;
}

.chemrytem-thermal-visual-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.chemrytem-thermal-controls {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.chemrytem-thermal-controls label {
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
}

.chemrytem-thermal-controls select {
  min-width: 0;
  min-height: 30px;
  border: 1px solid #cfe0ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-medium);
  padding: 0 9px;
}

.chemrytem-headroom-gauge svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
}

.chemrytem-gauge-track,
.chemrytem-gauge-band,
.chemrytem-gauge-marker {
  stroke-linecap: round;
}

.chemrytem-gauge-track {
  stroke: #d7e4ef;
  stroke-width: 10;
}

.chemrytem-gauge-band {
  stroke-width: 10;
}

.chemrytem-gauge-band.is-flash {
  stroke: rgba(24, 165, 88, 0.78);
}

.chemrytem-gauge-band.is-buffer {
  stroke: rgba(240, 162, 2, 0.72);
}

.chemrytem-gauge-band.is-decomp {
  stroke: rgba(230, 74, 74, 0.72);
}

.chemrytem-gauge-marker {
  stroke-width: 2;
}

.chemrytem-gauge-marker.is-operating {
  stroke: #0b3357;
}

.chemrytem-gauge-marker.is-flash {
  stroke: #18a558;
}

.chemrytem-gauge-marker.is-decomp {
  stroke: #e64a4a;
}

.chemrytem-gauge-label {
  fill: var(--chemrytem-muted);
  font-size: 8px;
  font-weight: var(--chemrytem-weight-semibold);
  text-anchor: middle;
}

.chemrytem-gauge-label.is-edge {
  text-anchor: middle;
}

.chemrytem-thermo-frame {
  fill: #fbfdff;
  stroke: #e1ebf3;
}

.chemrytem-thermo-axis {
  stroke: #cadbe8;
  stroke-width: 1;
}

.chemrytem-thermo-axis-label {
  fill: var(--chemrytem-soft-muted);
  font-size: 8px;
  font-weight: var(--chemrytem-weight-medium);
  text-anchor: middle;
}

.chemrytem-thermo-label {
  fill: var(--chemrytem-muted);
  font-size: 8px;
  font-weight: var(--chemrytem-weight-semibold);
  text-anchor: middle;
}

.chemrytem-thermo-dsc,
.chemrytem-thermo-tga {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.chemrytem-thermo-dsc {
  stroke: #1976d2;
}

.chemrytem-thermo-tga {
  stroke: #ef6c00;
}

.chemrytem-thermo-marker {
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.chemrytem-thermo-marker.is-tg {
  stroke: rgba(0, 137, 123, 0.75);
}

.chemrytem-thermo-marker.is-tc {
  stroke: rgba(25, 118, 210, 0.72);
}

.chemrytem-thermo-marker.is-tm {
  stroke: rgba(251, 140, 0, 0.8);
}

.chemrytem-thermo-marker.is-td {
  stroke: rgba(239, 68, 68, 0.82);
}

.chemrytem-thermo-series {
  font-size: 8px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-thermo-series.is-dsc {
  fill: #1976d2;
}

.chemrytem-thermo-series.is-tga {
  fill: #ef6c00;
}

.chemrytem-safety-window {
  display: grid;
  gap: 10px;
}

.chemrytem-safety-chip {
  display: grid;
  gap: 2px;
  border: 1px solid #d9e8f3;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.chemrytem-safety-chip strong {
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
}

.chemrytem-safety-chip span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
  line-height: 1.2;
}

.chemrytem-safety-chip.is-green {
  border-left-color: #18a558;
  background: #f5fcf7;
}

.chemrytem-safety-chip.is-yellow {
  border-left-color: #f0a202;
  background: #fffaf0;
}

.chemrytem-safety-chip.is-red {
  border-left-color: #e64a4a;
  background: #fff5f5;
}

.chemrytem-safety-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 10px;
}

.chemrytem-safety-legend-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chemrytem-safety-legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.chemrytem-safety-legend-dot.is-red {
  background: #e64a4a;
}

.chemrytem-safety-legend-dot.is-yellow {
  background: #f0a202;
}

.chemrytem-safety-legend-dot.is-green {
  background: #18a558;
}

.chemrytem-thermal-readout,
.chemrytem-thermal-rule {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chemrytem-thermal-rule {
  row-gap: 4px;
}

.chemrytem-status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 8px;
  border-radius: 50%;
}

.chemrytem-status-dot.is-green {
  background: #18a558;
}

.chemrytem-status-dot.is-yellow {
  background: #f0a202;
}

.chemrytem-status-dot.is-red {
  background: #e64a4a;
}

.chemrytem-status-dot.is-neutral {
  background: #94a3b8;
}

.chemrytem-safety-matrix {
  display: grid;
  gap: 0;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrytem-safety-matrix-head,
.chemrytem-safety-matrix-row {
  display: grid;
  grid-template-columns: 130px 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 8px 10px;
}

.chemrytem-safety-matrix-head {
  background: #f5f9fd;
  border-bottom: 1px solid #d9e8f3;
}

.chemrytem-safety-matrix-head span {
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-semibold);
  line-height: 1.2;
  text-transform: uppercase;
}

.chemrytem-safety-matrix-row + .chemrytem-safety-matrix-row {
  border-top: 1px solid #edf4fa;
}

.chemrytem-safety-matrix-row strong,
.chemrytem-safety-matrix-row span,
.chemrytem-safety-matrix-row p {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
}

.chemrytem-safety-matrix-row strong {
  color: var(--chemrytem-ink);
  font-size: 11px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-safety-matrix-row span {
  color: var(--chemrytem-muted);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-safety-matrix-row p {
  color: var(--chemrytem-ink);
  font-size: 10px;
  font-weight: var(--chemrytem-weight-regular);
}

.chemrytem-safety-matrix-row.is-green {
  background: #f7fcf8;
}

.chemrytem-safety-matrix-row.is-yellow {
  background: #fffaf1;
}

.chemrytem-safety-matrix-row.is-red {
  background: #fff5f5;
}

.chemrytem-donut-wrap {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 9px;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-donut-wrap svg {
  display: block;
  width: 108px;
  height: 108px;
}

.chemrytem-donut-wrap path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 16;
}

.chemrytem-donut-track {
  fill: none;
  stroke: #edf4fa;
  stroke-width: 16;
}

.chemrytem-donut-hole {
  fill: #ffffff;
}

.chemrytem-donut-total,
.chemrytem-donut-caption {
  text-anchor: middle;
}

.chemrytem-donut-total {
  fill: var(--chemrytem-ink);
  font-size: 15px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-donut-caption {
  fill: var(--chemrytem-soft-muted);
  font-size: 8px;
  font-weight: var(--chemrytem-weight-medium);
  text-transform: uppercase;
}

.chemrytem-donut-wrap ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chemrytem-donut-wrap li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.2;
}

.chemrytem-donut-wrap li i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chemrytem-donut-wrap li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-donut-wrap li strong {
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-donut-empty {
  display: grid;
  gap: 2px;
  margin-bottom: 9px;
  border: 1px dashed #d7e5f1;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.chemrytem-donut-empty strong {
  color: var(--chemrytem-ink);
  font-size: 12px;
}

.chemrytem-donut-empty span {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
}

.chemrytem-packing-glyph {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 9px;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-packing-glyph svg {
  display: block;
  width: 98px;
  height: 98px;
}

.chemrytem-packing-frame {
  fill: #f8fbfe;
  stroke: #d9e8f3;
}

.chemrytem-packing-cells rect {
  fill: rgba(25, 118, 210, 0.18);
  stroke: #1976d2;
  stroke-width: 1.2;
}

.chemrytem-packing-axis {
  fill: none;
  stroke: rgba(0, 137, 123, 0.55);
  stroke-dasharray: 4 4;
  stroke-width: 2;
}

.chemrytem-packing-glyph div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chemrytem-packing-glyph strong,
.chemrytem-packing-glyph span,
.chemrytem-packing-glyph em {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-packing-glyph strong {
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-packing-glyph span {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
}

.chemrytem-packing-glyph em {
  color: #1976d2;
  font-size: 10px;
  font-style: normal;
  font-weight: var(--chemrytem-weight-semibold);
}


.chemrytem-solvation-decision {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.chemrytem-solvation-decision-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.chemrytem-solvation-plot,
.chemrytem-solvation-information {
  min-width: 0;
}

.chemrytem-solvation-information {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.chemrytem-solvation-verdict {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d9e8f3;
  border-radius: 7px;
  background: #ffffff;
  padding: 8px;
}

.chemrytem-solvation-verdict strong,
.chemrytem-solvation-verdict span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-solvation-verdict strong {
  color: var(--chemrytem-ink);
  font-size: 12px;
  font-weight: var(--chemrytem-weight-semibold);
}

.chemrytem-solvation-verdict span {
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
}

.chemrytem-solvation-decision svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: #ffffff;
  aspect-ratio: 320 / 150;
}

.chemrytem-solvation-map {
  fill: #f8fbfe;
  stroke: #d9e8f3;
}

.chemrytem-solvation-tradeoff {
  stroke: rgba(68, 93, 115, 0.34);
  stroke-dasharray: 5 5;
  stroke-width: 2;
}

.chemrytem-solvation-axis {
  fill: var(--chemrytem-soft-muted);
  font-size: 5px;
}

.chemrytem-solvation-point {
  fill: #1976d2;
  stroke: #ffffff;
  stroke-width: 3;
}

.chemrytem-solvation-decision.is-go .chemrytem-solvation-point,
.chemrytem-solvation-decision.is-go .chemrytem-solvation-bars i {
  fill: #00897b;
  background: #00897b;
}

.chemrytem-solvation-decision.is-modify .chemrytem-solvation-point,
.chemrytem-solvation-decision.is-modify .chemrytem-solvation-bars i {
  fill: #b7791f;
  background: #b7791f;
}

.chemrytem-solvation-decision.is-stop .chemrytem-solvation-point,
.chemrytem-solvation-decision.is-stop .chemrytem-solvation-bars i {
  fill: #c2413d;
  background: #c2413d;
}

.chemrytem-solvation-bars {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.chemrytem-solvation-bars div {
  display: grid;
  grid-template-columns: 105px minmax(64px, 1fr) minmax(92px, 0.8fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.chemrytem-solvation-bars span,
.chemrytem-solvation-bars em {
  min-width: 0;
  overflow: hidden;
  color: var(--chemrytem-muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-solvation-bars em {
  color: var(--chemrytem-soft-muted);
  font-style: normal;
}

.chemrytem-solvation-bars b {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef7;
}

.chemrytem-solvation-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.chemrytem-metric-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 0.55fr);
  gap: 8px;
  min-width: 0;
}

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

.chemrytem-metric-row dt {
  color: var(--chemrytem-muted);
  font-weight: var(--chemrytem-weight-medium);
}

.chemrytem-metric-row dd {
  overflow-wrap: anywhere;
  color: var(--chemrytem-ink);
  font-weight: var(--chemrytem-weight-regular);
}

.chemrytem-metric-row[data-chemrytem-fragment-highlight] {
  border-radius: 6px;
  outline: 0;
}

.chemrytem-metric-row[data-chemrytem-fragment-highlight]:hover,
.chemrytem-metric-row[data-chemrytem-fragment-highlight]:focus {
  background: #eef6ff;
}

.chemrytem-identity-row dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chemrytem-identity-value {
  display: block;
  width: min(100%, 360px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-copy-identity {
  position: relative;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px;
  border: 1px solid var(--chemrytem-line-strong);
  border-radius: 4px !important;
  background: #ffffff;
  color: #1976d2;
  padding: 0 !important;
}

.chemrytem-copy-identity:hover {
  border-color: #1976d2;
  background: #eef6ff;
}

.chemrytem-copy-identity::before {
  content: "";
}

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

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

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

.chemrytem-copy-identity.is-copied {
  border-color: #11835c;
  color: #11835c;
  background: #effaf5;
}

.chemrytem-copy-identity.is-copied::before {
  left: 5px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
}

.chemrytem-copy-identity.is-copied::after {
  display: none;
}

.chemrytem-result-muted {
  margin: 0;
  color: var(--chemrytem-soft-muted);
  font-size: 11px;
  line-height: 1.4;
}

.chemrytem-result-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.chemrytem-result-list li {
  color: var(--chemrytem-ink);
  font-size: 11px;
  line-height: 1.35;
}

.chemrytem-result-list strong,
.chemrytem-result-list span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chemrytem-result-list span {
  color: var(--chemrytem-soft-muted);
}

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

.chemrytem-svg-grid div {
  min-width: 0;
  border: 1px solid #e1ebf3;
  border-radius: 6px;
  background: #ffffff;
  padding: 6px;
}

.chemrytem-svg-grid svg {
  display: block;
  width: 100%;
  height: auto;
}

.chemrytem-svg-grid span {
  display: block;
  overflow: hidden;
  color: var(--chemrytem-soft-muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrytem-result-code {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  color: var(--chemrytem-ink);
  font-size: 10px;
  line-height: 1.35;
  white-space: pre-wrap;
}

@media (max-width: 1040px) {
  .chemrytem-loader-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .chemrytem-shell {
    width: calc(100% - 20px) !important;
    margin: 1rem 10px 2rem !important;
  }

  .chemryt-module-navbar .chemryt-module-navbar__list {
    width: calc(100% - 20px) !important;
    margin-left: 10px !important;
  }

  .chemrytem-topbar,
  .chemrytem-panel-head,
  .chemrytem-info-head,
  .chemrytem-optimizer-tip header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chemrytem-panel-head > span {
    max-width: 100%;
    text-align: left;
  }

  .chemrytem-layout-debug-grid,
  .chemrytem-loader-fields,
  .chemrytem-result-summary,
  .chemrytem-result-grid,
  .chemrytem-formulation-live-grid,
  .chemrytem-electrochem-target,
  .chemrytem-triage-grid,
  .chemrytem-radar-wrap,
  .chemrytem-radar-wrap ul,
  .chemrytem-matrix-wrap,
  .chemrytem-donut-wrap,
  .chemrytem-thermal-controls,
  .chemrytem-packing-glyph,
  .chemrytem-safety-matrix-head,
  .chemrytem-safety-matrix-row {
    grid-template-columns: 1fr;
  }

  .chemrytem-loader-fields .chemrytem-sample-module-field,
  .chemrytem-prediction-actions,
  .chemrytem-solvation-bars div,
  .chemrytem-conformer-visual,
  .chemrytem-formulation-toolbar {
    grid-template-columns: 1fr;
  }

  .chemrytem-formulation-toolbar > span {
    text-align: left;
  }

  .chemrytem-solvation-verdict {
    align-items: flex-start;
    flex-direction: column;
  }

  .chemrytem-layout-debug dl > div {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

/* Full-width scientific result flow: unequal cards no longer share a tall row. */
.chemrytem-result-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.chemrytem-result-grid > .chemrytem-result-card {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.chemrytem-chemistry-context {
  display: grid;
  grid-template-columns: max-content minmax(260px, 420px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f7fbfe;
  padding: 8px 10px;
}
.chemrytem-chemistry-context label { color: var(--chemrytem-ink); font-size: 11px; font-weight: 600; }
.chemrytem-chemistry-context select { min-height: 31px; border: 1px solid #b9d2e6; border-radius: 6px; background: #fff; color: var(--chemrytem-ink); padding: 0 9px; font-size: 11px; }
.chemrytem-chemistry-context > span { color: var(--chemrytem-muted); font-size: 10px; text-align: right; }

.chemrytem-loader-readouts .chemrytem-chemistry-context {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px 8px;
  padding: 7px 8px;
}
.chemrytem-loader-readouts .chemrytem-chemistry-context > span {
  grid-column: 2;
  text-align: left;
  font-size: 9px;
}

@media (max-width: 820px) {
  .chemrytem-chemistry-context { grid-template-columns: minmax(0, 1fr); }
  .chemrytem-chemistry-context > span { text-align: left; }
}

.chemrytem-capacity-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chemrytem-capacity-controls button {
  min-height: 28px;
  border: 1px solid #b9d2e6;
  border-radius: 6px;
  background: #fff;
  color: var(--chemrytem-ink);
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.chemrytem-capacity-controls button.is-active {
  border-color: #147bd1;
  background: #147bd1;
  color: #fff;
}

.chemrytem-highlight-redox {
  width: 92px;
  height: 92px;
  border: 3px solid rgba(220, 38, 38, 0.82);
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.08);
}

.chemrytem-chemistry-fit {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  border-left: 4px solid #64748b;
  border-radius: 7px;
  background: #f6f9fc;
  padding: 8px 10px;
}

.chemrytem-chemistry-fit.is-pass { border-left-color: #16865d; background: #f1faf6; }
.chemrytem-chemistry-fit.is-caution { border-left-color: #c28416; background: #fff9ec; }
.chemrytem-chemistry-fit.is-risk { border-left-color: #c2413d; background: #fff4f3; }
.chemrytem-chemistry-fit span,
.chemrytem-chemistry-fit em { color: var(--chemrytem-soft-muted); font-size: 10px; font-style: normal; }
.chemrytem-chemistry-fit strong { color: var(--chemrytem-ink); font-size: 12px; }

.chemrytem-battery-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.chemrytem-battery-kpi {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dce8f2;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}

.chemrytem-battery-kpi > div { display: flex; justify-content: space-between; gap: 5px; }
.chemrytem-battery-kpi span { color: var(--chemrytem-muted); font-size: 10px; font-weight: var(--chemrytem-weight-semibold); }
.chemrytem-battery-kpi em { color: #64748b; font-size: 8px; font-style: normal; text-transform: uppercase; }
.chemrytem-battery-kpi strong { color: var(--chemrytem-ink); font-size: 13px; line-height: 1.15; }
.chemrytem-battery-kpi small { color: var(--chemrytem-soft-muted); font-size: 9px; line-height: 1.25; }
.chemrytem-battery-kpi b { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #e8eff5; }
.chemrytem-battery-kpi i { display: block; height: 100%; border-radius: inherit; background: #64748b; }
.chemrytem-battery-kpi.is-pass i { background: #16865d; }
.chemrytem-battery-kpi.is-caution i { background: #c28416; }
.chemrytem-battery-kpi.is-risk i { background: #c2413d; }

.chemrytem-method-note {
  margin-top: 8px;
  border-top: 1px solid #e3edf5;
  padding-top: 6px;
}
.chemrytem-method-note summary { color: var(--chemrytem-muted); font-size: 10px; cursor: pointer; }
.chemrytem-method-note p { margin: 6px 0 0; color: var(--chemrytem-soft-muted); font-size: 9px; line-height: 1.35; }

.chemrytem-info-tip {
  position: relative;
  display: inline-grid;
  width: 17px;
  min-width: 17px !important;
  height: 17px;
  min-height: 0 !important;
  place-items: center;
  border: 1px solid #a9c5da;
  border-radius: 50%;
  background: #fff;
  color: #28658f;
  padding: 0;
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.chemrytem-info-tip:is(:hover, :focus-visible)::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 7px);
  left: 50%;
  width: min(280px, 70vw);
  border: 1px solid #b8cfdf;
  border-radius: 6px;
  background: #17344c;
  color: #fff;
  padding: 7px 8px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  content: attr(aria-label);
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgba(15, 42, 61, 0.18);
}

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

.chemrytem-compatibility-tag {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) max-content 17px;
  gap: 6px;
  align-items: center;
  min-width: 0;
  border: 1px solid #dbe8f2;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}
.chemrytem-compatibility-tag > i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.chemrytem-compatibility-tag > span { min-width: 0; color: var(--chemrytem-ink); font-size: 10px; font-weight: 600; }
.chemrytem-compatibility-tag > strong { font-size: 9px; text-transform: uppercase; }
.chemrytem-compatibility-tag.is-pass > i { background: #16865d; }
.chemrytem-compatibility-tag.is-pass > strong { color: #126c4c; }
.chemrytem-compatibility-tag.is-warning > i { background: #d1931e; }
.chemrytem-compatibility-tag.is-warning > strong { color: #986711; }
.chemrytem-compatibility-tag.is-fail > i { background: #c2413d; }
.chemrytem-compatibility-tag.is-fail > strong { color: #a2322f; }

.chemrytem-energy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.chemrytem-energy-plot svg { display: block; width: 100%; height: auto; border: 1px solid #e1ebf3; border-radius: 8px; background: #fff; }
.chemrytem-energy-info { display: grid; align-content: center; gap: 8px; border: 1px solid #e1ebf3; border-radius: 8px; background: #fff; padding: 12px; }
.chemrytem-energy-info > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf3f7; padding-bottom: 6px; }
.chemrytem-energy-info span { color: var(--chemrytem-muted); font-size: 10px; }
.chemrytem-energy-info strong { color: var(--chemrytem-ink); font-size: 11px; text-align: right; }
.chemrytem-energy-info p { margin: 0; color: var(--chemrytem-soft-muted); font-size: 9px; line-height: 1.35; }
.chemrytem-energy-axis { stroke: #9eb6c9; stroke-width: 1; }
.chemrytem-energy-level { stroke-width: 3; }
.chemrytem-energy-level.is-homo { stroke: #c2413d; }
.chemrytem-energy-level.is-lumo { stroke: #1976d2; }
.chemrytem-energy-window { fill: rgba(22, 134, 93, 0.16); stroke: #16865d; stroke-width: 1; }
.chemrytem-window-limit { stroke-width: 2; }
.chemrytem-window-limit.is-oxidation { stroke: #c2413d; }
.chemrytem-window-limit.is-reduction { stroke: #1976d2; }
.chemrytem-reference-line { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.chemrytem-energy-layout :is(.chemrytem-energy-title, .chemrytem-energy-label) { fill: var(--chemrytem-plot-label); font-size: 5px !important; font-weight: 600 !important; text-anchor: middle; }
.chemrytem-energy-layout .chemrytem-energy-label { text-anchor: start; }

.chemrytem-capacity-panel { display: grid; grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr); gap: 10px; align-items: center; }
.chemrytem-capacity-panel .chemrytem-capacity-controls { margin-top: 0; align-items: center; }
.chemrytem-capacity-hero { display: grid; gap: 3px; border-left: 4px solid #1976d2; border-radius: 7px; background: #f3f8fd; padding: 8px 10px; }
.chemrytem-capacity-hero > span { display: flex; align-items: center; gap: 6px; color: var(--chemrytem-muted); font-size: 10px; }
.chemrytem-capacity-hero > strong { color: #0b4f85; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chemrytem-capacity-hero > em { color: var(--chemrytem-soft-muted); font-size: 10px; font-style: normal; }

.chemrytem-processability-layout { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: center; }
.chemrytem-processability-dial { --score-angle: calc(var(--chemrytem-process-score) * 3.6deg); display: grid; width: 104px; height: 104px; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 0 58%, transparent 59%), conic-gradient(#1976d2 0 var(--score-angle), #e4edf4 var(--score-angle) 360deg); }
.chemrytem-processability-dial strong { color: var(--chemrytem-ink); font-size: 22px; line-height: 1; text-align: center; }
.chemrytem-processability-dial span { color: var(--chemrytem-soft-muted); font-size: 9px; text-align: center; }
.chemrytem-processability-layout h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--chemrytem-ink); font-size: 12px; }
.chemrytem-process-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chemrytem-process-chips span { border: 1px solid #dce8f2; border-radius: 99px; background: #fff; color: var(--chemrytem-muted); padding: 5px 8px; font-size: 9px; }
.chemrytem-process-chips b { color: var(--chemrytem-ink); font-size: 10px; }

@media (max-width: 1000px) {
  .chemrytem-compatibility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .chemrytem-battery-kpi-grid,
  .chemrytem-chemistry-fit,
  .chemrytem-compatibility-grid,
  .chemrytem-energy-layout { grid-template-columns: minmax(0, 1fr); }
  .chemrytem-processability-layout { grid-template-columns: minmax(0, 1fr); }
  .chemrytem-capacity-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Solvation decision chart is intentionally half-panel; SVG units scale up. */
.chemrytem-solvation-decision .chemrytem-solvation-axis {
  font-size: 5px !important;
  font-weight: var(--chemrytem-weight-medium) !important;
}

@media (max-width: 900px) {
  .chemrytem-solvation-decision-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .chemrytem-thermal-visual-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Thermal SVG labels use viewBox units and must remain compact at half-panel scale. */
.chemrytem-thermal-visual-layout .chemrytem-gauge-label,
.chemrytem-thermal-visual-layout .chemrytem-thermo-axis-label,
.chemrytem-thermal-visual-layout .chemrytem-thermo-label {
  font-size: 4px !important;
  font-weight: var(--chemrytem-weight-medium) !important;
}

.chemrytem-thermal-visual-layout .chemrytem-thermo-series {
  font-size: 5px !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
}

/* Scientist-first visual standard
   One compact type scale and one plotting grammar across every result module. */
:root {
  --chemrytem-type-caption: 10px;
  --chemrytem-type-label: 11px;
  --chemrytem-type-body: 12px;
  --chemrytem-type-section: 13px;
  --chemrytem-type-title: 18px;
  --chemrytem-leading-compact: 1.25;
  --chemrytem-leading-body: 1.4;
  --chemrytem-plot-axis: #9db2c5;
  --chemrytem-plot-grid: #dce8f2;
  --chemrytem-plot-label: #526b80;
}

.chemrytem-page {
  font-size: var(--chemrytem-type-body);
  font-kerning: normal;
  font-synthesis: none;
  line-height: var(--chemrytem-leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.chemrytem-page h1 {
  font-size: var(--chemrytem-type-title);
  line-height: 1.15;
}

.chemrytem-page h2,
.chemrytem-page h3,
.chemrytem-result-card h3,
.chemrytem-model-hero h3 {
  font-size: var(--chemrytem-type-section) !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
  line-height: 1.25 !important;
}

.chemrytem-page p,
.chemrytem-result-card p,
.chemrytem-result-list li,
.chemrytem-model-hero p,
.chemrytem-matrix-callout p,
.chemrytem-safety-matrix-row p {
  font-size: var(--chemrytem-type-body) !important;
  font-weight: var(--chemrytem-weight-regular) !important;
  line-height: var(--chemrytem-leading-body) !important;
}

.chemrytem-panel-head > span,
.chemrytem-info-head span,
.chemrytem-loader-fields span,
.chemrytem-loader-readouts dt,
.chemrytem-result-summary span,
.chemrytem-model-hero span,
.chemrytem-model-provenance span,
.chemrytem-safety-matrix-head span,
.chemrytem-formulation-table th,
.chemrytem-model-table th {
  font-size: var(--chemrytem-type-caption) !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
  line-height: var(--chemrytem-leading-compact) !important;
  letter-spacing: 0.02em;
}

.chemrytem-loader-fields input,
.chemrytem-loader-fields select,
.chemrytem-loader-readouts dd,
.chemrytem-page button:not(.chemrytem-jsme *),
.chemrytem-page select:not(.chemrytem-jsme *),
.chemrytem-page input:not(.chemrytem-jsme *),
.chemrytem-result-summary strong {
  font-size: var(--chemrytem-type-body) !important;
  line-height: var(--chemrytem-leading-compact) !important;
}

.chemrytem-result-tabs {
  align-items: stretch;
  gap: 5px;
}

.chemrytem-result-tabs button {
  flex: 1 1 94px;
  min-width: 88px;
  min-height: 30px;
  padding: 5px 9px;
  font-size: var(--chemrytem-type-label) !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
  line-height: 1.1 !important;
  text-align: center;
  white-space: nowrap;
}

.chemrytem-result-card dl,
.chemrytem-metric-row {
  line-height: var(--chemrytem-leading-body);
}

.chemrytem-metric-row dt,
.chemrytem-metric-row dd,
.chemrytem-formulation-table td,
.chemrytem-model-table td,
.chemrytem-radar-wrap li span,
.chemrytem-radar-wrap li strong,
.chemrytem-radar-wrap li em,
.chemrytem-matrix-summary span,
.chemrytem-matrix-summary strong,
.chemrytem-matrix-summary em,
.chemrytem-packing-glyph strong,
.chemrytem-packing-glyph span,
.chemrytem-packing-glyph em,
.chemrytem-solvation-verdict strong,
.chemrytem-solvation-verdict span {
  font-size: var(--chemrytem-type-label) !important;
  line-height: var(--chemrytem-leading-body) !important;
}

.chemrytem-result-muted,
.chemrytem-model-table td small,
.chemrytem-model-provenance strong,
.chemrytem-model-disclaimer,
.chemrytem-model-artifacts li,
.chemrytem-svg-grid span,
.chemrytem-result-code {
  font-size: var(--chemrytem-type-caption) !important;
  line-height: 1.35 !important;
}

.chemrytem-result-panel table {
  font-variant-numeric: tabular-nums;
}

.chemrytem-result-panel table th {
  vertical-align: bottom;
  text-transform: none;
}

.chemrytem-result-panel table td {
  font-size: var(--chemrytem-type-label) !important;
  line-height: 1.35 !important;
}

.chemrytem-page :is(input, select, button):not(.chemrytem-jsme *) {
  font-family: inherit;
}

/* Plot typography: labels stay subordinate to measured values. */
.chemrytem-result-panel svg,
.chemrytem-jsme-edit-layer svg {
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.chemrytem-result-panel svg text,
.chemrytem-jsme-edit-layer svg text {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: var(--chemrytem-weight-medium);
  font-variant-numeric: tabular-nums;
}

.chemrytem-radar-label,
.chemrytem-matrix-zone-label,
.chemrytem-matrix-axis-label,
.chemrytem-solvation-axis,
.chemrytem-gauge-label,
.chemrytem-thermo-axis-label,
.chemrytem-thermo-label,
.chemrytem-thermo-series {
  fill: var(--chemrytem-plot-label) !important;
  font-size: 9px !important;
  font-weight: var(--chemrytem-weight-medium) !important;
}

.chemrytem-result-panel svg :is(line, path, polygon, polyline, circle, rect),
.chemrytem-jsme-edit-layer svg :is(line, path, polygon, polyline, circle, rect) {
  vector-effect: non-scaling-stroke;
}

.chemrytem-radar-grid-ring,
.chemrytem-radar-spoke,
.chemrytem-thermo-axis,
.chemrytem-matrix-axis {
  stroke: var(--chemrytem-plot-grid);
  stroke-width: 1 !important;
}

.chemrytem-thermo-dsc,
.chemrytem-thermo-tga,
.chemrytem-radar-fill,
.chemrytem-solvation-tradeoff {
  stroke-width: 2 !important;
}

.chemrytem-thermo-marker,
.chemrytem-gauge-marker,
.chemrytem-packing-axis {
  stroke-width: 1.5 !important;
}

.chemrytem-gauge-track,
.chemrytem-gauge-band {
  stroke-width: 8 !important;
}

.chemrytem-donut-wrap path,
.chemrytem-donut-track {
  stroke-width: 13 !important;
}

.chemrytem-donut-total {
  font-size: 13px !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
}

.chemrytem-donut-caption {
  font-size: 8px !important;
}

.chemrytem-ferrocene-depiction text {
  font-size: 11px !important;
  font-weight: var(--chemrytem-weight-medium) !important;
}

.chemrytem-ferrocene-depiction text:first-of-type {
  font-size: 13px !important;
  font-weight: var(--chemrytem-weight-semibold) !important;
}

@media (max-width: 820px) {
  .chemrytem-result-tabs button {
    flex-basis: 82px;
    min-width: 76px;
    white-space: normal;
  }

  .chemrytem-metric-row {
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 0.58fr);
  }
}
