/* Assistant conversation presentation: the single owner of messages, quotes,
   rich text, process feedback and composer appearance. agent.css owns layout,
   drawers and business cards; companion.css owns native character geometry.
   Shared tokens load first; do not restore retired bubble/phase overrides. */
@media screen{

.assistant-chat{
 --ai-ink:#17171a;
 --ai-text:#2a2a2e;
 --ai-muted:#7d7d76;
 --ai-faint:#a3a39b;
 --ai-line:#ecece7;
 --ai-line-strong:#dfdfd8;
 --ai-wash:#f5f5f2;
 --ai-user:#f2f2ee;
 --ai-surface:#ffffff;
 --ai-success:#3c8a5c;
 --ai-warn:#b4671b;
 --ai-measure:700px;
 --ai-ease:cubic-bezier(.2,.7,.2,1);
}

/* --- Page heading & status ------------------------------------------------ */
.assistant-chat.assistant-v2.chat-v170>.page-heading{margin-bottom:4px;}
.assistant-chat.assistant-v2.chat-v170>.page-heading .page-title{font-size:22px;font-weight:650;line-height:1.3;letter-spacing:-.01em;color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar{gap:2px;}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar .btn.text.small{gap:6px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--ai-text);font-weight:500;}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar>.icon-btn.small{border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--ai-text);}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar svg{color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar :is(.btn,.icon-btn):is(:hover,:focus-visible){background:var(--ai-wash);color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .assistant-toolbar :is(.btn,.icon-btn):is(:hover,:focus-visible) svg{color:var(--ai-ink);}

.assistant-chat.assistant-v2.chat-v170 .agent-status{gap:0;min-height:26px;padding:0;margin:0 0 2px;border:0;border-radius:0;background:transparent;font-size:12px;color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .agent-status .connection-dot{margin-right:8px;width:6px;height:6px;box-shadow:none;}
.assistant-chat.assistant-v2.chat-v170 .agent-model-label{font-weight:550;color:var(--ai-text);}
.assistant-chat.assistant-v2.chat-v170 .agent-status :is(.agent-effort-tag,.agent-vision-tag){padding:0;min-height:0;border-radius:0;background:transparent;color:var(--ai-muted);font-size:12px;font-weight:400;}
.assistant-chat.assistant-v2.chat-v170 .agent-status :is(.agent-effort-tag,.agent-vision-tag)::before{content:'·';margin:0 6px;color:var(--ai-faint);}
.assistant-chat.assistant-v2.chat-v170 .agent-status :is(.agent-effort-tag,.agent-vision-tag):empty::before{content:none;}
.assistant-chat.assistant-v2.chat-v170 .agent-status :is([data-config],[data-status-retry]){margin-left:10px;min-height:24px;padding:2px 8px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:var(--ai-muted);font-size:12px;font-weight:500;}
.assistant-chat.assistant-v2.chat-v170 .agent-status :is([data-config],[data-status-retry]):is(:hover,:focus-visible){background:var(--ai-wash);color:var(--ai-ink);border:0;}

/* --- Conversation column -------------------------------------------------- */
.assistant-chat.assistant-v2.chat-v170 .chat-viewport{position:relative;}
.assistant-chat.assistant-v2.chat-v170 .chat-scroll{padding:18px 6px 20px 0;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18px);mask-image:linear-gradient(to bottom,transparent 0,#000 18px);}

.assistant-chat.assistant-v2.chat-v170 .chat-message{width:100%;max-width:100%;margin:0 0 26px;gap:0;}
/* The action row already adds ~36px under a reply; keep the visual gap between turns even. */
.assistant-chat.assistant-v2.chat-v170 .chat-message.assistant:has(>.message-body>.message-actions:not(.hidden)){margin-bottom:10px;}
.assistant-chat.assistant-v2.chat-v170 .message-body{flex:1 1 auto;min-width:0;max-width:100%;padding:0;position:relative;font-size:15px;}
.assistant-chat.assistant-v2.chat-v170 .message-bubble{max-width:var(--ai-measure);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0;}
.assistant-chat.assistant-v2.chat-v170 .message-text{font-size:15px;line-height:1.8;color:var(--ai-text);letter-spacing:.01em;}

/* User turns: a soft bubble on the text only; quote and images sit above it. */
.assistant-chat.assistant-v2.chat-v170 .chat-message.user{width:fit-content;max-width:min(78%,620px);margin:0 0 22px auto;}
.assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-body{display:flex;flex-direction:column;align-items:flex-end;background:transparent;border:0;padding:0;}
.assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-bubble{display:flex;flex-direction:column;align-items:flex-end;max-width:100%;background:transparent;border:0;color:inherit;box-shadow:none;}
.assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-bubble>.message-text{padding:10px 16px;border-radius:20px 20px 6px 20px;background:var(--ai-user);color:var(--ai-ink);line-height:1.7;}
.assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-images{justify-content:end;margin-bottom:6px;}

/* Reply quotes: one quiet line, never a second bubble. */
.assistant-chat.assistant-v2.chat-v170 .message-reference{display:block;width:fit-content;max-width:min(100%,560px);min-height:0;margin:0 0 8px;padding:1px 0 1px 10px;border:0;border-left:2px solid var(--ai-line-strong);border-radius:0;background:transparent;box-shadow:none;color:var(--ai-muted);font:inherit;font-size:12.5px;line-height:1.6;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:color .15s var(--ai-ease),border-color .15s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-reference{background:transparent;border-color:var(--ai-line-strong);color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .message-reference:is(:hover,:focus-visible){color:var(--ai-ink);border-left-color:var(--ai-ink);background:transparent;}
.assistant-chat.assistant-v2.chat-v170 .message-reference:focus-visible{outline:2px solid var(--ai-ink);outline-offset:3px;border-radius:2px;}

/* Rich answer typography. */
.assistant-chat.assistant-v2.chat-v170 .message-rich p{margin:0 0 .7em;}
.assistant-chat.assistant-v2.chat-v170 .message-rich>:last-child,.assistant-chat.assistant-v2.chat-v170 .message-rich p:last-child{margin-bottom:0;}
.assistant-chat.assistant-v2.chat-v170 .message-rich :is(ul,ol){margin:.35em 0 .8em;padding-left:1.35em;}
.assistant-chat.assistant-v2.chat-v170 .message-rich li{margin:.2em 0;padding-left:.15em;}
.assistant-chat.assistant-v2.chat-v170 .message-rich li::marker{color:var(--ai-faint);}
.assistant-chat.assistant-v2.chat-v170 .message-rich h3{margin:1.1em 0 .45em;font-size:15px;font-weight:650;line-height:1.55;color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .message-rich h3:first-child{margin-top:0;}
.assistant-chat.assistant-v2.chat-v170 .message-rich strong{font-weight:600;color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .message-rich code{padding:1px 5px;border-radius:5px;background:var(--ai-wash);border:1px solid var(--ai-line);font-family:var(--mono,ui-monospace,monospace);font-size:.86em;}
.assistant-chat.assistant-v2.chat-v170 .message-rich pre{color:var(--ai-text);margin:.5em 0 .9em;padding:12px 14px;border-radius:12px;background:var(--ai-wash);border:1px solid var(--ai-line);overflow:auto;font-size:12.5px;line-height:1.65;}
.assistant-chat.assistant-v2.chat-v170 .message-rich pre code{color:inherit;padding:0;border:0;background:none;font-size:inherit;}
.assistant-chat.assistant-v2.chat-v170 .chat-table-scroll{margin:.5em 0 .9em;border:1px solid var(--ai-line);border-radius:12px;overflow:auto;}
.assistant-chat.assistant-v2.chat-v170 .chat-table-scroll table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6;}
.assistant-chat.assistant-v2.chat-v170 .chat-table-scroll :is(th,td){padding:8px 14px;border:0;border-bottom:1px solid var(--ai-line);text-align:left;vertical-align:top;}
.assistant-chat.assistant-v2.chat-v170 .chat-table-scroll th{background:var(--ai-wash);font-weight:600;color:var(--ai-ink);white-space:nowrap;}
.assistant-chat.assistant-v2.chat-v170 .chat-table-scroll tr:last-child td{border-bottom:0;}

/* --- Message actions: under the message, never floating beside it --------- */
.assistant-chat.assistant-v2.chat-v170 .message-actions{position:static;transform:none;display:flex;align-items:center;justify-content:flex-start;gap:2px;width:auto;height:auto;margin:6px 0 0 -7px;opacity:0;transition:opacity .16s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 .message-actions.hidden{display:none;}
.assistant-chat.assistant-v2.chat-v170 .message-actions .icon-btn{width:30px;height:30px;min-width:30px;min-height:30px;padding:0;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--ai-faint);box-shadow:none;}
.assistant-chat.assistant-v2.chat-v170 .message-actions .icon-btn svg{width:15px;height:15px;}
.assistant-chat.assistant-v2.chat-v170 .message-actions .icon-btn:is(:hover,:focus-visible){background:var(--ai-wash);color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .message-actions .icon-btn:active{transform:scale(.94);}
.assistant-chat.assistant-v2.chat-v170 .chat-message:is(:hover,:focus-within) .message-actions{opacity:1;}
/* The latest answer keeps its actions in view. */
.assistant-chat.assistant-v2.chat-v170 article.chat-message.assistant:last-of-type .message-actions{opacity:1;}
.assistant-chat.assistant-v2.chat-v170 .chat-message:focus-visible{outline:2px solid var(--ai-ink);outline-offset:6px;border-radius:10px;}
@media (hover:hover) and (pointer:fine){
 /* User turns: actions tuck beside the bubble's lower edge and only appear on hover. */
 .assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-actions{position:absolute;right:calc(100% + 6px);bottom:2px;margin:0;}
}
@media (hover:none),(pointer:coarse){
 .assistant-chat.assistant-v2.chat-v170 .message-actions{opacity:1;margin:4px 0 0 -10px;}
 .assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-actions{justify-content:flex-end;margin:4px -10px 0 0;}
 .assistant-chat.assistant-v2.chat-v170 .message-actions .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;}
}

/* --- Secondary lines: process, archived handoffs, live phase -------------- */
.assistant-chat.assistant-v2.chat-v170 :is(.tool-details,.assistant-error-detail){margin:10px 0 0;padding:0;border:0;background:transparent;}
.assistant-chat.assistant-v2.chat-v170 :is(.tool-details,.assistant-error-detail)>summary{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;min-height:28px;margin-left:-8px;padding:3px 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;list-style:none;cursor:pointer;color:var(--ai-muted);font-size:12.5px;font-weight:500;line-height:1.5;transition:background-color .15s var(--ai-ease),color .15s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 :is(.tool-details,.assistant-error-detail)>summary::-webkit-details-marker{display:none;}
.assistant-chat.assistant-v2.chat-v170 :is(.tool-details,.assistant-error-detail)>summary:is(:hover,:focus-visible){background:var(--ai-wash);color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 :is(.tool-details,.assistant-error-detail)[open]>summary{color:var(--ai-ink);background:transparent;}
.assistant-chat.assistant-v2.chat-v170 .tool-details>summary svg{width:13px;height:13px;transition:transform .18s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 .tool-details[open]>summary svg{transform:rotate(180deg);}
.assistant-chat.assistant-v2.chat-v170 .assistant-error-detail>summary::after{content:'';width:6px;height:6px;margin:0 2px 2px 2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .18s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 .assistant-error-detail[open]>summary::after{transform:translateY(3px) rotate(-135deg);}
.assistant-chat.assistant-v2.chat-v170 .tool-details>[data-tools]{margin:4px 0 2px 1px;padding:2px 0 2px 14px;border:0;border-left:1px solid var(--ai-line-strong);border-radius:0;background:transparent;}
.assistant-chat.assistant-v2.chat-v170 .message-body .tool-receipt{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--ai-muted);font-size:12.5px;line-height:1.55;}
.assistant-chat.assistant-v2.chat-v170 .message-body .tool-receipt>svg{color:var(--ai-success);flex:none;}
.assistant-chat.assistant-v2.chat-v170 .message-body .tool-receipt.error{color:#9a3b2c;background:transparent;}
.assistant-chat.assistant-v2.chat-v170 .message-body .tool-receipt.error>svg{color:#c2410c;}
.assistant-chat.assistant-v2.chat-v170 .message-body .tool-receipt .btn.text.small{min-height:24px;padding:0 4px;font-size:12px;color:var(--ai-ink);text-decoration:underline;text-decoration-color:var(--ai-line-strong);text-underline-offset:3px;}
.assistant-chat.assistant-v2.chat-v170 .tool-details>[data-progress-text]:not(:empty){margin:6px 0 0 1px;padding:2px 0 2px 14px;border:0;border-left:1px solid var(--ai-line-strong);border-radius:0;background:transparent;color:var(--ai-muted);font-size:12.5px;line-height:1.7;}
/* An answer superseded by a later result is archived: one line, opened on demand. */
.assistant-chat.assistant-v2.chat-v170 [data-earlier-reply]{margin-top:0;}
.assistant-chat.assistant-v2.chat-v170 [data-earlier-reply][open]>.message-text{margin:6px 0 2px;padding-left:12px;border-left:2px solid var(--ai-line);color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .chat-message:has(>.message-body>.message-bubble>[data-earlier-reply]:not([hidden])) .tool-details{margin-top:0;}

.assistant-chat.assistant-v2.chat-v170 .chat-phase{padding:0;border-radius:0;background:transparent;display:inline-flex;align-items:center;gap:9px;margin:4px 0;color:var(--ai-muted);font-size:12.5px;line-height:1.6;}
.assistant-chat.assistant-v2.chat-v170 .chat-phase[hidden],.assistant-chat.assistant-v2.chat-v170 .chat-phase:empty{display:none;}
.assistant-chat.assistant-v2.chat-v170 .chat-phase::before{content:'';box-shadow:none;width:7px;height:7px;border-radius:50%;background:var(--ai-ink);animation:ai-breathe 1.4s var(--ai-ease) infinite;}
@keyframes ai-breathe{0%,100%{opacity:.25;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.assistant-chat.assistant-v2.chat-v170 .chat-phase::before{animation:none;opacity:.6;}}

/* --- Chips: reply choices and suggested next steps ------------------------ */
.assistant-chat [data-reply-choices]{display:flex;flex-wrap:wrap;}
.assistant-chat [data-reply-choices]:empty{display:none;}
.assistant-chat.assistant-v2.chat-v170 :is([data-reply-choices],.assistant-next-actions){gap:6px;margin-top:12px;}
.assistant-chat.assistant-v2.chat-v170 :is([data-reply-choices],.assistant-next-actions) .btn,
.assistant-chat.assistant-v2.chat-v170 :is([data-reply-choices],.assistant-next-actions) .btn.text.small{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 14px;border:1px solid var(--ai-line-strong);border-radius:999px;background:var(--ai-surface);box-shadow:none;color:var(--ai-text);font-size:13px;font-weight:500;transform:none;transition:border-color .15s var(--ai-ease),background-color .15s var(--ai-ease),color .15s var(--ai-ease);}
.assistant-chat.assistant-v2.chat-v170 :is([data-reply-choices],.assistant-next-actions) .btn:hover:not(:disabled){border-color:#c6c6be;background:var(--ai-wash);color:var(--ai-ink);transform:none;}
.assistant-chat.assistant-v2.chat-v170 :is([data-reply-choices],.assistant-next-actions) .btn:disabled{background:var(--ai-wash);border-color:var(--ai-line);color:var(--ai-faint);opacity:1;}
.assistant-chat.assistant-v2.chat-v170 .assistant-proactive-card{padding:12px 14px;border:1px solid var(--ai-line);border-radius:14px;background:var(--ai-surface);}

/* Notices inside a reply. */
.assistant-chat.assistant-v2.chat-v170 .assistant-response-notice{margin-top:12px;padding:12px 14px;border:1px solid var(--ai-line);border-radius:14px;background:var(--ai-wash);}
.assistant-chat.assistant-v2.chat-v170 .assistant-response-notice.is-attention{border-color:#f0e2c4;background:#fffaf1;}
.assistant-chat.assistant-v2.chat-v170 .assistant-response-notice p{margin:6px 0 0;font-size:13px;line-height:1.7;color:var(--ai-text);}

/* Work cards share the column and the same quiet frame. */
.assistant-chat.assistant-v2.chat-v170 .assistant-work-entry{max-width:var(--ai-measure);margin-bottom:22px;}
.assistant-chat.assistant-v2.chat-v170 .assistant-work-card{border:1px solid var(--ai-line);border-radius:14px;padding:13px 16px;background:var(--ai-surface);box-shadow:0 1px 2px rgba(20,20,20,.03);}

/* --- Jump to latest -------------------------------------------------------- */
.assistant-chat.assistant-v2.chat-v170 .chat-latest{position:absolute;left:50%;right:auto;top:auto;bottom:12px;z-index:3;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 14px 5px 11px;border:1px solid var(--ai-line-strong);border-radius:999px;background:rgba(255,255,255,.97);color:var(--ai-ink);font-size:12.5px;font-weight:500;box-shadow:0 6px 20px rgba(20,20,20,.08),0 1px 2px rgba(20,20,20,.05);}
.assistant-chat.assistant-v2.chat-v170 .chat-latest svg{color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .chat-latest:hover{border-color:#c6c6be;background:#fff;}
.assistant-chat.assistant-v2.chat-v170 .chat-latest:not(:disabled):active{transform:translateX(-50%) translateY(.5px);}
.assistant-chat.assistant-v2.chat-v170 .chat-latest.hidden{display:none;}

/* --- Composer -------------------------------------------------------------- */
.assistant-chat.assistant-v2.chat-v170 .agent-composer{border:1px solid var(--ai-line-strong);border-radius:24px;background:var(--ai-surface);box-shadow:0 1px 2px rgba(20,20,20,.03),0 8px 28px rgba(20,20,20,.05);}
.assistant-chat.assistant-v2.chat-v170 .agent-composer:focus-within{border-color:#c9c9c1;box-shadow:0 1px 2px rgba(20,20,20,.03),0 10px 32px rgba(20,20,20,.07),0 0 0 4px rgba(20,20,20,.035);}
.assistant-chat.assistant-v2.chat-v170 .agent-composer textarea{color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .agent-composer textarea::placeholder{color:var(--ai-faint);}
.assistant-chat.assistant-v2.chat-v170 .composer-footer [data-add-image]{border:0;background:var(--ai-wash);color:var(--ai-text);}
.assistant-chat.assistant-v2.chat-v170 .composer-footer [data-add-image] svg{width:18px;height:18px;}
.assistant-chat.assistant-v2.chat-v170 .composer-footer [data-add-image]:hover:not(:disabled){background:#ebebe6;color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .agent-composer.has-voice-input [data-voice-input]{border:0;background:transparent;color:var(--ai-muted);font-size:12.5px;font-weight:500;}
.assistant-chat.assistant-v2.chat-v170 .agent-composer.has-voice-input [data-voice-input]:hover:not(:disabled){background:var(--ai-wash);color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .agent-composer.has-voice-input [data-voice-input][aria-pressed=true]{background:var(--ai-ink);color:#fff;}
.assistant-chat.assistant-v2.chat-v170 .agent-composer [type=submit]{border:0;background:var(--ai-ink);color:#fff;box-shadow:none;}
.assistant-chat.assistant-v2.chat-v170 .agent-composer [type=submit]:hover:not(:disabled){background:#000;}
.assistant-chat.assistant-v2.chat-v170 .agent-composer [type=submit]:disabled{border:0;background:#ededea;color:#b2b2aa;box-shadow:none;opacity:1;}
.assistant-chat.assistant-v2.chat-v170 [data-stop]{border:1px solid var(--ai-line-strong);background:var(--ai-surface);color:var(--ai-ink);}
.assistant-chat.assistant-v2.chat-v170 .assistant-input-target{margin:8px 10px 0;padding:6px 6px 6px 12px;border:0;border-left:2px solid var(--ai-ink);border-radius:4px 12px 12px 4px;background:var(--ai-wash);}
.assistant-chat.assistant-v2.chat-v170 .assistant-input-target .composer-reference strong{font-size:12px;font-weight:600;}
.assistant-chat.assistant-v2.chat-v170 .assistant-input-target .composer-reference span{font-size:12.5px;color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .composer-caution{justify-content:center;gap:4px;min-height:24px;padding-top:6px;font-size:11.5px;color:var(--ai-faint);}
.assistant-chat.assistant-v2.chat-v170 .composer-caution .icon-btn{color:var(--ai-faint);border-radius:6px;}
.assistant-chat.assistant-v2.chat-v170 .composer-caution .icon-btn:hover{color:var(--ai-ink);background:var(--ai-wash);}
.assistant-chat.assistant-v2.chat-v170 .assistant-companion .companion-label{font-size:12px;color:var(--ai-muted);}

/* Banners, trays and notices above the composer. */
.assistant-chat.assistant-v2.chat-v170 :is(.assistant-mode-banner,.assistant-memory-notice){border:1px solid var(--ai-line);border-radius:12px;background:var(--ai-wash);color:var(--ai-muted);}
.assistant-chat.assistant-v2.chat-v170 .pending-tray{border-radius:12px;}

/* --- Fine pointers: compact, precise controls ------------------------------ */
@media (hover:hover) and (pointer:fine){
 .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar .btn.text.small{min-height:34px;padding:6px 11px;font-size:13px;}
 .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar>.icon-btn.small{width:34px;height:34px;min-width:34px;min-height:34px;}
 .assistant-chat.assistant-v2.chat-v170 .agent-composer textarea{font-size:15px;line-height:1.6;}
}

/* --- Small screens --------------------------------------------------------- */
@media (max-width:600px){
 .assistant-chat.assistant-v2.chat-v170>.page-heading .page-title{font-size:20px;}
 .assistant-chat.assistant-v2.chat-v170 .chat-scroll{padding:12px 0 16px;}
 .assistant-chat.assistant-v2.chat-v170 .chat-message{margin-bottom:20px;}
 .assistant-chat.assistant-v2.chat-v170 .chat-message.user{max-width:86%;margin-bottom:18px;}
 .assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-bubble>.message-text{padding:9px 14px;border-radius:18px 18px 6px 18px;}
 .assistant-chat.assistant-v2.chat-v170 .message-reference{max-width:100%;}
 .assistant-chat.assistant-v2.chat-v170 .chat-table-scroll{border-radius:10px;}
 .assistant-chat.assistant-v2.chat-v170 .agent-composer{border-radius:22px;}
}

/* --- Quick assistant window ------------------------------------------------ */
.quick-ai{border:1px solid rgba(20,20,20,.08);border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 30px 80px rgba(20,20,20,.16),0 8px 24px rgba(20,20,20,.06);}
.quick-ai .quick-ai-header{background:#fff;border-bottom:1px solid #efefea;}
.quick-ai .quick-ai-header strong{font-size:14px;font-weight:600;letter-spacing:.01em;color:#17171a;}
.quick-ai .quick-ai-header>div:first-child>svg{color:#7d7d76;}
.quick-ai .quick-ai-header>.row>.icon-btn{border-radius:9px;color:#5c5c56;}
.quick-ai .quick-ai-header>.row>.icon-btn:hover{background:#f5f5f2;color:#17171a;}
.quick-ai .quick-ai-body{background:#fff;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar .btn.text.small,
.quick-ai .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar>.icon-btn.small{background:transparent;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .chat-scroll{padding:12px 4px 14px 0;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 :is(.message-body,.message-text){font-size:14px;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .message-text{line-height:1.75;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .chat-message{margin-bottom:20px;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .chat-message.user{max-width:86%;margin-bottom:16px;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .chat-message.user .message-bubble>.message-text{padding:8px 14px;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .message-reference{font-size:12px;}
.quick-ai .assistant-chat.assistant-v2.chat-v170 .agent-composer{border-radius:20px;}
@media (hover:hover) and (pointer:fine){
 .quick-ai .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar .btn.text.small{min-height:30px;padding:4px 9px;font-size:12px;}
 .quick-ai .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar>.icon-btn.small{width:30px;height:30px;min-width:30px;min-height:30px;}
 .quick-ai .assistant-chat.assistant-v2.chat-v170 .agent-composer textarea{font-size:14px;}
 @media(max-width:360px){
  /* Keep a large work count clear of the title on narrow fine-pointer windows. */
  .quick-ai .assistant-chat.assistant-v2.chat-v170 .assistant-toolbar .btn.text.small{padding-inline:6px;}
 }
}
}
