/* Shared by the generator tool pages and the illustrated how-to guides. */
.tool-panel { background:white; border:1.5px solid #c7d2fe; border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:24px; margin:18px 0 20px; }
.tool-panel .gen-submit-row { padding:18px 0 0; }
.tool-group { margin-top:14px; }
.tool-group[hidden] { display:none; }
.tool-checks { border:0; padding:0; margin:16px 0 0; }
.tool-checks legend { font-size:.8rem; font-weight:600; color:var(--gray-700); padding:0; margin-bottom:6px; }
.tool-checks__grid { display:grid; grid-template-columns:1fr 1fr; gap:2px 20px; }
.tool-result { margin:0 0 16px; }
.tool-result pre { min-height:96px; }
.tool-actions { display:flex; gap:8px; flex-shrink:0; }
.tool-notes { background:var(--primary-light); border:1px solid #c7d2fe; border-radius:var(--radius); padding:14px 18px; margin:0 0 28px; }
.tool-notes[hidden] { display:none; }
.tool-notes strong { display:block; color:var(--gray-900); font-size:.84rem; margin-bottom:4px; }
.template-main .tool-notes ul { margin:0; padding-left:18px; }
.template-main .tool-notes li { font-size:.84rem; line-height:1.6; margin-bottom:4px; }

.guide-steps { list-style:none; counter-reset:guide-step; padding:0 !important; margin:16px 0 22px !important; }
.guide-steps > li { counter-increment:guide-step; position:relative; padding:0 0 14px 44px; }
.guide-steps > li::before { content:counter(guide-step); position:absolute; left:0; top:2px; width:30px; height:30px; border-radius:50%; background:var(--primary); color:white; font-size:.82rem; font-weight:700; line-height:30px; text-align:center; }
.guide-steps > li strong { display:block; color:var(--gray-900); }

.guide-figure { margin:22px 0 26px; }
.guide-figure img { display:block; width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--gray-200); background:white; }
.guide-figure figcaption { color:var(--gray-500); font-size:.78rem; line-height:1.5; margin-top:8px; }

.template-main a:not(.btn):not(.related-card) { color:var(--primary); text-decoration:underline; text-underline-offset:2px; }

@media(max-width:560px){
  .tool-panel { padding:18px; }
  .tool-panel .form-grid,.tool-checks__grid { grid-template-columns:1fr; }
  .tool-actions { width:100%; }
  .guide-steps > li { padding-left:40px; }
}
