:root{--bg:#f7f3ec;--surface:#fffdfa;--text:#241e18;--text-muted:#6b5e4e;--border:#d9cfbd;--border-strong:#898379;--accent:#a35b1a;--accent-hover:#8d4e16;--accent-soft:#f5ece0;--gold:#876332;--error:#9c3b2f;--error-bg:#f7ece9;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font:16px/1.6 Fraunces,Georgia,Times New Roman,serif}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);margin:0;padding:0}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){*{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}#app{flex-direction:column;height:100dvh;display:flex}.app-shell{flex-direction:column;flex:1;width:100%;min-height:0;margin:0 auto;display:flex}.app-shell>.safety-picker,.app-shell>.conversation,.app-shell>.composer-wrap,.app-shell>.feedback-block-chat{width:100%;max-width:720px;margin-left:auto;margin-right:auto}.skip-link{background:var(--text);color:var(--bg);z-index:100;border-radius:0 0 6px;padding:12px 20px;position:absolute;top:0;left:-9999px}.skip-link:focus{left:0}.site-header{border-bottom:1px solid var(--border);flex-shrink:0}.site-header-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;max-width:1080px;min-height:72px;margin:0 auto;padding:0 24px;display:flex}.site-nav{align-items:center;gap:4px;display:flex}.site-nav a,.nav-btn{color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;align-items:center;min-height:44px;padding:12px 14px;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem;text-decoration:none;display:inline-flex}.site-nav a:hover,.nav-btn:hover{color:var(--text);background:#241e180d}.brand{letter-spacing:-.01em;color:var(--text);border-radius:6px;align-items:center;min-height:44px;font-family:Fraunces,Georgia,serif;font-size:22px;font-weight:600;text-decoration:none;display:inline-flex}.brand:hover{text-underline-offset:3px;text-decoration:underline}.safety-picker{text-align:center;color:var(--text-muted);border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;justify-content:center;align-items:center;gap:.25rem .6rem;max-width:100%;padding:.85rem 1.5rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;display:flex}.safety-picker label{flex-basis:100%;line-height:1.3}.safety-tip{color:var(--text-muted);flex-basis:100%;max-width:46ch;margin:.15rem auto 0;font-size:.72rem;line-height:1.4}.safety-picker select{appearance:none;border:1px solid var(--border-strong);background-color:var(--surface);color:var(--text);cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b5e4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right .65rem center;background-repeat:no-repeat;border-radius:6px;min-height:32px;padding:.4rem 1.75rem .4rem .7rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem}.safety-picker select:hover{border-color:var(--text-muted)}.auth-shell{-webkit-overflow-scrolling:touch;flex:1;justify-content:center;align-items:center;min-height:0;padding:1.5rem;display:flex;overflow-y:auto}.auth-card{text-align:center;flex-direction:column;gap:1rem;width:100%;max-width:380px;margin-block:auto;display:flex}.auth-card .brand{font-size:1.4rem}.auth-headline{color:var(--text);margin:0;font-family:Fraunces,Georgia,serif;font-size:1.35rem;font-weight:500;line-height:1.35}.auth-copy{color:var(--text-muted);margin:0;font-size:.95rem}.auth-beta{color:var(--gold);text-transform:uppercase;letter-spacing:.04em;margin:0;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.78rem;font-weight:600}.auth-consent{color:var(--text-muted);margin:.5rem 0 0;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.78rem;line-height:1.5}.auth-contact{color:var(--text-muted);margin:.75rem 0 0;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem;line-height:1.5}.auth-contact a{color:var(--accent);margin:-12px -4px;padding:12px 4px;display:inline-block}.consent-line{text-align:left;color:var(--text-muted);cursor:pointer;align-items:flex-start;gap:.5rem;margin:-.25rem 0 0;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.78rem;line-height:1.4;display:flex}.consent-line input{accent-color:var(--accent);cursor:pointer;flex-shrink:0;width:24px;height:24px;margin-top:.2rem}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.feedback-block{text-align:center}.feedback-toggle{color:var(--text-muted);min-height:44px;text-decoration:underline;-webkit-text-decoration-color:var(--border);text-decoration-color:var(--border);cursor:pointer;background:0 0;border:none;padding:14px 8px;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.78rem}.feedback-toggle:hover{color:var(--accent)}.feedback-form{text-align:left;flex-direction:column;gap:.5rem;margin-top:.6rem;display:none}.feedback-form.open{display:flex}.feedback-email,.feedback-message{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);resize:vertical;border-radius:8px;padding:.55rem .7rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem}.feedback-submit{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;align-self:flex-start;padding:.45rem 1rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.82rem;font-weight:600}.feedback-submit:disabled{opacity:.5;cursor:default}.feedback-block-chat{padding:0 1.5rem}.feedback-block-chat .feedback-form.open{border-bottom:1px dashed var(--border);padding-top:.75rem;padding-bottom:.75rem}.auth-form{flex-direction:column;gap:.75rem;display:flex}.auth-form input{border:1px solid var(--border-strong);background:var(--surface);min-height:44px;color:var(--text);text-align:center;border-radius:10px;padding:.7rem .9rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:1rem}.auth-form button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:10px;min-height:44px;padding:.7rem 1.25rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem;font-weight:600}.auth-form button:disabled{opacity:.5;cursor:default}.auth-status{min-height:1.2em;color:var(--text-muted);font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem}.auth-error{color:var(--error)}.auth-success{color:var(--accent)}.conversation{flex-direction:column;flex:1;gap:1.25rem;padding:1.5rem;display:flex;overflow-y:auto}.empty-state{text-align:center;max-width:480px;color:var(--text-muted);margin:8vh auto 0;padding:0 1rem;font-size:1.05rem}.empty-state-headline{color:var(--text);margin:0 0 .75rem;font-family:Fraunces,Georgia,serif;font-size:1.1rem;font-weight:500}.starters{flex-direction:column;gap:.6rem;margin-top:1.75rem;display:flex}.starter-chip{text-align:left;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);cursor:pointer;border-radius:10px;min-height:44px;padding:.7rem 1rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.85rem}.starter-chip:hover{border-color:var(--accent);background:var(--accent-soft)}.message{flex-direction:column;gap:.3rem;max-width:88%;display:flex}.message-role{text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.7rem}.message-text{white-space:pre-wrap;border-radius:4px;padding:.8rem 1.05rem;font-size:1.05rem;line-height:1.6}.message-user{align-self:flex-end;align-items:flex-end}.message-user .message-text{background:var(--accent);color:#fff;border-radius:10px 10px 3px}.message-ren{align-self:flex-start;align-items:flex-start}.message-ren .message-text{background:var(--surface);border-left:3px solid var(--gold);padding-left:1.1rem}.message-pending .message-text{color:var(--text-muted);border-left-color:var(--border);font-style:italic}.feedback-row{gap:.35rem;margin-top:.35rem;padding-left:1.1rem;display:flex}.feedback-btn{width:26px;height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;padding:0;display:flex}.feedback-btn:hover{color:var(--text);border-color:var(--border)}.feedback-btn.active{color:var(--accent);border-color:var(--accent-soft);background:var(--accent-soft)}.system-note{color:var(--error);background:var(--error-bg);border-radius:8px;align-self:center;padding:.5rem .85rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem}.composer-wrap{border-top:1px solid var(--border);background:var(--bg);padding:.5rem 1.5rem 1rem}.composer-hint{color:var(--text-muted);margin:.4rem .1rem .35rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.72rem}.composer{gap:.6rem;display:flex}.composer textarea{resize:none;font:inherit;border:1px solid var(--border-strong);background:var(--surface);min-height:44px;color:var(--text);border-radius:10px;flex:1;max-height:200px;padding:.7rem .9rem;font-size:1.05rem}.composer button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:10px;min-width:44px;min-height:44px;padding:0 1.25rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9rem;font-weight:600}.composer button:disabled{opacity:.5;cursor:default}.composer-disclaimer{color:var(--text-muted);text-align:center;margin:.5rem .1rem .1rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.72rem}.disclaimer-feedback-link{font-family:inherit;font-size:inherit;color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.disclaimer-feedback-link:hover{opacity:.8}.dev-panel{color:var(--text-muted);border-top:1px dashed var(--border);padding:.5rem 1.5rem 1rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.75rem}.dev-panel summary{cursor:pointer;padding:.25rem 0}.dev-panel div{margin-top:.4rem;line-height:1.4}@media (width<=600px){.site-header-inner{min-height:64px;padding:0 1rem}.safety-picker{padding:.75rem 1rem}.conversation{padding:1rem}.composer-wrap{padding:.4rem 1rem .75rem}}@media (width<=480px){.site-nav{flex-basis:100%;justify-content:space-between;gap:0}.site-nav a,.nav-btn{padding:12px 8px;font-size:.85rem}.safety-picker select{max-width:60vw}}.install-banner{background:var(--surface);border:1px solid var(--border-strong);width:420px;max-width:calc(100vw - 2rem);color:var(--text);z-index:1000;border-radius:12px;align-items:center;gap:.75rem;padding:.75rem .9rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.82rem;display:none;position:fixed;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #2b201824}.install-banner-text{flex:1;line-height:1.4}.install-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex-shrink:0;min-height:34px;padding:.4rem .85rem;font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;font-weight:600}.install-dismiss{width:26px;height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;flex-shrink:0;font-size:1.1rem;line-height:1}.install-dismiss:hover{color:var(--text)}@media (width<=480px){.install-banner{width:calc(100vw - 2rem)}}
