/* ZeroFee Tools - developer tool page styles */
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
#siteHeader{background:#fff;border-bottom:1px solid #e5e7eb;padding:22px 0 18px}
#siteHeader .brand{display:inline-block;font-weight:800;color:#6366f1;text-decoration:none;margin-bottom:8px}
#siteHeader h1{font-size:1.9rem;margin:0;color:#111827;line-height:1.25}
.tool-app{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:22px;margin:20px 0;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.tool-app label.lbl{display:block;font-weight:700;margin:14px 0 6px;color:#1f2937}
.tool-app label.lbl:first-child{margin-top:0}
.tool-app textarea,.tool-app input[type=text],.tool-app input[type=number],.tool-app input[type=datetime-local],.tool-app select{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:12px;font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95rem;background:#f9fafb;color:#111827}
.tool-app textarea:focus,.tool-app input:focus,.tool-app select:focus{outline:2px solid #6366f1;border-color:#6366f1;background:#fff}
.tool-app textarea{min-height:160px;resize:vertical}
.tool-app textarea.tall{min-height:220px}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 6px}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #d1d5db;background:#fff;color:#1f2937;border-radius:10px;padding:10px 18px;font:inherit;font-weight:700;cursor:pointer}
.btn:hover{border-color:#6366f1;color:#4f46e5}
.btn-primary{background:#4f46e5;border-color:#4f46e5;color:#fff}
.btn-primary:hover{background:#4338ca;color:#fff}
.btn:disabled{opacity:.55;cursor:not-allowed}
.radio-group{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0}
.radio-group label{display:inline-flex;align-items:center;gap:7px;font-weight:600;cursor:pointer}
.checks{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0}
.checks label{display:inline-flex;align-items:center;gap:7px;font-weight:600;cursor:pointer}
.output-wrap{margin-top:14px}
pre.out{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:16px;overflow:auto;max-height:480px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}
pre.out.light{background:#f8fafc;color:#111827;border:1px solid #e5e7eb}
.msg{border-radius:10px;padding:12px 16px;margin:12px 0;font-weight:600;display:none}
.msg.err{display:block;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.msg.ok{display:block;background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.msg.warn{display:block;background:#fffbeb;border:1px solid #fde68a;color:#b45309}
.stat-row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.stat{background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:8px 14px;font-weight:700;color:#3730a3;font-size:.92rem}
.tabs{display:flex;gap:8px;margin-bottom:14px}
.tab{border:1px solid #d1d5db;background:#fff;border-radius:10px 10px 0 0;padding:10px 22px;font:inherit;font-weight:700;cursor:pointer;border-bottom:none;color:#6b7280}
.tab.active{background:#4f46e5;color:#fff;border-color:#4f46e5}
.tab-panel{display:none}
.tab-panel.active{display:block}
table.cheat{width:100%;border-collapse:collapse;margin:10px 0;font-size:.92rem}
table.cheat th,table.cheat td{border:1px solid #e5e7eb;padding:8px 10px;text-align:left}
table.cheat th{background:#eef2ff;color:#3730a3}
table.cheat code{background:#f1f5f9;padding:2px 6px;border-radius:6px;font-family:ui-monospace,Menlo,Consolas,monospace}
mark{background:#fde047;color:#111827;border-radius:3px;padding:0 2px}
.group-list{margin:10px 0;padding-left:0;list-style:none}
.group-list li{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;margin:6px 0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;word-break:break-all}
.related-tools{margin:28px 0}
.related-tools h2{color:#312e81}
.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:12px}
.related-card{display:block;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px 18px;text-decoration:none;color:inherit}
.related-card:hover{border-color:#6366f1;box-shadow:0 2px 8px rgba(99,102,241,.15)}
.related-card strong{display:block;color:#4f46e5;margin-bottom:6px;font-size:1.02rem}
.related-card span{color:#4b5563;font-size:.93rem;line-height:1.5}
.notice{background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:12px 16px;margin:12px 0;color:#3730a3;line-height:1.6}
@media(max-width:640px){#siteHeader h1{font-size:1.45rem}.tool-app{padding:16px}.btn-row .btn{flex:1 1 100%;justify-content:center}}
