@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap";:root{color:#17221f;--ink:#17221f;--muted:#65706b;--paper:#fff;--line:#dfe3dc;--green:#176b52;--green-dark:#0c4e3a;--lime:#dcef83;--navy:#12231e;--danger:#b13d38;--shadow:0 18px 50px #182c2417;background:#f4f5ef;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}h2{letter-spacing:-.04em;margin-bottom:.35rem;font-size:clamp(1.7rem,2vw,2.15rem)}.brand{color:var(--ink);align-items:center;gap:.65rem;font-size:1.08rem;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{background:var(--lime);color:var(--navy);border-radius:9px 3px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.brand-light{color:#fff}.eyebrow{color:var(--green);letter-spacing:.14em;text-transform:uppercase;margin-bottom:.65rem;font-size:.75rem;font-weight:700}.muted{color:var(--muted);line-height:1.6}.sr-only{clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.auth-page{background:var(--paper);grid-template-columns:minmax(380px,.9fr) 1.1fr;min-height:100vh;display:grid}.auth-intro{background:var(--navy);color:#fff;flex-direction:column;justify-content:space-between;padding:clamp(2rem,5vw,5rem);display:flex;position:relative;overflow:hidden}.auth-intro:after{content:"";background:radial-gradient(circle,#dcef833b,#0000 65%);border:1px solid #dcef8326;border-radius:50%;width:520px;height:520px;position:absolute;top:18%;right:-280px}.auth-intro .eyebrow{color:var(--lime)}.auth-intro h1{letter-spacing:-.065em;z-index:1;max-width:700px;margin-bottom:1.5rem;font-size:clamp(2.7rem,5.2vw,5.7rem);line-height:.98;position:relative}.auth-lead{color:#c8d2cc;z-index:1;max-width:540px;font-size:1.1rem;line-height:1.7;position:relative}.auth-footnote{color:#8fa49a;margin:0;font-size:.83rem}.auth-form-panel{background:linear-gradient(135deg,#fff,#f1f3eb);justify-content:center;align-items:center;padding:2rem;display:flex}.auth-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#ffffffe0;border-radius:22px;width:100%;max-width:460px;padding:clamp(1.7rem,4vw,3.2rem)}.auth-card h2{font-size:2rem}.auth-tabs{background:#eef1eb;border-radius:10px;grid-template-columns:1fr 1fr;gap:4px;margin:1.8rem 0;padding:4px;display:grid}.auth-tabs button{color:var(--muted);background:0 0;border:0;border-radius:7px;padding:.7rem}.auth-tabs button.active{color:var(--ink);background:#fff;font-weight:700;box-shadow:0 2px 7px #162d2414}label{color:#34413d;margin-bottom:1rem;font-size:.88rem;font-weight:600;display:block}input,textarea{color:var(--ink);background:#fff;border:1px solid #cfd6d1;border-radius:9px;outline:0;width:100%;padding:.85rem .95rem;transition:all .18s}input{margin-top:.45rem}input:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #176b521f}.primary-button,.secondary-button,.text-button{border-radius:8px;padding:.7rem 1rem;font-weight:700}.primary-button{background:var(--green);border:1px solid var(--green);color:#fff}.primary-button:hover:not(:disabled){background:var(--green-dark)}.secondary-button{color:var(--ink);background:#fff;border:1px solid #bdc9c2}.secondary-button:hover:not(:disabled){border-color:var(--green);color:var(--green)}.text-button{color:var(--muted);background:0 0;border:0;padding-inline:.4rem}.text-button:hover:not(:disabled){color:var(--green)}.text-button.danger:hover:not(:disabled),.danger{color:var(--danger)}.full-width{width:100%;margin-top:.3rem;padding:.85rem}.notice{border-radius:8px;margin:1rem 0;padding:.8rem 1rem;font-size:.88rem;line-height:1.45}.notice-error{color:#8e2f2b;background:#fff0ef}.notice-success{color:#176242;background:#e9f6ee}.app-shell{min-height:100vh}.app-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);z-index:10;background:#ffffffe6;grid-template-columns:1fr auto 1fr;align-items:center;gap:2rem;padding:1rem clamp(1.25rem,5vw,4.5rem);display:grid;position:sticky;top:0}.main-nav{background:#e9ede6;border-radius:9px;gap:4px;padding:4px;display:flex}.main-nav button{color:var(--muted);background:0 0;border:0;border-radius:7px;padding:.55rem 1.1rem;font-weight:700}.main-nav button.active{color:var(--green-dark);background:#fff;box-shadow:0 2px 7px #162d2414}.account-menu{justify-content:flex-end;align-items:center;gap:.65rem;min-width:0;display:flex}.avatar{background:var(--navy);color:var(--lime);border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-weight:700;display:inline-flex}.account-email{text-overflow:ellipsis;white-space:nowrap;max-width:190px;font-size:.84rem;overflow:hidden}.workspace{max-width:1240px;margin:0 auto;padding:clamp(2rem,5vw,4.5rem) clamp(1.25rem,4vw,3rem)}.section-heading{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2rem;display:flex}.section-heading .muted{margin:0}.upload-note{background:#e6eee7;border:1px solid #d0ddd2;border-radius:12px;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem 1.2rem;display:flex}.upload-note p{color:var(--muted);margin:.15rem 0 0;font-size:.84rem}.upload-icon{color:var(--green);background:#fff;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;font-size:1.3rem;display:flex}.document-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1rem;display:grid}.document-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;flex-direction:column;min-height:210px;padding:1.25rem;display:flex;box-shadow:0 7px 20px #182c240a}.document-card-top{justify-content:space-between;align-items:center;margin-bottom:1.2rem;display:flex}.file-icon{color:#ae443d;background:#fff0ed;border-radius:6px;padding:.45rem;font-size:.65rem;font-weight:800}.status{text-transform:capitalize;border-radius:999px;padding:.3rem .55rem;font-size:.67rem;font-weight:700}.status-completed{color:#147148;background:#e5f5eb}.status-pending{color:#6f6a51;background:#f1f0e9}.status-processing{color:#2c6092;background:#e6eff8}.status-failed{color:#a33732;background:#ffebe9}.document-card h3{text-overflow:ellipsis;white-space:nowrap;margin-bottom:.4rem;font-size:1rem;line-height:1.4;overflow:hidden}.document-meta{color:var(--muted);font-size:.76rem}.card-error{color:var(--danger);font-size:.78rem;line-height:1.4}.card-actions{justify-content:space-between;align-items:center;gap:.6rem;margin-top:auto;display:flex}.empty-state{color:var(--muted);text-align:center;background:#ffffffa6;border:1px dashed #c5cec7;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;min-height:300px;padding:2rem;display:flex}.empty-state h3{color:var(--ink);margin:.8rem 0 .35rem}.empty-state p{max-width:420px}.empty-icon{color:var(--green);background:#e6eee7;border-radius:50%;justify-content:center;align-items:center;width:54px;height:54px;font-size:1.4rem;display:flex}.loader{border:3px solid #d5ddd7;border-top-color:var(--green);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.centered-page{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;display:flex}.chat-shell{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:16px;overflow:hidden}.messages{flex-direction:column;gap:1rem;height:min(56vh,610px);padding:1.5rem;display:flex;overflow-y:auto}.chat-empty{min-height:unset;border:0;flex:1}.message{border-radius:12px;max-width:82%;padding:1rem 1.15rem;line-height:1.6}.message p{white-space:pre-wrap;margin:0}.message-user{background:var(--green);color:#fff;align-self:flex-end}.message-assistant{color:var(--ink);background:#eef1eb;align-self:flex-start}.message-label{letter-spacing:.08em;opacity:.68;text-transform:uppercase;margin-bottom:.35rem;font-size:.68rem;font-weight:800;display:block}.typing{color:var(--muted);font-size:.88rem}.sources{border-top:1px solid #17221f1f;margin-top:.8rem;padding-top:.7rem;font-size:.8rem}.sources summary{cursor:pointer;font-weight:700}.sources blockquote{border-left:2px solid var(--green);margin:.7rem 0 0;padding-left:.75rem}.sources blockquote p{color:var(--muted);margin-top:.25rem}.question-form{border-top:1px solid var(--line);background:#f5f6f2;align-items:flex-end;gap:.8rem;padding:1rem;display:flex}.question-form textarea{resize:vertical;min-height:52px;max-height:140px}.question-form .primary-button{min-height:52px}.message-content>:first-child{margin-top:0}.message-content>:last-child{margin-bottom:0}.message-content p{white-space:normal;margin:.55rem 0}.message-content h2,.message-content h3{letter-spacing:0;margin:1rem 0 .35rem;font-family:inherit;font-size:1rem}.message-content ul,.message-content ol{margin:.45rem 0;padding-left:1.35rem}.message-content li{margin:.25rem 0}.message-content li>ul,.message-content li>ol{margin:.2rem 0}.message-content strong{color:var(--green-dark)}.source-table-meta{font-weight:700}.source-table-scroll{max-width:100%;margin-top:.55rem;overflow-x:auto}.source-table table{border-collapse:collapse;width:100%;min-width:520px}.source-table td{vertical-align:top;background:#fff;border:1px solid #cfd8d2;padding:.45rem .55rem;line-height:1.4}.source-table tr:first-child td{background:#e6eee7;font-weight:700}@media (width<=840px){.auth-page{grid-template-columns:1fr}.auth-intro{min-height:340px;padding:2rem}.auth-intro h1{margin-top:3rem;font-size:3rem}.auth-form-panel{padding:1.25rem}.app-header{grid-template-columns:1fr auto;gap:.8rem}.main-nav{grid-area:2/1/auto/-1;justify-self:center}.account-email{display:none}}@media (width<=560px){.app-header{padding:.8rem 1rem}.account-menu .text-button{font-size:.78rem}.section-heading{flex-direction:column;align-items:flex-start}.section-heading>.primary-button{width:100%}.message{max-width:94%}.question-form{flex-direction:column;align-items:stretch}.question-form .primary-button{min-height:44px}}.status-ready{color:#147148;background:#e5f5eb}.status-uploaded{color:#6f6a51;background:#f1f0e9}.password-field{display:block;position:relative}.password-field input{padding-right:3rem}.password-toggle{color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;width:42px;height:42px;padding:0;display:flex;position:absolute;top:.58rem;right:.35rem}.password-toggle:hover,.password-toggle:focus-visible{color:var(--green)}.password-toggle:focus-visible{border-radius:7px;outline:2px solid #176b5259}.password-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.forgot-password-row{justify-content:flex-end;margin:-.45rem 0 1rem;display:flex}.forgot-password-row a,.auth-back-link{color:var(--green);font-size:.86rem;font-weight:700;text-decoration:none}.forgot-password-row a:hover,.auth-back-link:hover{text-decoration:underline}.auth-back-link{text-align:center;margin-top:1.25rem;display:block}.link-button{text-align:center;text-decoration:none;display:block}.inline-loader{color:var(--muted);align-items:center;gap:1rem;padding:2rem 0;display:flex}.inline-loader p{margin:0}.processing-button{justify-content:center;align-items:center;gap:.45rem;display:inline-flex}.button-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin;display:inline-block}.processing-note{color:var(--muted);font-size:.78rem;line-height:1.45}.usage-heading{align-items:center}.plan-badge{border-radius:999px;padding:.55rem .8rem;font-size:.78rem;font-weight:800}.plan-trial{color:#785b00;background:#fff3cc}.plan-pro{background:var(--navy);color:var(--lime)}.usage-grid{grid-template-columns:repeat(4,1fr);gap:1rem;display:grid}.usage-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:1.2rem;box-shadow:0 7px 20px #182c240a}.usage-card-heading{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.usage-card-heading h3{margin:0;font-size:.9rem}.usage-card-heading span{color:var(--muted);font-size:.7rem}.usage-value{color:var(--muted);margin:1.1rem 0 .65rem;font-size:.8rem}.usage-value strong{color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:1.4rem}.usage-bar{background:#e7ebe5;border-radius:999px;height:8px;overflow:hidden}.usage-bar span{background:var(--green);height:100%;transition:width .25s;display:block}.usage-bar span.near-limit{background:#c77928}.usage-remaining{color:var(--muted);margin:.55rem 0 0;font-size:.72rem}.plan-note{background:#e6eee7;border:1px solid #d0ddd2;border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.25rem;padding:1rem 1.2rem;display:flex}.plan-note p{color:var(--muted);margin:.2rem 0 0;font-size:.82rem}.plan-note>span{color:var(--muted);text-align:right;font-size:.78rem}@media (width<=900px){.usage-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=560px){.usage-grid{grid-template-columns:1fr}.plan-note{flex-direction:column;align-items:flex-start}.plan-note>span{text-align:left}}.account-usage-strip{border-bottom:1px solid var(--line);background:#fff;gap:.55rem;padding:.7rem clamp(1.25rem,5vw,4.5rem);display:grid}.account-usage-label{justify-content:space-between;align-items:center;font-size:.78rem;display:flex}.account-usage-label span{color:var(--muted)}.account-usage-strip .usage-bar{height:6px}.usage-grid{grid-template-columns:repeat(3,1fr)}
