/* LL AI v66.39 — final-system UI polish. */
:root{--ll39-panel:#171717;--ll39-panel-2:#202020;--ll39-line:rgba(255,255,255,.10);--ll39-line-strong:rgba(255,255,255,.16);--ll39-text:#f4f4f4;--ll39-muted:#929292;--ll39-hover:#242424;--ll39-ease:cubic-bezier(.2,.82,.22,1);--ll39-spring:cubic-bezier(.16,1,.3,1)}

/* ---------- Plugins are a catalogue, not a settings panel ---------- */
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginList{width:min(760px,100%)!important;padding-top:4px!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginList>h2{font-size:16px!important;font-weight:650!important;margin:0 0 10px!important;color:#ededed!important}
#ll6637Plugins.ll6639PluginCatalogue [data-plugin-list]{display:block!important}
#ll6637Plugins.ll6639PluginCatalogue .ll6639PluginRow{width:100%!important;min-height:76px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:9px 4px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.055)!important;background:transparent!important;color:#f4f4f4!important;text-align:left!important;cursor:default!important;pointer-events:none!important;transform:none!important}
#ll6637Plugins.ll6639PluginCatalogue .ll6639PluginRow:last-child{border-bottom:0!important}
#ll6637Plugins.ll6639PluginCatalogue .ll6639PluginRow:hover{background:transparent!important;translate:0!important;scale:1!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginToggle{display:none!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginIcon{width:44px!important;height:44px!important;border-radius:12px!important;background:#171717!important;border:1px solid rgba(255,255,255,.075)!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginCopy b{font-size:16px!important;font-weight:560!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginCopy small{font-size:13.5px!important;color:#8d8d8d!important}
#ll6637Plugins.ll6639PluginCatalogue .ll37PluginNote{font-size:12.5px!important;max-width:650px!important;margin-top:20px!important;color:#666!important}

/* ---------- Temporary Chat button: one stable bubble/check design ---------- */
#ll6638TopPrimary{isolation:isolate!important}
#ll6638TopPrimary::before{transition:opacity .14s ease,scale .18s var(--ll39-spring),rotate .18s var(--ll39-spring)!important}
#ll6638TopPrimary.ll6639ModeMorph::before{animation:ll39ModeMorph .24s var(--ll39-spring) both!important}
@keyframes ll39ModeMorph{0%{opacity:.4;scale:.84;rotate:-5deg}65%{opacity:1;scale:1.08;rotate:1deg}100%{opacity:.96;scale:1;rotate:0}}
/* cleaner active glyph: roomy check that never hits the bubble edge */
#ll6638TopPrimary[data-mode="temporary"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.62' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.25 11.6a7.25 7.25 0 0 1-10.35 6.55L5.25 19.2l1-3.28A7.25 7.25 0 1 1 19.25 11.6Z'/%3E%3Cpath d='m8.8 11.85 1.72 1.72 4.35-4.35' stroke-width='1.8'/%3E%3C/svg%3E")!important}

/* ---------- contextual Search & Commands ---------- */
#ll6639Commands{position:fixed;inset:0;z-index:2100;background:rgba(0,0,0,.66);display:grid;place-items:start center;padding:clamp(74px,11vh,118px) 14px 20px;opacity:1}
#ll6639Commands[hidden]{display:none!important}
.ll6639CommandCard{width:min(680px,96vw);max-height:min(690px,78dvh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:23px;background:#181818;color:#f3f3f3;box-shadow:0 34px 110px rgba(0,0,0,.58);animation:ll39CommandIn .22s var(--ll39-spring) both}
@keyframes ll39CommandIn{from{opacity:0;translate:0 -9px;scale:.982}to{opacity:1;translate:0 0;scale:1}}
.ll6639CommandCard>header{min-height:66px;display:grid;grid-template-columns:28px minmax(0,1fr) 40px;align-items:center;gap:10px;padding:0 13px 0 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.ll6639CommandCard>header>svg{width:21px;height:21px;fill:none;stroke:#aaa;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ll6639CommandCard>header input{min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;font-size:17px!important;padding:0!important}
.ll6639CommandCard>header input::placeholder{color:#777}.ll6639CommandCard>header button{width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#a8a8a8;display:grid;place-items:center}.ll6639CommandCard>header button:hover{background:#292929;color:#fff}.ll6639CommandCard>header button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.ll6639CommandList{overflow:auto;padding:7px 8px 10px;scrollbar-width:none}.ll6639CommandList::-webkit-scrollbar{display:none}.ll6639CommandGroup{padding:10px 10px 5px;color:#747474;font-size:10.5px;font-weight:700;letter-spacing:.075em;text-transform:uppercase}.ll6639CommandItem{width:100%;min-height:58px;border:0;border-radius:13px;background:transparent;color:#f2f2f2;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px 10px;text-align:left}.ll6639CommandItem:hover,.ll6639CommandItem.active{background:#262626}.ll6639CommandIcon{width:38px;height:38px;border-radius:11px;background:#232323;display:grid;place-items:center;color:#ddd}.ll6639CommandIcon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.ll6639CommandItem>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}.ll6639CommandItem b{font-size:13.5px;font-weight:570}.ll6639CommandItem small{font-size:11.5px;color:#898989;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ll6639CommandItem kbd{font:10px system-ui;color:#888;border:1px solid rgba(255,255,255,.09);border-radius:7px;padding:4px 6px;background:#202020}.ll6639CommandItem i{font-style:normal;color:#686868;font-size:20px}.ll6639CommandEmpty{padding:42px 20px;text-align:center;color:#7f7f7f}.ll6639CommandCard>footer{display:flex;gap:14px;flex-wrap:wrap;padding:9px 14px 11px;border-top:1px solid rgba(255,255,255,.07);color:#737373;font-size:10.5px}.ll6639CommandCard>footer span{display:flex;align-items:center;gap:4px}.ll6639CommandCard>footer kbd{font:10px system-ui;padding:2px 5px;border:1px solid rgba(255,255,255,.08);border-radius:5px;background:#202020;color:#999}

/* ---------- Working / Worked for ---------- */
.thinkingTrace.ll6535Thinking.ll6639Working>.thinkingSummary{width:max-content!important;max-width:100%!important;min-height:30px!important;padding:1px 3px!important;border-radius:8px!important;color:#c9c9c9!important}
.thinkingTrace.ll6535Thinking.ll6639Working>.thinkingSummary:hover{color:#f1f1f1!important;background:rgba(255,255,255,.025)!important}
.thinkingTrace.ll6535Thinking.ll6639Working .thinkingSummaryLabel{font-size:14px!important;font-weight:500!important;letter-spacing:-.008em!important}
.thinkingTrace.ll6535Thinking.ll6639Working .llThinkPanel{padding-left:10px!important;border-left-color:rgba(255,255,255,.08)!important}
.thinkingTrace.ll6535Thinking.ll6639Working .llThinkStep{padding:7px 7px 7px 9px!important;border-radius:8px!important}.thinkingTrace.ll6535Thinking.ll6639Working .llThinkStep.active{background:rgba(255,255,255,.025)!important}

/* ---------- Settings ---------- */
#ll6637Settings .ll37PageHeader{position:sticky!important;top:0!important;z-index:5!important;background:#000!important}
#ll6637Settings .ll37SettingsStack{width:min(720px,100%)!important}
#ll6637Settings .ll37SettingsGroup{border-radius:22px!important;background:#333!important;overflow:hidden!important;margin-bottom:22px!important}
#ll6637Settings .ll37SettingsRow{min-height:66px!important;background:#353535!important;border-bottom:1px solid rgba(0,0,0,.52)!important;padding:9px 16px!important}
#ll6637Settings .ll37SettingsRow:hover{background:#3d3d3d!important}.ll37SettingsRow:active{background:#414141!important}
#ll6637Settings .ll37RowText b{font-size:16px!important;font-weight:500!important}.ll37RowText small{font-size:13px!important;color:#aaa!important}

/* ---------- Projects ---------- */
#ll6632ProjectsSurface .ll6632ProjectsBody{max-width:1180px!important;margin:0 auto!important;width:100%!important;padding-top:18px!important}
#ll6632ProjectsSurface .ll6632ProjectsIntro{margin-bottom:20px!important}
#ll6632ProjectsSurface .ll6632ProjectGrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:10px!important}
#ll6632ProjectsSurface .ll6632ProjectCard{min-height:84px!important;background:#0c0c0c!important;border-color:rgba(255,255,255,.085)!important;border-radius:15px!important;box-shadow:none!important}
#ll6632ProjectsSurface .ll6632ProjectCard:hover{background:#141414!important;border-color:rgba(255,255,255,.15)!important;translate:0 -1px!important}
#ll6632ProjectsSurface .ll6632ProjectHero{padding:12px 0 18px!important}.ll6632ProjectHero h2{font-size:27px!important}.ll6632ProjectHero p{max-width:760px!important}
#ll6632ProjectsSurface .ll6632ProjectActions{margin:0 0 24px!important;gap:7px!important}.ll6632ProjectActions button{min-height:40px!important;border-radius:11px!important;padding:0 13px!important}.ll6632ProjectActions .primary{background:#eee!important;color:#111!important}
#ll6632ProjectsSurface .ll6632FeatureSection{border-top:1px solid rgba(255,255,255,.075)!important;padding-top:18px!important;margin-top:18px!important}.ll6632SectionHead h3{font-size:14px!important}.ll6632SectionHead button{font-size:12px!important;color:#aaa!important}.ll6632List>button,.ll6632FileRow{border-radius:11px!important}

/* project context above composer */
#ll6639ProjectChip{position:absolute;left:50%;bottom:calc(100% - 11px);translate:-50% 0;max-width:min(420px,70vw);height:30px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:#151515;color:#aaa;display:flex;align-items:center;gap:7px;padding:0 11px;font-size:11px;z-index:2;box-shadow:0 5px 20px rgba(0,0,0,.24)}
#ll6639ProjectChip:hover{background:#1d1d1d;color:#ddd}#ll6639ProjectChip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}#ll6639ProjectChip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- Sidebar ---------- */
#chatHistory{scrollbar-width:none!important}#chatHistory::-webkit-scrollbar{display:none!important}.chatItem{min-width:0!important}.chatItemMain,.chatItemTop{min-width:0!important}.chatItemTitle{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.chatItem.active{background:#1b1b1b!important;box-shadow:none!important}.chatItem.active::before{content:""!important;position:absolute!important;left:0!important;top:10px!important;bottom:10px!important;width:2px!important;border-radius:2px!important;background:#8e8e8e!important}.chatItem:hover{background:#141414!important;translate:1px 0!important}.chatActions{transition:opacity .13s ease!important}

/* ---------- Composer ---------- */
.composebox{border-color:rgba(255,255,255,.115)!important;background:#1e1e1e!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important}.composebox:focus-within{border-color:rgba(255,255,255,.20)!important;box-shadow:0 10px 34px rgba(0,0,0,.22)!important}.composebox textarea{font-size:16px!important;line-height:1.45!important}.composerPrimary:disabled,.composerDictation:disabled,.composerPlus:disabled{opacity:.42!important;box-shadow:none!important}.pendingAttachments{gap:7px!important}.pendingAttachments>div{border-radius:12px!important;background:#181818!important;border-color:rgba(255,255,255,.09)!important}

/* ---------- Messages / markdown ---------- */
.msgrow pre,.msg.ai pre{max-width:100%!important;overflow:auto!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:12px!important;background:#101010!important;padding:12px 13px!important}.msgrow table,.msg.ai table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;margin:12px 0}.msgrow th,.msgrow td,.msg.ai th,.msg.ai td{border-bottom:1px solid rgba(255,255,255,.08);padding:8px 10px;text-align:left;white-space:nowrap}.msgrow blockquote,.msg.ai blockquote{margin:10px 0;padding:2px 0 2px 13px;border-left:2px solid rgba(255,255,255,.17);color:#aaa}.responseStreaming::after,.assistantTextBody.llStreamingMarkdown::after{width:2px!important;border-radius:2px!important;box-shadow:none!important;opacity:.7!important}
.msgActions button,.ll625MoreBtn{border-radius:9px!important}.msgActions button:focus-visible,.ll625MoreBtn:focus-visible{outline:1px solid rgba(255,255,255,.28)!important;outline-offset:2px!important}

/* ---------- Retry/error toast ---------- */
.llToast[data-tone="error"]{border-color:rgba(255,110,125,.20)!important;background:#1b1718!important}.llToast[data-tone="error"] .llToastAction{background:#2b2224!important;color:#ffb0ba!important}.llToastAction{min-height:31px!important;border-radius:9px!important;padding-inline:10px!important}

/* ---------- menus ---------- */
#ll6635ChatMenu,#ll6631ChatMenu,#chatContextMenu,.ll625ResponseMenu{border-radius:16px!important;border-color:rgba(255,255,255,.12)!important;background:#242424!important;box-shadow:0 24px 70px rgba(0,0,0,.50)!important}.ll625ResponseMenu button,#ll6635ChatMenu button,#ll6631ChatMenu button,#chatContextMenu button{min-height:43px!important;border-radius:10px!important}

@media(max-width:700px){.ll6639CommandCard{width:calc(100vw - 20px);max-height:78dvh;border-radius:20px}.ll6639CommandCard>footer{display:none}.ll6639CommandItem{min-height:56px}.ll6639CommandItem small{font-size:11px}#ll6639ProjectChip{max-width:76vw}.ll6632ProjectActions{display:grid!important;grid-template-columns:1fr 1fr!important}.ll6632ProjectActions .primary{grid-column:1/-1!important}}
@media(prefers-reduced-motion:reduce){#ll6638TopPrimary.ll6639ModeMorph::before,.ll6639CommandCard{animation:none!important}#ll6638TopPrimary::before{transition:none!important}}
