.header{justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.header__logo{font-family:Space Grotesk,Arial,Helvetica,sans-serif;font-size:20px;font-weight:600}.header__nav{align-items:center;gap:24px;display:flex}.header__link{color:#1c1c1c99;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:500;text-decoration:none;transition:background-color .2s,color .2s}.header__link:hover{background:#7c5cff14}.header__link--active{color:#fff;background:#7c5cff}.header__menu-btn{width:24px;height:24px;padding:0;display:none}.header__menu-btn svg{width:100%;height:100%}@media (width<=1200px){.header{border-bottom:1px solid #0000001a;justify-content:flex-start;gap:12px;padding:12px 16px}.header__menu-btn{display:block}.header__logo{margin-left:auto}.header__nav{z-index:101;background-color:#fff;border-top:1px solid #0000001a;flex-direction:column;justify-content:end;align-items:flex-start;gap:8px;width:75%;max-width:255px;padding:24px 20px;display:none;position:fixed;top:47px;bottom:0;left:0}.header__nav_mobile{display:flex}.header__link{width:100%;padding:12px 0;font-size:15px}}.app-layout{flex-direction:column;min-height:100vh;display:flex}.app-layout__main{flex-direction:column;flex:1;padding:0 16px 40px;display:flex}.app-layout__backdrop{display:none}@media (width<=1200px){.app-layout__backdrop{top:47px;inset-inline:0;z-index:99;background:#0000004d;display:block;position:fixed;bottom:0}}.intro{flex-direction:column;flex-grow:1;justify-content:center;align-items:flex-start;max-width:900px;margin:0 auto;padding:24px 16px;display:flex}.intro__title{font-family:Space Grotesk,Arial,Helvetica,sans-serif;font-size:40px;line-height:1.2}.intro__subtitle{color:#1c1c1cb3;margin-top:12px;font-size:18px}.intro__start-by{color:#1c1c1cb8;max-width:620px;margin-top:16px;font-size:16px}.intro__cards{gap:20px;margin-top:48px;display:flex}.intro__card{border:1px solid #1c1c1c1f;border-radius:24px;flex-direction:column;gap:18px;max-width:280px;min-height:220px;padding:24px;display:flex}.intro__card-icon{border-radius:18px;justify-content:center;align-items:center;width:56px;height:56px;display:flex}.intro__card-title{font-family:Space Grotesk,Arial,Helvetica,sans-serif;font-size:18px}.intro__card-description{color:#1c1c1cb3;font-size:14px}.intro__start{color:#fff;background:linear-gradient(135deg,#8e68ff,#6e40ff);border-radius:999px;min-width:160px;margin-top:40px;padding:14px 28px;font-weight:700;box-shadow:0 16px 30px #7c5cff29}.intro__title{align-items:center;gap:12px;display:inline-flex}.intro__title-icon{background:#7c5cff1f;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}@media (width<=1200px){.intro{padding:24px 16px 40px}.intro__title{font-size:32px}.intro__cards{flex-direction:column;width:100%;margin-top:32px}.intro__card{width:100%;max-width:none}}.upload-area{color:#1c1c1c80;background:#f6f3ff;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:10px;height:145px;font-family:Work Sans,Arial,Helvetica,sans-serif;font-size:14px;font-weight:400;line-height:120%;display:flex}.upload-area__label{cursor:pointer;text-underline-offset:2px;font-size:14px;font-weight:400;line-height:1.2;text-decoration:none}.upload-area__label img{margin:0 auto 8px}.upload-area__label:hover{color:#1c1c1c}.upload-area__label .underline{text-decoration:underline}.upload-area__input{display:none}@media (width<=394px){.upload-area__label span{display:none}}.knowledge-base{max-width:760px;margin:0 auto;padding-top:34px}.knowledge-base__title{margin-bottom:24px;font-family:Space Grotesk,Arial,Helvetica,sans-serif;font-size:32px;line-height:1.2}.knowledge-base__content{flex-direction:column;gap:16px;display:flex}.knowledge-base__label{font-size:14px;font-weight:600}.knowledge-base__message{color:#1c1c1cb3}.knowledge-base__message--error{color:#c0392b}.knowledge-base__list{flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none;display:flex}.knowledge-base__item{border:1px solid #1c1c1c1f;border-radius:16px;flex:260px;justify-content:space-between;align-items:flex-start;gap:16px;min-width:220px;padding:16px 18px;display:flex}.knowledge-base__file-title{font-weight:600}.knowledge-base__file-name{color:#1c1c1ca6;font-size:14px}.knowledge-base__delete{color:#1c1c1cb3;font-size:24px;line-height:1}.knowledge-base__save{color:#fff;background:#7c5cff;border-radius:10px;align-self:flex-start;min-width:140px;padding:12px 18px;font-weight:600}.chat{flex:1;gap:24px;padding-top:34px;display:flex;position:relative}.chat:after{content:"";pointer-events:none;z-index:1;background:linear-gradient(#0000 0%,#fff 35%);height:340px;position:fixed;bottom:0;left:0;right:0}.chat__sidebar{border-right:1px solid #1c1c1c1f;flex-direction:column;flex-shrink:0;gap:12px;width:260px;padding-right:20px;display:flex}@media (width<=1200px){.chat{padding-top:20px}.chat__sidebar{z-index:102;background:#fff;border-right:none;width:75%;max-width:255px;height:70%;padding:20px 16px;transition:transform .25s;position:fixed;top:47px;bottom:0;left:0;overflow-y:auto;transform:translate(-100%);box-shadow:4px 0 16px #00000014}.chat__sidebar_open{transform:translate(0)}.chat__messages,.chat__input-bar{margin-left:0}.chat__input-bar{left:16px;right:16px}}.chat__new-btn{color:#fff;background:#7c5cff;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:600}.chat__title-input{border:1px solid #1c1c1c33;border-radius:8px;padding:10px 12px;font-size:14px}.chat__sidebar-message{color:#1c1c1c99;font-size:14px}.chat__list{flex-direction:column;gap:4px;list-style:none;display:flex;overflow-y:auto}.chat__item{text-align:left;color:#1c1c1ccc;border-radius:8px;width:100%;padding:10px 12px;font-size:14px}.chat__item:hover{background:#1c1c1c0d}.chat__item_active{color:#1c1c1c;background:#7c5cff1f;font-weight:600}.chat__main{flex-direction:column;flex:1;width:100%;min-width:0;max-width:980px;margin-inline:auto;padding-bottom:120px;display:flex}.chat__no-messages{color:#1c1c1c99;text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;font-size:14px;display:flex}.chat__error{color:#c0392b;text-align:center;flex:1;justify-content:center;align-items:center;font-size:14px;display:flex}.chat__messages{flex-direction:column;flex:1;gap:16px;padding-bottom:110px;padding-right:4px;list-style:none;display:flex;overflow-y:auto}.chat__input-bar{z-index:100;background:#fffffff5;border-top:1px solid #1c1c1c1f;align-items:center;gap:12px;padding-top:16px;padding-bottom:8px;display:flex;position:fixed;bottom:24px;left:calc(300px + max(0px,50vw - 648px));right:max(16px,50vw - 640px)}.chat__input{background:#fff;border:1px solid #1c1c1c2e;border-radius:999px;flex:1;min-width:0;padding:12px 14px;font-size:14px}.chat__input:disabled{background:#f6f3ff}.chat__send-btn{color:#fff;background:#7c5cff;border-radius:999px;min-width:104px;padding:12px 18px;font-weight:600}.chat__send-btn:disabled{opacity:.65;cursor:not-allowed}.chat__message{border-radius:14px;max-width:70%;padding:12px 16px;font-size:14px;line-height:1.5}.chat__message_user{color:#fff;background:#7c5cff;border-bottom-right-radius:4px;align-self:flex-end}.chat__message_assistant{color:#1c1c1c;background:#1c1c1c0d;border-bottom-left-radius:4px;align-self:flex-start}.chat__message_thinking{opacity:.7;font-style:italic}.markdown p{margin-bottom:8px}.markdown p:last-child{margin-bottom:0}.markdown h1,.markdown h2,.markdown h3{margin:12px 0 8px;font-family:Space Grotesk,Arial,Helvetica,sans-serif}.markdown h1:first-child,.markdown h2:first-child,.markdown h3:first-child{margin-top:0}.markdown ul,.markdown ol{margin:8px 0;padding-left:20px}.markdown li{margin-bottom:4px}.markdown strong{font-weight:700}.markdown code{background:#1c1c1c14;border-radius:4px;padding:2px 4px;font-size:13px}.markdown hr{border:none;border-top:1px solid #1c1c1c1f;margin:12px 0}@media (width<=600px){.auth-page{padding:24px 12px}.auth-card__content{padding:24px 20px 20px}}.app{flex-direction:column;min-height:100vh;font-family:Work Sans,Arial,Helvetica,sans-serif;display:flex}html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}:root{--auth-bg:#f6f3ff;--auth-panel:#fff;--auth-line:#1c1c1c1f;--auth-text:#1c1c1c;--auth-muted:#1c1c1cb3;--auth-link:#7c5cff;--auth-link-active:#5d3df0;--auth-button:linear-gradient(135deg, #8e68ff, #6e40ff);--auth-button-disabled:#c9bafc;--auth-error:#d92d20}.auth-page{background:var(--auth-bg);min-height:100vh;color:var(--auth-text);flex-direction:column;justify-content:center;align-items:center;padding:32px 16px;font-family:Space Grotesk,Arial,Helvetica,sans-serif;display:flex}.auth-header{justify-content:center;width:100%;max-width:480px;margin-bottom:16px;display:flex}.header__logo{object-fit:contain;width:108px;height:auto}.auth-card{background:var(--auth-panel);border:1px solid var(--auth-line);border-radius:24px;width:100%;max-width:480px;overflow:hidden;box-shadow:0 24px 48px #2f255614}.auth-nav{border-bottom:1px solid var(--auth-line);background:#7c5cff0a;display:flex}.auth-nav__link{text-align:center;color:var(--auth-muted);flex:1;padding:16px 20px;font-weight:600;text-decoration:none;transition:background-color .2s,color .2s}.auth-nav__link--active{color:var(--auth-link-active);background:#7c5cff1a}.auth-card__content{padding:32px 28px 28px}.auth-card__title{margin:0;font-size:clamp(2rem,2vw + 1rem,2.5rem);line-height:1.15}.auth-card__subtitle{color:var(--auth-muted);margin-top:10px;font-size:.98rem}.auth-form{flex-direction:column;margin-top:24px;display:flex}.auth-form__label{margin-bottom:8px;font-size:.95rem;font-weight:600}.auth-form__input{border:1px solid var(--auth-line);width:100%;color:var(--auth-text);background:#fff;border-radius:12px;padding:12px 14px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.auth-form__input:focus{border-color:#7c5cffb3;outline:none;box-shadow:0 0 0 3px #7c5cff1f}.auth-form__error{color:var(--auth-error);margin-top:6px;margin-bottom:12px;font-size:.8rem}.auth-form__submit{background:var(--auth-button);color:#fff;border:none;border-radius:999px;margin-top:18px;padding:14px 24px;font-size:1rem;font-weight:700;transition:opacity .2s,transform .2s;box-shadow:0 16px 30px #7c5cff2e}.auth-form__submit:hover:not(:disabled){transform:translateY(-1px)}.auth-form__submit:disabled{background:var(--auth-button-disabled);cursor:not-allowed;box-shadow:none}.auth-form__status{min-height:18px;margin-top:12px}@media (width<=600px){.auth-page{padding:24px 12px}.auth-card__content{padding:24px 20px 20px}}*,:before,:after{box-sizing:border-box}*{margin:0;padding:0}body{-webkit-font-smoothing:antialiased;line-height:1.5}img,picture,video,canvas,svg{max-width:100%;display:block}input,button,textarea,select{font:inherit}button{background-color:#0000;border:none}button,label,input[type=checkbox],input[type=radio]{cursor:pointer}
