.tool-local-badge {
  display: inline-block;
  max-width: 100%;
  margin-block: 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--line, #d7d7df);
  border-radius: 8px;
  background: var(--accent-soft, #e6f3fe);
  color: var(--ink-2, #424245);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.tool-example-button { min-height: 44px; }
/* Tool pages share the image tools' centered introduction and brand controls. */
.apps-brand.site-ui #tool-root { padding-block: 24px 64px; }
.apps-brand #tool-root > .tool-hero { margin: 0; padding: 8px 0 28px; text-align: center; }
.tool-hero h1 { max-width: 22ch; margin: 0 auto 20px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.2; }
.tool-hero p { max-width: 64ch; margin-inline: auto; color: var(--ink-2); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.65; }
#tool-root > [data-tool-local] { text-align: center; }
#tool-root > .order-toolbar { justify-content: center; margin-bottom: 24px; }
#tool-root .tool-example-button { border-color: var(--line-strong); background: var(--surface, #fff); color: var(--ink); }
#tool-root .tool-example-button:hover { background: var(--tint); border-color: var(--ink); color: var(--ink); }
#tool-root .tool-quick-guide { margin-block: 20px; color: var(--ink-2); line-height: 1.7; }
#tool-root .tool-content-section h2 { margin-bottom: 16px; }
#tool-root .tool-content-section p + p { margin-top: 12px; }
#tool-root details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
#tool-root details > summary::-webkit-details-marker { display: none; }
#tool-root details > summary::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin-inline-end: 4px; border: solid var(--muted); border-width: 0 1px 1px 0; transform: rotate(45deg); }
#tool-root details[open] > summary::after { transform: rotate(225deg); }
#tool-root .tool-faq p { padding-block: 8px 16px; color: var(--ink-2); line-height: 1.75; }
#tool-root .tool-related-links { list-style: none; padding: 0; }
#tool-root .tool-related-links li + li { border-top: 1px solid var(--line); }
.tool-status {
  margin-block: 16px;
  padding: 16px;
  border: 1px solid var(--line, #d7d7df);
  border-radius: 8px;
  color: var(--ink-2, #424245);
  overflow-wrap: anywhere;
}
.tool-status[hidden] { display: none; }
.tool-status[data-state="error"] { border-color: currentColor; font-weight: 600; }
.tool-status[data-state="loading"]::before { content: "… "; }
.tool-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-block: 16px 24px;
}
.tool-summary-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line, #d7d7df);
  border-radius: 10px;
  background: var(--surface, #fff);
  overflow-wrap: anywhere;
}
.tool-summary-card dt { color: var(--ink-2, #424245); font-size: .875rem; }
.tool-summary-card dd { margin: 0; }
.tool-summary-value { color: var(--ink, #1d1d1f); font-size: 1.75rem; line-height: 1.3; font-weight: 650; }
.tool-summary-detail { color: var(--ink-2, #424245); font-size: .875rem; }
.tool-content-section { margin-block: 40px; max-width: 70ch; }
.tool-content-section h2 { font-size: 1.25rem; }
.tool-faq { border-block-end: 1px solid var(--line, #d7d7df); padding-block: 8px; }
.tool-faq summary { min-height: 44px; display: list-item; padding-block: 10px; cursor: pointer; }
.tool-related-links { padding-inline-start: 20px; }
.tool-related-links a, .tool-report-cta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent, #0075de); }
.tool-pending-link { color: var(--ink-2, #424245); }
.tool-report-cta { margin-block: 40px; }
@media (max-width: 600px) {
  .apps-brand.site-ui #tool-root { padding-top: 20px; }
  .apps-brand #tool-root > .tool-hero { padding-bottom: 20px; }
  .tool-hero h1 { margin-bottom: 16px; }
  .tool-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-summary-card { padding: 12px; }
  .tool-summary-value { font-size: 1.5rem; }
}
