.chemrytgc-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 85, 122, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(11, 81, 150, 0.08), transparent 24%),
    linear-gradient(180deg, #edf3f8 0%, #f7fafc 48%, #edf4f8 100%);
  color: #163044;
}

.chemrytgc-page *,
.chemrytgc-page *::before,
.chemrytgc-page *::after {
  box-sizing: border-box;
}

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

.chemrytgc-card {
  background: #ffffff;
  border: 1px solid #d8e3ec;
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(19, 50, 73, 0.09);
}

.chemrytgc-hero-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0d3551, #1f6c86);
  color: #f5fbff;
  border-radius: 20px;
  box-shadow: 0 14px 26px rgba(19, 50, 73, 0.07);
}

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

.chemrytgc-title,
.chemrytgc-card-title {
  margin: 0;
  line-height: 1.08;
}

.chemrytgc-title {
  font-size: 1.4rem;
}

.chemrytgc-card-title {
  font-size: 1.22rem;
  color: #18364d;
}

.chemrytgc-subtitle,
.chemrytgc-helper,
.chemrytgc-chart-caption,
.chemrytgc-field-help,
.chemrytgc-inline-note,
.chemrytgc-result-copy {
  margin: 4px 0 0;
  line-height: 1.5;
}

.chemrytgc-helper,
.chemrytgc-chart-caption,
.chemrytgc-field-help,
.chemrytgc-inline-note,
.chemrytgc-result-copy {
  color: #557084;
  font-size: 0.9rem;
}

.chemrytgc-hero-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding-right: 180px;
}

.chemrytgc-kicker {
  color: #f5fbff;
}

.chemrytgc-title {
  color: #f5fbff;
}

.chemrytgc-subtitle {
  margin: 3px 0 0;
  color: #f5fbff;
  font-size: 0.88rem;
}
.chemrytgc-hero-actions {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.chemrytgc-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #f5fbff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.chemrytgc-hero-link:hover,
.chemrytgc-hero-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.chemrytgc-hero-link--primary {
  background: rgba(255, 255, 255, 0.14);
}
.chemrytgc-status {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #d6e4ed;
  font-weight: 600;
}

.chemrytgc-status--info {
  background: #ebf6fb;
  color: #1f5875;
}

.chemrytgc-status--success {
  background: #ebf7ef;
  color: #246647;
}

.chemrytgc-status--error {
  background: #fff1ee;
  color: #9d392d;
}

.chemrytgc-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(560px, 1.05fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

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

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

.chemrytgc-card-actions,
.chemrytgc-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.chemrytgc-action-bar {
  justify-content: flex-start;
}

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

.chemrytgc-btn:hover,
.chemrytgc-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.chemrytgc-btn--primary:hover,
.chemrytgc-btn--primary:focus-visible {
  color: #fff;
  box-shadow: 0 15px 28px rgba(37, 99, 235, 0.28);
}

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

.chemrytgc-btn--ghost {
  background: #f8fbff;
  color: #30506c;
  border-color: #d3e0eb;
}

.chemrytgc-btn--large {
  min-width: 148px;
}

.chemrytgc-jsme-shell {
  min-height: 420px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid #d6e4ee;
  background: linear-gradient(180deg, #f8fbfd, #edf4f7);
}

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

.chemrytgc-form-grid,
.chemrytgc-summary-grid,
.chemrytgc-results-grid,
.chemrytgc-results-detail-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.chemrytgc-input,
.chemrytgc-select,
.chemrytgc-textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccd8e3;
  border-radius: 14px;
  padding: 11px 14px;
  background: #fff;
  color: #1b3347;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chemrytgc-textarea {
  min-height: 96px;
  resize: vertical;
}

.chemrytgc-textarea--mono {
  font-family: Consolas, "Courier New", monospace;
}

.chemrytgc-input:focus,
.chemrytgc-select:focus,
.chemrytgc-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.chemrytgc-input.chemrytgc-input--invalid,
.chemrytgc-select.chemrytgc-input--invalid,
.chemrytgc-textarea.chemrytgc-input--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.chemrytgc-field-error {
  min-height: 18px;
  color: #b42318;
  font-size: 0.82rem;
}

.chemrytgc-inline-validation {
  min-height: 24px;
  margin-bottom: 12px;
  padding: 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.chemrytgc-inline-validation.chemrytgc-inline-validation--success {
  color: #246647;
}

.chemrytgc-inline-note {
  padding: 10px 14px;
  border-radius: 14px;
  background: #f4f9fc;
  border: 1px solid #d9e6ef;
}

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

.chemrytgc-summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dce6ee;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fc 100%);
}

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

.chemrytgc-summary-label,
.chemrytgc-metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #587087;
  text-transform: uppercase;
}

.chemrytgc-summary-value {
  color: #17354d;
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-word;
}

.chemrytgc-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.chemrytgc-metric-card,
.chemrytgc-result-panel,
.chemrytgc-chart-card {
  border: 1px solid #dbe6ee;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.chemrytgc-metric-card {
  padding: 18px 20px;
}

.chemrytgc-metric-value {
  display: block;
  margin-top: 8px;
  color: #14344b;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
}

.chemrytgc-results-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.chemrytgc-result-panel {
  padding: 18px 20px;
}

.chemrytgc-result-title {
  margin: 0;
  color: #17364f;
  font-size: 1.06rem;
}

.chemrytgc-result-copy {
  color: #4f677c;
}

.chemrytgc-chart-head {
  padding: 18px 20px 0;
}

.chemrytgc-chart-wrap {
  padding: 14px 20px 20px;
}

.chemrytgc-chart-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7fb 100%);
}

.chemrytgc-method-summary-list,
.chemrytgc-molecule-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.chemrytgc-method-summary-list li,
.chemrytgc-molecule-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7eef4;
}

.chemrytgc-method-summary-list li:last-child,
.chemrytgc-molecule-summary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.chemrytgc-summary-term {
  color: #5b7287;
  font-weight: 600;
}

.chemrytgc-summary-data {
  color: #17364d;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 1080px) {
  .chemrytgc-grid,
  .chemrytgc-results-grid,
  .chemrytgc-results-detail-grid {
    grid-template-columns: 1fr;
  }

  .chemrytgc-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .chemrytgc-hero-copy {
    padding-right: 0;
  }

  .chemrytgc-hero-actions {
    position: static;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .chemrytgc-shell {
    padding: 0 1rem;
  }

  .chemrytgc-card-head,
  .chemrytgc-card-body {
    padding: 18px;
  }

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

  .chemrytgc-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chemrytgc-card-actions,
  .chemrytgc-action-bar {
    width: 100%;
  }

  .chemrytgc-btn,
  .chemrytgc-btn--large {
    width: 100%;
  }

  .chemrytgc-jsme-shell {
    min-height: 360px;
  }

  .chemrytgc-jsme {
    min-height: 330px;
  }

  .chemrytgc-method-summary-list li,
  .chemrytgc-molecule-summary-list li {
    flex-direction: column;
  }

  .chemrytgc-summary-data {
    text-align: left;
  }
}









