body{background:#f8fafc;color:#0f172a;font-family:Arial,"Noto Sans Bengali",sans-serif}
.tool-page{min-height:65vh;padding:35px 0}.tool-wrap{width:min(900px,92%);margin:auto}
.tool-hero{background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff;padding:28px;border-radius:18px;margin-bottom:20px}
.tool-hero h1{margin:0 0 8px}.tool-hero p{margin:0;color:#dbeafe}
.tool-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px;box-shadow:0 6px 20px rgba(15,23,42,.06)}
.tool-row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.tool-field{margin-bottom:14px}.tool-field label{display:block;font-weight:700;margin-bottom:6px}
.tool-field input,.tool-field select,.tool-field textarea{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;font:inherit}
.tool-field textarea{min-height:180px;resize:vertical}
.tool-btn{display:inline-block;border:0;border-radius:9px;padding:11px 16px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer;margin:4px;text-decoration:none}.tool-btn.secondary{background:#475569}.tool-btn:disabled{opacity:.55;cursor:not-allowed}.tool-result{margin-top:18px;padding:16px;background:#f1f5f9;border-radius:10px;white-space:pre-wrap;word-break:break-word}.tool-result pre{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit}
.tool-output{margin-top:18px;text-align:center}.tool-output img{max-width:100%;border-radius:10px}.tool-actions{margin-top:15px;display:flex;flex-wrap:wrap;gap:6px}.muted{color:#64748b}.error{color:#b91c1c;font-weight:700}
@media(max-width:650px){.tool-row{grid-template-columns:1fr}.tool-panel{padding:18px}.tool-hero{padding:22px}}
