:root {
  --chplc-page-max: 1170px;
  --chplc-bg: #eef3f8;
  --chplc-card: #ffffff;
  --chplc-border: #d7e0ea;
  --chplc-ink: #16324a;
  --chplc-muted: #5c7084;
  --chplc-primary: #0f5f8c;
  --chplc-primary-strong: #0d6e8a;
  --chplc-primary-soft: #dceef8;
  --chplc-success: #14532d;
  --chplc-success-soft: #dff5e6;
  --chplc-alert: #b42318;
  --chplc-alert-soft: #fde7e5;
  --chplc-panel: #f8fbfd;
  --chplc-shadow: 0 18px 40px rgba(20, 46, 67, 0.08);
  --chplc-radius: 24px;
  --chplc-visual-height: 300px;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  overflow-y: auto;
}

.chemryt-module-navbar .chemryt-module-navbar__list {
  width: min(100%, var(--chplc-page-max));
  padding-inline: 15px;
}

.chemrythplc-page {
  min-height: 100vh;
  background: var(--chplc-bg);
  color: var(--chplc-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.chemrythplc-shell {
  width: min(100%, var(--chplc-page-max));
  max-width: var(--chplc-page-max);
  margin: 2rem auto 3rem;
  padding-inline: 15px;
}

.chemrythplc-shell *,
.chemrythplc-shell *::before,
.chemrythplc-shell *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.chemrythplc-card {
  display: flex;
  flex-direction: column;
  background: var(--chplc-card);
  border: 1px solid var(--chplc-border);
  border-radius: var(--chplc-radius);
  box-shadow: var(--chplc-shadow);
  overflow: hidden;
}

.chemrythplc-hero-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.35rem;
  margin-bottom: 1rem;
  border-color: rgba(13, 65, 98, 0.28);
  background:
    linear-gradient(135deg, rgba(12, 54, 88, 0.95), rgba(32, 110, 136, 0.92)),
    linear-gradient(120deg, #0e334d, #1f6c86);
  color: #f5fbff;
}

.chemrythplc-hero-copy {
  flex: 0 1 760px;
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.chemrythplc-kicker,
.chemrythplc-card-kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.chemrythplc-kicker {
  color: rgba(226, 244, 255, 0.86);
}

.chemrythplc-card-kicker {
  color: var(--chplc-muted);
  font-size: 0.76rem;
}

.chemrythplc-title {
  margin: 0;
  color: #f5fbff;
  font-size: 20px;
  line-height: 1.12;
}

.chemrythplc-card-title {
  margin: 0;
  color: #17324a;
  font-size: 1.05rem;
  line-height: 1.2;
}

.chemrythplc-subtitle,
.chemrythplc-chart-caption {
  margin: 0.55rem 0 0;
  max-width: 720px;
  text-align: left;
  color: rgba(233, 245, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.2;
}

.chemrythplc-chart-caption {
  color: var(--chplc-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chemrythplc-hero-actions,
.chemrythplc-card-actions,
.chemrythplc-action-bar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.chemrythplc-hero-actions,
.chemrythplc-card-actions {
  justify-content: flex-end;
}

.chemrythplc-hero-link,
.chemrythplc-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 21px;
  min-height: 21px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.chemrythplc-hero-link {
  height: 28px;
  min-height: 28px;
}

.chemrythplc-hero-link:hover,
.chemrythplc-btn:hover {
  transform: translateY(-1px);
}

.chemrythplc-btn:disabled,
.chemrythplc-btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.chemrythplc-hero-link--primary,
.chemrythplc-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0d6e8a 0%, #1793aa 100%);
  border-color: var(--chplc-primary-strong);
  box-shadow: 0 14px 32px rgba(13, 110, 138, 0.22);
}

.chemrythplc-btn--secondary {
  color: #163347;
  background: #f4fafc;
  border-color: #d6e4ed;
}

.chemrythplc-btn--ghost,
.chemrythplc-hero-link {
  color: #5c7386;
  background: transparent;
  border-color: #d6e4ed;
  box-shadow: none;
}

.chemrythplc-hero-link {
  color: #f5fbff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.chemrythplc-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.chemrythplc-status--info {
  color: #124f75;
  background: #e7f4fb;
  border-color: #bddff0;
}

.chemrythplc-status--success {
  color: var(--chplc-success);
  background: var(--chplc-success-soft);
  border-color: #bde4c7;
}

.chemrythplc-status--error,
.chemrythplc-status--warning {
  color: var(--chplc-alert);
  background: var(--chplc-alert-soft);
  border-color: #f5c3bd;
}

.chemrythplc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.chemrythplc-column {
  display: contents;
}

.chemrythplc-grid > .chemrythplc-card,
.chemrythplc-column > .chemrythplc-card {
  width: 100%;
  min-width: 0;
}

.chemrythplc-editor-card {
  order: 1;
}

.chemrythplc-method-card {
  order: 2;
}

.chemrythplc-action-card {
  order: 3;
}

.chemrythplc-results-card {
  order: 4;
}

.chemrythplc-chart-card {
  order: 5;
}

.chemrythplc-payload-card {
  order: 6;
}

.chemrythplc-card-head,
.chemrythplc-card-body {
  padding: 1.25rem;
}

.chemrythplc-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid #e5edf4;
}

.chemrythplc-card-head--controls {
  justify-content: space-between;
  align-items: center;
}

.chemrythplc-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chemrythplc-analysis-mode {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  gap: 0.75rem;
  margin: 0 0 0 auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid #cfdeeb;
  border-radius: 8px;
  background: #f7fbfe;
}

.chemrythplc-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  color: #35506a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chemrythplc-mode-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0d6e8a;
  cursor: pointer;
}

.chemrythplc-mode-option span {
  line-height: 1.2;
}

.chemrythplc-card-actions--editor {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.chemrythplc-collapse-btn i {
  transition: transform 0.15s ease;
}

.chemrythplc-method-card.is-collapsed .chemrythplc-collapse-btn i {
  transform: rotate(180deg);
}

.chemrythplc-method-card.is-collapsed #chemrythplc-method-body {
  display: none;
}

.chemrythplc-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.chemrythplc-jsme-wrap {
  position: relative;
  height: 100%;
  min-height: var(--chplc-visual-height);
  padding: 0.85rem;
  border: 1px solid #d7e0ea;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
}

.chemrythplc-jsme {
  width: 100%;
  min-height: var(--chplc-visual-height);
  height: var(--chplc-visual-height);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.chemrythplc-ocl-depiction {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--chplc-visual-height);
  height: var(--chplc-visual-height);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.chemrythplc-ocl-depiction svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chemrythplc-ocl-depiction__empty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #375069;
  font-weight: 700;
}

.chemrythplc-ocl-depiction__empty i {
  color: #1d8a8a;
}

.chemrythplc-jsme-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.15s;
}

.chemrythplc-jsme-overlay:hover {
  background: rgba(55, 80, 105, 0.06);
}

.chemrythplc-jsme-overlay__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d7e0ea;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: #375069;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.chemrythplc-jsme-overlay:hover .chemrythplc-jsme-overlay__hint {
  opacity: 1;
}

.chemrythplc-molecule-panel {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
}

.chemrythplc-molecule-input-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
}

.chemrythplc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.chemrythplc-form-grid--editor {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.chemrythplc-form-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chemrythplc-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.chemrythplc-field--recommend {
  margin: -0.45rem;
  padding: 0.45rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.chemrythplc-field--recommend .chemrythplc-label {
  color: #1d4f8a;
}

.chemrythplc-field--recommend .chemrythplc-select {
  border-color: #60a5fa;
  background-color: #ffffff;
}

.chemrythplc-field--wide {
  grid-column: 1 / -1;
}

.chemrythplc-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #375069;
}

.chemrythplc-input,
.chemrythplc-select,
.chemrythplc-textarea {
  width: 100%;
  border: 1px solid #cdd8e3;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--chplc-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.96rem;
}

.chemrythplc-input,
.chemrythplc-select {
  height: 28px;
  min-height: 28px;
  padding: 0 0.6rem;
}

.chemrythplc-input--subtle {
  height: 26px;
  min-height: 26px;
  border-style: dashed;
  background: #ffffff;
  font-size: 0.82rem;
}

.chemrythplc-textarea {
  min-height: 76px;
  padding: 0.45rem 0.6rem;
  resize: vertical;
}

.chemrythplc-textarea--compact {
  min-height: 52px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.92rem;
}

.chemrythplc-mixture-table {
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrythplc-mixture-table--full {
  width: 100%;
}

.chemrythplc-mixture-table__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #e5edf4;
  background: #f8fbfd;
  color: #17324a;
  font-size: 0.78rem;
  font-weight: 700;
}

.chemrythplc-mixture-table__head small {
  color: #587087;
  font-weight: 600;
}

.chemrythplc-mixture-components {
  display: grid;
  max-height: 260px;
  overflow: auto;
}

.chemrythplc-mixture-empty {
  padding: 0.7rem;
  color: #587087;
  font-size: 0.84rem;
}

.chemrythplc-mixture-row {
  display: grid;
  grid-template-columns: 86px 28px 96px minmax(0, 1fr) 74px 66px 64px 32px;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #edf2f7;
}

.chemrythplc-mixture-row.is-selected {
  background: #ecfeff;
  box-shadow: inset 3px 0 0 #0d9488;
}

.chemrythplc-mixture-row.is-disabled {
  opacity: 0.58;
}

.chemrythplc-mixture-row:last-child {
  border-bottom: 0;
}

.chemrythplc-mixture-include {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #35506a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.chemrythplc-mixture-include input {
  width: 15px;
  height: 15px;
  accent-color: #0d6e8a;
}

.chemrythplc-mixture-color {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #cdd8e3;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.chemrythplc-mixture-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 50px;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrythplc-mixture-thumb svg {
  width: 100%;
  height: 100%;
}

.chemrythplc-mixture-thumb__fallback {
  color: #587087;
  font-size: 0.72rem;
  font-weight: 700;
}

.chemrythplc-mixture-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.chemrythplc-mixture-meta strong,
.chemrythplc-mixture-meta span,
.chemrythplc-mixture-meta code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chemrythplc-mixture-meta strong {
  color: #17324a;
  font-size: 0.82rem;
}

.chemrythplc-mixture-meta code {
  color: #21425b;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.74rem;
}

.chemrythplc-mixture-meta span {
  color: #587087;
  font-size: 0.74rem;
}

.chemrythplc-mixture-amount {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  color: #587087;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrythplc-mixture-amount input {
  width: 100%;
  min-width: 0;
  padding: 0.32rem 0.36rem;
  border: 1px solid #cdd8e3;
  border-radius: 6px;
  color: #17324a;
  font-size: 0.78rem;
  font-weight: 700;
}

.chemrythplc-mixture-response-share {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
  color: #587087;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chemrythplc-mixture-response-share strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.34rem;
  border: 1px solid #cdd8e3;
  border-radius: 6px;
  background: #ffffff;
  color: #17324a;
  font-size: 0.76rem;
}

.chemrythplc-mixture-row.is-selected .chemrythplc-mixture-response-share strong {
  border-color: #5eead4;
  background: #f0fdfa;
  color: #115e59;
}

.chemrythplc-mixture-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d9e4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #b42318;
  cursor: pointer;
}

.chemrythplc-summary-code,
.chemrythplc-payload-preview {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.chemrythplc-input:focus,
.chemrythplc-select:focus,
.chemrythplc-textarea:focus {
  outline: none;
  border-color: #2d7c99;
  box-shadow: 0 0 0 4px rgba(45, 124, 153, 0.12);
}

.chemrythplc-summary-grid,
.chemrythplc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.chemrythplc-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chemrythplc-molecule-panel .chemrythplc-summary-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.35rem;
  align-items: stretch;
}

.chemrythplc-summary-item,
.chemrythplc-result-metric {
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid #dde6ef;
  background: linear-gradient(180deg, #fbfdff, #f4f8fb);
}

.chemrythplc-molecule-panel .chemrythplc-summary-item {
  min-height: 38px;
  padding: 0.34rem 0.5rem;
  border-radius: 8px;
}

.chemrythplc-summary-item--wide {
  grid-column: 1 / -1;
}

.chemrythplc-molecule-panel .chemrythplc-summary-item--wide {
  min-height: 34px;
  grid-column: 1 / span 2;
}

.chemrythplc-molecule-panel .chemrythplc-summary-item:nth-child(2) {
  grid-column: 3 / span 2;
}

.chemrythplc-summary-label,
.chemrythplc-result-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #587087;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chemrythplc-molecule-panel .chemrythplc-summary-label {
  margin-bottom: 0.12rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.chemrythplc-summary-value,
.chemrythplc-summary-code,
.chemrythplc-result-metric strong {
  color: #17324a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chemrythplc-molecule-panel .chemrythplc-summary-value,
.chemrythplc-molecule-panel .chemrythplc-summary-code {
  display: block;
  font-size: 0.73rem;
  line-height: 1.16;
}

.chemrythplc-molecule-panel .chemrythplc-summary-value {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chemrythplc-molecule-panel .chemrythplc-summary-code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chemrythplc-result-metric strong {
  font-size: 1.3rem;
}

.chemrythplc-gradient-panel,
.chemrythplc-instrument-panel,
.chemrythplc-optimizer-panel,
.chemrythplc-method-notes,
.chemrythplc-method-summary,
.chemrythplc-disclaimer-panel {
  padding: 0.85rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: var(--chplc-panel);
}

.chemrythplc-optimizer-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}

.chemrythplc-optimizer-goals label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cdd8e3;
  border-radius: 8px;
  background: #ffffff;
  color: #27445e;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.chemrythplc-optimizer-goals input {
  accent-color: #0d6e8a;
}

.chemrythplc-optimizer-goals label:has(input:checked) {
  border-color: #7dd3fc;
  background: #ecfeff;
  color: #155e75;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.08);
}

.chemrythplc-optimization-readout {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  color: #21425b;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.chemrythplc-optimization-readout strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #17324a;
}

.chemrythplc-column-recommendation {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0;
  border-top: 1px solid #e5edf4;
}

.chemrythplc-column-recommendation:first-of-type {
  border-top: 0;
}

.chemrythplc-column-recommendation span {
  color: #17324a;
  font-weight: 800;
}

.chemrythplc-column-recommendation small {
  color: #5c7284;
  font-weight: 600;
}

.chemrythplc-qbd-summary {
  margin: 0.25rem 0 0.6rem;
  color: #35506a;
  font-size: 0.86rem;
}

.chemrythplc-qbd-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.28rem;
}

.chemrythplc-qbd-cell {
  display: inline-grid;
  min-height: 1.7rem;
  place-items: center;
  border: 1px solid #d9e4ee;
  border-radius: 6px;
  color: #17324a;
  font-size: 0.76rem;
  font-weight: 800;
}

.chemrythplc-qbd-cell.is-green {
  border-color: #86efac;
  background: #dcfce7;
  color: #14532d;
}

.chemrythplc-qbd-cell.is-amber {
  border-color: #fde68a;
  background: #fef3c7;
  color: #7c5f19;
}

.chemrythplc-qbd-cell.is-red {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.chemrythplc-gradient-preview {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 0.85rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
}

.chemrythplc-gradient-preview__chart {
  min-width: 0;
  overflow: hidden;
}

.chemrythplc-gradient-chart {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 128px;
}

.chemrythplc-gradient-analysis {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: #21425b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chemrythplc-gradient-analysis strong {
  color: #17324a;
}

.chemrythplc-gradient-analysis span {
  display: block;
}

.chemrythplc-pressure-readout,
.chemrythplc-column-volume-readout {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  color: #21425b;
  font-weight: 600;
}

.chemrythplc-pressure-readout.is-ok,
.chemrythplc-column-volume-readout.is-ok {
  color: #14532d;
  border-color: #bde4c7;
  background: #f2fbf4;
}

.chemrythplc-pressure-readout.is-warning,
.chemrythplc-column-volume-readout.is-warning {
  color: #7c5f19;
  border-color: #f0dc9e;
  background: #fff8e6;
}

.chemrythplc-pressure-readout.is-error {
  color: #ffffff;
  border-color: #991b1b;
  background: linear-gradient(135deg, #b42318, #7f1d1d);
  box-shadow: 0 14px 28px rgba(180, 35, 24, 0.22);
}

.chemrythplc-pressure-readout.is-error strong {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.chemrythplc-pressure-readout.is-error small {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.chemrythplc-pressure-readout small,
.chemrythplc-column-volume-readout small {
  color: inherit;
  font-weight: 500;
  opacity: 0.82;
}

.chemrythplc-pressure-profile {
  margin-top: 0.75rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chemrythplc-pressure-chart {
  display: block;
  width: 100%;
  height: 150px;
}

.chemrythplc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.chemrythplc-section-head h3 {
  margin: 0;
  color: #17324d;
  font-size: 0.95rem;
}

.chemrythplc-section-head span {
  color: var(--chplc-muted);
  font-size: 0.86rem;
}

.chemrythplc-action-bar {
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.65rem;
}

.chemrythplc-validation {
  min-height: 22px;
  padding: 0 1.25rem 1.25rem;
  color: var(--chplc-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.chemrythplc-validation.is-error {
  color: var(--chplc-alert);
}

.chemrythplc-validation.is-success {
  color: var(--chplc-success);
}

.chemrythplc-smart-warnings {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.chemrythplc-smart-warnings:empty {
  display: none;
}

.chemrythplc-smart-warning {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #ffffff;
  color: #21425b;
  font-size: 0.88rem;
  line-height: 1.35;
}

.chemrythplc-smart-warning strong {
  display: block;
  margin-bottom: 0.16rem;
  color: #17324a;
}

.chemrythplc-smart-warning.is-warning {
  border-color: #f0dc9e;
  background: #fff8e6;
  color: #7c5f19;
}

.chemrythplc-smart-warning.is-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4f8a;
}

.chemrythplc-advanced-panel {
  margin-top: 0.85rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.chemrythplc-advanced-panel summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #17324a;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.chemrythplc-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.chemrythplc-advanced-panel summary::before {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid #bcd0df;
  border-radius: 50%;
  color: #255f85;
  content: "+";
  font-size: 0.95rem;
  line-height: 1;
}

.chemrythplc-advanced-panel[open] summary::before {
  content: "-";
}

.chemrythplc-advanced-panel .chemrythplc-form-grid {
  margin-top: 0.75rem;
}

.chemrythplc-chart-wrap {
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid #d9e4ee;
  background:
    linear-gradient(180deg, #ffffff, #f7fbfe),
    repeating-linear-gradient(90deg, rgba(22, 48, 69, 0.035) 0, rgba(22, 48, 69, 0.035) 1px, transparent 1px, transparent 72px);
  overflow-x: auto;
}

.chemrythplc-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  min-height: 320px;
}

.chemrythplc-peak-hotspot {
  cursor: crosshair;
  outline: none;
}

.chemrythplc-peak-apex-marker {
  opacity: 0.72;
  transition: r 0.14s ease, opacity 0.14s ease;
}

.chemrythplc-peak-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.chemrythplc-peak-hotspot:hover .chemrythplc-peak-tooltip,
.chemrythplc-peak-hotspot:focus .chemrythplc-peak-tooltip {
  opacity: 1;
}

.chemrythplc-peak-hotspot:hover .chemrythplc-peak-apex-marker,
.chemrythplc-peak-hotspot:focus .chemrythplc-peak-apex-marker {
  opacity: 1;
  r: 6px;
}

.chemrythplc-metrics-dashboard {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: var(--chplc-panel);
}

.chemrythplc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.chemrythplc-metric-tile {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #ffffff;
}

.chemrythplc-metric-tile strong {
  display: block;
  margin-top: 0.25rem;
  color: #17324a;
  font-size: 1.05rem;
}

.chemrythplc-resolution-table {
  overflow-x: auto;
  padding: 0.75rem;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #ffffff;
  color: #21425b;
}

.chemrythplc-resolution-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.chemrythplc-resolution-table th,
.chemrythplc-resolution-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid #e5edf4;
  text-align: left;
  white-space: nowrap;
}

.chemrythplc-resolution-table th {
  color: #587087;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.chemrythplc-payload-preview {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #0f2231;
  color: #d6e7f3;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chemrythplc-method-summary,
.chemrythplc-disclaimer-panel {
  line-height: 1.65;
  color: #21425b;
}

.chemrythplc-method-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.chemrythplc-method-summary-row {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #ffffff;
}

.chemrythplc-method-summary-row span {
  display: block;
  margin-bottom: 0.25rem;
  color: #5c7284;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chemrythplc-method-summary-row strong {
  display: block;
  color: #17324a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chemrythplc-note-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #ffffff;
}

.chemrythplc-note-table__head,
.chemrythplc-note-table__row {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
}

.chemrythplc-note-table__head {
  background: #eef5f8;
  color: #5c7284;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chemrythplc-note-table__row:nth-child(odd) {
  background: #f8fbfd;
}

.chemrythplc-note-table__head span,
.chemrythplc-note-table__row span {
  min-width: 0;
  padding: 0.58rem 0.7rem;
  border-bottom: 1px solid #e4eef5;
}

.chemrythplc-note-table__head span:first-child,
.chemrythplc-note-table__row span:first-child {
  border-right: 1px solid #e4eef5;
}

.chemrythplc-note-table__row:last-child span {
  border-bottom: 0;
}

.chemrythplc-note-table__category {
  color: #24506f;
  font-weight: 800;
}

.chemrythplc-note-table__detail {
  color: #17324a;
  overflow-wrap: anywhere;
}

.chemrythplc-note-table--empty {
  padding: 0.7rem;
  color: #5c7284;
}

.chemrythplc-compare-placeholder {
  color: #7c5f19;
  background: #fff6de;
  border-color: #f0dc9e;
}

@media (max-width: 1100px) {
  .chemrythplc-grid {
    grid-template-columns: 1fr;
  }

  .chemrythplc-editor-card,
  .chemrythplc-method-card,
  .chemrythplc-action-card,
  .chemrythplc-chart-card,
  .chemrythplc-results-card,
  .chemrythplc-payload-card {
    grid-column: 1;
    grid-row: auto;
  }

  .chemrythplc-editor-layout {
    grid-template-columns: 1fr;
  }

  .chemrythplc-form-grid,
  .chemrythplc-form-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chemrythplc-result-grid {
    grid-template-columns: 1fr;
  }

  .chemrythplc-method-summary-grid {
    grid-template-columns: 1fr;
  }

  .chemrythplc-note-table__head {
    display: none;
  }

  .chemrythplc-note-table__row {
    grid-template-columns: 1fr;
  }

  .chemrythplc-note-table__row span:first-child {
    padding-bottom: 0.15rem;
    border-right: 0;
    border-bottom: 0;
  }

  .chemrythplc-note-table__detail {
    padding-top: 0.15rem;
  }
}

@media (max-width: 640px) {
  :root {
    --chplc-visual-height: 260px;
  }

  .chemrythplc-shell {
    margin: 1.5rem auto 2.5rem;
    padding-inline: 1rem;
  }

  .chemrythplc-hero-card,
  .chemrythplc-card-head,
  .chemrythplc-action-bar,
  .chemrythplc-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chemrythplc-card-head,
  .chemrythplc-card-body {
    padding: 1rem;
  }

  .chemrythplc-card-actions,
  .chemrythplc-card-actions--editor,
  .chemrythplc-hero-actions {
    justify-content: flex-start;
  }

  .chemrythplc-gradient-preview {
    grid-template-columns: 1fr;
  }

  .chemrythplc-mixture-row {
    grid-template-columns: 76px 28px minmax(0, 1fr) 32px;
  }

  .chemrythplc-mixture-thumb,
  .chemrythplc-mixture-meta,
  .chemrythplc-mixture-amount,
  .chemrythplc-mixture-response-share {
    grid-column: 1 / -1;
  }

  .chemrythplc-form-grid,
  .chemrythplc-form-grid--editor,
  .chemrythplc-form-grid--compact,
  .chemrythplc-summary-grid,
  .chemrythplc-metrics-grid {
    grid-template-columns: 1fr;
  }
}
.chemrythplc-pressure-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.chemrythplc-pressure-profile .chemrythplc-pressure-chart {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 210px;
}

.chemrythplc-pressure-profile .chemrythplc-pressure-readout {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.chemrythplc-pressure-profile .chemrythplc-column-volume-readout {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

@media (max-width: 760px) {
  .chemrythplc-pressure-profile {
    grid-template-columns: 1fr;
  }

  .chemrythplc-pressure-profile .chemrythplc-pressure-chart,
  .chemrythplc-pressure-profile .chemrythplc-pressure-readout,
  .chemrythplc-pressure-profile .chemrythplc-column-volume-readout {
    grid-column: 1;
    grid-row: auto;
  }
}
