/* LL AI v67.15 — intent-aware thinking + useful work evidence. Keeps v66.87 visual identity. */
html[data-ll-perf="lite"]{scroll-behavior:auto!important}
html[data-ll-perf="lite"] :is(.topbar,.composebox,.panel,.ll6631Surface,.ll6624Page,.voiceOverlay,.ll714TracePanel){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-ll-perf="lite"] :is(.msgrow,.chatItem,.navItem,.btn,.roundBtn,.ll714Trace,.ll714TracePanel){transition-duration:.12s!important;animation-duration:.24s!important}
html.llPageHidden *{animation-play-state:paused!important}
.llTouchPerf #chat{scroll-behavior:auto!important;overscroll-behavior:contain}
#chat .msgrow{contain:layout style}.llOffscreenMessage{contain:layout paint style;content-visibility:auto}
#chat img{content-visibility:auto}

/* Compact activity row: never covers the answer. */
.ll714Trace{width:min(760px,100%);align-self:center;margin:1px 0 4px;color:var(--text,#f2f2f2);position:relative;z-index:3}
.ll714TraceHead{width:100%;min-height:38px;border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:9px;padding:6px 3px;text-align:left;border-radius:10px}
.ll714TraceHead:hover{background:rgba(255,255,255,.035)}
.ll714TraceHead b{font-size:13px;font-weight:650;white-space:nowrap}.ll714TraceCurrent{font-size:12.5px;color:var(--muted,#aaa);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.ll714TraceHead em{font-size:11px;font-style:normal;color:#777;font-variant-numeric:tabular-nums}.ll714Chevron{font-size:14px;color:#777;transition:transform .14s}.ll714Trace.open .ll714Chevron{transform:rotate(180deg)}
.ll714Pulse{display:flex;gap:2.5px;width:18px;justify-content:center}.ll714Pulse i,.ll714TinyThinking i{width:4px;height:4px;border-radius:50%;background:#a9a9b2;animation:ll714dot 1.05s ease-in-out infinite}.ll714Pulse i:nth-child(2),.ll714TinyThinking i:nth-child(2){animation-delay:.13s}.ll714Pulse i:nth-child(3),.ll714TinyThinking i:nth-child(3){animation-delay:.26s}@keyframes ll714dot{0%,70%,100%{opacity:.28;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
.ll714Trace.complete .ll714Pulse{display:none}.ll714Trace.complete .ll714TraceHead{opacity:.9}
.ll714TraceLive{margin:0 0 2px 27px;display:grid;gap:2px}.ll714TraceLive .ll714Event{padding:2px 0}.ll714TraceLive .ll714Event small{display:none}
.ll714TracePanel{margin:5px 0 8px 24px;border:1px solid rgba(255,255,255,.10);background:#141414;border-radius:16px;overflow:hidden;box-shadow:0 16px 45px rgba(0,0,0,.26)}.ll714TracePanel[hidden]{display:none}
.ll714TracePanel>header{height:48px;display:flex;align-items:center;gap:7px;padding:0 11px 0 15px;border-bottom:1px solid rgba(255,255,255,.08)}.ll714TracePanel>header>div{min-width:0;flex:1;display:flex;flex-direction:column}.ll714TracePanel>header b{font-size:13px}.ll714TracePanel>header small{font-size:10.5px;color:#777}.ll714TracePanel>header button{border:1px solid rgba(255,255,255,.09);background:#1d1d1d;color:#ddd;border-radius:9px;padding:6px 9px;font-size:11px}
.ll714TraceEvents{max-height:330px;overflow:auto;padding:8px 14px 12px;scrollbar-width:thin}.ll714Event{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;padding:6px 0}.ll714Event>span{display:grid;place-items:start center;padding-top:1px}.ll714Event>div{min-width:0}.ll714Event b{display:block;font-size:12.5px;line-height:1.35;font-weight:590}.ll714Event small{display:block;color:#777;font-size:11px;line-height:1.35;margin-top:2px}.ll714Glyph{font-style:normal;font-size:12px;color:#a9a9b2}.ll714Glyph.done{color:#6fd3a7}.ll714Glyph.error{color:#ff8c8c}.ll714Spinner{width:11px;height:11px;border-radius:50%;border:1.5px solid #555;border-top-color:#c8c8d2;animation:ll714spin .75s linear infinite}@keyframes ll714spin{to{transform:rotate(360deg)}}
.ll714Code{margin-top:6px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#0c0c0c;overflow:hidden}.ll714Code summary{padding:7px 9px;cursor:pointer;display:flex;gap:8px;align-items:center;list-style:none}.ll714Code summary b{font-size:11.5px;flex:1}.ll714Code summary span{font-size:10px;color:#777}.ll714Code pre{margin:0;border-top:1px solid rgba(255,255,255,.07);padding:9px;max-height:210px;overflow:auto;font-size:10.5px;line-height:1.45;white-space:pre}
.ll714Adjust{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08)}.ll714Adjust textarea{min-height:58px;resize:vertical;background:#0d0d0d;border:1px solid rgba(255,255,255,.10);border-radius:11px;padding:9px;color:#eee}.ll714Adjust>div{display:flex;justify-content:flex-end;gap:7px;margin-top:7px}.ll714Adjust button{border:0;border-radius:9px;padding:7px 10px;background:#242424}.ll714Adjust .primary{background:#eee;color:#111}
.ll714TinyThinking{display:flex;gap:4px;padding:9px 0;align-self:flex-start;margin-left:max(0px,calc((100% - 760px)/2));height:28px}

/* Streaming answer: display text immediately, no fake post-generation typewriter. */
.llStreamingAnswer .assistantTextBody[aria-busy="true"]::after{content:' ';display:inline-block;width:5px;height:15px;margin-left:2px;vertical-align:-2px;border-radius:2px;background:#aaa;animation:ll714caret .8s steps(1) infinite}@keyframes ll714caret{50%{opacity:0}}
.llStreamingAnswer .msgActions{opacity:.35;pointer-events:none}.llStreamingAnswer .assistantTextBody:not([aria-busy="true"])~*{}

/* Chat/Work selector: clean v66.87 placement, new-chat only. */
#ll6646WorkSwitch:not([hidden]),#ll6642WorkSwitch:not([hidden]){display:flex!important;position:fixed!important;top:max(14px,calc(env(safe-area-inset-top) + 8px))!important;left:calc(280px + (100vw - 280px)/2)!important;transform:translateX(-50%)!important;z-index:70!important;border:1px solid rgba(255,255,255,.10)!important;background:#252525!important;border-radius:999px!important;padding:4px!important;gap:2px!important;box-shadow:0 8px 28px rgba(0,0,0,.22)!important}
#ll6646WorkSwitch button,#ll6642WorkSwitch button{min-width:106px!important;height:44px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#ddd!important;font-weight:650!important}#ll6646WorkSwitch button.active,#ll6642WorkSwitch button.active{background:#111!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.04) inset!important}
@media(max-width:800px){#ll6646WorkSwitch:not([hidden]),#ll6642WorkSwitch:not([hidden]){left:50%!important;top:max(10px,calc(env(safe-area-inset-top) + 7px))!important}#ll6646WorkSwitch button,#ll6642WorkSwitch button{min-width:90px!important;height:40px!important}.ll714Trace{padding-inline:1px}.ll714TracePanel{margin-left:0;border-radius:15px}.ll714TraceEvents{max-height:42dvh}}

/* Assistant/Sites surfaces: faster paint and cleaner controls without changing LL's theme. */
:is(#ll6632AssistantsSurface,#ll6642Assistants,#ll6651Sites,#ll6642Sites,.llSitesSurface){contain:layout style paint}
:is(.ll6632AssistantCard,.ll42AssistantCard,.llSitesProjectCard,.ll51ProjectCard){content-visibility:auto;contain-intrinsic-size:1px 150px}
.ll714TemplateBtn{flex:0 0 auto;border:1px solid rgba(255,255,255,.10);background:#242424;color:#ddd;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:650}.ll714TemplateMenu{position:fixed;z-index:2147482500;width:min(320px,calc(100vw - 24px));max-height:55dvh;overflow:auto;padding:7px;background:#191919;border:1px solid rgba(255,255,255,.12);border-radius:15px;box-shadow:0 18px 60px rgba(0,0,0,.55)}.ll714TemplateMenu[hidden]{display:none}.ll714TemplateMenu button{display:block;width:100%;border:0;background:transparent;color:#eee;text-align:left;border-radius:10px;padding:10px}.ll714TemplateMenu button:hover{background:rgba(255,255,255,.06)}.ll714TemplateMenu b{display:block;font-size:12.5px}.ll714TemplateMenu small{display:block;color:#888;font-size:10.5px;line-height:1.35;margin-top:2px}

@media(prefers-reduced-motion:reduce){.ll714Pulse i,.ll714TinyThinking i,.ll714Spinner,.llStreamingAnswer .assistantTextBody[aria-busy="true"]::after{animation:none!important}.ll714TraceHead,.ll714Chevron{transition:none!important}}

/* Live tokens are cheap to paint: Markdown is parsed once when the answer finishes. */
.llStreamingAnswer .llLiveText{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}

/* v67.7 persisted activity may still exist in older chats. Keep it compact on touch so an old
   expanded log can never cover most of the conversation again. New turns use Workstream 3. */
@media(pointer:coarse){
  .llWorkstream67 .llwPanel:not([hidden]){left:12px!important;right:12px!important;bottom:12px!important;top:auto!important;max-height:46dvh!important;border-radius:18px!important}
  .llWorkstream67 .llwEvents{max-height:31dvh!important}
}

/* Reduce expensive glass/blur layers on tablets without changing the v66.87 palette. */
html[data-ll-perf="lite"] :is(.llTocPanel,.llWriterOverlay,.llSketchOverlay,.llArtifactOverlay,.llSearchOverlay,.llCmdPalette){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-ll-perf="lite"] :is(.side,.main,.composer,#chat){scroll-behavior:auto!important}

/* v67.15 — thinking is not "Working" unless LL is actually doing work. */
.ll715ThinkingLine{width:min(760px,100%);align-self:center;min-height:34px;display:flex;align-items:center;gap:8px;padding:4px 3px;margin:1px 0 3px;color:var(--text,#f2f2f2)}
.ll715ThinkingLine>b{font-size:12.5px;font-weight:620;color:#d3d3d8}.ll715ThinkingHint{font-size:11.5px;color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ll715TinyThinking{margin-top:0;margin-bottom:0}
.ll715Trace .ll714TracePanel>header small{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ll715EmptyEvidence{padding:16px 3px;color:#707078;font-size:11.5px;line-height:1.45}
.ll715Trace .ll714Code summary{gap:7px}.ll715Trace .ll714Code summary button{margin-left:auto;border:0;background:transparent;color:#8f8f98;font-size:10px;padding:3px 6px;border-radius:6px}.ll715Trace .ll714Code summary button:hover{background:rgba(255,255,255,.06);color:#ddd}
.ll715Trace .ll714Code[open] pre{content-visibility:auto;contain-intrinsic-size:1px 180px}
html[data-ll-perf="lite"] .ll715Trace .ll714Code pre{max-height:160px}
@media(max-width:800px){.ll715ThinkingLine{padding-inline:1px}.ll715Trace .ll714TracePanel>header small{max-width:180px}}
