:root{color-scheme:light dark;--bg:#fff;--soft:#f9f8f7;--surface:#f0efed;--text:#2c2c2b;--muted:#69655f;--border:#d6d4d0;--blue:#1767b2;--blue-soft:#e5f2fc;--error:#a4342a;--error-bg:#fce9e7;--positive:#28714b;--warning-bg:#fbebde;--warning:#86501f}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}a{color:inherit}.shell{max-width:1120px;margin:auto;padding:0 32px}.site-header{border-bottom:1px solid var(--border)}.header-row{height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{text-decoration:none;font-size:19px;font-weight:650;letter-spacing:-.5px;display:flex;align-items:center;gap:12px}.brand-icon{background:var(--text);color:var(--bg);width:32px;height:36px;display:grid;place-items:center;border-radius:4px;font-family:Georgia,serif;font-size:25px}.eyebrow{font-size:14px;letter-spacing:1.6px;font-weight:650;color:var(--muted)}.header-row>.eyebrow{font-size:14px}.version{margin-left:12px;border:1px solid var(--border);border-radius:4px;padding:4px 8px;letter-spacing:0}.intro{padding:48px 0 32px;display:flex;justify-content:space-between;align-items:flex-end;gap:24px}.intro .eyebrow{margin:0 0 12px}h1{font-size:40px;line-height:1.15;letter-spacing:-1.5px;margin:0 0 12px;font-weight:650}.subtitle{color:var(--muted);margin:0}.source-note{font-size:14px;white-space:nowrap;margin-bottom:2px;color:var(--muted)}.source-note span{margin:0 8px;color:var(--blue)}.request-panel{border:1px solid var(--border);border-radius:12px;padding:24px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}h2{font-size:18px;line-height:1.4;margin:0;font-weight:650;letter-spacing:-.3px}.live-switch{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;cursor:pointer}.live-switch input{accent-color:var(--blue);width:18px;height:18px}.endpoint-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:16px 0 24px;flex-wrap:wrap}.endpoint-tabs button{border:0;border-radius:0;background:none;padding:12px 16px;border-bottom:2px solid transparent;color:var(--muted);font-size:14px}.endpoint-tabs button.active{border-bottom-color:var(--blue);color:var(--blue);font-weight:650}.fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 16px}.field{grid-column:span 2;min-width:0}.search-field{grid-column:span 2}.field:nth-child(4),.field:nth-child(5){grid-column:span 3}.field label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}.field input,.field select{width:100%;height:44px;padding:8px 12px;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:6px;min-width:0;font-size:14px}.field input::placeholder{color:var(--muted);opacity:1}.field small{display:block;color:var(--muted);font-size:14px;margin-top:6px}.request-bar{display:flex;align-items:stretch;gap:12px;margin-top:24px}.request-url{flex:1;display:flex;align-items:center;gap:12px;background:var(--soft);border:1px solid var(--border);border-radius:6px;padding:10px 12px;min-width:0}.method{font:600 14px/1.5 Consolas,monospace;color:var(--positive)}code{font:14px/1.6 Consolas,monospace;overflow-wrap:anywhere}button{min-height:44px;padding:8px 16px;border:1px solid var(--border);border-radius:6px;cursor:pointer;background:var(--bg);color:var(--text);font-size:14px;font-weight:550}button:hover:not(:disabled){background:var(--surface)}button.primary{background:var(--blue);color:#fff;border-color:var(--blue);white-space:nowrap}button.primary:hover:not(:disabled){filter:brightness(.92);background:var(--blue)}button.primary span{margin-left:12px}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.hint{font-size:14px;color:var(--muted);margin:10px 0 0}.response-section{margin:32px 0 48px}.response-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}#status{font-size:14px;color:var(--muted);margin:4px 0 0}.response-actions{display:flex;gap:12px;align-items:center}.view-tabs{display:flex;border:1px solid var(--border);border-radius:6px;overflow:hidden}.view-tabs button{border:0;border-radius:0}.view-tabs button[aria-pressed=true]{background:var(--surface)}.results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.book-card{border:1px solid var(--border);border-radius:8px;padding:16px;display:flex;flex-direction:column;min-width:0}.book-top{display:flex;gap:16px}.cover{width:72px;height:104px;object-fit:cover;border-radius:4px;background:var(--surface);flex-shrink:0;border:1px solid var(--border)}.cover-placeholder{display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--muted);text-align:center}.book-info{min-width:0}.book-info h3{font-size:15px;line-height:1.4;margin:0 0 8px;font-weight:650;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.meta{font-size:14px;color:var(--muted);margin:0 0 4px}.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.badge{font-size:14px;padding:2px 8px;border-radius:4px;background:var(--soft);border:1px solid var(--border)}.description{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0 0}.stats{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;color:var(--muted);margin:16px 0 12px}.stats strong{color:var(--text);font-weight:600}.open-book{margin-top:auto;text-align:left;border:0;border-top:1px solid var(--border);border-radius:0;padding:12px 0 0;color:var(--blue);background:none}.empty{grid-column:1/-1;padding:48px 24px;text-align:center;border:1px dashed var(--border);border-radius:8px;background:var(--soft)}.empty h3{font-size:18px;font-weight:600;margin:0 0 8px}.empty p{color:var(--muted);font-size:14px;margin:0}.notice{padding:12px 16px;border:1px solid currentColor;border-radius:6px;color:var(--warning);background:var(--warning-bg);font-size:14px;margin-bottom:20px;overflow-wrap:anywhere}.notice.error{color:var(--error);background:var(--error-bg)}pre{background:var(--soft);border:1px solid var(--border);border-radius:8px;padding:20px;font:14px/1.6 Consolas,monospace;max-height:660px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.pagination{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:24px;font-size:14px}.loading .empty{border-style:solid}.pagination span{color:var(--muted)}footer{border-top:1px solid var(--border);padding:24px 0 32px;font-size:14px;color:var(--muted)}footer span{margin:0 12px}[hidden]{display:none!important}@media(prefers-color-scheme:dark){:root{--bg:#191919;--soft:#202020;--surface:#383836;--text:#fff;--muted:#b5b3af;--border:#62615d;--blue:#85baf0;--blue-soft:#213144;--error:#ffb3a9;--error-bg:#382422;--positive:#8ed4ab;--warning-bg:#352b23;--warning:#efbc8b}button.primary{color:#152231}}@media(max-width:900px){.source-note{display:none}.results{grid-template-columns:repeat(2,minmax(0,1fr))}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field,.search-field,.field:nth-child(4),.field:nth-child(5){grid-column:span 1}.search-field{grid-column:1/-1}}@media(max-width:600px){.shell{padding:0 20px}.header-row{height:72px}.brand{font-size:17px}.header-row>.eyebrow{font-size:0}.version{font-size:14px;margin-left:0}.intro{padding:32px 0 24px}h1{font-size:32px;letter-spacing:-1px}.subtitle{font-size:14px}.request-panel{padding:16px}.panel-heading{gap:8px}.live-switch{font-size:14px;gap:6px}.endpoint-tabs{gap:0;margin-top:12px;display:grid;grid-template-columns:1fr 1fr}.endpoint-tabs button{padding:10px 4px}.fields{gap:16px}.field label{font-size:14px}.field input,.field select{font-size:14px}.field small{font-size:14px}.request-bar{flex-direction:column}.request-url{min-height:48px}.request-bar .primary{width:100%}.response-toolbar{align-items:flex-start;flex-direction:column}.response-actions{width:100%;justify-content:space-between}.results{grid-template-columns:1fr}.book-info h3{font-size:16px}.cover{width:80px;height:116px}.pagination{gap:12px;font-size:14px}.pagination button{padding:8px 12px}footer{line-height:1.8}footer span{margin:0 4px}}@media(prefers-reduced-motion:no-preference){.loading .empty{animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{50%{opacity:.6}}}

.field input,.field select{border-color:#8b8782}button:not(.endpoint):not(.open-book){border-color:#8b8782}@media(prefers-color-scheme:dark){.field input,.field select,button:not(.endpoint):not(.open-book){border-color:#81807b}}

/* ---- Hosting / deploy additions ---- */
.skip-link{position:absolute;left:-9999px;top:0;padding:8px 12px;background:var(--text);color:var(--bg);border-radius:0 0 6px 0;z-index:100}
.skip-link:focus{left:0}
.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.header-link{font-size:14px;text-decoration:none;color:var(--muted);padding:8px;border-radius:6px}
.header-link:hover{color:var(--text);background:var(--surface)}
.deploy-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;background:var(--text);color:var(--bg)!important;border:1px solid var(--text);border-radius:6px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.deploy-btn:hover{filter:brightness(.88)}
.deploy-btn svg{width:14px;height:14px;fill:currentColor}
.deploy-panel{border:1px solid var(--border);border-radius:12px;padding:24px;margin:0 0 48px}
.deploy-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.deploy-panel .lead{color:var(--muted);font-size:14px;margin:4px 0 0}
.deploy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.deploy-card{border:1px solid var(--border);border-radius:8px;padding:16px;min-width:0}
.deploy-card h3{font-size:15px;line-height:1.4;margin:0 0 12px;font-weight:650}
.deploy-wide{margin-top:16px}
.deploy-steps{margin:0;padding-left:20px;display:grid;gap:8px;font-size:14px}
.code-block{position:relative;background:var(--soft);border:1px solid var(--border);border-radius:6px;padding:12px 80px 12px 12px;overflow-x:auto}
.code-block code{display:block;white-space:pre;overflow-wrap:normal}
.copy-snippet{position:absolute;top:8px;right:8px;min-height:32px;padding:4px 12px}
.deploy-note{font-size:14px;color:var(--muted);margin:12px 0 0}
.deploy-card h3+.deploy-note{margin-top:0}
.deploy-note+.code-block{margin-top:8px}
.noscript-warning{margin:20px 0;padding:12px 16px;border:1px solid currentColor;border-radius:6px;color:var(--error);background:var(--error-bg);font-size:14px}
.footer-links{margin-top:8px}
@media(max-width:900px){.deploy-grid{grid-template-columns:1fr}}
@media(max-width:600px){.deploy-panel{padding:16px}.header-link{display:none}.header-actions>.eyebrow{font-size:0}.deploy-btn{padding:8px 12px}.deploy-top .deploy-btn{width:100%;justify-content:center}}
