.chat-group.user.chat-group--peer{--chat-user-content-align:start;--chat-footer-detail-position:static;flex-direction:row}@keyframes chat-message-enter{0%{transform:translateY(8px)}to{transform:translateY(0)}}@media (prefers-reduced-motion:no-preference){.chat-bubble--enter{animation:chat-message-enter .18s var(--ease-out) backwards}}.chat-group.chat-group--with-footer{--chat-group-avatar-column:1;--chat-group-content-column:2;grid-template-columns:var(--chat-avatar-column) minmax(0, var(--chat-message-column-max));gap:0 var(--chat-avatar-gap);grid-template-rows:auto auto;justify-content:start;display:grid}.chat-group.user.chat-group--with-footer{--chat-group-avatar-column:2;--chat-group-content-column:1;grid-template-columns:minmax(0, var(--chat-message-column-max)) var(--chat-avatar-column);justify-content:end}.chat-group.user.chat-group--with-footer:where(.chat-group--peer){--chat-group-avatar-column:1;--chat-group-content-column:2;grid-template-columns:var(--chat-avatar-column) minmax(0, var(--chat-message-column-max));justify-content:start}.chat-group.chat-group--with-footer>:is(.chat-avatar,.chat-avatar-slot){grid-column:var(--chat-group-avatar-column);grid-row:1/span 2}.chat-group.user.chat-group--with-footer:has(>.chat-group-messages>.chat-bubble--preview-chips-only){position:relative}.chat-group.user.chat-group--with-footer:has(>.chat-group-messages>.chat-bubble--preview-chips-only)>:is(.chat-avatar,.chat-avatar-slot){align-self:start;position:absolute}.chat-group.chat-group--with-footer>.chat-group-messages{grid-column:var(--chat-group-content-column);grid-row:1;max-width:none}.chat-group.chat-group--with-footer>.chat-group-footer{grid-column:var(--chat-group-content-column);grid-row:2;max-width:none}.chat-group-messages>:is(.chat-bubble--tool-shell+.chat-bubble:not(.chat-bubble--tool-shell),.chat-bubble:not(.chat-bubble--tool-shell)+.chat-bubble--tool-shell){margin-block-start:var(--chat-message-type-boundary-gap)}.chat-group>.chat-group-messages>:is(.chat-bubble--tool-shell+.chat-bubble:not(.chat-bubble--tool-shell),.chat-bubble:not(.chat-bubble--tool-shell)+.chat-bubble--tool-shell,.chat-bubble+.chat-activity-group,.chat-activity-group+.chat-bubble,.chat-work-group+.chat-bubble,.chat-work-group+.chat-activity-group,.chat-bubble+.chat-work-group,.chat-activity-group+.chat-work-group){margin-block-start:calc(var(--chat-run-block-gap) - 2px)}.chat-group.tool{--chat-message-column-max:var(--chat-message-max-width,min(980px, 100%));padding-inline-start:var(--chat-avatar-gutter);display:block}.chat-group.chat-group--turn-block{margin-block-end:var(--chat-run-block-gap)}.chat-group.tool.chat-group--with-footer>.chat-group-messages{max-width:var(--chat-message-column-max)}.chat-group.user .chat-group-footer{justify-content:flex-end}.chat-group.user.chat-group--peer .chat-group-footer{justify-content:flex-start}.chat-group-footer{width:100%;min-width:0;min-height:var(--chat-footer-row);opacity:var(--chat-footer-disclosure-opacity,0);pointer-events:var(--chat-footer-disclosure-pointer-events,none);flex-wrap:wrap;align-self:start;align-items:flex-start;gap:8px;margin-block-start:var(--chat-footer-offset);transition:opacity .12s ease-out;display:flex}.chat-group:focus-within .chat-group-footer{opacity:1;pointer-events:auto}.chat-group-footer:has(.msg-meta[open]){opacity:1;pointer-events:auto}@media (hover:hover){.chat-group:hover .chat-group-footer{opacity:1;pointer-events:auto}}.chat-group-footer.chat-group-footer--send-status{opacity:1;pointer-events:auto}.chat-group-footer--persistent-identity{opacity:var(--chat-persistent-footer-opacity,1);pointer-events:none;position:relative}.chat-group-footer--persistent-identity .chat-confirm-wrap,.chat-group-footer--persistent-identity .chat-group-timestamp,.chat-group-footer--persistent-identity .msg-meta__summary,.chat-group-footer--persistent-identity .chat-group-footer-actions{position:var(--chat-footer-detail-position,absolute);opacity:var(--chat-footer-disclosure-opacity,0);pointer-events:var(--chat-footer-disclosure-pointer-events,none)}.chat-group:focus-within .chat-group-footer--persistent-identity{pointer-events:auto}.chat-group-footer--persistent-identity:has(.msg-meta[open]){pointer-events:auto}@media (hover:hover){.chat-group:hover .chat-group-footer--persistent-identity{pointer-events:auto}}.chat-group:focus-within .chat-group-footer--persistent-identity :is(.chat-confirm-wrap,.chat-group-timestamp,.msg-meta__summary,.chat-group-footer-actions){opacity:1;pointer-events:auto;position:static}.chat-group-footer--persistent-identity:has(.msg-meta[open]) :is(.chat-confirm-wrap,.chat-group-timestamp,.msg-meta__summary,.chat-group-footer-actions){opacity:1;pointer-events:auto;position:static}@media (hover:hover){.chat-group:hover .chat-group-footer--persistent-identity :is(.chat-confirm-wrap,.chat-group-timestamp,.msg-meta__summary,.chat-group-footer-actions){opacity:1;pointer-events:auto;position:static}}.chat-group-footer__meta{flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;min-height:24px;display:flex}.chat-group.user:not(.chat-group--peer) .chat-group-footer--persistent-identity :is(.chat-sender-name,.chat-message-source){order:1}.chat-group-footer-actions,.chat-message-actions-row{justify-content:flex-end;align-items:center;gap:4px;margin-left:auto;display:flex}.chat-group-footer-actions{flex:none}.chat-group.user .chat-group-footer-actions,.chat-group.assistant .chat-group-footer-actions,.chat-group.assistant .chat-message-actions-row,.chat-group.user.chat-group--peer .chat-message-actions-row{justify-content:flex-start;margin-left:0}.chat-group.user.chat-group--peer .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind):focus-visible{opacity:1}.chat-message-actions-row{--chat-message-action-size:24px;align-self:stretch;margin-top:4px}.chat-message-reactions{flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px;display:flex}.chat-group.user:not(.chat-group--peer) .chat-message-reactions{justify-content:flex-end}.chat-reaction-chip{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg-elevated);height:24px;color:var(--muted);font-variant-numeric:tabular-nums;cursor:default;align-items:center;gap:4px;padding:0 8px 0 6px;font-size:12px;line-height:1;transition:border-color .12s,background-color .12s,color .12s;display:inline-flex}.chat-reaction-chip__emoji{font-size:14px;line-height:1}.chat-reaction-chip[aria-pressed=true]{border-color:var(--accent);background:var(--accent-subtle);color:var(--accent)}@media (hover:hover){.chat-reaction-chip:enabled:hover{border-color:color-mix(in srgb, var(--muted) 45%, var(--border));background:var(--bg-hover);color:var(--text)}.chat-reaction-chip[aria-pressed=true]:enabled:hover{border-color:var(--accent);background:var(--accent-subtle);color:var(--accent)}}.chat-reaction-chip:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.chat-reaction-chip--add{opacity:0;pointer-events:none;background:0 0;border:0;height:auto;padding:0;transition:opacity .12s}.chat-group:focus-within .chat-reaction-chip--add{opacity:1;pointer-events:auto}@media (hover:hover){.chat-group:hover .chat-reaction-chip--add{opacity:1;pointer-events:auto}}@media (prefers-reduced-motion:no-preference){.chat-reaction-chip{animation:.16s ease-out chat-reaction-chip-in}.chat-reaction-chip__count{animation:.2s cubic-bezier(.2,.9,.3,1.4) chat-reaction-count-in;display:inline-block}}@keyframes chat-reaction-chip-in{0%{opacity:0;transform:scale(.85)}}@keyframes chat-reaction-count-in{0%{opacity:0;transform:translateY(35%)}}.chat-reaction-action{opacity:var(--chat-footer-disclosure-opacity,0);pointer-events:var(--chat-footer-disclosure-pointer-events,none)}.chat-message-actions-row .chat-reaction-action{opacity:var(--chat-message-action-opacity,0);pointer-events:var(--chat-message-action-pointer-events,none)}.chat-group:focus-within .chat-reaction-action{opacity:1;pointer-events:auto}@media (hover:hover){.chat-group:hover .chat-reaction-action{opacity:1;pointer-events:auto}}.chat-sender-name{color:var(--chat-sender-name-color,var(--muted));white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:12px;font-weight:500;overflow:hidden}.chat-sender-name.person-activity-link{color:color-mix(in srgb, var(--chat-sender-name-color,var(--muted)) 60%, var(--text))}.chat-sender-name.person-activity-link:focus-visible{color:color-mix(in srgb, var(--chat-sender-name-color,var(--muted)) 50%, var(--text));text-decoration:none}@media (hover:hover){.chat-sender-name.person-activity-link:hover{color:color-mix(in srgb, var(--chat-sender-name-color,var(--muted)) 50%, var(--text));text-decoration:none}}.chat-message-source{color:var(--muted);overflow-wrap:anywhere;min-width:0;font-size:12px}.chat-group-footer--send-status .chat-group-footer__meta{flex-wrap:wrap}.chat-send-status{min-width:0;color:var(--text);white-space:normal;overflow-wrap:anywhere;pointer-events:auto;flex-wrap:wrap;order:2;align-items:center;gap:.5em;font-size:12px;line-height:1.2;display:inline-flex}.chat-send-status__part{align-items:center;gap:.5em;min-width:0;display:inline-flex}.chat-author-avatar{border:1px solid color-mix(in srgb, var(--border) 68%, transparent);width:20px;height:20px;box-shadow:0 1px 2px color-mix(in srgb, var(--text) 9%, transparent);vertical-align:middle;border-radius:50%;flex:0 0 20px;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.chat-author-avatar__image,.chat-author-avatar__initials{border-radius:inherit;width:100%;height:100%}.chat-author-avatar__image{object-fit:cover;display:block}.chat-author-avatar__initials{background:hsl(var(--chat-author-avatar-hue) 32% 42%);color:#fff;letter-spacing:-.02em;justify-content:center;align-items:center;font-size:8px;font-weight:700;line-height:1;display:inline-flex}.chat-author-avatar__fallback,.chat-author-avatar.is-fallback .chat-author-avatar__image{display:none}.chat-author-avatar.is-fallback .chat-author-avatar__fallback{display:inline-flex}.chat-group-timestamp{color:var(--muted);white-space:nowrap;font-size:12px;line-height:1.2}.chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group-footer .chat-send-status__action,.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-comment-preview__actions button{border-radius:var(--radius-md);min-width:24px;min-height:24px;color:var(--muted);background:0 0;border:none;justify-content:center;align-items:center;padding:4px;transition:opacity .12s ease-out,color .12s ease-out,background .12s ease-out;display:inline-flex}.chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group-footer .chat-send-status__action{opacity:var(--chat-footer-disclosure-opacity,0);pointer-events:var(--chat-footer-disclosure-pointer-events,none)}.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){min-height:var(--chat-message-action-size);opacity:var(--chat-message-action-opacity,0);pointer-events:var(--chat-message-action-pointer-events,none)}@media (hover:hover){.chat-group:hover .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group:hover .chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}}.chat-group.user.chat-group--peer .chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group.user.chat-group--peer .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:0;pointer-events:none}.chat-group.user.chat-group--peer :is(.chat-bubble,.chat-message--reply):is(:focus-within,.chat-bubble--actions-revealed)+.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group.user.chat-group--peer .chat-message-actions-row:focus-within :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}.chat-group.user.chat-group--peer .chat-message--reply:has(>.chat-bubble--actions-revealed)+.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}@media (hover:hover){.chat-group.user.chat-group--peer :is(.chat-bubble,.chat-message--reply):hover+.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group.user.chat-group--peer .chat-message-actions-row:hover :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}.chat-group.user.chat-group--peer:has(>.chat-group-messages>.chat-bubble:last-child:hover,>.chat-group-messages>.chat-message--reply:last-child>.chat-bubble:hover){--chat-peer-final-action-opacity:.6;--chat-peer-final-action-pointer-events:auto}}.chat-group.user.chat-group--peer:has(>.chat-group-messages>.chat-bubble:last-child:is(:focus-within,.chat-bubble--actions-revealed),>.chat-group-messages>.chat-message--reply:last-child>.chat-bubble:is(:focus-within,.chat-bubble--actions-revealed)){--chat-peer-final-action-opacity:.6;--chat-peer-final-action-pointer-events:auto}.chat-group.user.chat-group--peer>.chat-group-footer .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:var(--chat-peer-final-action-opacity,0);pointer-events:var(--chat-peer-final-action-pointer-events,none)}.chat-group.user.chat-group--peer .chat-group-footer:focus-within .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}@media (hover:hover){.chat-group.user.chat-group--peer .chat-group-footer:hover .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group:focus-within .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind),.chat-group:focus-within .chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:.6;pointer-events:auto}}@media (hover:none){.chat-group--latest-assistant>.chat-group-footer{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto}}.chat-reply-context-menu button:disabled,.chat-comment-preview__actions button:disabled{opacity:.3;pointer-events:none}@media (hover:hover){.chat-group:hover .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind):disabled{opacity:.3;pointer-events:none}.chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind):hover,.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind):hover,.chat-comment-preview__actions button:hover{color:var(--accent);background:0 0;opacity:1!important}}.chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind) svg,.chat-message-actions-row :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind) svg,.chat-comment-preview__actions button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:14px;height:14px}.chat-send-status__part>[aria-hidden=true]{color:var(--muted)}.chat-group-footer .chat-send-status__action{width:auto;min-width:0;min-height:0;color:var(--link);font:inherit;pointer-events:auto;border-radius:0;padding:0;opacity:1!important}.chat-group-footer .chat-send-status__discard{color:var(--muted)}@media (hover:hover){.chat-group-footer .chat-send-status__action:hover{text-decoration:underline}}.chat-divider{margin:var(--space-7) 8px;color:var(--muted);letter-spacing:0;-webkit-user-select:none;user-select:none;gap:7px;font-size:12px;display:grid}.chat-divider__rule{align-items:center;gap:10px;display:flex}.chat-divider__line{background:var(--border);opacity:.9;flex:1 1 0;height:1px}.chat-divider__label{color:var(--muted-strong);letter-spacing:.05em;text-transform:uppercase;align-items:center;gap:6px;font-weight:600;display:inline-flex}.chat-divider__icon{width:13px;height:13px;color:var(--muted);display:inline-flex}.chat-divider__icon svg{width:100%;height:100%}.chat-divider__separator,.chat-divider__metric{color:var(--muted);text-transform:none;font-weight:500}.chat-divider__details{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;padding:0 16px;display:flex}.chat-divider__description{max-width:min(620px,100%);color:var(--muted);font-size:12px;line-height:1.4}.chat-notice{margin:14px auto calc(14px + var(--chat-footer-offset) + var(--chat-footer-row) + var(--chat-turn-gap));color:var(--muted);text-align:center;gap:7px;padding:0 16px;font-size:12px;line-height:1.4;display:grid}.chat-notice .chat-text{color:inherit;font-size:inherit;line-height:inherit}.chat-yield-marker{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.chat-notice__body,.chat-notice__collapse{width:min(560px,100%);margin:0 auto}.chat-notice__toggle{color:var(--muted);-webkit-user-select:none;user-select:none;align-items:center;gap:4px;list-style:none;display:inline-flex}.chat-notice__toggle::-webkit-details-marker{display:none}.chat-notice__toggle:before{content:"▸";flex-shrink:0;transition:transform .15s}.chat-notice__collapse[open]>.chat-notice__toggle:before{transform:rotate(90deg)}@media (hover:hover){.chat-notice__toggle:hover{color:var(--text)}}.chat-notice__collapse .chat-notice__body{text-align:start;margin-top:7px}.chat-notice--danger{text-align:left;width:min(560px,100% - 32px)}.chat-notice--danger .chat-notice__body{width:100%}.chat-notice :where(ul,ol,pre,blockquote){text-align:left;display:inline-block}.chat-notice :where(:not(pre)>code){color:inherit}.chat-avatar.user{background:var(--accent-subtle);color:var(--accent)}.chat-avatar.chat-avatar--sender-initials{color:#fff;letter-spacing:-.02em;font-size:12px}img.chat-avatar.user{object-fit:cover}.chat-avatar-slot{display:grid;position:relative}.chat-avatar-slot>:not(img,.identity-avatar__hat),.chat-avatar-slot.is-fallback>img.chat-avatar,.chat-avatar-slot.is-fallback>.identity-avatar__hat{display:none}.chat-avatar-slot.is-fallback>:not(img,.identity-avatar__hat){display:grid}.chat-avatar.assistant,.chat-avatar.other,.chat-avatar.tool{background:var(--secondary);color:var(--muted)}img.chat-avatar{object-fit:cover;object-position:center}:is(.chat-thread,.chat-session-rail__thread) .chat-bubble{letter-spacing:0}.chat-group.workspace-conflict .chat-group-messages{max-width:min(760px, calc(100% - var(--chat-avatar-gutter)))}.chat-group.workspace-conflict .chat-avatar{background:color-mix(in srgb, var(--warn) 14%, var(--secondary));color:var(--warn)}.chat-bubble--workspace-conflict{border-color:color-mix(in srgb, var(--warn) 34%, var(--border));background:linear-gradient(135deg, color-mix(in srgb, var(--warn) 10%, var(--card)) 0%, color-mix(in srgb, var(--warn) 5%, var(--card)) 100%);width:100%}.chat-workspace-conflict-event{gap:8px;display:grid}.chat-bubble--tool-shell{width:100%;max-width:var(--chat-message-max-width,760px);box-shadow:none;background:0 0;border:0;align-self:stretch;padding:0}.chat-group.assistant.chat-group--forwarded .chat-bubble{border:1px solid var(--border);background:var(--card);width:fit-content;padding:13px 16px}.chat-group.assistant .chat-bubble.chat-reading-indicator{align-items:center;padding:10px 0;display:inline-flex}.chat-group--working .chat-group-messages{padding-inline-start:var(--chat-avatar-gutter)}.chat-duplicate-count{border:1px solid color-mix(in srgb, var(--border) 75%, transparent);border-radius:var(--radius-sm);background:color-mix(in srgb, var(--panel) 72%, transparent);min-height:22px;color:var(--muted);vertical-align:.08em;white-space:nowrap;align-self:baseline;align-items:center;margin-top:0;padding:2px 7px;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.chat-group.user .chat-duplicate-count{background:color-mix(in srgb, var(--primary) 12%, transparent);color:color-mix(in srgb, var(--text) 80%, var(--primary) 20%)}.chat-group.chat-group--reply{--chat-avatar-column:36px;--chat-avatar-gap:10px;--chat-message-column-max:var(--chat-message-max-width,min(980px, calc(100% - var(--chat-avatar-gutter))));position:relative}.chat-group.chat-group--reply>:is(.chat-avatar,.chat-avatar-slot),.chat-message--reply>:is(.chat-avatar,.chat-avatar-slot){margin-top:calc(var(--chat-reply-attribution-line-height) + var(--chat-reply-attribution-gap));z-index:1;border-radius:var(--radius-full);background:var(--bg);box-shadow:none;border:0;align-self:start;display:grid;position:relative}.chat-group--reply>.chat-avatar-slot>.chat-avatar,.chat-message--reply>.chat-avatar-slot>.chat-avatar{background:var(--bg);box-shadow:none;border:0}.chat-group.assistant.chat-group--reply>:is(.chat-avatar,.chat-avatar-slot){margin-top:calc(var(--chat-reply-attribution-line-height) + var(--chat-reply-attribution-gap) + 4px + (1lh - var(--chat-avatar-column)) / 2);grid-row:1/span 2}.chat-message--reply{flex-direction:column;align-items:start;width:100%;min-width:0;display:flex;position:relative}.chat-message--reply>:is(.chat-avatar,.chat-avatar-slot){position:absolute;inset-block-start:0;inset-inline-end:calc(100% + var(--chat-avatar-gap))}.chat-message--reply>.chat-avatar-slot{background:0 0}.chat-message--reply>.chat-reply-attribution--reply{margin-block-end:var(--chat-reply-attribution-gap)}.chat-reply-attribution--pending{visibility:hidden}.chat-reply-connector{z-index:0;color:color-mix(in srgb, var(--muted) 48%, transparent);pointer-events:none;position:absolute;inset:0 auto auto 0;overflow:visible}.chat-reply-attribution__mobile-icon{display:none}.chat-reply-attribution:is(.chat-reply-attribution--reply,.chat-reply-attribution--inline){width:100%;min-width:0;font-size:var(--chat-reply-attribution-font-size);font-weight:400;line-height:var(--chat-reply-attribution-line-height);white-space:nowrap;grid-template-columns:max-content minmax(0,max-content) minmax(0,1fr);gap:6px;display:grid}:root{--chat-reply-attribution-font-size:13px;--chat-reply-attribution-line-height:20px;--chat-reply-attribution-gap:6px}.chat-group--reply .chat-reply-attribution--reply{margin-bottom:calc(var(--chat-reply-attribution-gap) - var(--chat-message-gap))}.chat-reply-attribution.chat-reply-attribution--inline{color:inherit;text-align:start;margin-block-end:var(--chat-reply-attribution-gap)}.chat-reply-attribution--inline .chat-reply-attribution__person{overflow:hidden}.chat-reply-attribution--inline .chat-reply-attribution__unavailable{contain:inline-size;grid-column:3;justify-self:stretch}.chat-reply-attribution--inline .chat-reply-attribution__name{color:inherit}.chat-reply-attribution--inline :is(.chat-reply-attribution__label,.chat-reply-attribution__unavailable){color:color-mix(in srgb, currentColor 75%, transparent)}.chat-reply-attribution__person{white-space:nowrap;align-items:center;gap:4px;min-width:0;display:inline-flex}.chat-reply-attribution__person .chat-author-avatar{width:16px;height:16px;box-shadow:none;border:0;flex:0 0 16px}.chat-reply-attribution__person .identity-avatar--agent{grid-template:100%/100%}.chat-reply-attribution__name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text);font-weight:500;overflow:hidden}button.chat-reply-attribution__target{max-width:calc(100% + 6px);color:inherit;font:inherit;text-align:start;background:0 0;border:0;border-radius:4px;justify-self:start;margin:-2px -3px;padding:2px 3px}@media (hover:hover){button.chat-reply-attribution__target:hover{background:color-mix(in srgb, var(--text) 7%, transparent)}}button.chat-reply-attribution__target:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:color-mix(in srgb, var(--accent) 8%, transparent)}@media (hover:hover){.chat-reply-attribution--inline button.chat-reply-attribution__target:hover{background:color-mix(in srgb, currentColor 7%, transparent)}}.chat-reply-attribution--inline button.chat-reply-attribution__target:focus-visible{background:0 0;outline-color:currentColor}button.chat-reply-attribution__target:disabled{cursor:var(--cursor-default)}.chat-reply-attribution__unavailable{text-overflow:ellipsis;min-width:0;color:var(--muted);font-weight:400;overflow:hidden}@media (hover:none),(width<=768px),(width<=932px) and (height<=500px) and (orientation:landscape){.chat-group{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-detail-position:static;--chat-message-action-opacity:var(--chat-footer-disclosure-opacity,0);--chat-message-action-pointer-events:var(--chat-footer-disclosure-pointer-events,none)}:where(.chat-thread) .chat-group{--chat-footer-disclosure-opacity:0;--chat-footer-disclosure-pointer-events:none;--chat-footer-detail-position:static;--chat-persistent-footer-opacity:0}:where(.chat-thread) .chat-group:is(.chat-group--meta-revealed,:focus-within){--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-detail-position:static;--chat-persistent-footer-opacity:1}.chat-group.user{--chat-footer-detail-position:static}.chat-group.assistant .chat-group-footer{flex-wrap:nowrap}.chat-group.user.chat-group--peer .chat-group-footer{flex-wrap:nowrap;width:fit-content;max-width:100%}.chat-group.user.chat-group--peer .chat-group-footer__meta{flex-wrap:wrap;flex:0 auto;gap:0 8px}.chat-group.user.chat-group--peer .chat-group-footer-actions{flex:none;justify-content:flex-end}:is(.chat-group-footer-actions,.chat-message-actions-row) :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){margin-inline:10px;position:relative}:is(.chat-group-footer-actions,.chat-message-actions-row) :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind):before{content:"";width:var(--chat-touch-target);height:var(--chat-touch-target);pointer-events:inherit;position:absolute;inset-block-end:0;inset-inline-start:-10px}:where(.chat-group-messages) :where(a,button,summary,[role=button],[data-openable],input:not(.oc-sensitive-input>input),select,textarea,label,video,audio):where(:not(.chat-tool-card *,.chat-message-actions-row *)),.chat-group-messages .chat-text a.markdown-github-item{z-index:1;position:relative}}.chat-copy-btn,.chat-reply-btn{color:var(--muted)}.chat-group:has([data-copy-feedback]:not([hidden])){--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-detail-position:static;--chat-persistent-footer-opacity:1}.chat-copy-btn__icon{width:14px;height:14px;display:inline-flex;position:relative}.chat-copy-btn__icon-copy,.chat-copy-btn__icon-check{transition:opacity .15s;display:flex;position:absolute;top:0;left:0}.chat-copy-btn__icon-check,.chat-copy-btn[data-copy-state=copied] .chat-copy-btn__icon-copy{opacity:0}.chat-copy-btn[data-copy-state=copied] .chat-copy-btn__icon-check{opacity:1}.chat-copy-btn[data-copy-state=copying]{opacity:0;pointer-events:none}.chat-copy-btn[data-copy-state=error]{border-color:var(--danger-subtle);background:var(--danger-subtle);color:var(--danger)}.chat-copy-btn[data-copy-state=copied],.chat-group :is(.chat-group-footer-actions,.chat-message-actions-row) :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind)[data-copy-state=copied]{opacity:1;border-color:var(--ok-subtle);background:var(--ok-subtle);color:var(--ok)}.chat-group .chat-copy-btn[data-copy-state=copied]+[data-copy-feedback]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat-copy-btn:focus-visible,.chat-reply-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (hover:hover){.chat-bubble:not(:where(.chat-bubble--tool-shell)):hover{border-color:color-mix(in srgb, var(--accent) 28%, var(--border))}:root[data-theme-mode=light] .chat-bubble:not(:where(.chat-bubble--tool-shell)):hover{border-color:color-mix(in srgb, var(--accent) 48%, var(--border));box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent)}}:root .chat-group.assistant.chat-group--forwarded .chat-bubble{box-shadow:none;border-color:#0000}.chat-group.user .chat-bubble{--chat-bubble-background:var(--accent-subtle);background:var(--chat-bubble-background);border-color:#0000}@media (hover:hover){.chat-group.user .chat-bubble:hover{box-shadow:none;border-color:#0000}}:root[data-theme-mode=light] .chat-bubble{border-color:var(--border);background:var(--bg);box-shadow:inset 0 1px 0 var(--card-highlight)}:where(:root[data-theme-mode=light]) .chat-group.user .chat-bubble{--chat-bubble-background:color-mix(in srgb, var(--accent) 15%, var(--bg));background:var(--chat-bubble-background);color:var(--text-strong);box-shadow:none;border-color:#0000}:root[data-theme-mode=light] .chat-bubble--tool-shell,:root[data-theme-mode=light] .chat-group.assistant:not(:where(.chat-group--forwarded)) .chat-bubble{box-shadow:none;background:0 0;border-color:#0000}.chat-group:is(.user,.chat-group--forwarded).chat-group--sender-tint .chat-bubble{--chat-bubble-background:hsl(var(--chat-sender-hue) 48% 42% / .16);background:var(--chat-bubble-background)}@media (hover:hover){.chat-group.user.chat-group--sender-tint .chat-bubble:hover{border-color:#0000}}.chat-group.user.chat-group--sender-tint .chat-sender-name{--chat-sender-name-color:hsl(var(--chat-sender-hue) 45% 70%)}:where(:root[data-theme-mode=light]) .chat-group.user.chat-group--sender-tint .chat-bubble{--chat-bubble-background:hsl(var(--chat-sender-hue) 65% 94%)}@media (hover:hover){:root[data-theme-mode=light] .chat-group.user.chat-group--sender-tint .chat-bubble:hover{box-shadow:none;border-color:#0000}}:root[data-theme-mode=light] .chat-group.user.chat-group--sender-tint .chat-sender-name{--chat-sender-name-color:hsl(var(--chat-sender-hue) 60% 36%)}.agent-chat__typing-indicator{min-width:0;display:grid}.agent-chat__typing-row{opacity:1;transition:grid-template-rows var(--duration-normal) var(--ease-out), opacity var(--duration-normal) linear;grid-template-rows:minmax(0,1fr);display:grid}.agent-chat__typing-row-content{min-height:0;overflow:hidden}.agent-chat__typing-row[data-exiting]{opacity:0;pointer-events:none;transition:opacity calc(var(--chat-typing-exit-duration) * .4) linear, grid-template-rows calc(var(--chat-typing-exit-duration) * .6) calc(var(--chat-typing-exit-duration) * .4) var(--ease-in-out);grid-template-rows:minmax(0,0fr)}.chat-group.user.chat-group--typing .chat-bubble{background:color-mix(in srgb, var(--chat-bubble-background) 65%, var(--bg))}.agent-chat__typing-state{color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:12px}.agent-chat__typing-overflow{min-width:0;min-height:28px;color:var(--muted);grid-template-columns:max-content minmax(0,1fr);align-items:start;gap:8px;padding:4px 0 12px;font-size:12px;line-height:20px;display:grid}.agent-chat__typing-identities{justify-content:flex-start;align-items:center;min-width:0;height:20px;display:flex}.agent-chat__typing-person{flex:0 0 20px;display:inline-flex}.agent-chat__typing-person+.agent-chat__typing-person{margin-inline-start:-6px}.agent-chat__typing-person .chat-author-avatar{border-color:var(--bg);box-shadow:0 0 0 1px var(--bg)}.agent-chat__typing-overflow--no-avatars{grid-template-columns:minmax(0,1fr)}.agent-chat__typing-summary{min-width:0;overflow-wrap:anywhere;min-block-size:2lh;container-type:inline-size}.agent-chat__typing-name{text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;max-inline-size:30cqi;color:var(--text);display:inline-block;overflow:hidden}@media (prefers-reduced-motion:no-preference) and (forced-colors:none){.agent-chat__typing-text[data-typing]{background-image:linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--text) 50%, var(--muted) 65%, var(--muted) 100%);color:#0000;-webkit-text-fill-color:transparent;background-repeat:repeat-x;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.4s ease-in-out infinite text-shimmer}.agent-chat__typing-text[data-typing] .agent-chat__typing-name{color:inherit}}.agent-chat__typing-preview-text{white-space:pre-wrap;display:block}.agent-chat__typing-preview-text:after{content:"";vertical-align:-.12em;background:currentColor;width:2px;height:1em;margin-inline-start:2px;animation:1s step-end infinite chat-typing-pulse;display:inline-block}.agent-chat__typing-preview-text[data-paused]:after{opacity:0;animation:none}.agent-chat__typing-bubble{min-height:calc(var(--chat-text-size) * 1.5);color:var(--muted);align-items:center;gap:4px;display:inline-flex}.agent-chat__typing-bubble>span{background:currentColor;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite chat-typing-pulse}.agent-chat__typing-bubble>span:nth-child(2){animation-delay:.15s}.agent-chat__typing-bubble>span:nth-child(3){animation-delay:.3s}@keyframes chat-typing-pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.agent-chat__typing-row,.agent-chat__typing-row[data-exiting]{transition:none}.agent-chat__typing-row[data-exiting]{opacity:1;grid-template-rows:minmax(0,1fr)}.agent-chat__typing-preview-text:after,.agent-chat__typing-bubble>span{animation:none}}.chat-message-avatar-anchor{display:contents}.chat-message-avatar-anchor>:is(.chat-avatar,.chat-avatar-slot){position:absolute;inset-block-start:0;inset-inline-start:calc(100% + var(--chat-avatar-gap))}.chat-group--peer .chat-message-avatar-anchor>:is(.chat-avatar,.chat-avatar-slot){inset-inline-start:auto;inset-inline-end:calc(100% + var(--chat-avatar-gap))}.chat-group.user .chat-bubble--with-images>.chat-message-avatar-anchor{width:fit-content;max-width:100%;display:block;position:relative}.chat-group.user.chat-group--peer .chat-bubble--with-images>.chat-message-avatar-anchor:not(:has(.chat-text,.chat-message-disclosure,.chat-json-collapse)){display:contents}.chat-group.user .chat-bubble.chat-bubble--with-images{align-items:var(--chat-user-content-align);box-shadow:none;background:0 0;border:0;flex-direction:column;padding:0;display:flex}.chat-group.user :is(.chat-bubble--with-images,.chat-bubble--with-images>.chat-message-avatar-anchor)>:is(.chat-text,.chat-message-disclosure){border-radius:var(--radius-md);background:var(--chat-bubble-background);width:fit-content;max-width:100%;padding:10px 14px}:where(:root[data-theme-mode=light]) .chat-group.user :is(.chat-bubble--with-images,.chat-bubble--with-images>.chat-message-avatar-anchor)>:is(.chat-text,.chat-message-disclosure){color:var(--text-strong)}.msg-meta{--openclaw-tooltip-max-width:min(36rem, calc(100vw - 32px))}.msg-meta__summary{border-radius:var(--radius-sm,4px);color:inherit;font:inherit;-webkit-user-select:none;user-select:none;background:0 0;border:0;align-items:center;margin:-4px -2px;padding:4px 2px;display:inline-flex}.msg-meta__summary .chat-group-timestamp{transition:color var(--duration-fast) ease-out, opacity var(--duration-fast) ease-out, text-decoration-color var(--duration-fast) ease-out;text-underline-offset:3px;-webkit-text-decoration:underline dotted #0000;text-decoration:underline dotted #0000}.msg-meta__summary:focus-visible .chat-group-timestamp,.msg-meta[open] .msg-meta__summary .chat-group-timestamp{color:var(--text);opacity:.9;-webkit-text-decoration-color:color-mix(in srgb, currentColor 45%, transparent);text-decoration-color:color-mix(in srgb, currentColor 45%, transparent)}@media (hover:hover){.msg-meta__summary:hover .chat-group-timestamp{color:var(--text);opacity:.9;-webkit-text-decoration-color:color-mix(in srgb, currentColor 45%, transparent);text-decoration-color:color-mix(in srgb, currentColor 45%, transparent)}}.msg-meta__summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.msg-meta__details{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.msg-meta__time,.msg-meta__tokens,.msg-meta__cache,.msg-meta__cost,.msg-meta__ctx,.msg-meta__model{white-space:nowrap;align-items:center;gap:2px;display:inline-flex}.msg-meta__model{background:var(--bg-hover,#ffffff0f);border-radius:var(--radius-sm,4px);font-family:var(--mono);padding:1px 6px}.msg-meta__cost{color:var(--ok)}.msg-meta__ctx--warn{color:var(--warn)}.msg-meta__ctx--danger{color:var(--danger)}.chat-confirm-wrap{display:inline-flex;position:relative}.chat-confirm-popover{background:var(--card);border:1px solid var(--border,#ffffff1a);border-radius:var(--radius-md,8px);min-width:200px;max-width:calc(100vw - 48px);box-shadow:var(--overlay-shadow);z-index:10000;transform-origin:100% 0;padding:12px;animation:.15s ease-out scale-in;position:fixed}.chat-confirm-popover__text{color:var(--text);margin:0 0 8px;font-size:13px;font-weight:500}.chat-confirm-popover__remember{color:var(--muted);-webkit-user-select:none;user-select:none;align-items:center;gap:6px;margin-bottom:10px;font-size:12px;display:flex}.chat-confirm-popover__check{width:14px;height:14px;accent-color:var(--accent)}.chat-confirm-popover__actions{justify-content:flex-end;gap:6px;display:flex}.chat-confirm-popover__cancel,.chat-confirm-popover__yes{border-radius:var(--radius-sm,4px);border:none;padding:4px 12px;font-size:12px;font-weight:500;transition:background .12s ease-out}.chat-confirm-popover__cancel{background:var(--bg-hover);color:var(--muted)}@media (hover:hover){.chat-confirm-popover__cancel:hover{background:color-mix(in srgb, var(--text) 12%, transparent)}}.chat-confirm-popover__yes{background:var(--destructive);color:var(--destructive-foreground)}@media (hover:hover){.chat-confirm-popover__yes:hover{background:var(--destructive-hover)}}@media (width<=768px),(width<=932px) and (height<=500px) and (orientation:landscape){.chat-group{--chat-reply-attribution-gap:8px}.chat-group:has(>.chat-group-messages>:is(.chat-reply-attribution,.chat-message--reply):first-child){margin-block-start:0}.chat-group-messages>.chat-reply-attribution{margin-block-end:calc(var(--chat-reply-attribution-gap) - var(--chat-message-gap))}.chat-group-footer{flex-wrap:nowrap;align-items:flex-start}.chat-group-footer__meta :is(.chat-group-timestamp,.msg-meta){flex-shrink:0}.chat-group.user:not(.chat-group--peer) .chat-group-footer--persistent-identity :is(.chat-sender-name,.chat-message-source){order:0}.chat-group.user .chat-group-footer__meta>.chat-group-footer-actions{order:1}.chat-group.user.chat-group--peer .chat-group-footer-actions{flex-basis:auto;justify-content:flex-start}.chat-group.user.chat-group--peer .chat-message-footer{--chat-footer-disclosure-opacity:0;--chat-footer-disclosure-pointer-events:none;--chat-footer-action-opacity:0;opacity:var(--chat-footer-disclosure-opacity);pointer-events:var(--chat-footer-disclosure-pointer-events)}.chat-group.user.chat-group--peer .chat-message-footer .chat-group-footer-actions :is(.chat-copy-btn,.chat-reply-btn,.chat-group-rewind){opacity:var(--chat-footer-action-opacity);pointer-events:var(--chat-footer-disclosure-pointer-events)}.chat-group.user.chat-group--peer .chat-group-messages>.chat-bubble:is(:focus-within,.chat-bubble--actions-revealed)+.chat-message-footer,.chat-group.user.chat-group--peer .chat-message-footer:focus-within{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-action-opacity:.6}.chat-group.user.chat-group--peer .chat-group-messages>.chat-message--reply:has(>.chat-bubble:is(:focus-within,.chat-bubble--actions-revealed))+.chat-message-footer{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-action-opacity:.6}@media (hover:hover){.chat-group.user.chat-group--peer .chat-group-messages>.chat-bubble:hover+.chat-message-footer,.chat-group.user.chat-group--peer .chat-message-footer:hover{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-action-opacity:.6}.chat-group.user.chat-group--peer .chat-group-messages>.chat-message--reply:has(>.chat-bubble:hover)+.chat-message-footer{--chat-footer-disclosure-opacity:1;--chat-footer-disclosure-pointer-events:auto;--chat-footer-action-opacity:.6}}.chat-group.chat-group--reply{--chat-avatar-column:0px;--chat-avatar-gap:0px}.chat-group.chat-group--reply>:is(.chat-avatar,.chat-avatar-slot),.chat-message--reply>:is(.chat-avatar,.chat-avatar-slot),.chat-reply-connector{display:none}.chat-reply-attribution--reply .chat-reply-attribution__label{align-items:center;gap:6px;display:inline-flex}.chat-reply-attribution__mobile-icon{flex:none;width:14px;height:14px;display:inline-flex}.chat-reply-attribution__mobile-icon:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){transform:scaleX(-1)}.chat-thread .chat-group.assistant:not(.chat-group--forwarded) .chat-bubble:not(.chat-bubble--tool-shell):has(.chat-message-images){width:100%}.chat-thread .chat-group.assistant.chat-group--forwarded .chat-bubble:not(.chat-bubble--tool-shell),.chat-thread .chat-group.assistant:not(.chat-group--forwarded) .chat-bubble:not(.chat-bubble--tool-shell) :is(.chat-assistant-attachments,.chat-message-images,openclaw-chat-clawhub-card):not(.chat-assistant-attachments *){max-width:90%}.chat-group.user.chat-group--peer{--chat-persistent-footer-opacity:1}}.chat-thread:focus-visible{outline:none}.chat-position-rail{contain:layout;--chat-position-rail-clearance:60px;--chat-position-rail-height:min(45vh, calc(var(--chat-position-rail-count) * 12px), calc(var(--chat-position-rail-viewport-height) - 2 * var(--chat-position-rail-clearance)));--chat-position-rail-top:min(calc((var(--chat-position-rail-viewport-height) - var(--chat-position-rail-height)) / 2), calc(360px + var(--chat-thread-padding-top) + var(--chat-thread-padding-bottom) - var(--chat-position-rail-clearance) - 12px));z-index:4;top:calc(var(--chat-position-rail-top) - var(--chat-thread-padding-top));width:0;height:0;position:sticky}.chat-position-rail__track{top:0;width:44px;height:var(--chat-position-rail-height);position:absolute;inset-inline-start:10px}.chat-position-rail__marks{--chat-position-fade-top:0px;--chat-position-fade-bottom:0px;--chat-position-marks-height:min(var(--chat-position-rail-height), max(0px, calc(100cqh + var(--chat-thread-padding-top) + var(--chat-thread-padding-bottom) - var(--chat-position-rail-top) - var(--chat-position-rail-clearance))));max-height:var(--chat-position-marks-height);padding-bottom:max(0px, calc(var(--chat-position-scroll-top,0px) + var(--chat-position-marks-height) - var(--chat-position-rail-count) * 12px));overscroll-behavior:contain;scrollbar-width:none;scroll-padding-block:60px;display:block;position:relative;overflow:hidden auto}.chat-position-rail__marks::-webkit-scrollbar{display:none}.chat-position-rail__marks[data-overflow-top]{--chat-position-fade-top:min(60px, 25%)}.chat-position-rail__marks[data-overflow-bottom]{--chat-position-fade-bottom:min(60px, 25%)}.chat-position-rail__marks[data-overflow-top],.chat-position-rail__marks[data-overflow-bottom]{-webkit-mask-image:linear-gradient(to bottom, transparent, var(--text) var(--chat-position-fade-top), var(--text) calc(100% - var(--chat-position-fade-bottom)), transparent);mask-image:linear-gradient(to bottom, transparent, var(--text) var(--chat-position-fade-top), var(--text) calc(100% - var(--chat-position-fade-bottom)), transparent)}.chat-thread:not([data-position-rail-gutter])>.chat-position-rail{display:none}.chat-position-rail__item{display:contents}.chat-position-rail__virtual-space{height:calc(var(--chat-position-rail-count) * 12px);position:relative}.chat-position-rail__marker{z-index:1;width:44px;height:12px;color:color-mix(in srgb, var(--muted) 40%, transparent);cursor:var(--cursor-action);background:0 0;border:0;border-radius:0;align-items:center;padding:0;display:flex;position:absolute;inset-inline-start:0}.chat-position-rail__tick{width:var(--chat-position-tick-width,8px);pointer-events:none;height:2px;transition:width var(--duration-fast) ease, background-color var(--duration-fast) ease;background:currentColor;border-radius:1px;display:block}.chat-position-rail__marker:focus-visible{box-shadow:var(--focus-ring)}.chat-position-rail__marker[data-visible]{color:var(--muted)}.chat-position-rail__item[data-hovered] .chat-position-rail__marker{color:var(--text)}.chat-position-rail__item[data-hovered]+.chat-position-rail__item+.chat-position-rail__item+.chat-position-rail__item{--chat-position-tick-width:12px}.chat-position-rail__item:has(+.chat-position-rail__item+.chat-position-rail__item+.chat-position-rail__item[data-hovered]){--chat-position-tick-width:12px}.chat-position-rail__item[data-hovered]+.chat-position-rail__item+.chat-position-rail__item{--chat-position-tick-width:16px}.chat-position-rail__item:has(+.chat-position-rail__item+.chat-position-rail__item[data-hovered]){--chat-position-tick-width:16px}.chat-position-rail__item[data-hovered]+.chat-position-rail__item{--chat-position-tick-width:24px}.chat-position-rail__item:has(+.chat-position-rail__item[data-hovered]){--chat-position-tick-width:24px}.chat-position-rail__item[data-hovered]{--chat-position-tick-width:32px}.chat-position-rail__preview{top:var(--chat-position-preview);border:1px solid var(--border);border-radius:var(--radius-md);width:200px;color:var(--text);background:var(--panel);box-shadow:var(--shadow-md);gap:4px;padding:6px 8px;font-size:12px;line-height:1.35;display:grid;position:absolute;inset-inline-start:100%;transform:translateY(-50%)}.chat-position-rail__preview-header{align-items:center;gap:6px;display:flex}.chat-position-rail__preview-label{color:var(--muted);overflow-wrap:anywhere;font-size:11px;font-weight:600}.chat-position-rail__preview-copy{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;max-height:3lh;display:-webkit-box;overflow:hidden}.chat-position-rail__preview-copy :where(p,h1,h2,h3,h4,ul,ol,blockquote,pre){font:inherit;margin:0}.chat-position-rail__preview-copy :where(ul,ol){padding-inline-start:1.25em}.chat-position-rail__preview-copy :where(code){font-family:var(--mono)}.chat-position-rail__preview-copy a{color:inherit;cursor:inherit;text-decoration:none}.chat-thread-inner>:first-child{margin-top:0!important}.chat-thread-inner>openclaw-panel-loading-skeleton{animation:.15s ease-out .5s backwards chat-skeleton-reveal}@keyframes chat-skeleton-reveal{0%{visibility:hidden;opacity:0}to{visibility:visible;opacity:1}}.chat-message-images{align-items:flex-start;gap:var(--chat-block-gap);flex-flow:column;width:100%;display:flex}.chat-message-image-button{border-radius:var(--radius-xl);cursor:zoom-in;background:0 0;border:0;max-width:100%;padding:0;display:inline-flex;position:relative}.chat-message-image-button:not(.chat-attachment-image-button):before{z-index:1;border:1px solid color-mix(in srgb, var(--text) 4%, transparent);border-radius:inherit;corner-shape:inherit;content:"";pointer-events:none;position:absolute;inset:0}.chat-image-frame{border-radius:var(--radius-xl);max-width:min(100%,400px);display:inline-flex;position:relative;overflow:hidden}.chat-image-frame--image{width:var(--chat-image-width);aspect-ratio:var(--chat-image-ratio);background:color-mix(in srgb, var(--bg-muted) 45%, var(--bg));flex:none;display:block}.chat-image-frame--compact{background:0 0;overflow:visible;container-type:inline-size}.chat-image-frame--managed:not(.chat-image-frame--image){min-width:min(100%, var(--chat-image-min-width));min-height:44px}.chat-image-skeleton.skeleton{--skeleton-base:transparent;--skeleton-highlight:color-mix(in srgb, var(--bg-hover) 45%, transparent);--skeleton-duration:2.4s;border-radius:inherit;pointer-events:none;position:absolute;inset:0}.chat-image-frame--image>.chat-message-image-button{width:100%;height:100%;position:absolute;inset:0}.chat-image-frame--image .chat-message-image{width:100%;max-width:none;height:100%;max-height:none}.chat-image-frame--managed:after{z-index:1;content:"";opacity:0;pointer-events:none;background:linear-gradient(#0000,#0408128f);height:min(100%,72px);transition:opacity .14s ease-out;position:absolute;bottom:0;left:0;right:0}.chat-image-actions{z-index:2;opacity:0;pointer-events:none;gap:4px;transition:opacity .12s ease-out,transform .12s ease-out;display:flex;position:absolute;bottom:8px;right:8px;transform:translateY(2px)}.chat-image-frame:focus-within .chat-image-actions{opacity:1;pointer-events:auto;transform:translateY(0)}@media (hover:hover){.chat-image-frame:hover .chat-image-actions{opacity:1;pointer-events:auto;transform:translateY(0)}}.chat-image-frame--managed:focus-within:after{opacity:1}@media (hover:hover){.chat-image-frame--managed:hover:after{opacity:1}}@media (hover:none){.chat-image-actions{opacity:1;pointer-events:auto;transform:translateY(0)}.chat-image-frame--managed:after{opacity:1}}.chat-image-action{width:28px;height:28px;color:var(--media-foreground);cursor:var(--cursor-action);background:0 0;border:0;border-radius:0;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.chat-image-action:hover{color:#ffffffb8;background:0 0}}.chat-image-action:focus-visible,.chat-assistant-attachment-card__action:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.chat-image-action svg,.chat-assistant-attachment-card__action svg{width:15px;height:15px}.chat-message-image-button:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}.chat-message-image{border-radius:var(--radius-xl);object-fit:contain;width:auto;max-width:min(100%,400px);height:auto;max-height:360px;transition:transform .15s ease-out}.chat-video-preview{aspect-ratio:16/9;background:var(--bg-muted);width:400px;max-width:100%;overflow:hidden}.chat-video-preview__content,.chat-video-preview .chat-message-image-button,.chat-video-preview .chat-message-image{width:100%;height:100%;display:block}.chat-video-preview__content{min-width:0}.chat-video-preview__play{width:44px;height:44px;color:var(--media-foreground);background:color-mix(in srgb, var(--media-bg) 55%, transparent);pointer-events:none;border-radius:50%;place-items:center;margin:auto;display:grid;position:absolute;inset:0}.chat-video-preview__play svg{width:24px;height:24px}.chat-video-preview__play svg polygon{fill:currentColor}.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card{height:100%;overflow:auto}.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card__header{flex-direction:column;align-items:stretch;gap:6px;padding:8px}.chat-message-images--gallery .chat-video-preview .chat-attachment-file-icon,.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card__status-separator{display:none}.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card__status-meta{gap:2px;display:grid}.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card__status-meta,.chat-message-images--gallery .chat-video-preview .chat-assistant-attachment-card__status-reason{white-space:normal;overflow-wrap:anywhere;overflow:visible}@supports (corner-shape:superellipse(1.5)){.chat-assistant-attachment-card.chat-assistant-attachment-card{border-radius:calc(14px * var(--openclaw-corner-radius-scale));corner-shape:superellipse(1.5)}.chat-image-frame.chat-image-frame,.chat-message-image-button.chat-message-image-button,.chat-message-image.chat-message-image{border-radius:calc(20px * var(--openclaw-corner-radius-scale));corner-shape:superellipse(1.5)}}@media (hover:hover){.chat-image-frame:hover .chat-message-image,.chat-assistant-attachments>.chat-message-image-button:hover .chat-message-image{transform:scale(1.02)}}.chat-group.user .chat-message-images{--chat-user-image-grid-size:min(128px, calc((100vw - 48px) / 3));grid-template-columns:repeat(3, var(--chat-user-image-grid-size));justify-content:var(--chat-user-content-align);justify-items:var(--chat-user-content-align);gap:4px;width:fit-content;max-width:100%;margin:0;display:grid}.chat-group.user .chat-message-images>*{justify-items:var(--chat-user-content-align);display:grid}.chat-group.user .chat-message-images--two-column{grid-template-columns:repeat(2, var(--chat-user-image-grid-size))}.chat-group.user:not(.chat-group--peer) .chat-message-images--five>.chat-image-frame:nth-child(4){grid-column:2}.chat-group.user .chat-message-images--single{grid-template-columns:minmax(0,auto)}.chat-group.user .chat-message-images--gallery :is(.chat-image-frame,.chat-message-image-button,.chat-message-image){width:var(--chat-user-image-grid-size);min-width:0;height:var(--chat-user-image-grid-size);object-fit:cover;max-height:none}@media (width<=768px),(width<=932px) and (height<=500px) and (orientation:landscape){.chat-thread .chat-group.user .chat-message-images--gallery:not(.chat-message-images--two-column){grid-template-columns:repeat(3, minmax(0, var(--chat-user-image-grid-size)))}.chat-thread .chat-group.user .chat-message-images--gallery:not(.chat-message-images--two-column) :is(.chat-image-frame,.chat-message-image-button,.chat-message-image){width:100%;height:100%}.chat-thread .chat-group.user .chat-message-images--gallery:not(.chat-message-images--two-column) .chat-image-frame{height:auto}.chat-thread .chat-group.user .chat-message-images--gallery:not(.chat-message-images--two-column) .chat-image-frame:not(.chat-image-frame--compact){aspect-ratio:1}}.chat-group.user .chat-message-images--gallery>.chat-image-frame--compact{align-self:start;height:auto}.chat-assistant-attachments{gap:var(--chat-block-gap);flex-direction:column;width:100%;max-width:100%;display:flex}.chat-assistant-attachments--preview-chips{justify-content:var(--chat-user-content-align,flex-start);flex-flow:wrap}.chat-group.user .chat-bubble--with-files,:is(.chat-group.assistant .chat-bubble:has(.chat-assistant-attachments),.chat-group.assistant .chat-text:has(.chat-assistant-attachments)){width:100%}.chat-assistant-attachments img.chat-message-image{display:block}.chat-assistant-attachment-card{--chat-attachment-border:var(--border-strong);--chat-attachment-surface:var(--bg);--chat-attachment-action-size:30px;box-sizing:border-box;border:1px solid var(--chat-attachment-border);border-radius:var(--radius-md);background:0 0;width:100%;max-width:100%;transition:background-color .12s;overflow:hidden}@media (hover:hover){.chat-assistant-attachment-card:hover{background-color:color-mix(in srgb, var(--media-foreground) 4%, transparent)}}.chat-assistant-attachment-card[data-openable]{cursor:var(--cursor-action)}@media (hover:hover){:root[data-theme-mode=light] .chat-assistant-attachment-card:hover{background-color:color-mix(in srgb, var(--media-bg) 3%, var(--chat-attachment-surface))}}:root[data-theme-mode=light] .chat-assistant-attachment-card{--chat-attachment-surface:color-mix(in srgb, var(--panel) 98%, white 2%);background-color:var(--chat-attachment-surface)}@media (hover:hover){:root[data-theme-mode=light] .chat-assistant-attachment-card__action:hover{background:color-mix(in srgb, var(--media-bg) 6%, transparent)}}.chat-assistant-attachment-card--audio,.chat-assistant-attachment-card--video{flex-direction:column;align-items:stretch;gap:0;padding:0;display:flex}.chat-assistant-attachment-card--blocked{color:var(--text)}.chat-assistant-attachment-card__header{justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:14px 16px;display:flex}.chat-assistant-attachment-card__header--preview{padding:10px 14px}.chat-assistant-attachment-card__header:has(.chat-attachment-file-icon[data-mode=large-placeholder]){padding-left:10px}.chat-assistant-attachment-card--audio .chat-assistant-attachment-card__header,.chat-assistant-attachment-card--video .chat-assistant-attachment-card__header{border-bottom:1px solid var(--chat-attachment-border)}.chat-assistant-attachment-card__identity{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.chat-assistant-attachment-card__details{gap:3px;min-width:0;display:grid}.chat-assistant-attachment-card__details--preview{white-space:nowrap;align-items:baseline;gap:0;display:flex;overflow:hidden}.chat-assistant-attachment-card__details--preview .chat-assistant-attachment-card__title{flex:0 auto}.chat-assistant-attachment-card__details--preview .chat-assistant-attachment-card__meta{flex:none}.chat-assistant-attachment-card__separator{color:var(--muted);flex:none;margin:0 .35em;font-size:11px;line-height:1.2}.chat-assistant-attachment-card__title{min-width:0;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;font-weight:600;overflow:hidden}.chat-assistant-attachment-card__meta{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.2;overflow:hidden}.chat-assistant-attachment-card__status-meta{align-items:baseline;gap:.5em;min-width:0;display:inline-flex}.chat-assistant-attachment-card__status-badge,.chat-assistant-attachment-card__status-separator{flex:none}.chat-assistant-attachment-card__status-reason{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}@media (width<=560px){.chat-assistant-attachment-card--blocked .chat-assistant-attachment-card__status-meta{text-overflow:clip;white-space:normal;gap:2px;display:grid;overflow:visible}.chat-assistant-attachment-card--blocked .chat-assistant-attachment-card__status-separator{display:none}.chat-assistant-attachment-card--blocked .chat-assistant-attachment-card__status-reason{text-overflow:clip;white-space:normal;overflow:visible}}.chat-image-frame--compact>.chat-assistant-attachment-card{align-self:start}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__status-meta{white-space:nowrap;gap:.5em;display:inline-flex;overflow:hidden}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__status-separator{display:inline}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__status-reason{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@container (width<=240px){.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__header{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:2px;height:72px;padding:4px}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-attachment-file-icon{display:none}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__identity{flex:none}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__details{gap:0;width:100%}.chat-image-frame--compact>.chat-assistant-attachment-card .chat-assistant-attachment-card__action{height:26px;padding:0;font-size:clamp(8px,14cqi,12px)}}.chat-assistant-attachment-card__actions{flex:none;align-items:center;gap:8px;display:inline-flex}.chat-assistant-attachment-card__action{width:var(--chat-attachment-action-size);height:var(--chat-attachment-action-size);border-radius:var(--radius-full);color:var(--text);font:inherit;cursor:var(--cursor-action);background:0 0;border:0;flex:none;justify-content:center;align-items:center;gap:5px;padding:0;transition:color .12s,background-color .12s,border-color .12s;display:inline-flex}@media (hover:hover){.chat-assistant-attachment-card__action:hover{color:var(--text-strong);background:color-mix(in srgb, var(--media-foreground) 8%, transparent)}}.chat-assistant-attachment-card__expand--icon svg{transform:rotate(45deg)}.chat-assistant-attachment-card__action--labeled{border:1px solid var(--chat-attachment-border,var(--border-strong));width:auto;padding:0 12px;font-size:12px;font-weight:600}.chat-assistant-attachment-card__title--unavailable{color:var(--muted);-webkit-text-decoration:line-through color-mix(in srgb, currentColor 35%, transparent) 1px;text-decoration:line-through color-mix(in srgb, currentColor 35%, transparent) 1px}.chat-assistant-attachment-card--recoverable{color:var(--warn)}.chat-assistant-attachment-card--definitive{color:var(--danger)}:is(.chat-assistant-attachment-card--recoverable,.chat-assistant-attachment-card--definitive) :is(.chat-assistant-attachment-card__status-meta,.chat-attachment-file-icon){color:inherit}.chat-assistant-attachment-card__status-meta.skeleton{inline-size:clamp(112px,14vw,144px)}.chat-assistant-attachment-card__action-skeleton{width:calc(100% - 38px);height:var(--chat-attachment-action-size);border-radius:var(--radius-full);position:absolute;inset-block-start:0;inset-inline-end:0}.chat-assistant-attachment-card__actions--loading{height:var(--chat-attachment-action-size);padding-inline:38px 0;font-size:12px;font-weight:600;position:relative}.chat-assistant-attachment-card__actions--loading:before{content:attr(data-label);visibility:hidden;border:1px solid #0000;padding:0 12px}@media (hover:hover) and (pointer:fine){.chat-assistant-attachment-card__download--secondary{opacity:0;pointer-events:none}.chat-assistant-attachment-card:is(:hover,:focus-within) .chat-assistant-attachment-card__download--secondary{opacity:1;pointer-events:auto}}@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.chat-assistant-attachment-card__download--secondary{transition:opacity .12s}}.chat-assistant-attachment-card__reason{color:var(--muted);font-size:12px;line-height:1.4}.chat-pairing-qr-notices{gap:8px;display:grid}.chat-pairing-qr-expired{align-items:flex-start;gap:10px;padding:14px 16px;display:flex}.chat-pairing-qr-expired .chat-assistant-attachment-card__reason{font-size:calc(12px * var(--control-ui-text-scale))}.chat-pairing-qr-expired__icon{height:1.5em;color:var(--muted);font-size:calc(13px * var(--control-ui-text-scale));flex:none;align-items:center;display:flex}.chat-pairing-qr-expired__icon svg{width:16px;height:16px}.chat-pairing-qr-expired__content{overflow-wrap:anywhere;flex:1;gap:4px;min-width:0;display:grid}.chat-pairing-qr-expired__heading{flex-wrap:wrap;align-items:baseline;gap:4px 8px;line-height:1.5;display:flex}.chat-pairing-qr-expired__title{min-width:0;font-size:calc(13px * var(--control-ui-text-scale));font-weight:600}.chat-pairing-qr-expired__badge{min-width:0;color:var(--danger);font-size:calc(12px * var(--control-ui-text-scale))}.chat-assistant-attachment-card__retry{color:currentColor}@media (hover:hover){.chat-assistant-attachment-card__retry:hover{background:color-mix(in srgb, currentColor 8%, transparent)}}.chat-assistant-attachment-card__retry svg{width:13px;height:13px}.chat-media-preparing{padding:4px 0 0}.chat-assistant-attachment-badge{background:color-mix(in srgb, var(--accent) 14%, transparent);width:fit-content;max-width:100%;color:var(--accent);border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);border-radius:999px;align-items:center;gap:6px;padding:3px 8px;font-size:12px;display:inline-flex}@container chat-transcript (width<=960px) or (height<=360px){.chat-position-rail{display:none}}@media (prefers-reduced-motion:reduce){.chat-position-rail__tick{transition:none}}@media (forced-colors:active){.chat-position-rail__tick{background:buttontext}.chat-position-rail__marker[data-visible] .chat-position-rail__tick{background:highlight;outline:1px solid highlight}}
