/* Optional minimal layout inspired by LibreChat; Lixon AI identity is retained. */
html[data-interface-style=librechat]{
 --bg:#ffffff!important;--bg-2:#f7f7f8!important;--bg-3:#e9eaec!important;
 --fg:#202123!important;--fg-2:#5b6067!important;--border:#d5d7db!important;
 --bubble-user:#f0f1f3!important;--bubble-user-fg:#202123!important;
 --bubble-ai:#ffffff!important;--bubble-ai-fg:#202123!important;
}
html[data-interface-style=librechat][data-theme=dark]{
 --bg:#212121!important;--bg-2:#191919!important;--bg-3:#34363a!important;
 --fg:#eeeeef!important;--fg-2:#b8bdc5!important;--border:#41444a!important;
 --bubble-user:#303136!important;--bubble-user-fg:#eeeeef!important;
 --bubble-ai:#212121!important;--bubble-ai-fg:#eeeeef!important;
}
html[data-interface-style=librechat]:not([data-palette]){--accent:#117365!important;--accent-2:#0b6358!important;--on-accent:#ffffff}
html[data-interface-style=librechat][data-theme=dark]:not([data-palette]){--accent:#8acfc0!important;--accent-2:#a6ddcf!important;--on-accent:#12372c}
html[data-interface-style=librechat] .sidebar{background:var(--bg-2);border-right:0}
html[data-interface-style=librechat] .sidebar-header{min-height:68px;padding:16px}
html[data-interface-style=librechat] .logo{font-size:19px;font-weight:650;letter-spacing:-.02em}
html[data-interface-style=librechat] .new-chat{background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:8px;text-align:left;justify-content:flex-start;padding-inline:14px}
html[data-interface-style=librechat] .chat-list{padding-inline:8px}
html[data-interface-style=librechat] .chat-item{border:0;border-radius:7px;padding:10px 12px}
html[data-interface-style=librechat] .chat-item.active .title{font-weight:650}
html[data-interface-style=librechat] .top-bar{background:var(--bg);border-bottom-color:transparent;gap:10px}
html[data-interface-style=librechat] .top-bar .title{font-weight:500}
html[data-interface-style=librechat] .top-bar #modelSelect{border-color:transparent;background:transparent;font-weight:600}
html[data-interface-style=librechat] .top-bar #modelSelect:hover{background:var(--bg-2)}
html[data-interface-style=librechat] .top-bar>.btn{background:transparent;color:var(--fg-2)}
html[data-interface-style=librechat] .messages{padding-top:32px}
html[data-interface-style=librechat] .msg-wrap{max-width:860px;padding-inline:28px}
html[data-interface-style=librechat] .msg{margin-bottom:34px;gap:12px}
html[data-interface-style=librechat] .msg.assistant .avatar{width:28px;height:28px}
html[data-interface-style=librechat] .msg.assistant .role{font-size:13px;font-weight:600;color:var(--fg);min-height:28px;margin-bottom:8px}
html[data-interface-style=librechat] .msg.assistant .content{padding:0;background:transparent;max-width:72ch;line-height:1.85}
html[data-interface-style=librechat] .msg.user{flex-direction:row-reverse;justify-content:flex-start;align-items:flex-start}
html[data-interface-style=librechat] .msg.user>.avatar{display:flex;width:28px;height:28px;flex:0 0 28px;background:var(--accent);color:var(--on-accent,#fff);font-size:13px;line-height:1}
html[data-interface-style=librechat] .msg.user>.body{flex:0 1 auto;min-width:0;max-width:min(85%,calc(100% - 40px));display:flex;flex-direction:column;align-items:flex-end}
html[data-interface-style=librechat] .msg.user .role{margin-bottom:7px;justify-content:flex-end}
html[data-interface-style=librechat] .msg.user .content{padding:12px 18px;background:var(--bubble-user);color:var(--bubble-user-fg);border-radius:14px;text-align:left;max-width:100%}
html[data-interface-style=librechat] .msg.user .msg-actions{justify-content:flex-end}
html[data-interface-style=librechat] .msg .msg-actions{gap:4px}
html[data-interface-style=librechat] .composer-wrap{background:var(--bg);border-top:0;padding-bottom:max(18px,env(safe-area-inset-bottom))}
html[data-interface-style=librechat] .composer{max-width:820px;background:var(--bg);border:1px solid #8b9096;border-radius:16px;padding:12px 14px 8px;gap:7px}
html[data-interface-style=librechat][data-theme=dark] .composer{border-color:#70747b;background:#292a2d}
html[data-interface-style=librechat] .composer-resize-bar{max-width:820px;background:transparent}
html[data-interface-style=librechat] .web-search-toggle{background:var(--bg-2);border:1px solid var(--border);border-radius:7px;font-size:12px}
html[data-interface-style=librechat] .web-search-toggle[aria-pressed=true]{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent)}
html[data-interface-style=librechat] .send-btn{border-radius:10px;color:var(--on-accent,#fff)}
html[data-interface-style=librechat] .form-row input:not([type=checkbox]):not([type=color]),
html[data-interface-style=librechat] .form-row select,
html[data-interface-style=librechat] .form-row textarea{border-color:#8b9096}
html[data-interface-style=librechat][data-theme=dark] .form-row input:not([type=checkbox]):not([type=color]),
html[data-interface-style=librechat][data-theme=dark] .form-row select,
html[data-interface-style=librechat][data-theme=dark] .form-row textarea{border-color:#70747b}
.interface-style-description{font-size:12px;color:var(--fg-2);line-height:1.65;margin:0}
.prompt-editor{padding-top:4px}
.prompt-editor>summary{font-weight:550;cursor:pointer;min-height:44px;padding-block:10px}
.prompt-template-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 14px}
.prompt-template-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.prompt-template-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}
.prompt-template-row .btn{min-height:40px;font-size:12px;padding:6px 10px}
.prompt-editor label{display:block;font-size:13px;margin:10px 0 6px}
.prompt-editor input,.prompt-editor textarea{display:block;width:100%;font:inherit}
.prompt-editor textarea{min-height:100px;resize:vertical}
#promptTemplateAdd{margin-top:10px;min-height:40px}
#promptTemplateStatus{font-size:12px;color:var(--fg-2);line-height:1.5;min-height:18px;margin-top:8px}
.prompt-templates-menu{max-height:min(420px,calc(var(--app-height,100dvh) - 24px));overflow:auto}
.prompt-templates-menu button{min-height:44px;padding:10px 12px;font-size:13px}
.prompt-templates-menu .prompt-manage{border-top:1px solid var(--border);border-radius:0;font-weight:600}
.continue-answer{color:var(--accent)!important;font-weight:600}
@media(min-width:1025px){
 html[data-interface-style=librechat]:not(.sidebar-collapsed) .sidebar{width:260px;min-width:260px}
 html[data-interface-style=librechat] .top-bar .title{max-width:210px;flex:0 1 auto;order:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-interface-style=librechat] #menuBtn{order:0}
 html[data-interface-style=librechat] #modelSelect{order:2;margin-right:auto;max-width:300px}
 html[data-interface-style=librechat] #thinkingToggle{order:3}
 html[data-interface-style=librechat] #chatFindBtn{order:4}
 html[data-interface-style=librechat] .top-bar>.btn{order:5}
 html[data-interface-style=librechat] #scenarioBtn{order:6}
}
@media(max-width:1024px){
 html[data-interface-style=librechat] .msg-wrap{padding-inline:20px}
 html[data-interface-style=librechat] .msg.user>.body{max-width:min(90%,calc(100% - 40px))}
 html[data-interface-style=librechat] .messages{padding-top:22px}
 html[data-interface-style=librechat] .composer-wrap{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:600px){
 html[data-interface-style=librechat] .top-bar{gap:6px}
 html[data-interface-style=librechat] .msg-wrap{padding-inline:14px}
 html[data-interface-style=librechat] .msg{margin-bottom:26px;gap:9px}
 html[data-interface-style=librechat] .msg.user>.body{max-width:calc(100% - 40px)}
 html[data-interface-style=librechat] .msg.user .content{padding:10px 14px;border-radius:12px}
 html[data-interface-style=librechat] .composer{padding:8px 10px 6px;border-radius:14px}
}
@media(max-height:540px){html[data-interface-style=librechat] .composer{padding:5px 10px;gap:3px}html[data-interface-style=librechat] .composer-wrap{padding-bottom:5px}}
/* Workspace layout: centered landing composer and a collapsible utility rail. */
.libre-tools,#libreToolsToggle{display:none}
html[data-interface-style=librechat] #libreToolsToggle:not([hidden]){display:inline-flex;order:9;margin-left:4px;font-size:22px}
html[data-interface-style=librechat] .libre-tools:not([hidden]){display:flex;flex-direction:column;gap:8px;width:224px;flex:none;padding:12px;background:var(--bg-2);border-left:1px solid var(--border);overflow-y:auto}
.libre-tools-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.libre-tools-header h2{font-size:14px;font-weight:600;margin:0}
.libre-tools>button{width:100%;min-height:46px;padding:12px;text-align:left;border:1px solid var(--border);border-radius:9px;background:transparent;color:var(--fg);font:inherit;font-size:13px}
.libre-tools>button:hover{background:var(--bg-3)}
html[data-interface-style=librechat] .libre-welcome{justify-content:center;overflow-y:auto}
html[data-interface-style=librechat] .libre-welcome .messages{flex:none;overflow:visible;padding:0}
html[data-interface-style=librechat] .libre-welcome .empty-state{height:auto;padding:20px 20px 28px}
html[data-interface-style=librechat] .libre-welcome .empty-state h2{font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-.025em;margin:0}
html[data-interface-style=librechat] .libre-welcome .empty-state p,
html[data-interface-style=librechat] .libre-welcome .empty-state .prompts{display:none}
html[data-interface-style=librechat] .libre-welcome .composer-wrap{margin-bottom:12vh}
html[data-interface-style=librechat] .composer{max-width:850px;border-color:var(--border);background:var(--bg-2)}
html[data-interface-style=librechat][data-theme=dark] .composer{background:#303030;border-color:#303030}
html[data-interface-style=librechat] .composer-meta{display:none}
html[data-interface-style=librechat] .composer-options .web-search-toggle{border-radius:20px;background:transparent;padding-inline:12px}
html[data-interface-style=librechat] .composer-resize-bar{min-height:12px;margin-bottom:0}
html[data-interface-style=librechat] .composer-resize-handle{min-height:12px}
html[data-interface-style=librechat] .resize-label{display:none}
html[data-interface-style=librechat] .composer textarea{min-height:44px}
html[data-interface-style=librechat] .send-btn{border-radius:50%}
@media(max-width:1279px){
 html[data-interface-style=librechat] .libre-tools:not([hidden]){position:absolute;right:0;top:64px;bottom:0;z-index:25;width:min(280px,85vw);border:1px solid var(--border)}
}
@media(max-width:600px){
 html[data-interface-style=librechat] .libre-welcome .empty-state h2{font-size:30px}
 html[data-interface-style=librechat] .libre-welcome .composer-wrap{margin-bottom:8vh}
 html[data-interface-style=librechat] .libre-welcome .empty-state{padding-bottom:18px}
 html[data-interface-style=librechat] .composer-resize-handle{min-height:24px}
}
@media(max-height:540px){
 html[data-interface-style=librechat] .libre-welcome .composer-wrap{margin-bottom:0}
 html[data-interface-style=librechat] .libre-welcome .empty-state{padding:6px}
 html[data-interface-style=librechat] .libre-welcome .empty-state h2{font-size:24px}
}
@media(min-width:800px){
 html[data-interface-style=librechat] .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
 html[data-interface-style=librechat] .composer>textarea,html[data-interface-style=librechat] .composer>.attach-strip,html[data-interface-style=librechat] .composer>.attachment-status{grid-column:1/-1}
 html[data-interface-style=librechat] .composer-options{grid-column:1;align-self:center;padding:0 2px;gap:6px}
 html[data-interface-style=librechat] .composer-actions{grid-column:2;padding:0;flex-wrap:nowrap}
 html[data-interface-style=librechat] .composer-actions .spacer{display:none}
}
