.chemrytiq-page .chemrytiq-result-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.chemrytiq-page .chemrytiq-result-structure-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.chemrytiq-page .chemrytiq-result-structure-canvas {
  position: relative;
  min-height: 27rem;
  border: 1px solid var(--chemrytiq-border);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.chemrytiq-page .chemrytiq-result-structure-canvas > div,
.chemrytiq-page .chemrytiq-result-structure-canvas > *,
.chemrytiq-page .chemrytiq-result-structure-canvas iframe,
.chemrytiq-page .chemrytiq-result-structure-canvas table,
.chemrytiq-page .chemrytiq-result-structure-canvas svg {
  max-width: 100% !important;
}

.chemrytiq-page .chemrytiq-result-structure-canvas > * {
  width: 100% !important;
}

.chemrytiq-page .chemrytiq-result-structure-canvas.is-tools-collapsed::before,
.chemrytiq-page .chemrytiq-result-structure-canvas.is-tools-collapsed::after {
  content: "";
  position: absolute;
  background: #ffffff;
  z-index: 3;
  pointer-events: none;
}

.chemrytiq-page .chemrytiq-result-structure-canvas.is-tools-collapsed::before {
  top: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  border-bottom: 1px solid #d9e5f0;
}

.chemrytiq-page .chemrytiq-result-structure-canvas.is-tools-collapsed::after {
  top: 4.5rem;
  left: 0;
  bottom: 0;
  width: 2.35rem;
  border-right: 1px solid #d9e5f0;
}

.chemrytiq-page .chemrytiq-result-structure-canvas.is-tools-collapsed .chemrytiq-jsme-intro {
  opacity: 1;
  transform: translateY(0);
}

.chemrytiq-page .chemrytiq-jsme-intro {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d5e6f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 35, 58, 0.08);
  color: #36516b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chemrytiq-page .chemrytiq-result-structure-tools {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.chemrytiq-page .chemrytiq-result-summary-panel {
  min-width: 0;
  overflow: hidden;
}

.chemrytiq-page .chemrytiq-result-summary-card {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid #dce6f0;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 26px rgba(15, 35, 58, 0.06);
}

.chemrytiq-page .chemrytiq-result-summary-kicker {
  color: #0b6fbf;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chemrytiq-page .chemrytiq-result-summary-name {
  margin: 0;
  color: #16324d;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  word-break: break-word;
}

.chemrytiq-page .chemrytiq-result-summary-subtext {
  color: #607288;
  font-size: 0.92rem;
  line-height: 1.55;
}

.chemrytiq-page .chemrytiq-result-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chemrytiq-page .chemrytiq-result-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fbff;
  color: #24425f;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
}

.chemrytiq-page .chemrytiq-result-summary-badge.is-pass {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #166534;
}

.chemrytiq-page .chemrytiq-result-summary-badge.is-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.chemrytiq-page .chemrytiq-result-summary-badge.is-neutral {
  background: #f5f9fd;
  color: #44627d;
}

.chemrytiq-page .chemrytiq-result-summary-grid {
  display: grid;
  gap: 0.55rem;
}

.chemrytiq-page .chemrytiq-result-summary-row {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  align-items: flex-start;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding: 0.72rem 0;
  border-top: 1px solid #e4edf6;
}

.chemrytiq-page .chemrytiq-result-summary-label {
  color: #607288;
  font-size: 0.84rem;
  font-weight: 700;
}

.chemrytiq-page .chemrytiq-result-summary-value {
  color: #0f2236;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  justify-self: start;
  word-break: break-word;
}

.chemrytiq-page .chemrytiq-result-summary-value.is-code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.82rem;
}

.chemrytiq-page .chemrytiq-results-panel {
  margin-top: 1.75rem;
}
