.chemrythplc-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(19, 82, 121, 0.14), transparent 28%),
    linear-gradient(180deg, #eef4f8 0%, #f9fbfd 52%, #edf3f8 100%);
  color: #163045;
}

.chemrythplc-shell {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

.chemrythplc-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d9e4ee;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(19, 50, 73, 0.09);
}

.chemrythplc-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(12, 54, 88, 0.95), rgba(32, 110, 136, 0.92)),
    linear-gradient(120deg, #0e334d, #1f6c86);
  color: #f5fbff;
}

.chemrythplc-kicker,
.chemrythplc-card-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.chemrythplc-title,
.chemrythplc-card-title {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.1;
}

.chemrythplc-card-title {
  font-size: 1.28rem;
  color: #173650;
}

.chemrythplc-subtitle,
.chemrythplc-disclaimer,
.chemrythplc-chart-caption,
.chemrythplc-summary-note {
  margin: 3px 0 0;
  line-height: 1.45;
}

.chemrythplc-disclaimer,
.chemrythplc-chart-caption,
.chemrythplc-summary-note {
  color: #4f6679;
  font-size: 0.9rem;
}

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

.chemrythplc-hero-actions {
  align-content: flex-start;
  justify-content: flex-end;
}

.chemrythplc-hero-link,
.chemrythplc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.chemrythplc-hero-link--primary,
.chemrythplc-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.chemrythplc-btn--secondary {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfd6ff;
}

.chemrythplc-btn--ghost {
  background: #f8fbff;
  color: #30506c;
  border-color: #d3e0eb;
  box-shadow: none;
}

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

.chemrythplc-btn--secondary:hover,
.chemrythplc-btn--secondary:focus-visible {
  border-color: #3b82f6;
  color: #1d4ed8;
}

.chemrythplc-btn--primary:hover,
.chemrythplc-btn--primary:focus-visible,
.chemrythplc-hero-link--primary:hover,
.chemrythplc-hero-link--primary:focus-visible {
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.chemrythplc-status {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #d4e3ed;
  font-weight: 600;
}

.chemrythplc-status--info {
  background: #ecf6fb;
  color: #1f5775;
}

.chemrythplc-status--success {
  background: #ebf8ef;
  color: #246647;
}

.chemrythplc-status--error {
  background: #fff0ee;
  color: #9f382d;
}

.chemrythplc-grid {
  display: grid;
  grid-template-columns: minmax(480px, 0.95fr) minmax(560px, 1.05fr);
  gap: 18px;
}

.chemrythplc-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chemrythplc-card-head,
.chemrythplc-card-body {
  padding: 22px 24px;
}

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

.chemrythplc-jsme-wrap {
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid #d7e4ee;
  background: linear-gradient(180deg, #f7fbfd, #eef4f7);
  padding: 14px;
  margin-bottom: 18px;
}

.chemrythplc-jsme {
  width: 100%;
  height: 390px;
}

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

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

.chemrythplc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.chemrythplc-input,
.chemrythplc-select,
.chemrythplc-textarea {
  width: 100%;
  border: 1px solid #ccd9e3;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #1b3348;
  font: inherit;
  box-sizing: border-box;
}

.chemrythplc-textarea {
  resize: vertical;
  min-height: 80px;
}

.chemrythplc-textarea--mono,
.chemrythplc-summary-code,
.chemrythplc-payload-preview {
  font-family: Consolas, "Courier New", 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: 14px;
}

.chemrythplc-summary-item,
.chemrythplc-result-metric {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dfebf3;
  background: #f8fbfd;
}

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

.chemrythplc-summary-label,
.chemrythplc-result-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c7487;
  margin-bottom: 10px;
}

.chemrythplc-summary-value,
.chemrythplc-summary-code,
.chemrythplc-result-metric strong {
  color: #163045;
  font-size: 1rem;
  word-break: break-word;
}

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

.chemrythplc-gradient-panel,
.chemrythplc-method-notes,
.chemrythplc-method-summary,
.chemrythplc-disclaimer-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dce7ef;
  background: #f8fbfd;
}

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

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

.chemrythplc-section-head span {
  color: #60788b;
  font-size: 0.86rem;
}

.chemrythplc-action-card {
  padding: 0;
}

.chemrythplc-action-bar {
  padding: 22px 24px 10px;
  justify-content: space-between;
}

.chemrythplc-validation {
  min-height: 22px;
  padding: 0 24px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6c7c89;
}

.chemrythplc-validation.is-error {
  color: #a53b30;
}

.chemrythplc-validation.is-success {
  color: #2a6c4b;
}

.chemrythplc-chart-wrap {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #dce7ef;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(239, 245, 248, 0.98)),
    repeating-linear-gradient(90deg, rgba(22, 48, 69, 0.03) 0, rgba(22, 48, 69, 0.03) 1px, transparent 1px, transparent 72px);
}

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

.chemrythplc-payload-preview {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #0f2230;
  color: #dff0ff;
  overflow: auto;
  max-height: 360px;
  font-size: 0.86rem;
  line-height: 1.55;
}

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

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

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

@media (max-width: 768px) {
  .chemrythplc-shell {
    padding: 20px 14px 28px;
  }

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

  .chemrythplc-card-actions,
  .chemrythplc-editor-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .chemrythplc-card-actions .chemrythplc-btn,
  .chemrythplc-editor-toolbar .chemrythplc-btn {
    width: 100%;
    min-width: 0;
  }

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






.chemrythplc-hero-copy {
  max-width: 760px;
}

.chemrythplc-hero-card .chemrythplc-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.chemrythplc-hero-card .chemrythplc-title {
  color: #ffffff;
}

.chemrythplc-hero-card .chemrythplc-subtitle {
  color: rgba(255, 255, 255, 0.96);
}

.chemrythplc-hero-card .chemrythplc-disclaimer {
  color: rgba(232, 243, 255, 0.82);
}


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

.chemrythplc-card-actions .chemrythplc-btn,
.chemrythplc-editor-toolbar .chemrythplc-btn {
  min-height: 44px;
  padding: 10px 16px;
  justify-content: center;
}

.chemrythplc-editor-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chemrythplc-editor-toolbar .chemrythplc-btn {
  flex: 0 0 auto;
  min-width: 230px;
}




.chemrythplc-card-head--controls {
  justify-content: flex-start;
}

.chemrythplc-card-actions--editor {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.chemrythplc-card-actions--editor .chemrythplc-btn {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .chemrythplc-card-actions--editor {
    flex-wrap: wrap;
  }

  .chemrythplc-card-actions--editor .chemrythplc-btn {
    flex: 0 1 auto;
    min-width: 124px;
  }
}

.chemrythplc-card-actions--editor .chemrythplc-btn,
.chemrythplc-card-actions--editor .chemrythplc-btn--primary,
.chemrythplc-card-actions--editor .chemrythplc-btn--ghost {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #1d4ed8;
}

.chemrythplc-card-actions--editor .chemrythplc-btn:hover,
.chemrythplc-card-actions--editor .chemrythplc-btn:focus-visible,
.chemrythplc-card-actions--editor .chemrythplc-btn--primary:hover,
.chemrythplc-card-actions--editor .chemrythplc-btn--primary:focus-visible,
.chemrythplc-card-actions--editor .chemrythplc-btn--ghost:hover,
.chemrythplc-card-actions--editor .chemrythplc-btn--ghost:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  border-color: #1e40af;
}



