@font-face{font-family:Geist;src:url("./assets/Geist-Variable.ttf") format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:Zalando;src:url("./assets/ZalandoSansExpanded-Variable.ttf") format("truetype");font-weight:200 900;font-display:swap}
:root{color-scheme:light;--ink:#172a43;--muted:#52667c;--line:#dce5ed;--blue:#275ca1;--pale:#edf5fe;--display:Zalando,Geist,sans-serif;--body:Geist,"Segoe UI",sans-serif;font:16px/1.5 var(--body);color:var(--ink);background:#f7f9fc}
*,*::after,*::before{box-sizing:border-box}
body,button,input,textarea,select{margin:0;font:inherit;color:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
a{text-decoration:none;color:inherit}
h1,h2,h3,p{margin:0}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #568dd4;outline-offset:3px}
[hidden]{display:none!important}
.visually-hidden,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip:focus{position:fixed;z-index:20;background:white;padding:.5rem}
.ico{display:inline-block;flex:none;width:19px;height:19px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.app-shell{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:27px 15px 20px;z-index:3}
.brand{display:flex;align-items:center;gap:10px;padding:0 7px;width:max-content;font:725 1.31rem/.95 var(--display);letter-spacing:-.095em}
.brand-stop,h1>span{color:#528bd1}
.main-nav{display:grid;gap:5px;margin-top:55px}
.rail-label{color:#677a90;font-size:.73rem;letter-spacing:.082em;text-transform:uppercase;font-weight:680;line-height:1.6}
.main-nav>.rail-label{margin:0 12px 6px}
.main-nav>a{display:flex;position:relative;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;font-size:.93rem;font-weight:520;color:#485d72}
.main-nav>a:hover,.history-item:hover,.connection-link:hover{background:#f3f7fb}
.main-nav>a[aria-current]{background:#e5f0fc;color:#22518b;font-weight:670}
.main-nav>a[aria-current]::after{content:"";position:absolute;right:13px;width:5px;height:5px;border-radius:50%;background:#6596d3}
.history-nav{border-top:1px solid #e4eaf0;margin:24px 0 0;padding:18px 7px 0;min-height:0;overflow:auto}
.history-head{display:flex;align-items:center;justify-content:space-between;padding:0 3px 8px}
.history-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:0;color:var(--muted);font-size:.84rem;padding:8px 5px;border-radius:6px}
.history-item .ico{width:15px;height:15px}
.history-item span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.history-empty{color:#75869a;font-size:.83rem;padding:5px 3px}
.sidebar-foot{margin-top:auto;padding:14px 0 0;border-top:1px solid var(--line)}
.connection-link{display:flex;align-items:center;width:100%;padding:6px;gap:10px;border:0;background:none;text-align:left;border-radius:9px}
.connection-link>span:nth-child(2){flex:1;min-width:0}
.connection-link strong,.connection-link small{display:block}
.connection-link strong{font-size:.88rem}
.connection-link small{font-size:.77rem;color:var(--muted);margin-top:1px}
.connection-link>svg{width:15px;color:#72859a}
.plug-icon{width:36px;height:36px;border:1px solid #dce4ed;border-radius:11px;display:grid;place-items:center;color:#486684;background:#f4f7fa}
.connection-link[data-online=true] small{color:#28634c}
.workspace{min-width:0}
.topbar{height:64px;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 clamp(24px,3.3vw,56px);border-bottom:1px solid var(--line);background:#ffffffd4}
.app-controls{display:flex;align-items:center;gap:14px}
.app-controls .today{order:-1}
.crumbs,.today{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted)}
.crumbs .ico,.today .ico{width:16px;height:16px}
.crumbs b{color:#92a4b5;font-weight:400}
.crumbs strong{font-weight:620;color:#2c4057}
.today{gap:7px}
main{padding:28px clamp(24px,3.3vw,56px) 44px;max-width:1540px;margin-inline:auto}
main:focus{outline:0}
.hero,.page-intro{position:relative;isolation:isolate}
.hero{display:flex;align-items:center;min-height:205px;padding:30px 36px;overflow:hidden;border-radius:21px;border:1px solid #ccdeec;background:radial-gradient(ellipse at 69% 48%,#f5faff1c 0 25%,transparent 62%),linear-gradient(106deg,#edf7ff 1%,#e1f0fd 47%,#cbdff6 100%);box-shadow:inset 0 1px 0 #ffffffb8}
.hero::before{content:"";position:absolute;inset:0 0 0 54%;pointer-events:none;z-index:-1;background-image:radial-gradient(#83a5ca59 .8px,transparent .9px);background-size:11px 11px;mask-image:linear-gradient(90deg,transparent,#000 52%);opacity:.55}
.hero-copy{z-index:1;width:62%}
.hero-label{display:flex;align-items:center;gap:8px;text-transform:uppercase;font-size:.71rem;letter-spacing:.16em;font-weight:740;color:#456989}
.hero-label span{height:2px;width:23px;background:#618eba}
.hero-memory{width:max-content}
.hero-memory:hover b{text-decoration:underline}
h1{font:680 clamp(2.15rem,3.25vw,3.65rem)/1.16 var(--display);letter-spacing:-.073em}
.hero h1,.page-intro h1{margin:.42rem 0 .62rem}
.hero-copy>p:last-child,.page-intro>p:last-child,.memory-intro>div>p:last-child{font-size:.99rem;color:#4b6177;max-width:46ch;line-height:1.6}
.hero-visual{position:absolute;z-index:0;inset:0 0 0 56%;pointer-events:none;display:grid;place-items:center;overflow:hidden}
.hero-visual img{width:min(100%,360px);height:100%;object-fit:contain;position:absolute;z-index:1;filter:drop-shadow(1px 8px 9px #31517a12)}
.orbit{position:absolute;left:50%;top:58%;width:89%;height:69%;border-radius:50%;border:1px solid #84abd366;transform:translate(-50%,-50%) rotate(-13deg)}
.orbit-b{width:109%;height:87%;opacity:.5}
.orbit-spark{position:absolute;font-size:1.5rem;right:12%;top:19%;color:#6793c3}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(235px,28%);gap:20px;margin-top:22px;align-items:start}
.work-column,.support-column{display:grid;gap:18px;min-width:0}
.panel{border:1px solid var(--line);background:#fff;border-radius:17px;box-shadow:0 3px 11px #233e5d05}
.compose-panel,.recent,.balance-panel,.study-panel,.library,.review{padding:21px}
.heading-row,.section-title,.text-link,.primary,.compact,.tab-strip button,.form-actions,.shortcut,.quick,.legend,.legend span,.library-tools,.search-field,.tag,.chips,.detail-actions{display:flex;align-items:center}
.heading-row{justify-content:space-between;gap:8px;margin-bottom:20px}
.section-title{gap:10px;min-width:0}
h2{font:660 1.05rem/1.4 var(--display);letter-spacing:-.047em}
.title-icon,.learn-emblem{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;flex:none}
.blue{background:#e7f1ff;color:#477bef}
.lilac{background:#f0ebfd;color:#7665a9}
.peach{background:#fff1df;color:#a86925}
.bare{border:0;background:none;color:var(--muted);border-radius:7px}
.bare:hover{background:#f0f5fa;color:#214c7c}
.icon-only{display:grid;place-items:center;width:28px;height:28px;padding:0}
.icon-only .ico{width:17px;height:17px}
.compact{padding:5px 4px;gap:4px;font-size:.79rem;white-space:nowrap}
.compact .ico{width:15px;height:15px}
.field-label{display:block;font-size:.86rem;font-weight:620;margin-bottom:8px;color:#35495e}
.field-label small{font-size:.77rem;font-weight:400;color:var(--muted);margin-left:5px}
.composer{border:1px solid #cddbe8;border-radius:12px;background:#fbfdff;transition:box-shadow .15s,border-color .15s}
.composer:focus-within{border-color:#87aad1;box-shadow:0 0 0 3px #dceafa}
.composer textarea{display:block;width:100%;resize:vertical;min-height:92px;background:none;border:0;padding:13px 15px 4px;outline:0;font-size:1rem}
textarea,input{min-width:0}
textarea::placeholder,input::placeholder{color:#7a899b}
.composer textarea:focus-visible{outline:0}
.composer-foot{display:flex;align-items:center;justify-content:space-between;padding:5px 10px 10px 14px;gap:10px}
.shortcut{gap:3px;color:#738398;font-size:.68rem}
kbd{font:520 .68rem var(--body);border:1px solid #dce4ed;background:#fff;border-bottom-width:2px;border-radius:4px;padding:1px 4px}
.primary{width:max-content;display:inline-flex;justify-content:center;gap:7px;min-height:39px;border:1px solid #245894;border-radius:9px;padding:8px 14px;color:white;background:#2e619f;box-shadow:inset 0 1px 0 #ffffff35;font-size:.86rem;font-weight:620}
.primary:hover{background:#224f88}
.primary .ico{width:16px;height:16px}
.quick{gap:6px;flex-wrap:wrap;margin-top:14px;font-size:.8rem;color:var(--muted)}
.quick>.ico{width:14px;height:14px}
.quick>span{margin-right:3px}
.quick button,.tag,.secondary,.chip{border:1px solid #d9e3ec;border-radius:7px;background:white;font-size:.78rem;padding:4px 8px;color:#4a5d73}
.quick button:hover,.secondary:hover,.chip:hover{background:#eef5fc;border-color:#bdcfe1}
.text-link{width:max-content;gap:3px;font-size:.8rem;font-weight:600;color:#326299}
.text-link:hover{text-decoration:underline}
.text-link .ico{width:14px;height:14px}
.recent .heading-row{margin-bottom:10px}
.recent-row{width:100%;border:0;background:none;display:flex;align-items:center;text-align:left;gap:10px;border-top:1px solid #e9eef3;padding:12px 0;color:var(--ink)}
.recent-row:first-child{border-top:0}
.recent-row>span:first-of-type{min-width:0;flex:1}
.recent-row strong{font-size:.87rem;font-weight:590;display:block}
.recent-row small,.micro,.panel-note,.meta{color:var(--muted);font-size:.77rem}
.recent-row>.ico:first-child{color:#6885a3;width:16px;height:16px}
.recent-row>.ico:last-child{width:15px;color:#8293a5}
.recent-row:hover strong{color:var(--blue)}
.balance-graphic{display:grid;place-items:center;padding:17px 0}
.balance-ring{width:94px;aspect-ratio:1;padding:8px;border-radius:50%;background:conic-gradient(from 0deg,#7ba9db 0 49.2%,#fff 49.2% 50%,#cab6e5 50% 99.2%,#fff 99.2%);transform:rotate(-29deg)}
.ring-inner{display:grid;place-items:center;width:100%;height:100%;background:#fdfdff;border:5px solid white;border-radius:50%;color:#6c86a8}
.ring-inner>.ico{transform:rotate(29deg);height:30px;width:30px;stroke-width:1.3}
.legend{justify-content:space-between;padding:3px 0;font-size:.86rem}
.legend span{gap:7px}
.legend strong{font-weight:620}
.dot{display:inline-block;width:8px;height:8px;border-radius:3px}
.dot-ai{background:#7ba9db}
.dot-memory{background:#cab6e5}
.panel-note{margin-top:13px;border-top:1px solid #e9eef3;padding-top:10px;line-height:1.5}
.learning-card{display:flex;gap:11px;padding:18px;border:1px solid #d7e7e5;border-radius:15px;background:linear-gradient(120deg,#f2faf7,#ecf5f4)}
.learn-emblem{background:#dbeee7;color:#497b6b}
.learning-card h2{font-size:.94rem}
.learning-card p{font-size:.85rem;color:#526b66;margin:4px 0 10px}
.learning-card .text-link{color:#386759}
.page-intro{padding:10px 0 23px}
.page-intro h1{font-size:clamp(2.05rem,3vw,3rem)}
.memory-intro{display:flex;justify-content:space-between;align-items:center;gap:15px}
.study-panel,.review{max-width:860px}
.tab-strip{display:flex;border-bottom:1px solid var(--line);gap:10px;margin:0 0 20px}
.tab-strip button{gap:7px;border:0;border-bottom:2px solid transparent;padding:4px 10px 12px;color:#67778a;background:none;font-size:.93rem}
.tab-strip button[aria-pressed=true]{border-color:#5685c1;color:#315e96;font-weight:630}
.study-form .field-label:not(:first-child),.qa-form .field-label:not(:first-child){margin-top:16px}
.input,.search-field,.library-tools select{display:block;width:100%;border:1px solid #cad8e5;background:#fbfdff;border-radius:8px;padding:9px 12px}
textarea.input{resize:vertical}
.dropzone{display:grid;place-items:center;min-height:145px;text-align:center;border:1px dashed #a4bdcb;background:#f4f9fd;border-radius:12px;cursor:pointer;overflow:hidden;padding:12px}
.dropzone:focus-within,.dropzone.dragging{outline:3px solid #8ab4dd;outline-offset:2px}
.dropzone img{max-height:200px;max-width:100%;object-fit:contain}
#drop-copy{display:grid;justify-items:center;gap:5px}
#drop-copy .ico{width:29px;height:29px;margin:3px 0;color:#6589b1}
#drop-copy strong{font-size:.94rem;font-weight:580}
#drop-copy small{color:var(--muted);font-size:.8rem}
.form-actions{justify-content:flex-end;gap:9px;margin-top:16px}
.review{margin-top:18px}
.subtitle{font-size:.9rem;color:var(--muted);margin-top:10px}
.draft-form{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}
.feedback{font-size:.86rem;color:#386882;padding:8px 0 0;white-space:pre-wrap}
.feedback[data-error=true]{color:#9b4237}
.library-tools{gap:12px;margin-bottom:16px}
.search-field{display:flex;gap:8px;min-width:0;flex:1}
.search-field .ico{width:17px;color:#697f93}
.search-field input{background:none;border:0;flex:1;width:100%;outline:0}
.search-field:focus-within{outline:2px solid #739fcc}
.library-tools select{width:32%;min-width:140px;background:#fff}
.entry{border-top:1px solid var(--line);padding:2px 0}
.entry summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 2px;cursor:pointer;list-style:none;font-weight:600;font-size:.95rem}
.entry summary::-webkit-details-marker{display:none}
.entry summary>.ico{width:16px;flex:none}
.entry summary>span,.recent-row strong,.recent-row small,.chip{min-width:0;overflow-wrap:anywhere}
.entry[open] summary>.ico{transform:rotate(90deg)}
.entry-content{padding:0 2px 15px}
.entry-content p,.answer-text,.question-text,.detail-answer{white-space:pre-wrap;overflow-wrap:anywhere}
.chips,.detail-actions{gap:7px;flex-wrap:wrap}
.chips{margin:12px 0}
.tag{width:max-content;background:#eff5fb;border-color:#e1eaf3;color:#45607b;font-size:.76rem}
.meta{margin-top:10px;line-height:1.6}
.detail-actions{margin-top:14px}
.secondary{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;padding:6px 10px}
.secondary .ico{width:15px;height:15px}
.danger{color:#924038}
.empty{padding:12px 0;color:var(--muted);font-size:.88rem}
.answer-turn{background:#f5f9fd;border:1px solid #e0e9f1;border-radius:11px;margin-bottom:16px;padding:14px}
.turn-label{display:flex;align-items:center;gap:5px;color:#516a85;font-size:.77rem;font-weight:640;margin-bottom:5px}
.turn-label .ico{width:15px;height:15px}
.question-text{color:#4c6279;font-size:.87rem;margin-bottom:12px;border-bottom:1px solid #dfe8f0;padding-bottom:10px}
.answer-text{font-size:.98rem;line-height:1.65}
.answer-turn .detail-actions{margin-top:10px}
.answer-turn .sources{font-size:.8rem;margin-top:9px;color:#4a6580}
.sources summary{cursor:pointer}
.source-item{display:block;text-align:left;color:#315d8e;border:0;background:none;padding:5px 0;text-decoration:underline;font-size:.82rem}
.chip{display:inline-flex;align-items:center;gap:5px}
.chip .ico{width:13px;height:13px}
dialog{max-width:min(540px,calc(100% - 28px));width:100%;max-height:84vh;max-height:84dvh;overflow:auto;border:1px solid #c4d4e2;border-radius:16px;padding:22px;color:var(--ink);box-shadow:0 22px 77px #182f5245}
dialog:not([open]){display:none}
dialog.legacy-dialog[open]{display:block;position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:22;background:#fff}
#legacy-dialog-shade{position:fixed;inset:0;z-index:21;background:#1e345447}
dialog::backdrop{background:#1e345447}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.dialog-head h2{overflow-wrap:anywhere}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px;font-size:.93rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0;overflow-wrap:anywhere}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#213e5b;color:white;border-radius:10px;padding:9px 15px;font-size:.87rem;box-shadow:0 5px 15px #233e5d25}
#conversation{max-height:54vh;overflow-y:auto;scrollbar-width:thin}
.history-item[aria-current]{background:#f0f5fb;color:#2b527f}
.stale-note,.stale-tag{color:#844f13;background:#fff4de;border-radius:6px}
.stale-note{font-size:.84rem;margin-bottom:10px;padding:6px 10px}
.stale-tag{display:inline-block;margin-left:6px;padding:2px 5px;font-size:.7rem}
@media(min-width:1550px){.app-shell{grid-template-columns:242px minmax(0,1fr)}.hero{min-height:225px}.hero-visual img{width:390px}}
@media(max-width:1170px){.app-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-inline:10px}.dashboard{gap:15px;grid-template-columns:minmax(0,1fr) 225px}.compose-panel,.recent,.balance-panel{padding:17px}.hero{padding-left:28px}.topbar{height:58px}main{padding-inline:24px}.brand{font-size:1.18rem}}
@media(max-width:980px){.app-shell{grid-template-columns:166px minmax(0,1fr)}.brand{font-size:1.04rem;gap:6px}.brand img{width:31px;height:31px}.sidebar{padding-inline:8px}.dashboard{grid-template-columns:minmax(0,1fr) 198px;gap:12px}.compose-panel,.recent,.balance-panel,.learning-card{padding:14px}h2{font-size:.94rem}.history-nav{padding-inline:2px}.hero{min-height:178px}.hero-visual{left:56%}main{padding:18px}.topbar{padding-inline:18px}.section-title{gap:6px}.support-column .title-icon{width:27px;height:27px}.balance-graphic{padding-block:12px}.hero-copy>p:last-child{font-size:.9rem}}
@media(max-width:820px){.dashboard{grid-template-columns:1fr}.support-column{grid-template-columns:1fr 1fr;align-items:start}.balance-graphic{float:right;padding:15px 0 0 8px}.balance-ring{width:50px;padding:5px}.ring-inner>.ico{width:19px}.legend{margin-top:6px}.balance-panel .panel-note{clear:both}.hero-copy{width:66%}.hero-visual{left:59%}}
@media(max-width:660px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:12px 15px 0;border:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto}.main-nav{grid-column:1/-1;grid-row:2;display:flex;margin:11px 0 0;justify-content:space-between}.main-nav .rail-label,.history-nav,.today .ico,.main-nav>a[aria-current]::after{display:none}.main-nav>a{gap:6px;padding:8px 9px;font-size:.84rem;border-radius:7px 7px 0 0}.main-nav .ico{width:15px;height:15px}.sidebar-foot{grid-column:2;grid-row:1;margin:0;padding:0;border:0}.connection-link{padding:1px 3px;gap:6px}.plug-icon{width:27px;height:27px}.plug-icon .ico{width:15px}.connection-link small{font-size:.67rem}.connection-link strong{font-size:.72rem}.connection-link>svg{display:none}.topbar{height:41px;padding:0 15px}.crumbs,.today{font-size:.71rem}.crumbs{gap:5px}.crumbs>.ico{display:none}main{padding:14px 12px 30px}.hero{min-height:157px;padding:20px 17px;border-radius:14px}.hero-label{font-size:.61rem}.hero-copy{width:68%}.hero h1{font-size:clamp(1.8rem,6.7vw,2.5rem)}.hero-copy>p:last-child{font-size:.82rem}.hero-visual{left:63%}.hero-visual img{width:137%}.dashboard{margin-top:13px}.support-column{gap:10px}.learning-card{display:block}.learn-emblem{margin-bottom:6px}.memory-intro{display:block}.memory-intro .primary{margin-top:14px}.library-tools{flex-wrap:wrap}.library-tools select{width:100%}.study-panel,.review,.library{padding:14px}.today{white-space:nowrap}.compact{font-size:.74rem}.recent-row strong{font-size:.83rem}}
@media(max-width:400px){.support-column{grid-template-columns:1fr}.learning-card{display:flex}.hero-copy{width:75%}.hero-visual{left:67%}.quick button{font-size:.71rem}.compact .ico{display:none}}
@media(pointer:coarse){.main-nav>a,.connection-link,.primary,.secondary,.chip,.dialog-head button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::after,*::before{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:660px){.topbar{height:auto;min-height:41px}.app-controls #sign-out{min-height:44px;white-space:nowrap}#sign-out:not([hidden]) + .today{display:none}}
