/* Open WebUI-inspired presentation, built on Lixon tokens and existing avatars. */
html[data-interface-style=openwebui] .sidebar{background:var(--bg-2);border-right:0}
html[data-interface-style=openwebui] .sidebar-header{min-height:66px;padding:16px}
html[data-interface-style=openwebui] .logo{font-size:20px;font-weight:650;letter-spacing:-.025em}
html[data-interface-style=openwebui] .new-chat{border-radius:12px;background:transparent;color:var(--fg);border:1px solid var(--border);justify-content:flex-start}
html[data-interface-style=openwebui] .chat-item{border:0;border-radius:10px;padding:11px 12px}
html[data-interface-style=openwebui] .top-bar{background:var(--bg);border-bottom:0;gap:12px}
html[data-interface-style=openwebui] #modelSelect{background:transparent;border-color:transparent;font-size:16px;font-weight:650;max-width:min(52vw,440px)}
html[data-interface-style=openwebui] .top-bar .title{font-size:13px;color:var(--fg-2);font-weight:400}
html[data-interface-style=openwebui] .msg-wrap{max-width:900px;padding-inline:28px}
html[data-interface-style=openwebui] .msg{margin-bottom:32px;gap:12px}
html[data-interface-style=openwebui] .msg.assistant .content{background:transparent;padding:0;line-height:1.85}
html[data-interface-style=openwebui] .msg.user{justify-content:flex-end}
html[data-interface-style=openwebui] .msg.user>.body{flex:0 1 auto;max-width:86%}
html[data-interface-style=openwebui] .msg.user .content{background:var(--bg-2);color:var(--fg);border-radius:22px;padding:12px 18px}
html[data-interface-style=openwebui] .msg.user .role{justify-content:flex-end}
html[data-interface-style=openwebui] .msg .msg-actions{gap:8px;flex-wrap:wrap}
html[data-interface-style=openwebui] .composer-wrap{border:0;background:var(--bg);padding-bottom:max(20px,env(safe-area-inset-bottom))}
html[data-interface-style=openwebui] .composer{max-width:850px;border-radius:26px;border:1px solid var(--border);padding:16px 18px 10px;background:var(--bg-2)}
html[data-interface-style=openwebui] .composer-resize-bar{max-width:850px;background:transparent}
html[data-interface-style=openwebui] .resize-label{display:none}
html[data-interface-style=openwebui] .composer textarea{min-height:44px;background:transparent}
html[data-interface-style=openwebui] .send-btn{border-radius:50%}
html[data-interface-style=openwebui] .composer-options .web-search-toggle{border-radius:20px;font-size:12px;padding-inline:12px}
html[data-interface-style=openwebui] .composer-meta{display:none}
html[data-interface-style=openwebui] .libre-welcome{display:flex;flex-direction:column}
html[data-interface-style=openwebui] .libre-welcome .messages{flex:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:22px}
html[data-interface-style=openwebui] .empty-state h2{font-size:34px;letter-spacing:-.04em;font-weight:650}
html[data-interface-style=openwebui] .libre-welcome .composer-wrap{margin-bottom:14vh}
.workspace-shortcuts{display:flex;gap:6px;padding:8px 12px;flex-wrap:wrap}
.workspace-shortcuts .btn{border-radius:10px;flex:1;min-height:44px;font-size:13px;background:transparent;color:var(--fg-2);border:1px solid var(--border)}
.message-bookmark[aria-pressed=true]{color:var(--accent);font-weight:600}
#workspaceDialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:18px;overflow:auto;overscroll-behavior:contain}
#workspaceDialog::backdrop{background:rgba(0,0,0,.4)}
#workspaceDialog header{display:flex;align-items:center;gap:12px;margin-bottom:16px}
#workspaceDialog h2{flex:1;font-size:20px;margin:0}
#workspaceDialog input{width:100%;min-height:44px;padding:10px 12px;background:var(--bg-2);color:var(--fg);border:1px solid var(--border);border-radius:10px;font:inherit}
#workspaceDialog>p{font-size:13px;line-height:1.6;color:var(--fg-2)}
.workspace-library-list article{padding:18px 0;border-bottom:1px solid var(--border)}
.workspace-library-list p{line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--fg-2)}
.workspace-library-list article>div{display:flex;gap:8px}
.workspace-library-list .btn{min-height:44px}
.composer:has(.workspace-slash){position:relative}
.workspace-slash{position:absolute;bottom:calc(100% + 8px);left:0;right:0;z-index:35;max-height:min(320px,40dvh);overflow:auto;padding:6px;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.workspace-slash button{display:block;width:100%;text-align:left;background:transparent;color:var(--fg);border:0;border-radius:8px;padding:12px;font:inherit;min-height:44px;cursor:pointer}
.workspace-slash button[aria-selected=true]{background:var(--bg-3);color:var(--fg)}
@media(min-width:1025px){html[data-interface-style=openwebui]:not(.sidebar-collapsed) .sidebar{width:268px;min-width:268px}}
@media(max-width:600px){html[data-interface-style=openwebui] .msg-wrap{padding-inline:14px}html[data-interface-style=openwebui] .composer{border-radius:22px;padding:12px}html[data-interface-style=openwebui] .libre-welcome .composer-wrap{margin-bottom:6vh}html[data-interface-style=openwebui] .empty-state h2{font-size:28px}}
@media(max-height:540px){html[data-interface-style=openwebui] .libre-welcome .composer-wrap{margin-bottom:0}}
/* Match the compact Open WebUI home hierarchy without replacing Lixon controls. */
.ow-navigation,.ow-workspace,.ow-recent-label,.ow-account,.ow-model-label{display:none}
html[data-interface-style=openwebui] .sidebar{display:flex;flex-direction:column;background:var(--bg-2);border-right:1px solid var(--border)}
html[data-interface-style=openwebui] .sidebar-header{min-height:56px;padding:12px 14px;border:0}
html[data-interface-style=openwebui] .sidebar-header .logo{font-size:16px}
html[data-interface-style=openwebui] #newChatBtn,html[data-interface-style=openwebui] #newScenarioBtn{display:none}
html[data-interface-style=openwebui] .ow-navigation{display:grid;gap:2px;padding:4px 10px 12px}
html[data-interface-style=openwebui] .ow-navigation button,html[data-interface-style=openwebui] .ow-workspace button{display:flex;align-items:center;gap:12px;min-height:40px;width:100%;padding:8px 12px;border:0;border-radius:9px;background:transparent;color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer}
html[data-interface-style=openwebui] .ow-navigation button:hover,html[data-interface-style=openwebui] .ow-workspace button:hover{background:var(--bg-3)}
html[data-interface-style=openwebui] .ow-nav-icon{width:20px;font-size:20px;line-height:1;text-align:center;color:var(--fg-2)}
html[data-interface-style=openwebui] .ow-workspace:not([hidden]){display:grid;padding:2px 12px 8px 40px}
html[data-interface-style=openwebui] .ow-workspace button{font-size:13px;min-height:36px;color:var(--fg-2)}
html[data-interface-style=openwebui] .workflow-search{display:none}
html[data-interface-style=openwebui] .workflow-search.ow-search-open{display:flex}
html[data-interface-style=openwebui] .chat-folder-section,html[data-interface-style=openwebui] .workspace-shortcuts{display:none}
html[data-interface-style=openwebui] .ow-recent-label:not([hidden]){display:block;padding:12px 18px 8px;color:var(--fg-2);font-size:12px}
html[data-interface-style=openwebui] #chatList{flex:1;min-height:0;overflow:auto}
html[data-interface-style=openwebui] .chat-item{font-size:13px;padding:10px 12px;margin:1px 8px}
html[data-interface-style=openwebui] .ow-account:not([hidden]){display:flex;align-items:center;gap:10px;margin:4px 12px 2px;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer}
html[data-interface-style=openwebui] .ow-account:hover{background:var(--bg-3)}
html[data-interface-style=openwebui] .ow-account img{height:28px;width:28px;border-radius:50%;object-fit:cover}
html[data-interface-style=openwebui] .sidebar-footer{border:0;padding:2px 10px 10px;grid-template-columns:1fr 1fr}
html[data-interface-style=openwebui] .sidebar-footer button{justify-content:flex-start;color:var(--fg-2)}
html[data-interface-style=openwebui] .top-bar{min-height:64px;padding-inline:24px}
html[data-interface-style=openwebui] .top-bar .title{display:none}
html[data-interface-style=openwebui] .ow-model-label:not([hidden]){display:block;order:-1;font-size:16px;font-weight:650;white-space:nowrap}
html[data-interface-style=openwebui] #modelSelect{order:-1;font-size:14px;font-weight:500;max-width:min(45vw,320px)}
html[data-interface-style=openwebui] .libre-welcome .messages{align-items:center;justify-content:center;padding:22px 24px}
html[data-interface-style=openwebui] .empty-state{height:auto;align-items:flex-start;text-align:left;width:min(100%,820px);padding:0;color:var(--fg)}
html[data-interface-style=openwebui] .ow-welcome-mark{width:48px;height:48px;border-radius:50%;object-fit:cover;margin-bottom:16px}
html[data-interface-style=openwebui] .empty-state h2{font-size:clamp(30px,3vw,42px);line-height:1.14;margin-bottom:2px;letter-spacing:-.035em}
html[data-interface-style=openwebui] .empty-state>p{font-size:clamp(24px,2.8vw,38px);line-height:1.2;color:var(--fg-2);margin:0 0 28px}
html[data-interface-style=openwebui] .empty-state .prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:none;margin:0;width:100%}
html[data-interface-style=openwebui] .empty-state .prompts button{display:flex;flex-direction:column;justify-content:space-between;min-height:100px;padding:18px 20px;border:0;border-radius:20px;background:var(--bg-2);color:var(--fg);font-size:14px;line-height:1.45;cursor:pointer}
html[data-interface-style=openwebui] .empty-state .prompts button:hover{background:var(--bg-3)}
html[data-interface-style=openwebui] .empty-state .prompts strong{font-size:15px;font-weight:600}
html[data-interface-style=openwebui] .empty-state .prompts span{color:var(--fg-2);font-size:12px}
html[data-interface-style=openwebui] .libre-welcome .composer-wrap{margin-bottom:0}
html[data-interface-style=openwebui] .composer-wrap{padding-top:2px;padding-bottom:max(14px,env(safe-area-inset-bottom))}
html[data-interface-style=openwebui] .composer-resize-bar{min-height:12px;margin-bottom:1px}
html[data-interface-style=openwebui] .composer-resize-handle{min-height:12px}
html[data-interface-style=openwebui] .composer-resize-handle>span:first-child{width:26px;height:3px}
html[data-interface-style=openwebui] .composer{max-width:850px;padding:6px 10px 6px;border-radius:24px;gap:0}
html[data-interface-style=openwebui] .composer textarea{min-height:44px;padding:8px 10px;font-size:15px}
html[data-interface-style=openwebui] .composer-options{padding:0 8px 2px;gap:5px}
html[data-interface-style=openwebui] .composer-options .web-search-toggle{min-height:29px;padding:3px 9px;font-size:11px}
html[data-interface-style=openwebui] .composer-actions{padding:0 3px}
html[data-interface-style=openwebui] .send-btn{width:32px;height:32px}
@media(max-width:700px){html[data-interface-style=openwebui] .top-bar{padding-inline:10px;gap:5px}html[data-interface-style=openwebui] .ow-model-label{font-size:13px}html[data-interface-style=openwebui] .libre-welcome .messages{padding:16px}html[data-interface-style=openwebui] .empty-state .prompts{gap:8px}html[data-interface-style=openwebui] .empty-state .prompts button{min-height:86px;padding:12px;border-radius:14px}html[data-interface-style=openwebui] .empty-state>p{margin-bottom:18px}}
@media(max-width:480px){html[data-interface-style=openwebui] .empty-state .prompts{grid-template-columns:1fr 1fr}html[data-interface-style=openwebui] .empty-state .prompts button{min-height:78px}html[data-interface-style=openwebui] .empty-state .prompts span{display:none}html[data-interface-style=openwebui] .ow-model-label{display:none!important}}
html[data-interface-style=openwebui] .sidebar.ow-workspace-open .chat-folder-section{display:block}
html[data-interface-style=openwebui] .sidebar.ow-workspace-open .workspace-shortcuts{display:flex}
/* Settings keep the existing synced fields, arranged like a compact preferences page. */
html[data-interface-style=openwebui] #settingsModal .modal{width:min(980px,96vw);max-width:96vw;border-radius:20px}
html[data-interface-style=openwebui] #settingsModal .modal-header{padding:18px 24px}
html[data-interface-style=openwebui] #settingsModal .modal-header h3{font-size:20px}
html[data-interface-style=openwebui] #settingsModal .modal-body{display:grid;grid-template-columns:160px minmax(0,1fr);align-content:start;gap:0 24px;padding:14px 24px 20px}
html[data-interface-style=openwebui] #settingsModal .tabs{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;position:sticky;top:0;align-self:start;border:0;margin:0;gap:3px}
html[data-interface-style=openwebui] #settingsModal .tab{min-height:40px;padding:9px 12px;text-align:left;border-radius:9px;border:0;color:var(--fg-2)}
html[data-interface-style=openwebui] #settingsModal .tab.active{background:var(--bg-2);color:var(--fg);font-weight:600}
html[data-interface-style=openwebui] #settingsModal .tab-panel{grid-column:2;grid-row:1;min-width:0}
html[data-interface-style=openwebui] #settingsModal .form-row{padding-block:10px;border-bottom:1px solid var(--border)}
html[data-interface-style=openwebui] #settingsModal .modal-footer{padding:14px 24px}
@media(max-width:680px){html[data-interface-style=openwebui] #settingsModal .modal-body{display:block;padding:12px 16px}html[data-interface-style=openwebui] #settingsModal .tabs{position:static;flex-direction:row;overflow-x:auto;margin-bottom:12px}html[data-interface-style=openwebui] #settingsModal .tab{flex:none}html[data-interface-style=openwebui] #settingsModal .modal-header,html[data-interface-style=openwebui] #settingsModal .modal-footer{padding-inline:16px}}
