/* LL AI v66.73 — global search / Work / Sites / long-input / @tool parity polish. */
:root{--ll40-bg:#000;--ll40-panel:#171717;--ll40-panel2:#202020;--ll40-line:rgba(255,255,255,.10);--ll40-line2:rgba(255,255,255,.065);--ll40-text:#f5f5f5;--ll40-muted:#969696;--ll40-hover:#232323;--ll40-ease:cubic-bezier(.2,.78,.24,1);--ll40-spring:cubic-bezier(.16,1,.3,1)}
#ll6640GlobalSearch svg,#ll6640MentionMenu svg,#ll6640Sites svg,#ll6640WorkSwitch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Long input only appears when useful — no permanent counter clutter. */
#ll6640LongHint{position:absolute;right:max(22px,calc((100% - min(940px,calc(100% - 24px)))/2 + 16px));bottom:56px;z-index:5;padding:5px 9px;border:1px solid var(--ll40-line2);border-radius:999px;background:#151515;color:#a5a5a5;font-size:10px;font-weight:560;line-height:1;pointer-events:none;box-shadow:0 6px 22px rgba(0,0,0,.2);animation:ll40HintIn .18s var(--ll40-ease) both}
#ll6640LongHint b{color:#ddd;font-weight:680}#ll6640LongHint span{color:#888}#question[data-long-safe="1"]~*{}@keyframes ll40HintIn{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}

/* Unified search */
#ll6640GlobalSearch{position:fixed;inset:0;z-index:2400;background:rgba(0,0,0,.68);display:grid;place-items:start center;padding:max(70px,8dvh) 14px 20px;box-sizing:border-box;animation:ll40Fade .14s ease both}
#ll6640GlobalSearch[hidden]{display:none!important}.ll6640SearchCard{width:min(760px,100%);max-height:min(760px,82dvh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:#171717;box-shadow:0 30px 110px rgba(0,0,0,.65);animation:ll40Card .22s var(--ll40-spring) both}
.ll6640SearchCard>header{height:62px;display:grid;grid-template-columns:30px minmax(0,1fr) 42px;align-items:center;gap:8px;padding:0 12px 0 18px;border-bottom:1px solid var(--ll40-line2)}.ll6640SearchCard>header>svg{color:#b7b7b7}.ll6640SearchCard input{width:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:17px}.ll6640SearchCard input::placeholder{color:#777}.ll6640SearchCard header button{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#b8b8b8;display:grid;place-items:center}.ll6640SearchCard header button:hover{background:#252525;color:#fff}
.ll6640SearchTabs{display:flex;gap:5px;padding:10px 12px;border-bottom:1px solid var(--ll40-line2);overflow-x:auto;scrollbar-width:none}.ll6640SearchTabs::-webkit-scrollbar{display:none}.ll6640SearchTabs button{height:34px;white-space:nowrap;border:1px solid transparent;border-radius:999px;padding:0 13px;background:transparent;color:#a8a8a8;font:inherit;font-size:12px;font-weight:600}.ll6640SearchTabs button:hover{background:#222;color:#eee}.ll6640SearchTabs button.active{background:#2a2a2a;border-color:#ffffff13;color:#fff}
.ll6640SearchResults{overflow:auto;overscroll-behavior:contain;padding:7px;scrollbar-width:thin;min-height:220px}.ll6640SearchResult{width:100%;min-height:66px;border:0;border-radius:14px;background:transparent;color:#eee;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 11px;text-align:left;font:inherit;cursor:pointer;transition:background .12s ease,transform .1s ease}.ll6640SearchResult:hover,.ll6640SearchResult:focus-visible{background:#242424;outline:0}.ll6640SearchResult:active{transform:scale(.995)}.ll6640SearchIcon{width:42px;height:42px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:#202020;display:grid;place-items:center;color:#ddd}.ll6640SearchCopy{display:flex;flex-direction:column;gap:4px;min-width:0}.ll6640SearchCopy b{font-size:14.5px;font-weight:640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ll6640SearchCopy small{font-size:12px;color:#8f8f8f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ll6640SearchResult em{font-size:10px;font-style:normal;color:#777;border:1px solid #ffffff0d;border-radius:999px;padding:4px 7px}.ll6640SearchLoading,.ll6640SearchEmpty{min-height:230px;display:grid;place-content:center;text-align:center;color:#777}.ll6640SearchEmpty b{color:#cfcfcf;font-size:15px}.ll6640SearchEmpty span{font-size:12px;margin-top:6px}
.ll6640SearchHit{animation:ll40Hit 1s ease both}@keyframes ll40Hit{35%,70%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);background:#282828}}

/* Work switch is intentionally absent during normal Chat. */
#ll6640WorkSwitch{position:fixed;z-index:920;top:max(14px,calc(env(safe-area-inset-top) + 8px));left:50%;translate:-50% 0;height:48px;padding:4px;border:1px solid #ffffff0c;border-radius:999px;background:#4a4a4a;display:flex;align-items:center;gap:2px;box-shadow:0 8px 26px rgba(0,0,0,.2);animation:ll40Card .2s var(--ll40-spring) both}#ll6640WorkSwitch[hidden]{display:none!important}#ll6640WorkSwitch button{height:40px;min-width:86px;border:0;border-radius:999px;background:transparent;color:#eee;font:inherit;font-size:13px;font-weight:550}#ll6640WorkSwitch button.active{background:#252525;color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.04) inset}.ll6640WorkMode .thinkingSummaryLabel::before{content:'Work · ';color:#898989;font-weight:500}

/* Sites */
#ll6640Sites{position:fixed;inset:0;z-index:1850;background:#000;color:var(--ll40-text);overflow:hidden;animation:ll40Fade .18s ease both}#ll6640Sites[hidden]{display:none!important}.ll6640FeatureHeader{height:112px;display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:start;padding:50px 20px 10px;box-sizing:border-box}.ll6640FeatureHeader h1{margin:8px 0 0;text-align:center;font-size:21px;line-height:1;font-weight:680;letter-spacing:-.02em}.ll6640FeatureHeader>button{width:52px;height:52px;border:1px solid var(--ll40-line);border-radius:50%;background:#242424;color:#fff;display:grid;place-items:center}.ll6640FeatureHeader>button:hover{background:#303030}.ll6640FeatureHeader>button:active{scale:.94}.ll6640SitesBody{height:calc(100dvh - 112px);overflow:auto;overscroll-behavior:contain;padding:8px 22px 60px;box-sizing:border-box;scrollbar-width:none}.ll6640SitesBody::-webkit-scrollbar{display:none}.ll6640SitesIntro,.ll6640SiteGrid,.ll6640SiteEditor,.ll6640Honesty{width:min(980px,100%);margin-left:auto;margin-right:auto}.ll6640SitesIntro{display:flex;gap:18px;align-items:center;padding:18px 0 28px}.ll6640SitesGlyph{width:66px;height:66px;border:1px solid var(--ll40-line);border-radius:20px;background:#171717;display:grid;place-items:center}.ll6640SitesGlyph svg{width:30px;height:30px}.ll6640SitesIntro h2{font-size:28px;margin:0 0 5px}.ll6640SitesIntro p{margin:0;color:#8e8e8e;line-height:1.5}.ll6640SiteGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ll6640SiteCard{min-height:82px;border:1px solid var(--ll40-line2);border-radius:18px;background:#111;color:#eee;display:grid;grid-template-columns:48px minmax(0,1fr) 24px;align-items:center;gap:9px;padding:11px 14px;text-align:left;font:inherit;transition:background .14s ease,border-color .14s ease,translate .12s var(--ll40-spring)}.ll6640SiteCard:hover{background:#171717;border-color:#ffffff1c;translate:0 -1px}.ll6640SiteCard>span:first-child{width:44px;height:44px;border-radius:12px;background:#202020;display:grid;place-items:center}.ll6640SiteCard>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.ll6640SiteCard b{font-size:15px}.ll6640SiteCard small{font-size:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ll6640SiteCard i{font-style:normal;color:#777;font-size:22px}.ll6640SiteEmpty{grid-column:1/-1;min-height:260px;display:grid;place-content:center;text-align:center;color:#777}.ll6640SiteEmpty b{color:#ddd;font-size:16px}.ll6640SiteEmpty span{font-size:12px;margin-top:6px}.ll6640Honesty{color:#666;font-size:11px;line-height:1.5;margin-top:20px;margin-bottom:30px}
.ll6640SiteEditor{display:flex;flex-direction:column;gap:12px}.ll6640SitePrompt{border:1px solid var(--ll40-line2);border-radius:20px;background:#111;padding:14px}.ll6640SitePrompt label{display:flex;flex-direction:column;gap:8px}.ll6640SitePrompt label>span{font-size:12px;color:#aaa;font-weight:630}.ll6640SitePrompt textarea{width:100%;min-height:92px;resize:vertical;border:0;outline:0;border-radius:14px;background:#181818;color:#eee;padding:13px 14px;box-sizing:border-box;font:inherit;line-height:1.45}.ll6640SitePromptActions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.ll6640SitePromptActions button{height:40px;border:1px solid #ffffff10;border-radius:12px;background:#202020;color:#eee;padding:0 13px;display:flex;align-items:center;gap:7px;font:inherit;font-size:12px;font-weight:610}.ll6640SitePromptActions button.primary{background:#f2f2f2;color:#111;border-color:#f2f2f2}.ll6640SitePromptActions button.danger{color:#ff8787}.ll6640SitePromptActions button:disabled{opacity:.35;pointer-events:none}.ll6640SitePromptActions svg{width:18px;height:18px}.ll6640SiteTabs{display:flex;gap:4px;padding:3px;border-radius:12px;background:#151515;width:max-content}.ll6640SiteTabs button{height:36px;min-width:84px;border:0;border-radius:9px;background:transparent;color:#999;font:inherit;font-size:12px}.ll6640SiteTabs button.active{background:#292929;color:#fff}.ll6640SiteStage{height:min(620px,62dvh);min-height:380px;border:1px solid var(--ll40-line);border-radius:20px;background:#0d0d0d;overflow:hidden;position:relative}.ll6640SiteStage iframe{width:100%;height:100%;border:0;background:#fff}.ll6640SiteCode{width:100%;height:100%;border:0;outline:0;resize:none;box-sizing:border-box;padding:18px;background:#0b0b0b;color:#ddd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}.ll6640SaveCode{position:absolute;right:14px;bottom:14px;height:38px;border:1px solid #ffffff18;border-radius:12px;background:#272727;color:#fff;padding:0 15px;font-weight:650}.ll6640SiteBlank{height:100%;display:grid;place-content:center;justify-items:center;text-align:center;color:#777}.ll6640SiteBlank>span{width:58px;height:58px;border-radius:18px;background:#191919;display:grid;place-items:center;margin-bottom:12px}.ll6640SiteBlank>span svg{width:28px;height:28px}.ll6640SiteBlank b{color:#d3d3d3}.ll6640SiteBlank small{margin-top:6px;max-width:320px}

/* @mention picker */
#ll6640MentionMenu{position:fixed;z-index:2300;width:min(360px,calc(100vw - 24px));max-height:min(470px,52dvh);overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:19px;background:#1c1c1c;box-shadow:0 26px 80px rgba(0,0,0,.52);padding:7px;left:50%;bottom:max(94px,calc(82px + env(safe-area-inset-bottom)));translate:-50% 0;animation:ll40Mention .17s var(--ll40-spring) both}#ll6640MentionMenu[hidden]{display:none!important}.ll6640MentionHead{padding:8px 10px 6px;color:#858585;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}#ll6640MentionMenu button{width:100%;min-height:54px;border:0;border-radius:13px;background:transparent;color:#eee;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:7px;padding:6px 9px;text-align:left;font:inherit}#ll6640MentionMenu button:hover,#ll6640MentionMenu button.active{background:#292929}#ll6640MentionMenu button>span{width:36px;height:36px;border:1px solid #ffffff0c;border-radius:10px;background:#222;display:grid;place-items:center}#ll6640MentionMenu button>span svg{width:20px;height:20px}#ll6640MentionMenu button b{font-size:13px;font-weight:630}#ll6640MentionMenu button small{font-size:10px;color:#777;white-space:nowrap}

/* Plugin directory is discovery-only: aggressively remove stale control affordances. */
#ll6637Plugins[data-read-only="true"] .ll37PluginToggle,#ll6637Plugins[data-read-only="true"] .ll37PluginRow input,#ll6637Plugins[data-read-only="true"] .ll37PluginRow [role="switch"]{display:none!important}#ll6637Plugins[data-read-only="true"] .ll37PluginRow{cursor:default!important;pointer-events:none!important}#ll6637Plugins[data-read-only="true"] .ll37PluginToggle{visibility:hidden!important}.ll37PluginNote{max-width:700px}

/* Injected More-menu features inherit the same compact row language. */
#ll6631MoreMenu [data-go="work"] svg,#ll6631MoreMenu [data-go="sites"] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@keyframes ll40Fade{from{opacity:0}to{opacity:1}}@keyframes ll40Card{from{opacity:0;translate:0 9px;scale:.984}to{opacity:1;translate:0 0;scale:1}}@keyframes ll40Mention{from{opacity:0;translate:-50% 7px;scale:.98}to{opacity:1;translate:-50% 0;scale:1}}
@media(max-width:800px){#ll6640LongHint{right:16px;bottom:max(61px,calc(53px + env(safe-area-inset-bottom)))}#ll6640GlobalSearch{padding:48px 8px 8px;place-items:start center}.ll6640SearchCard{border-radius:22px;max-height:calc(100dvh - 58px)}.ll6640SearchResult{grid-template-columns:44px minmax(0,1fr)}.ll6640SearchResult em{display:none}#ll6640WorkSwitch{top:max(8px,env(safe-area-inset-top));height:44px}#ll6640WorkSwitch button{height:36px;min-width:72px}.ll6640FeatureHeader{height:94px;padding:30px 12px 8px}.ll6640FeatureHeader>button{width:46px;height:46px}.ll6640SitesBody{height:calc(100dvh - 94px);padding:4px 12px 44px}.ll6640SitesIntro{padding-top:10px}.ll6640SitesIntro h2{font-size:24px}.ll6640SiteGrid{grid-template-columns:1fr}.ll6640SiteStage{height:58dvh;min-height:340px}#ll6640MentionMenu{bottom:max(88px,calc(76px + env(safe-area-inset-bottom)))}}
@media(max-width:520px){.ll6640SearchTabs{padding-inline:8px}.ll6640SearchCard>header{padding-left:14px}.ll6640SitesGlyph{width:58px;height:58px}.ll6640SitePromptActions button span{display:none}.ll6640SitePromptActions button.primary{padding-inline:16px}.ll6640SiteStage{border-radius:16px}}
@media(prefers-reduced-motion:reduce){#ll6640GlobalSearch,.ll6640SearchCard,#ll6640MentionMenu,#ll6640Sites,#ll6640WorkSwitch,#ll6640LongHint{animation:none!important}.ll6640SiteCard,.ll6640SearchResult{transition:none!important}}
