/* Tool pages: a form, its live output, and short notes */
.tool-head-inner{max-width:1200px;padding:0 32px}
.tool-page .page-head{padding:56px 0 44px}
.tool-page .page-head h1{font-size:clamp(34px,4.2vw,54px)}

.tool-work{max-width:1200px;margin:0 auto;padding:44px 32px 72px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.tool-form{display:grid;gap:22px;min-width:0}
.tool-group{margin:0;padding:24px;border:1px solid #dfe0eb;border-radius:16px;background:#fff;min-width:0}
.tool-group legend{float:left;width:100%;padding:0;margin:0 0 18px;font-size:19px;font-weight:700;letter-spacing:-.02em;color:#15172b}
.tool-group legend+*{clear:both}
.tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tool-field{display:grid;gap:6px;min-width:0;align-content:start}
.tool-field.wide{grid-column:1/-1}
.tool-field label,.tool-field .tool-label{font-size:14px;font-weight:650;color:#343a5e}
.tool-field input[type=text],.tool-field input[type=number],.tool-field input[type=url],.tool-field input[type=email],.tool-field select,.tool-field textarea{width:100%;min-height:44px;padding:9px 12px;border:1.5px solid #d5d7e6;border-radius:10px;background:#fff;color:#15172b;font:inherit;font-size:16px;line-height:1.4}
.tool-field textarea{min-height:150px;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.tool-field input:focus-visible,.tool-field select:focus-visible,.tool-field textarea:focus-visible{outline:3px solid #3c34d4;outline-offset:1px;border-color:#3c34d4}
.tool-field small{font-size:13px;line-height:1.5;color:#626579}
.tool-check{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.5;color:#343a5e;cursor:pointer}
.tool-check input{width:18px;height:18px;margin:2px 0 0;accent-color:#3c34d4;flex-shrink:0}
[hidden]{display:none!important}

.tool-output{position:sticky;top:150px;min-width:0;display:grid;gap:14px}
.tool-file{border-radius:16px;background:#12142b;overflow:hidden;border:1px solid #23264a}
.tool-file-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 18px;border-bottom:1px solid #2c3058}
.tool-file-name{font:14px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#c3c6dc;overflow-wrap:anywhere}
.tool-file-actions{display:flex;gap:8px;flex-shrink:0}
.tool-file-actions button{min-height:36px;padding:6px 14px;border:1px solid #3a3f70;border-radius:9px;background:#1b1e3d;color:#e4e6f3;font-size:14px;font-weight:650;transition:background-color .15s,border-color .15s}
.tool-file-actions button:hover{background:#2a2e58;border-color:#5c55ee}
.tool-file-actions button:focus-visible{outline:3px solid #b8bbe7;outline-offset:2px}
.tool-file pre{margin:0;padding:18px;max-height:min(62vh,640px);overflow:auto;font:13.5px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#e4e6f3;white-space:pre;tab-size:4}
.tool-tabs{display:flex;gap:6px;flex-wrap:wrap}
.tool-tabs button{min-height:40px;padding:8px 16px;border:1.5px solid #d5d7e6;border-radius:10px;background:#fff;color:#343a5e;font-size:15px;font-weight:650}
.tool-tabs button[aria-selected=true]{border-color:#3c34d4;background:#eeeefb;color:#251dbd}
.tool-tabs button:focus-visible{outline:3px solid #3c34d4;outline-offset:2px}
.tool-status{min-height:20px;font-size:14px;color:#4d5170;margin:0}
.tool-warnings{margin:0;padding:14px 18px 14px 36px;border:1px solid #f1d58a;border-radius:12px;background:#fff9e6;color:#5c4a12;font-size:15px;line-height:1.6}
.tool-warnings li+li{margin-top:6px}
.tool-next{margin:0;padding:16px 18px;border:1px solid #dfe0eb;border-radius:12px;background:#fff;font-size:15px;line-height:1.65;color:#4d5170}
.tool-next strong{color:#15172b}
.tool-next ol{margin:8px 0 0;padding-left:20px}
.tool-next li+li{margin-top:4px}

.tool-notes{background:#fff;border-top:1px solid #e3e4ed;padding:72px 0}
.tool-notes-inner{max-width:780px;margin:0 auto;padding:0 32px}
.tool-notes h2{font-size:clamp(26px,2.8vw,34px);line-height:1.15;font-weight:750;letter-spacing:-.035em;color:#15172b;margin:0}
.tool-notes h2:not(:first-child){margin-top:52px}
.tool-notes h3{font-size:20px;line-height:1.3;font-weight:700;letter-spacing:-.02em;color:#15172b;margin:32px 0 0}
.tool-notes p,.tool-notes li{font-size:17px;line-height:1.75;color:#4d5170}
.tool-notes p{margin:14px 0 0}
.tool-notes ul,.tool-notes ol{margin:14px 0 0;padding-left:22px}
.tool-notes li+li{margin-top:8px}
.tool-notes a{color:#3c34d4;text-decoration:underline;text-underline-offset:3px}
.tool-notes a:hover{color:#251dbd}
.tool-notes pre{margin:16px 0 0;padding:16px 18px;border-radius:12px;background:#12142b;color:#e4e6f3;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto}
.tool-notes pre code{background:none;color:inherit;padding:0;font:inherit}
.tool-page code{font:.92em/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f0f0f8;color:#232957;padding:2px 6px;border-radius:5px}
.tool-file code,.tool-file pre code{background:none;color:inherit;padding:0}
.tool-table-wrap{margin-top:16px;border:1px solid #dfe0eb;border-radius:12px;overflow-x:auto}
.tool-table{width:100%;border-collapse:collapse;font-size:16px;min-width:480px}
.tool-table th,.tool-table td{padding:12px 16px;text-align:left;vertical-align:top;line-height:1.55;color:#4d5170}
.tool-table thead th{font-size:14px;font-weight:650;background:#fbfbfe;border-bottom:1px solid #dfe0eb;color:#343a5e}
.tool-table tbody tr+tr>*{border-top:1px solid #ecedf4}

@media(max-width:980px){
.tool-work{grid-template-columns:minmax(0,1fr);gap:28px}
.tool-output{position:static}
.tool-file pre{max-height:none}
}
@media(max-width:640px){
.tool-head-inner,.tool-notes-inner{padding:0 16px}
.tool-work{padding:28px 16px 48px}
.tool-group{padding:18px}
.tool-fields{grid-template-columns:minmax(0,1fr)}
.tool-notes{padding:48px 0}
}

/* Single-column tools */
.tool-work.single{grid-template-columns:minmax(0,1fr);max-width:1000px}
.route-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.route-primary,.route-secondary{min-height:46px;padding:10px 20px;border-radius:11px;font-size:16px;font-weight:700;border:1.5px solid transparent}
.route-primary{background:#3c34d4;color:#fff}
.route-primary:hover{background:#251dbd}
.route-secondary{background:#fff;color:#232957;border-color:#d5d7e6}
.route-secondary:hover{background:#f3f3fa}
.route-primary:focus-visible,.route-secondary:focus-visible{outline:3px solid #3c34d4;outline-offset:3px}
.route-error{margin:16px 0 0;padding:12px 16px;border:1px solid #f0b4b4;border-radius:10px;background:#fff1f1;color:#7a1f1f;font-size:15px;line-height:1.55}
.route-result{display:grid;gap:20px;min-width:0}
.route-stats{margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.route-stats div{padding:16px 18px;border:1px solid #dfe0eb;border-radius:14px;background:#fff}
.route-stats dt{font-size:14px;color:#4d5170;line-height:1.4}
.route-stats dd{margin:6px 0 0;font-size:28px;font-weight:750;letter-spacing:-.03em;color:#15172b;line-height:1.1;font-variant-numeric:tabular-nums}
.route-toolbar{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.3fr);gap:14px}
.route-groups{display:grid;gap:12px}
.route-group{border:1px solid #dfe0eb;border-radius:14px;background:#fff;overflow:hidden}
.route-group summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;cursor:pointer;list-style:none;font-size:15px;color:#4d5170}
.route-group summary::-webkit-details-marker{display:none}
.route-group summary code{font-size:16px;font-weight:700;background:none;padding:0;color:#15172b}
.route-group[open] summary{border-bottom:1px solid #ecedf4}
.route-group summary:focus-visible{outline:3px solid #3c34d4;outline-offset:-3px}
.route-group ul{list-style:none;margin:0;padding:0}
.route-row{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;padding:14px 18px;align-items:start}
.route-row+.route-row{border-top:1px solid #ecedf4}
.route-methods{display:flex;flex-wrap:wrap;gap:4px}
.route-method{display:inline-block;padding:2px 8px;border-radius:6px;font:700 12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#eceef6;color:#343a5e}
.route-get{background:#e3f4ea;color:#17603a}
.route-post{background:#e6ebff;color:#2a2fa8}
.route-put,.route-patch{background:#fff2d9;color:#7a5200}
.route-delete{background:#fde5e5;color:#8f1d1d}
.route-main{min-width:0;display:grid;gap:6px}
.tool-page .route-uri{font-size:15px;background:none;padding:0;color:#15172b;overflow-wrap:anywhere}
.route-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;color:#4d5170}
.route-name{font-weight:650;color:#232957}
.route-name.route-missing{font-weight:400;color:#8a5a00}
.route-action{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;overflow-wrap:anywhere}
.route-middleware{display:flex;flex-wrap:wrap;gap:4px}
.route-middleware span{padding:1px 8px;border:1px solid #dfe0eb;border-radius:999px;font-size:12px;color:#4d5170;background:#fbfbfe}
@media(max-width:760px){
.route-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.route-toolbar{grid-template-columns:minmax(0,1fr)}
.route-row{grid-template-columns:minmax(0,1fr);gap:8px}
}
.pkg-download{display:grid;gap:10px}
.pkg-download .route-primary{width:100%;min-height:54px;font-size:17px}
.pkg-download .route-primary:disabled{background:#b9bbd6;cursor:not-allowed}
.tool-notes ul,.tool-warnings{list-style:disc}.tool-notes ol,.tool-next ol{list-style:decimal}
