.tool-tabs { flex-wrap: wrap; gap: 0 28px; }
.tool-workspace { padding-top: 32px; }
.tool-workspace [hidden] { display: none !important; }
.tool-workspace .snippet-layout { margin-top: 0; gap: 44px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tool-page .workbench-form input, .tool-page .workbench-form textarea { background: #fff; }
.tool-page input[aria-invalid="true"] { border-color: #a1281d; }
.tool-page .workbench-form label span { color: var(--muted-dark); font-weight: 400; }
.tool-page .button { white-space: normal; }
.tool-page main .button-ghost { color: var(--ink); border-color: #9ba9a0; }
.tool-page main .button-ghost:hover { background: #e1e9e3; border-color: #397b19; }
.tool-preview-label { margin: 20px 0 12px !important; font-size: 13px; color: var(--muted-dark); }
.tool-status { min-height: 26px; margin: 6px 0 !important; font-size: 15px; overflow-wrap: anywhere; }
.tool-status[data-error="true"] { color: #a1281d; }
.tool-page form[aria-busy="true"] button { opacity: .65; cursor: wait; }
.tool-explainer { max-width: 850px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.tool-page h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.3; }
.tool-explainer p { margin-top: 16px; color: var(--muted-dark); font-size: 16px; line-height: 1.75; }
.tool-explainer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.tool-explainer a, .redirect-final a { color: #2c6712; text-decoration: underline !important; text-underline-offset: 4px; }
.redirect-result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.redirect-result h2 { margin-bottom: 10px; }
.redirect-chain { list-style: none; padding: 0; margin: 24px 0; }
.redirect-step { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.redirect-code { font: 600 18px/1.4 var(--mono); color: var(--ink); }
.redirect-code small { display: block; color: var(--muted-dark); font: 12px/1.8 system-ui, sans-serif; }
.redirect-step p { overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.redirect-step .redirect-url { font-size: 16px; font-weight: 600; }
.redirect-step .redirect-location { margin-top: 8px; color: var(--muted-dark); }
.redirect-step .redirect-warning { margin-top: 8px; color: #a1281d; font-weight: 600; }
.redirect-final { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; margin-bottom: 10px !important; }
@media (max-width: 880px) { .tool-workspace .snippet-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 580px) {
  .tool-workspace { padding-top: 24px; }
  .tool-page .workbench-input-row { flex-direction: column; }
  .tool-actions { flex-direction: column; }
  .tool-page .button { min-height: 48px; }
  .redirect-step { grid-template-columns: minmax(0, 1fr); }
  .redirect-code small { display: inline; margin-left: 12px; }
}
