.assistant-quick{color:#66518b;background:#eee9f8;flex-shrink:0}
.main[data-page=assistant] .assistant-quick{display:none}
.main[data-page=assistant] #page-actions [data-action=assistant-chats],.main[data-page=assistant] #page-actions [data-action=assistant-new]{display:none}
.main[data-page=assistant] #page-content{overflow:hidden;display:flex;min-height:0;padding-bottom:22px}
.assistant-shell{display:grid;grid-template-columns:228px minmax(0,1fr);gap:22px;width:100%;height:100%;min-height:0;max-width:1440px;margin:0 auto}
.assistant-history{display:flex;flex-direction:column;min-height:0;padding:18px 12px;background:#e6e5e9;border-radius:16px}
.assistant-history-head{display:flex;align-items:center;justify-content:space-between;padding:0 6px 12px;gap:12px}
.assistant-history-head h2{font-size:24px;margin:0}
#assistant-thread-list{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:6px}
.assistant-thread{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;width:100%;padding:13px 14px;background:transparent;border:0;min-height:64px;flex-shrink:0}
.assistant-thread strong{font-weight:650;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.assistant-thread small{color:#585660;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.assistant-thread.active{background:#fff;color:#171719}
.assistant-no-chats{font-size:14px;line-height:1.5;color:#55535f;padding:10px}
.assistant-conversation{background:#fff;border-radius:16px;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.assistant-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;border-bottom:1px solid #ebe9ee;flex-shrink:0}
#assistant-context{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-messages{padding:28px clamp(20px,4vw,60px);overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable}
.assistant-welcome{max-width:560px;margin:clamp(8px,8vh,85px) auto 20px}
.assistant-welcome>span{display:grid;place-items:center;width:56px;height:56px;background:#eee9f8;color:#66518b;border-radius:16px;margin-bottom:24px}
.assistant-welcome h2{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:0 0 14px}
.assistant-welcome p{font-size:16px;line-height:1.6;color:#54525d;margin:0 0 26px}
.assistant-prompts{display:flex;flex-direction:column;gap:8px}
.assistant-prompts button{display:flex;gap:16px;align-items:center;justify-content:space-between;text-align:left;padding:14px 16px;background:#f5f4f7;min-height:52px;border:0;font-size:14px;line-height:1.5}
.assistant-prompts button svg{flex-shrink:0;width:20px;height:20px}
.assistant-message{margin:0 0 28px;max-width:740px}
.assistant-message.from-user{background:#eee9f8;padding:16px 20px;border-radius:16px;margin-left:auto;width:fit-content;min-width:160px}
.assistant-message-by{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.assistant-message-by strong{font-size:14px;font-weight:700}
.assistant-message-by .icon-button{margin-left:auto;width:44px;height:44px;background:transparent}
.assistant-message-by .avatar{width:32px;height:32px;min-width:32px;flex-shrink:0}
.assistant-symbol{width:32px;height:32px;display:grid;place-items:center;background:#eee9f8;border-radius:10px;color:#66518b}
.assistant-symbol svg{width:20px;height:20px}
.assistant-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7}
.assistant-message-error{color:#923f3a}
.assistant-working{display:flex;align-items:center;gap:12px;font-size:14px;color:#55515f;min-height:44px}
.assistant-working .icon-button{margin-left:auto;background:#f3f2f6;flex-shrink:0}
.assistant-working-dots{display:flex;align-items:center;gap:4px;flex-shrink:0}
.assistant-working-dots i{width:5px;height:5px;border-radius:50%;background:#76618d;animation:assistant-breathe 1.5s ease-in-out infinite}
.assistant-working-dots i:nth-child(2){animation-delay:.18s}.assistant-working-dots i:nth-child(3){animation-delay:.36s}
@keyframes assistant-breathe{0%,100%{opacity:.35}50%{opacity:1}}
.assistant-results{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.assistant-result{border:1px solid #ddd9e5;border-radius:12px;overflow:hidden;background:#fff}
.assistant-result>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#f5f3f9;font-size:13px;color:#5e5075}
.assistant-result>header svg{width:18px;height:18px}
.assistant-result>header span{font-weight:650}
.assistant-result>p{font-size:13px;padding:0 16px;color:#5a5364}
.assistant-result details>summary{font-size:13px;padding:12px 16px;cursor:pointer;min-height:44px}
.assistant-entity{width:100%;display:flex;align-items:center;gap:14px;padding:12px 16px;background:transparent;border:0;border-radius:0;text-align:left;min-height:60px;box-shadow:none}
.assistant-entity+.assistant-entity{border-top:1px solid #efedf2}
.assistant-entity>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.assistant-entity strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.assistant-entity small{font-size:12px;color:#5e5869}
.assistant-entity:disabled{opacity:1;cursor:default;color:#514b5b}
.assistant-entity>svg{width:18px;height:18px;flex-shrink:0;color:#79717f}
.assistant-entity-icon{width:32px;height:32px;display:grid;place-items:center;background:#f0edf6;border-radius:8px;color:#66518b;flex-shrink:0}
.assistant-entity-icon svg{width:18px;height:18px}
.assistant-action-error{background:#fff3f0;color:#843d35;border-radius:12px;padding:14px;display:flex;gap:12px;font-size:14px;line-height:1.5}
.assistant-action-error svg{width:20px;height:20px;flex-shrink:0}
.assistant-person{display:flex;align-items:center;gap:12px;padding:12px 16px;flex-wrap:wrap;font-size:14px}
.assistant-person .avatar{width:32px;height:32px;flex-shrink:0}.assistant-person>span:last-child{margin-left:auto;color:#5e5869;font-size:13px}
.assistant-entry{padding:12px 22px 16px;flex-shrink:0;background:#fff}
#assistant-form{display:flex;align-items:flex-end;gap:10px;background:#f0eef4;border-radius:14px;padding:10px}
#assistant-form:focus-within{background:#e8e0f4}
#assistant-question{caret-color:#4f386e}
#assistant-question{resize:none;min-width:0;width:100%;flex:1;border:0!important;background:transparent;font-size:15px;line-height:1.6;padding:8px 10px;min-height:44px;max-height:128px;outline:none!important;box-shadow:none!important}
#assistant-question:focus{border:0!important;outline:none!important;box-shadow:none!important}
.assistant-send{width:44px;height:44px;flex-shrink:0;background:#171719!important;color:#fff!important;border-radius:10px}
.assistant-entry-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.assistant-entry-caption small{font-size:11px;line-height:1.4;color:#676170}
#assistant-scope{display:flex;align-items:center;gap:6px;font-size:12px;background:none;border:0;padding:0 4px;min-height:44px;color:#5d526e;min-width:0}
#assistant-scope svg{width:16px;height:16px;flex-shrink:0}#assistant-scope span{overflow:hidden;max-width:240px;text-overflow:ellipsis;white-space:nowrap}
.assistant-context-menu{display:flex;flex-direction:column;gap:8px}
.assistant-context-menu>button{display:flex;align-items:center;gap:12px;text-align:left;min-height:52px;width:100%}
.assistant-context-menu svg{width:22px;height:22px;flex-shrink:0}
.assistant-context-menu>button span{overflow-wrap:anywhere}
.team-workload-button{margin-top:14px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px}
.team-workload-list{display:flex;flex-direction:column;gap:12px}
.team-workload-list label{display:grid;grid-template-columns:36px minmax(0,1fr) 86px auto;align-items:center;gap:10px;margin:0}
.team-workload-list .avatar{width:36px;height:36px;min-width:36px}.team-workload-list input{width:86px;margin:0}.team-workload-list small{font-size:12px;color:#5d5866}
.member-row .member-role{width:160px;flex-shrink:0;margin:0}.member-row .member-role .select-control{width:100%}
@media(max-width:1050px){.assistant-shell{grid-template-columns:185px minmax(0,1fr);gap:14px}.assistant-messages{padding:22px}.assistant-entry{padding:12px 18px}}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 .main[data-page=assistant] #page-actions [data-action=assistant-chats],.main[data-page=assistant] #page-actions [data-action=assistant-new]{display:inline-flex}
 .main[data-page=assistant] #page-content{padding:0 10px 10px}
 .assistant-shell{display:flex;gap:0}.assistant-history{display:none}.assistant-conversation{width:100%;border-radius:14px}
 .assistant-chat-head{padding:8px 14px}.assistant-messages{padding:20px 16px;scrollbar-gutter:auto}
 .assistant-message{margin-bottom:22px}.assistant-message.from-user{padding:12px 14px;max-width:95%}
 .assistant-message-text{font-size:14px;line-height:1.65}.assistant-entry{padding:10px 10px max(10px,env(safe-area-inset-bottom))}
 .assistant-entry-caption small{display:none}#assistant-scope{min-height:44px}#assistant-question{font-size:16px;padding:7px 5px}
 .assistant-welcome{margin:12px auto 20px}.assistant-welcome>span{margin-bottom:18px;width:44px;height:44px}.assistant-welcome h2{font-size:29px}
 .assistant-prompts button{padding:12px;font-size:13px}.assistant-welcome p{font-size:14px;margin-bottom:18px}
 .assistant-quick{width:44px!important;height:44px!important}.assistant-working{font-size:13px}
 .team-workload-list label{grid-template-columns:32px minmax(0,1fr) 70px}.team-workload-list small{display:none}.team-workload-list input{width:70px}.member-row .member-role{width:100%;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.assistant-working-dots i{animation:none}}
