@font-face{font-family:'Exo 2';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/ferebrum/exo2-cyrillic.woff2') format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/ferebrum/exo2-latin.woff2') format('woff2')}
/* One brand adapter over LibreChat's existing semantic tokens and theme state. */
html{
  --ferebrum-brand:#F17E00;--ferebrum-brand-hover:#d96e00;--ferebrum-ink:#121212;
  --theme-font-family:'Exo 2',sans-serif!important;--theme-display-font-family:'Exo 2',sans-serif!important;
  --accent-primary:241 126 0!important;--accent-primary-hover:217 110 0!important;
  --surface-submit:241 126 0!important;--surface-submit-hover:217 110 0!important;
  --button-primary:241 126 0!important;--button-primary-hover:217 110 0!important;
  --focus-outline:0 120 157!important;--ring-primary:0 120 157!important;
  --surface-canvas:255 255 255!important;--surface-primary:255 255 255!important;
  --surface-primary-alt:255 255 255!important;--surface-secondary:242 242 242!important;
  --surface-secondary-alt:242 242 242!important;--surface-tertiary:242 242 242!important;
  --text-primary:18 18 18!important;--text-secondary:35 35 35!important;--text-muted:91 95 99!important;
  --border-light:227 227 227!important;--border-medium:153 153 153!important;
  --surface-chat:242 242 242!important;--text-on-status:18 18 18!important;
  scrollbar-color:rgb(var(--text-muted)) rgb(var(--surface-secondary));scrollbar-width:thin;
}
html.dark{
  --surface-canvas:21 21 21!important;--surface-primary:21 21 21!important;
  --surface-primary-alt:21 21 21!important;--surface-secondary:35 35 35!important;
  --surface-secondary-alt:35 35 35!important;--surface-tertiary:42 42 42!important;
  --surface-chat:35 35 35!important;--text-primary:242 242 242!important;
  --text-secondary:222 222 222!important;--text-muted:189 195 202!important;
  --border-light:70 70 70!important;--border-medium:115 115 115!important;
  --focus-outline:191 230 255!important;--ring-primary:191 230 255!important;
}
html[data-theme='high-contrast']{--text-primary:0 0 0!important;--text-secondary:0 0 0!important;--text-muted:35 35 35!important;--border-light:18 18 18!important;--border-medium:18 18 18!important;--surface-secondary:255 255 255!important;--surface-chat:255 255 255!important}
html.dark[data-theme='high-contrast']{--surface-canvas:0 0 0!important;--surface-primary:0 0 0!important;--surface-primary-alt:0 0 0!important;--surface-secondary:0 0 0!important;--surface-chat:0 0 0!important;--text-primary:255 255 255!important;--text-secondary:255 255 255!important;--text-muted:255 255 255!important;--border-light:255 255 255!important;--border-medium:255 255 255!important}
body,button,input,textarea,select{font-family:var(--theme-font-family)}
button:not(:disabled),summary,a{cursor:pointer}button:disabled{cursor:not-allowed}
:focus-visible{outline:3px solid rgb(var(--focus-outline));outline-offset:3px}
textarea{resize:none}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:rgb(var(--surface-secondary))}::-webkit-scrollbar-thumb{background:rgb(var(--text-muted));border:2px solid rgb(var(--surface-secondary));border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:rgb(var(--text-secondary))}
.ferebrum-header{border-bottom:1px solid rgb(var(--border-light));background:rgb(var(--surface-canvas))!important}
.ferebrum-wordmark{display:flex;gap:5px;align-items:center;font-size:18px;font-weight:900;letter-spacing:.025em;white-space:nowrap;margin-right:8px}
.ferebrum-wordmark span{color:var(--ferebrum-brand)}
.ferebrum-team-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:40px;padding:8px 17px;border:1px solid #9dcce4;border-radius:999px;background:linear-gradient(135deg,#f6fcff,#dceefa);box-shadow:inset 0 1px 0 #fff,0 3px 10px #34729918;color:#234960!important;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;text-decoration:none;transition:background .18s,box-shadow .18s,border-color .18s}
.ferebrum-team-link::before{content:'';width:18px;height:18px;flex-shrink:0;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M16 4a3 3 0 0 1 0 6M17 13a5 5 0 0 1 4 5v2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.ferebrum-team-link:hover{border-color:#73b4d7;background:linear-gradient(135deg,#eaf8ff,#c5e5f7);box-shadow:inset 0 1px 0 #fff,0 5px 16px #34729928}
.ferebrum-team-link:active{box-shadow:inset 0 2px 5px #34729920}
html.dark .ferebrum-team-link{background:linear-gradient(135deg,#263c4b,#1d303f);border-color:#486f86;color:#d5efff!important;box-shadow:inset 0 1px 0 #ffffff12,0 3px 10px #0003}
html.dark .ferebrum-team-link:hover{background:linear-gradient(135deg,#304d60,#243e51);border-color:#74b4d5}
html[data-theme='high-contrast'] .ferebrum-team-link{background:rgb(var(--surface-primary));border-color:rgb(var(--text-primary));color:rgb(var(--text-primary))!important;box-shadow:none}
@media(max-width:600px){.ferebrum-team-link{font-size:12px;min-height:38px;padding:7px 11px;gap:6px}.ferebrum-team-link::before{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.ferebrum-team-link{transition:none}}
.ferebrum-appearance{display:flex;align-items:center;gap:6px}
.ferebrum-appearance button{display:flex;gap:6px;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:6px 12px;border:1px solid rgb(var(--border-light));border-radius:30px;background:rgb(var(--surface-primary));color:rgb(var(--text-primary));font-size:13px;font-weight:600;transition:background .15s}
.ferebrum-appearance button:hover{background:rgb(var(--surface-secondary));border-color:var(--ferebrum-brand)}
.ferebrum-appearance button[aria-pressed='true']{box-shadow:inset 0 0 0 1px rgb(var(--text-primary))}
.ferebrum-appearance button:active{background:rgb(var(--surface-tertiary))}
.ferebrum-sources{margin-top:18px;border-top:1px solid rgb(var(--border-light));border-bottom:1px solid rgb(var(--border-light));padding:10px 0;font-size:13px}
.ferebrum-sources summary{min-height:36px;align-content:center;font-weight:600;color:rgb(var(--text-secondary))}
.ferebrum-sources summary:hover{color:rgb(var(--text-primary))}
.ferebrum-sources ul{margin:8px 0;padding:12px 18px 12px 30px;border-radius:14px;background:rgb(var(--surface-secondary));line-height:1.6}
.ferebrum-sources a{color:rgb(var(--text-primary));text-decoration:underline;text-underline-offset:3px}
#prompt-textarea{font-size:16px;line-height:1.5}
button[aria-label='Отправить сообщение']:enabled,button[aria-label='Send message']:enabled{background:var(--ferebrum-brand)!important;color:var(--ferebrum-ink)!important;border-radius:30px}
button[aria-label='Отправить сообщение']:enabled:hover,button[aria-label='Send message']:enabled:hover{background:var(--ferebrum-brand-hover)!important}
.ferebrum-auth{isolation:isolate;background:linear-gradient(125deg,#c4e7fc,#eaf6fe 65%,#dcefff)!important;padding:100px 5vw 50px;overflow:hidden}
.ferebrum-auth::before{content:'';position:absolute;inset:-20%;z-index:-1;pointer-events:none;background:repeating-linear-gradient(128deg,transparent 0 14%,#ffffff80 17%,transparent 22%),radial-gradient(ellipse at 65% 25%,#fff8 0,transparent 55%);animation:ferebrum-light 24s ease-in-out infinite alternate}
@keyframes ferebrum-light{from{transform:translate(-3%,-2%) rotate(-3deg);opacity:.55}to{transform:translate(3%,2%) rotate(3deg);opacity:.95}}
.ferebrum-auth main{background:rgb(var(--surface-primary));border-radius:0 28px 28px 0;min-height:650px;box-shadow:12px 20px 60px #487aa414}
.ferebrum-auth main>div{width:100%;max-width:470px;padding:40px}
.ferebrum-auth h1{font-size:30px;line-height:1.25;text-align:left;font-weight:600;margin-bottom:30px}
.ferebrum-auth-eyebrow{font-size:14px;letter-spacing:.18em;color:#4b7192;margin-bottom:24px}
.ferebrum-auth main{position:relative;z-index:1}
.ferebrum-auth-brand{display:none}
.ferebrum-auth-logo{max-height:44px}
.ferebrum-auth input{border-radius:8px;min-height:46px}
.ferebrum-auth button[type='submit']{border-radius:30px;min-height:46px;background:var(--ferebrum-brand);color:var(--ferebrum-ink)}
@media(min-width:1000px){.ferebrum-auth{padding-left:56%}.ferebrum-auth-brand{display:flex;position:absolute;inset:100px 44% 50px 5vw;flex-direction:column;justify-content:center;padding:65px 5vw;border-radius:28px 0 0 28px;background:radial-gradient(ellipse at 100% 70%,#fff2dcbb,transparent 55%),linear-gradient(135deg,#ffffff80,#e7f5ffcc);color:#172838;border:1px solid #ffffffaa}.ferebrum-auth-brand img{position:absolute;top:-76px;left:0;width:230px;height:auto}.ferebrum-auth-brand h2{max-width:560px;font-size:clamp(38px,4vw,64px);font-weight:500;line-height:1.12;letter-spacing:-.035em}.ferebrum-auth-brand p{font-size:20px;line-height:1.5;margin-top:28px;color:#47627b}.ferebrum-auth>div.absolute{left:auto;right:16px}.ferebrum-auth>div:has(.ferebrum-auth-logo){display:none}}
@media(max-width:999px){.ferebrum-auth{padding:32px 20px}.ferebrum-auth main{min-height:520px;border-radius:24px;margin-top:24px}.ferebrum-auth main>div{padding:28px}.ferebrum-auth h1{font-size:26px}.ferebrum-auth-logo{height:44px}}
@media(prefers-reduced-motion:reduce){.ferebrum-auth::before{animation:none}}
@media(max-width:900px){.ferebrum-control-label{display:none}.ferebrum-appearance button{padding:6px}.ferebrum-wordmark{font-size:15px}}
@media(max-width:600px){.ferebrum-wordmark{display:none}.ferebrum-appearance{gap:3px}.ferebrum-appearance button{min-width:34px;min-height:38px}}
@media(prefers-reduced-motion:reduce){.ferebrum-appearance button{transition:none}}
@media(forced-colors:active){html{scrollbar-color:auto}.ferebrum-appearance button,.ferebrum-sources{border-color:CanvasText}}
/* Login composition: shared panel baseline, sunlight arc and glass facets. */
.ferebrum-auth>div.absolute{position:fixed!important;inset:auto 24px 20px auto!important;margin:0!important;z-index:30;padding:8px;border-radius:16px;background:rgb(var(--surface-primary));box-shadow:0 4px 18px #34587920;max-width:calc(100vw - 48px)}
.ferebrum-auth main>div{position:relative;z-index:2}
.ferebrum-auth input{border-color:#a7b7c7!important;border-radius:14px;min-height:60px;background:rgb(var(--surface-primary))}
.ferebrum-auth button[type='submit']{min-height:60px;border-radius:18px;font-size:18px;font-weight:600}
@media(min-width:1000px){
 .ferebrum-auth{padding:150px 5vw 100px 56%;min-height:100svh}
 .ferebrum-auth main{flex:0 0 auto;min-height:660px;height:calc(100svh - 250px);border-radius:0 32px 32px 0}
 .ferebrum-auth-brand{inset:150px 44% auto 5vw;min-height:660px;height:calc(100svh - 250px);padding:70px 5vw;border-radius:32px 0 0 32px;border-bottom:1px solid #ffffffaa}
 .ferebrum-auth-brand::before{content:'';position:absolute;width:88%;height:88%;right:5%;top:15%;border-radius:50%;border-right:2px solid #fff;border-top:1px solid #fff9;background:radial-gradient(ellipse at 100% 45%,#ffcf874d,transparent 60%);pointer-events:none;z-index:0;animation:ferebrum-arc 22s ease-in-out infinite alternate}
 .ferebrum-auth-brand::after{content:'';position:absolute;inset:58% 0 0 0;border-radius:0 0 0 32px;pointer-events:none;background:repeating-linear-gradient(28deg,transparent 0 54px,#ffffffa0 55px 56px,transparent 57px 92px),repeating-linear-gradient(72deg,transparent 0 72px,#6794b14d 73px 74px,transparent 75px 110px),linear-gradient(135deg,#88c9eb88,#ffffff55);clip-path:polygon(0 0,100% 100%,0 100%)}
 .ferebrum-auth-brand h2,.ferebrum-auth-brand p,.ferebrum-auth-eyebrow{position:relative;z-index:1}
 .ferebrum-auth-brand h2{max-width:420px;font-size:clamp(42px,4.6vw,68px);line-height:1.07}
 .ferebrum-auth-brand p{max-width:390px;font-size:21px;color:#4b6680}
 .ferebrum-auth-brand img{top:-100px;width:230px}
 .ferebrum-auth h1{max-width:340px;font-size:34px}
}
@keyframes ferebrum-arc{from{transform:translateY(-8px);opacity:.65}to{transform:translateY(8px);opacity:1}}
@media(max-width:999px){.ferebrum-auth{padding-bottom:90px;overflow-x:clip}.ferebrum-auth main{min-height:480px;min-width:0;width:100%}.ferebrum-auth main>div{min-width:0;max-width:100%;padding:24px}.ferebrum-auth input{max-width:100%}.ferebrum-auth>div.absolute{right:18px!important;bottom:16px!important}}
@media(prefers-reduced-motion:reduce){.ferebrum-auth-brand::before{animation:none}}
.ferebrum-auth input{font-size:18px!important}
.ferebrum-auth label{font-size:15px!important}
.ferebrum-auth>div.absolute{right:calc(5vw + 24px)!important;bottom:118px!important}
@media(min-width:1000px){.ferebrum-auth-brand h2{max-width:470px;font-size:clamp(46px,4.8vw,72px)}.ferebrum-auth-brand p{position:absolute;bottom:42px;left:5vw;right:32px;font-size:18px;margin:0;max-width:none}.ferebrum-auth h1{font-size:36px}}
@media(max-width:999px){.ferebrum-auth>div.absolute{right:32px!important;bottom:24px!important}.ferebrum-auth main{margin-bottom:54px}}
.ferebrum-auth{background:linear-gradient(125deg,#9dcff0,#cee8fa 65%,#b1d8f2)!important}
.ferebrum-auth>div.absolute .absolute{position:static!important;margin:0!important;inset:auto!important}
.ferebrum-auth>div.absolute>div{padding:0!important;background:transparent!important}
.ferebrum-auth>div.absolute{width:max-content;min-width:76px}
.ferebrum-auth>div.absolute{top:174px!important;bottom:auto!important;right:calc(5vw + 28px)!important}
.ferebrum-sites{display:flex;flex-wrap:wrap;gap:10px 20px;position:absolute;bottom:28px;left:5vw;right:28px;z-index:3}
.ferebrum-sites a{font-size:16px;font-weight:500;color:#294d6b;text-decoration:underline;text-underline-offset:4px;min-height:32px;display:inline-flex;align-items:center}
.ferebrum-sites a:hover{color:#a34e00}
@media(min-width:1000px){.ferebrum-auth main>div{max-width:560px;width:100%;padding:48px}.ferebrum-auth h1{font-size:clamp(34px,2.6vw,46px);max-width:440px}.ferebrum-auth input{min-height:68px;font-size:20px!important}.ferebrum-auth label{font-size:17px!important}.ferebrum-auth button[type='submit']{min-height:68px;font-size:22px}.ferebrum-auth-brand h2{font-size:clamp(60px,5vw,96px);max-width:620px}.ferebrum-auth-eyebrow{font-size:18px}.ferebrum-auth-brand p{bottom:78px;font-size:21px}}
@media(min-width:1900px){.ferebrum-auth main>div{max-width:680px;padding:56px}.ferebrum-auth-brand h2{font-size:clamp(84px,4.5vw,130px);max-width:790px}.ferebrum-auth h1{font-size:48px}.ferebrum-auth input{min-height:76px;font-size:24px!important}.ferebrum-auth label{font-size:19px!important}.ferebrum-auth button[type='submit']{min-height:76px;font-size:26px}}
@media(max-width:999px){.ferebrum-auth{padding-top:88px}.ferebrum-auth>div.absolute{top:18px!important;bottom:auto!important;right:24px!important}.ferebrum-sites{position:static;margin-top:28px}}
@media(max-width:999px){.ferebrum-auth-brand{display:block;position:static;background:none;padding:0}.ferebrum-auth-brand> :not(.ferebrum-sites){display:none}.ferebrum-sites{justify-content:center;margin:8px 0 16px;gap:8px 16px}.ferebrum-sites a{font-size:14px}}

/* SOLARGY chat navigation: native conversation controls, presentation only. */
[data-testid="convo-item"] {
  min-height: 50px;
  height: auto !important;
  margin-block: 5px;
  border: 1px solid var(--border-medium, #aab1b9);
  border-radius: 14px !important;
  background: var(--surface-primary);
  box-shadow: 0 2px 5px #00000008;
  transition: border-color 120ms ease, background-color 120ms ease;
}
[data-testid="convo-item"]:hover {
  border-color: var(--ferebrum-brand);
  background: var(--surface-nav-hover) !important;
}
[data-testid="convo-item"].bg-surface-nav-selected {
  border: 2px solid var(--ferebrum-brand);
  background: var(--surface-nav-selected) !important;
  box-shadow: inset 4px 0 0 var(--ferebrum-brand);
}
[data-testid="convo-item"]::before { display: none !important; }
[data-testid="convo-item"]:focus-within {
  outline: 2px solid var(--ferebrum-brand);
  outline-offset: -3px;
}
[data-testid="convo-item"] [role="button"] { min-height: 46px; }
@media (prefers-reduced-motion: reduce) {
  [data-testid="convo-item"] { transition: none; }
}
@media (forced-colors: active) {
  [data-testid="convo-item"] { border-color: ButtonText; }
  [data-testid="convo-item"].bg-surface-nav-selected { border-color: Highlight; }
}

/* Login text and native Chromium autofill must share the same theme colors. */
.ferebrum-auth input{color:rgb(var(--text-primary))!important;caret-color:rgb(var(--text-primary));-webkit-text-fill-color:rgb(var(--text-primary))!important;color-scheme:light}
html.dark .ferebrum-auth input{color-scheme:dark}
.ferebrum-auth input:-webkit-autofill,.ferebrum-auth input:-webkit-autofill:hover,.ferebrum-auth input:-webkit-autofill:focus,.ferebrum-auth input:autofill{color:rgb(var(--text-primary))!important;-webkit-text-fill-color:rgb(var(--text-primary))!important;caret-color:rgb(var(--text-primary));-webkit-box-shadow:0 0 0 1000px rgb(var(--surface-primary)) inset!important;box-shadow:0 0 0 1000px rgb(var(--surface-primary)) inset!important}
.ferebrum-auth input::selection{background:#f58a00;color:#17232a;-webkit-text-fill-color:#17232a}
@media(forced-colors:active){.ferebrum-auth input,.ferebrum-auth input:-webkit-autofill{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;caret-color:CanvasText;box-shadow:none!important;-webkit-box-shadow:none!important}}
