body { margin: 0; }

.tool-preview {
  width: var(--site-content-width);
  margin: 0 auto 56px;
  color: #173b32;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tool-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

.tool-preview-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.tool-preview-heading p,
.tool-preview-note {
  margin: 6px 0 0;
  color: #4f665d;
}

.tool-preview > .tool-preview-note {
  margin: 0 0 16px;
}

.tool-preview-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: #176653;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.tool-preview-action:hover { background: #114e41; }
.tool-preview-action:focus-visible {
  outline: 2px solid #176653;
  outline-offset: 3px;
}

.tool-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 18px;
}

.tool-preview-panel {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #dce7e1;
  border-radius: 10px;
  background: #fff;
}

.tool-preview-panel h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
}

.tool-preview-panel > details {
  border-top: 1px solid #e0ebe5;
}

.tool-preview-panel summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
}

.tool-preview-values {
  margin: 0 0 12px;
}

.tool-preview-values > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf2ef;
}

.tool-preview-values dd,
.tool-preview-metrics dd {
  margin: 0;
  color: #17483b;
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tool-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid #e0ebe5;
  border-radius: 8px;
  background: #e0ebe5;
  overflow: hidden;
}

.tool-preview-metrics > div {
  min-width: 0;
  padding: 12px;
  background: #f6faf8;
}

.tool-preview-metrics dt { color: #4f665d; }
.tool-preview-metrics dd {
  margin-top: 4px;
  text-align: left;
  font-size: clamp(18px, 2.4vw, 25px);
}

@media (max-width: 760px) {
  .tool-preview { margin-bottom: 36px; }
  .tool-preview-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-preview-heading { align-items: flex-start; flex-direction: column; margin-block: 20px; }
}
