:root{--leya3-menu-h:70px;--leya3-player-h:92px;--leya3-composer-h:132px;--leya3-gap:14px;--leya3-side:318px;--leya3-side-collapsed:78px;--leya3-max:1180px;--leya3-accent:#04b9e9;--leya3-border:rgba(65,197,236,.25);--leya3-bg:rgba(7,11,17,.94)}
html{scroll-behavior:smooth}body{overflow-x:hidden}.leya3-page{width:min(var(--leya3-max),calc(100% - 32px));margin:0 auto;padding:20px 0 calc(var(--leya3-player-h) + 22px);position:relative;box-sizing:border-box}.leya3-hero{height:230px;border:1px solid rgba(45,210,255,.58);border-radius:20px;position:relative;overflow:hidden;background:linear-gradient(110deg,rgba(3,36,53,.95),rgba(2,85,112,.72));box-shadow:0 0 0 1px rgba(0,205,255,.12),0 0 22px rgba(0,193,255,.15);padding:22px 26px;box-sizing:border-box}.leya3-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:28px 28px;pointer-events:none}.leya3-hero-copy{position:relative;z-index:2;width:48%;color:#fff}.leya3-eyebrow{display:inline-flex;width:auto;max-width:max-content;border:1px solid rgba(69,203,238,.28);border-radius:999px;padding:4px 11px;font-size:12px;font-weight:700;letter-spacing:.08em;color:#c9f5ff}.leya3-hero h1{margin:16px 0 8px;font-size:34px;line-height:1.05}.leya3-hero p{margin:0;max-width:510px;font-size:16px;line-height:1.5;color:#d9e6ec}.leya3-earth{position:absolute;right:26px;top:14px;width:52%;height:202px;object-fit:contain;opacity:.54}.leya3-avatar-home{position:absolute;left:26px;bottom:16px;z-index:3}.leya3-avatar{width:104px;height:104px;border-radius:50%;object-fit:cover;border:2px solid rgba(53,211,255,.85);box-shadow:0 0 20px rgba(0,196,255,.28);display:block}.leya3-hero-status,.leya3-compact-status{display:inline-flex;align-items:center;gap:8px;color:#9ff0bb;font-size:13px;white-space:nowrap}.leya3-hero-status{position:absolute;right:25px;bottom:19px;z-index:3;padding:8px 13px;border:1px solid rgba(74,224,139,.27);border-radius:999px;background:rgba(3,44,38,.42)}.leya3-status-dot{width:8px;height:8px;border-radius:50%;background:#38e68a;box-shadow:0 0 10px rgba(56,230,138,.8)}
.leya3-compact{position:fixed;z-index:1250;top:var(--leya3-menu-h);left:50%;transform:translate(-50%,-12px);width:min(var(--leya3-max),calc(100% - 32px));height:64px;display:flex;align-items:center;gap:12px;padding:8px 16px;box-sizing:border-box;border:1px solid rgba(47,194,232,.35);border-radius:0 0 15px 15px;background:linear-gradient(90deg,rgba(4,32,47,.98),rgba(3,92,116,.96));opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}.leya3-compact.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}.leya3-compact-avatar-slot{width:46px;height:46px;flex:0 0 46px}.leya3-compact .leya3-avatar{width:46px;height:46px}.leya3-compact-copy{display:flex;flex-direction:column;color:white}.leya3-compact-copy strong{font-size:17px}.leya3-compact-copy span{font-size:12px;color:#b7c6cd}.leya3-compact-status{margin-left:auto;align-self:flex-end;padding-bottom:2px}
.leya3-workspace{margin-top:16px;height:calc(100vh - var(--leya3-menu-h) - var(--leya3-player-h) - 24px);min-height:430px;display:grid;grid-template-columns:var(--leya3-side) minmax(0,1fr);gap:14px;position:sticky;top:calc(var(--leya3-menu-h) + 8px);z-index:20}.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + 72px);height:calc(100vh - var(--leya3-menu-h) - 72px - var(--leya3-player-h) - 14px)}.leya3-sidebar,.leya3-chat{min-height:0;background:rgba(6,9,14,.94);border:1px solid rgba(122,146,159,.24);border-radius:16px;overflow:hidden}.leya3-sidebar{display:flex;flex-direction:column;padding:12px;box-sizing:border-box;transition:width .2s ease}.leya3-sidebar-head{display:flex;align-items:center;gap:8px}.leya3-brand{min-width:0;flex:1;height:52px;border:1px solid rgba(115,144,160,.26);border-radius:11px;display:flex;align-items:center;gap:10px;padding:7px 9px;color:#fff;text-decoration:none;box-sizing:border-box}.leya3-brand img{width:36px;height:36px;border-radius:10px;object-fit:cover}.leya3-brand span{font-size:16px;font-weight:700;white-space:nowrap}.leya3-brand b{color:#00bde9}.leya3-collapse{width:42px;height:42px;display:grid;grid-template-columns:6px 1fr;gap:4px;padding:8px;border-radius:9px;border:1px solid rgba(118,146,160,.28);background:#111921;cursor:pointer}.leya3-collapse span:first-child{background:#0abce9;border-radius:3px}.leya3-collapse span:last-child{border:1px solid #3f4a51;border-radius:3px}.leya3-new-chat{height:48px;margin-top:12px;border-radius:10px;border:1px solid rgba(150,165,175,.38);background:#15191e;color:#fff;display:flex;align-items:center;gap:12px;padding:0 14px;font-size:15px;font-weight:700;cursor:pointer}.leya3-plus{font-size:24px}.leya3-history-title{padding:16px 6px 9px;font-size:12px;font-weight:700;color:#9ba8ae;letter-spacing:.06em}.leya3-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:5px;scrollbar-width:auto;scrollbar-color:#1687a7 rgba(255,255,255,.05)}.leya3-history::-webkit-scrollbar,.leya3-messages::-webkit-scrollbar{width:14px}.leya3-history::-webkit-scrollbar-track,.leya3-messages::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:10px}.leya3-history::-webkit-scrollbar-thumb,.leya3-messages::-webkit-scrollbar-thumb{background:linear-gradient(#0c6982,#12a9cf);border-radius:10px;border:3px solid rgba(7,12,16,.7)}.leya3-history-item{width:100%;min-height:48px;margin-bottom:7px;border-radius:9px;border:1px solid rgba(130,151,162,.28);background:#15191e;color:#fff;display:flex;align-items:center;text-align:left;padding:0 11px;cursor:pointer}.leya3-history-item.active{background:#063544;border-color:#0ba6ca}.leya3-history-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leya3-delete-chat{opacity:.55;margin-left:8px}.leya3-chat{position:relative;display:flex;flex-direction:column}.leya3-auth{padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.08);color:#c8d2d7;font-size:13px}.leya3-auth a{color:#18c8f1}.leya3-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px calc(var(--leya3-composer-h) + 18px);box-sizing:border-box}.leya-message-row{display:flex;flex-direction:column;margin:0 0 14px}.leya-message-row.user{align-items:flex-end}.leya-message-row.assistant{align-items:flex-start}.leya-message-user,.leya-message-assistant{max-width:min(720px,78%);margin:0;padding:12px 16px;border-radius:14px;color:#fff;font-size:15px;line-height:1.48;white-space:pre-wrap;word-break:break-word}.leya-message-user{background:linear-gradient(135deg,#006a86,#075d73);border:1px solid #048faf}.leya-message-assistant{background:#171b20;border:1px solid #30363c}.leya-message-actions-inline{margin-top:4px}.leya-edit-message{background:transparent;border:0;color:#8ea1aa;font-size:11px;cursor:pointer}.leya-thinking-card{display:block;min-width:270px}.leya-thinking-current{display:block;color:#cbeef7}.leya-thinking-steps{display:none}
.leya3-composer{position:fixed;z-index:1300;bottom:var(--leya3-player-h);left:50%;width:calc(min(var(--leya3-max),calc(100% - 32px)) - var(--leya3-side) - 14px);margin-left:calc(var(--leya3-side)/2 + 7px);transform:translateX(-50%);padding:10px 12px 11px;box-sizing:border-box;background:rgba(4,8,13,.98);border:1px solid rgba(122,145,158,.28);border-radius:16px 16px 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.28)}.leya3-prompts{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.leya3-prompts button{white-space:nowrap;border:1px solid rgba(119,143,155,.3);border-radius:9px;background:#11171c;color:#dce5e9;padding:8px 11px;cursor:pointer}.leya3-input-row{display:flex;gap:10px;align-items:flex-end;border:1px solid rgba(121,148,161,.38);background:#141922;border-radius:14px;padding:9px 10px}.leya3-input-row textarea{flex:1;resize:none;max-height:96px;min-height:32px;border:0;outline:0;background:transparent;color:#fff;font:inherit;padding:7px 4px}.leya3-send,.leya3-stop{width:44px;height:44px;border-radius:11px;border:0;color:white;cursor:pointer}.leya3-send{background:#08abd4}.leya3-stop{background:#7d3030}
.leya3-page.sidebar-collapsed{--leya3-side:var(--leya3-side-collapsed)}.leya3-page.sidebar-collapsed .leya3-sidebar{padding:10px 8px}.leya3-page.sidebar-collapsed .leya3-brand{justify-content:center;padding:6px}.leya3-page.sidebar-collapsed .leya3-brand span,.leya3-page.sidebar-collapsed .leya3-sidebar-label,.leya3-page.sidebar-collapsed .leya3-history-item .leya3-history-title,.leya3-page.sidebar-collapsed .leya3-delete-chat{display:none}.leya3-page.sidebar-collapsed .leya3-sidebar-head{flex-direction:column}.leya3-page.sidebar-collapsed .leya3-collapse{width:46px}.leya3-page.sidebar-collapsed .leya3-new-chat{justify-content:center;padding:0}.leya3-page.sidebar-collapsed .leya3-history-item{justify-content:center;padding:0;min-height:44px}.leya3-page.sidebar-collapsed .leya3-history-item:before{content:"◦";font-size:24px;color:#0bbce7}
#music-player{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:1400!important}.leya3-page #leya-button{display:none!important}
@media(max-width:900px){:root{--leya3-side:248px}.leya3-page{width:calc(100% - 18px)}.leya3-hero{height:210px;padding:18px}.leya3-hero-copy{width:65%}.leya3-earth{width:50%;right:8px}.leya3-workspace{gap:8px}.leya3-composer{width:calc(100% - var(--leya3-side) - 27px);margin-left:calc(var(--leya3-side)/2 + 4px)}}
/* Leya UI3 v2: sidebar compact strip, footer removal, hard composer dock */
html.leya3-active body footer:not(#music-player):not(.music-player){display:none!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
html.leya3-active body{padding-bottom:var(--leya3-player-h)!important}
.leya3-compact{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + 8px)!important;height:calc(100vh - var(--leya3-menu-h) - var(--leya3-player-h) - 24px)!important}
.leya3-sidebar{overflow-y:auto!important;scrollbar-gutter:stable}
.leya3-sidebar-dock{position:sticky!important;top:0!important;z-index:30!important;margin:-12px -12px 12px!important;padding:12px 12px 10px!important;border-bottom:1px solid rgba(65,197,236,.18)!important;background:linear-gradient(180deg,rgba(6,9,14,.99),rgba(6,9,14,.94))!important;box-shadow:0 12px 24px rgba(0,0,0,.22)!important}
.leya3-sidebar-compact-strip{display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;max-height:0!important;min-height:0!important;margin:0!important;padding:0 8px!important;overflow:hidden!important;border:1px solid rgba(65,197,236,0)!important;border-radius:14px!important;opacity:0!important;transform:translateY(-8px)!important;transition:max-height .22s ease,min-height .22s ease,margin .22s ease,padding .22s ease,border-color .22s ease,opacity .18s ease,transform .22s ease!important}
.leya3-page.hero-compact .leya3-sidebar-compact-strip{max-height:66px!important;min-height:58px!important;margin-bottom:8px!important;padding:6px 8px!important;border-color:rgba(65,197,236,.32)!important;background:linear-gradient(90deg,rgba(3,125,156,.23),rgba(255,255,255,.035)),rgba(5,9,14,.98)!important;opacity:1!important;transform:translateY(0)!important}
.leya3-sidebar-avatar-slot{position:relative!important;width:46px!important;height:46px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:50%!important;flex:0 0 46px!important;pointer-events:none!important}
.leya3-sidebar-avatar-slot .leya3-avatar{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:50%!important}
.leya3-sidebar-compact-copy{min-width:0!important;display:grid!important;gap:2px!important;line-height:1.1!important}.leya3-sidebar-compact-copy strong{overflow:hidden!important;color:#f7fbfc!important;font-size:14px!important;font-weight:850!important;text-overflow:ellipsis!important;white-space:nowrap!important}.leya3-sidebar-compact-copy span{overflow:hidden!important;color:rgba(232,251,255,.66)!important;font-size:10px!important;font-weight:750!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.leya3-sidebar-head{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;margin:0 0 8px!important;transition:max-height .22s ease,margin .22s ease,padding .22s ease,opacity .16s ease,border-color .22s ease!important}.leya3-page.hero-compact .leya3-sidebar-head{max-height:0!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important;opacity:0!important;border-color:transparent!important}
.leya3-toggle-rail{position:relative!important;display:grid!important;place-items:center!important;min-height:58px!important;margin:0!important;border:1px solid rgba(65,197,236,.18)!important;border-radius:13px!important;background:rgba(255,255,255,.025)!important}.leya3-toggle-rail:before{content:"";position:absolute;top:8px;left:12px;right:12px;height:1px;background:linear-gradient(90deg,transparent,rgba(65,197,236,.42),transparent)}.leya3-toggle-rail .leya3-collapse{position:relative!important;z-index:1!important;margin:0!important}
.leya3-page.sidebar-collapsed .leya3-sidebar-dock{margin:-10px -8px 12px!important;padding:10px 8px 8px!important}.leya3-page.sidebar-collapsed .leya3-sidebar-compact-strip{grid-template-columns:1fr!important;justify-items:center!important;gap:0!important}.leya3-page.sidebar-collapsed .leya3-sidebar-compact-copy{display:none!important}.leya3-page.sidebar-collapsed .leya3-sidebar-head{display:grid!important;place-items:center!important;padding:4px 0 8px!important}.leya3-page.sidebar-collapsed .leya3-toggle-rail{min-height:54px!important}.leya3-page.sidebar-collapsed .leya3-new-chat{margin-top:12px!important}
.leya3-composer{position:fixed!important;top:auto!important;bottom:var(--leya3-player-h)!important;z-index:1300!important;margin-top:0!important}
html.leya3-active body #music-player,html.leya3-active body footer#music-player,html.leya3-active body .paxor-global-player{display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100vw!important;min-height:var(--leya3-player-h)!important;z-index:1400!important;visibility:visible!important;opacity:1!important;transform:none!important}
@media(max-width:900px){.leya3-sidebar-dock{margin:-12px -12px 10px!important}.leya3-sidebar-compact-copy{display:none!important}.leya3-sidebar-compact-strip{grid-template-columns:1fr!important;justify-items:center!important;gap:0!important}}
/* Leya UI3 v3: requested top compact header and sidebar brand rail */
html.leya3-active body footer:not(#music-player):not(.music-player){display:none!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
.leya3-compact{display:flex!important;position:fixed!important;top:var(--leya3-menu-h)!important;left:50%!important;transform:translate(-50%,-12px)!important;width:min(var(--leya3-max),calc(100% - 32px))!important;height:64px!important;align-items:center!important;gap:12px!important;padding:8px 16px!important;box-sizing:border-box!important;border:1px solid rgba(47,194,232,.35)!important;border-radius:0 0 15px 15px!important;background:linear-gradient(90deg,rgba(4,32,47,.98),rgba(3,92,116,.96))!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;z-index:1250!important;transition:opacity .18s ease,transform .18s ease,visibility .18s!important}
.leya3-compact.is-visible{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,0)!important}
.leya3-compact-avatar-slot{width:46px!important;height:46px!important;flex:0 0 46px!important;position:relative!important}.leya3-compact .leya3-avatar{width:46px!important;height:46px!important}
.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + 72px)!important;height:calc(100vh - var(--leya3-menu-h) - 72px - var(--leya3-player-h) - 14px)!important}
.leya3-sidebar-dock{position:sticky!important;top:0!important;z-index:30!important;margin:-12px -12px 12px!important;padding:12px 12px 10px!important;border-bottom:1px solid rgba(65,197,236,.18)!important;background:linear-gradient(180deg,rgba(6,9,14,.99),rgba(6,9,14,.94))!important;box-shadow:0 12px 24px rgba(0,0,0,.22)!important}
.leya3-sidebar-head{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;align-items:center!important;gap:8px!important;margin:0!important;padding:6px!important;border:1px solid rgba(65,197,236,.2)!important;border-radius:13px!important;background:linear-gradient(180deg,rgba(6,171,212,.12),rgba(255,255,255,.035))!important;box-sizing:border-box!important;opacity:1!important;max-height:none!important;overflow:visible!important}
.leya3-page.hero-compact .leya3-sidebar-head{max-height:none!important;margin:0!important;padding:6px!important;opacity:1!important;border-color:rgba(65,197,236,.2)!important;overflow:visible!important}
.leya3-brand{height:46px!important;min-width:0!important;border:0!important;background:transparent!important;padding:0 4px!important}.leya3-brand img{width:38px!important;height:38px!important}.leya3-brand span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.leya3-collapse{width:42px!important;height:42px!important;display:grid!important;grid-template-columns:7px 1fr!important;gap:4px!important;padding:8px!important;border-radius:10px!important;border:1px solid rgba(118,146,160,.28)!important;background:#111921!important;cursor:pointer!important;transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .2s ease,background .2s ease,box-shadow .2s ease!important;will-change:transform!important}.leya3-collapse span{transition:transform .26s cubic-bezier(.2,.8,.2,1),background .2s ease,border-color .2s ease,box-shadow .2s ease!important}.leya3-collapse:hover,.leya3-collapse:focus-visible{transform:scale(.94)!important;border-color:rgba(32,217,255,.62)!important;background:rgba(4,28,38,.96)!important;box-shadow:0 0 14px rgba(32,217,255,.18)!important}.leya3-collapse:hover span:first-child,.leya3-collapse:focus-visible span:first-child{transform:translateX(4px) scaleY(.72)!important;background:#20d9ff!important}.leya3-collapse:hover span:last-child,.leya3-collapse:focus-visible span:last-child{transform:translateX(-3px)!important;border-color:rgba(233,252,255,.72)!important;box-shadow:inset 0 0 0 1px rgba(32,217,255,.12)!important}.leya3-collapse:active{transform:scale(.88)!important}
.leya3-page.sidebar-collapsed .leya3-sidebar-dock{margin:-10px -8px 12px!important;padding:10px 8px 8px!important}.leya3-page.sidebar-collapsed .leya3-sidebar-head{grid-template-columns:1fr!important;justify-items:center!important;padding:6px 0!important}.leya3-page.sidebar-collapsed .leya3-brand{width:46px!important;justify-content:center!important;padding:0!important}.leya3-page.sidebar-collapsed .leya3-collapse{width:46px!important;margin-top:8px!important}
.leya3-chat{overflow:hidden!important}.leya3-messages{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;scrollbar-color:rgba(18,169,207,.55) rgba(255,255,255,.035)!important}.leya3-chat:hover .leya3-messages{scrollbar-width:auto!important;scrollbar-color:#17c5ee rgba(255,255,255,.07)!important}.leya3-messages::-webkit-scrollbar{width:8px!important}.leya3-chat:hover .leya3-messages::-webkit-scrollbar{width:18px!important}.leya3-messages::-webkit-scrollbar-track{background:rgba(255,255,255,.04)!important;border-radius:12px!important}.leya3-messages::-webkit-scrollbar-thumb{background:linear-gradient(#0d7792,#17c5ee)!important;border-radius:12px!important;border:3px solid rgba(7,12,16,.72)!important}.leya3-chat:hover .leya3-messages::-webkit-scrollbar-thumb{border-width:4px!important;box-shadow:0 0 12px rgba(23,197,238,.24)!important}
.leya3-composer{position:fixed!important;top:auto!important;bottom:var(--leya3-player-h)!important;z-index:1300!important;margin-top:0!important}
html.leya3-active body #music-player,html.leya3-active body footer#music-player,html.leya3-active body .paxor-global-player{display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100vw!important;min-height:var(--leya3-player-h)!important;z-index:1400!important;visibility:visible!important;opacity:1!important;transform:none!important}
@media(max-width:900px){.leya3-sidebar-head{grid-template-columns:1fr!important;justify-items:center!important}.leya3-brand{width:46px!important;justify-content:center!important;padding:0!important}.leya3-brand span{display:none!important}.leya3-collapse{width:46px!important;margin-top:8px!important}.leya3-compact{width:calc(100% - 18px)!important}}
/* Leya UI3 v4: Paxor Music toggle, full-height columns, hover scroll rails */
.leya3-workspace{height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-player-h) - 8px)!important;min-height:0!important;align-items:stretch!important;top:calc(var(--leya3-menu-h) + 8px)!important}
.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + 72px + 8px)!important;height:calc(100dvh - var(--leya3-menu-h) - 72px - var(--leya3-player-h) - 8px)!important;min-height:0!important}
.leya3-sidebar,.leya3-chat{height:100%!important;max-height:100%!important;min-height:0!important}
.leya3-sidebar{overflow:hidden!important}.leya3-history{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}.leya3-chat{overflow:hidden!important}.leya3-messages{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
.leya3-sidebar-dock{position:sticky!important;top:0!important;z-index:35!important}.leya3-compact{z-index:1250!important}.leya3-workspace{z-index:20!important}
.leya3-sidebar-head{grid-template-columns:minmax(0,1fr) 48px!important;align-items:center!important}.leya3-page.hero-compact .leya3-sidebar-head{grid-template-columns:minmax(0,1fr) 48px!important}.leya3-page.sidebar-collapsed .leya3-sidebar-head{grid-template-columns:1fr!important;gap:8px!important}.leya3-page.sidebar-collapsed .leya3-sidebar-head .music-left-toggle{margin-top:0!important}
.leya3-sidebar-head .music-left-toggle{width:48px!important;height:48px!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#354045!important;display:grid!important;place-items:center!important;grid-template-columns:1fr!important;gap:0!important;transition:color .2s ease!important;will-change:auto!important}.leya3-sidebar-head .music-left-toggle:hover,.leya3-sidebar-head .music-left-toggle:focus-visible{color:#e9fcff!important;background:transparent!important;transform:none!important;border:0!important;box-shadow:none!important}.leya3-sidebar-head .music-left-toggle span{box-shadow:none!important}.leya3-sidebar-head .music-sidebar-layout-icon{width:38px!important;height:32px!important;position:relative!important;display:block!important;overflow:hidden!important;box-sizing:border-box!important;border:2.2px solid currentColor!important;border-radius:7px!important;background:transparent!important;color:#354045!important;filter:none!important;transition:color .2s ease,transform .28s cubic-bezier(.2,.8,.2,1),filter .2s ease!important}.leya3-sidebar-head .music-sidebar-layout-icon::after{content:""!important;position:absolute!important;inset:4px!important;border-radius:3px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;pointer-events:none!important}.leya3-sidebar-head .music-sidebar-layout-rail,.leya3-sidebar-head .music-sidebar-layout-content{position:absolute!important;top:4px!important;bottom:4px!important;border-radius:3px!important;transition:left .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1),background .2s ease,box-shadow .2s ease!important;transform:none!important}.leya3-sidebar-head .music-sidebar-layout-rail{left:4px!important;width:11px!important;background:linear-gradient(180deg,#20d9ff,#037d9c)!important;box-shadow:0 0 10px rgba(32,217,255,.34)!important}.leya3-sidebar-head .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.075)!important;border:0!important}.leya3-sidebar-head .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-rail,.leya3-sidebar-head .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.26)!important}.leya3-sidebar-head .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-content,.leya3-sidebar-head .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.27)!important}.leya3-sidebar-head .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.25)!important}.leya3-sidebar-head .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.075)!important}.leya3-sidebar-head .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-rail,.leya3-sidebar-head .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-rail{width:11px!important;box-shadow:0 0 11px rgba(32,217,255,.46)!important}.leya3-sidebar-head .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-content,.leya3-sidebar-head .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.27)!important}.leya3-sidebar-head .music-left-toggle:hover .music-sidebar-layout-icon,.leya3-sidebar-head .music-left-toggle:focus-visible .music-sidebar-layout-icon{color:#e9fcff!important;filter:drop-shadow(0 0 7px rgba(32,217,255,.22))!important}.leya3-sidebar-head .music-left-toggle.is-animating .music-sidebar-layout-icon{animation:musicSidebarLayoutPulse .42s cubic-bezier(.2,.8,.2,1)!important}@keyframes musicSidebarLayoutPulse{0%{transform:scale(1)}45%{transform:scale(.88)}100%{transform:scale(1)}}
.leya3-history,.leya3-messages{scrollbar-width:none!important;scrollbar-color:transparent transparent!important}.leya3-history::-webkit-scrollbar,.leya3-messages::-webkit-scrollbar{width:0!important;height:0!important}.leya3-sidebar:hover .leya3-history,.leya3-history:hover,.leya3-chat:hover .leya3-messages,.leya3-messages:hover{scrollbar-width:auto!important;scrollbar-color:#17c5ee rgba(255,255,255,.07)!important}.leya3-sidebar:hover .leya3-history::-webkit-scrollbar,.leya3-history:hover::-webkit-scrollbar,.leya3-chat:hover .leya3-messages::-webkit-scrollbar,.leya3-messages:hover::-webkit-scrollbar{width:18px!important;height:18px!important}.leya3-sidebar:hover .leya3-history::-webkit-scrollbar-track,.leya3-history:hover::-webkit-scrollbar-track,.leya3-chat:hover .leya3-messages::-webkit-scrollbar-track,.leya3-messages:hover::-webkit-scrollbar-track{background:rgba(255,255,255,.07)!important;border-radius:12px!important}.leya3-sidebar:hover .leya3-history::-webkit-scrollbar-thumb,.leya3-history:hover::-webkit-scrollbar-thumb,.leya3-chat:hover .leya3-messages::-webkit-scrollbar-thumb,.leya3-messages:hover::-webkit-scrollbar-thumb{background:linear-gradient(#0d7792,#17c5ee)!important;border-radius:12px!important;border:4px solid rgba(7,12,16,.72)!important;box-shadow:0 0 12px rgba(23,197,238,.24)!important}
@media(prefers-reduced-motion:reduce){.leya3-sidebar-head .music-left-toggle,.leya3-sidebar-head .music-sidebar-layout-icon,.leya3-sidebar-head .music-sidebar-layout-rail,.leya3-sidebar-head .music-sidebar-layout-content{transition:none!important;animation:none!important}}
@media(max-width:900px){.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + 72px + 6px)!important;height:calc(100dvh - var(--leya3-menu-h) - 72px - var(--leya3-player-h) - 6px)!important}.leya3-sidebar-head{grid-template-columns:1fr!important}.leya3-sidebar-head .music-left-toggle{margin-top:8px!important}.leya3-page.sidebar-collapsed .leya3-sidebar-head .music-left-toggle{margin-top:8px!important}}
/* Leya UI3 v5: clean Paxor Music toggle class */
.leya3-sidebar-head .music-left-toggle{margin:0!important;justify-self:center!important;align-self:center!important}
.leya3-page.sidebar-collapsed .leya3-sidebar-head .music-left-toggle{margin:8px auto 0!important}
@media(min-width:901px){.leya3-page:not(.sidebar-collapsed) .leya3-sidebar-head .music-left-toggle{margin:0!important}}
/* Leya UI3 v6: keep sidebar rail below compact header and stretch to player */
:root{--leya3-compact-real-h:82px;--leya3-compact-safe-gap:18px}
.leya3-compact{height:var(--leya3-compact-real-h)!important;min-height:var(--leya3-compact-real-h)!important}
.leya3-workspace{height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-player-h) - 8px)!important;min-height:0!important;align-items:stretch!important}
.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h) + var(--leya3-compact-safe-gap))!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-compact-safe-gap) - var(--leya3-player-h))!important;min-height:0!important}
.leya3-sidebar,.leya3-chat{height:100%!important;min-height:0!important;max-height:100%!important;align-self:stretch!important}
.leya3-sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:12px!important;box-sizing:border-box!important}
.leya3-sidebar-dock{position:sticky!important;top:0!important;flex:0 0 auto!important;margin:0 0 12px!important;padding:0!important;border-bottom:0!important;background:transparent!important;box-shadow:none!important}
.leya3-page.sidebar-collapsed .leya3-sidebar-dock{margin:0 0 12px!important;padding:0!important}
.leya3-history{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:0!important}
.leya3-chat{display:flex!important;flex-direction:column!important;overflow:hidden!important}.leya3-auth{flex:0 0 auto!important}.leya3-messages{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:0!important}
.leya3-sidebar:hover .leya3-history,.leya3-history:hover,.leya3-chat:hover .leya3-messages,.leya3-messages:hover{padding-right:5px!important}
.leya3-composer{bottom:var(--leya3-player-h)!important}
@media(max-width:900px){:root{--leya3-compact-real-h:72px;--leya3-compact-safe-gap:12px}.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h) + var(--leya3-compact-safe-gap))!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-compact-safe-gap) - var(--leya3-player-h))!important}}
/* Leya UI3 v7: toggle moved into enlarged New chat rail */
.leya3-sidebar-dock,.leya3-sidebar-head{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
.leya3-new-chat{height:64px!important;min-height:64px!important;margin-top:0!important;margin-bottom:14px!important;padding:8px 10px 8px 16px!important;display:grid!important;grid-template-columns:28px minmax(0,1fr) 48px!important;align-items:center!important;gap:10px!important;border-radius:13px!important;border:1px solid rgba(65,197,236,.24)!important;background:linear-gradient(180deg,rgba(18,25,31,.98),rgba(12,16,20,.98))!important;box-shadow:0 10px 22px rgba(0,0,0,.18)!important;text-align:left!important}.leya3-new-chat:hover{border-color:rgba(32,217,255,.42)!important;background:linear-gradient(180deg,rgba(19,31,38,.98),rgba(12,18,22,.98))!important}.leya3-new-chat .leya3-plus{font-size:26px!important;line-height:1!important}.leya3-new-chat .leya3-sidebar-label{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:18px!important;font-weight:850!important;color:#f5fbff!important}
.leya3-new-chat .music-left-toggle{width:48px!important;height:48px!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#354045!important;display:grid!important;place-items:center!important;justify-self:end!important;align-self:center!important;cursor:pointer!important}.leya3-new-chat .music-left-toggle:hover,.leya3-new-chat .music-left-toggle:focus-visible{color:#e9fcff!important;background:transparent!important}.leya3-new-chat .music-sidebar-layout-icon{width:38px!important;height:32px!important;position:relative!important;display:block!important;overflow:hidden!important;box-sizing:border-box!important;border:2.2px solid currentColor!important;border-radius:7px!important;background:transparent!important;color:#354045!important;filter:none!important;transition:color .2s ease,transform .28s cubic-bezier(.2,.8,.2,1),filter .2s ease!important}.leya3-new-chat .music-sidebar-layout-icon::after{content:""!important;position:absolute!important;inset:4px!important;border-radius:3px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;pointer-events:none!important}.leya3-new-chat .music-sidebar-layout-rail,.leya3-new-chat .music-sidebar-layout-content{position:absolute!important;top:4px!important;bottom:4px!important;border-radius:3px!important;transition:left .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1),background .2s ease,box-shadow .2s ease!important}.leya3-new-chat .music-sidebar-layout-rail{left:4px!important;width:11px!important;background:linear-gradient(180deg,#20d9ff,#037d9c)!important;box-shadow:0 0 10px rgba(32,217,255,.34)!important}.leya3-new-chat .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.075)!important}.leya3-new-chat .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-rail,.leya3-new-chat .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.26)!important}.leya3-new-chat .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-content,.leya3-new-chat .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.27)!important}.leya3-new-chat .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.25)!important}.leya3-new-chat .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.075)!important}.leya3-new-chat .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-rail,.leya3-new-chat .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-rail{width:11px!important;box-shadow:0 0 11px rgba(32,217,255,.46)!important}.leya3-new-chat .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-content,.leya3-new-chat .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.27)!important}.leya3-new-chat .music-left-toggle:hover .music-sidebar-layout-icon,.leya3-new-chat .music-left-toggle:focus-visible .music-sidebar-layout-icon{color:#e9fcff!important;filter:drop-shadow(0 0 7px rgba(32,217,255,.22))!important}.leya3-new-chat .music-left-toggle.is-animating .music-sidebar-layout-icon{animation:musicSidebarLayoutPulse .42s cubic-bezier(.2,.8,.2,1)!important}
.leya3-page.sidebar-collapsed .leya3-new-chat{grid-template-columns:1fr!important;justify-items:center!important;padding:8px 0!important}.leya3-page.sidebar-collapsed .leya3-new-chat .leya3-plus,.leya3-page.sidebar-collapsed .leya3-new-chat .leya3-sidebar-label{display:none!important}.leya3-page.sidebar-collapsed .leya3-new-chat .music-left-toggle{justify-self:center!important}
/* Leya UI3 v8: separate New chat rail with toggle button */
.leya3-new-chat-rail{height:70px!important;min-height:70px!important;margin:0 0 14px!important;padding:8px 10px 8px 14px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;align-items:center!important;gap:10px!important;border-radius:14px!important;border:1px solid rgba(65,197,236,.26)!important;background:linear-gradient(180deg,rgba(18,25,31,.98),rgba(12,16,20,.98))!important;box-shadow:0 10px 22px rgba(0,0,0,.18)!important;box-sizing:border-box!important}.leya3-new-chat-rail:hover{border-color:rgba(32,217,255,.42)!important;background:linear-gradient(180deg,rgba(19,31,38,.98),rgba(12,18,22,.98))!important}
.leya3-new-chat-rail .leya3-new-chat{width:100%!important;height:52px!important;min-height:52px!important;margin:0!important;padding:0 8px!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;text-align:left!important}.leya3-new-chat-rail .leya3-new-chat:hover{background:rgba(255,255,255,.035)!important}.leya3-new-chat-rail .leya3-plus{display:block!important;font-size:27px!important;line-height:1!important}.leya3-new-chat-rail .leya3-sidebar-label{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:18px!important;font-weight:850!important;color:#f5fbff!important}
.leya3-new-chat-rail .music-left-toggle{width:48px!important;height:48px!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#354045!important;display:grid!important;place-items:center!important;justify-self:end!important;align-self:center!important;cursor:pointer!important}.leya3-new-chat-rail .music-left-toggle:hover,.leya3-new-chat-rail .music-left-toggle:focus-visible{color:#e9fcff!important;background:transparent!important}.leya3-new-chat-rail .music-sidebar-layout-icon{width:38px!important;height:32px!important;position:relative!important;display:block!important;overflow:hidden!important;box-sizing:border-box!important;border:2.2px solid currentColor!important;border-radius:7px!important;background:transparent!important;color:#354045!important;filter:none!important;transition:color .2s ease,transform .28s cubic-bezier(.2,.8,.2,1),filter .2s ease!important}.leya3-new-chat-rail .music-sidebar-layout-icon::after{content:""!important;position:absolute!important;inset:4px!important;border-radius:3px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;pointer-events:none!important}.leya3-new-chat-rail .music-sidebar-layout-rail,.leya3-new-chat-rail .music-sidebar-layout-content{position:absolute!important;top:4px!important;bottom:4px!important;border-radius:3px!important;transition:left .3s cubic-bezier(.2,.8,.2,1),width .3s cubic-bezier(.2,.8,.2,1),background .2s ease,box-shadow .2s ease!important}.leya3-new-chat-rail .music-sidebar-layout-rail{left:4px!important;width:11px!important;background:linear-gradient(180deg,#20d9ff,#037d9c)!important;box-shadow:0 0 10px rgba(32,217,255,.34)!important}.leya3-new-chat-rail .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.075)!important}.leya3-new-chat-rail .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-rail,.leya3-new-chat-rail .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.26)!important}.leya3-new-chat-rail .music-left-toggle[data-state="expanded"]:hover .music-sidebar-layout-content,.leya3-new-chat-rail .music-left-toggle[data-state="expanded"]:focus-visible .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.27)!important}.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-rail{width:4px!important;box-shadow:0 0 8px rgba(32,217,255,.25)!important}.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"] .music-sidebar-layout-content{left:12px!important;width:20px!important;background:rgba(255,255,255,.075)!important}.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-rail,.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-rail{width:11px!important;box-shadow:0 0 11px rgba(32,217,255,.46)!important}.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"]:hover .music-sidebar-layout-content,.leya3-new-chat-rail .music-left-toggle[data-state="collapsed"]:focus-visible .music-sidebar-layout-content{left:19px!important;width:13px!important;background:rgba(255,255,255,.27)!important}.leya3-new-chat-rail .music-left-toggle:hover .music-sidebar-layout-icon,.leya3-new-chat-rail .music-left-toggle:focus-visible .music-sidebar-layout-icon{color:#e9fcff!important;filter:drop-shadow(0 0 7px rgba(32,217,255,.22))!important}.leya3-new-chat-rail .music-left-toggle.is-animating .music-sidebar-layout-icon{animation:musicSidebarLayoutPulse .42s cubic-bezier(.2,.8,.2,1)!important}
.leya3-page.sidebar-collapsed .leya3-new-chat-rail{height:116px!important;grid-template-columns:1fr!important;grid-template-rows:52px 48px!important;justify-items:center!important;padding:8px 0!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-new-chat{width:48px!important;grid-template-columns:1fr!important;justify-items:center!important;padding:0!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-plus{display:block!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-sidebar-label{display:none!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-left-toggle{justify-self:center!important}
/* Leya UI3 v9: compact header attachment and collapsed rail containment */
.leya3-workspace.compact-active{position:fixed!important;top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(var(--leya3-max),calc(100% - 32px))!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h))!important;margin-top:0!important;z-index:120!important;box-sizing:border-box!important}.leya3-workspace.compact-active .leya3-sidebar{padding-top:10px!important}.leya3-workspace.compact-active .leya3-new-chat-rail{margin-top:0!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail{height:118px!important;min-height:118px!important;max-height:118px!important;grid-template-columns:1fr!important;grid-template-rows:44px 44px!important;gap:6px!important;padding:10px 0!important;align-content:center!important;justify-items:center!important;overflow:hidden!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-new-chat{width:46px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;grid-template-columns:1fr!important;justify-items:center!important;align-self:center!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-plus{display:block!important;font-size:26px!important;line-height:1!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-sidebar-label{display:none!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-left-toggle{width:46px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;justify-self:center!important;align-self:center!important;place-self:center!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-sidebar-layout-icon{width:34px!important;height:28px!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-sidebar-layout-rail,.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-sidebar-layout-content{top:4px!important;bottom:4px!important}@media(max-width:900px){.leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h))!important;width:calc(100% - 18px)!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h))!important}}
/* Leya UI3 v10: keep compact workspace in document flow to stop scroll jump */
.leya3-workspace.compact-active{position:sticky!important;top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h))!important;left:auto!important;right:auto!important;transform:none!important;width:100%!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h))!important;margin-top:0!important;z-index:120!important;box-sizing:border-box!important}.leya3-workspace.compact-active .leya3-sidebar{padding-top:8px!important}.leya3-workspace.compact-active .leya3-new-chat-rail{margin-top:0!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail{height:118px!important;min-height:118px!important;max-height:118px!important;grid-template-columns:1fr!important;grid-template-rows:44px 44px!important;gap:6px!important;padding:10px 0!important;align-content:center!important;justify-items:center!important;overflow:hidden!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .leya3-new-chat{width:46px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;grid-template-columns:1fr!important;justify-items:center!important;align-self:center!important}.leya3-page.sidebar-collapsed .leya3-new-chat-rail .music-left-toggle{width:46px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;justify-self:center!important;align-self:center!important;place-self:center!important}@media(max-width:900px){.leya3-workspace.compact-active{position:sticky!important;top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h))!important;width:100%!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h))!important}}
/* Leya UI3 v11: dock workspace below compact header and stretch sidebar to player */
:root{--leya3-compact-dock-gap:2px}
.leya3-page.hero-compact .leya3-workspace.compact-active{position:sticky!important;top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h) + var(--leya3-compact-dock-gap))!important;left:auto!important;right:auto!important;transform:none!important;width:100%!important;margin-top:calc(var(--leya3-compact-real-h) - 8px + var(--leya3-compact-dock-gap))!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important;min-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important;max-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important;align-items:stretch!important;overflow:visible!important;box-sizing:border-box!important;z-index:120!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar,.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-chat{height:100%!important;min-height:100%!important;max-height:100%!important;align-self:stretch!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-top:10px!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-new-chat-rail{margin-top:0!important;position:relative!important;z-index:2!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-history{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important}@media(max-width:900px){:root{--leya3-compact-dock-gap:2px}.leya3-page.hero-compact .leya3-workspace.compact-active{top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h) + var(--leya3-compact-dock-gap))!important;margin-top:calc(var(--leya3-compact-real-h) - 8px + var(--leya3-compact-dock-gap))!important;width:100%!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important;min-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important;max-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap))!important}}
/* Leya UI3 v12: push compact workspace content below fixed header */
:root{--leya3-compact-panel-shift:calc(var(--leya3-compact-real-h) - 56px)}
.leya3-page.hero-compact .leya3-workspace.compact-active{position:sticky!important;top:calc(var(--leya3-menu-h) + var(--leya3-compact-real-h) + var(--leya3-compact-dock-gap))!important;margin-top:calc(var(--leya3-compact-real-h) - 8px + var(--leya3-compact-dock-gap))!important;padding-top:var(--leya3-compact-panel-shift)!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;min-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;max-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;box-sizing:border-box!important;overflow:visible!important;align-items:stretch!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar,.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-chat{height:100%!important;min-height:100%!important;max-height:100%!important;align-self:stretch!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar{padding-top:10px!important;overflow:hidden!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-new-chat-rail{margin-top:0!important;position:relative!important;z-index:3!important}@media(max-width:900px){:root{--leya3-compact-panel-shift:calc(var(--leya3-compact-real-h) - 54px)}.leya3-page.hero-compact .leya3-workspace.compact-active{padding-top:var(--leya3-compact-panel-shift)!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;min-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;max-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important}}
/* Leya UI3 v13: prevent scroll anchoring around compact sidebar controls */
html.leya3-active body,.leya3-page,.leya3-workspace,.leya3-sidebar,.leya3-chat,.leya3-new-chat-rail,#leya-input-container{overflow-anchor:none!important}.leya3-page.hero-compact .leya3-workspace.compact-active{padding-top:var(--leya3-compact-panel-shift)!important;height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;min-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important;max-height:calc(100dvh - var(--leya3-menu-h) - var(--leya3-compact-real-h) - var(--leya3-player-h) - var(--leya3-compact-dock-gap) + var(--leya3-compact-panel-shift))!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar{height:100%!important;min-height:100%!important;max-height:100%!important}.leya3-page.sidebar-collapsed.hero-compact .leya3-new-chat-rail{height:118px!important;min-height:118px!important;max-height:118px!important;overflow:hidden!important}
/* Leya UI3 v14: runtime compact layout support and readable chats title */
html.leya3-active body .leya3-history-title{display:block!important;color:#f4fdff!important;opacity:1!important;font-size:13px!important;font-weight:900!important;line-height:1.15!important;letter-spacing:0!important;text-shadow:0 0 10px rgba(32,217,255,.42),0 1px 2px rgba(0,0,0,.7)!important;padding:0 8px 8px!important;position:relative!important;z-index:4!important}.leya3-page.hero-compact .leya3-history-title{margin-top:2px!important}.leya3-workspace.compact-active{box-sizing:border-box!important;overflow:visible!important}.leya3-workspace.compact-active .leya3-sidebar{height:100%!important;min-height:100%!important;max-height:100%!important;align-self:stretch!important;overflow:hidden!important}.leya3-workspace.compact-active .leya3-new-chat-rail{position:relative!important;z-index:5!important}
/* Leya UI3 v15: title label only, keep chat item titles compact */
.leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:block!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0 8px 9px!important;color:#f4fdff!important;opacity:1!important;font-size:13px!important;font-weight:900!important;line-height:1.15!important;letter-spacing:0!important;text-shadow:0 0 10px rgba(32,217,255,.42),0 1px 2px rgba(0,0,0,.7)!important;position:relative!important;z-index:6!important;overflow:visible!important;white-space:nowrap!important}.leya3-page.hero-compact .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{margin-top:2px!important}.leya3-history .leya3-history-title{display:block!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;color:inherit!important;font-size:inherit!important;font-weight:700!important;line-height:normal!important;letter-spacing:0!important;text-shadow:none!important;position:static!important;z-index:auto!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.leya3-page.sidebar-collapsed .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:none!important}
/* Leya UI3 v16: high-specificity reset for chat item titles */
html.leya3-active body .leya3-history .leya3-history-title,.leya3-page.hero-compact .leya3-history .leya3-history-title{display:block!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;color:inherit!important;opacity:1!important;font-size:inherit!important;font-weight:700!important;line-height:normal!important;letter-spacing:0!important;text-shadow:none!important;position:static!important;z-index:auto!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.leya3-sidebar>.leya3-history-title.leya3-sidebar-label,html.leya3-active body .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:block!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0 8px 9px!important;color:#f4fdff!important;opacity:1!important;font-size:13px!important;font-weight:900!important;line-height:1.15!important;letter-spacing:0!important;text-shadow:0 0 10px rgba(32,217,255,.42),0 1px 2px rgba(0,0,0,.7)!important;position:relative!important;z-index:7!important;overflow:visible!important;white-space:nowrap!important}.leya3-page.hero-compact .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{margin-top:2px!important}.leya3-page.sidebar-collapsed .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:none!important}
/* Leya UI3 v17: restore layout after page return and round compact header */
.leya3-compact{border-radius:16px!important;overflow:hidden!important}.leya3-compact.is-visible{border-radius:16px!important}.leya3-workspace.compact-active{will-change:padding-top,height!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar{height:100%!important;min-height:100%!important;max-height:100%!important}.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-new-chat-rail{z-index:8!important}
/* Leya UI3 v18: SPA-safe page scope and compact header polish */
.leya3-compact,.leya3-compact.is-visible{border-radius:16px!important;overflow:hidden!important}html:not(.leya3-active) body:has(.music-shell) #music-player .music-player-volume{padding-right:0!important;justify-content:flex-end!important}html:not(.leya3-active) body:has(.music-shell) #music-player .music-player-chain{margin-left:10px!important}html:not(.leya3-active) body:has(.music-shell) #music-player .music-player-leya{margin-left:8px!important}html:not(.leya3-active) body .leya3-compact,html:not(.leya3-active) body .leya3-composer{display:none!important}
/* Leya UI3 v19: isolate from Music CSS and clean big hero */
.leya3-hero:before{display:none!important;background:none!important;content:none!important}
.leya3-hero-copy{margin-left:132px!important;width:min(560px,calc(100% - 178px))!important;max-width:560px!important}
.leya3-avatar-home{left:24px!important;bottom:24px!important}
.leya3-new-chat-rail>.music-left-toggle{position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;z-index:2!important;margin:0!important;transform:none!important;float:none!important;justify-self:end!important;align-self:center!important;place-self:center end!important}
.leya3-new-chat-rail>.music-left-toggle:hover,.leya3-new-chat-rail>.music-left-toggle:focus-visible{position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;margin:0!important}
.leya3-page.sidebar-collapsed .leya3-new-chat-rail>.music-left-toggle{position:static!important;inset:auto!important;margin:0!important;transform:none!important;justify-self:center!important;align-self:center!important;place-self:center!important}
html.leya3-active body #music-player .music-player-volume{padding-right:0!important;justify-content:flex-end!important;min-width:0!important}
html.leya3-active body #music-player .music-player-chain{margin-left:10px!important;flex:0 0 62px!important}
html.leya3-active body #music-player .music-player-leya{margin-left:8px!important;flex:0 0 64px!important}
@media(max-width:900px){.leya3-hero-copy{margin-left:118px!important;width:calc(100% - 136px)!important}.leya3-avatar-home{left:18px!important;bottom:20px!important}}
@media(max-width:640px){.leya3-hero-copy{margin-left:0!important;width:100%!important;padding-bottom:86px!important}.leya3-avatar-home{width:78px!important;height:78px!important}.leya3-avatar{width:78px!important;height:78px!important}}
/* Leya UI3 v20: dApp-style hero badge and lower hero copy */
.leya3-hero{padding:24px 28px!important}
.leya3-hero>.leya3-eyebrow{position:absolute!important;top:24px!important;left:28px!important;display:inline-flex!important;align-items:center!important;margin:0!important;padding:6px 12px!important;background:rgba(0,0,0,.28)!important;border:1px solid rgba(232,251,255,.28)!important;border-radius:999px!important;color:#e8fbff!important;font-size:12px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;line-height:1.2!important;box-sizing:border-box!important;width:auto!important;max-width:max-content!important;z-index:5!important;white-space:nowrap!important}
.leya3-hero-copy{padding-top:66px!important;box-sizing:border-box!important}
.leya3-hero h1{margin:0 0 8px!important}
.leya3-hero p{margin:0!important}
@media(max-width:900px){.leya3-hero{padding:18px!important}.leya3-hero>.leya3-eyebrow{top:18px!important;left:18px!important}.leya3-hero-copy{padding-top:62px!important}}
@media(max-width:640px){.leya3-hero-copy{padding-top:58px!important;padding-bottom:86px!important}.leya3-hero>.leya3-eyebrow{max-width:calc(100% - 36px)!important;white-space:normal!important}}
/* Leya UI3 v21: bottom hero copy, brighter pulsing earth, thinking glint */
.leya3-hero-copy{position:absolute!important;left:160px!important;right:auto!important;bottom:20px!important;margin-left:0!important;padding-top:0!important;width:min(620px,calc(100% - 390px))!important;max-width:620px!important;z-index:4!important;box-sizing:border-box!important}
.leya3-hero h1{margin:0 0 8px!important;text-shadow:0 2px 6px rgba(0,0,0,.42)!important}
.leya3-hero p{margin:0!important;max-width:620px!important;text-shadow:0 1px 3px rgba(0,0,0,.48)!important}
.leya3-earth{opacity:.86!important;filter:brightness(1.42) contrast(1.18) saturate(1.2) drop-shadow(0 0 18px rgba(83,226,255,.38))!important;mix-blend-mode:screen!important;animation:leyaEarthPulse 3.4s ease-in-out infinite!important}
.leya3-page.is-thinking .leya3-hero-copy h1,.leya3-page.is-thinking .leya3-hero-copy p,.leya-thinking-current{background-image:linear-gradient(100deg,#e7f8ff 0%,#e7f8ff 34%,#72edff 45%,#ffffff 50%,#7ff2ff 55%,#e7f8ff 66%,#e7f8ff 100%)!important;background-size:240% 100%!important;background-position:140% 0!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;animation:leyaThoughtGlint 1.65s linear infinite!important;text-shadow:none!important}
.leya3-page.is-thinking .leya3-hero-copy p,.leya-thinking-current{background-image:linear-gradient(100deg,#cbeef7 0%,#cbeef7 34%,#6feaff 45%,#ffffff 50%,#8ff4ff 55%,#cbeef7 66%,#cbeef7 100%)!important}
@keyframes leyaEarthPulse{0%,100%{opacity:.72;filter:brightness(1.24) contrast(1.08) saturate(1.08) drop-shadow(0 0 12px rgba(83,226,255,.24))}42%{opacity:.96;filter:brightness(1.72) contrast(1.26) saturate(1.28) drop-shadow(0 0 24px rgba(83,226,255,.5))}58%{opacity:.82;filter:brightness(1.38) contrast(1.16) saturate(1.16) drop-shadow(0 0 16px rgba(83,226,255,.32))}}
@keyframes leyaThoughtGlint{0%{background-position:145% 0}100%{background-position:-95% 0}}
@media(max-width:900px){.leya3-hero-copy{left:138px!important;bottom:18px!important;width:calc(100% - 310px)!important;max-width:none!important}.leya3-earth{opacity:.78!important}}
@media(max-width:640px){.leya3-hero-copy{left:18px!important;right:18px!important;bottom:18px!important;width:auto!important;max-width:none!important;padding-bottom:74px!important}.leya3-earth{opacity:.68!important}}
@media(prefers-reduced-motion:reduce){.leya3-earth,.leya3-page.is-thinking .leya3-hero-copy h1,.leya3-page.is-thinking .leya3-hero-copy p,.leya-thinking-current{animation:none!important}}
/* Leya UI3 v22: blockchain pixel map without cubes and manual copy break */
.leya3-hero .leya3-earth{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;z-index:1!important;width:min(248%,2920px)!important;height:100%!important;max-height:100%!important;object-fit:fill!important;transform:translate(-50%,-50%)!important;opacity:.72!important;filter:invert(1) brightness(1.28) sepia(1) saturate(2.2) hue-rotate(142deg) drop-shadow(0 0 7px rgba(232,251,255,.34)) drop-shadow(0 0 16px rgba(3,125,156,.28))!important;mix-blend-mode:screen!important;animation:leyaBlockchainMapPulse 3.6s ease-in-out infinite!important;pointer-events:none!important}
.leya3-network-layer{position:absolute!important;inset:0!important;z-index:2!important;width:100%!important;height:100%!important;overflow:visible!important;pointer-events:none!important;mix-blend-mode:screen!important}
.leya3-network-routes path{fill:none!important;stroke:rgba(226,252,255,.54)!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 0 3px rgba(238,253,255,.44)) drop-shadow(0 0 8px rgba(3,125,156,.34))!important}
.leya3-network-electric path{fill:none!important;stroke:rgba(120,236,255,.92)!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-dasharray:3 13 26 620!important;stroke-dashoffset:0!important;opacity:.88!important;filter:drop-shadow(0 0 4px rgba(238,253,255,.82)) drop-shadow(0 0 10px rgba(3,125,156,.78)) drop-shadow(0 0 18px rgba(3,125,156,.42))!important;animation:leyaBlockchainElectricFlow 2.8s linear infinite!important}
.leya3-network-electric path:nth-child(2){animation-delay:-1.1s!important}.leya3-network-electric path:nth-child(3){animation-delay:-2.2s!important}.leya3-network-electric path:nth-child(4){animation-delay:-3.1s!important}
.leya3-hero-copy{bottom:19px!important}.leya3-hero p{line-height:1.5!important}.leya3-copy-break{display:block!important}
@keyframes leyaBlockchainElectricFlow{0%{stroke-dashoffset:0;opacity:.38}18%{opacity:1}72%{opacity:1}100%{stroke-dashoffset:-662;opacity:.38}}
@keyframes leyaBlockchainMapPulse{0%,100%{opacity:.62;filter:invert(1) brightness(1.12) sepia(1) saturate(2.05) hue-rotate(142deg) drop-shadow(0 0 6px rgba(232,251,255,.24)) drop-shadow(0 0 12px rgba(3,125,156,.22))}45%{opacity:.84;filter:invert(1) brightness(1.46) sepia(1) saturate(2.35) hue-rotate(142deg) drop-shadow(0 0 9px rgba(232,251,255,.44)) drop-shadow(0 0 22px rgba(3,125,156,.38))}}
@media(max-width:900px){.leya3-hero .leya3-earth{width:min(252%,2500px)!important;opacity:.66!important}.leya3-network-layer{opacity:.92!important}}
@media(max-width:640px){.leya3-hero .leya3-earth{width:230%!important;opacity:.58!important}.leya3-network-layer{opacity:.72!important}.leya3-hero-copy{bottom:16px!important}}
@media(prefers-reduced-motion:reduce){.leya3-hero .leya3-earth,.leya3-network-electric path{animation:none!important}}
/* Leya UI3 v23: keep blockchain pixel map, remove connector lines, enlarge hero video */
.leya3-network-layer{display:none!important;visibility:hidden!important;opacity:0!important}
.leya3-avatar-home{left:22px!important;bottom:18px!important;overflow:visible!important}
.leya3-avatar-home .leya3-avatar{width:122px!important;height:122px!important;max-width:122px!important;max-height:122px!important}
@media(max-width:900px){.leya3-avatar-home{left:18px!important;bottom:16px!important}.leya3-avatar-home .leya3-avatar{width:112px!important;height:112px!important;max-width:112px!important;max-height:112px!important}}
@media(max-width:640px){.leya3-avatar-home{left:18px!important;bottom:18px!important}.leya3-avatar-home .leya3-avatar{width:84px!important;height:84px!important;max-width:84px!important;max-height:84px!important}}
/* Leya UI3 v24: ChatGPT-style shimmer on thinking text */
.leya-message-assistant:has(.leya-thinking-card){min-width:210px!important;background:linear-gradient(180deg,rgba(24,28,34,.92),rgba(18,22,27,.88))!important;border-color:rgba(96,110,122,.38)!important}
.leya-thinking-card{display:inline-flex!important;align-items:center!important;min-width:0!important;width:auto!important;padding:0!important;overflow:hidden!important}
.leya-thinking-current,.leya-thinking-shimmer{display:inline-block!important;position:relative!important;width:auto!important;max-width:100%!important;color:transparent!important;-webkit-text-fill-color:transparent!important;background-image:linear-gradient(90deg,rgba(226,232,240,.46) 0%,rgba(226,232,240,.54) 34%,rgba(255,255,255,.98) 48%,rgba(245,250,255,.9) 54%,rgba(226,232,240,.54) 68%,rgba(226,232,240,.46) 100%)!important;background-size:260% 100%!important;background-position:150% 0!important;-webkit-background-clip:text!important;background-clip:text!important;animation:leyaChatGPTThinkingShimmer 1.55s cubic-bezier(.4,0,.2,1) infinite!important;font-weight:600!important;letter-spacing:0!important;text-shadow:none!important;filter:drop-shadow(0 0 8px rgba(255,255,255,.08))!important;will-change:background-position!important}
@keyframes leyaChatGPTThinkingShimmer{0%{background-position:150% 0}100%{background-position:-110% 0}}
@media(prefers-reduced-motion:reduce){.leya-thinking-current,.leya-thinking-shimmer{animation:none!important;background-position:50% 0!important;color:#cbeef7!important;-webkit-text-fill-color:#cbeef7!important}}
/* Leya UI3 v25: gray hover scrollbars and visible thinking shimmer */
.leya3-sidebar:hover .leya3-history,.leya3-history:hover,.leya3-chat:hover .leya3-messages,.leya3-messages:hover{scrollbar-color:#8d96a1 rgba(255,255,255,.075)!important}
.leya3-sidebar:hover .leya3-history::-webkit-scrollbar-track,.leya3-history:hover::-webkit-scrollbar-track,.leya3-chat:hover .leya3-messages::-webkit-scrollbar-track,.leya3-messages:hover::-webkit-scrollbar-track{background:rgba(142,151,163,.12)!important;border-radius:12px!important}
.leya3-sidebar:hover .leya3-history::-webkit-scrollbar-thumb,.leya3-history:hover::-webkit-scrollbar-thumb,.leya3-chat:hover .leya3-messages::-webkit-scrollbar-thumb,.leya3-messages:hover::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#a7adb5,#737d89)!important;border-radius:12px!important;border:4px solid rgba(7,12,16,.72)!important;box-shadow:0 0 10px rgba(160,168,178,.18)!important}
.leya3-sidebar:hover .leya3-history::-webkit-scrollbar-thumb:hover,.leya3-history:hover::-webkit-scrollbar-thumb:hover,.leya3-chat:hover .leya3-messages::-webkit-scrollbar-thumb:hover,.leya3-messages:hover::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#c3c8cf,#89929e)!important;box-shadow:0 0 12px rgba(190,198,208,.26)!important}
.leya-message-assistant:has(.leya-thinking-card){min-width:210px!important;background:linear-gradient(180deg,rgba(24,28,34,.94),rgba(18,22,27,.9))!important;border-color:rgba(116,124,135,.42)!important}
.leya-thinking-card{display:inline-flex!important;align-items:center!important;width:auto!important;min-width:0!important;overflow:hidden!important}
.leya-thinking-current.leya-thinking-shimmer{display:inline-block!important;position:relative!important;overflow:hidden!important;color:#cfd6df!important;-webkit-text-fill-color:#cfd6df!important;background:none!important;background-image:none!important;background-clip:border-box!important;-webkit-background-clip:border-box!important;animation:none!important;font-weight:650!important;letter-spacing:0!important;text-shadow:0 1px 1px rgba(0,0,0,.42)!important;filter:none!important;isolation:isolate!important;white-space:nowrap!important}
.leya-thinking-current.leya-thinking-shimmer::after{content:attr(data-text)!important;position:absolute!important;inset:0!important;z-index:1!important;color:transparent!important;-webkit-text-fill-color:transparent!important;background-image:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.08) 26%,rgba(255,255,255,.72) 43%,#fff 50%,rgba(255,255,255,.72) 57%,rgba(255,255,255,.08) 74%,transparent 100%)!important;background-size:230% 100%!important;background-position:150% 0!important;background-repeat:no-repeat!important;-webkit-background-clip:text!important;background-clip:text!important;animation:leyaVisibleThinkingShimmer 1.25s linear infinite!important;text-shadow:0 0 8px rgba(255,255,255,.18)!important;pointer-events:none!important;will-change:background-position!important}
@keyframes leyaVisibleThinkingShimmer{0%{background-position:150% 0}100%{background-position:-120% 0}}
@media(prefers-reduced-motion:reduce){.leya-thinking-current.leya-thinking-shimmer::after{animation:none!important;opacity:0!important}.leya-thinking-current.leya-thinking-shimmer{color:#cfd6df!important;-webkit-text-fill-color:#cfd6df!important}}
/* Leya UI3 v26: rename chats and stronger real-layer thinking shimmer */
.leya3-history-item{gap:8px!important;cursor:pointer!important}.leya3-history-actions{display:inline-flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}.leya3-rename-chat,.leya3-delete-chat{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border-radius:7px!important;color:#aeb7c1!important;font-size:14px!important;line-height:1!important;opacity:.72!important;transition:background .16s ease,color .16s ease,opacity .16s ease,transform .16s ease!important}.leya3-rename-chat:hover,.leya3-delete-chat:hover{background:rgba(170,178,188,.14)!important;color:#f6f8fb!important;opacity:1!important;transform:scale(.96)!important}.leya3-history-item.is-renaming{cursor:text!important}.leya3-rename-input{flex:1 1 auto!important;min-width:0!important;width:100%!important;height:34px!important;padding:0 10px!important;border:1px solid rgba(170,178,188,.5)!important;border-radius:8px!important;background:rgba(10,14,18,.92)!important;color:#f5fbff!important;font:inherit!important;font-weight:750!important;letter-spacing:0!important;outline:0!important;box-shadow:0 0 0 2px rgba(170,178,188,.12)!important}.leya3-rename-input:focus{border-color:rgba(214,220,228,.78)!important;box-shadow:0 0 0 2px rgba(214,220,228,.18),0 0 12px rgba(214,220,228,.12)!important}.leya3-page.sidebar-collapsed .leya3-history-actions,.leya3-page.sidebar-collapsed .leya3-rename-input{display:none!important}
.leya-thinking-current.leya-thinking-shimmer::after{display:none!important;content:none!important}.leya-thinking-current.leya-thinking-shimmer{display:inline-grid!important;grid-template-areas:"thought"!important;position:relative!important;overflow:hidden!important;color:transparent!important;-webkit-text-fill-color:initial!important;background:none!important;background-image:none!important;animation:none!important;filter:none!important;line-height:1.48!important;isolation:isolate!important;white-space:nowrap!important}.leya-thinking-base,.leya-thinking-glint{grid-area:thought!important;display:block!important;white-space:nowrap!important;line-height:1.48!important;font-weight:650!important;letter-spacing:0!important}.leya-thinking-base{z-index:1!important;color:#cfd6df!important;-webkit-text-fill-color:#cfd6df!important;text-shadow:0 1px 1px rgba(0,0,0,.42)!important}.leya-thinking-glint{z-index:3!important;color:transparent!important;-webkit-text-fill-color:transparent!important;background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.08) 30%,rgba(255,255,255,.95) 47%,#fff 50%,rgba(255,255,255,.95) 53%,rgba(255,255,255,.08) 70%,rgba(255,255,255,0) 100%)!important;background-size:260% 100%!important;background-position:150% 0!important;background-repeat:no-repeat!important;-webkit-background-clip:text!important;background-clip:text!important;animation:leyaRealThinkingGlint 1.05s linear infinite!important;text-shadow:0 0 12px rgba(255,255,255,.28)!important;pointer-events:none!important}.leya-thinking-current.leya-thinking-shimmer::before{content:""!important;position:absolute!important;z-index:2!important;top:-4px!important;bottom:-4px!important;left:-46%!important;width:42%!important;background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.08) 24%,rgba(255,255,255,.42) 50%,rgba(255,255,255,.08) 76%,transparent 100%)!important;filter:blur(1.5px)!important;transform:skewX(-18deg)!important;mix-blend-mode:screen!important;animation:leyaThinkingLightSweep 1.05s linear infinite!important;pointer-events:none!important}@keyframes leyaRealThinkingGlint{0%{background-position:155% 0}100%{background-position:-120% 0}}@keyframes leyaThinkingLightSweep{0%{left:-48%}100%{left:112%}}@media(prefers-reduced-motion:reduce){.leya-thinking-glint,.leya-thinking-current.leya-thinking-shimmer::before{animation:none!important;opacity:0!important}.leya-thinking-base{color:#cfd6df!important;-webkit-text-fill-color:#cfd6df!important}}
/* Leya UI3 v27: ChatGPT-like chat menu with pin archive rename delete */
.leya3-history-item{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;align-items:center!important;gap:8px!important;overflow:visible!important;padding:0 8px 0 11px!important}.leya3-history-item.pinned .leya3-history-title{color:#f7fbff!important}.leya3-pin-mark{display:inline-block!important;margin-right:5px!important;color:#b7c0ca!important;font-size:9px!important;vertical-align:middle!important}.leya3-history-menu-wrap{position:relative!important;display:grid!important;place-items:center!important;justify-self:end!important;z-index:20!important}.leya3-history-menu-button{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#c4cad2!important;font-size:18px!important;line-height:1!important;letter-spacing:0!important;opacity:0!important;pointer-events:none!important;cursor:pointer!important;transition:opacity .16s ease,background .16s ease,color .16s ease,transform .16s ease!important}.leya3-history-item:hover .leya3-history-menu-button,.leya3-history-item:focus-within .leya3-history-menu-button,.leya3-history-item.menu-open .leya3-history-menu-button{opacity:1!important;pointer-events:auto!important}.leya3-history-menu-button:hover,.leya3-history-menu-button:focus-visible,.leya3-history-item.menu-open .leya3-history-menu-button{background:rgba(167,173,181,.14)!important;color:#ffffff!important;transform:scale(.96)!important;outline:0!important}.leya3-history-menu{position:absolute!important;top:34px!important;right:0!important;display:none!important;min-width:172px!important;padding:6px!important;border:1px solid rgba(170,178,188,.28)!important;border-radius:10px!important;background:rgba(18,22,27,.98)!important;box-shadow:0 18px 32px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.04)!important;z-index:80!important}.leya3-history-item.menu-open .leya3-history-menu{display:grid!important;gap:2px!important}.leya3-history-menu-item{width:100%!important;height:34px!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#e4e8ee!important;text-align:left!important;font-size:13px!important;font-weight:650!important;letter-spacing:0!important;cursor:pointer!important}.leya3-history-menu-item:hover,.leya3-history-menu-item:focus-visible{background:rgba(167,173,181,.14)!important;color:#ffffff!important;outline:0!important}.leya3-history-menu-item.danger{color:#ffb6b6!important}.leya3-history-menu-item.danger:hover,.leya3-history-menu-item.danger:focus-visible{background:rgba(255,98,98,.14)!important;color:#ffd6d6!important}.leya3-history-item.is-renaming{grid-template-columns:minmax(0,1fr)!important;cursor:text!important}.leya3-history-item.is-renaming .leya3-history-menu-wrap{display:none!important}.leya3-rename-input{display:block!important;min-width:0!important;width:100%!important;height:36px!important;padding:0 10px!important;border:1px solid rgba(190,198,208,.58)!important;border-radius:8px!important;background:rgba(10,14,18,.96)!important;color:#f5fbff!important;font-size:15px!important;font-weight:750!important;letter-spacing:0!important;outline:0!important;box-shadow:0 0 0 2px rgba(190,198,208,.14)!important}.leya3-rename-input:focus{border-color:rgba(232,238,246,.86)!important;box-shadow:0 0 0 2px rgba(232,238,246,.2),0 0 14px rgba(232,238,246,.14)!important}.leya3-page.sidebar-collapsed .leya3-history-item{grid-template-columns:1fr!important;padding:0!important}.leya3-page.sidebar-collapsed .leya3-history-menu-wrap,.leya3-page.sidebar-collapsed .leya3-pin-mark{display:none!important}
/* Leya UI3 v28: keep chat menu labels stable */
.leya3-history-menu-item[data-i18n]{letter-spacing:0!important}

/* Leya UI3 v29: user message breathing room and hover actions */
.leya3-messages{padding-right:30px!important}
.leya-message-row.user{align-items:flex-end!important;padding-right:18px!important;position:relative!important}
.leya-message-row.user .leya-message-user{margin-right:8px!important;padding:12px 22px 12px 16px!important;max-width:min(680px,74%)!important}
.leya-message-actions-inline{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:6px 8px 0 0!important;opacity:0!important;visibility:hidden!important;transform:translateY(-2px)!important;transition:opacity .16s ease,visibility .16s ease,transform .16s ease!important;pointer-events:none!important}
.leya-message-row.user:hover .leya-message-actions-inline,.leya-message-row.user:focus-within .leya-message-actions-inline{opacity:1!important;visibility:visible!important;transform:translateY(0)!important;pointer-events:auto!important}
.leya-message-action-button{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border:1px solid rgba(170,178,188,.24)!important;border-radius:8px!important;background:rgba(15,18,23,.72)!important;color:#cfd6df!important;font-size:12px!important;line-height:1!important;cursor:pointer!important;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important}
.leya-message-action-button:hover,.leya-message-action-button:focus-visible{background:rgba(170,178,188,.16)!important;border-color:rgba(210,218,228,.42)!important;color:#fff!important;transform:scale(.96)!important;outline:0!important}
.leya-message-action-button.is-copied{color:#9ff0bb!important;border-color:rgba(80,220,135,.4)!important}
@media(max-width:900px){.leya3-messages{padding-right:22px!important}.leya-message-row.user{padding-right:10px!important}.leya-message-row.user .leya-message-user{margin-right:6px!important;max-width:min(620px,78%)!important}}
@media(max-width:640px){.leya3-messages{padding-right:16px!important}.leya-message-row.user{padding-right:4px!important}.leya-message-row.user .leya-message-user{margin-right:2px!important;max-width:86%!important}}

/* Leya UI3 v30: inline user message edit */
.leya-message-row.user.is-editing .leya-message-actions-inline{display:none!important}
.leya-message-edit-input{width:min(680px,74%)!important;max-width:min(680px,74%)!important;min-height:52px!important;margin:0 8px 0 auto!important;padding:12px 22px 12px 16px!important;box-sizing:border-box!important;border-radius:14px!important;border:1px solid #12a6c8!important;background:linear-gradient(135deg,#06495b,#083845)!important;color:#fff!important;font:inherit!important;font-size:15px!important;line-height:1.48!important;resize:vertical!important;outline:0!important;box-shadow:0 0 0 1px rgba(16,192,230,.18),0 10px 24px rgba(0,0,0,.24)!important;white-space:pre-wrap!important;overflow:hidden!important}
.leya-message-edit-input:focus{border-color:#23d4ff!important;box-shadow:0 0 0 2px rgba(35,212,255,.2),0 12px 28px rgba(0,0,0,.28)!important}
.leya-message-edit-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:8px 8px 0 0!important}
.leya-message-edit-cancel,.leya-message-edit-submit{height:32px!important;padding:0 13px!important;border-radius:9px!important;font-size:13px!important;font-weight:700!important;cursor:pointer!important;transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease!important}
.leya-message-edit-cancel{border:1px solid rgba(180,190,200,.26)!important;background:rgba(20,24,30,.74)!important;color:#cfd6df!important}
.leya-message-edit-submit{border:1px solid rgba(21,205,243,.55)!important;background:linear-gradient(135deg,#0785a4,#09b9dc)!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,185,220,.22)!important}
.leya-message-edit-cancel:hover,.leya-message-edit-submit:hover,.leya-message-edit-cancel:focus-visible,.leya-message-edit-submit:focus-visible{transform:translateY(-1px)!important;outline:0!important}
.leya-message-action-button.is-copied i{font-size:13px!important}
@media(max-width:900px){.leya-message-edit-input{width:min(620px,78%)!important;max-width:min(620px,78%)!important;margin-right:6px!important}.leya-message-edit-actions{margin-right:6px!important}}
@media(max-width:640px){.leya-message-edit-input{width:86%!important;max-width:86%!important;margin-right:2px!important}.leya-message-edit-actions{margin-right:2px!important}}

/* Leya UI3 v32: stronger visible thinking glint */
.leya-thinking-card{position:relative!important;overflow:visible!important}
.leya-thinking-current.leya-thinking-shimmer{overflow:visible!important;filter:drop-shadow(0 0 9px rgba(255,255,255,.16))!important}
.leya-thinking-base{color:#edf7fb!important;-webkit-text-fill-color:#edf7fb!important;text-shadow:0 0 8px rgba(255,255,255,.16),0 1px 1px rgba(0,0,0,.42)!important}
.leya-thinking-glint{background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(170,230,255,.22) 25%,rgba(255,255,255,.98) 42%,#fff 50%,rgba(255,255,255,.98) 58%,rgba(170,230,255,.22) 75%,rgba(255,255,255,0) 100%)!important;background-size:185% 100%!important;animation:leyaV32TextGlint .92s linear infinite!important;text-shadow:0 0 16px rgba(255,255,255,.42)!important;filter:drop-shadow(0 0 5px rgba(255,255,255,.3))!important}
.leya-thinking-current.leya-thinking-shimmer::before{opacity:1!important;z-index:5!important;top:-3px!important;bottom:-3px!important;left:-70%!important;width:62%!important;background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.06) 18%,rgba(255,255,255,.55) 48%,rgba(255,255,255,.92) 52%,rgba(255,255,255,.18) 78%,transparent 100%)!important;filter:blur(.8px)!important;mix-blend-mode:screen!important;animation:leyaV32LightSweep .92s linear infinite!important}
.leya-thinking-current.leya-thinking-shimmer::after{content:""!important;display:block!important;position:absolute!important;z-index:4!important;top:-2px!important;bottom:-2px!important;left:-58%!important;width:48%!important;background:linear-gradient(100deg,transparent 0%,rgba(126,232,255,.18) 28%,rgba(255,255,255,.62) 50%,rgba(126,232,255,.18) 72%,transparent 100%)!important;transform:skewX(-16deg)!important;animation:leyaV32LightSweep 1.18s linear infinite!important;pointer-events:none!important;mix-blend-mode:screen!important}
.leya3-page.is-thinking .leya3-hero-copy h1,.leya3-page.is-thinking .leya3-hero-copy p{background-image:linear-gradient(100deg,#d8edf5 0%,#d8edf5 32%,#7ee8ff 43%,#fff 50%,#8df2ff 57%,#d8edf5 68%,#d8edf5 100%)!important;background-size:190% 100%!important;animation:leyaV32TextGlint 1.12s linear infinite!important}
@keyframes leyaV32TextGlint{0%{background-position:150% 0}100%{background-position:-95% 0}}
@keyframes leyaV32LightSweep{0%{left:-70%}100%{left:115%}}
@media(prefers-reduced-motion:reduce){.leya-thinking-glint,.leya-thinking-current.leya-thinking-shimmer::before,.leya-thinking-current.leya-thinking-shimmer::after{animation:none!important;opacity:0!important}.leya-thinking-base{color:#edf7fb!important;-webkit-text-fill-color:#edf7fb!important}}


/* Leya v71: visible response when global player Leya button targets this page */
.leya3-composer.is-player-target{box-shadow:0 0 0 2px rgba(32,217,255,.62),0 0 28px rgba(32,217,255,.28)!important;border-color:rgba(32,217,255,.72)!important;transition:box-shadow .24s ease,border-color .24s ease}

/* Leya UI3 v33: glint on every active thinking stage and header status */
.leya3-page.is-thinking #leya-answer-status-text,
.leya3-page.is-thinking #leya3-compact-status-text{
  display:inline-block!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(100deg,rgba(197,232,242,.68) 0%,rgba(197,232,242,.76) 30%,rgba(117,235,255,.96) 43%,#fff 50%,rgba(117,235,255,.96) 57%,rgba(197,232,242,.76) 70%,rgba(197,232,242,.68) 100%)!important;
  background-size:210% 100%!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:leyaV33StageTextGlint 1.02s linear infinite!important;
  text-shadow:none!important;
  filter:drop-shadow(0 0 8px rgba(117,235,255,.2))!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-glint{
  background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(137,232,255,.28) 22%,rgba(255,255,255,.98) 41%,#fff 50%,rgba(255,255,255,.98) 59%,rgba(137,232,255,.28) 78%,rgba(255,255,255,0) 100%)!important;
  background-size:170% 100%!important;
  animation:leyaV33StageTextGlint .82s linear infinite!important;
}
.leya-thinking-current.leya-thinking-refresh .leya-thinking-glint{
  animation-name:leyaV33StageTextGlint!important;
  animation-duration:.68s!important;
}
.leya-thinking-current.leya-thinking-shimmer::before{
  animation:leyaV33StageLightSweep .82s linear infinite!important;
}
.leya-thinking-current.leya-thinking-shimmer::after{
  animation:leyaV33StageLightSweep 1.02s linear infinite!important;
}
@keyframes leyaV33StageTextGlint{0%{background-position:155% 0}100%{background-position:-105% 0}}
@keyframes leyaV33StageLightSweep{0%{left:-72%}100%{left:118%}}
@media(prefers-reduced-motion:reduce){
  .leya3-page.is-thinking #leya-answer-status-text,
  .leya3-page.is-thinking #leya3-compact-status-text{animation:none!important;color:#cbeef7!important;-webkit-text-fill-color:#cbeef7!important;background:none!important;filter:none!important}
}

/* Leya UI3 v34: moving text-only glint and sequential thinking dots */
.leya-thinking-current.leya-thinking-shimmer{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:1px!important;
  overflow:visible!important;
  color:transparent!important;
  -webkit-text-fill-color:initial!important;
  background:none!important;
  animation:none!important;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.12))!important;
}
.leya-thinking-current.leya-thinking-shimmer::before,
.leya-thinking-current.leya-thinking-shimmer::after{
  display:none!important;
  content:none!important;
  animation:none!important;
  opacity:0!important;
  background:none!important;
}
.leya-thinking-word{
  display:inline-grid!important;
  grid-template-areas:"thought"!important;
  position:relative!important;
  overflow:visible!important;
  isolation:isolate!important;
}
.leya-thinking-word .leya-thinking-base,
.leya-thinking-word .leya-thinking-glint{
  grid-area:thought!important;
  display:block!important;
  white-space:nowrap!important;
  line-height:1.48!important;
  font-weight:650!important;
  letter-spacing:0!important;
}
.leya-thinking-word .leya-thinking-base{
  z-index:1!important;
  color:#edf7fb!important;
  -webkit-text-fill-color:#edf7fb!important;
  text-shadow:0 0 8px rgba(255,255,255,.14),0 1px 1px rgba(0,0,0,.42)!important;
}
.leya-thinking-word .leya-thinking-glint{
  z-index:2!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(150,232,255,.08) 24%,rgba(255,255,255,.86) 43%,#fff 50%,rgba(255,255,255,.86) 57%,rgba(150,232,255,.08) 76%,rgba(255,255,255,0) 100%)!important;
  background-size:260% 100%!important;
  background-position:160% 0!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:leyaV34MovingTextGlint 1.05s linear infinite!important;
  text-shadow:0 0 10px rgba(255,255,255,.22)!important;
  pointer-events:none!important;
  will-change:background-position!important;
}
.leya-thinking-dots{
  display:inline-flex!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  width:1.05em!important;
  margin-left:1px!important;
  color:#edf7fb!important;
  -webkit-text-fill-color:#edf7fb!important;
  text-shadow:0 0 8px rgba(255,255,255,.18)!important;
}
.leya-thinking-dots span{
  display:inline-block!important;
  opacity:.18!important;
  transform:translateY(1px)!important;
  animation:leyaV34ThinkingDot 1.18s ease-in-out infinite!important;
}
.leya-thinking-dots span:nth-child(2){animation-delay:.18s!important}
.leya-thinking-dots span:nth-child(3){animation-delay:.36s!important}
.leya3-page.is-thinking #leya-answer-status-text::after,
.leya3-page.is-thinking #leya3-compact-status-text::after{
  display:inline-block!important;
  min-width:1.05em!important;
  color:#edf7fb!important;
  -webkit-text-fill-color:#edf7fb!important;
  animation:leyaV34StatusDots 1.18s steps(1,end) infinite!important;
  content:"";
}
@keyframes leyaV34MovingTextGlint{0%{background-position:165% 0}100%{background-position:-120% 0}}
@keyframes leyaV34ThinkingDot{0%,16%{opacity:.16;transform:translateY(1px)}28%,78%{opacity:1;transform:translateY(0)}100%{opacity:.16;transform:translateY(1px)}}
@keyframes leyaV34StatusDots{0%,22%{content:""}23%,45%{content:"."}46%,68%{content:".."}69%,100%{content:"..."}}
@media(prefers-reduced-motion:reduce){
  .leya-thinking-word .leya-thinking-glint,.leya-thinking-dots span{animation:none!important;opacity:0!important}
  .leya3-page.is-thinking #leya-answer-status-text::after,.leya3-page.is-thinking #leya3-compact-status-text::after{animation:none!important;content:"..."!important}
}

/* Leya UI3 v35: visible base text with moving glint overlay */
.leya3-page.is-thinking #leya-answer-status-text,
.leya3-page.is-thinking #leya3-compact-status-text,
#leya-answer-status-text.leya-status-thinking,
#leya3-compact-status-text.leya-status-thinking{
  position:relative!important;
  display:inline-block!important;
  color:#dff8ff!important;
  -webkit-text-fill-color:#dff8ff!important;
  background:none!important;
  background-image:none!important;
  animation:none!important;
  text-shadow:0 0 8px rgba(105,229,255,.18),0 1px 1px rgba(0,0,0,.42)!important;
  filter:none!important;
  overflow:visible!important;
}
.leya3-page.is-thinking #leya-answer-status-text::before,
.leya3-page.is-thinking #leya3-compact-status-text::before,
#leya-answer-status-text.leya-status-thinking::before,
#leya3-compact-status-text.leya-status-thinking::before{
  content:attr(data-text)!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(126,232,255,.18) 25%,rgba(255,255,255,.94) 43%,#fff 50%,rgba(255,255,255,.94) 57%,rgba(126,232,255,.18) 75%,rgba(255,255,255,0) 100%)!important;
  background-size:260% 100%!important;
  background-position:165% 0!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:leyaV35OverlayGlint 1.05s linear infinite!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.leya3-page.is-thinking #leya-answer-status-text::after,
.leya3-page.is-thinking #leya3-compact-status-text::after,
#leya-answer-status-text.leya-status-thinking::after,
#leya3-compact-status-text.leya-status-thinking::after{
  display:inline-block!important;
  min-width:1.05em!important;
  margin-left:1px!important;
  color:#dff8ff!important;
  -webkit-text-fill-color:#dff8ff!important;
  animation:leyaV35StatusDots 1.18s steps(1,end) infinite!important;
  content:"";
}
.leya-thinking-current.leya-thinking-shimmer{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:1px!important;
  overflow:visible!important;
  color:inherit!important;
  -webkit-text-fill-color:initial!important;
  background:none!important;
  background-image:none!important;
  animation:none!important;
  filter:none!important;
}
.leya-thinking-current.leya-thinking-shimmer::before,
.leya-thinking-current.leya-thinking-shimmer::after{
  display:none!important;
  content:none!important;
  opacity:0!important;
  animation:none!important;
  background:none!important;
}
.leya-thinking-word{
  position:relative!important;
  display:inline-block!important;
  overflow:visible!important;
  isolation:isolate!important;
  vertical-align:baseline!important;
}
.leya-thinking-word .leya-thinking-base{
  position:relative!important;
  z-index:1!important;
  display:inline-block!important;
  color:#edf7fb!important;
  -webkit-text-fill-color:#edf7fb!important;
  background:none!important;
  text-shadow:0 0 8px rgba(255,255,255,.14),0 1px 1px rgba(0,0,0,.42)!important;
}
.leya-thinking-word .leya-thinking-glint{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  display:inline-block!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(126,232,255,.18) 25%,rgba(255,255,255,.94) 43%,#fff 50%,rgba(255,255,255,.94) 57%,rgba(126,232,255,.18) 75%,rgba(255,255,255,0) 100%)!important;
  background-size:260% 100%!important;
  background-position:165% 0!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:leyaV35OverlayGlint 1.05s linear infinite!important;
  text-shadow:0 0 10px rgba(255,255,255,.22)!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
@keyframes leyaV35OverlayGlint{0%{background-position:165% 0}100%{background-position:-120% 0}}
@keyframes leyaV35StatusDots{0%,22%{content:""}23%,45%{content:"."}46%,68%{content:".."}69%,100%{content:"..."}}
@media(prefers-reduced-motion:reduce){
  #leya-answer-status-text.leya-status-thinking::before,#leya3-compact-status-text.leya-status-thinking::before,.leya-thinking-word .leya-thinking-glint{animation:none!important;opacity:0!important}
  #leya-answer-status-text.leya-status-thinking::after,#leya3-compact-status-text.leya-status-thinking::after{animation:none!important;content:"..."!important}
}

/* Leya UI3 v36: mask glint that keeps base text visible + JS-driven central dots */
.leya3-page.is-thinking #leya-answer-status-text,
.leya3-page.is-thinking #leya3-compact-status-text,
#leya-answer-status-text.leya-status-thinking,
#leya3-compact-status-text.leya-status-thinking{
  position:relative!important;
  display:inline-block!important;
  color:#e9fbff!important;
  -webkit-text-fill-color:#e9fbff!important;
  background:none!important;
  background-image:none!important;
  animation:none!important;
  text-shadow:0 0 9px rgba(105,229,255,.2),0 1px 1px rgba(0,0,0,.42)!important;
  overflow:visible!important;
}
.leya3-page.is-thinking #leya-answer-status-text::before,
.leya3-page.is-thinking #leya3-compact-status-text::before,
#leya-answer-status-text.leya-status-thinking::before,
#leya3-compact-status-text.leya-status-thinking::before{
  content:attr(data-text)!important;
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 0 14px rgba(255,255,255,.5),0 0 20px rgba(104,231,255,.28)!important;
  -webkit-mask-image:linear-gradient(100deg,transparent 0%,transparent 34%,#000 45%,#000 55%,transparent 66%,transparent 100%)!important;
  mask-image:linear-gradient(100deg,transparent 0%,transparent 34%,#000 45%,#000 55%,transparent 66%,transparent 100%)!important;
  -webkit-mask-size:260% 100%!important;
  mask-size:260% 100%!important;
  -webkit-mask-position:165% 0!important;
  mask-position:165% 0!important;
  animation:leyaV36MaskGlint 1.05s linear infinite!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.leya-thinking-current.leya-thinking-shimmer{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:2px!important;
  overflow:visible!important;
  color:inherit!important;
  -webkit-text-fill-color:initial!important;
  background:none!important;
  background-image:none!important;
  animation:none!important;
  filter:none!important;
}
.leya-thinking-current.leya-thinking-shimmer::before,
.leya-thinking-current.leya-thinking-shimmer::after{
  display:none!important;
  content:none!important;
  opacity:0!important;
  animation:none!important;
  background:none!important;
}
.leya-thinking-word{
  position:relative!important;
  display:inline-block!important;
  overflow:visible!important;
  isolation:isolate!important;
  vertical-align:baseline!important;
}
.leya-thinking-word .leya-thinking-base{
  position:relative!important;
  z-index:1!important;
  display:inline-block!important;
  color:#f0fbff!important;
  -webkit-text-fill-color:#f0fbff!important;
  background:none!important;
  text-shadow:0 0 8px rgba(255,255,255,.16),0 1px 1px rgba(0,0,0,.42)!important;
}
.leya-thinking-word .leya-thinking-glint{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:inline-block!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 0 14px rgba(255,255,255,.54),0 0 20px rgba(104,231,255,.32)!important;
  -webkit-mask-image:linear-gradient(100deg,transparent 0%,transparent 32%,#000 45%,#000 55%,transparent 68%,transparent 100%)!important;
  mask-image:linear-gradient(100deg,transparent 0%,transparent 32%,#000 45%,#000 55%,transparent 68%,transparent 100%)!important;
  -webkit-mask-size:260% 100%!important;
  mask-size:260% 100%!important;
  -webkit-mask-position:165% 0!important;
  mask-position:165% 0!important;
  animation:leyaV36MaskGlint .92s linear infinite!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.leya-thinking-dots{
  display:inline-block!important;
  width:1.05em!important;
  min-width:1.05em!important;
  margin-left:1px!important;
  color:#f0fbff!important;
  -webkit-text-fill-color:#f0fbff!important;
  text-shadow:0 0 8px rgba(255,255,255,.24)!important;
  letter-spacing:.04em!important;
}
@keyframes leyaV36MaskGlint{0%{-webkit-mask-position:165% 0;mask-position:165% 0}100%{-webkit-mask-position:-120% 0;mask-position:-120% 0}}
@media(prefers-reduced-motion:reduce){
  #leya-answer-status-text.leya-status-thinking::before,#leya3-compact-status-text.leya-status-thinking::before,.leya-thinking-word .leya-thinking-glint{animation:none!important;opacity:0!important}
}

/* Leya UI3 v37: JS-driven moving glint for central thinking text */
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word{
  --leya-glint-x:170%;
  --leya-glint-left:108%;
  position:relative!important;
  display:inline-block!important;
  overflow:hidden!important;
  isolation:isolate!important;
  vertical-align:baseline!important;
  padding:0 .02em!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word::after{
  content:""!important;
  position:absolute!important;
  z-index:2!important;
  top:-18%!important;
  bottom:-18%!important;
  left:var(--leya-glint-left)!important;
  width:46%!important;
  background:linear-gradient(100deg,transparent 0%,rgba(120,230,255,.08) 18%,rgba(255,255,255,.55) 46%,rgba(255,255,255,.9) 52%,rgba(120,230,255,.12) 78%,transparent 100%)!important;
  transform:skewX(-17deg)!important;
  filter:blur(.35px)!important;
  opacity:.95!important;
  mix-blend-mode:screen!important;
  pointer-events:none!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-glint{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(150,232,255,.16) 25%,rgba(255,255,255,.96) 43%,#fff 50%,rgba(255,255,255,.96) 57%,rgba(150,232,255,.16) 75%,rgba(255,255,255,0) 100%)!important;
  background-size:260% 100%!important;
  background-position:var(--leya-glint-x) 0!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:none!important;
  opacity:1!important;
  text-shadow:0 0 14px rgba(255,255,255,.48),0 0 22px rgba(104,231,255,.32)!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-base{
  position:relative!important;
  z-index:1!important;
  color:#f3fcff!important;
  -webkit-text-fill-color:#f3fcff!important;
}
.leya-thinking-current.leya-thinking-shimmer::before,
.leya-thinking-current.leya-thinking-shimmer::after{
  display:none!important;
  content:none!important;
  animation:none!important;
  opacity:0!important;
}


/* Leya UI3 v38: faster left-to-right central glint, softer text, empty-dot phase */
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word{
  --leya-glint-x:-75%;
  --leya-glint-left:-137%;
  font-weight:500!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-base{
  color:#c9d6dc!important;
  -webkit-text-fill-color:#c9d6dc!important;
  font-weight:500!important;
  opacity:.92!important;
  text-shadow:0 1px 1px rgba(0,0,0,.48)!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-glint{
  font-weight:500!important;
  opacity:.78!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(145,222,245,.10) 25%,rgba(255,255,255,.68) 43%,rgba(255,255,255,.96) 50%,rgba(255,255,255,.68) 57%,rgba(145,222,245,.10) 75%,rgba(255,255,255,0) 100%)!important;
  background-size:220% 100%!important;
  text-shadow:0 0 8px rgba(255,255,255,.24),0 0 13px rgba(104,231,255,.18)!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word::after{
  width:36%!important;
  background:linear-gradient(100deg,transparent 0%,rgba(120,230,255,.04) 18%,rgba(255,255,255,.32) 46%,rgba(255,255,255,.58) 52%,rgba(120,230,255,.07) 78%,transparent 100%)!important;
  opacity:.68!important;
  filter:blur(.45px)!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-dots{
  color:#c9d6dc!important;
  -webkit-text-fill-color:#c9d6dc!important;
  font-weight:500!important;
  opacity:.92!important;
  text-shadow:0 1px 1px rgba(0,0,0,.45)!important;
}


/* Leya UI3 v39: clean text-only fast glint without rectangular sweep */
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word{
  --leya-glint-x:-95%;
  --leya-glint-left:-157%;
  overflow:visible!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-word::after{
  display:none!important;
  content:none!important;
  opacity:0!important;
  background:none!important;
  filter:none!important;
}
.leya-thinking-current.leya-thinking-shimmer .leya-thinking-glint{
  opacity:.86!important;
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(150,232,255,0) 30%,rgba(172,238,255,.18) 40%,rgba(255,255,255,.92) 49%,rgba(255,255,255,.92) 53%,rgba(172,238,255,.18) 62%,rgba(150,232,255,0) 72%,rgba(255,255,255,0) 100%)!important;
  background-size:190% 100%!important;
  background-position:var(--leya-glint-x) 0!important;
  text-shadow:0 0 7px rgba(255,255,255,.20),0 0 10px rgba(104,231,255,.14)!important;
  filter:none!important;
}


/* =========================================================
   Leya mobile layout v1 — 2026-08-10
   Desktop/tablet rules above are intentionally preserved.
   ========================================================= */
.leya3-mobile-chats,.leya3-mobile-backdrop{display:none}
@media(max-width:640px){
  :root{--leya3-menu-h:70px;--leya3-player-h:72px;--leya3-composer-h:68px;--leya3-compact-real-h:0px;--leya3-compact-dock-gap:0px}
  html,body{max-width:100%;overflow-x:hidden!important}
  html.leya3-active body{padding-bottom:var(--paxor-player-height,72px)!important}
  .leya3-page{width:100%!important;max-width:100%!important;margin:0!important;padding:8px 8px calc(var(--leya3-player-h) + 8px)!important;box-sizing:border-box!important;overflow:visible!important}
  .leya3-hero{height:108px!important;min-height:108px!important;padding:12px 14px!important;border-radius:14px!important;overflow:hidden!important}
  .leya3-eyebrow,.leya3-earth,.leya3-hero p{display:none!important}
  .leya3-hero-copy{position:absolute!important;left:78px!important;top:20px!important;width:calc(100% - 164px)!important;z-index:4!important}
  .leya3-hero h1{margin:0!important;font-size:23px!important;line-height:1.05!important;white-space:nowrap!important}
  .leya3-avatar-home{left:14px!important;bottom:14px!important;top:auto!important}
  .leya3-avatar-home .leya3-avatar,.leya3-avatar{width:52px!important;height:52px!important;border-width:1.5px!important}
  .leya3-hero-status{right:12px!important;bottom:14px!important;padding:6px 9px!important;font-size:11px!important;gap:6px!important;max-width:108px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .leya3-status-dot{width:7px!important;height:7px!important;flex:0 0 7px!important}
  .leya3-compact{display:none!important}
  .leya3-workspace,.leya3-workspace.compact-active,.leya3-page.hero-compact .leya3-workspace.compact-active{position:relative!important;top:auto!important;left:auto!important;width:100%!important;height:calc(100dvh - var(--leya3-menu-h) - 108px - var(--leya3-player-h) - 24px)!important;min-height:360px!important;max-height:none!important;margin:8px 0 0!important;padding:0!important;display:block!important;overflow:visible!important;transform:none!important}
  .leya3-chat,.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-chat{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:14px!important}
  .leya3-messages{height:100%!important;padding:54px 10px calc(var(--leya3-composer-h) + 14px)!important;scrollbar-width:thin!important}
  .leya-message-user,.leya-message-assistant{max-width:94%!important;padding:10px 12px!important;border-radius:12px!important;font-size:15px!important;line-height:1.45!important}
  .leya-message-row{margin-bottom:10px!important}
  .leya-thinking-card{min-width:0!important;max-width:94%!important}
  .leya3-mobile-chats{display:inline-flex!important;position:absolute!important;z-index:90!important;top:8px!important;right:8px!important;height:36px!important;align-items:center!important;gap:7px!important;padding:0 11px!important;border:1px solid rgba(32,217,255,.34)!important;border-radius:10px!important;background:rgba(9,18,24,.94)!important;color:#eafaff!important;font-size:12px!important;font-weight:800!important;box-shadow:0 5px 18px rgba(0,0,0,.24)!important}
  .leya3-mobile-chats>span:first-child{font-size:16px!important;line-height:1!important;color:#20d9ff!important}
  .leya3-mobile-backdrop{display:block!important;position:fixed!important;z-index:1390!important;inset:var(--leya3-menu-h) 0 var(--leya3-player-h)!important;border:0!important;background:rgba(0,0,0,.48)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility .18s ease!important}
  .leya3-sidebar,.leya3-page.hero-compact .leya3-workspace.compact-active .leya3-sidebar{display:flex!important;position:fixed!important;z-index:1400!important;top:calc(var(--leya3-menu-h) + 8px)!important;left:8px!important;bottom:calc(var(--leya3-player-h) + 8px)!important;width:min(86vw,320px)!important;height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;border-radius:14px!important;background:rgba(6,9,14,.985)!important;box-shadow:18px 0 42px rgba(0,0,0,.48)!important;transform:translateX(calc(-100% - 18px))!important;transition:transform .22s cubic-bezier(.2,.8,.2,1)!important;overflow:hidden!important}
  .leya3-page.mobile-sidebar-open .leya3-sidebar{transform:translateX(0)!important}
  .leya3-page.mobile-sidebar-open .leya3-mobile-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  .leya3-page.mobile-sidebar-open .leya3-mobile-chats{opacity:0!important;pointer-events:none!important}
  .leya3-new-chat-rail{grid-template-columns:minmax(0,1fr) 46px!important;gap:8px!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 10px!important;padding:0!important;overflow:visible!important}
  .leya3-new-chat{height:44px!important;margin:0!important;padding:0 12px!important;font-size:14px!important}
  .leya3-new-chat-rail>.music-left-toggle{display:grid!important;width:44px!important;height:44px!important;place-self:center!important}
  .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:block!important;padding:2px 6px 8px!important}
  .leya3-history{padding-right:2px!important}
  .leya3-history-item{min-height:44px!important;margin-bottom:6px!important}
  .leya3-page.sidebar-collapsed .leya3-sidebar{padding:10px!important}
  .leya3-page.sidebar-collapsed .leya3-sidebar-label,.leya3-page.sidebar-collapsed .leya3-history-item .leya3-history-title,.leya3-page.sidebar-collapsed .leya3-delete-chat{display:initial!important}
  .leya3-page.sidebar-collapsed .leya3-history-item{justify-content:flex-start!important;padding:0 11px!important}
  .leya3-page.sidebar-collapsed .leya3-history-item:before{display:none!important}
  .leya3-composer{position:fixed!important;z-index:1300!important;left:8px!important;right:8px!important;bottom:var(--leya3-player-h)!important;width:auto!important;max-width:none!important;margin:0!important;transform:none!important;padding:7px!important;border-radius:12px 12px 0 0!important}
  .leya3-prompts{display:none!important}
  .leya3-input-row{gap:7px!important;padding:6px 7px!important;border-radius:11px!important}
  .leya3-input-row textarea{min-height:28px!important;max-height:80px!important;padding:6px 3px!important;font-size:15px!important;line-height:1.35!important}
  .leya3-send,.leya3-stop{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:10px!important}
  .leya3-auth{font-size:12px!important;padding:8px 10px!important}
}
@media(max-width:390px){
  .leya3-hero-copy{left:74px!important;width:calc(100% - 150px)!important}.leya3-hero h1{font-size:21px!important}.leya3-hero-status{max-width:96px!important;padding:6px 8px!important}.leya-message-user,.leya-message-assistant{max-width:97%!important;font-size:14.5px!important}
}

/* =========================================================
   LEYA MOBILE HERO FIX
   ========================================================= */
@media (max-width:640px){

  .leya3-hero{
    height:112px!important;
    min-height:112px!important;
    padding:0!important;
    position:relative!important;
    overflow:hidden!important;
  }

  /* На мобильном старый верхний badge не нужен */
  .leya3-hero > .leya3-eyebrow{
    display:none!important;
  }

  /* Аватар */
  .leya3-avatar-home{
    position:absolute!important;
    left:14px!important;
    top:14px!important;
    bottom:auto!important;
    width:72px!important;
    height:72px!important;
    z-index:10!important;
  }

  .leya3-avatar-home .leya3-avatar{
    width:72px!important;
    height:72px!important;
  }

  /* Название */
  .leya3-hero-copy{
    position:absolute!important;
    left:100px!important;
    right:14px!important;
    top:17px!important;
    bottom:auto!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    z-index:8!important;
  }

  .leya3-hero h1{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-size:23px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Показываем описание снова, но компактно */
  .leya3-hero p{
    display:block!important;
    margin:5px 0 0!important;
    padding:0!important;
    font-size:13px!important;
    line-height:1.2!important;
    color:#c7d6dc!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .leya3-copy-break{
    display:inline!important;
  }

  /* Статус */
  .leya3-hero-status{
    position:absolute!important;
    right:14px!important;
    bottom:12px!important;
    left:auto!important;
    max-width:none!important;
    padding:5px 9px!important;
    font-size:11px!important;
    line-height:1!important;
    z-index:12!important;
    overflow:visible!important;
  }

  .leya3-status-dot{
    width:7px!important;
    height:7px!important;
    flex:0 0 7px!important;
  }
}


/* =========================================================
   DESKTOP: composer makes room for chat scrollbar on hover
   ========================================================= */
@media (min-width:901px){

  .leya3-composer{
    transition:
      width .18s ease,
      padding-right .18s ease,
      transform .18s ease!important;
  }

  /* Когда курсор над центральной колонкой,
     освобождаем справа место под широкую scrollbar */
  .leya3-chat:hover ~ .leya3-composer,
  body:has(.leya3-chat:hover) .leya3-composer,
  body:has(.leya3-messages:hover) .leya3-composer{
    width:calc(
      min(var(--leya3-max),calc(100% - 32px))
      - var(--leya3-side)
      - 14px
      - 18px
    )!important;
  }

  /* Подсказки также не должны заходить под scrollbar */
  body:has(.leya3-chat:hover) .leya3-prompts,
  body:has(.leya3-messages:hover) .leya3-prompts{
    padding-right:4px!important;
  }

  /* Нижняя рамка ввода плавно сужается вместе с composer */
  body:has(.leya3-chat:hover) .leya3-input-row,
  body:has(.leya3-messages:hover) .leya3-input-row{
    margin-right:0!important;
  }
}


/* =========================================================
   DESKTOP: permanent space for center scrollbar
   ========================================================= */
@media (min-width:901px){

  /* Весь нижний composer делаем постоянно короче справа */
  .leya3-composer{
    width:calc(
      min(var(--leya3-max),calc(100% - 32px))
      - var(--leya3-side)
      - 14px
      - 32px
    )!important;

    transition:none!important;
  }

  /* Никаких дополнительных изменений при hover */
  .leya3-chat:hover ~ .leya3-composer,
  body:has(.leya3-chat:hover) .leya3-composer,
  body:has(.leya3-messages:hover) .leya3-composer{
    width:calc(
      min(var(--leya3-max),calc(100% - 32px))
      - var(--leya3-side)
      - 14px
      - 32px
    )!important;
  }
}


/* =========================================================
   LEYA ASSISTANT MESSAGE AVATAR
   ========================================================= */

.leya-message-row.assistant{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  column-gap:10px!important;
  align-items:start!important;
  width:100%!important;
  padding-right:6px!important;
  box-sizing:border-box!important;
}

.leya-message-assistant-avatar{
  width:36px!important;
  height:36px!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:50%!important;
  border:1px solid rgba(3,125,156,.95)!important;
  box-shadow:
    0 0 0 2px rgba(3,125,156,.14),
    0 4px 12px rgba(0,0,0,.28)!important;
}

.leya-message-assistant-content{
  min-width:0!important;
  width:100%!important;
}

.leya-message-row.assistant .leya-message-assistant{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* Mobile */
@media(max-width:640px){

  .leya-message-row.assistant{
    grid-template-columns:30px minmax(0,1fr)!important;
    column-gap:7px!important;
    padding-right:2px!important;
  }

  .leya-message-assistant-avatar{
    width:28px!important;
    height:28px!important;
  }

  .leya-message-row.assistant .leya-message-assistant{
    width:100%!important;
    max-width:none!important;
  }
}


/* =========================================================
   LEYA ASSISTANT MESSAGE — FLEX WIDTH FIX
   ========================================================= */

@media (min-width:641px){

  .leya-message-row.assistant{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:10px!important;

    width:100%!important;
    max-width:100%!important;

    padding-left:4px!important;
    padding-right:20px!important;

    box-sizing:border-box!important;
  }

  .leya-message-assistant-avatar{
    flex:0 0 36px!important;
    width:36px!important;
    height:36px!important;

    margin-top:2px!important;

    object-fit:cover!important;
    border-radius:50%!important;
    border:1px solid rgba(3,125,156,.95)!important;

    box-sizing:border-box!important;
  }

  .leya-message-assistant-content{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
  }

  .leya-message-row.assistant .leya-message-assistant{
    display:block!important;

    width:100%!important;
    max-width:100%!important;
    min-width:0!important;

    margin:0!important;
    box-sizing:border-box!important;
  }
}

/* Mobile */
@media (max-width:640px){

  .leya-message-row.assistant{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    gap:7px!important;

    width:100%!important;
    max-width:100%!important;

    padding-left:0!important;
    padding-right:3px!important;

    box-sizing:border-box!important;
  }

  .leya-message-assistant-avatar{
    flex:0 0 28px!important;
    width:28px!important;
    height:28px!important;
    margin-top:2px!important;
  }

  .leya-message-assistant-content{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
  }

  .leya-message-row.assistant .leya-message-assistant{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
}


/* =========================================================
   LEYA VOICE INPUT
   ========================================================= */

.leya3-mic{
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(72,191,220,.35)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,rgba(16,31,40,.96),rgba(10,20,27,.96))!important;
  color:#bfeefa!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  font-size:18px!important;
  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease!important;
}

.leya3-mic:hover,
.leya3-mic:focus-visible{
  color:#fff!important;
  border-color:rgba(32,217,255,.72)!important;
  box-shadow:0 0 14px rgba(32,217,255,.18)!important;
  outline:0!important;
}

.leya3-mic.is-listening{
  color:#fff!important;
  border-color:rgba(255,76,92,.9)!important;
  background:linear-gradient(180deg,rgba(145,22,35,.95),rgba(95,12,23,.96))!important;
  box-shadow:
    0 0 0 3px rgba(255,65,84,.12),
    0 0 18px rgba(255,65,84,.34)!important;
  animation:leyaMicPulse 1.15s ease-in-out infinite!important;
}

@keyframes leyaMicPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(.92)}
}

@media(max-width:640px){
  .leya3-mic{
    flex-basis:44px!important;
    width:44px!important;
    height:44px!important;
    border-radius:11px!important;
    font-size:17px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .leya3-mic.is-listening{
    animation:none!important;
  }
}


/* =========================================================
   LEYA VOICE LANGUAGE + LOCAL STT
   ========================================================= */

.leya3-voice-language{
  flex:0 0 64px!important;
  width:64px!important;
  height:48px!important;
  padding:0 8px!important;
  border:1px solid rgba(72,191,220,.32)!important;
  border-radius:12px!important;
  background:#101820!important;
  color:#d8f7ff!important;
  font-size:13px!important;
  font-weight:700!important;
  text-align:center!important;
  outline:0!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}

.leya3-voice-language:hover,
.leya3-voice-language:focus{
  border-color:rgba(32,217,255,.68)!important;
}

.leya3-mic.is-transcribing{
  color:#fff!important;
  border-color:rgba(255,190,60,.82)!important;
  background:linear-gradient(180deg,rgba(137,91,12,.96),rgba(82,52,7,.96))!important;
  box-shadow:0 0 16px rgba(255,183,49,.25)!important;
  animation:leyaMicTranscribing 1.05s ease-in-out infinite!important;
}

@keyframes leyaMicTranscribing{
  0%,100%{opacity:1}
  50%{opacity:.58}
}

@media(max-width:640px){
  .leya3-voice-language{
    flex-basis:56px!important;
    width:56px!important;
    height:44px!important;
    padding:0 5px!important;
    font-size:12px!important;
    border-radius:11px!important;
  }
}


/* =========================================================
   LEYA MOBILE COMPOSER — COMPACT VOICE CONTROLS
   ========================================================= */

@media (max-width:640px){

  .leya3-input-row{
    gap:4px!important;
    padding:5px 5px!important;
    align-items:center!important;
  }

  .leya3-input-row textarea{
    min-width:0!important;
    flex:1 1 auto!important;
    padding-left:2px!important;
    padding-right:2px!important;
    font-size:14px!important;
  }

  .leya3-voice-language{
    width:46px!important;
    min-width:46px!important;
    flex:0 0 46px!important;
    height:36px!important;
    padding:0 3px!important;
    font-size:11px!important;
    border-radius:9px!important;
  }

  .leya3-mic{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
    border-radius:9px!important;
    padding:0!important;
    font-size:14px!important;
  }

  .leya3-send,
  .leya3-stop{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
    border-radius:9px!important;
    padding:0!important;
    font-size:13px!important;
  }
}


/* Very narrow phones */
@media (max-width:420px){

  .leya3-composer{
    left:5px!important;
    right:5px!important;
    padding:5px!important;
  }

  .leya3-input-row{
    gap:3px!important;
    padding:4px!important;
  }

  .leya3-input-row textarea{
    font-size:13px!important;
    padding-left:1px!important;
    padding-right:1px!important;
  }

  .leya3-voice-language{
    width:42px!important;
    min-width:42px!important;
    flex-basis:42px!important;
    height:34px!important;
    font-size:10px!important;
    padding:0 2px!important;
  }

  .leya3-mic,
  .leya3-send,
  .leya3-stop{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
    border-radius:8px!important;
  }

  .leya3-mic{
    font-size:13px!important;
  }
}



/* =========================================================
   LEYA SIDEBAR COMPACT HEADER v1
   Compact header belongs visually to the left sidebar.
   Chat keeps the full available vertical space.
   ========================================================= */
@media (min-width:641px){

  :root{
    --leya3-compact-real-h:96px;
    --leya3-compact-dock-gap:0px;
    --leya3-compact-panel-shift:0px;
  }

  .leya3-compact{
    display:flex!important;
    position:fixed!important;
    z-index:1250!important;

    top:calc(var(--leya3-menu-h) + 8px)!important;
    left:max(16px,calc((100% - var(--leya3-max))/2))!important;

    width:var(--leya3-side)!important;
    height:var(--leya3-compact-real-h)!important;
    min-height:var(--leya3-compact-real-h)!important;

    transform:translateY(-10px)!important;

    align-items:center!important;
    gap:12px!important;
    padding:10px 12px!important;

    box-sizing:border-box!important;

    border:1px solid rgba(47,194,232,.35)!important;
    border-radius:16px!important;

    background:
      linear-gradient(
        135deg,
        rgba(4,32,47,.99),
        rgba(3,92,116,.97)
      )!important;

    box-shadow:
      0 10px 26px rgba(0,0,0,.28),
      0 0 18px rgba(3,125,156,.12)!important;

    overflow:hidden!important;

    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;

    transition:
      width .20s ease,
      opacity .18s ease,
      transform .18s ease,
      visibility .18s!important;
  }

  .leya3-compact.is-visible{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(0)!important;
  }

  .leya3-compact-avatar-slot{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    min-height:58px!important;
    flex:0 0 58px!important;
    position:relative!important;
  }

  .leya3-compact .leya3-avatar{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    min-height:58px!important;
  }

  .leya3-compact-copy{
    min-width:0!important;
    align-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding-bottom:19px!important;
    box-sizing:border-box!important;
  }

  .leya3-compact-copy strong{
    font-size:18px!important;
    line-height:1.1!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .leya3-compact-copy span{
    margin-top:3px!important;
    font-size:11px!important;
    line-height:1.15!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .leya3-compact-status{
    position:absolute!important;
    left:82px!important;
    bottom:10px!important;

    margin:0!important;
    padding:0!important;
    align-self:auto!important;

    font-size:11px!important;
    line-height:1!important;
  }

  /* Compact mode no longer reserves header height above the chat. */
  .leya3-workspace.compact-active,
  .leya3-page.hero-compact .leya3-workspace.compact-active{
    position:sticky!important;
    top:calc(var(--leya3-menu-h) + 8px)!important;

    width:100%!important;

    margin-top:0!important;
    padding-top:0!important;

    height:calc(
      100dvh
      - var(--leya3-menu-h)
      - var(--leya3-player-h)
      - 16px
    )!important;

    min-height:0!important;
    max-height:none!important;

    transform:none!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  /*
   * Only the LEFT column makes room for the compact header.
   * The chat starts directly below the global menu.
   */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    padding-top:calc(var(--leya3-compact-real-h) + 12px)!important;

    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-chat{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }

  /* Collapsed sidebar = collapsed compact header. */
  .leya3-page.sidebar-collapsed .leya3-compact{
    width:var(--leya3-side)!important;
    padding:10px!important;
    justify-content:center!important;
  }

  .leya3-page.sidebar-collapsed .leya3-compact-copy,
  .leya3-page.sidebar-collapsed .leya3-compact-status{
    display:none!important;
  }

  .leya3-page.sidebar-collapsed .leya3-compact-avatar-slot{
    margin:0 auto!important;
  }
}

/* At tablet width the page itself has 9px side margins. */
@media (min-width:641px) and (max-width:900px){
  .leya3-compact{
    left:9px!important;
  }
}


/* =========================================================
   LEYA SIDEBAR COMPACT HEADER v3
   - workspace remains sticky
   - status moved right
   - New chat rail pinned below compact header
   - extra document space prevents sticky drift at page end
   ========================================================= */
@media (min-width:641px){

  :root{
    --leya3-compact-rail-top:108px;
    --leya3-compact-sidebar-top-space:176px;
  }

  /* Give sticky workspace enough document room. */
  .leya3-page.hero-compact{
    padding-bottom:calc(
      var(--leya3-player-h) + 180px
    )!important;
  }

  /* Green Leya Ready indicator -> RIGHT */
  .leya3-compact-status{
    position:absolute!important;
    left:auto!important;
    right:14px!important;
    bottom:10px!important;

    margin:0!important;
    padding:0!important;

    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;

    font-size:11px!important;
    line-height:1!important;
  }

  /*
   * Keep normal sticky behaviour.
   * Do NOT use fixed here.
   */
  .leya3-workspace.compact-active,
  .leya3-page.hero-compact .leya3-workspace.compact-active{
    position:sticky!important;

    top:calc(var(--leya3-menu-h) + 8px)!important;
    left:auto!important;
    right:auto!important;

    width:100%!important;

    margin-top:0!important;
    padding-top:0!important;

    transform:none!important;

    height:calc(
      100dvh
      - var(--leya3-menu-h)
      - var(--leya3-player-h)
      - 16px
    )!important;

    min-height:0!important;
    max-height:none!important;

    box-sizing:border-box!important;
    overflow:visible!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-chat{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;

    align-self:stretch!important;
    overflow:hidden!important;
  }

  /*
   * Sidebar reserves space for:
   * compact header + gap + New chat rail.
   */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    position:relative!important;

    padding-top:var(--leya3-compact-sidebar-top-space)!important;
    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:12px!important;

    height:100%!important;
    min-height:0!important;
    max-height:100%!important;

    overflow:hidden!important;
  }

  /*
   * New chat + collapse button
   * permanently directly below compact Leya header.
   */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-new-chat-rail{
    position:absolute!important;

    top:var(--leya3-compact-rail-top)!important;
    left:10px!important;
    right:10px!important;

    width:auto!important;
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;

    margin:0!important;

    z-index:50!important;
    box-sizing:border-box!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar>.leya3-history-title{
    margin-top:0!important;
    flex:0 0 auto!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-history{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
  }

  /* Collapsed sidebar */
  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    padding-top:232px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }

  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-new-chat-rail{
    top:108px!important;
    left:8px!important;
    right:8px!important;

    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
  }
}

@media (min-width:641px) and (max-width:900px){
  .leya3-compact-status{
    right:10px!important;
  }
}


/* =========================================================
   LEYA SIDEBAR COMPACT HEADER v4
   - compact header reduced to 84px
   - sidebar fixed independently
   - chat fixed independently
   - workspace remains as document-flow placeholder
   - New chat rail directly below compact header
   ========================================================= */
@media (min-width:641px){

  :root{
    --leya3-compact-real-h:84px;
    --leya3-compact-v4-gap:8px;
    --leya3-compact-v4-rail-h:64px;
  }

  /* Remove extra sticky runway from v3. */
  .leya3-page.hero-compact{
    padding-bottom:calc(
      var(--leya3-player-h) + 22px
    )!important;
  }

  /* =======================================================
     SMALL LEYA HEADER
     ======================================================= */
  .leya3-compact{
    height:var(--leya3-compact-real-h)!important;
    min-height:var(--leya3-compact-real-h)!important;

    padding:8px 11px!important;
  }

  .leya3-compact-avatar-slot{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    flex:0 0 52px!important;
  }

  .leya3-compact .leya3-avatar{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
  }

  .leya3-compact-copy{
    padding-bottom:15px!important;
  }

  .leya3-compact-copy strong{
    font-size:17px!important;
  }

  .leya3-compact-copy span{
    font-size:10.5px!important;
  }

  /* Green status stays at the right. */
  .leya3-compact-status{
    position:absolute!important;

    left:auto!important;
    right:12px!important;
    bottom:8px!important;

    margin:0!important;
    padding:0!important;

    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;

    font-size:10.5px!important;
    line-height:1!important;
  }

  /* =======================================================
     IMPORTANT:
     Do not fix the whole workspace.
     It remains as the normal page placeholder.
     ======================================================= */

  /*
   * Fix only LEFT SIDEBAR.
   * It cannot move upward anymore.
   */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    position:fixed!important;

    top:calc(var(--leya3-menu-h) + 8px)!important;

    left:max(
      16px,
      calc((100vw - var(--leya3-max)) / 2)
    )!important;

    bottom:calc(var(--leya3-player-h) + 8px)!important;

    width:var(--leya3-side)!important;

    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    margin:0!important;

    padding-top:calc(
      var(--leya3-compact-real-h)
      + var(--leya3-compact-v4-gap)
      + var(--leya3-compact-v4-rail-h)
      + 10px
    )!important;

    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:12px!important;

    box-sizing:border-box!important;
    overflow:hidden!important;

    z-index:220!important;
  }

  /*
   * New chat + collapse is positioned relative
   * to the now-fixed sidebar.
   */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-new-chat-rail{
    position:absolute!important;

    top:calc(
      var(--leya3-compact-real-h)
      + var(--leya3-compact-v4-gap)
    )!important;

    left:10px!important;
    right:10px!important;

    width:auto!important;

    height:var(--leya3-compact-v4-rail-h)!important;
    min-height:var(--leya3-compact-v4-rail-h)!important;
    max-height:var(--leya3-compact-v4-rail-h)!important;

    margin:0!important;

    z-index:50!important;

    box-sizing:border-box!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar>.leya3-history-title{
    margin-top:0!important;
    flex:0 0 auto!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-history{
    flex:1 1 auto!important;
    min-height:0!important;

    overflow-y:auto!important;
    overflow-x:hidden!important;
  }

  /* =======================================================
     FIX ONLY CHAT COLUMN
     ======================================================= */
  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-chat{
    position:fixed!important;

    top:calc(var(--leya3-menu-h) + 8px)!important;

    left:calc(
      max(
        16px,
        calc((100vw - var(--leya3-max)) / 2)
      )
      + var(--leya3-side)
      + 14px
    )!important;

    right:max(
      16px,
      calc((100vw - var(--leya3-max)) / 2)
    )!important;

    bottom:calc(var(--leya3-player-h) + 8px)!important;

    width:auto!important;

    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    margin:0!important;

    align-self:auto!important;
    overflow:hidden!important;

    z-index:210!important;
  }

  /*
   * Composer is already fixed.
   * Chat messages remain behind/above it as before.
   */

  /* =======================================================
     COLLAPSED LEFT COLUMN
     ======================================================= */
  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    width:var(--leya3-side)!important;

    padding-top:calc(
      var(--leya3-compact-real-h) + 132px
    )!important;

    padding-left:8px!important;
    padding-right:8px!important;
  }

  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-new-chat-rail{
    top:calc(
      var(--leya3-compact-real-h) + 8px
    )!important;

    left:8px!important;
    right:8px!important;

    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
  }
}

/* =========================================================
   TABLET 641–900
   Page margins = 9px, grid gap = 8px
   ========================================================= */
@media (min-width:641px) and (max-width:900px){

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-sidebar{
    left:9px!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-chat{
    left:calc(
      9px + var(--leya3-side) + 8px
    )!important;

    right:9px!important;
  }

  .leya3-compact-status{
    right:10px!important;
  }
}


/* =========================================================
   LEYA COMPACT HEIGHTS v1
   Only heights. No layout logic changes.
   ========================================================= */
@media (min-width:641px){

  :root{
    --leya3-compact-real-h:74px;
    --leya3-compact-v4-rail-h:54px;
  }

  .leya3-compact{
    height:74px!important;
    min-height:74px!important;
  }

  .leya3-page.hero-compact
  .leya3-workspace.compact-active
  .leya3-new-chat-rail{
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
  }

  .leya3-page.hero-compact
  .leya3-new-chat-rail .leya3-new-chat{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
  }

  .leya3-page.hero-compact
  .leya3-new-chat-rail .music-left-toggle{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
  }
}


/* =========================================================
   LEYA SIDEBAR CONTROLS v1
   - collapsed control rail tall enough for + and toggle
   - expanded New chat hover slightly brighter
   ========================================================= */
@media (min-width:641px){

  /*
   * Collapsed sidebar:
   * restore enough vertical room for both controls.
   * This intentionally overrides the generic 54px rail.
   */
  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-workspace.compact-active
  .leya3-new-chat-rail{
    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;

    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:44px 44px!important;

    gap:6px!important;
    padding:10px 0!important;

    align-content:center!important;
    justify-items:center!important;

    overflow:hidden!important;
  }

  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-new-chat-rail .leya3-new-chat{
    width:46px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;

    margin:0!important;
    padding:0!important;

    display:grid!important;
    place-items:center!important;
  }

  .leya3-page.sidebar-collapsed.hero-compact
  .leya3-new-chat-rail .music-left-toggle{
    width:46px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;

    margin:0!important;
    padding:0!important;

    place-self:center!important;
  }

  /*
   * Expanded sidebar:
   * New chat becomes slightly brighter on hover.
   */
  .leya3-page:not(.sidebar-collapsed)
  .leya3-new-chat:hover,
  .leya3-page:not(.sidebar-collapsed)
  .leya3-new-chat:focus-visible{
    background:#20282e!important;
    border-color:rgba(160,190,202,.52)!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 0 12px rgba(20,185,225,.08)!important;
  }
}

/* =========================================================
   LEYA SERVER FAQ COMPACT v50
   ========================================================= */
.leya3-page{
  --leya3-side:286px;
  --leya3-side-collapsed:64px;
}

html.leya3-active body .leya3-sidebar{
  padding:10px!important;
  border-color:rgba(255,255,255,.11)!important;
  border-radius:14px!important;
  background:#07090d!important;
}

html.leya3-active body .leya3-new-chat-rail{
  grid-template-columns:minmax(0,1fr) 38px!important;
  gap:8px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 8px!important;
  padding:0!important;
}

html.leya3-active body .leya3-new-chat{
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#f4f7f8!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1!important;
  gap:8px!important;
}

html.leya3-active body .leya3-new-chat:hover,
html.leya3-active body .leya3-new-chat:focus-visible{
  background:rgba(255,255,255,.08)!important;
  outline:0!important;
}

html.leya3-active body .leya3-plus{
  font-size:18px!important;
  line-height:1!important;
}

html.leya3-active body .leya3-new-chat-rail>.music-left-toggle{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  padding:0!important;
}

html.leya3-active body .leya3-new-chat-rail .music-sidebar-layout-icon{
  width:30px!important;
  height:26px!important;
}

.leya3-faq{
  flex:0 0 auto!important;
  margin:0 0 10px!important;
  padding:0!important;
}

.leya3-faq-summary{
  min-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  color:#e8eef2!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.2!important;
  list-style:none!important;
  cursor:pointer!important;
  user-select:none!important;
}

.leya3-faq-summary::-webkit-details-marker{
  display:none!important;
}

.leya3-faq-summary::after{
  content:"+"!important;
  width:18px!important;
  height:18px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 18px!important;
  border-radius:5px!important;
  color:#a8b3bb!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1!important;
}

.leya3-faq[open] .leya3-faq-summary::after{
  content:"-"!important;
}

.leya3-faq-summary:hover,
.leya3-faq-summary:focus-visible{
  background:rgba(255,255,255,.08)!important;
  outline:0!important;
}

.leya3-faq-menu{
  display:grid!important;
  gap:3px!important;
  padding:4px 0 2px!important;
}

.leya3-faq:not([open]) .leya3-faq-menu{
  display:none!important;
}

.leya3-faq-menu .leya-quick-prompt{
  width:100%!important;
  min-height:34px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#c8d0d5!important;
  font-size:12.5px!important;
  font-weight:500!important;
  line-height:1.25!important;
  text-align:left!important;
  white-space:normal!important;
  cursor:pointer!important;
}

.leya3-faq-menu .leya-quick-prompt:hover,
.leya3-faq-menu .leya-quick-prompt:focus-visible{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  outline:0!important;
}

html.leya3-active body #leya-input-container>.leya3-prompts,
html.leya3-active body #leya-input-container>.leya-composer-prompts{
  display:none!important;
}

html.leya3-active body .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{
  padding:4px 8px 7px!important;
  color:#8f989f!important;
  opacity:1!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-shadow:none!important;
}

html.leya3-active body .leya3-history{
  padding-right:2px!important;
}

html.leya3-active body .leya3-history-item{
  min-height:36px!important;
  margin-bottom:2px!important;
  padding:0 5px 0 9px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#e2e6e9!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.2!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
}

html.leya3-active body .leya3-history-item:hover,
html.leya3-active body .leya3-history-item:focus-visible{
  background:rgba(255,255,255,.08)!important;
  outline:0!important;
}

html.leya3-active body .leya3-history-item.active{
  background:rgba(255,255,255,.12)!important;
  border-color:transparent!important;
  color:#fff!important;
}

html.leya3-active body .leya3-history .leya3-history-title{
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.2!important;
}

html.leya3-active body .leya3-composer{
  padding:8px 10px 10px!important;
}

html.leya3-active body .leya3-input-row{
  padding:7px 9px!important;
  border-radius:14px!important;
}

.leya3-page.sidebar-collapsed .leya3-faq{
  display:none!important;
}

.leya3-page.sidebar-collapsed .leya3-new-chat-rail{
  grid-template-columns:1fr!important;
  justify-items:center!important;
  gap:7px!important;
}

.leya3-page.sidebar-collapsed .leya3-new-chat{
  width:38px!important;
  padding:0!important;
  justify-content:center!important;
}

@media(max-width:900px){
  .leya3-page{--leya3-side:230px}
  .leya3-faq-summary{font-size:12.5px!important;padding:0 8px!important}
  .leya3-faq-menu .leya-quick-prompt{font-size:12px!important}
}

@media(max-width:640px){
  .leya3-page{--leya3-side:286px}
  .leya3-faq-summary{min-height:40px!important;font-size:13px!important}
  .leya3-faq-menu .leya-quick-prompt{min-height:38px!important;font-size:13px!important}
  html.leya3-active body .leya3-new-chat{height:40px!important;min-height:40px!important;font-size:13px!important}
  html.leya3-active body .leya3-history-item{min-height:38px!important;font-size:13px!important}
}


/* LEYA SERVER COLLAPSED CHATS DELETE MODAL v51 */
.leya3-hero-copy p br{display:block!important}
.leya3-hero-copy p span{display:inline!important}
.leya3-collapsed-chats{display:none!important}

@media(min-width:641px){
  .leya3-page.sidebar-collapsed .leya3-sidebar{position:relative!important;overflow:hidden!important}
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-sidebar{overflow:visible!important}
  .leya3-page.sidebar-collapsed .leya3-new-chat-rail{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;gap:6px!important;height:auto!important;min-height:0!important;max-height:none!important;margin-bottom:8px!important}
  .leya3-page.sidebar-collapsed .leya3-new-chat{width:34px!important;height:34px!important;min-height:34px!important;border-radius:9px!important;padding:0!important}
  .leya3-page.sidebar-collapsed .leya3-plus{font-size:18px!important;line-height:1!important}
  .leya3-page.sidebar-collapsed .leya3-new-chat-rail>.music-left-toggle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .leya3-page.sidebar-collapsed .music-sidebar-layout-icon{width:28px!important;height:23px!important;border-width:1.7px!important;border-radius:6px!important}
  .leya3-page.sidebar-collapsed .music-sidebar-layout-rail{top:3px!important;bottom:3px!important;left:3px!important;width:8px!important}
  .leya3-page.sidebar-collapsed .music-sidebar-layout-content{top:3px!important;bottom:3px!important;left:13px!important;right:3px!important}
  .leya3-page.sidebar-collapsed .leya3-collapsed-chats{position:relative!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;margin:4px auto 10px!important;border:1px solid rgba(150,165,175,.3)!important;border-radius:9px!important;background:rgba(255,255,255,.045)!important;color:#dce8ee!important;cursor:pointer!important;transition:background .16s ease,color .16s ease,transform .16s ease!important}
  .leya3-page.sidebar-collapsed .leya3-collapsed-chats:hover,
  .leya3-page.sidebar-collapsed .leya3-collapsed-chats:focus-visible,
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-collapsed-chats{background:rgba(255,255,255,.12)!important;color:#fff!important;outline:0!important;transform:scale(.97)!important}
  .leya3-page.sidebar-collapsed .leya3-collapsed-chats i{font-size:14px!important;line-height:1!important}
  .leya3-page.sidebar-collapsed .leya3-collapsed-chat-count{position:absolute!important;right:-5px!important;top:-6px!important;min-width:15px!important;height:15px!important;padding:0 4px!important;border-radius:999px!important;background:#08abd4!important;color:#fff!important;font-size:9px!important;font-weight:800!important;line-height:15px!important;box-shadow:0 0 0 2px rgba(6,9,14,.96)!important}
  .leya3-page.sidebar-collapsed .leya3-sidebar>.leya3-history-title.leya3-sidebar-label{display:none!important}
  .leya3-page.sidebar-collapsed .leya3-history{display:none!important}
  .leya3-page.sidebar-collapsed .leya3-history-item:before{display:none!important}
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-history{position:absolute!important;display:block!important;left:calc(100% + 10px)!important;top:84px!important;width:260px!important;max-height:min(62vh,420px)!important;padding:8px!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid rgba(170,178,188,.28)!important;border-radius:12px!important;background:rgba(18,22,27,.98)!important;box-shadow:0 22px 44px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.04)!important;z-index:1600!important}
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-history .leya3-history-item{display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;justify-content:stretch!important;min-height:36px!important;padding:0 6px 0 10px!important}
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-history .leya3-history-title{display:block!important;font-size:13px!important;font-weight:500!important;line-height:1.2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .leya3-page.sidebar-collapsed.collapsed-chat-list-open .leya3-history-menu-wrap{display:grid!important}
}

.leya3-delete-modal[hidden]{display:none!important}
.leya3-delete-modal{position:fixed!important;inset:0!important;z-index:3000!important;display:grid!important;place-items:center!important;padding:20px!important;background:rgba(0,0,0,.56)!important;backdrop-filter:blur(7px)!important}
.leya3-delete-dialog{width:min(380px,calc(100vw - 32px))!important;padding:20px!important;border:1px solid rgba(170,178,188,.28)!important;border-radius:14px!important;background:#12161b!important;color:#f7fbff!important;box-shadow:0 24px 70px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.04)!important}
.leya3-delete-dialog h2{margin:0 0 8px!important;font-size:18px!important;font-weight:850!important;line-height:1.2!important;letter-spacing:0!important}
.leya3-delete-dialog p{margin:0!important;color:#c8d2d7!important;font-size:14px!important;line-height:1.45!important}
.leya3-delete-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;margin-top:18px!important}
.leya3-delete-actions button{height:38px!important;padding:0 15px!important;border-radius:9px!important;font-size:14px!important;font-weight:750!important;cursor:pointer!important}
.leya3-delete-cancel{border:1px solid rgba(170,178,188,.28)!important;background:rgba(255,255,255,.06)!important;color:#edf5f8!important}
.leya3-delete-cancel:hover,.leya3-delete-cancel:focus-visible{background:rgba(255,255,255,.12)!important;outline:0!important}
.leya3-delete-confirm{border:1px solid rgba(255,99,99,.38)!important;background:#c93434!important;color:#fff!important}
.leya3-delete-confirm:hover,.leya3-delete-confirm:focus-visible{background:#e04444!important;outline:0!important}
/* END LEYA SERVER COLLAPSED CHATS DELETE MODAL v51 */

/* =========================================================
   LEYA FAQ — highlighted sidebar section v52
   ========================================================= */

.leya3-faq{
  margin:2px 0 12px!important;
}

.leya3-faq-summary{
  min-height:40px!important;
  padding:0 11px!important;

  border:1px solid rgba(29,202,139,.24)!important;
  border-radius:9px!important;

  background:
    linear-gradient(
      135deg,
      rgba(29,202,139,.10),
      rgba(42,126,255,.06)
    )!important;

  color:#eef8f4!important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 0 0 1px rgba(29,202,139,.015)!important;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease!important;
}

.leya3-faq-summary::after{
  color:#1dca8b!important;
  background:rgba(29,202,139,.10)!important;
  border:1px solid rgba(29,202,139,.18)!important;
}

.leya3-faq-summary:hover,
.leya3-faq-summary:focus-visible{
  background:
    linear-gradient(
      135deg,
      rgba(29,202,139,.15),
      rgba(42,126,255,.09)
    )!important;

  border-color:rgba(29,202,139,.40)!important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 14px rgba(29,202,139,.06)!important;

  outline:0!important;
}

.leya3-faq[open] .leya3-faq-summary{
  border-color:rgba(29,202,139,.34)!important;
  background:
    linear-gradient(
      135deg,
      rgba(29,202,139,.13),
      rgba(42,126,255,.075)
    )!important;
}

.leya3-faq-menu{
  max-height:min(44vh,420px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;

  margin-top:5px!important;
  padding:5px 3px 5px 2px!important;

  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}

.leya3-faq-menu::-webkit-scrollbar{
  width:5px;
}

.leya3-faq-menu::-webkit-scrollbar-track{
  background:transparent;
}

.leya3-faq-menu::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.17);
  border-radius:10px;
}

.leya3-faq-menu .leya-quick-prompt{
  border-left:2px solid transparent!important;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    padding-left .16s ease!important;
}

.leya3-faq-menu .leya-quick-prompt:hover,
.leya3-faq-menu .leya-quick-prompt:focus-visible{
  background:rgba(29,202,139,.075)!important;
  border-left-color:rgba(29,202,139,.55)!important;
  color:#ffffff!important;
  padding-left:12px!important;
}

/* =========================================================
   LEYA SIDEBAR FAQ — CLEAN FINAL LAYOUT
   New chat -> FAQ -> questions -> Chats
   ========================================================= */

html.leya3-active body #leya-sidebar {
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    min-height:0 !important;
    overflow:hidden !important;
}

/* ---------- NEW CHAT ---------- */

html.leya3-active body #leya-sidebar > .leya3-new-chat-rail {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 38px !important;
    align-items:center !important;
    gap:8px !important;

    flex:0 0 44px !important;

    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;

    margin:0 0 8px !important;
    padding:0 !important;

    box-sizing:border-box !important;

    position:static !important;
    inset:auto !important;
    transform:none !important;
    translate:none !important;

    overflow:visible !important;
}

html.leya3-active body #leya-sidebar > .leya3-new-chat-rail > .leya3-new-chat {
    position:static !important;

    display:flex !important;
    align-items:center !important;
    gap:8px !important;

    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;

    margin:0 !important;
    padding:0 10px !important;

    box-sizing:border-box !important;

    transform:none !important;
    translate:none !important;

    font-size:13px !important;
    line-height:1.2 !important;
}

html.leya3-active body #leya-sidebar
> .leya3-new-chat-rail
> .leya3-new-chat
> .leya3-sidebar-label {
    display:block !important;

    margin:0 !important;

    font-size:13px !important;
    font-weight:650 !important;
    line-height:1.2 !important;

    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

html.leya3-active body #leya-sidebar
> .leya3-new-chat-rail
> .leya3-new-chat
> .leya3-plus {
    font-size:18px !important;
    line-height:1 !important;
}

html.leya3-active body #leya-sidebar
> .leya3-new-chat-rail
> .music-left-toggle {
    position:static !important;
    inset:auto !important;

    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;

    margin:0 !important;
    padding:0 !important;

    place-self:center !important;

    transform:none !important;
    translate:none !important;
}

/* ---------- FAQ ---------- */

html.leya3-active body #leya-sidebar > .leya3-faq {
    display:block !important;

    position:static !important;
    inset:auto !important;

    flex:0 0 auto !important;

    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    margin:0 0 10px !important;
    padding:0 !important;

    box-sizing:border-box !important;

    transform:none !important;
    translate:none !important;

    overflow:visible !important;
}

html.leya3-active body #leya-sidebar
> .leya3-faq
> .leya3-faq-summary {
    position:static !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;

    width:100% !important;
    min-height:42px !important;
    height:auto !important;

    margin:0 !important;
    padding:8px 10px !important;

    box-sizing:border-box !important;

    transform:none !important;
    translate:none !important;

    font-size:13px !important;
    line-height:1.2 !important;

    white-space:nowrap !important;
}

/* closed */
html.leya3-active body #leya-sidebar
> .leya3-faq
> .leya3-faq-menu[hidden] {
    display:none !important;
}

/* open */
html.leya3-active body #leya-sidebar
> .leya3-faq.is-open
> .leya3-faq-menu {
    display:grid !important;

    position:static !important;
    inset:auto !important;

    width:100% !important;
    height:auto !important;

    margin:5px 0 0 !important;
    padding:5px 3px !important;

    box-sizing:border-box !important;

    transform:none !important;
    translate:none !important;

    max-height:min(28vh,220px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

html.leya3-active body #leya-sidebar
> .leya3-faq.is-open
> .leya3-faq-summary::after {
    content:"-" !important;
}

/* ---------- CHATS ---------- */

html.leya3-active body #leya-sidebar > .leya3-history-title {
    position:static !important;
    flex:0 0 auto !important;
    transform:none !important;
}

html.leya3-active body #leya-sidebar > .leya3-history {
    position:static !important;

    flex:1 1 140px !important;
    min-height:120px !important;
    max-height:none !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;
}



/* Keep chat list usable while FAQ is open */
@media (max-width:640px) {
    html.leya3-active body #leya-sidebar
    > .leya3-faq.is-open
    > .leya3-faq-menu {
        max-height:min(24vh,180px) !important;
    }

    html.leya3-active body #leya-sidebar > .leya3-history {
        flex:1 1 140px !important;
        min-height:140px !important;
        overflow-y:auto !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
    }
}

/* =========================================================
   LEYA SIDEBAR — ONE COMMON SCROLL
   ========================================================= */

/* One scrollbar for the whole sidebar */
html.leya3-active body #leya-sidebar {
    overflow-y:auto !important;
    overflow-x:hidden !important;

    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.20) transparent;

    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
}

/* FAQ must grow naturally — no separate scrollbar */
html.leya3-active body #leya-sidebar
> .leya3-faq.is-open
> .leya3-faq-menu {
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    overflow:visible !important;
}

/* Chats must also grow naturally — no separate scrollbar */
html.leya3-active body #leya-sidebar
> .leya3-history {
    flex:0 0 auto !important;

    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    overflow:visible !important;
    overscroll-behavior:auto !important;
}

/* WebKit scrollbar */
html.leya3-active body #leya-sidebar::-webkit-scrollbar {
    width:7px;
}

html.leya3-active body #leya-sidebar::-webkit-scrollbar-track {
    background:transparent;
}

html.leya3-active body #leya-sidebar::-webkit-scrollbar-thumb {
    background:rgba(255,255,255,.18);
    border-radius:10px;
}

