/* Free public tools (templates/tools/*, web/routes/tools.py): one narrow column.
   Layout only: buttons, cards and inputs come from the global classes. The top bar is the
   auth pages' see-through one (.page-auth, login.css); the page carries its own logo. */
.tool-page { display: flex; flex-direction: column; gap: 24px; max-width: 640px; margin: 0 auto; padding: 8px 24px 56px; box-sizing: border-box; }
/* One language at one URL: the header's language pill (it posts to the app) stays out. */
.page-tool .top-nav .lang-pill { display: none; }
.tool-page h1, .tool-page h2, .tool-page h3 { margin: 0; color: var(--label-1); }

.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tool-logo { height: 18px; display: block; }
.tool-login { color: var(--label-2); font-size: 13.5px; text-decoration: none; }
.tool-login:hover { color: var(--label-1); }

.tool-hero { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tool-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.tool-lead { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.55; max-width: 52ch; }

.tool-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tool-form label { margin: 0; color: var(--label-2); font-size: 12.5px; font-weight: 500; }
.tool-form-row { display: flex; gap: 8px; }
.tool-form-row input { flex: 1; min-width: 0; height: 40px; margin: 0; font-family: var(--font-mono); font-size: 14px; }
.tool-form-row .btn { height: 40px; flex-shrink: 0; white-space: nowrap; }
.tool-help { margin: 0; color: var(--label-3); font-size: 12.5px; }
.tool-error { margin: 0; color: var(--c-danger); font-size: 13px; }

.tool-result { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 18px; overflow: hidden; }
.tool-strip { height: 56px; margin: 0 -20px; background: var(--fill-2); border-bottom: 1px solid var(--hairline); }
/* The picture overlaps the strip; the names start under it. */
.tool-ident { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-top: -42px; min-width: 0; }
.tool-avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: var(--platform-discord); box-shadow: 0 0 0 4px var(--card); }
.tool-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tool-avatar svg { width: 55%; height: 55%; fill: var(--c-text-on-dark); }
.tool-names { display: flex; flex-direction: column; min-width: 0; padding-top: 48px; }
.tool-names b { font-size: 16px; font-weight: 600; color: var(--label-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-names span { color: var(--label-3); font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-summary { margin: 0; color: var(--label-1); font-size: 15px; line-height: 1.5; }
.tool-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.tool-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--fill-1); }
.tool-tile dt { color: var(--label-3); font-size: 11.5px; font-weight: 400; }
.tool-tile dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.tool-tile dd.tool-tile-detail { font-size: 12px; font-weight: 500; }
.tool-tone-neutral { color: var(--label-1); }
.tool-tile-detail.tool-tone-neutral { color: var(--label-3); }
.tool-tone-warning { color: var(--c-warning); }
.tool-tone-danger { color: var(--c-danger); }
.tool-notes { margin: 0; padding-left: 18px; color: var(--label-2); font-size: 13px; line-height: 1.55; }
.tool-result-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.tool-result-foot .btn { flex-shrink: 0; white-space: nowrap; }
.tool-fine { color: var(--label-3); font-size: 12px; }

.tool-cta { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--fill-1); }
.tool-cta > div { flex: 1; min-width: 0; }
.tool-cta b { display: block; color: var(--label-1); font-size: 14.5px; }
.tool-cta span { display: block; margin-top: 2px; color: var(--label-2); font-size: 13px; line-height: 1.5; }
.tool-cta .btn { flex-shrink: 0; white-space: nowrap; }

.tool-info { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.tool-info h2 { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.tool-info h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; }
.tool-info ol, .tool-info ul { margin: 0; padding-left: 18px; }
.tool-info ol, .tool-info ul, .tool-info p { color: var(--label-2); font-size: 13.5px; line-height: 1.6; }
.tool-info p { margin: 0; }
.tool-info .tool-alt { margin-top: 10px; }
.tool-info li b { color: var(--label-1); font-weight: 500; }

@media (max-width: 560px) {
    .tool-page { padding: 4px 16px 40px; gap: 18px; }
    .tool-hero h1 { font-size: 24px; }
    .tool-cta { flex-direction: column; align-items: stretch; }
    .tool-result-foot .btn { width: 100%; }
}
