/* Only the optional help panel is styled; existing tool controls are untouched. */
.tool-help {
  min-width: 0;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, var(--surface));
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.tool-help.tool-help-contained {
  width: min(1720px, calc(100% - clamp(40px, 5vw, 160px)));
  margin: 0 auto 64px;
}
.tool-help .tool-help-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: normal;
}
.tool-help .tool-help-intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.tool-help .tool-help-details > summary {
  min-height: 44px;
  padding: 10px 2px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.tool-help .tool-help-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.tool-help .tool-help-details[open] > summary {
  border-bottom: 1px solid var(--line);
}
.tool-help .tool-help-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-top: 18px;
  font-size: 0.95rem;
}
.tool-help .tool-help-body > div {
  min-width: 0;
}
.tool-help .tool-help-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
}
.tool-help .tool-help-body p {
  margin: 0 0 16px;
}
.tool-help .tool-help-body ol,
.tool-help .tool-help-body ul {
  margin: 0 0 16px;
  padding-left: 1.6em;
}
.tool-help .tool-help-body li + li {
  margin-top: 8px;
}
.tool-help .tool-help-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tool-help .tool-help-body > div > :last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .tool-help {
    padding: 16px;
  }
  .tool-help .tool-help-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .tool-help.tool-help-contained {
    width: min(100% - 24px, 1720px);
  }
}
