/* LL AI v66.35 — compact ChatGPT-like top controls + menu polish */
:root{--ll35-btn:#151515;--ll35-hover:#202020;--ll35-line:rgba(255,255,255,.13);--ll35-text:#f1f1f1;--ll35-muted:#9a9a9a}

/* Top-right: remove Settings and make Temporary/Commands + More two clean icon buttons. */
#ll6631TopSettings{display:none!important}
#ll6631TopCluster.ll6635TopCluster{height:auto!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important}
#ll6631TopCluster.ll6635TopCluster>button{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:15px!important;border:1px solid var(--ll35-line)!important;background:var(--ll35-btn)!important;color:var(--ll35-text)!important;display:grid!important;place-items:center!important;box-shadow:none!important;transition:background .14s ease,border-color .14s ease,transform .10s ease!important}
#ll6631TopCluster.ll6635TopCluster>button+button{border-left:1px solid var(--ll35-line)!important}
#ll6631TopCluster.ll6635TopCluster>button:hover{background:var(--ll35-hover)!important;border-color:rgba(255,255,255,.19)!important}
#ll6631TopCluster.ll6635TopCluster>button:active{transform:scale(.94)!important}
#ll6631TopCluster.ll6635TopCluster>button:focus-visible{outline:2px solid rgba(255,255,255,.72)!important;outline-offset:3px!important}
#ll6631TopCluster.ll6635TopCluster svg{width:21px!important;height:21px!important;stroke-width:1.85!important}
#ll6631TopPrimary.isTemp{background:#1b1b1b!important;color:#fff!important;border-color:rgba(255,255,255,.24)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)!important}
#ll6631TopPrimary.isCommand{background:var(--ll35-btn)!important}

/* New top-right chat menu mirrors the calm sidebar density. */
#ll6635ChatMenu{position:fixed;z-index:9800;padding:8px;border-radius:18px;background:#232323;border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 70px rgba(0,0,0,.58);max-height:calc(100dvh - 20px);overflow:auto;color:#f3f3f3}
#ll6635ChatMenu[hidden]{display:none!important}
#ll6635ChatMenu .ll6635MenuTitle{padding:8px 11px 7px;color:#aaa;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ll6635ChatMenu button{width:100%;min-height:48px;padding:9px 11px;border:0;border-radius:11px;background:transparent;color:inherit;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:11px;align-items:center;text-align:left;font-size:15px;font-weight:590;cursor:pointer}
#ll6635ChatMenu button:hover{background:#303030}#ll6635ChatMenu button:active{background:#363636}
#ll6635ChatMenu button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#e3e3e3}
#ll6635ChatMenu button span{grid-column:2}#ll6635ChatMenu button i{grid-column:3;justify-self:end;color:#aaa;font-size:20px;font-style:normal}
#ll6635ChatMenu .ll6635MenuSep{height:1px;margin:6px 9px;background:rgba(255,255,255,.09)}
#ll6635ChatMenu button.danger{color:#ff8d8d}#ll6635ChatMenu button.danger svg{color:#ff8d8d}

/* Find-in-chat overlay */
#ll6635FindOverlay,#ll6635FilesOverlay{position:fixed;inset:0;z-index:9900;background:rgba(0,0,0,.56);display:grid;place-items:start center;padding:80px 18px 18px}
#ll6635FindOverlay[hidden],#ll6635FilesOverlay[hidden]{display:none!important}
.ll6635FindCard,.ll6635FilesCard{width:min(650px,100%);max-height:min(720px,calc(100dvh - 110px));overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:#202020;box-shadow:0 28px 90px rgba(0,0,0,.6)}
.ll6635FindCard>header{height:58px;display:grid;grid-template-columns:24px minmax(0,1fr) 38px;gap:10px;align-items:center;padding:8px 10px 8px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.ll6635FindCard>header svg{width:21px;height:21px;fill:none;stroke:#ddd;stroke-width:1.8}.ll6635FindCard>header input{width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:16px}.ll6635FindCard>header button,.ll6635FilesCard>header button{width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#ddd;font-size:25px}.ll6635FindCard>header button:hover,.ll6635FilesCard>header button:hover{background:#303030}
.ll6635FindResults{max-height:calc(min(720px,100dvh - 110px) - 58px);overflow:auto;padding:8px}.ll6635FindResults button{width:100%;padding:12px;border:0;border-radius:12px;background:transparent;color:#eee;display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;text-align:left;line-height:1.42}.ll6635FindResults button:hover{background:#2c2c2c}.ll6635FindResults .role{color:#aaa;font-size:12px;font-weight:700;padding-top:2px}
.ll6635FindHit{animation:ll35Hit 1.2s ease}@keyframes ll35Hit{0%,100%{background:transparent}22%,70%{background:rgba(255,255,255,.075)}}

/* Uploaded-files dialog */
.ll6635FilesCard{overflow:auto}.ll6635FilesCard>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.08)}.ll6635FilesCard h2{margin:0;font-size:20px}.ll6635FilesCard p{margin:4px 0 0;color:#999;font-size:13px}.ll6635FilesCard>[data-v35-files-list]{padding:10px;max-height:560px;overflow:auto}.ll6635FileRow{min-height:60px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:center;padding:9px 10px;border-radius:12px}.ll6635FileRow:hover{background:#2a2a2a}.ll6635FileRow>svg{width:21px;height:21px;fill:none;stroke:#ddd;stroke-width:1.8}.ll6635FileRow b,.ll6635FileRow small{display:block}.ll6635FileRow b{font-size:14px}.ll6635FileRow small{margin-top:3px;color:#929292;font-size:12px}.ll6635Empty{padding:34px 18px;text-align:center;color:#929292}

/* Minimized voice close button: same tactile visual system as sidebar/top actions. */
#voice.llMinimizedVoiceClose{background:#211719!important;border:1px solid rgba(255,255,255,.16)!important;color:#f3f3f3!important;box-shadow:none!important}
#voice.llMinimizedVoiceClose:hover{background:#2b1d20!important;border-color:rgba(255,255,255,.22)!important}
#voice.llMinimizedVoiceClose .llMinimizedVoiceCloseIcon{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important}

@media(max-width:700px){#ll6631TopCluster.ll6635TopCluster>button{width:45px!important;min-width:45px!important;height:45px!important;min-height:45px!important;border-radius:14px!important}#ll6635FindOverlay,#ll6635FilesOverlay{padding:62px 10px 10px}.ll6635FindCard,.ll6635FilesCard{max-height:calc(100dvh - 76px)}}
