:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f5f4f1;--panel:#fff;--text:#22242a;--muted:#62666f;--border:#d7d5cf;--accent:#1f3d7a;--accent-text:#fff;--error:#a12a2a;--error-bg:#fbeaea;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16181d;--panel:#1e2128;--text:#e7e6e2;--muted:#a4a8b2;--border:#343843;--accent:#8fb0f0;--accent-text:#11151d;--error:#ff9a9a;--error-bg:#3a2020}}*{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--bg);min-height:100vh;color:var(--text);margin:0}a{color:var(--accent)}.app{max-width:1180px;margin:0 auto;padding:32px 24px 48px}.app-header h1{letter-spacing:-.01em;margin:0 0 4px;font-size:1.55rem}.app-header p{max-width:70ch;color:var(--muted);margin:0 0 24px}.build-form{gap:20px;display:grid}.action-row{align-items:center;gap:14px;display:flex}.action-row #generate{flex:none;width:170px}.action-messages{flex:1;min-width:0;min-height:2.5rem;max-height:2.5rem;overflow-y:auto}.action-messages .status,.action-messages .error{margin:0;font-size:.82rem;line-height:1.35}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:20px;display:grid}.editor-pane{flex-direction:column;min-height:640px;display:flex;overflow:hidden}.editor-input{background:var(--panel);width:100%;min-height:600px;color:var(--text);resize:vertical;tab-size:2;border:0;border-radius:0 0 10px 10px;flex:1;margin:0;padding:16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.55}.editor-input:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.panel{border:1px solid var(--border);background:var(--panel);border-radius:10px}.field{gap:6px;display:grid}.field label{font-weight:600}.field input[type=file]{border:1px dashed var(--border);width:100%;color:inherit;font:inherit;background:0 0;border-radius:8px;padding:8px}.field input[type=file]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.field input:not([type=file]):not([type=checkbox]),.field select,.field textarea{border:1px solid var(--border);background:var(--panel);width:100%;color:inherit;font:inherit;border-radius:8px;padding:8px}.field textarea{resize:vertical;min-height:3.4rem}.field input:not([type=file]):not([type=checkbox]):focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.check{align-items:center;gap:8px;font-weight:600;display:flex}.check input{width:auto;accent-color:var(--accent);margin:0}.optional-settings{border:1px solid var(--border);background:var(--panel);border-radius:10px;padding:12px 16px}.optional-settings>summary{color:var(--accent);cursor:pointer;font-weight:600}.optional-settings details{border-top:1px dashed var(--border);margin-top:14px;padding-top:12px}.optional-settings details>summary{color:var(--text);cursor:pointer;font-size:.9rem;font-weight:600}.optional-settings details[open]>summary{margin-bottom:10px}summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.option-grid{grid-template-columns:1fr 1fr;align-items:start;gap:12px 16px;display:grid}.option-span{grid-column:1/-1}.option-checks{flex-wrap:wrap;gap:10px 18px;display:flex}.hint{color:var(--muted);margin:0;font-size:.82rem;line-height:1.45}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}button{background:var(--accent);color:var(--accent-text);font:inherit;cursor:pointer;border:0;border-radius:8px;justify-self:start;padding:10px 20px;font-weight:600}button:disabled{cursor:not-allowed;opacity:.5}button:not(:disabled):hover{filter:brightness(1.08)}button.secondary{color:var(--text);border:1px solid var(--border);background:0 0}button.secondary:hover{filter:none;background:var(--bg)}.install{justify-items:start;gap:8px;display:grid}.install-actions{flex-wrap:wrap;gap:8px;display:flex}.install #install{width:240px}.install progress{width:min(420px,100%);height:10px;accent-color:var(--accent)}.install .hint{max-width:70ch;margin:0}.setup,.notice{max-width:1180px;margin:0 0 20px;padding:18px 20px}.setup h2{margin:0 0 6px;font-size:1rem}.setup p,.notice p{color:var(--muted);margin:0 0 12px;font-size:.9rem}.notice{border:1px solid var(--border);background:var(--panel);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.notice p{margin:0}button:focus-visible,.download:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.status{color:var(--muted)}.error{color:var(--error)}.file-row{align-items:center;gap:10px 14px;display:flex}.file-row button{flex:none}.file-name{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.82rem;overflow:hidden}.preview{flex-direction:column;min-height:640px;display:flex;overflow:hidden}.pane-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.pane-header h2{margin:0;font-size:.95rem;font-weight:600}.pane-header select{border:1px solid var(--border);background:var(--panel);color:inherit;font:inherit;border-radius:8px;padding:6px 8px;font-size:.85rem}.pane-header select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.download{font-size:.88rem;font-weight:600;text-decoration:none}.placeholder{min-height:560px;color:var(--muted);text-align:center;flex:1;place-items:center;margin:0;padding:24px;display:grid}.preview-pages{background:gray;flex-direction:column;flex:1;align-items:center;gap:16px;min-height:600px;padding:16px;display:flex;overflow:auto}.preview-page{background:#fff;width:100%;height:auto;display:block;box-shadow:0 1px 4px #00000059}.credits{color:var(--muted);margin-top:16px;padding:0 4px;font-size:.78rem}.credits p{margin:0}@media (width<=860px){.workspace,.option-grid{grid-template-columns:1fr}.option-span{grid-column:1}.editor-pane,.preview,.placeholder,.preview-pages{min-height:420px}}
