:root{color-scheme:dark;--bg:#171719;--ink:#f5f5f6;--muted:#a4a4aa;--line:#ffffff17;--card:#232326;--custom-background:none}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;transition:background .25s,color .25s}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #8aa6ff;outline-offset:3px}.page-shell{position:relative;min-height:100vh;display:flex;flex-direction:column;overflow:hidden;background-color:var(--bg);background-image:radial-gradient(circle,#454549 1.7px,transparent 2px),radial-gradient(ellipse at 50% 34%,#29292c8c,transparent 42%);background-size:22px 22px,auto;background-position:0 0,center}.settings-button{position:absolute;z-index:2;top:clamp(26px,5.3vh,62px);right:clamp(26px,4vw,74px);height:38px;width:38px;display:grid;place-items:center;border:0;background:transparent;color:#b7b7bc;font-size:27px;line-height:1;transition:transform .25s,color .2s}.settings-button:hover{color:#fff;transform:rotate(35deg)}.home{width:min(100% - 32px,1040px);margin:auto;flex:1;min-height:calc(100vh - 78px);display:flex;align-items:center;flex-direction:column;padding:clamp(128px,22vh,230px) 0 40px}.brand{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:64px;font-size:clamp(45px,5.2vw,72px);line-height:1;font-weight:650;letter-spacing:-4px;color:#f4f4f5}.brand img{height:clamp(55px,6.5vw,82px);width:clamp(55px,6.5vw,82px);object-fit:contain}.search-form{width:min(100%,1040px);height:90px;padding:0 17px 0 27px;display:flex;align-items:center;gap:20px;border:1px solid #ffffff05;border-radius:50px;background:#39393c;transition:box-shadow .2s,background .2s}.search-form:focus-within{box-shadow:0 0 0 2px #ffffff26;background:#414145}.attach-button,.voice-button{flex:none;border:0;background:transparent;color:#d9d9dc}.attach-button{width:24px;height:34px;padding:0;font-size:34px;font-weight:300;line-height:1}.search-form input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#f6f6f7;font-size:clamp(16px,1.7vw,24px)}.search-form input::placeholder{color:#a6a6ab;opacity:1}.search-form input::-webkit-search-cancel-button{filter:grayscale(1) invert(1)}.voice-button{width:38px;height:42px;display:grid;place-items:center;padding:7px}.voice-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.voice-button.listening{color:#ff6969;animation:pulse 1.2s infinite}.ask-button{height:54px;flex:none;padding:0 21px;border:0;border-radius:30px;background:#545458;color:#f5f5f6;font-size:19px;font-weight:650;transition:background .2s,transform .2s}.ask-button:hover,.ask-button:focus-visible{background:#68686d}.ask-button:active{transform:scale(.97)}.sparkle{font-size:23px;vertical-align:-1px;margin-right:2px}.attachment-note{margin:10px 0 0;color:#bebec3;font-size:12px}.results{width:min(100%,790px);margin:34px auto 0;animation:rise .25s ease-out}.results[hidden]{display:none}.results-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.results-eyebrow,.dialog-kicker{margin:0 0 8px;color:#a8a8ae;font-size:10px;font-weight:700;letter-spacing:1.5px}.results-head h2{margin:0;font-size:clamp(19px,2.2vw,28px);font-weight:500;overflow-wrap:anywhere}.clear-results{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#242427;color:#c9c9ce;font-size:20px}.answer-card{padding:19px 21px;border:1px solid #ffffff16;border-radius:15px;background:#252529}.result-kicker{color:#d6d6dc;font-size:10px;font-weight:700;letter-spacing:1px}.answer-label{float:right;color:#9b9ba2;font-size:9px}.answer-card>p{margin:12px 0 0;color:#e2e2e6;font-size:14px;line-height:1.7}.source-list{margin-top:24px}.sources-heading{display:flex;justify-content:space-between;margin:0 2px 9px;color:#d8d8dd;font-size:12px;font-weight:650}.sources-heading span+span{color:#929298;font-size:9px;letter-spacing:1px}.source-card{display:grid;grid-template-columns:26px minmax(0,1fr) 18px;gap:10px;padding:14px 3px;border-bottom:1px solid #ffffff16}.source-index{color:#8d8d94;font-size:10px}.source-open{padding:0;border:0;background:transparent;color:#b7c9ff;text-align:left;font-size:14px;font-weight:650;line-height:1.45}.source-open:hover{color:#e0e7ff;text-decoration:underline}.source-content p{margin:5px 0;color:#b6b6bd;font-size:12px;line-height:1.55}.source-url{color:#909098;font-size:10px}.source-arrow{color:#a6a6ad;font-size:13px}.source-note{color:#929299;font-size:10px}.loading-card,.error-card{display:flex;gap:14px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:14px;background:#252529}.loading-card strong,.error-card strong{font-size:13px}.loading-card p,.error-card p{margin:5px 0 0;color:#b4b4bb;font-size:12px}.loader{width:23px;height:23px;border:2px solid #ffffff25;border-top-color:#e7e7eb;border-radius:50%;animation:spin .8s linear infinite}.error-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#542c2c;color:#ffc4c4}.error-card button{margin-top:10px;padding:7px 10px;border:0;border-radius:7px;background:#46464a;color:white;font-size:11px}.empty-sources{color:#bbb;font-size:12px}.download-card{width:min(100%,815px);min-height:100px;margin:auto auto 0;padding:14px 20px;display:flex;align-items:center;gap:15px;border:1px solid #ffffff0d;border-radius:25px;background:#222225;color:#efeff1;text-align:left;box-shadow:0 10px 40px #0002;transition:background .2s,border-color .2s,transform .2s}.download-card:hover{background:#28282c;border-color:#ffffff20;transform:translateY(-2px)}.download-mark{width:39px;height:39px;object-fit:contain}.download-copy{display:flex;flex:1;flex-direction:column;gap:5px}.download-copy strong{font-size:16px;font-weight:650}.download-copy>span{color:#a8a8af;font-size:14px}.download-action{display:flex;align-items:center;gap:15px;padding:12px 18px;border:1px solid #8193db5c;border-radius:12px;color:#c8d0ff;font-size:15px}.download-action span+span{font-size:21px;line-height:12px}.footer{min-height:66px;padding:0 clamp(20px,4vw,62px);display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #ffffff12;color:#8b8b91;font-size:12px}.footer button{border:0;background:none;color:#b1b1b6;font-size:12px}.footer button:hover{color:white;text-decoration:underline}.toast{position:fixed;z-index:10;left:50%;bottom:82px;transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:11px 16px;border:1px solid #ffffff24;border-radius:10px;background:#2c2c30;color:#f5f5f6;font-size:12px;box-shadow:0 10px 35px #0007;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.profile-dialog,.welcome-dialog,.install-dialog,.reader-dialog{width:min(440px,calc(100vw - 30px));position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;padding:30px;border:1px solid #ffffff20;border-radius:22px;background:#222226;color:#f3f3f5;box-shadow:0 28px 100px #000a;overflow:visible}.profile-dialog::backdrop,.welcome-dialog::backdrop,.install-dialog::backdrop,.reader-dialog::backdrop{background:#09090bd1;backdrop-filter:blur(7px)}.dialog-close-form{position:absolute;right:14px;top:13px}.close-dialog{width:30px;height:30px;border:0;border-radius:50%;background:#ffffff0b;color:#b4b4bb;font-size:21px;line-height:1}.close-dialog:hover{background:#ffffff19;color:white}.profile-dialog h2,.welcome-dialog h2,.install-dialog h2,.reader-dialog h2{margin:0;font-size:26px;font-weight:550;letter-spacing:-.5px}.dialog-description{margin:8px 0 23px;color:#b0b0b7;font-size:12px;line-height:1.6}.field-label{display:block;margin:16px 0 7px;color:#d0d0d5;font-size:11px;font-weight:650}.profile-row{display:flex;gap:8px}.profile-row select,.name-input{width:100%;height:41px;padding:0 11px;border:1px solid #ffffff20;border-radius:9px;background:#17171a;color:#f1f1f3;font-size:12px}.profile-row select{flex:1}.small-button{border:1px solid #ffffff20;border-radius:9px;padding:0 11px;background:#ffffff08;color:#e1e1e5;font-size:11px;white-space:nowrap}.small-button:hover{background:#ffffff17}.background-label{margin-top:20px}.background-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.background-option{border:1px solid #ffffff18;border-radius:10px;padding:8px 5px;background:#ffffff05;color:#b9b9c0;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:7px}.background-option.selected{border-color:#a6a6bb;background:#ffffff12;color:#fff}.swatch{width:100%;height:34px;border-radius:6px}.midnight-swatch{background:radial-gradient(ellipse at 60% 20%,#44444a,#101013 72%)}.aurora-swatch{background:radial-gradient(ellipse at 20% 15%,#5366a9,#182c45 52%,#246d68)}.paper-swatch{background:linear-gradient(145deg,#fbfcff,#c8d7eb)}.custom-swatch{display:grid;place-items:center;border:1px dashed #8b8b92;color:#d4d4d8;font-size:17px}.upload-background{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:10px 11px;border:1px dashed #ffffff28;border-radius:9px;color:#d2d2d8;font-size:10px;cursor:pointer}.upload-background span{color:#929299;font-size:9px}.upload-background:hover{border-color:#aaa}.dialog-actions{margin-top:23px;display:flex;align-items:center;justify-content:space-between;gap:10px}.remove-profile{border:0;background:none;color:#d0a2a2;font-size:10px}.remove-profile:disabled{opacity:.35;cursor:default}.save-profile{border:0;border-radius:9px;background:#ededf0;color:#1c1c20;padding:11px 17px;font-size:11px;font-weight:700}.save-profile:hover{background:#fff}.welcome-dialog{text-align:center;padding:32px}.welcome-mark{width:70px;height:70px;margin:0 auto 18px;border-radius:21px;display:grid;place-items:center;overflow:hidden;background:#19191c}.welcome-mark img{width:65px;height:65px;object-fit:cover;mix-blend-mode:screen}.welcome-dialog .dialog-description{max-width:285px;margin:9px auto 22px}.welcome-dialog .field-label{text-align:left}.welcome-button{width:100%;margin-top:16px}.welcome-button span{float:right;font-size:14px}.skip-welcome{margin-top:13px;border:0;background:none;color:#a2a2a9;font-size:11px}.install-dialog .dialog-description{margin-bottom:15px}.reader-dialog{width:min(680px,calc(100vw - 30px))}.reader-source{margin:10px 0 20px;color:#a0a0a7;font-size:11px}.reader-text{white-space:pre-wrap;color:#dfdfe3;font-size:14px;line-height:1.8}.light .page-shell{background-color:#f1f1f4;background-image:radial-gradient(circle,#d4d4dc 1.7px,transparent 2px),radial-gradient(ellipse at 50% 34%,#fff,transparent 48%)}.light .brand{color:#202024}.light .search-form{background:#d9d9de;border-color:#00000008}.light .search-form input{color:#202024}.light .search-form input::placeholder{color:#73737b}.light .attach-button,.light .voice-button{color:#55555d}.light .ask-button{background:#c2c2c9;color:#222228}.light .download-card{background:#e0e0e4;color:#25252b}.light .download-copy>span{color:#686870}.light .footer{border-color:#00000014;color:#6c6c73}.light .footer button{color:#4f4f57}.light .results-head h2{color:#222228}.light .answer-card,.light .loading-card,.light .error-card{background:#fff;border-color:#00000016}.light .answer-card>p,.light .reader-text{color:#33333a}.light .result-kicker,.light .sources-heading{color:#3a3a43}.light .source-card{border-color:#00000017}.light .source-open{color:#354f93}.light .source-content p{color:#56565e}.light .profile-dialog,.light .welcome-dialog,.light .install-dialog,.light .reader-dialog{background:#f8f8fa;color:#25252b;border-color:#0000001c}.light .dialog-description,.light .reader-source{color:#686870}.light .field-label{color:#484850}.light .profile-row select,.light .name-input{background:#fff;color:#222;border-color:#00000024}.light .background-option{background:#fff;color:#555}.light .background-option.selected{background:#e6e6eb;color:#222;border-color:#666}.light .upload-background{color:#444;border-color:#0004}.light .upload-background span{color:#777}.light .save-profile{background:#29292e;color:white}.light .save-profile:hover{background:#111}
body[data-background="aurora"] .page-shell{background-color:#13151c;background-image:radial-gradient(circle,#50525b 1.7px,transparent 2px),radial-gradient(ellipse at 30% 20%,#34456b,transparent 45%),radial-gradient(ellipse at 85% 70%,#24534d,transparent 42%)}body[data-background="paper"] .page-shell{background-color:#f1f1f4;background-image:radial-gradient(circle,#d4d4dc 1.7px,transparent 2px),radial-gradient(ellipse at 50% 34%,#fff,transparent 48%)}body[data-background="custom"] .page-shell{background-image:linear-gradient(#111114a8,#111114a8),radial-gradient(circle,#ffffff20 1.7px,transparent 2px),var(--custom-background);background-size:auto,22px 22px,cover;background-position:center;background-attachment:fixed}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{transform:scale(1.12)}}@media(max-width:680px){.home{width:calc(100% - 30px);min-height:calc(100vh - 74px);padding-top:clamp(110px,22vh,190px);padding-bottom:22px}.settings-button{top:22px;right:16px}.brand{gap:10px;margin-bottom:48px;font-size:52px;letter-spacing:-3px}.brand img{width:59px;height:59px}.search-form{height:64px;padding:0 9px 0 15px;gap:9px}.attach-button{font-size:28px;width:20px}.search-form input{font-size:15px}.voice-button{width:30px;padding:3px}.ask-button{height:46px;padding:0 14px;font-size:15px}.sparkle{font-size:18px}.download-card{min-height:76px;padding:10px 12px;gap:10px;border-radius:18px}.download-mark{width:31px;height:31px}.download-copy strong{font-size:12px}.download-copy>span{font-size:10px}.download-action{gap:9px;padding:9px 11px;font-size:11px}.footer{min-height:56px;font-size:9px;padding:0 13px}.footer button{font-size:10px}.results{margin-top:24px}.answer-card{padding:16px}.answer-card>p{font-size:13px}.source-open{font-size:13px}.source-content p{font-size:11px}.background-option{font-size:8px}.swatch{height:30px}.profile-dialog,.welcome-dialog,.install-dialog,.reader-dialog{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
