:root{--bg:#f9f8f5;--bg-hover:#f2f0e9;--surface:#fff;--surface-muted:#f6f4ef;--stroke:#e9e6dd;--stroke-strong:#d7d0c1;--text:#111;--text-body:#414141;--text-muted:#787777;--brand:#f3db80;--brand-hover:#e0c666;--brand-soft:#fff6da;--on-brand:#111;--success-bg:#e7f8ef;--success-border:#c6f0db;--success-text:#065c37;--warning-bg:#fff4e5;--warning-border:#ffe8c9;--warning-text:#b45309;--error-bg:#fdecec;--error-border:#f9d1d1;--error-text:#9b1818;--focus:#5885ff;--shadow:0 1px 2px #1111110a, 0 8px 24px -12px #1111111f;--font-heading:"Raleway", system-ui, sans-serif;--font-body:"Inter", system-ui, sans-serif;--radius:16px;--radius-sm:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#191918;--bg-hover:#222221;--surface:#222221;--surface-muted:#1f1f1e;--stroke:#2b2a28;--stroke-strong:#3a3834;--text:#ededed;--text-body:#c5c5c5;--text-muted:#8b8b8b;--brand-soft:#2a2516;--success-bg:#0d2618;--success-border:#17442e;--success-text:#7adbb0;--warning-bg:#302008;--warning-border:#614415;--warning-text:#ffd98a;--error-bg:#2a1010;--error-border:#551c1c;--error-text:#f5a0a0;--focus:#6b93ff;--shadow:0 1px 2px #0000004d, 0 8px 24px -12px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text-body);font-family:var(--font-body);-webkit-font-smoothing:antialiased;margin:0;font-size:15px;line-height:1.6}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.icon{flex:none;width:18px;height:18px}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{border-bottom:1px solid var(--stroke);justify-content:space-between;align-items:center;gap:1rem;padding:14px 24px;display:flex}.brand{font:600 18px/1 var(--font-heading);color:var(--text);cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0;display:inline-flex}.topbar__end{align-items:center;gap:16px;display:flex}.by-saga{color:var(--text-muted);font-size:13px}.button--small{gap:6px;height:34px;padding:0 12px;font-size:13.5px}.button--small .icon{width:16px;height:16px}.main{flex:1;width:100%;max-width:820px;margin:0 auto;padding:0 20px 48px}.intro{padding-top:clamp(48px,12vh,120px)}.intro h1{font:500 clamp(26px, 4vw, 34px) / 1.2 var(--font-heading);color:var(--text);text-align:center;margin:0 0 12px}.intro__lede{text-align:center;max-width:58ch;color:var(--text-muted);margin:0 auto 32px}.intro__extras{justify-content:center;margin-top:16px;display:flex}.composer{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow);transition:border-color .12s;overflow:hidden}.composer--dragging{border-color:var(--brand-hover)}.composer__body{padding:16px}.dropzone{border:1.5px dashed var(--stroke-strong);border-radius:var(--radius-sm);min-height:96px;color:var(--text-muted);cursor:pointer;align-items:center;gap:14px;padding:18px 20px;transition:background-color .12s,border-color .12s;display:flex}.dropzone:hover,.composer--dragging .dropzone{background:var(--bg);border-color:var(--brand-hover)}.dropzone:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.dropzone .icon{width:22px;height:22px}.dropzone__title{color:var(--text);font-weight:500;display:block}.dropzone__hint{font-size:13px;display:block}.composer__bar{justify-content:space-between;align-items:center;gap:12px;padding:0 16px 16px;display:flex}.composer__foot{color:var(--text-muted);background:var(--surface-muted);border-top:1px solid var(--stroke);align-items:center;gap:8px;padding:10px 16px;font-size:13px;display:flex}.composer__foot .icon{width:15px;height:15px}.file-chip{background:var(--surface);border:1px solid var(--stroke);border-radius:12px;align-items:center;gap:12px;max-width:100%;padding:10px 12px 10px 10px;display:inline-flex}.file-chip__kind{width:38px;height:38px;font:600 10px/1 var(--font-body);letter-spacing:.02em;color:#fff;background:#3c67db;border-radius:8px;flex:none;place-items:center;display:grid}.file-chip__text{flex-direction:column;min-width:0;display:flex}.file-chip__name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.file-chip__status{color:var(--success-text);align-items:center;gap:4px;font-size:13px;display:inline-flex}.file-chip__status .icon{width:14px;height:14px}.select-pill{height:36px;color:var(--text-body);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:0 10px;display:inline-flex;position:relative}.select-pill:hover{background:var(--bg-hover)}.select-pill select{appearance:none;font:500 14px var(--font-body);color:inherit;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23787777' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") 100%/14px no-repeat;border:0;padding-right:18px}.select-pill:has(select:focus-visible){outline:2px solid var(--focus)}.select-pill select:focus-visible{outline:none}.button{height:40px;font:500 14px var(--font-body);cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 16px;transition:background-color .12s,border-color .12s;display:inline-flex}.button:disabled{cursor:not-allowed;opacity:.5}.button--primary{color:var(--on-brand);background:var(--brand)}.button--primary:hover:not(:disabled){background:var(--brand-hover)}.button--outline{color:var(--text);background:var(--surface);border-color:var(--stroke-strong)}.button--outline:hover{background:var(--bg-hover)}.icon-button{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;margin-left:4px;padding:0;display:grid}.icon-button:hover{color:var(--text);background:var(--bg-hover)}.chip{font:500 13px var(--font-body);color:var(--text-body);background:var(--surface);border:1px solid var(--stroke);cursor:pointer;border-radius:999px;padding:6px 14px}.chip:hover:not(:disabled){background:var(--bg-hover);border-color:var(--stroke-strong)}.notice{border-radius:var(--radius-sm);border:1px solid;margin:16px 0;padding:12px 14px}.notice--error{color:var(--error-text);background:var(--error-bg);border-color:var(--error-border)}.result{padding-top:32px}.doc-head{border-bottom:1px solid var(--stroke);align-items:center;gap:14px;margin-bottom:24px;padding-bottom:20px;display:flex}.doc-head__kind{width:44px;height:52px;font:600 10px/1 var(--font-body);letter-spacing:.02em;color:var(--text-muted);background:var(--surface);border:1px solid var(--stroke-strong);border-radius:6px 12px 6px 6px;flex:none;place-items:center;display:grid}.doc-head__text{min-width:0}.doc-head__title{font:500 22px/1.3 var(--font-heading);color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.doc-head__status{color:var(--text-muted);align-items:center;gap:6px;margin:2px 0 0;font-size:13.5px;display:flex}.doc-head__status--done{color:var(--success-text)}.doc-head__status .icon{width:15px;height:15px}.progress{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);padding:20px}.progress__head{justify-content:space-between;gap:12px;margin-bottom:10px;display:flex}.progress__label{color:var(--text);font-weight:500}.progress__time{font-variant-numeric:tabular-nums;color:var(--text-muted)}.progress__track{background:var(--bg-hover);border-radius:999px;height:8px;overflow:hidden}.progress__fill{background:var(--brand-hover);border-radius:inherit;height:100%;transition:width .4s ease-out}.progress__steps{counter-reset:step;color:var(--text-muted);flex-wrap:wrap;gap:6px 20px;margin:14px 0 0;padding:0;font-size:13px;list-style:none;display:flex}.progress__steps li{counter-increment:step;align-items:center;gap:8px;display:inline-flex}.progress__steps li:before{content:counter(step);border:1px solid var(--stroke-strong);border-radius:50%;place-items:center;width:20px;height:20px;font-size:11px;font-weight:600;display:grid}.progress__steps li.is-current{color:var(--text);font-weight:500}.progress__steps li.is-current:before{background:var(--brand);border-color:var(--brand-hover);color:var(--on-brand)}.progress__steps li.is-done:before{content:"✓";color:var(--success-text);background:var(--success-bg);border-color:var(--success-border)}.progress__hint{color:var(--text-muted);margin:12px 0 0;font-size:13px}.progress.is-done .progress__fill{background:var(--success-text)}.progress.is-done .progress__label{color:var(--success-text)}.collapse{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .48s cubic-bezier(.22,.7,.2,1),opacity .36s,transform .48s cubic-bezier(.22,.7,.2,1);display:grid;transform:translateY(-6px)scale(.99)}.collapse.is-open{opacity:1;grid-template-rows:1fr;transform:none}.collapse__inner{min-height:0;overflow:hidden}.collapse__inner>*{margin-bottom:28px}@keyframes rise{0%{opacity:0;transform:translateY(6px)}}.summary,.item,.answer h2{animation:.42s cubic-bezier(.22,.7,.2,1) both rise}@media (prefers-reduced-motion:reduce){.progress__fill,.composer,.collapse{transition:none}.summary,.item,.answer h2{animation:none}}.summary{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);margin-bottom:28px;padding:18px 20px}.summary p{font:500 17px/1.5 var(--font-heading);color:var(--text);margin:0}.summary__badges{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.badge{white-space:nowrap;border:1px solid;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:12.5px;font-weight:500;line-height:1.6;display:inline-flex}.badge:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.badge--green{color:var(--success-text);background:var(--success-bg);border-color:var(--success-border)}.badge--yellow{color:var(--warning-text);background:var(--warning-bg);border-color:var(--warning-border)}.badge--red{color:var(--error-text);background:var(--error-bg);border-color:var(--error-border)}.answer{color:var(--text-body)}.answer h2{font:500 21px/1.3 var(--font-heading);color:var(--text);margin:32px 0 12px}.answer h2:first-child{margin-top:0}.answer h3{font:600 16px/1.4 var(--font-body);color:var(--text);margin:24px 0 8px}.answer p,.answer ul,.answer ol{margin:0 0 14px}.answer li{margin-bottom:6px}.answer strong{color:var(--text);font-weight:600}.answer blockquote{color:var(--text-body);background:var(--surface-muted);border-left:3px solid var(--brand-hover);border-radius:0 8px 8px 0;margin:12px 0 16px;padding:10px 14px}.answer a{color:var(--focus)}.answer--streaming>:last-child:after{content:"";vertical-align:middle;background:var(--brand-hover);border-radius:50%;width:8px;height:8px;margin-left:6px;animation:1s ease-in-out infinite pulse;display:inline-block}@keyframes pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.answer--streaming>:last-child:after{animation:none}}.table-scroll{background:var(--surface);border:1px solid var(--stroke);border-radius:12px;margin:0 0 20px;overflow-x:auto}.answer table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}.answer th,.answer td{text-align:left;vertical-align:top;border-bottom:1px solid var(--stroke);padding:12px 14px}.answer th{color:var(--text-muted);background:var(--surface-muted);font-size:13px;font-weight:600}.answer tr:last-child td{border-bottom:0}.answer td:first-child{color:var(--text);font-weight:500}:is(.answer ul:has(>.item--red),.answer ul:has(>.item--yellow)){margin:0 0 28px;padding:0;list-style:none}.item--red,.item--yellow{border-bottom:1px solid var(--stroke);gap:14px;margin:0;padding:14px 0;display:flex}.item--red:first-child,.item--yellow:first-child{padding-top:4px}.item--red:last-child,.item--yellow:last-child{border-bottom:0}.dot{border-radius:50%;flex:none;width:10px;height:10px;margin-top:8px}.dot--red{box-shadow:0 0 0 4px var(--error-bg);background:#e04040}.dot--yellow{box-shadow:0 0 0 4px var(--warning-bg);background:#f59e0b}.item__body{min-width:0;color:var(--text);font-size:17px;font-weight:500;line-height:1.45}.item__body>ul{color:var(--text-muted);margin:4px 0 0;padding:0;font-size:14px;font-weight:400;line-height:1.55;list-style:none}.item__body>ul>li{margin:0}.answer ul:has(>.item--green){flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none;display:flex}.item--green{margin:0}.item--green .badge{white-space:normal}.cite{min-width:18px;height:18px;color:var(--text-body);background:var(--bg-hover);border:1px solid var(--stroke-strong);cursor:help;vertical-align:1px;border-radius:5px;place-items:center;margin-left:4px;padding:0 4px;font-size:11px;font-weight:600;display:inline-grid;position:relative}.cite__quote{z-index:2;text-align:left;width:min(22rem,80vw);color:var(--text-body);background:var(--surface);border:1px solid var(--stroke);box-shadow:var(--shadow);border-radius:10px;padding:10px 12px;font-size:13px;font-weight:400;line-height:1.5;display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.cite:hover .cite__quote,.cite:focus-visible .cite__quote{display:block}.thread{margin-top:32px}.turn{margin-bottom:28px}.bubble{width:fit-content;max-width:80%;color:var(--text);background:var(--bg-hover);border-radius:var(--radius) var(--radius) 4px var(--radius);margin:0 0 16px auto;padding:10px 14px}.typing{color:var(--text-muted)}.dock{background:linear-gradient(to bottom, transparent, var(--bg) 24px);width:100%;max-width:820px;margin:0 auto;padding:12px 20px 16px;position:sticky;bottom:0}.suggestions{flex-wrap:wrap;gap:8px;margin-bottom:10px;display:flex}.composer--ask{align-items:flex-end;gap:8px;padding:10px 10px 10px 16px;display:flex}.composer--ask textarea{min-height:40px;max-height:160px;font:15px/1.45 var(--font-body);color:var(--text);resize:none;field-sizing:content;background:0 0;border:0;flex:1;padding:9px 0}.composer--ask textarea:focus{outline:none}.composer--ask:focus-within{border-color:var(--stroke-strong)}.send-button{width:40px;height:40px;color:var(--on-brand);background:var(--brand);cursor:pointer;border:0;border-radius:10px;flex:none;place-items:center;padding:0;display:grid}.send-button:hover:not(:disabled){background:var(--brand-hover)}.send-button:disabled{opacity:.45;cursor:not-allowed}.disclaimer{text-align:center;color:var(--text-muted);padding:12px 20px 20px;font-size:12.5px}@media (width<=560px){.topbar{padding:12px 16px}.by-saga{display:none}.composer__bar{flex-wrap:wrap}.composer__bar .button{flex:1}}.help{margin:28px 0 32px;animation:.42s cubic-bezier(.22,.7,.2,1) both rise}.help h2{font:500 21px/1.3 var(--font-heading);color:var(--text);margin:0 0 14px}.help__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.help__card{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);flex-direction:column;padding:16px 18px;display:flex}.help__card h3{font:600 15px/1.4 var(--font-body);color:var(--text);margin:0 0 4px}.help__card p{color:var(--text-muted);margin:0 0 14px;font-size:14px}.help__actions{flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:auto;display:flex}.call-button{height:36px;font:500 14px var(--font-body);color:var(--on-brand);background:var(--brand);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:8px;padding:0 14px;text-decoration:none;display:inline-flex}.call-button:hover{background:var(--brand-hover)}.call-button .icon{width:16px;height:16px}.help__note{color:var(--text-muted);flex-basis:100%;font-size:12.5px}.help__link{font:500 14px var(--font-body);color:var(--text);border-bottom:1px solid var(--stroke-strong);align-items:center;gap:4px;text-decoration:none;display:inline-flex}.help__link:hover{border-bottom-color:var(--text)}.help__link .icon{width:15px;height:15px;transition:transform .15s}.help__link:hover .icon{transform:translate(2px,-2px)}@media (width<=640px){.help__grid{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.help{animation:none}.help__link .icon{transition:none}}
