@import "https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600;700&family=Inter:wght@400;500;600;700&display=swap";:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box}body{color:#1b1b23;background:#f6f4ef;margin:0;font-family:Inter,Arial,sans-serif}.app-shell{min-height:100vh;display:flex}.sidebar{background:#fff;border-right:1px solid #e7e3d8;flex-direction:column;flex-shrink:0;gap:32px;width:220px;padding:28px 20px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brand-mark{color:#fff;background:#0f6e5c;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-family:"Source Serif 4",serif;font-size:14px;font-weight:700;display:flex}.brand-name{color:#1b1b23;font-family:"Source Serif 4",serif;font-size:18px;font-weight:700}.nav{flex-direction:column;gap:4px;display:flex}.nav-item{text-align:left;color:#6b6a63;cursor:pointer;background:0 0;border:none;border-radius:8px;padding:10px 12px;font-size:15px;font-weight:600;position:relative}.nav-item:hover{color:#1b1b23;background:#f6f4ef}.nav-item.active{color:#0f6e5c;background:#eaf3f1}.nav-item.active:before{content:"";background:#c9922e;border-radius:2px;width:3px;position:absolute;top:8px;bottom:8px;left:0}.sidebar-doc{background:#f6f4ef;border-radius:10px;flex-direction:column;gap:4px;margin-top:auto;padding:14px;display:flex}.sidebar-doc-label{text-transform:uppercase;letter-spacing:.05em;color:#9a988f;font-size:11px;font-weight:700}.sidebar-doc-name{color:#1b1b23;word-break:break-word;font-size:13px;font-weight:600}.content{flex:1;max-width:900px;padding:48px 56px}.page-header{margin-bottom:28px}.page-header h1{color:#1b1b23;margin:0 0 8px;font-family:"Source Serif 4",serif;font-size:36px;font-weight:700}.page-header p{color:#6b6a63;margin:0;font-size:16px}.main-card{background:#fff;border-radius:16px;padding:30px;box-shadow:0 4px 20px #1b1b230f}.section-title{margin-bottom:16px;font-size:20px;font-weight:700}.divider{border:none;border-top:1px solid #eee9dd;margin:30px 0}.upload-card{background:#f6f4ef;border:2px dashed #cfe4df;border-radius:14px;justify-content:space-between;align-items:center;gap:20px;padding:24px;display:flex}.upload-title{margin:0 0 6px;font-size:17px;font-weight:700}.upload-subtitle{color:#6b6a63;margin:0}.file-name{color:#0f6e5c;margin-top:12px;font-size:14px;font-weight:600}.upload-actions{align-items:center;gap:12px;display:flex}.file-label,.upload-actions button{cursor:pointer;border:none;border-radius:10px;padding:11px 16px;font-weight:700}.file-label{background:#fff;border:1px solid #d8d4c8}.file-label input{display:none}.upload-actions button{color:#fff;background:#0f6e5c}.upload-actions button:disabled{opacity:.6;cursor:not-allowed}.status-message{color:#0f6e5c;margin-top:12px;font-weight:600}.chat-section{width:100%}.question-box{resize:vertical;border:1px solid #d8d4c8;border-radius:12px;outline:none;width:100%;min-height:110px;margin-bottom:14px;padding:16px;font-family:inherit;font-size:16px}.question-box:focus{border-color:#0f6e5c;box-shadow:0 0 0 3px #0f6e5c1f}.ask-button{color:#fff;cursor:pointer;background:#1b1b23;border:none;border-radius:10px;padding:12px 18px;font-weight:700}.ask-button:disabled{opacity:.5;cursor:not-allowed}.answer-card{background:#f6f4ef;border:1px solid #eee9dd;border-radius:14px;margin-top:24px;padding:24px}.answer-card h3{margin-top:0;font-size:20px}.answer-text{color:#35342e;white-space:pre-wrap;font-size:16px;line-height:1.7}.empty-text{color:#9a988f}.quick-actions{flex-wrap:wrap;gap:10px;margin-bottom:18px;display:flex}.quick-actions button{color:#0f6e5c;cursor:pointer;background:#eaf3f1;border:1px solid #cfe4df;border-radius:999px;padding:9px 16px;font-weight:700}.quick-actions button:hover{background:#dcece8}.quick-actions button:disabled,.ask-button:disabled{opacity:.4;cursor:not-allowed}.chat-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.clear-chat-button{color:#b03a3a;cursor:pointer;background:#fbeaea;border:1px solid #f3d4d4;border-radius:999px;padding:8px 14px;font-weight:700}.clear-chat-button:hover{background:#f3d4d4}.chat-history{flex-direction:column;gap:22px;margin-top:28px;display:flex}.message-card{text-align:left;background:#f6f4ef;border:1px solid #eee9dd;border-radius:16px;padding:22px}.user-message{background:#eaf3f1;border-radius:12px;margin-bottom:16px;padding:14px 16px}.user-message strong,.ai-message strong{color:#1b1b23;margin-bottom:8px;display:block}.user-message p,.ai-message p{margin:0}.ai-message{background:#fff;border-radius:12px;padding:16px}.sources{border-top:1px solid #eee9dd;margin-top:18px;padding-top:14px}.sources h4{color:#1b1b23;margin:0 0 10px}.source-badge{color:#96650f;background:#fdf1de;border-left:3px solid #c9922e;border-radius:6px;margin-bottom:8px;margin-right:8px;padding:7px 12px 7px 10px;font-size:13px;font-weight:700;display:inline-block}.answer-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.copy-button{color:#fff;cursor:pointer;background:#0f6e5c;border:none;border-radius:8px;padding:6px 12px;font-size:13px}.copy-button:hover{background:#0c5a4b}.download-button{color:#fff;cursor:pointer;background:#c9922e;border:none;border-radius:8px;margin-left:8px;padding:6px 12px;font-size:13px}.download-button:hover{background:#b17f22}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px;display:grid}.stat-card{background:#f6f4ef;border:1px solid #eee9dd;border-radius:14px;padding:20px}.stat-value{color:#1b1b23;margin:0 0 4px;font-family:"Source Serif 4",serif;font-size:30px;font-weight:700}.stat-unit{color:#6b6a63;margin-left:4px;font-size:16px;font-weight:600}.stat-label{color:#6b6a63;margin:0;font-size:13px}.stats-empty{background:#f6f4ef;border:1px dashed #d8d4c8;border-radius:14px;padding:20px}@media (width<=720px){.app-shell{flex-direction:column}.sidebar{flex-direction:row;align-items:center;width:100%;padding:16px 20px}.content{padding:28px 20px}}.auth-shell{background:#f6f4ef;justify-content:center;align-items:center;min-height:100vh;display:flex}.auth-card{background:#fff;border-radius:16px;width:100%;max-width:380px;padding:40px;box-shadow:0 4px 20px #1b1b230f}.auth-title{color:#1b1b23;margin:0 0 6px;font-family:"Source Serif 4",serif;font-size:28px;font-weight:700}.auth-subtitle{color:#6b6a63;margin:0 0 24px;font-size:14px}.auth-form{flex-direction:column;gap:16px;display:flex}.auth-label{color:#1b1b23;flex-direction:column;gap:6px;font-size:13px;font-weight:600;display:flex}.auth-input{border:1px solid #d8d4c8;border-radius:10px;outline:none;padding:11px 14px;font-family:inherit;font-size:15px}.auth-input:focus{border-color:#0f6e5c;box-shadow:0 0 0 3px #0f6e5c1f}.auth-error{color:#b03a3a;background:#fbeaea;border:1px solid #f3d4d4;border-radius:8px;margin:0;padding:10px 12px;font-size:13px}.auth-submit{color:#fff;cursor:pointer;background:#0f6e5c;border:none;border-radius:10px;margin-top:4px;padding:12px;font-size:15px;font-weight:700}.auth-submit:hover{background:#0c5a4b}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-switch{text-align:center;color:#6b6a63;margin:20px 0 0;font-size:13px}.auth-link{color:#0f6e5c;cursor:pointer;background:0 0;border:none;padding:0;font-size:13px;font-weight:700}.sidebar-user{border-top:1px solid #e7e3d8;flex-direction:column;gap:8px;padding-top:14px;display:flex}.sidebar-user-email{color:#6b6a63;word-break:break-word;font-size:12px}.sidebar-logout{color:#b03a3a;cursor:pointer;text-align:left;background:0 0;border:1px solid #d8d4c8;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600}.sidebar-logout:hover{background:#fbeaea;border-color:#f3d4d4}.doc-list{flex-direction:column;gap:10px;margin-top:12px;display:flex}.doc-list-item{background:#f6f4ef;border:1px solid #eee9dd;border-radius:10px;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.doc-list-name{color:#1b1b23;font-size:14px;font-weight:600}.doc-list-meta{color:#6b6a63;font-size:12px}.doc-selector{border-top:1px solid #eee9dd;margin-top:20px;padding-top:16px}.doc-selector-label{color:#6b6a63;text-transform:uppercase;letter-spacing:.05em;margin:0 0 10px;font-size:12px;font-weight:700}.doc-selector-list{flex-wrap:wrap;gap:8px;display:flex}.doc-chip{color:#6b6a63;cursor:pointer;background:#f6f4ef;border:1px solid #d8d4c8;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .15s}.doc-chip:hover{border-color:#0f6e5c}.doc-chip.active{color:#0f6e5c;background:#eaf3f1;border-color:#0f6e5c}.doc-chip{padding-right:28px;position:relative}.doc-chip-delete{color:#9a988f;border-radius:4px;padding:2px 4px;font-size:15px;font-weight:700;line-height:1;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.doc-chip-delete:hover{color:#b03a3a;background:#fbeaea}.quick-actions-hint{color:#6b6a63;background:#f6f4ef;border:1px solid #eee9dd;border-radius:8px;margin:-8px 0 14px;padding:10px 14px;font-size:13px}
