@font-face{font-family:sourceSerif;src:url(../media/source_serif_4_latin_opsz_normal-s.p.2fkb5nt7yf_6p.woff2)format("woff2");font-display:swap;font-weight:200 900;font-style:normal}@font-face{font-family:sourceSerif Fallback;src:local(Arial);ascent-override:102.41%;descent-override:33.12%;line-gap-override:0.0%;size-adjust:101.16%}.sourceserif_89773a8b-module__W5JJ6G__className{font-family:sourceSerif,sourceSerif Fallback,Georgia,serif;font-style:normal}.sourceserif_89773a8b-module__W5JJ6G__variable{--font-serif:"sourceSerif", "sourceSerif Fallback", Georgia, serif}
*{box-sizing:border-box;margin:0;padding:0}:root{--cream:#faf8f5;--cream-dark:#f0ebe3;--text:#2d2d2d;--text-light:#5a5a5a;--accent:#1a1a1a;--border:#d4d0c8;--duration-fast:.15s;--duration-normal:.25s;--z-base:1;--z-overlay:50;--z-dropdown:100;--z-header:90}html{background:var(--cream)}body{font-family:var(--font-serif), Georgia, serif;background:var(--cream);color:var(--text);min-height:100vh;line-height:1.5}.app-reveal{opacity:0;visibility:hidden;transition:opacity .32s}.app-reveal:not([data-font-state=loading]){opacity:1;visibility:visible}.app-reveal[data-font-state=fallback]{font-family:Georgia,serif}.noscript-note{text-align:center;padding:2rem}@media (prefers-reduced-motion:reduce){.app-reveal{transition:none}}.app{flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:2rem 1rem;display:flex}.header{z-index:var(--z-header);position:fixed;top:1rem;right:1rem}.settings{position:relative}.settings-btn{z-index:var(--z-dropdown);border:1px solid var(--border);cursor:pointer;color:var(--text-light);background:0 0;border-radius:6px;padding:.4rem .6rem;font-size:1.1rem;position:relative}.settings-btn:hover{background:var(--cream-dark);color:var(--text)}.settings-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.settings-overlay{z-index:var(--z-overlay);position:fixed;inset:0}.settings-dropdown{border:1px solid var(--border);width:min(340px,100vw - 2rem);z-index:var(--z-dropdown);transform-origin:100% 0;background:#fff;border-radius:8px;margin-top:.5rem;padding:1rem;position:absolute;top:100%;right:0;box-shadow:0 4px 20px #00000014,0 8px 32px #0000000f}.settings-dropdown label{color:var(--text-light);margin-bottom:.5rem;font-size:.85rem;display:block}.settings-dropdown input,.settings-dropdown select{border:1px solid var(--border);background:#fff;border-radius:4px;width:100%;padding:.5rem;font-family:inherit;font-size:.9rem}.settings-dropdown input:focus,.settings-dropdown select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #1a1a1a14}.settings-dropdown input:focus-visible,.settings-dropdown select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.settings-dropdown small{color:var(--text-light);margin-top:.5rem;font-size:.75rem;line-height:1.4;display:block}.settings-label-row{justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.5rem;display:flex}.settings-label-row label{margin-bottom:0}.settings-label-row a{color:var(--text-light);font-size:.75rem;text-decoration:none}.settings-label-row a:hover{color:var(--text);text-decoration:underline}.main-content{flex-direction:column;align-items:center;gap:1.5rem;width:100%;max-width:500px;display:flex}.title{text-align:center}.title h1{margin-bottom:.25rem;font-size:2rem;font-weight:600}.title p{color:var(--text-light);font-size:.95rem}.title .credits-note{opacity:.7;margin-top:.25rem;font-size:.8rem}.status-area{flex-direction:column;justify-content:center;align-items:center;gap:.5rem;width:100%;min-width:0;min-height:80px;display:flex}.status{color:var(--text-light);text-align:center;font-size:.9rem}.status.pulse{animation:1.5s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status.error{color:#c44}.status.success{color:#2a2}.error-details{width:100%;max-width:400px;color:var(--text-light);font-size:.8rem}.error-details summary{cursor:pointer}.error-details pre{background:var(--cream-dark);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;max-height:14rem;margin-top:.5rem;padding:.75rem;font-size:.7rem;overflow:auto}.cancel-btn{color:var(--text-light);background:var(--cream-dark);border:1px solid var(--border);cursor:pointer;font:inherit;border-radius:6px;padding:.35rem .7rem;font-size:.85rem}.cancel-btn:hover{color:var(--text);background:var(--border)}.cancel-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.result-area{flex-direction:column;align-items:center;gap:.5rem;display:flex}.download-link{color:var(--text-light);background:var(--cream-dark);border-radius:6px;align-items:center;gap:.35rem;max-width:260px;padding:.4rem .75rem;font-size:.85rem;font-weight:400;text-decoration:none;display:inline-flex}.download-link span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.download-link:hover{background:var(--border)}.download-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.preview{object-fit:contain;border-radius:8px;max-width:100%;max-height:200px}.preview-container{border-radius:8px;justify-content:center;display:flex;overflow:hidden;box-shadow:0 2px 12px #0000000f}.progress-bar{background:var(--cream-dark);border-radius:2px;width:200px;height:4px;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg, var(--text-light), var(--accent));height:100%}.input-area{border:1px solid var(--border);width:100%;transition:border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;background:#fff;border-radius:12px;flex-direction:column;gap:.75rem;padding:.75rem;display:flex;box-shadow:0 2px 8px #0000000a}.input-area:focus-within{border-color:var(--text-light);box-shadow:0 2px 12px #0000000f}.file-chips-container{flex-wrap:wrap;gap:.5rem;width:100%;display:flex}.file-chip{background:var(--cream-dark);border-radius:20px;justify-content:space-between;align-items:center;gap:.5rem;max-width:250px;padding:.4rem .75rem;font-size:.85rem;display:inline-flex}.file-chip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-chip button{cursor:pointer;color:var(--text-light);background:0 0;border:none;border-radius:4px;padding:.1rem .2rem;font-size:1rem;line-height:1}.file-chip button:hover{color:var(--text)}.file-chip button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.input-row{align-items:center;gap:.5rem;display:flex}.input-row textarea{resize:none;background:0 0;border:none;outline:none;flex:1;min-height:24px;max-height:120px;font-family:inherit;font-size:1rem}.input-row textarea::placeholder{opacity:1;transition:opacity .5s ease-in-out}.input-row textarea.placeholder-fade::placeholder{opacity:0}.input-row textarea:disabled{opacity:.5;cursor:not-allowed}.input-row button.send-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;padding:.5rem;font-family:inherit;font-size:1.1rem;display:flex}.input-row button.send-btn:disabled{opacity:.5;cursor:not-allowed}.input-row button.send-btn:hover:not(:disabled){background:var(--text)}.input-row button.send-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.upload-label{cursor:pointer;color:var(--text-light);border-radius:4px;padding:.25rem;font-size:1.25rem}.upload-label:hover{color:var(--text);background:#0000000a}.upload-label.disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.upload-label:focus-within{outline:2px solid var(--accent);outline-offset:2px}.upload-label input{display:none}.spinner{border:2px solid #0000;border-top-color:#fff;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.command-presence{width:100%;min-width:0;max-width:400px;overflow:hidden}.command-area{flex-direction:column;align-items:center;gap:.4rem;padding:1px;display:flex}.command-card{background:var(--cream-dark);border:1px solid var(--border);border-radius:10px;width:100%;min-width:0;padding:.7rem .85rem .85rem;box-shadow:0 1px 3px #2d2d2d08}.command-toggle{width:100%;color:var(--text-light);font:inherit;cursor:pointer;text-align:left;transition:color var(--duration-fast) ease;background:0 0;border:none;justify-content:space-between;align-items:center;gap:1rem;padding:.15rem 0 .6rem;font-size:.75rem;display:flex}.command-toggle:hover{color:var(--text)}.command-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}.command-label{font-weight:500}.command-action{align-items:center;gap:.3rem;font-size:.7rem;display:inline-flex}.command-viewport{overflow:hidden}.command-text{color:var(--text);tab-size:2;margin:0;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem;line-height:1.65;display:block}.command-text.is-collapsed{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.command-text.is-expanded{white-space:pre-wrap;overflow-wrap:anywhere}.cost{color:var(--text-light);opacity:.7;font-variant-numeric:tabular-nums;font-size:.7rem}@media (prefers-reduced-motion:reduce){.command-toggle{transition:none}}.loading-dots{align-items:center;gap:.25rem;margin-left:.4rem;display:inline-flex}.loading-dots span{background:var(--text-light);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite loadingBounce}.loading-dots span:nth-child(2){animation-delay:.1s}.loading-dots span:nth-child(3){animation-delay:.2s}@keyframes loadingBounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.drag-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1000;pointer-events:none;background:#faf8f5f2;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.drag-overlay-content{border:2px dashed var(--border);background:#fff;border-radius:16px;flex-direction:column;align-items:center;gap:1rem;padding:3rem;display:flex}.drag-icon{opacity:.8;font-size:4rem}.drag-text{color:var(--text-light);font-size:1.5rem;font-weight:500}
