:root{--forest:#263770;--lime:#e8f5b2;--cream:#e5e5ff;--paper:#ffffff;--ink:#202638;--muted:#646b84;--line:#d2d5ed}*{box-sizing:border-box}body{margin:0;display:grid;grid-template-columns:250px 1fr;height:100dvh;font:15px/1.55 Arial,sans-serif;color:var(--ink);background:var(--cream)}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--forest);padding:10px 14px}button:hover{background:#edf3e9}aside{background:#eeeefe;padding:26px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:12px}.brand{display:grid;gap:4px;margin-bottom:20px}.brand img{width:75px;height:75px;object-fit:contain}.brand strong{font:700 29px Georgia,serif;color:var(--forest)}.brand span,.side-note{font-size:12px;color:var(--muted)}aside h2{font-size:11px;text-transform:uppercase;letter-spacing:.13em;margin:15px 0 0}#archive{overflow:auto}#archive button{display:block;width:100%;text-align:left;margin:6px 0;font-size:12px}.side-note{margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}main{min-width:0;display:grid;grid-template-rows:70px minmax(0,1fr) auto auto;overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);background:var(--paper)}header div{display:grid}header span{font-size:11px;color:var(--muted)}#thread{overflow:auto;padding:30px clamp(20px,6vw,85px)}.welcome{max-width:720px;margin:60px auto}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--forest);font-weight:bold}h1{font:500 clamp(38px,5vw,62px)/1.06 Georgia,serif;letter-spacing:-.035em;color:var(--forest);margin:20px 0}p{max-width:670px}.welcome>p:not(.eyebrow){color:var(--muted);font-size:17px}.examples{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.message{max-width:820px;margin:0 auto 22px;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:13px;overflow-wrap:anywhere;white-space:pre-wrap}.message.user{background:var(--forest);color:var(--paper);margin-left:auto;max-width:75%}.message h3{font-size:13px;margin:10px 0}.message details{font-size:13px;border-top:1px solid var(--line);padding-top:8px;margin-top:12px}.message a{color:var(--forest);display:block;overflow-wrap:anywhere}footer{padding:12px clamp(18px,5vw,70px) 18px;background:var(--paper);border-top:1px solid var(--line)}.sources{display:flex;gap:18px;font-size:12px;margin-bottom:9px;flex-wrap:wrap}form{display:flex;gap:8px;padding:8px;border:1px solid #cad8ce;border-radius:16px;background:#fff}textarea{width:100%;resize:none;border:0;background:transparent;padding:8px;min-height:48px;outline:0}form button{background:var(--lime);border:0;font-size:25px;width:46px;flex:none}small{display:block;font-size:10px;color:var(--muted);margin:7px 3px 0}#choices{padding:0 28px;max-height:190px;overflow:auto}#choices button{display:block;width:100%;margin:5px 0;text-align:left}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:420px}dialog input{width:100%;padding:12px;border:1px solid var(--line);margin:8px 0}dialog::backdrop{background:#173f3560}@media(max-width:750px){body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}aside{display:flex;flex-direction:row;padding:10px;border-right:0;border-bottom:1px solid var(--line);align-items:center;gap:7px}.brand{margin:0;margin-right:auto}.brand img,.brand span,aside h2,#archive,.side-note{display:none}.brand strong{font-size:21px}aside button{font-size:11px;padding:8px}.welcome{margin:25px auto}header{padding:0 16px}main{grid-template-rows:62px minmax(0,1fr) auto auto}#thread{padding:18px}.message.user{max-width:90%}footer{padding:12px}.examples{display:grid}.sources{gap:10px}h1{font-size:39px}}

html{height:100%;background:var(--cream)}body{height:100dvh;min-height:100dvh;overflow:hidden}main,aside{min-height:0;height:100%;}button{transition:background .16s ease,transform .16s ease,box-shadow .16s ease}button:hover{background:#f0f0ff;box-shadow:0 3px 10px #33395e12}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #5c76d5;outline-offset:3px}.sources{gap:7px}.sources label{position:relative;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid var(--line);border-radius:99px;cursor:pointer;background:var(--paper);color:var(--muted);transition:background .16s ease}.sources label:has(input:checked){color:var(--forest);background:#e9ebff;border-color:#a2addb}.sources input{accent-color:#087cff;width:14px;height:14px;margin:0}#ask{box-shadow:0 3px 16px #41497e0b;align-items:center;padding:8px 10px;border-color:#b8bfdf}#ask:focus-within{border-color:#5777cc;box-shadow:0 0 0 3px #5577cc12}#ask button{border-radius:50%;width:44px;height:44px;padding:0;background:#087cff;color:white;display:grid;place-items:center;font-size:23px}#ask button:hover{background:#086cde}#question{min-height:50px;max-height:140px;line-height:1.5;color:var(--ink)}footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}dialog{margin:auto;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;background:var(--paper);color:var(--ink);box-shadow:0 24px 90px #20263835;padding:28px;border-color:#c4c8e7}dialog[open]{animation:modal-in .18s ease-out}dialog h2{font:600 28px/1.2 Georgia,serif;color:var(--forest);margin:8px 0 12px}dialog p{font-size:14px;color:var(--muted);line-height:1.6}dialog input{border-radius:10px;background:#f8f8ff;color:var(--ink)}dialog::backdrop{background:#20263865;backdrop-filter:blur(3px)}.auth-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.auth-actions button{flex:1;min-width:100px}#send-code,#verify{background:#087cff;border-color:#087cff;color:#fff}#auth-status:empty{display:none}#auth-status{border-radius:10px;background:#f0f1ff;padding:12px;margin:16px 0 0;color:var(--forest)}.auth-mark{width:55px;height:55px;object-fit:contain}.message{animation:arrive .2s ease-out}.examples button{background:var(--lime)}@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:750px){aside{height:auto}main{height:100%;min-height:0}.brand strong{font-size:20px}.sources label{font-size:11px;padding:5px 10px}footer small{font-size:9px}dialog{padding:24px}.welcome{margin:20px auto}.welcome>p:not(.eyebrow){font-size:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.page{display:block;overflow:auto;height:auto;min-height:100dvh}.site-nav{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,5vw,80px);border-bottom:1px solid var(--line);background:#ffffff80}.site-nav a{color:var(--forest);text-decoration:none;font-size:13px;margin-left:20px}.site-brand{display:flex;align-items:center;gap:10px;font:700 23px Georgia,serif!important;margin-left:0!important}.site-brand img{width:38px;height:38px;object-fit:contain}.page-content{max-width:1040px;margin:50px auto;padding:0 24px 50px}.page-content>p{font-size:17px;color:var(--muted)}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:38px 0}.feature-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px;transition:transform .18s ease}.feature-card:hover{transform:translateY(-3px)}.feature-card h2{font:600 27px/1.2 Georgia,serif;color:var(--forest)}.feature-card p{font-size:14px;color:var(--muted)}.state{display:inline-block;font-size:11px;border-radius:99px;background:#e9ebff;color:var(--forest);padding:5px 10px}.preview{padding:17px;border:1px solid var(--line);border-radius:12px;background:#f7f7ff;margin-top:18px;font-size:13px}.page-cta{display:inline-block;background:#087cff;color:#fff;padding:13px 22px;border-radius:12px;text-decoration:none}.contact-box{max-width:600px;background:var(--paper);padding:30px;border:1px solid var(--line);border-radius:20px}.contact-box a{color:#087cff}.contact-box p{color:var(--muted)}@media(max-width:650px){.site-nav{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 16px;gap:8px}.site-nav a{margin-left:12px;font-size:12px}.feature-grid{grid-template-columns:1fr}.page-content{margin:30px auto}.feature-card{padding:22px}}.sidebar-links{font-size:12px}.sidebar-links a{color:var(--forest);text-decoration:none}@media(max-width:750px){.sidebar-links{display:none}}body:not(.page){position:fixed;inset:0;width:100%;height:100%;min-height:0}body.page{position:static}.sources label:hover{transform:translateY(-1px);box-shadow:0 3px 9px #47558818}.sources label:active{transform:scale(.96)}.sources input{transition:transform .16s ease}.sources label:has(input:not(:checked)){background:#fafaff;opacity:.75}.sources input.check-pop{animation:check-pop .24s ease-out}@keyframes check-pop{0%{transform:scale(.75)}55%{transform:scale(1.18)}100%{transform:scale(1)}}

[hidden]{display:none!important}#otp-boxes{display:flex;gap:8px;margin:12px 0 18px}#otp-boxes .otp-digit{min-width:0;width:calc((100% - 40px)/6);height:54px;text-align:center;font-size:24px;font-weight:600;padding:0;margin:0;border:1px solid #b9c0df;border-radius:10px}.auth-actions{display:grid;grid-template-columns:1fr 1fr}.auth-actions #verify:not([hidden]){grid-column:1/-1;grid-row:1}.auth-actions #send-code.resend{grid-column:1;grid-row:2;background:transparent;color:var(--forest);border:0;font-size:12px;padding:10px 0;white-space:nowrap}.auth-actions #close-auth{grid-column:2;grid-row:2}.auth-actions:has(#verify[hidden]) #send-code{grid-column:1/-1;grid-row:1}.auth-actions button{min-width:0}button:disabled{opacity:.55;cursor:wait}.otp-digit:focus{background:#eef1ff}.auth-actions #verify{font-weight:600}dialog h2{font-size:26px}#auth-status{font-size:12px}@media(max-width:400px){#otp-boxes{gap:6px}#otp-boxes .otp-digit{width:calc((100% - 30px)/6);height:48px;font-size:22px}}@media(max-height:560px){.welcome{margin:12px auto}.welcome h1{font-size:36px}.welcome>p:not(.eyebrow){font-size:14px}.welcome .examples{margin-top:12px}aside .brand{margin-bottom:6px}.brand img{width:42px;height:42px}aside{padding-top:14px}}

dialog{text-align:center}dialog .auth-mark{display:block;margin:0 auto 12px}dialog input{text-align:left}.auth-actions{display:flex;flex-direction:column}.auth-actions #send-code,.auth-actions #verify{width:100%;min-height:46px;white-space:nowrap}.auth-actions #resend,.auth-actions #change-email{font-size:12px;border:0;padding:5px;background:transparent}.auth-actions #close-auth{background:transparent;border:0;font-size:12px}.auth-actions #verify:not([hidden]){margin-bottom:3px}.modal-emoji{font-size:44px;margin-bottom:18px}.email-chip{background:#f4f5fb;padding:12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.amber-note{color:#a26c11!important;font-size:12px!important}.logout-actions{display:flex;gap:8px}.logout-actions button{flex:1;font-size:13px}#confirm-logout{background:#ec4148;border-color:#ec4148;color:#fff}.otp-digit:not(:placeholder-shown){transition:background .15s,border .15s}.otp-digit:focus{animation:check-pop .24s ease-out}.status-in{animation:arrive .2s ease-out}dialog.otp-step #email{font-size:12px;text-align:center;background:#f4f5fb;padding:8px;border:0}
#auth-x,#auth-back{position:absolute;top:12px;background:transparent;border:0;padding:4px 10px;font-size:24px;color:var(--muted)}#auth-x{right:10px}#auth-back{left:10px}.auth-help{font-size:11px!important;margin:18px 0 0!important}.auth-help a{color:var(--forest)}#otp-expiry{font-size:12px;margin:12px 0;color:var(--muted)}#auth .auth-mark{margin-top:6px}body.temporary-mode #temporary{background:#7467bf;color:#fff;border-color:#7467bf}body.temporary-mode #thread{background:#e9e4ff}body.temporary-mode #thread>.message:first-child{background:#f0ebff;border-color:#c1b4e1;color:#524777}body.temporary-mode header{background:#f5f1ff}
.header-actions{display:flex;gap:7px;align-items:center}#theme{padding:8px 12px}#history-search{width:100%;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:12px}.archive-row{border-bottom:1px solid var(--line);padding-bottom:7px}.archive-actions{display:flex;gap:3px}.archive-actions button{width:auto!important;font-size:10px!important;padding:4px 7px!important;margin:0!important}.pair-previews{padding:5px 0 0 10px;border-left:2px solid #aab3dd}.undo-toast{padding:10px;display:flex;align-items:center;justify-content:space-between;font-size:12px;background:#eeeaff;border:1px solid var(--line);border-radius:10px;animation:arrive .2s ease-out}.undo-toast button{width:auto!important;margin:0!important}#mic{background:#eff0ff!important;color:var(--forest)!important;font-size:20px!important}#mic.listening{background:#ffe9ef!important;animation:stagePulse 1s infinite}#voice-status{font-size:11px;color:var(--muted);display:block}html[data-theme=dark]{--forest:#c3caff;--cream:#1a1b35;--paper:#24263f;--ink:#f0f1ff;--muted:#adb1ce;--line:#414560}html[data-theme=dark] aside{background:#20213d}html[data-theme=dark] #ask,html[data-theme=dark] dialog input{background:#252840}html[data-theme=dark] .sources label:has(input:checked){background:#3b4066;color:#dce0ff}html[data-theme=dark] .sources label:has(input:not(:checked)){background:#252840}html[data-theme=dark] .message.user{background:#555e97}html[data-theme=dark] .examples button{background:#484e2e;color:#f0f5d1}html[data-theme=dark] .email-chip,html[data-theme=dark] #auth-status{background:#343856}html[data-theme=dark] body.temporary-mode #thread{background:#26203f}html[data-theme=dark] body.temporary-mode header{background:#302947}html[data-theme=dark] body.temporary-mode #thread>.message:first-child{background:#332c50;color:#ded5ff}body{transition:background .2s,color .2s}@media(max-width:750px){#history-search{display:none}.header-actions{display:flex}}@keyframes stagePulse{50%{opacity:.65}}

.lane-card{white-space:normal!important;border:1px solid var(--line)!important;padding:0!important;margin:12px 0!important;border-radius:12px;overflow:hidden}.lane-card>summary{padding:14px 16px;background:#eeeefe;color:var(--forest);font-weight:600;cursor:pointer}.answer-text{padding:8px 17px 15px;font-size:14px;line-height:1.75}.answer-text p{white-space:pre-wrap;max-width:none;margin:12px 0}.answer-text h3{font-size:16px!important;margin:17px 0 8px!important}.lane-card>details{margin:0!important;padding:12px 17px!important}.pending{border-left:3px solid #087cff;animation:stagePulse 1.5s infinite}.acronym-card{padding:16px;margin:8px 0;background:var(--paper);border:1px solid var(--line);border-radius:14px;animation:arrive .2s ease-out}.acronym-card h3{margin:0 0 12px;font-size:14px}.acronym-group{margin:12px 0;display:flex;flex-wrap:wrap;gap:6px}.acronym-group strong{display:block;width:100%}.acronym-group input{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px}.acronym-card button{font-size:12px}.acronym-group button.selected{background:#087cff;color:white}#choices:has(.acronym-card){max-height:min(45vh,340px)}html[data-theme=dark] .lane-card>summary{background:#343858}
html[data-theme=dark] #thread{background:var(--cream)}html[data-theme=dark] header,html[data-theme=dark] footer{background:var(--paper)}html[data-theme=dark] button{color:var(--forest);background:var(--paper)}html[data-theme=dark] button:hover{background:#353950}.message>button{margin:5px 5px 0 0;font-size:12px}.attribution{font-size:12px!important}.attribution a{color:var(--forest)}.lane-card[open]>.answer-text{animation:arrive .18s ease-out}.sidebar-links a,.site-nav a{transition:opacity .16s}.sidebar-links a:hover,.site-nav a:hover{opacity:.65}
#startup{position:fixed;inset:0;z-index:100;background:var(--cream);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:var(--forest)}#startup img{width:80px;height:80px;object-fit:contain}#startup strong{font:700 28px Georgia,serif}.loading-line{width:180px;height:3px;border-radius:3px;background:#c4c7ea;overflow:hidden}.loading-line:after{content:'';display:block;height:100%;width:30%;background:#087cff;animation:load-slide 1s infinite ease-in-out}@keyframes load-slide{from{transform:translateX(-100%)}to{transform:translateX(400%)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Anchor both panes to viewport edges, independent of grid percentage height or zoom. */
html{height:100%;min-height:-webkit-fill-available}body:not(.page){height:auto;min-height:0;bottom:0;top:0}body:not(.page)>aside{position:fixed;left:0;top:0;bottom:0;width:250px;height:auto}body:not(.page)>main{position:fixed;left:250px;right:0;top:0;bottom:0;height:auto;min-height:0}#voice-status:empty{display:none}.pair-previews p{font-size:11px;color:var(--muted);white-space:pre-wrap;max-height:110px;overflow:auto;margin:5px 0 10px}
@media(max-width:750px){body:not(.page)>aside{width:100%;height:58px;bottom:auto}body:not(.page)>main{left:0;top:58px;bottom:0;height:auto}.brand strong{font-size:18px}}

#choices:has(.acronym-card){padding:0 20px;max-height:min(55vh,440px)}.acronym-card{max-width:660px;margin:10px auto 16px;border-radius:20px;padding:22px 26px;box-shadow:0 6px 24px #30365c12}.acronym-card>span{font-size:9px;letter-spacing:.12em;color:var(--muted);font-weight:700}.acronym-card h3{font:600 24px Georgia,serif;margin:7px 0}.acronym-card>p{font-size:12px;color:var(--muted);margin:7px 0 14px}.acronym-group{gap:8px}.acronym-chip{display:inline-block!important;width:auto!important;border-radius:8px;background:#eeeaff;padding:5px 10px;color:#5b5099;font-size:12px}.acronym-group .meaning-option{display:inline-block!important;width:auto!important;margin:0!important;border-radius:99px;padding:7px 12px;font-size:12px;background:#f5f3ff}.acronym-group .meaning-option.selected{background:#e8edff;color:#244591;border-color:#7897e6;animation:check-pop .24s ease-out}.custom-meaning{display:flex;width:100%;gap:6px;margin-top:4px}.custom-meaning input{min-width:0;flex:1;background:var(--paper);color:var(--ink)}.custom-meaning .custom-add{width:auto!important;margin:0!important;border-radius:8px}.acronym-actions{display:flex;align-items:center;gap:15px;margin-top:14px}#choices .acronym-continue{width:auto;margin:0;background:#087cff;color:#fff;border-color:#087cff;padding:9px 22px;font-weight:600}#choices .acronym-skip{width:auto;margin:0;border:0;background:transparent;padding:5px;color:var(--muted)}.acronym-card .acronym-status{font-size:11px;margin:7px 0;color:var(--muted)}.acronym-card.leaving{opacity:0;transform:translateY(8px);transition:opacity .15s,transform .15s}html[data-theme=dark] .meaning-option,html[data-theme=dark] .acronym-chip{background:#363454;color:#d6d1fc}html[data-theme=dark] .meaning-option.selected{background:#46557b;color:#eef1ff}@media(max-width:750px){.acronym-card{padding:16px;margin:8px auto}.acronym-card h3{font-size:21px}#choices:has(.acronym-card){padding:0 12px;max-height:48vh}.acronym-group .meaning-option{font-size:11px;text-align:left}}
/* Editorial research workspace: quiet chrome, clear content hierarchy. */
:root{--paper:#fcfcff;--muted:#5d637e;--line:#cdd0e8;--font-scale:1}body{font-family:'Trebuchet MS',sans-serif;font-size:16px}button,input,textarea{font-family:inherit}body:not(.page)>aside{padding:24px 16px;background:#eeeeff;gap:16px}.brand{margin-bottom:16px;gap:8px}.brand img{width:56px;height:56px}.brand strong{font-size:32px}.brand span{font-size:13px}aside h2{font-size:13px;margin:8px 0 0}aside>#new{background:#353c75;color:#fcfcff;border-color:#353c75;font-weight:600}aside>#temporary{background:transparent}#history-search{padding:8px 16px;font-size:13px;min-height:40px}#archive{display:grid;gap:8px}.archive-row{border:0;position:relative;border-radius:12px;background:#fcfcff;padding:8px}.archive-row .chat-title{border:0;background:transparent;padding:8px;margin:0!important;font-size:13px!important;line-height:1.5}.archive-actions{justify-content:flex-end;gap:8px}.archive-actions button{font-size:13px!important;padding:8px!important;min-width:32px;min-height:32px;border:0;background:transparent;margin:0!important}.archive-actions button:hover{background:#e9e9fa}.archive-actions svg{width:16px;height:16px}.side-note{font-size:13px;margin:0;padding-top:16px}.sidebar-links{font-size:13px}header{padding:0 32px;background:#f8f8ff}header strong{font-size:16px}header span{font-size:13px}.header-actions button{min-height:40px}#thread{padding:32px clamp(24px,6vw,96px)}.welcome{margin:48px auto;max-width:760px}.welcome h1{font-size:clamp(40px,4.5vw,64px);font-weight:600;line-height:1.1}.welcome>p:not(.eyebrow){font-size:16px;line-height:1.6;max-width:600px}.welcome .examples{gap:16px;margin-top:32px}.examples button{background:#fcfcff;border-radius:12px;padding:16px;font-size:14px}.message{border:0;box-shadow:none;background:transparent;padding:0;max-width:800px;margin:0 auto 32px;white-space:normal}.message.user{background:#f4f3ff;color:#2a3153;border:1px solid #c6c9e1;border-radius:16px 16px 4px 16px;padding:16px 24px;max-width:85%;font-weight:400;box-shadow:0 2px 8px #36396b08}.message.assistant>.lane-card{background:var(--paper)}.lane-card>summary{padding:16px 24px;font-size:14px;letter-spacing:.01em}.answer-text{padding:8px 24px 24px;font-size:16px;line-height:1.7}.answer-text h3{font:600 25px/1.2 Georgia,serif!important;margin:24px 0 16px!important}.answer-text p{margin:16px 0;font-weight:400}.message>button{border:0;background:#f3f3ff;font-size:13px;padding:8px 16px;margin:8px 8px 0 0}.pending{background:#fcfcff;border:1px solid var(--line);border-radius:16px;padding:16px 24px;animation:none}.pending:before{content:'';display:inline-block;vertical-align:middle;width:8px;height:8px;border-radius:50%;background:#087cff;margin-right:8px;animation:stagePulse 1.2s infinite}.pending small{margin-top:8px;font-size:13px}.paused-state{background:#f5f4ff;border:1px solid var(--line);border-radius:16px;padding:24px}.paused-state>button{display:block;margin-top:16px;color:#2549a2;background:#e9edff}footer{background:#f8f8ff;padding:16px clamp(24px,5vw,80px);border-color:#cdd0e8}.sources{margin-bottom:8px;gap:8px}.sources label{font-size:13px;padding:8px 16px}#ask{border:1px solid #b2badd;border-radius:20px;padding:8px 16px;background:#fcfcff;box-shadow:0 4px 20px #3139620a}#question{min-height:56px;padding:8px;font-size:16px}#ask button{width:44px;height:44px}button svg{width:20px;height:20px;display:block;flex:none}#theme{display:grid;place-items:center}#mic.listening svg{animation:stagePulse 1s infinite}small{font-size:13px;margin:8px 0 0}.acronym-group .meaning-option{min-height:40px}.acronym-card button{min-height:40px}html[data-theme=dark] .message.user{background:#343653;color:#eeeefe;border-color:#525575}html[data-theme=dark] .archive-row,html[data-theme=dark] .pending{background:var(--paper)}html[data-theme=dark] .paused-state{background:#2c2b49}html[data-theme=dark] header,html[data-theme=dark] footer{background:#22233b}html[data-theme=dark] .side-note{color:#c0c4de}
@media(max-width:750px){body:not(.page)>aside{padding:8px 16px;gap:8px}.brand strong{font-size:20px}aside>#new,aside>#temporary{padding:8px;font-size:11px;min-height:40px}.brand{margin:0 auto 0 0}header{padding:0 16px}header span{font-size:11px}#thread{padding:24px 16px}.welcome{margin:24px auto}.welcome h1{font-size:40px}.message{margin-bottom:24px}.message.user{padding:16px;max-width:95%}.answer-text{font-size:14px;padding:8px 16px 16px}.lane-card>summary{padding:16px;font-size:13px}footer{padding:16px}footer small{font-size:10px}.sources label{font-size:11px;padding:8px}.sources{gap:8px}#ask{padding:8px}#question{font-size:14px}.message>button{min-height:40px;font-size:12px}}
@media print{body:not(.page),body:not(.page)>main{position:static;height:auto;display:block;background:#fff;color:#111}aside,header,footer,#choices,.message>button{display:none!important}#thread{overflow:visible;padding:24px}.lane-card{break-inside:avoid}.answer-text{display:block!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body:not(.page)>aside{width:240px;background:#eeeefe}body:not(.page)>main{left:240px;background:#f7f7fd}#thread{background:#f7f7fd}.brand{grid-template-columns:48px 1fr;align-items:center;gap:8px}.brand img{grid-row:1/3;width:48px;height:48px}.brand strong{font-size:25px}.brand span{font-size:11px}.welcome{margin:48px auto}.archive-menu>summary{list-style:none;cursor:pointer;text-align:right;padding:8px;font-size:16px;color:var(--muted)}.archive-menu>summary::-webkit-details-marker{display:none}.archive-menu .archive-actions{justify-content:flex-end}.archive-menu .archive-actions button{min-width:40px;min-height:40px}.archive-row .chat-title{padding-right:8px}.archive-menu[open]{background:#f2f2fd;border-radius:8px}.header-actions{gap:8px}header>div>span{display:inline-block;width:fit-content;font-size:11px;color:#635990}footer small{font-size:10px;text-align:center}#ask,.sources{max-width:900px;margin-left:auto;margin-right:auto}.message{max-width:900px}.brand span{color:#626b88}html[data-theme=dark] body:not(.page)>aside{background:#20213d}html[data-theme=dark] body:not(.page)>main,html[data-theme=dark] #thread{background:#1a1b35}html[data-theme=dark] .brand span{color:#b7bddb}html[data-theme=dark] #mic{background:#35395b!important;color:#dce1ff!important}html[data-theme=dark] .archive-menu[open]{background:#313450}
@media(max-width:750px){body:not(.page)>aside{width:100%;background:#eeeefe}body:not(.page)>main{left:0}.brand{display:block}.brand strong{font-size:20px}.welcome{margin:24px auto}}
/* One motion language. No repeating decorative animation. */
:root{--ease:cubic-bezier(.2,.8,.2,1)}button,a,input,textarea,summary,.archive-row,.sources label{transition:background 150ms var(--ease),color 150ms var(--ease),border-color 150ms var(--ease),box-shadow 180ms var(--ease),transform 150ms var(--ease),opacity 180ms var(--ease)}button:hover{transform:translateY(-1px)}button:active{transform:scale(.98)}.message{animation:arrive 300ms var(--ease)}dialog[open],.acronym-card{animation:modal-in 220ms var(--ease)}.archive-menu[open] .archive-actions{animation:arrive 180ms var(--ease)}.lane-card[open]>.answer-text{animation:arrive 200ms var(--ease)}.pending:before,.pending,#mic.listening,.loading-line:after{animation:none!important}.sources input{appearance:none;width:16px;height:16px;border:1px solid #a9acc9;border-radius:5px;background:transparent;display:grid;place-items:center}.sources input:checked{background:#6a60af;border-color:#6a60af}.sources input:checked:after{content:'';width:8px;height:4px;border:solid #fff;border-width:0 0 1.7px 1.7px;transform:rotate(-45deg) translateY(-1px)}.sources input.check-pop{animation:arrive 160ms var(--ease)}.header-actions button{height:44px;min-height:44px;padding:8px 16px;border-radius:12px;line-height:1}.header-actions #theme{width:44px;padding:0}.header-actions svg{width:20px;height:20px}.brand{grid-template-columns:40px minmax(0,1fr);gap:8px}.brand img{width:40px;height:40px}.brand strong{font-size:22px;line-height:1.2;overflow-wrap:anywhere}.brand span{font-size:11px}.research-journey{display:flex;gap:16px;margin:16px 0}.research-journey span{padding:8px 16px;border-radius:99px;background:#f1f0f8;font-size:13px;color:#676d83;border:1px solid #d8daeb}.research-journey span.active{background:#e8e5ff;color:#494080;border-color:#a69dcc;transition:background 180ms var(--ease)}.pending strong{font-weight:600}.welcome{animation:arrive 300ms var(--ease)}.examples button:hover{box-shadow:0 3px 12px #44466e12}.archive-row:hover{background:#f6f5ff}.archive-row.active{box-shadow:inset 3px 0 #766ab8}html[data-theme=dark] .research-journey span{background:#2f314a;color:#bbc1df}html[data-theme=dark] .research-journey span.active{background:#484565;color:#f2efff}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body:not(.page)>aside{padding:24px 16px}.welcome{display:flex;min-height:75%;flex-direction:column;justify-content:center;max-width:700px;margin:0 auto;padding:48px 0}.welcome h1{font-size:40px;margin:8px 0 16px;letter-spacing:-.02em}.welcome .examples{display:flex;flex-wrap:wrap;margin-top:24px;gap:8px}.welcome .examples button{padding:8px 16px}.welcome .attribution{margin-top:24px;font-size:11px!important}.archive-row{display:grid;grid-template-columns:24px minmax(0,1fr) 32px 24px;align-items:center;padding:0;background:transparent;border-radius:8px;gap:0}.archive-row>.chat-title{font-size:13px!important;margin:0!important;padding:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.archive-row>button:not(.chat-title){padding:0;width:24px!important;min-height:40px;border:0;background:transparent;margin:0!important}.archive-row>button svg{width:16px;height:16px}.archive-menu>summary{padding:8px 0;font-size:12px}.archive-menu[open] .archive-actions{position:absolute;right:0;top:40px;z-index:4;background:var(--paper);border:1px solid var(--line);padding:8px;border-radius:10px;box-shadow:0 6px 20px #292e5918}.pair-previews{grid-column:1/-1}.side-note{margin-top:auto}.sources{justify-content:flex-start}.sources label{font-size:12px;padding:8px 16px;border:0;background:transparent}.sources label:has(input:checked){background:#efedf9;border:0}footer{padding:16px 24px;background:#fcfcff}#ask{border-radius:18px;box-shadow:0 3px 18px #4246740b;border-color:#d1d2e1;background:#fcfcff;min-height:64px}#ask #attach{background:#eeedf7;color:#5f568b;border-radius:10px;width:36px;height:36px;font-size:25px}#ask #mic{width:36px;height:36px;background:transparent!important}#question{min-height:40px;font-size:15px}#ask button[aria-label="Send question"]{width:40px;height:40px;border-radius:12px}.composer-meta{max-width:900px;margin:8px auto 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.composer-meta #paper{font-size:11px;padding:4px 12px;border-radius:99px;min-height:24px}.composer-meta small{margin:0;font-size:10px}.sources input{cursor:pointer}.brand strong{font-size:21px}.welcome .eyebrow{display:none}html[data-theme=dark] footer{background:#22233b}html[data-theme=dark] .archive-row{background:transparent}html[data-theme=dark] .archive-row:hover{background:#2d304c}html[data-theme=dark] .sources label:has(input:checked){background:#383651}
@media(max-width:750px){.welcome{padding:24px 0;min-height:65%}.welcome h1{font-size:32px}.welcome .examples{display:grid}.composer-meta{gap:8px}.composer-meta small{max-width:170px;text-align:right;font-size:9px}footer{padding:12px}.sources label{padding:8px;font-size:10px}.brand strong{font-size:18px}#ask{padding:8px}#ask #attach,#ask #mic{width:32px;height:32px}#ask button[aria-label="Send question"]{width:36px;height:36px}#question{font-size:13px}}
/* Shared typography, controls and alignment across every screen. */
:root{--text-xs:12px;--text-sm:14px;--text-md:16px;--text-lg:24px;--text-xl:32px;--control:40px;--radius:10px}body,button,input,textarea{font-family:'Trebuchet MS',sans-serif}h1,h2,h3,.brand strong{font-family:'Trebuchet MS',sans-serif!important}h1{font-size:32px!important;line-height:1.2;font-weight:700!important}h2{font-size:24px!important;line-height:1.3;font-weight:600!important}h3{font-size:20px!important;line-height:1.3;font-weight:600!important}body{font-size:14px;line-height:1.6}button,input,textarea{font-size:14px;line-height:1.4}button{border-radius:10px;min-height:40px}input:not([type=checkbox]),.custom-meaning input{height:40px;font-size:14px;padding:8px 12px;border-radius:10px}.header-actions button{height:40px;min-height:40px}.header-actions #theme{width:40px}.brand strong{font-size:20px!important;letter-spacing:-.02em}.brand span{font-size:11px}.acronym-card{padding:24px;max-width:620px;border-radius:16px}.acronym-card h3{font-size:20px!important;margin:8px 0}.acronym-card>span{font-size:11px;line-height:1.4}.acronym-card>p,.acronym-card .acronym-status{font-size:13px}.acronym-group{align-items:center;gap:8px;margin:16px 0}.acronym-chip,.acronym-group .meaning-option{display:inline-flex!important;align-items:center;min-height:40px;height:auto;line-height:1.4;margin:0!important;padding:8px 12px!important;font-size:13px!important;vertical-align:middle}.custom-meaning{gap:8px;margin-top:8px;align-items:center}.custom-meaning input{margin:0;height:40px}.custom-meaning .custom-add{height:40px;margin:0!important;padding:8px 16px}.acronym-actions{gap:16px;margin-top:16px;align-items:center}.acronym-actions button{height:40px;font-size:13px!important}.answer-text{font-size:14px;line-height:1.7}.answer-text h3{font:600 20px/1.4 'Trebuchet MS',sans-serif!important}.page-content h1{font-size:32px!important}.feature-card h2{font-size:24px!important}.site-brand{font-family:'Trebuchet MS',sans-serif!important}.welcome h1{font-size:32px!important}.welcome>p:not(.eyebrow){font-size:14px}.welcome .examples button{font-size:13px;padding:8px 12px}.composer-meta #paper{min-height:24px}.archive-row>button:not(.chat-title){min-height:40px}#question{height:auto;font-size:14px}.auth-actions button{height:40px;font-size:14px}#otp-boxes .otp-digit{height:48px!important;font-size:24px}.logout-actions button{height:40px}footer{padding:16px 24px}footer small{font-size:11px}.sources label{min-height:32px;font-size:12px;align-items:center}#choices:has(.acronym-card){max-height:min(52vh,430px)}
@media(max-width:750px){.brand strong{font-size:17px!important}body:not(.page)>aside{gap:8px;padding:8px}.welcome h1{font-size:28px!important}.welcome{padding:24px 8px}.acronym-card{padding:16px}.acronym-card h3{font-size:20px!important}.acronym-group .meaning-option{font-size:12px!important}.composer-meta small{font-size:9px}footer{padding:12px}.sources label{font-size:10px}.header-actions button{height:40px;padding:8px 12px}.header-actions #theme{width:40px}}
.answer-tabs{display:flex;gap:8px;padding:8px;border-bottom:1px solid var(--line);background:var(--paper);border-radius:16px 16px 0 0}.answer-tabs button{border:0;background:transparent;padding:8px 16px;font-size:13px}.answer-tabs button[aria-selected=true]{background:#e9e6fa;color:#51468e}.lane-panel{background:var(--paper);border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;animation:arrive 180ms var(--ease)}.source-panel{border-top:1px solid var(--line);padding:16px 24px}.source-panel>summary{font-size:13px;cursor:pointer;font-weight:600}.source-panel>p{font-size:12px;color:var(--muted)}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.source-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8f8fd;min-width:0}.source-card h4{font-size:14px;line-height:1.5;margin:8px 0;font-weight:600}.source-card p{font-size:12px;margin:8px 0}.source-card small{font-size:11px}.source-card a{font-size:12px;margin:8px 0;text-decoration:none}.source-card details{font-size:12px;margin-top:16px}.article-analysis p{font-size:13px;line-height:1.6;white-space:pre-wrap}.citation-chip{display:inline!important;min-height:0;padding:0 4px;margin:0 2px;font-size:12px;border-radius:4px;background:#eeebfb;color:#5a4c94;border:0;vertical-align:baseline}.citation-chip:hover{background:#e1daf7}.source-highlight{animation:highlight 700ms var(--ease)}@keyframes highlight{from{box-shadow:0 0 0 3px #9e90d7}to{box-shadow:none}}.answer-actions{display:flex;gap:8px;margin-top:16px}.answer-actions button{padding:8px 12px;min-height:36px;font-size:12px;border:0;background:#efedf9}#archive{flex:1;min-height:0;overflow:auto;padding-bottom:16px}.side-note{flex-shrink:0}#voice-status:not(:empty){max-width:900px;margin:8px auto;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#f4f2ff;font-size:12px}.source-card .article-analysis{overflow-wrap:anywhere}html[data-theme=dark] .source-card{background:#2d304a}html[data-theme=dark] .answer-tabs button[aria-selected=true]{background:#46405f;color:#e6ddff}html[data-theme=dark] .answer-actions button{background:#35324b}html[data-theme=dark] #voice-status:not(:empty){background:#35324b}
@media(max-width:750px){.answer-tabs{gap:0}.answer-tabs button{padding:8px;font-size:11px}.source-grid{grid-template-columns:1fr}.source-panel{padding:16px}.answer-actions{gap:8px;flex-wrap:wrap}}

/* Shared interface scale, restrained lavender accent. */
html,body,button,input,textarea,select{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif!important}
aside h2{font-size:12px!important;line-height:16px;letter-spacing:.08em;margin:24px 0 12px}
.research-settings{display:flex;gap:16px;align-items:center;font-size:12px;margin-bottom:8px;flex-wrap:wrap}.research-settings label{display:flex;align-items:center;gap:8px}.research-settings select,.research-settings button{font-size:12px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:inherit}
#profile-dialog{width:min(480px,calc(100% - 32px));max-height:90dvh;overflow:auto}#profile-dialog label{display:block;margin:16px 0;font-size:14px}#profile-dialog input,#profile-dialog textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:inherit}#profile-dialog textarea{min-height:100px}.claim-notes{font-size:12px;border-top:1px solid var(--border);margin-top:16px;padding:12px 0}.claim-notes p{font-size:12px;color:var(--muted)}
.comparison{overflow:auto;margin:16px 0}.comparison table{border-collapse:collapse;width:100%;font-size:14px}.comparison th,.comparison td{padding:12px;text-align:left;border-bottom:1px solid var(--border)}.comparison th{background:var(--panel)}.comparison button{margin-bottom:16px}.chart-row{position:relative;padding:12px 0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.chart-bar{height:8px;background:#a3a0d6;border-radius:4px;flex-basis:auto}.chart-row span{flex:1}.chart-row .chart-bar{display:block;min-width:4px}.header-actions{gap:8px}
@media(max-width:640px){.research-settings{gap:8px}.research-settings select{max-width:130px}#profile-button{font-size:12px;padding:8px!important}.composer-meta small{font-size:10px}}
@media print{aside,header,footer,#choices,.answer-actions,.answer-tabs{display:none!important}main,#thread{position:static!important;height:auto!important;overflow:visible!important}.lane-panel{display:block!important}.message{break-inside:avoid}}

:root{--panel:#fff;--border:#dedee9;--muted:#686879}html[data-theme="dark"]{--panel:#232431;--border:#393b4f;--muted:#a7a8bb}
body:not(.page){background:#fff}aside{background:#f7f7fc!important}.welcome{opacity:1!important}.welcome h1{color:#272942}.welcome>p{color:#646579}html[data-theme="dark"] body:not(.page){background:#181923}html[data-theme="dark"] aside{background:#20212d!important}html[data-theme="dark"] .welcome h1{color:#f4f3ff}html[data-theme="dark"] .welcome>p{color:#b6b5c8}
.research-settings{max-width:900px;margin:0 auto 8px}.research-settings select{background:var(--panel)}#question{max-height:120px}button[aria-label="Send question"]{background:#514b82!important;color:white!important}.header-actions>button{height:40px;min-width:40px;padding:0 16px}#profile-button{width:80px}.chart-row{display:grid;grid-template-columns:1fr auto}.chart-bar{grid-column:1/-1;max-width:100%}

#archive{display:block!important;align-content:start}.archive-row{min-height:40px;height:auto}.pair-previews[hidden]{display:none!important}.archive-menu .archive-actions>button{width:auto!important}.citation-chip{position:relative}.citation-chip:hover::after,.citation-chip:focus-visible::after{content:attr(data-preview);position:absolute;left:0;bottom:calc(100% + 8px);width:260px;z-index:30;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0002;text-align:left;font-size:12px;font-weight:400;white-space:normal;color:inherit}
@media(max-width:750px){body:not(.page)>aside #archive{display:none!important}.welcome{min-height:100%;justify-content:center}#voice-status{max-height:66px;overflow:auto}header{padding:8px 12px!important}.header-actions>button{padding:0 12px}#profile-button{width:auto}}

#history-toggle{display:none}@media(max-width:750px){#history-toggle{display:block;font-size:12px;padding:0 8px}.history-open aside{position:fixed!important;top:120px!important;bottom:0!important;left:0!important;width:min(320px,85vw)!important;height:auto!important;z-index:40!important;display:block!important;padding:16px!important;box-shadow:16px 0 32px #0003;overflow:auto!important}.history-open aside .brand,.history-open aside #new,.history-open aside #temporary{display:none!important}.history-open aside #archive,.history-open aside h2,.history-open aside #history-search,.history-open aside .sidebar-links{display:block!important}.history-open aside .side-note{display:none!important}.header-actions{gap:4px}header>div:first-child strong{font-size:14px}header>div:first-child span{font-size:10px}.header-actions>button{padding:0 8px!important}#profile-button{font-size:12px}}

html[data-theme="dark"]{--ink:#eeeef8;--muted:#b3b3c9;--paper:#222333;--cream:#181923;--line:#434458;--panel:#222333;--border:#434458}
html[data-theme="dark"] body,html[data-theme="dark"] header,html[data-theme="dark"] footer,html[data-theme="dark"] aside h2,html[data-theme="dark"] button,html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{color:#eeeef8!important}
html[data-theme="dark"] button,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .sources label,html[data-theme="dark"] .source-card,html[data-theme="dark"] dialog{background:#292a3b!important;border-color:#434458!important;color:#eeeef8!important}
html[data-theme="dark"] #ask{background:#222333!important;border-color:#434458!important}html[data-theme="dark"] header,html[data-theme="dark"] footer{background:#20212e!important}html[data-theme="dark"] .answer-text,html[data-theme="dark"] .lane-panel{background:#20212e!important;color:#eeeef8!important}html[data-theme="dark"] .brand strong,html[data-theme="dark"] .brand span,html[data-theme="dark"] header strong,html[data-theme="dark"] .side-note,html[data-theme="dark"] .attribution,html[data-theme="dark"] a{color:#d0ccff!important}html[data-theme="dark"] .answer-tabs{background:#222333!important}html[data-theme="dark"] .answer-tabs button[aria-selected="true"]{background:#494369!important}html[data-theme="dark"] #question::placeholder{color:#b3b3c9}html[data-theme="dark"] #new,html[data-theme="dark"] button[aria-label="Send question"]{background:#625a9b!important}

@media(max-width:750px){body.history-open:not(.page)>aside #archive{display:block!important}body.history-open:not(.page)>aside #history-search,body.history-open:not(.page)>aside h2,body.history-open:not(.page)>aside .sidebar-links{display:block!important}}
#mic.listening svg{animation:none!important}

/* Keep action labels readable across public pages and auth states. */
.page-cta,.contact-box a.page-cta{background:#514b82;color:#fff!important;min-height:44px}.page-cta:hover{background:#413b70}#send-code,#verify{background:#514b82!important;color:#fff!important}#send-code:disabled,#verify:disabled{opacity:.5;cursor:not-allowed}.auth-actions #resend,.auth-actions #change-email{background:transparent}
.archive-row .pair-previews p{line-height:1.55}.research-settings input[type="checkbox"]{accent-color:#766ab8}#question:focus{outline:0!important;box-shadow:none!important}#ask:focus-within{border-color:#9b91c6!important;box-shadow:0 0 0 3px #e5e5ff!important}

.archive-status{font-size:12px;line-height:1.5;color:var(--muted);padding:8px}

/* Review round one: calmer empty state and compact single mobile header. */
.welcome{padding-top:24px!important;padding-bottom:24px!important}.composer-meta small{font-size:11px!important;line-height:1.5}.archive-row .chat-title{white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip!important;line-height:1.45!important;max-height:4.4em;overflow:hidden}button:disabled,select:disabled{opacity:.55;cursor:not-allowed}#stop-research{margin:8px auto;display:block;background:#fff4ed;color:#7a452b;border:1px solid #e9c6b2;border-radius:9px;padding:8px 14px}#stop-research[hidden]{display:none}#voice-status:empty{display:none}
@media(max-width:750px){body:not(.page)>aside{display:none!important}body:not(.page)>main{top:0!important}body.history-open:not(.page)>aside{display:flex!important;top:58px!important;bottom:0!important;height:auto!important;z-index:30;width:min(320px,90vw)!important}.brand{display:none!important}header{height:58px!important;min-height:58px!important;padding:8px 12px!important}header>div:first-child strong{font-size:14px}header>div:first-child #mode{font-size:10px}.header-actions{gap:4px!important}.header-actions button{padding:7px 8px!important;font-size:11px!important}footer{padding:10px 12px!important}.research-settings{gap:8px!important;flex-wrap:nowrap!important;font-size:11px!important}.research-settings label{gap:5px!important}.research-settings select{width:74px!important;padding:6px 4px!important;font-size:12px!important}.research-settings #pdf-chat{font-size:10px;padding:6px}.sources{margin:7px 0!important;gap:4px!important}.sources label{padding:6px 8px!important;font-size:11px!important}#ask{padding:6px!important;min-height:58px!important}#question{min-height:40px!important;font-size:13px!important}.composer-meta{margin-top:5px!important}.composer-meta small{font-size:10px!important}.welcome{padding:18px 0!important}.welcome h1{font-size:25px!important}.welcome .examples{gap:8px!important}.welcome .examples button{padding:10px!important}.attribution{font-size:11px!important}.history-open .brand{display:none!important}}

.source-relevance-warning{padding:10px;background:#fff1d9;color:#6e4b13!important;border-radius:8px;font-size:12px!important}html[data-theme=dark] .source-relevance-warning{background:#423323;color:#ffe1a1!important}

.archive-row .chat-title{max-height:none!important;height:auto!important;overflow:visible!important;align-self:center}.archive-row{align-items:start!important}

/* WirelessChat review redesign: one composer, quiet answers, settings on demand. */
:root{--ui-canvas:#fafafd;--ui-surface:#fff;--ui-text:#252737;--ui-muted:#777887;--ui-line:#e7e7ef;--ui-accent:#62588f}html[data-theme=dark]{--ui-canvas:#181922;--ui-surface:#20212c;--ui-text:#eeeef5;--ui-muted:#a6a5b8;--ui-line:#323340;--ui-accent:#b7ade8}
body:not(.page)>main,html[data-theme=dark] body:not(.page)>main,#thread,html[data-theme=dark] #thread,body.temporary-mode #thread,html[data-theme=dark] body.temporary-mode #thread{background:var(--ui-canvas)!important;color:var(--ui-text)}
header,html[data-theme=dark] header,body.temporary-mode header{background:var(--ui-canvas)!important;border-bottom:1px solid var(--ui-line)!important;height:64px!important;min-height:64px!important;padding:12px 28px!important}header strong{font-size:15px!important}header #mode{font-size:11px!important;color:var(--ui-muted)!important}.header-actions button{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:9px!important;white-space:nowrap}.header-actions button:hover{background:var(--ui-line)!important}
#thread{padding:28px 32px!important}.message.user{max-width:760px!important;background:#efedf7!important;border:0!important;border-radius:16px 16px 4px 16px!important;padding:14px 18px!important;color:var(--ui-text)!important;font-size:14px!important;line-height:1.6!important}.message.user,html[data-theme=dark] .message.user{margin-bottom:32px!important}html[data-theme=dark] .message.user{background:#2b293b!important}
.research-answer,html[data-theme=dark] .research-answer{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;max-width:800px!important;padding:0!important}.answer-tabs{gap:22px!important;background:transparent!important;border-bottom:1px solid var(--ui-line)!important;padding:0!important;border-radius:0!important;margin-bottom:24px}.answer-tabs button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0!important;font-size:12px!important;color:var(--ui-muted)!important;min-height:42px}.answer-tabs button[aria-selected=true]{border-bottom-color:var(--ui-accent)!important;color:var(--ui-text)!important;font-weight:600!important}.lane-panel{padding:0!important;background:transparent!important;border:0!important}.answer-text{padding:0!important;font-size:15px!important;line-height:1.75!important;color:var(--ui-text)!important}.answer-text h2,.answer-text h3{font-size:20px!important;line-height:1.4!important;margin:28px 0 12px!important}.claim-notes,.source-panel{background:transparent!important;border:0!important;border-top:1px solid var(--ui-line)!important;border-radius:0!important;padding:0!important;margin-top:24px!important}.claim-notes summary,.source-panel>summary{padding:14px 0!important;font-size:12px!important;font-weight:500!important;color:var(--ui-muted)!important}.source-panel>p,.claim-notes>p{font-size:12px!important;color:var(--ui-muted)!important}.source-grid{padding-top:8px}.source-card{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;padding:18px!important;box-shadow:none!important}.answer-actions{margin-top:14px!important;gap:6px!important}.answer-actions button{font-size:11px!important;background:transparent!important;color:var(--ui-muted)!important;border:0!important;padding:7px 10px!important;border-radius:7px!important}.answer-actions button:hover{background:var(--ui-line)!important}
footer{border:0!important;background:var(--ui-canvas)!important;padding:8px 32px 14px!important}.composer-surface{max-width:800px;margin:auto;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:20px;box-shadow:0 3px 16px rgba(30,25,65,.035)}#ask,html[data-theme=dark] #ask{display:block!important;padding:14px 16px 10px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:20px!important;min-height:0!important}#ask:focus-within{border-color:transparent!important;box-shadow:none!important}.composer-surface:focus-within{border-color:#b6aed2;box-shadow:0 0 0 3px rgba(229,229,255,.42)}#question{display:block!important;padding:0 2px!important;min-height:48px!important;max-height:132px!important;height:48px!important;font-size:14px!important;line-height:1.6!important;color:var(--ui-text)!important;background:transparent!important;outline:0!important;box-shadow:none!important}#question::placeholder{color:var(--ui-muted)}.composer-tools,.composer-left,.composer-right{display:flex;align-items:center;gap:8px}.composer-tools{justify-content:space-between;margin-top:6px}.composer-tools button{height:34px!important;min-height:34px!important;width:34px!important;padding:7px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--ui-muted)!important;font-size:20px!important;box-shadow:none!important}.composer-tools button svg{width:19px!important;height:19px!important}.composer-tools button:hover{background:var(--ui-line)!important}#research-settings-button{display:flex!important;align-items:center;gap:7px!important;width:auto!important;font-size:12px!important;padding:7px 9px!important;font-weight:500!important}#research-summary{color:var(--ui-muted);font-weight:400;font-size:11px}.composer-tools button[aria-label="Send question"]{background:#62588f!important;color:#fff!important;border-radius:11px!important}#stop-research{display:block;margin:0!important;width:auto!important;font-size:12px!important;background:#fff2ea!important;color:#8b4b2d!important;padding:7px 10px!important}#stop-research[hidden]{display:none!important}#voice-status{padding:0 16px 10px!important;background:transparent!important;border:0!important;margin:0!important;color:var(--ui-muted)!important;font-size:11px!important}.composer-meta{justify-content:center!important;max-width:800px!important;margin:8px auto 0!important}.composer-meta small{font-size:11px!important;color:var(--ui-muted)!important;line-height:1.5}.side-note{font-size:11px!important;color:var(--ui-muted)!important}.welcome{max-width:700px!important}.welcome h1{font-size:32px!important;letter-spacing:-.7px}.welcome>p{font-size:14px!important}.welcome .examples button{background:var(--ui-surface)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}.welcome .attribution{font-size:11px!important;margin-top:24px!important}
#research-settings-dialog{width:min(440px,calc(100vw - 32px));padding:24px;border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 16px 70px #1112}.settings-heading{display:flex;justify-content:space-between;align-items:start}.settings-heading .eyebrow{font-size:10px;padding:0;background:none;margin:0 0 8px;color:var(--ui-muted)}.settings-heading h2{font-size:21px;margin:0}.settings-heading button{background:transparent;border:0;font-size:22px;color:var(--ui-muted);padding:0 8px}.settings-note,.settings-description{font-size:12px;line-height:1.6;color:var(--ui-muted)}#research-settings-dialog .research-settings{display:block!important;margin:20px 0 0!important;max-width:none!important}#research-settings-dialog .research-settings>label:first-child{display:flex;justify-content:space-between;align-items:center;font-size:13px}#research-settings-dialog select{width:130px!important;height:36px;padding:7px 12px!important;background:var(--ui-canvas);border:1px solid var(--ui-line);border-radius:9px;color:var(--ui-text);font-size:13px!important}.settings-section-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ui-muted);margin:22px 0 8px}#research-settings-dialog .sources{display:grid!important;gap:0!important;margin:0!important}#research-settings-dialog .sources label{display:grid!important;grid-template-columns:18px 1fr;column-gap:10px;border:0!important;border-radius:0!important;background:transparent!important;padding:11px 0!important;font-size:13px!important;color:var(--ui-text)!important;border-bottom:1px solid var(--ui-line)!important}#research-settings-dialog .sources small{grid-column:2;font-size:11px;color:var(--ui-muted)}#research-settings-dialog .sources input{grid-row:1/3;align-self:center;accent-color:#766ab8}.context-setting{display:flex!important;align-items:center;gap:10px;padding:18px 0;font-size:13px!important}.settings-actions{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--ui-line);padding-top:16px}.settings-actions button{height:38px;font-size:12px;text-align:left;padding:8px 12px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-canvas);color:var(--ui-text)}
@media(max-width:750px){header{padding:8px 14px!important;height:58px!important;min-height:58px!important}header #mode{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px!important}header>div:first-child strong{font-size:14px!important}.header-actions{gap:2px!important}.header-actions button{width:32px!important;min-width:32px!important;height:34px!important;font-size:11px!important;padding:7px!important}.header-actions #login{width:auto!important;padding:7px 8px!important;min-width:54px!important}#profile-button{display:none!important}#thread{padding:24px 18px!important}footer{padding:8px 12px 12px!important}.composer-surface{border-radius:17px}#ask{padding:12px 12px 8px!important}#question{font-size:13px!important;min-height:44px!important;height:44px!important}.composer-tools{gap:4px}.composer-left,.composer-right{gap:4px}#research-settings-button{font-size:11px!important;gap:5px!important;padding:7px 3px!important}#research-summary{font-size:10px}.composer-meta small{font-size:10px!important}.welcome h1{font-size:25px!important}.answer-text{font-size:14px!important;line-height:1.7!important}.answer-tabs{gap:18px!important;margin-bottom:20px}.answer-tabs button{font-size:11px!important}.answer-text h2,.answer-text h3{font-size:18px!important}.message.user{font-size:13px!important;padding:12px 14px!important}.claim-notes summary,.source-panel>summary{font-size:11px!important}.source-card{padding:14px!important}.settings-heading h2{font-size:20px}#research-settings-dialog .research-settings{display:block!important}}
html[data-theme=dark] .research-answer,html[data-theme=dark] .research-answer .answer-tabs,html[data-theme=dark] .research-answer .lane-panel,html[data-theme=dark] .research-answer .answer-text,html[data-theme=dark] .research-answer .claim-notes,html[data-theme=dark] .research-answer .source-panel{background:transparent!important;border-radius:0!important}html[data-theme=dark] .answer-tabs button,html[data-theme=dark] .answer-actions button,html[data-theme=dark] .header-actions button,html[data-theme=dark] .composer-tools button:not([aria-label="Send question"]):not(#stop-research){background:transparent!important}#history-search,html[data-theme=dark] #history-search{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
#research-settings-dialog,#research-settings-dialog *{text-align:left}#research-settings-dialog .settings-heading{display:flex!important}#research-settings-dialog .settings-heading .eyebrow{margin-bottom:8px!important}#research-settings-dialog .sources{width:100%!important;grid-template-columns:1fr!important}#research-settings-dialog .sources label{width:100%!important;min-width:0!important;max-width:none!important;justify-content:start!important}#research-settings-dialog .sources input{width:16px!important;height:16px!important;margin:0!important;padding:0!important;appearance:auto!important}#research-settings-dialog .sources label small{margin-top:4px}#research-settings-dialog .context-setting{justify-content:start!important;gap:10px!important;flex-direction:row!important}#research-settings-dialog .context-setting input{width:16px!important;height:16px!important;margin:0!important}#research-settings-dialog p{margin:12px 0!important}#research-settings-dialog .settings-description{font-size:12px!important}#research-settings-dialog h2{color:var(--ui-text)!important}#research-settings-dialog button,#research-settings-dialog select{box-shadow:none!important}

html[data-theme=dark] .research-answer .answer-tabs button{background:transparent!important;border-bottom-color:transparent!important;color:var(--ui-muted)!important}html[data-theme=dark] .research-answer .answer-tabs button[aria-selected=true]{background:transparent!important;border-bottom-color:var(--ui-accent)!important;color:var(--ui-text)!important}html[data-theme=dark] footer{background:var(--ui-canvas)!important}html[data-theme=dark] .composer-surface{background:var(--ui-surface)!important}#research-settings-dialog{max-height:calc(100dvh - 32px);overflow:auto}#question{resize:none!important}.message.user{white-space:pre-wrap}

.welcome{max-width:720px!important;margin:6vh auto 32px!important;padding:30px 20px!important}.welcome h1{font-size:clamp(28px,3vw,40px)!important;letter-spacing:-1.3px;line-height:1.2!important;margin:18px 0!important}.welcome>p:not(.eyebrow):not(.attribution){font-size:16px!important;line-height:1.7!important}.welcome .eyebrow{font-size:11px!important;letter-spacing:2px!important;margin-top:24px!important}.examples{display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:center!important;margin:28px 0!important}.examples button{padding:14px 16px!important;border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;border-radius:12px!important;font-size:13px!important;min-height:48px;flex:1 1 165px!important;text-align:left!important}.attribution{font-size:12px!important;line-height:1.7!important}.signal-mark{width:80px;height:70px;position:relative;margin:auto;color:var(--ui-accent)}.signal-mark span{border:2px solid currentColor;border-bottom:0;border-left-color:transparent;border-right-color:transparent;border-radius:100% 100% 0 0;position:absolute;left:50%;transform:translateX(-50%);bottom:12px}.signal-mark span:nth-child(1){width:76px;height:54px;opacity:.28}.signal-mark span:nth-child(2){width:52px;height:37px;opacity:.55}.signal-mark span:nth-child(3){width:28px;height:20px}.signal-mark i{position:absolute;width:8px;height:8px;background:currentColor;border-radius:50%;bottom:10px;left:36px}.side-note,footer .privacy{font-size:12px!important;line-height:1.55!important}.archive-row .title,.archive-title,.chat-title{white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important}.archive-item .title{white-space:normal!important}
@media(max-width:650px){.welcome{margin:2vh auto 16px!important;padding:18px 8px!important}.welcome h1{font-size:30px!important}.welcome>p:not(.eyebrow):not(.attribution){font-size:14px!important}.signal-mark{transform:scale(.8);height:60px}.examples{margin:22px 0!important;gap:8px!important}.examples button{flex:1 1 100%!important;padding:12px 14px!important;min-height:42px}.attribution{font-size:11px!important}footer .privacy{font-size:11px!important;margin-top:7px!important}}

#quick-depth{font-size:11px!important;min-width:48px!important;padding:0 8px!important;border:1px solid var(--ui-line)!important;border-radius:7px!important;color:var(--ui-text)!important;height:30px!important;background:var(--ui-surface)!important}html[data-theme=dark] #quick-depth{background:var(--ui-surface)!important}.stopped-state{border-left:3px solid var(--ui-accent);padding-left:14px!important}.stopped-state strong{font-size:16px}.stopped-state p{color:var(--ui-muted);line-height:1.6}@media(max-width:400px){header{padding:9px 12px!important}.header-actions{gap:3px!important}.header-actions button{padding:4px 6px!important;font-size:10px!important}header>div:first-child strong{font-size:13px!important}#research-settings-button{padding:0 4px!important;gap:5px!important;font-size:10px!important}#research-summary{font-size:10px!important}#quick-depth{min-width:43px!important;padding:0 5px!important}.composer-tools{gap:5px!important}.composer-right{gap:5px!important}}
@media(max-width:750px){body.history-open:not(.page)>aside{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;top:58px!important;bottom:0!important;left:0!important;width:min(320px,90vw)!important;box-sizing:border-box!important;height:calc(100dvh - 58px)!important;padding:18px 16px!important;overflow-y:auto!important;overflow-x:hidden!important}body.history-open:not(.page)>aside>#new,body.history-open:not(.page)>aside>#temporary{display:block!important;flex:0 0 auto!important;width:100%!important;height:42px!important;min-height:42px!important;margin:0!important;font-size:13px!important}body.history-open:not(.page)>aside .sidebar-links{flex:0 0 auto!important;width:100%!important;white-space:normal!important;line-height:1.6!important}body.history-open:not(.page)>aside h2{flex:0 0 auto!important;align-self:stretch!important;width:100%!important;margin:10px 0 0!important}body.history-open:not(.page)>aside #history-search{display:block!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important}body.history-open:not(.page)>aside #archive{display:block!important;flex:1 0 auto!important;width:100%!important;min-width:0!important;overflow:visible!important}body.history-open:not(.page)>aside .archive-row{display:grid!important;grid-template-columns:24px minmax(0,1fr) 32px 24px!important;width:100%!important;min-width:0!important;margin:0 0 8px!important}body.history-open:not(.page)>aside .chat-title{width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}body.history-open:not(.page)>aside .brand,body.history-open:not(.page)>aside .side-note{display:none!important}}

.archive-row{grid-template-columns:18px minmax(0,1fr) 26px!important;position:relative;padding:0 0 26px!important;margin:0 0 10px!important}.archive-row>.chat-title{grid-column:2/4!important;padding:8px 2px!important;border-radius:6px!important;width:100%!important}.archive-row>button:first-child{grid-column:1!important;width:18px!important;font-size:11px!important}.archive-row>button[aria-label^="Rename"]{position:absolute!important;bottom:0;right:32px;width:26px!important;min-height:26px!important;height:26px!important}.archive-row>.archive-menu{position:absolute!important;bottom:0;right:0;width:26px!important}.archive-menu>summary{height:26px!important;padding:2px 0!important;text-align:center!important}html[data-theme=dark] .archive-row>.chat-title,html[data-theme=dark] .archive-row>button{background:transparent!important}@media(max-width:750px){body.history-open:not(.page)>aside .archive-row{grid-template-columns:18px minmax(0,1fr) 26px!important;margin-bottom:12px!important}body.history-open:not(.page)>aside .chat-title{grid-column:2/4!important}}
#mic,#ask button[aria-label="Send question"]{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;border-radius:12px!important}#mic svg,#ask button[aria-label="Send question"] svg{width:22px!important;height:22px!important}.brand img{width:44px!important;height:44px!important;object-fit:contain}.brand{grid-template-columns:44px minmax(0,1fr)!important}#archive{scrollbar-width:thin;scrollbar-color:var(--ui-line) transparent}#archive::-webkit-scrollbar{width:5px}#archive::-webkit-scrollbar-track{background:transparent}#archive::-webkit-scrollbar-thumb{background:var(--ui-line);border-radius:5px}@media(min-width:751px){.archive-row>button[aria-label^="Rename"],.archive-row>.archive-menu{opacity:0;transition:opacity 150ms var(--ease)}.archive-row:hover>button[aria-label^="Rename"],.archive-row:focus-within>button[aria-label^="Rename"],.archive-row:hover>.archive-menu,.archive-row:focus-within>.archive-menu{opacity:1}}
#thread{scrollbar-width:thin;scrollbar-color:var(--ui-line) var(--ui-canvas)}#thread::-webkit-scrollbar{width:6px}#thread::-webkit-scrollbar-track{background:var(--ui-canvas)}#thread::-webkit-scrollbar-thumb{background:var(--ui-line);border-radius:6px}html[data-theme=dark] #thread{scrollbar-color:#40414f #181923}.archive-row{padding-bottom:22px!important;margin-bottom:4px!important}.brand{grid-template-columns:44px minmax(0,1fr)!important}.brand img{object-fit:cover!important;object-position:center!important;width:44px!important;height:44px!important;transform:scale(1.5);clip-path:inset(5%)}@media(max-width:750px){body.history-open:not(.page)>aside{width:100vw!important;background:#f7f7fc!important;box-shadow:none!important}html[data-theme=dark] body.history-open:not(.page)>aside{background:#20212d!important}body.history-open:not(.page)>aside .archive-row{margin-bottom:6px!important}}

.brand img{transform:none!important;clip-path:none!important;object-fit:contain!important}
.archive-row>.chat-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;max-height:calc(2.9em + 16px)!important}.archive-row .pair-previews button{white-space:normal!important}
.archive-row>.chat-title{height:calc(2.9em + 16px)!important;max-height:calc(2.9em + 16px)!important;box-sizing:border-box!important;padding-top:8px!important;padding-bottom:8px!important}
.archive-row>.chat-title{padding:0 2px!important;margin:8px 0!important;min-height:0!important;height:auto!important;max-height:2.9em!important}
/* Research controls: quiet instrument-panel styling */
#research-settings-dialog{width:min(480px,calc(100vw - 32px));padding:26px;border-radius:20px;border-color:var(--ui-line);box-shadow:0 24px 90px #1113;animation:settings-in 200ms var(--ease)}#research-settings-dialog::backdrop{background:#11182766;backdrop-filter:blur(5px);animation:veil-in 180ms var(--ease)}#research-settings-dialog .settings-heading{padding-bottom:12px;border-bottom:1px solid var(--ui-line)}#research-settings-dialog .eyebrow{font-family:ui-monospace,monospace;letter-spacing:.14em;color:var(--ui-accent)}#research-settings-dialog .eyebrow:before{content:'◈';margin-right:8px}#research-settings-dialog .settings-heading h2{font-size:22px!important;letter-spacing:-.4px;color:var(--ui-text)}#research-settings-dialog .settings-heading button{min-height:32px;width:32px;border-radius:8px;color:var(--ui-muted)}#research-settings-dialog .settings-heading button:hover{background:var(--ui-line)}#research-settings-dialog .settings-note{margin:14px 0 20px}#research-settings-dialog .research-settings{margin-top:0!important}#research-settings-dialog .research-settings>label:first-child{background:var(--ui-canvas);padding:12px;border:1px solid var(--ui-line);border-radius:12px}#research-settings-dialog select{background:var(--ui-surface)!important;border-color:var(--ui-line)!important}#research-settings-dialog .settings-section-label{font:11px ui-monospace,monospace;letter-spacing:.12em;margin:20px 0 10px}#research-settings-dialog .sources{gap:7px!important}#research-settings-dialog .sources label{padding:11px 12px!important;border:1px solid var(--ui-line)!important;border-radius:11px!important;background:var(--ui-canvas)!important;transition:border-color 150ms var(--ease),background 150ms var(--ease),transform 150ms var(--ease)}#research-settings-dialog .sources label:has(input:checked){border-color:#a69bcc!important;background:color-mix(in srgb,var(--ui-surface) 86%,#e5e5ff)!important}#research-settings-dialog .sources label:hover{transform:translateX(2px)}#research-settings-dialog .sources label small{margin:3px 0 0;font-size:11px}#research-settings-dialog .sources input{transition:background 150ms var(--ease),border-color 150ms var(--ease),transform 150ms var(--ease)}#research-settings-dialog .sources input:active{transform:scale(.85)}#research-settings-dialog .context-setting{padding:16px 2px!important}#research-settings-dialog #use-profile{appearance:none;position:relative;width:32px;height:20px;border:1px solid var(--ui-line);border-radius:20px;background:var(--ui-line);margin:0;flex:none;transition:background 150ms var(--ease)}#research-settings-dialog #use-profile:before{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--ui-surface);transition:transform 150ms var(--ease)}#research-settings-dialog #use-profile:checked{background:#766ab8}#research-settings-dialog #use-profile:checked:before{transform:translateX(12px)}#research-settings-dialog .settings-actions{gap:6px;padding-top:12px}#research-settings-dialog .settings-actions button{height:36px;border-color:var(--ui-line);background:transparent;font-size:12px}#research-settings-dialog .settings-actions button:not(:disabled):hover{border-color:#a69bcc;background:var(--ui-canvas)}#research-settings-dialog.is-closing{animation:settings-out 150ms var(--ease) both}#research-settings-dialog.is-closing::backdrop{animation:veil-out 150ms var(--ease) both}
.temporary-notice{display:flex;align-items:center;gap:16px;max-width:800px;margin:28px auto;padding:20px 22px;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-surface);color:var(--ui-text);animation:arrive 200ms var(--ease);white-space:normal}.temporary-notice-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-canvas);color:var(--ui-accent)}.temporary-notice-icon svg{width:24px;height:24px}.temporary-notice strong{font-size:15px;font-weight:600;letter-spacing:-.1px}.temporary-notice p{font-size:13px;line-height:1.6;color:var(--ui-muted);margin:4px 0 0}.temporary-notice div{min-width:0}@keyframes settings-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@keyframes settings-out{to{opacity:0;transform:translateY(6px) scale(.99)}}@keyframes veil-in{from{opacity:0}to{opacity:1}}@keyframes veil-out{to{opacity:0}}@media(max-width:750px){#research-settings-dialog{padding:20px}.temporary-notice{margin:12px auto;padding:18px;gap:12px;align-items:flex-start}.temporary-notice-icon{width:38px;height:38px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#research-settings-dialog{width:min(680px,calc(100vw - 32px));padding:30px;text-align:left}#research-settings-dialog .sources{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}#research-settings-dialog .sources label{align-content:start;min-height:78px}#research-settings-dialog .settings-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#research-settings-dialog .settings-actions button{height:44px;white-space:normal;text-align:center}#research-settings-dialog .settings-description{margin:10px 0 0}#research-settings-dialog .context-setting{margin:4px 0!important}#auth{padding:22px 26px;width:min(420px,calc(100vw - 32px));background:var(--ui-surface);color:var(--ui-text)}#auth .auth-mark{height:42px;width:42px;margin:0 auto 8px}#auth h2{font-size:22px!important;margin:6px 0 10px;color:var(--ui-text)}#auth>p{font-size:12px;line-height:1.5;margin:8px 0;color:var(--ui-muted)}#auth #email{margin:8px 0;height:36px}#auth #otp-expiry{font-size:11px;margin:8px 0}#auth #otp-boxes{margin:8px 0 12px}#auth #otp-boxes .otp-digit{height:44px!important;font-size:22px;background:var(--ui-canvas);color:var(--ui-text);border-color:var(--ui-line)}#auth .auth-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin:0}#auth .auth-actions #send-code,#auth .auth-actions #verify{grid-column:1/-1;grid-row:1;min-height:40px;height:40px}#auth .auth-actions #resend{grid-column:1/-1;grid-row:2;min-height:30px;height:30px;padding:4px}#auth .auth-actions #change-email{grid-column:1;grid-row:3;height:34px;min-height:34px}#auth .auth-actions #close-auth{grid-column:2;grid-row:3;height:34px;min-height:34px;color:#b83d49;border:1px solid #e8bdc2;background:#fff4f5;border-radius:8px}html[data-theme=dark] #auth .auth-actions #close-auth{color:#ffabb3;background:#3d252d;border-color:#6b3944}#auth .auth-help{font-size:10px;margin:12px 0 0}#auth #auth-status:not(:empty){font-size:11px;line-height:1.5;padding:8px 10px;margin:10px 0 0;background:var(--ui-canvas);border:1px solid var(--ui-line);border-radius:9px}#auth #auth-status:empty{display:none}.composer-tools,.composer-left,.composer-right{align-items:center!important}.composer-tools{min-height:44px}.composer-tools button,#ask #attach,#research-settings-button,#quick-depth{height:44px!important;min-height:44px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;transform:none!important}#ask #attach{width:44px!important;padding:10px!important;border-radius:10px!important;background:transparent!important}#research-settings-button{white-space:nowrap;gap:6px!important}#research-summary{line-height:1}.signal-mark svg{width:80px;height:70px;display:block}.signal-outer{opacity:.28;animation:signal-arrive 450ms var(--ease) 300ms both}.signal-middle{opacity:.55;animation:signal-arrive 450ms var(--ease) 150ms both}.signal-inner{animation:signal-arrive 450ms var(--ease) both}@keyframes signal-arrive{from{stroke-dasharray:0 100;transform:translateY(3px)}to{stroke-dasharray:100 100;transform:none}}@media(max-width:750px){#research-settings-dialog{padding:22px}#research-settings-dialog .sources{grid-template-columns:1fr!important;gap:7px!important}#research-settings-dialog .sources label{min-height:0}#research-settings-dialog .settings-actions{grid-template-columns:1fr}#research-settings-dialog .settings-actions button{height:34px;text-align:left}.composer-tools,.composer-left,.composer-right{gap:4px!important}#research-settings-button{padding:7px 4px!important;gap:4px!important;font-size:11px!important}#research-summary{font-size:10px!important}#ask #attach{width:32px!important;min-width:32px!important}#quick-depth{padding:5px!important;min-width:38px!important}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.acronym-card{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:18px!important;padding:22px 24px!important;box-shadow:0 8px 30px #1111!important;max-width:680px!important}.acronym-card h3{font-size:20px!important;letter-spacing:-.3px;margin:0 0 8px!important;color:var(--ui-text)!important}.acronym-card>p{font-size:13px!important;color:var(--ui-muted)!important;margin:0 0 16px!important}.acronym-group{gap:8px!important;margin:12px 0!important}.acronym-chip{font:600 12px ui-monospace,monospace!important;border-radius:8px!important;background:var(--ui-canvas)!important;border:1px solid var(--ui-line)!important;color:var(--ui-accent)!important}.meaning-option{border-radius:10px!important;background:var(--ui-canvas)!important;border:1px solid var(--ui-line)!important;color:var(--ui-text)!important;transition:background 150ms var(--ease),border-color 150ms var(--ease),transform 150ms var(--ease)!important}.meaning-option.selected{background:color-mix(in srgb,var(--ui-surface) 80%,#e5e5ff)!important;border-color:#a69bcc!important;color:var(--ui-text)!important}.custom-meaning{margin-top:10px!important}.custom-meaning input{background:var(--ui-canvas)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}.custom-add{background:var(--ui-canvas)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}.acronym-card .acronym-status{margin:12px 0 0!important;font-size:11px!important}.acronym-actions{border-top:1px solid var(--ui-line);padding-top:14px;margin-top:14px!important;gap:10px!important}.acronym-actions .acronym-continue{background:#62588f!important;color:white!important;border:0!important}.acronym-actions .acronym-skip{background:transparent!important;color:var(--ui-muted)!important;border:0!important}
.pending{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;padding:24px!important;border-radius:18px!important;box-shadow:0 3px 18px #11105;white-space:normal;animation:arrive 200ms var(--ease)!important}.pending:before{display:none!important}.pending>strong{font-size:15px;letter-spacing:-.2px;display:block;color:var(--ui-text)}.pending .research-journey{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 16px;counter-reset:step}.pending .research-journey span{display:flex;align-items:center;gap:8px;border:0!important;background:transparent!important;color:var(--ui-muted)!important;padding:0!important;border-radius:0;transition:color 180ms var(--ease),transform 180ms var(--ease)}.pending .research-journey span:before{counter-increment:step;content:counter(step);width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--ui-line);border-radius:8px;font:11px ui-monospace,monospace;background:var(--ui-canvas);transition:background 180ms var(--ease),border-color 180ms var(--ease)}.pending .research-journey span.active{color:var(--ui-text)!important;transform:translateY(-1px)}.pending .research-journey span.active:before{background:#62588f;color:white;border-color:#62588f}.pending .research-journey span.done:before{content:'✓';border-color:#aaa0cb;color:var(--ui-accent)}.research-track{height:3px;border-radius:3px;background:var(--ui-line);overflow:hidden}.research-track i{display:block;height:100%;width:0;background:#8a7cbd;border-radius:3px;transition:width 250ms var(--ease)}.pending[data-stage=search] .research-track i{width:33.33%}.pending[data-stage=read] .research-track i{width:66.66%}.pending[data-stage=synthesize] .research-track i,.pending[data-stage=complete] .research-track i{width:100%}.pending small{margin:12px 0 0;font-size:11px!important;color:var(--ui-muted)}#research-settings-dialog #use-profile{border-radius:20px!important;padding:0!important}#research-settings-dialog #use-profile:after{display:none!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#confirm-dialog{width:min(440px,calc(100vw - 32px));padding:24px;background:var(--ui-surface);color:var(--ui-text);text-align:left;border-color:var(--ui-line);border-radius:16px}#confirm-dialog h2{font-size:19px!important;letter-spacing:-.2px;color:var(--ui-text);margin:0 0 10px}#confirm-dialog p{font-size:12px;color:var(--ui-muted);margin:0 0 20px}#confirm-dialog .auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}#confirm-dialog .auth-actions button{height:40px;margin:0}#confirm-no{background:var(--ui-canvas);border-color:var(--ui-line);color:var(--ui-text)}#confirm-yes{background:#c43f50;color:white;border-color:#c43f50}#confirm-yes:hover{background:#a93242}
.answer-text .answer-bullet{padding-left:16px;position:relative;margin:6px 0!important}.answer-text .answer-bullet:before{content:'';position:absolute;left:2px;top:.72em;width:5px;height:5px;border-radius:50%;background:var(--ui-muted)}.claim-notes>div{margin:8px 0;font-size:12px;line-height:1.6}.claim-notes h3{font-size:13px!important;margin:12px 0 4px!important}
.archive-row.active{box-shadow:none!important;background:color-mix(in srgb,var(--ui-surface) 55%,#e5e5ff)!important;border-radius:8px}html[data-theme=dark] .archive-row.active{background:#2d304c!important}.archive-menu>summary{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;color:var(--ui-muted);font-size:13px;letter-spacing:1px;transition:background 150ms var(--ease),color 150ms var(--ease)}.archive-menu>summary:hover,.archive-menu[open]>summary{background:var(--ui-line);color:var(--ui-text)}.archive-menu .archive-actions{box-shadow:0 8px 24px #11111122!important}
.source-excerpt{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:8px 0 0}.analysis-link{margin-top:10px;font-size:12px;background:transparent;border:0;color:var(--ui-accent);padding:4px 0;text-align:left}.analysis-link:hover{text-decoration:underline;transform:none}#analysis-dialog{width:min(560px,calc(100vw - 32px));max-height:min(80vh,720px);padding:24px 26px;text-align:left;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:16px;box-shadow:0 24px 80px #1113}#analysis-dialog .analysis-heading{display:flex;justify-content:space-between;align-items:center;font:11px ui-monospace,monospace;letter-spacing:.12em;color:var(--ui-muted);text-transform:uppercase}#analysis-dialog .analysis-heading button{background:transparent;border:0;font-size:22px;color:var(--ui-muted);min-height:32px}#analysis-dialog h2{font-size:19px!important;margin:10px 0 14px;color:var(--ui-text);letter-spacing:-.2px}#analysis-dialog .article-analysis{font-size:13px;line-height:1.7}

/* v25: fast, finite micro-interactions and audited spacing. */
:root{--motion-fast:150ms;--motion-normal:200ms;--motion-slow:250ms;--ease:cubic-bezier(.2,.8,.2,1)}
button,a,summary,input,textarea,select,.source-card,.archive-row,.sources label,.composer-surface,.research-journey span,.research-journey span:before{transition:background-color var(--motion-fast) var(--ease),color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),box-shadow var(--motion-normal) var(--ease),opacity var(--motion-fast) var(--ease),transform var(--motion-fast) var(--ease)}
button:disabled{transform:none!important;box-shadow:none!important;cursor:not-allowed}
button:not(:disabled):active,summary:active{transform:scale(.98)}
button svg{transition:transform var(--motion-fast) var(--ease),opacity var(--motion-fast) var(--ease)}
button:not(:disabled):hover svg{transform:translateY(-1px)}button:not(:disabled):active svg{transform:scale(.92)}
:is(.examples button,.meaning-option,.citation-chip):not(:disabled):hover{box-shadow:0 3px 10px #62588f15;transform:translateY(-1px)}
.source-card:hover{border-color:#a69bcc!important;box-shadow:0 4px 16px #1111110d;transform:translateY(-1px)}
.archive-row:hover{background:color-mix(in srgb,var(--ui-surface) 84%,#e5e5ff)!important}
.answer-tabs button:hover{transform:none!important;box-shadow:none!important;color:var(--ui-accent)!important}
.answer-tabs button:active{transform:translateY(1px)!important}
.lane-panel:not([hidden]),.pair-previews:not([hidden]),.message,.acronym-card,.undo-toast{animation:arrive var(--motion-normal) var(--ease)}
.source-highlight{animation:highlight var(--motion-slow) var(--ease)}
dialog[open],#research-settings-dialog[open]{animation:settings-in var(--motion-normal) var(--ease)!important}
dialog::backdrop{background:#11182766;backdrop-filter:blur(4px);animation:veil-in var(--motion-normal) var(--ease)}
dialog[open].is-closing,#research-settings-dialog[open].is-closing{animation:settings-out var(--motion-fast) var(--ease) forwards!important}
dialog.is-closing::backdrop,#research-settings-dialog.is-closing::backdrop{animation:veil-out var(--motion-fast) var(--ease) forwards!important}
.is-leaving{pointer-events:none;animation:settings-out var(--motion-fast) var(--ease) forwards!important}
.signal-arc{animation-duration:200ms!important;animation-delay:0ms!important}.signal-middle{animation-delay:25ms!important}.signal-outer{animation-delay:50ms!important}
#ask:focus-within{box-shadow:none!important}.composer-surface:focus-within{border-color:#a69bcc;box-shadow:0 0 0 3px #a69bcc22}
#research-settings-dialog #use-profile{display:inline-block!important;width:32px!important;height:20px!important;min-width:32px;appearance:none!important;vertical-align:middle;border:1px solid var(--ui-line)!important;border-radius:20px!important;background:var(--ui-line)!important;flex:none;overflow:visible}
#research-settings-dialog #use-profile:before{display:block!important;position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--ui-surface);transition:transform var(--motion-fast) var(--ease)}
#research-settings-dialog #use-profile:checked{background:#766ab8!important;border-color:#766ab8!important}
#research-settings-dialog .context-setting{display:flex!important;align-items:center!important;gap:10px!important}
#research-settings-dialog .sources input{grid-row:1/3;align-self:center;margin:0!important}
#research-settings-dialog .sources label{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:4px!important;align-items:center!important}
#research-settings-dialog .sources label>span,#research-settings-dialog .sources label>small{grid-column:2;margin:0!important;text-align:left}
#research-settings-dialog .sources label>small{line-height:1.4}
#profile-dialog{width:min(500px,calc(100vw - 32px));padding:28px;text-align:left;border-radius:18px;background:var(--ui-surface);color:var(--ui-text)}
#profile-dialog h2{font-size:22px!important;margin:0 0 10px}#profile-dialog>p{font-size:13px;line-height:1.6;margin:0 0 20px}
#profile-dialog>label{display:block;font-size:12px;color:var(--ui-muted);margin:14px 0}
#profile-dialog input,#profile-dialog textarea{display:block;width:100%;margin:6px 0 0;border:1px solid var(--ui-line);background:var(--ui-canvas);color:var(--ui-text);padding:10px 12px;border-radius:10px}
#profile-dialog textarea{min-height:100px;resize:vertical}#profile-dialog .auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}#profile-close{grid-column:1/-1;background:transparent!important}#profile-status:empty{display:none}
#logout{border-radius:18px}#logout h2{font-size:22px!important}.email-chip{font-size:12px;padding:10px!important}
html[data-theme=dark] #auth .auth-actions #close-auth{color:#ffbac2!important;background:#422731!important;border:1px solid #8c4d5c!important}
html[data-theme=dark] #confirm-dialog #confirm-yes,html[data-theme=dark] #logout #confirm-logout{background:#c43f50!important;color:#fff!important;border-color:#c43f50!important}
html[data-theme=dark] #confirm-dialog #confirm-yes:hover,html[data-theme=dark] #logout #confirm-logout:hover{background:#aa3344!important}
#choices .undo-toast{max-width:800px;margin:0 auto 12px;padding:12px 14px;gap:16px;background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;border-radius:12px;box-shadow:0 4px 18px #1111}
#choices .undo-toast button{flex:none;min-height:36px;padding:6px 12px;color:var(--ui-accent)!important}
body:has(.acronym-card) .welcome{visibility:hidden}
#choices:has(.acronym-card){padding:0 32px!important;max-height:min(70dvh,560px)!important;scrollbar-width:thin}
.acronym-card{margin:8px auto 12px!important}.acronym-group{align-items:flex-start!important}.meaning-option{max-width:100%;text-align:left;line-height:1.5!important;height:auto!important;min-height:40px;white-space:normal;overflow-wrap:anywhere}
.acronym-card .acronym-actions{align-items:center!important}.acronym-skip{min-height:40px!important}.custom-meaning{align-items:center!important}
#voice-status:not(:empty){padding:8px 14px 12px;animation:arrive var(--motion-normal) var(--ease)}
#voice-status:empty{display:none!important}
@media(hover:none){button:hover{transform:none;box-shadow:none}.source-card:hover{transform:none;box-shadow:none}}
@media(max-width:750px){#choices:has(.acronym-card){padding:0 12px!important;max-height:calc(100dvh - 240px)!important}.acronym-card{padding:20px!important}.temporary-notice{padding:18px!important}.pending{padding:20px!important}.pending .research-journey{gap:8px}.research-journey span{font-size:12px}.source-card{padding:16px!important}.source-panel{padding:16px 0!important}#profile-dialog{padding:22px}.history-open aside{animation:drawer-in var(--motion-normal) var(--ease)}#research-settings-dialog .sources label{min-height:66px!important}#research-settings-dialog{padding:22px!important}}
@media(max-width:750px){body.history-open aside.drawer-closing{animation:drawer-out 150ms var(--ease) forwards!important}}
@keyframes drawer-out{to{opacity:0;transform:translateX(-12px)}}
@keyframes drawer-in{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-motion:reduce){html body :is(#motion-override,*){animation:none!important;transition:none!important;scroll-behavior:auto!important}html body :is(#motion-override,*)::before,html body :is(#motion-override,*)::after{animation:none!important;transition:none!important}html body dialog[open],html body #research-settings-dialog[open],html body dialog.is-closing::backdrop,html body #research-settings-dialog.is-closing::backdrop,html body dialog::backdrop{animation:none!important;transition:none!important}}

/* v25 premium pass: one type system, one radius scale, layered surfaces, quiet hierarchy. */
:root{--font:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--shadow-1:0 1px 2px rgba(18,18,43,.06),0 2px 8px rgba(18,18,43,.05);--shadow-2:0 1px 2px rgba(18,18,43,.06),0 10px 28px rgba(18,18,43,.1);--shadow-3:0 24px 80px rgba(18,18,43,.22);--accent-strong:#5a4fa3;--accent-strong-hover:#4c4289;--radius-btn:10px;--radius-card:14px;--radius-panel:16px;--radius-dialog:22px}
html[data-theme=dark]{--shadow-1:0 1px 2px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.28);--shadow-2:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.42);--shadow-3:0 24px 80px rgba(0,0,0,.55);--accent-strong:#8579d6;--accent-strong-hover:#9488e2}
html body,html body button,html body input,html body textarea,html body select,html body summary{font-family:var(--font)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body{font-size:15px!important;line-height:1.6!important;letter-spacing:-.006em}
html body h1,html body h2,html body h3,html body h4,html body .brand strong{font-family:var(--font)!important}
html body h1{font-size:40px!important;font-weight:700!important;letter-spacing:-.035em!important;line-height:1.08!important}
html body h2{font-size:22px!important;font-weight:650!important;letter-spacing:-.02em!important}
html body h3{font-size:17px!important;font-weight:650!important;letter-spacing:-.012em!important}
html body button{border-radius:var(--radius-btn)!important;font-weight:500;letter-spacing:-.006em}
button,.source-card,.composer-surface,#research-settings-dialog .sources label,.meaning-option{border-color:rgba(18,18,43,.09)!important}
html[data-theme=dark] button,html[data-theme=dark] .source-card,html[data-theme=dark] .composer-surface,html[data-theme=dark] #research-settings-dialog .sources label,html[data-theme=dark] .meaning-option{border-color:rgba(255,255,255,.11)!important}
body:not(.page)>aside{background:#f4f4fa!important;border-right:1px solid rgba(18,18,43,.07)!important}
html[data-theme=dark] body:not(.page)>aside{background:#1b1b24!important;border-right-color:rgba(255,255,255,.07)!important}
.brand strong{font-size:19px!important;font-weight:700!important;letter-spacing:-.02em!important}
.brand span{font-size:12px!important;color:var(--ui-muted)}
header{height:60px!important;min-height:60px!important;background:color-mix(in srgb,var(--ui-canvas) 82%,transparent)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
header strong{font-size:15px!important;font-weight:650!important;letter-spacing:-.015em}
header span{font-size:12px!important}
.header-actions button{box-shadow:none!important}
aside>#new,aside>#temporary{border-radius:12px!important;min-height:44px;font-weight:600;letter-spacing:-.01em}
aside>#new{background:var(--accent-strong)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 1px 2px rgba(24,24,60,.22)!important}
aside>#new:hover{background:var(--accent-strong-hover)!important}
aside>#temporary{background:transparent!important;border-color:rgba(18,18,43,.14)!important}
html[data-theme=dark] aside>#temporary{border-color:rgba(255,255,255,.16)!important}
#history-search{border-radius:10px!important;border-color:rgba(18,18,43,.09)!important;background:var(--ui-surface)!important;font-size:13px!important;min-height:40px}
#history-search:focus{outline:none;border-color:var(--accent-strong)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-strong) 18%,transparent)}
html[data-theme=dark] #history-search{background:#23232e!important}
.sidebar-links{font-size:12px!important;color:var(--ui-muted)}
.side-note{font-size:12px!important;line-height:1.55}
.welcome h1{font-size:clamp(34px,4vw,46px)!important;font-weight:700!important;letter-spacing:-.04em!important;background:linear-gradient(120deg,var(--ui-text) 30%,var(--ui-accent));-webkit-background-clip:text;background-clip:text}
.welcome>p:not(.eyebrow):not(.attribution){font-size:15.5px!important;line-height:1.65!important;color:var(--ui-muted)}
.eyebrow{font-size:11px!important;font-weight:700!important;letter-spacing:.19em!important;color:var(--ui-accent)!important}
.examples button{border-radius:999px!important;background:var(--ui-surface)!important;border:1px solid rgba(18,18,43,.1)!important;color:var(--ui-text)!important;padding:9px 16px!important;font-size:13px!important;font-weight:500;box-shadow:var(--shadow-1)}
.examples button:hover{border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-surface) 80%,#e5e5ff)!important}
html[data-theme=dark] .examples button{border-color:rgba(255,255,255,.12)!important}
html[data-theme=dark] .examples button:hover{background:#2c2c3e!important}
.attribution{font-size:12px!important;color:var(--ui-muted)}
.attribution a{color:var(--ui-accent);text-decoration:none}
.composer-surface{border-radius:20px!important;border:1px solid rgba(18,18,43,.08)!important;box-shadow:var(--shadow-2)}
html[data-theme=dark] .composer-surface{border-color:rgba(255,255,255,.1)!important}
.composer-surface:focus-within{border-color:var(--accent-strong)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--accent-strong) 16%,transparent),var(--shadow-2)!important}
#question{font-size:15px!important;line-height:1.55!important;letter-spacing:-.006em}
#ask #attach{border-radius:10px!important;color:var(--ui-muted)!important;font-weight:400}
#research-settings-button{border-radius:10px!important;font-weight:500;color:var(--ui-text)}
#quick-depth{border-radius:9px!important;font-weight:600;letter-spacing:.01em}
#ask button[aria-label="Send question"]{background:var(--accent-strong)!important;border-radius:12px!important;border:0!important;box-shadow:0 1px 3px rgba(24,24,60,.25)!important}
#ask button[aria-label="Send question"]:hover{background:var(--accent-strong-hover)!important}
#mic{background:var(--ui-surface)!important;border:1px solid rgba(18,18,43,.09)!important;color:var(--ui-muted)!important}
html[data-theme=dark] #mic{border-color:rgba(255,255,255,.11)!important}
.composer-meta small{font-size:11px!important;color:var(--ui-muted);letter-spacing:0}
.message{border-radius:var(--radius-card)!important;box-shadow:var(--shadow-1)}
.message.user{background:#ece9fa!important;border:0!important;border-radius:18px 18px 5px 18px!important;box-shadow:none!important;font-size:14.5px!important;line-height:1.6!important}
html[data-theme=dark] .message.user{background:#3a3860!important}
.research-answer{border-radius:var(--radius-panel)!important}
.answer-tabs{display:flex;gap:4px!important;padding:4px!important;background:color-mix(in srgb,var(--ui-canvas) 60%,#e5e5ff)!important;border:1px solid rgba(18,18,43,.07)!important;border-radius:13px 13px 0 0!important;width:fit-content}
html[data-theme=dark] .answer-tabs{background:#23232e!important}
.answer-tabs button{border-radius:9px!important;padding:7px 15px!important;font-size:13px!important;font-weight:500;color:var(--ui-muted)!important;background:transparent!important;border:0!important;box-shadow:none!important}
.answer-tabs button[aria-selected=true]{background:var(--ui-surface)!important;color:var(--ui-text)!important;font-weight:600;box-shadow:var(--shadow-1)!important}
.lane-panel{border:1px solid rgba(18,18,43,.08)!important;border-radius:var(--radius-panel)!important;background:var(--ui-surface)!important;box-shadow:var(--shadow-1);overflow:hidden}
html[data-theme=dark] .lane-panel{border-color:rgba(255,255,255,.09)!important}
.answer-text{font-size:14.5px!important;line-height:1.75!important;letter-spacing:-.004em}
.answer-text h3{font-size:16px!important;font-weight:650!important;letter-spacing:-.015em!important}
.claim-notes>summary,.source-panel>summary{font-weight:600;font-size:13px;color:var(--ui-accent)}
.source-card{border-radius:var(--radius-card)!important;background:var(--ui-surface)!important;box-shadow:var(--shadow-1);padding:18px!important}
.source-card:hover{box-shadow:var(--shadow-2)!important}
.source-card h4{font-size:14px!important;font-weight:650!important;letter-spacing:-.01em;line-height:1.45!important}
.source-card small{font-size:11px!important;font-weight:600;letter-spacing:.04em;color:var(--ui-accent)!important;text-transform:uppercase}
.source-excerpt{border-left:2px solid color-mix(in srgb,var(--ui-accent) 35%,transparent);padding-left:10px;font-size:12.5px!important;line-height:1.6!important}
.analysis-link{font-weight:600;font-size:12.5px!important}
.citation-chip{border-radius:5px!important;font-weight:600}
dialog{border-radius:var(--radius-dialog)!important;box-shadow:var(--shadow-3)!important;border:1px solid rgba(255,255,255,.35)!important}
html[data-theme=dark] dialog{border-color:rgba(255,255,255,.09)!important}
dialog::backdrop{backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
dialog h2{letter-spacing:-.022em!important}
#research-settings-dialog .settings-heading h2{font-size:23px!important;font-weight:700!important}
#research-settings-dialog .sources label{border-radius:var(--radius-card)!important;box-shadow:none;background:var(--ui-surface)!important}
#research-settings-dialog .sources label:has(input:checked){border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-surface) 82%,#e5e5ff)!important;box-shadow:0 0 0 1px var(--ui-accent) inset}
html[data-theme=dark] #research-settings-dialog .sources label:has(input:checked){background:#2e2c46!important}
#research-settings-dialog .sources label>span{font-weight:600;font-size:13.5px;letter-spacing:-.01em}
#research-settings-dialog .sources input{border-radius:5px!important}
#research-settings-dialog .sources input:checked{background:var(--accent-strong)!important;border-color:var(--accent-strong)!important}
#research-settings-dialog #use-profile:checked{background:var(--accent-strong)!important;border-color:var(--accent-strong)!important}
#research-settings-dialog select{border-radius:9px!important;font-weight:500}
#research-settings-dialog .settings-actions button{border-radius:10px!important;font-weight:500}
.context-setting{font-size:13.5px;font-weight:500;color:var(--ui-text)}
.pending{border-radius:18px!important;box-shadow:var(--shadow-2)!important}
.pending .research-journey span:before{border-radius:9px!important}
.pending .research-journey span.active:before{background:var(--accent-strong)!important;border-color:var(--accent-strong)!important;border-radius:9px!important}
.research-track{border-radius:4px}
.research-track i{background:linear-gradient(90deg,var(--accent-strong),#8a7cbd)!important;border-radius:4px}
.acronym-card{border-radius:20px!important;box-shadow:var(--shadow-2)!important}
.acronym-card h3{font-size:21px!important;font-weight:700!important;letter-spacing:-.02em!important}
.acronym-chip{border-radius:8px!important;font-weight:700!important;letter-spacing:.02em}
.meaning-option{border-radius:11px!important;font-weight:500;text-align:left}
.meaning-option.selected{border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-surface) 78%,#e5e5ff)!important;font-weight:600}
#choices .acronym-continue{background:var(--accent-strong)!important;border-color:transparent!important;border-radius:10px!important;font-weight:600!important;box-shadow:0 1px 3px rgba(24,24,60,.22)!important}
#choices .acronym-continue:hover{background:var(--accent-strong-hover)!important}
#choices .acronym-continue:disabled{opacity:.45}
.archive-row{border-radius:10px!important}
.archive-row.active{border-radius:10px!important}
.archive-menu .archive-actions{border-radius:12px!important;border:1px solid rgba(18,18,43,.08)!important;overflow:hidden;background:var(--ui-surface)!important}
html[data-theme=dark] .archive-menu .archive-actions{border-color:rgba(255,255,255,.1)!important}
.archive-menu .archive-actions button{border-radius:8px!important;font-size:12.5px!important;font-weight:500}
.temporary-notice{border-radius:18px!important;box-shadow:var(--shadow-1)}
.temporary-notice strong{font-size:15px;font-weight:650;letter-spacing:-.015em}
#choices .undo-toast{border-radius:13px!important;box-shadow:var(--shadow-2)!important;font-weight:500}
#choices .undo-toast button{font-weight:600}
#otp-boxes .otp-digit{border-radius:11px!important;border-color:rgba(18,18,43,.12)!important;font-weight:650}
html[data-theme=dark] #otp-boxes .otp-digit{border-color:rgba(255,255,255,.14)!important}
#otp-boxes .otp-digit:focus{border-color:var(--accent-strong)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-strong) 20%,transparent)}
#auth .auth-actions #close-auth{border-radius:10px!important}
#confirm-yes,#confirm-logout{border-radius:10px!important;font-weight:600!important}
#profile-dialog input,#profile-dialog textarea{border-radius:10px!important}
#profile-save{background:var(--accent-strong)!important;color:#fff!important;border-color:transparent!important;font-weight:600!important}
#profile-save:hover{background:var(--accent-strong-hover)!important}
.signal-mark{color:var(--ui-accent)}
#theme{border-radius:10px!important}
#send-code,#verify,#choices .acronym-continue{border-radius:10px!important}
@media(max-width:750px){html body h1{font-size:30px!important}.welcome h1{font-size:30px!important;letter-spacing:-.035em!important}header{height:56px!important;min-height:56px!important}}

.archive-retry{display:inline-flex;min-height:32px;padding:4px 10px;margin-top:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);cursor:pointer}.usage-indicator{font-size:12px;color:var(--muted);margin:4px 0 12px}.usage-indicator:empty{display:none}.partial-answers>small{display:block;color:var(--muted);font-size:12px;margin:12px 0 6px}.partial-answers .research-answer{margin-top:0}
.partial-answers{max-width:800px;margin:0 auto 28px;min-width:0}.partial-answers>small{color:var(--ui-muted);margin:0 0 12px}.partial-answers .research-answer{width:100%;margin:0!important}.archive-retry{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}.usage-indicator{color:var(--ui-muted)}
@media(max-width:750px){.partial-answers{margin:0 18px 28px;max-width:calc(100% - 36px)}}

html[data-theme=dark] .brand img{background:#eeeeff;border-radius:10px;padding:5px;box-sizing:border-box}

/* v29: one quiet outward signal sweep on arrival, never an idle loop. */
.signal-mark .signal-arc{animation:signal-wave 660ms var(--ease,cubic-bezier(.2,.8,.2,1)) both!important;transform-box:fill-box;transform-origin:center bottom}
.signal-mark .signal-inner{--signal-opacity:1;animation-delay:0ms!important}
.signal-mark .signal-middle{--signal-opacity:.55;animation-delay:90ms!important}
.signal-mark .signal-outer{--signal-opacity:.28;animation-delay:180ms!important}
@keyframes signal-wave{0%{opacity:0;transform:translateY(3px) scale(.94)}45%{opacity:var(--signal-opacity);transform:translateY(-1px) scale(1.015)}100%{opacity:var(--signal-opacity);transform:none}}
.depth-field{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ui-text);font-size:13px;font-weight:500;width:100%}
.depth-field #research-mode{display:none!important}
.depth-picker{position:relative;width:148px;flex:none}
#depth-trigger{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px!important;gap:12px;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font:inherit;text-align:left;box-shadow:var(--shadow-1)}
#depth-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform 180ms var(--ease)}
#depth-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
#depth-options{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:8;padding:5px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);box-shadow:var(--shadow-2)}
#depth-options[hidden]{display:none!important}
#depth-options button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:10px!important;border:0!important;border-radius:7px!important;color:var(--ui-text)!important;background:transparent!important;font:inherit;text-align:left;box-shadow:none!important}
#depth-options button:is(:hover,:focus-visible){background:var(--ui-accent)!important;outline:none}
.depth-check{visibility:hidden;color:var(--accent-strong)}
#depth-options [aria-selected=true] .depth-check{visibility:visible}
#depth-trigger:focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}
#depth-trigger:disabled{opacity:.5;cursor:default}
@media(max-width:400px){.depth-picker{width:140px}}
@media(prefers-reduced-motion:reduce){.signal-mark .signal-arc{animation:none!important;transform:none!important}.signal-inner{opacity:1!important}.signal-middle{opacity:.55!important}.signal-outer{opacity:.28!important}#depth-trigger svg{transition:none!important}}

#research-settings-dialog{max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;box-sizing:border-box}

/* v30: one aligned, wrapping row with explicit per-source progress. */
.partial-answers{width:100%;max-width:800px;margin:0 auto 28px!important}
.partial-answers .answer-tabs{width:100%;box-sizing:border-box;flex-wrap:wrap;gap:4px!important;padding:6px!important;border-radius:12px!important;margin:0 0 18px!important}
.partial-answers .answer-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:40px;flex:0 1 auto;padding:8px 12px!important;line-height:1.3;white-space:normal;text-align:left}
.partial-answers .answer-tabs small{font-size:10px;font-weight:500;color:var(--ui-muted);white-space:nowrap}
.partial-answers .answer-tabs button.lane-running{opacity:1!important;cursor:default;color:var(--ui-muted)!important}
.partial-answers .lane-running small{color:var(--ui-accent)}
.partial-answers .lane-running small:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:2px}
.partial-answers>small{line-height:1.5;padding:0 2px;margin-bottom:10px}
@media(max-width:750px){.partial-answers{max-width:100%!important}.partial-answers .answer-tabs button{padding:8px 10px!important;font-size:12px!important}}
.partial-answers .answer-tabs button.lane-running{background:color-mix(in srgb,var(--ui-surface) 45%,transparent)!important;border:1px dashed var(--ui-line)!important}
.partial-answers .lane-running small:before{animation:lane-working 1.8s var(--ease) infinite}
@keyframes lane-working{0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.partial-answers .lane-running small:before{animation:none!important;opacity:1}}
.partial-answers .lane-panel .answer-text{padding:18px 20px!important}
.partial-answers .lane-panel .claim-notes,.partial-answers .lane-panel .source-panel{padding:0 20px!important;margin-top:0!important}
@media(max-width:750px){.partial-answers .lane-panel .answer-text{padding:16px!important}.partial-answers .lane-panel .claim-notes,.partial-answers .lane-panel .source-panel{padding:0 16px!important}}
/* v31: quiet transitions and a consistent answer surface. */
.research-answer .lane-panel .answer-text{padding:20px 24px!important}
.research-answer .lane-panel .claim-notes,.research-answer .lane-panel .source-panel{padding:0 24px!important;margin-top:0!important}
.research-answer .lane-panel{border-radius:18px!important;background:var(--ui-surface)!important}
html[data-theme=dark] .research-answer .lane-panel{border-radius:18px!important;background:var(--ui-surface)!important}
.research-answer .answer-tabs{border-radius:12px!important;margin-bottom:16px!important}
html[data-theme=dark] .research-answer .answer-tabs button[aria-selected=true]{background:var(--ui-surface)!important;box-shadow:var(--shadow-1)!important}
button:not(:disabled),a{transition:background-color 160ms var(--ease),border-color 160ms var(--ease),color 160ms var(--ease),box-shadow 160ms var(--ease)}
.research-answer .answer-actions button:focus-visible,.answer-tabs button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:750px){.research-answer .lane-panel .answer-text{padding:18px!important}.research-answer .lane-panel .claim-notes,.research-answer .lane-panel .source-panel{padding:0 18px!important}}
@media(prefers-reduced-motion:reduce){button:not(:disabled),a{transition:none!important}}
/* Decorative connecting signal only while the empty composer is untouched. */
body:has(.welcome):has(#question:placeholder-shown) .signal-arc{animation:signal-connect 2.8s var(--ease) infinite!important}
body:has(.welcome):has(#question:placeholder-shown) .signal-middle{animation-delay:120ms!important}
body:has(.welcome):has(#question:placeholder-shown) .signal-outer{animation-delay:240ms!important}
body:has(.welcome):has(#question:not(:placeholder-shown)) .signal-arc{animation:none!important}
@keyframes signal-connect{0%,70%,100%{stroke-opacity:1;transform:none}15%{stroke-opacity:.3;transform:translateY(2px)}40%{stroke-opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body:has(.welcome) .signal-arc{animation:none!important;transform:none!important}}
@media(prefers-reduced-motion:reduce){body:has(.welcome):has(#question:placeholder-shown) .signal-arc{animation:none!important;transform:none!important}}
/* Small responses to deliberate interaction, using one motion scale. */
.examples button{transition:background-color 180ms var(--ease),border-color 180ms var(--ease),transform 180ms var(--ease)!important}
.examples button:hover{transform:translateY(-2px)!important}.examples button:active{transform:scale(.98)!important}
.composer-surface{transition:border-color 180ms var(--ease),box-shadow 180ms var(--ease)}
.header-actions #theme svg{transition:transform 220ms var(--ease)}.header-actions #theme:hover svg{transform:rotate(-12deg)}
#attach{transition:background-color 180ms var(--ease),transform 180ms var(--ease)!important}#attach:hover{transform:rotate(90deg)!important}
#mic svg{transition:transform 180ms var(--ease)}#mic:hover svg{transform:translateY(-2px)}
#ask button[aria-label="Send question"] svg{transition:transform 180ms var(--ease)}#ask button[aria-label="Send question"]:hover svg{transform:translate(2px,-2px)}
#depth-trigger svg{transition:transform 180ms var(--ease)}#depth-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
#depth-options:not([hidden]){animation:picker-reveal 160ms var(--ease)}@keyframes picker-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.source-card{transition:border-color 180ms var(--ease),box-shadow 180ms var(--ease)}.source-card:hover{border-color:var(--ui-accent)!important;box-shadow:0 4px 16px #201a4008!important}
.source-card a{transition:color 180ms var(--ease),transform 180ms var(--ease)}.source-card a:hover{transform:translateX(2px)}
.archive-row>.chat-title{transition:background-color 180ms var(--ease),color 180ms var(--ease)}.archive-row>.chat-title:hover{background:var(--ui-line)!important}
#quick-depth{transition:background-color 180ms var(--ease),box-shadow 180ms var(--ease)}#quick-depth:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent)!important}
@media(prefers-reduced-motion:reduce){.examples button,.composer-surface,.header-actions #theme svg,#attach,#mic svg,#ask button[aria-label="Send question"] svg,#depth-trigger svg,.source-card,.source-card a,#quick-depth{animation:none!important;transition:none!important;transform:none!important}.examples button:hover,.examples button:active,#attach:hover,#mic:hover svg,#ask button[aria-label="Send question"]:hover svg,#depth-trigger[aria-expanded=true] svg,.source-card a:hover{transform:none!important}}
#ask #attach:hover{transform:rotate(90deg)!important}
@media(prefers-reduced-motion:reduce){#ask #attach:hover{transform:none!important}}
.undo-toast button{transition:background-color 160ms var(--ease),transform 160ms var(--ease)}.undo-toast button:hover{transform:translateY(-1px)}.undo-toast button:active{transform:scale(.97)}
#confirm-dialog #confirm-yes:hover{background:#fff1f1!important;color:#a33242!important;border-color:#db9ba5!important}
@media(prefers-reduced-motion:reduce){.undo-toast button,.undo-toast button:hover,.undo-toast button:active{transition:none!important;transform:none!important}}
/* A quiet lavender canvas, with white reserved for useful surfaces. */
html:not([data-theme=dark]){--ui-canvas:#f0eef9;--ui-line:#dfdbea}
html:not([data-theme=dark]) body:not(.page)>aside{background:#e9e6f4!important}
html:not([data-theme=dark]) #thread{background:radial-gradient(ellipse at 50% 20%,#e8e4f580,transparent 68%),var(--ui-canvas)!important}
html:not([data-theme=dark]) header{background:#f0eef9db!important}
/* Archive controls share the title's row instead of a second action baseline. */
.archive-row{display:grid!important;grid-template-columns:18px minmax(0,1fr) 26px 26px!important;align-items:center!important;gap:4px!important;padding:4px 0!important;margin:0 0 4px!important}
.archive-row>.chat-title{grid-column:2!important;grid-row:1!important;padding:8px 4px!important;min-width:0;line-height:1.5!important}
.archive-row>button:first-child{grid-column:1!important;grid-row:1!important;align-self:center!important}
.archive-row>button[aria-label^="Rename"]{position:static!important;grid-column:3!important;grid-row:1!important;align-self:center!important;width:26px!important;height:30px!important;margin:0!important}
.archive-row>.archive-menu{position:relative!important;grid-column:4!important;grid-row:1!important;align-self:center!important;width:26px!important;bottom:auto!important;right:auto!important}
.archive-menu>summary{height:30px!important;display:grid;place-items:center;padding:0!important;line-height:1!important}
.archive-row>.pair-previews{grid-column:1/-1!important}
@media(max-width:750px){body.history-open:not(.page)>aside .archive-row{grid-template-columns:18px minmax(0,1fr) 26px 26px!important;margin-bottom:4px!important}body.history-open:not(.page)>aside .chat-title{grid-column:2!important}}

.archive-row>.chat-title{max-height:calc(3em + 16px)!important;margin:0!important;box-sizing:border-box!important}
/* Desktop splitter retains the compact mobile drawer. */
@media(min-width:751px){body:not(.page)>aside{width:var(--sidebar-width,240px)!important}body:not(.page)>main{left:var(--sidebar-width,240px)!important}#sidebar-resizer{position:fixed;z-index:45;left:calc(var(--sidebar-width,240px) - 4px);top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;outline:none}#sidebar-resizer:after{content:'';position:absolute;left:3px;top:0;bottom:0;width:2px;background:transparent;transition:background 160ms}#sidebar-resizer:hover:after,#sidebar-resizer:focus-visible:after,body.sidebar-resizing #sidebar-resizer:after{background:var(--ui-accent)}body.sidebar-resizing{cursor:col-resize;user-select:none}}
@media(max-width:750px){#sidebar-resizer{display:none}}
/* Consistent instrument-panel controls. */
#research-settings-dialog .settings-actions{grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:center}
#research-settings-dialog .usage-indicator{grid-column:1/-1;grid-row:3;margin:2px 0 0;text-align:left;font-size:12px}
#research-settings-dialog #pdf-chat{grid-column:1/-1;grid-row:2}
#research-settings-dialog .sources label{min-height:86px;padding:16px 12px!important;border-width:1px!important;box-shadow:0 2px 5px #11104}
#research-settings-dialog .sources label:hover{transform:translateY(-3px);box-shadow:0 6px 16px #1111}
#research-settings-dialog .sources label.changed{animation:card-select 300ms var(--ease)}
#research-settings-dialog .depth-field{padding:14px 16px;background:var(--ui-canvas);border:1px solid var(--ui-line);border-radius:14px}
#research-settings-dialog #depth-trigger{background:var(--ui-surface)!important}
#research-settings-dialog #depth-trigger.changed{animation:card-select 260ms var(--ease)}
#research-settings-dialog .context-setting{padding:18px 2px!important}
#research-settings-dialog #use-profile{width:36px;height:22px;transition:background 220ms,box-shadow 220ms}
#research-settings-dialog #use-profile:before{width:16px;height:16px}
#research-settings-dialog #use-profile:checked:before{transform:translateX(14px)}
#research-settings-dialog #use-profile:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 12%,transparent)}
#research-settings-dialog[open] .sources label{animation:settings-in 300ms var(--ease) both}
#research-settings-dialog[open] .sources label:nth-child(2){animation-delay:45ms}#research-settings-dialog[open] .sources label:nth-child(3){animation-delay:90ms}
#close-research-settings:hover{transform:rotate(90deg)}
.welcome .examples{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;width:100%}
.welcome .examples button{position:relative;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:22px;min-height:122px;padding:18px!important;border-radius:18px!important;text-align:left!important;font-size:13px!important;line-height:1.5!important;box-shadow:0 3px 10px #11105!important;background:var(--ui-surface)!important}
.welcome .examples button:after{content:'↗';font-size:20px;color:var(--ui-accent);align-self:flex-end;transition:transform 180ms}
.welcome .examples button:hover{transform:translateY(-4px)!important;border-color:var(--ui-accent)!important;box-shadow:0 10px 24px #1111!important}.welcome .examples button:hover:after{transform:translate(2px,-2px)}.welcome .examples button:active{transform:translateY(-1px) scale(.98)!important}
.composer-surface.submitting{animation:composer-send 440ms var(--ease)}.composer-surface.submitting button[aria-label="Send question"] svg{animation:send-plane 430ms var(--ease)}
#mic.mic-clicked svg{animation:mic-tap 380ms var(--ease)}#mic.listening{background:color-mix(in srgb,var(--ui-surface) 75%,#e5e5ff)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 12%,transparent)!important}#mic.listening svg{animation:mic-live 1000ms ease-in-out infinite}
.acronym-card{border-radius:22px!important;padding:28px!important}.acronym-group{padding:16px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-canvas);margin:12px 0!important}.acronym-card .custom-meaning{width:100%;display:flex;gap:8px}.acronym-card .custom-meaning input{min-width:0;flex:1;transition:box-shadow 200ms,border-color 200ms}.acronym-card .custom-meaning input:focus{outline:none;border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent)}.meaning-option.selected{animation:card-select 260ms var(--ease);box-shadow:0 3px 10px #11108}.acronym-continue:hover{box-shadow:0 4px 14px #62588f40!important;transform:translateX(2px)}
.pending .research-journey .active:before{animation:step-breathe 1500ms ease-in-out infinite}.pending .research-track{position:relative}.pending .research-track:after{content:'';position:absolute;top:0;bottom:0;width:24%;background:linear-gradient(90deg,transparent,var(--ui-accent),transparent);animation:research-scan 2200ms linear infinite;opacity:.45}.pending .status-updated{animation:status-change 280ms var(--ease)}.pending small{font-variant-numeric:tabular-nums}.pending .timer-tick{animation:timer-tick 260ms var(--ease)}
.answer-tabs{display:flex!important;gap:8px!important;padding:8px!important}.answer-tabs>button{flex:1!important;min-width:0;justify-content:center;border-radius:10px!important;transition:background 180ms,box-shadow 180ms,transform 180ms}.answer-tabs>button:not(.lane-running):hover{box-shadow:0 3px 10px #11108;transform:translateY(-2px)}.answer-tabs>button[aria-selected=true]{box-shadow:0 2px 8px #11108}.answer-tabs>.lane-running{background:var(--ui-surface)!important;border:1px dashed var(--ui-line)!important}
@keyframes card-select{50%{transform:scale(.97)}100%{transform:none}}@keyframes composer-send{35%{box-shadow:0 0 0 5px color-mix(in srgb,var(--ui-accent) 16%,transparent);transform:translateY(-2px)}100%{transform:none}}@keyframes send-plane{40%{transform:translate(6px,-6px);opacity:0}41%{transform:translate(-5px,5px);opacity:0}100%{transform:none;opacity:1}}@keyframes mic-tap{40%{transform:scale(.8)}75%{transform:scale(1.12)}}@keyframes mic-live{50%{transform:scale(1.08);opacity:.6}}@keyframes step-breathe{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 13%,transparent)}}@keyframes research-scan{from{left:-24%}to{left:100%}}@keyframes status-change{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes timer-tick{from{opacity:.65}to{opacity:1}}
@media(max-width:750px){.welcome .examples{grid-template-columns:1fr!important}.welcome .examples button{min-height:0!important;flex-direction:row!important;gap:12px;padding:14px 16px!important;align-items:center}.welcome .examples button:after{align-self:center}.acronym-card{padding:20px!important}.acronym-group{padding:12px}.answer-tabs{gap:4px!important}.answer-tabs>button{font-size:10px!important;padding:8px 3px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.app-page-links{display:flex;align-items:center;gap:16px;margin-right:12px}.app-page-links a{font-size:12px;color:var(--ui-muted);text-decoration:none;position:relative}.app-page-links a:after{content:'';position:absolute;bottom:-5px;left:0;width:100%;height:1px;background:var(--ui-accent);transform:scaleX(0);transform-origin:left;transition:transform 180ms}.app-page-links a:hover{color:var(--ui-accent)}.app-page-links a:hover:after{transform:scaleX(1)}
#research-settings-button{border:1px solid var(--ui-line)!important;border-radius:11px!important;background:var(--ui-canvas)!important;padding:8px 12px!important;font-size:12px!important;gap:8px!important;box-shadow:0 1px 3px #11104!important}#research-settings-button:hover{background:color-mix(in srgb,var(--ui-surface) 78%,#e5e5ff)!important;border-color:var(--ui-accent)!important;box-shadow:0 3px 12px #11108!important}#research-settings-button[aria-expanded=true]{border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent)!important}#research-settings-button[aria-expanded=true]>span:last-child{transform:rotate(180deg)}#research-settings-button>span:last-child{transition:transform 180ms;display:inline-block}#research-summary{color:var(--ui-muted)}
.answer-tabs>.lane-running{animation:running-glow 2100ms ease-in-out infinite!important}.answer-tabs>button:not(.lane-running){animation:lane-settle 430ms var(--ease)}
@keyframes running-glow{50%{border-color:var(--ui-accent);box-shadow:inset 0 0 16px color-mix(in srgb,var(--ui-accent) 8%,transparent)}}@keyframes lane-settle{from{background:color-mix(in srgb,var(--ui-surface) 72%,#e5e5ff);transform:translateY(2px)}to{transform:none}}
@media(max-width:750px){header{height:auto!important;min-height:88px!important;align-items:flex-start!important;padding-top:10px!important}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:2px!important;max-width:235px}.app-page-links{flex-basis:100%;justify-content:flex-end;margin:0 6px 3px 0;gap:14px}.app-page-links a{font-size:11px}.header-actions>button{height:34px!important;min-height:34px!important;padding:0 6px!important}.header-actions #profile-button{display:none!important}body.history-open:not(.page)>aside{top:88px!important;height:calc(100dvh - 88px)!important}#research-settings-button{padding:7px 6px!important;font-size:10px!important;gap:4px!important}#thread{padding-top:8px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#analysis-dialog{width:min(920px,calc(100vw - 48px))!important;max-height:86dvh!important;padding:32px 38px!important}#analysis-dialog .article-analysis{font-size:14px!important;line-height:1.85!important}#analysis-dialog h2{font-size:23px!important;line-height:1.4!important;margin:18px 0 22px!important}.answer-actions{gap:8px!important;padding:14px 0!important}.answer-actions button{display:inline-flex;align-items:center;gap:7px;padding:9px 12px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:var(--ui-surface)!important;color:var(--ui-muted)!important;font-size:12px!important}.answer-actions button:hover{background:var(--ui-canvas)!important;color:var(--ui-accent)!important;box-shadow:0 4px 12px #11108;transform:translateY(-2px)}.answer-actions button:first-child:before{content:'⧉';font-size:15px}.answer-actions button:nth-child(2):before{content:'↓';font-size:16px}.answer-actions button.delete-pair:before{content:'×';font-size:18px}.answer-actions button.delete-pair{color:#b63e53!important;border-color:#b63e5333!important}.answer-actions button.delete-pair:hover{background:#b63e5310!important;box-shadow:0 4px 12px #b63e5315}
@media(max-width:750px){#analysis-dialog{width:calc(100vw - 24px)!important;padding:22px!important}#analysis-dialog h2{font-size:19px!important}.answer-actions{flex-wrap:wrap}.answer-actions button{font-size:11px!important;padding:8px 10px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#research-settings-dialog[open] .sources label.changed{animation:card-select 300ms var(--ease) both!important}
.acronym-card .meaning-option.selected{animation:card-select 260ms var(--ease)!important}
@media(prefers-reduced-motion:reduce){.acronym-card .meaning-option.selected,#research-settings-dialog[open] .sources label.changed{animation:none!important}}
/* Full title wrapping prevents half-glyph clipping at narrow sidebar widths. */
.archive-row>.chat-title{display:block!important;-webkit-line-clamp:unset!important;height:auto!important;max-height:none!important;min-height:40px!important;overflow:visible!important;white-space:normal!important;word-break:normal;overflow-wrap:anywhere;padding:9px 4px!important;margin:0!important;font-size:12px!important;line-height:1.55!important;box-sizing:border-box!important}
.archive-row{padding:5px 0!important;align-items:center!important}.archive-row>.chat-title:hover{background:transparent!important}
.brand img,.auth-mark,.site-brand img{border-radius:12px;object-fit:contain!important}.site-brand img{padding:0!important;background:transparent!important}#startup img{border-radius:18px}
/* Source cards keep stable geometry: tint and a clear check, no bouncing. */
#research-settings-dialog[open] .sources label,#research-settings-dialog[open] .sources label.changed{animation:none!important;transform:none!important}
#research-settings-dialog .sources{gap:10px!important}#research-settings-dialog .sources label{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) 22px!important;grid-template-rows:auto auto!important;align-content:center!important;gap:7px 9px!important;min-height:108px!important;padding:16px!important;background:var(--ui-canvas)!important;border:1px solid var(--ui-line)!important;box-shadow:none!important;transition:background 220ms,border-color 220ms,box-shadow 220ms!important}
#research-settings-dialog .sources label>span{grid-column:1!important;grid-row:1!important;font-size:13px;font-weight:600;line-height:1.45}
#research-settings-dialog .sources label>small{grid-column:1/-1!important;grid-row:2!important;font-size:11px!important;line-height:1.6!important;color:var(--ui-muted)}
#research-settings-dialog .sources input{grid-column:2!important;grid-row:1!important;appearance:none!important;width:22px!important;height:22px!important;min-width:22px;border:1px solid var(--ui-line)!important;border-radius:7px!important;background:var(--ui-surface)!important;display:grid;place-items:center;padding:0!important;transition:background 180ms,border-color 180ms!important;transform:none!important}
#research-settings-dialog .sources input:after{content:'+';position:static!important;display:block!important;font-size:16px;line-height:1!important;opacity:1!important;color:var(--ui-muted);background:none!important;width:auto!important;height:auto!important;transform:none!important}
#research-settings-dialog .sources input:checked{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important}#research-settings-dialog .sources input:checked:after{content:'✓';font-size:14px;color:white!important}
#research-settings-dialog .sources label:has(input:checked){background:color-mix(in srgb,var(--ui-surface) 78%,#e5e5ff)!important;border-color:var(--ui-accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ui-accent) 25%,transparent)!important}
#research-settings-dialog .sources label:hover{transform:none!important;border-color:var(--ui-accent)!important;box-shadow:0 3px 12px #11107!important}
#research-settings-dialog .sources input:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
#profile-dialog{width:min(580px,calc(100vw - 32px))!important;padding:30px!important;border:1px solid var(--ui-line)!important;border-radius:22px!important;box-shadow:0 24px 90px #1113}#profile-dialog h2{font-size:24px!important;padding-bottom:18px;border-bottom:1px solid var(--ui-line)}#profile-dialog>p{font-size:13px!important;line-height:1.75!important}#profile-dialog label{font-size:12px!important;margin:18px 0 0!important;gap:8px!important}#profile-dialog input,#profile-dialog textarea{padding:12px 14px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:var(--ui-canvas)!important;font-size:13px!important;color:var(--ui-text)!important}#profile-dialog input:focus,#profile-dialog textarea:focus{outline:none!important;border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent)!important}#profile-dialog .auth-actions{padding-top:20px;border-top:1px solid var(--ui-line);gap:10px!important}#profile-clear{color:#b83950!important;background:#b839500c!important;border:1px solid #b8395040!important}#profile-clear:hover{background:#b839501a!important;border-color:#b83950!important}html[data-theme=dark] #profile-clear{color:#ff9cab!important;background:#ff9cab0e!important;border-color:#ff9cab40!important}#profile-save{background:var(--ui-accent)!important;color:white!important}#profile-close{color:var(--ui-muted)!important}#profile-dialog button{border-radius:10px!important;height:42px!important}
@media(max-width:750px){#research-settings-dialog .sources label{min-height:85px!important;padding:13px!important}#profile-dialog{padding:22px!important}.archive-row>.chat-title{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.answer-actions{display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:10px 16px 12px!important;margin:0!important;align-items:center!important;background:var(--ui-surface)!important;border-top:1px solid var(--ui-line)!important;border-radius:0 0 15px 15px!important}.answer-actions button{height:32px!important;min-height:32px!important;min-width:0!important;padding:4px 8px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--ui-muted)!important;font-size:11px!important;border-radius:7px!important;gap:6px!important}.answer-actions button:hover{background:var(--ui-canvas)!important;color:var(--ui-text)!important}.answer-actions button:before{font-size:14px!important}.answer-actions .delete-pair{color:#b83950!important}.answer-actions .delete-pair:hover{background:#b8395010!important}.research-answer .answer-actions{width:100%!important;box-sizing:border-box!important}.lane-skeleton{padding:26px!important;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:15px;min-height:220px}.lane-skeleton p{color:var(--ui-muted);font-size:12px;margin:0 0 24px}.skeleton-line{height:12px;border-radius:6px;background:linear-gradient(100deg,var(--ui-canvas) 20%,var(--ui-line) 45%,var(--ui-canvas) 70%);background-size:250% 100%;margin:14px 0;animation:skeleton-sweep 2.8s ease-in-out infinite}.skeleton-line:nth-child(3){width:85%}.skeleton-line:nth-child(4){width:92%}.skeleton-line:nth-child(5){width:62%}@keyframes skeleton-sweep{from{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.skeleton-line{animation:none!important}}
.research-answer .answer-tabs{width:100%!important;box-sizing:border-box!important}.answer-tabs>button{display:flex!important;flex-direction:column!important;gap:5px!important;line-height:1.35!important;min-height:54px!important;white-space:normal!important}.answer-tabs small{white-space:nowrap!important;font-size:10px!important}.answer-tabs .lane-running{cursor:pointer!important}.research-answer:has(.answer-actions) .lane-panel:not([hidden]){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.answer-actions button:hover{transform:none!important}.research-answer .lane-skeleton{padding:26px!important}.partial-answers .research-answer .lane-skeleton{padding:26px!important}
/* Row actions sit level with the wrapped title, not dropped below it. */
.archive-row{grid-template-columns:18px minmax(0,1fr) 30px 30px!important;align-items:center!important;padding:2px 0!important;position:relative!important}
.archive-row>button[aria-label^="Rename"]{position:static!important;grid-column:3!important;grid-row:1!important;right:auto!important;bottom:auto!important;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;align-self:center!important;justify-self:center!important;display:grid;place-items:center}
.archive-row>.archive-menu{position:static!important;grid-column:4!important;grid-row:1!important;right:auto!important;bottom:auto!important;width:30px!important;height:30px!important;align-self:center!important;justify-self:center!important}
.archive-row>.archive-menu>summary{height:30px;width:30px;display:grid;place-items:center;list-style:none}
.archive-row>.chat-title{grid-column:2!important;grid-row:1!important;min-height:0!important}
.archive-row>button:first-child{grid-column:1!important;grid-row:1!important;align-self:center!important;width:18px!important;min-height:30px!important;height:30px!important}
.archive-row>.pair-previews{grid-column:1/-1!important;grid-row:2!important;width:100%!important;box-sizing:border-box!important}
.archive-row.active>button[aria-label^="Rename"],.archive-row.active>.archive-menu{opacity:1}
#message-queue{width:100%;box-sizing:border-box;margin:0 0 10px;padding:10px 14px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:14px;max-height:190px;overflow:auto;text-align:left}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ui-muted);font-size:11px}.queue-heading button{border:0;background:var(--ui-canvas);color:var(--ui-accent);padding:6px 9px;border-radius:7px;font-size:11px}.queue-item{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--ui-line);margin-top:7px;font-size:12px;line-height:1.5}.queue-item span{flex:1;min-width:0;overflow-wrap:anywhere}.queue-item button{border:0;background:transparent;color:var(--ui-muted);width:28px;height:28px;font-size:18px;padding:0;flex-shrink:0}#message-queue[hidden]{display:none}
.research-answer .answer-tabs{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:5px!important;border-radius:12px!important;align-items:stretch!important;width:100%!important}.research-answer .answer-tabs>button{flex:1 1 0!important;min-width:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:10px 6px!important;font-size:12px!important;line-height:1.35!important;min-height:40px!important;border-radius:9px!important}.research-answer .answer-tabs>button:has(small){min-height:56px!important}.research-answer .answer-tabs small{font-size:10px!important;font-weight:400!important;white-space:nowrap!important}.research-answer .answer-tabs>.lane-running{animation:none!important;border:0!important;background:transparent!important}.research-answer .answer-tabs>.lane-running[aria-selected=true]{background:var(--ui-surface)!important;box-shadow:var(--shadow-1)!important;color:var(--ui-text)!important}@media(max-width:750px){.research-answer .answer-tabs>button{font-size:10px!important;padding:10px 3px!important}.research-answer .answer-tabs small{font-size:9px!important}}
.welcome .examples button{position:relative;overflow:hidden;animation:prompt-breathe 6s ease-in-out infinite!important}.welcome .examples button:nth-child(2){animation-delay:2s!important}.welcome .examples button:nth-child(3){animation-delay:4s!important}.welcome .examples button:after{transition:transform 220ms var(--ease)!important}.welcome .examples button:hover:after{transform:translate(3px,-3px)}@keyframes prompt-breathe{0%,65%,100%{border-color:var(--ui-line);box-shadow:0 2px 5px #11108}25%{border-color:color-mix(in srgb,var(--ui-accent) 30%,var(--ui-line));box-shadow:0 4px 14px #716ba012}}@media(prefers-reduced-motion:reduce){.welcome .examples button{animation:none!important}.welcome .examples button:after{transition:none!important;transform:none!important}}
#message-queue{max-width:800px;margin-left:auto;margin-right:auto}@media(min-width:751px){#message-queue{width:min(800px,100%)!important}}.research-answer .lane-running[aria-selected=true]{border-style:solid!important;border-color:transparent!important}

/* Explicit check and safe settings bounds. */
#research-settings-dialog{box-sizing:border-box!important;max-width:calc(100vw - 32px)!important;left:0;right:0;margin:auto!important;overflow-x:hidden!important}
#research-settings-dialog .sources{min-width:0!important;max-width:100%!important}
#research-settings-dialog .sources label{box-sizing:border-box!important;min-width:0!important}
#research-settings-dialog .sources input:after{border:0!important;font-family:Arial,sans-serif!important;font-weight:600!important;content:''!important;box-shadow:none!important}
#research-settings-dialog .sources input:checked:after{content:''!important;width:11px!important;height:6px!important;border:solid white!important;border-width:0 0 2px 2px!important;transform:rotate(-45deg) translate(1px,-1px)!important}
