.desktop-chat-link{display:none}
@media(min-width:1024px), (hover:hover) and (pointer:fine){
 .chat-layout [hidden]{display:none!important}
 .chat-activity{margin-left:auto;display:flex;align-items:center;gap:30px;min-height:30px}
 .chat-activity>div{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
 .chat-activity strong{font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}
 .chat-online-dot{width:6px;height:6px;border-radius:50%;background:#b7c4b8}
 .primary-nav .desktop-chat-link{display:block}
 .chat-route .search-wrap{display:none}
 .chat-route main{display:flex;flex-direction:column;flex:1 0 calc(440px + var(--page-gap) + var(--page-footer-gap));min-height:0}
 .chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);flex:1;height:440px;min-height:440px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
 .chat-sidebar{display:grid;grid-template-rows:auto minmax(0,1fr) 79px;min-height:0;border-right:1px solid var(--line)}
 .chat-navigation{display:flex;flex-direction:column;gap:8px;padding-bottom:18px;margin:18px 14px 0;border-bottom:1px solid var(--line)}
 .chat-navigation a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:5px;font-size:14px;color:var(--muted)}
 .chat-navigation a:hover,.chat-thread:hover{background:#1b1b1b;color:var(--text)}
 .chat-navigation a[aria-current],.chat-thread[aria-current]{background:var(--raised);color:var(--text)}
 .chat-thread-region{min-height:0;padding:12px 14px;display:flex;align-items:center;overflow:hidden}
 .chat-threads{display:flex;flex-direction:column;gap:8px;width:100%;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:6px;scroll-snap-type:y mandatory}
 .chat-sidebar-footer{border-top:1px solid var(--line);min-height:0;margin-inline:14px}
 .chat-threads>.chat-muted{padding:0 14px;font-size:12px}
 .chat-thread{display:flex;flex:0 0 48px;gap:12px;align-items:center;height:48px;padding:8px 10px;border-radius:5px;font-size:13px;scroll-snap-align:start}
 .chat-thread-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px}
 .chat-deal-unread{display:inline-block;vertical-align:middle}
 .chat-deal-title>.chat-deal-unread{margin:0}
 .chat-unread{width:8px;height:8px;border-radius:2px;background:var(--accent);flex-shrink:0;margin-left:auto}
 .chat-thread small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .chat-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #383838;border-radius:50%;color:#bcbcbc;font-size:12px;flex-shrink:0}
 .chat-mod-link{font-size:12px;color:var(--muted);padding:12px 10px;text-align:left}
 .chat-workspace{display:flex;flex-direction:column;min-width:0;min-height:0}
 .chat-room-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 28px;border-bottom:1px solid var(--line);flex-shrink:0}
 .chat-layout .chat-room-heading{min-height:82px}
 .chat-room-heading>div{min-width:0}
 .chat-heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
 .chat-room-heading .chat-icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;min-width:40px;min-height:40px}
 .chat-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 .chat-icon-button[data-chat-action="report-conversation"] svg{color:#d88383}
 .chat-icon-button[data-chat-action="report-conversation"]:not(:disabled):hover svg{color:#f1a5a5}
 .chat-heading-peer{display:flex;align-items:center;gap:12px}.chat-heading-peer>div{min-width:0}
 .chat-room-heading .chat-avatar{width:48px;height:48px}
 .chat-room-heading .chat-avatar .avatar-placeholder{width:28px;height:28px}
 .chat-room-heading h1{font-size:22px;letter-spacing:-.5px;overflow-wrap:anywhere}
 .chat-room-heading p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}
 .chat-room-heading .button{flex-shrink:0;white-space:nowrap}
 .chat-status{font-size:12px;line-height:1.6;padding:10px 28px;color:var(--muted);flex-shrink:0}
 .chat-status:empty{display:none}.chat-status.is-error,.chat-modal-status{color:#f1a5a5}
 .chat-compose .chat-status{padding:8px 0 0}
 .chat-messages{flex:1;min-height:140px;overflow:auto;padding:24px 28px;overscroll-behavior:contain;scrollbar-gutter:stable}
 .chat-message{--message-side-space:40px;display:flex;justify-content:flex-start;margin-bottom:8px}
 .chat-message.is-mine{justify-content:flex-end}
 .chat-message.has-avatar{--message-side-space:84px;align-items:flex-end;gap:12px;margin-bottom:12px}
 /* Reserve the horizontal pair before measuring, so wrapping cannot oscillate. */
 .chat-message:not(:has(.has-files,.chat-reply-preview)){--message-side-space:64px}
 .chat-message.has-avatar:not(:has(.has-files,.chat-reply-preview)){--message-side-space:108px}
 .chat-message-avatar{width:32px;height:32px;flex:0 0 32px}
 .chat-message-content{--message-ink:var(--text);--message-meta:#a6a6a6;position:relative;isolation:isolate;min-width:0;width:fit-content;max-width:min(80%,560px,calc(100% - var(--message-side-space)));padding:8px 12px;border:0;border-radius:12px;background:#232323;color:var(--message-ink)}
 /* Paint the tail below content, including non-positioned attachment timestamps. */
 .chat-message-content::before{content:"";position:absolute;z-index:-1;bottom:0;left:-6px;width:20px;height:16px;background:inherit;clip-path:path("M6 0C6 6 4 10 1 12.5C0.3 13.1 0.5 14 1.4 14.2C5 15.1 10 16 18 16H20V0Z");pointer-events:none}
 .chat-message.is-mine .chat-message-content{--message-ink:var(--text);--message-meta:#bdbdbd;background:#444444;border-radius:12px}
 .chat-message.is-mine .chat-message-content::before{left:auto;right:-6px;transform:scaleX(-1)}
 .chat-message-meta{display:flex;gap:12px;align-items:center;margin:0 0 4px;min-height:18px}
 .chat-message-meta strong{min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:500;color:inherit}
 .chat-profile-link,.chat-heading-name{color:inherit;text-decoration:none;transition:color 140ms ease}.chat-profile-link:hover,.chat-heading-name:hover{color:#fff}
 .chat-message-tools{position:absolute;left:calc(100% + 6px);display:flex;padding:0;border:0;background:transparent;opacity:0;pointer-events:none;transition:opacity 140ms ease}
 /* Stack outer actions above the lower corner; center the pair on short bubbles. */
 .chat-reply-tools{bottom:calc(30px + min(0px,calc((100% - 56px)/2)));width:26px;justify-content:center}
 .chat-reaction-tools{bottom:min(0px,calc((100% - 56px)/2))}
 .is-mine .chat-message-tools{left:auto;right:calc(100% + 6px)}
 .has-compact-tools .chat-message-tools{bottom:calc((100% - 26px)/2)}
 .has-compact-tools .chat-reply-tools{left:calc(100% + 34px)}
 .is-mine .has-compact-tools .chat-reply-tools{left:auto;right:calc(100% + 34px)}
 .chat-message-tools::before{content:"";position:absolute;top:0;bottom:0;right:100%;width:7px}
 .is-mine .chat-message-tools::before{right:auto;left:100%}
 .chat-message:hover .chat-message-tools,html[data-focus-mode="keyboard"] .chat-message:focus-within .chat-message-tools,.chat-message-tools:has(.chat-reaction-picker:popover-open){opacity:1;pointer-events:auto}
 .chat-message-tools>.chat-text-button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:8px;color:var(--muted);background:transparent;transition:color 140ms ease,background 140ms ease,opacity 140ms ease}
 .chat-message-tools>.chat-text-button:hover{color:var(--text);background:#ffffff0a}
 .chat-reply-tools>.chat-text-button{width:26px;height:26px;border-radius:8px}
 .chat-message-tools svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:var(--icon-stroke-small);stroke-linecap:round;stroke-linejoin:round}
 .chat-message-tools svg path{vector-effect:non-scaling-stroke}
 .chat-message.is-mine .chat-message-tools>.chat-text-button svg{transform:scaleX(-1)}
 .chat-reaction-picker{position:fixed;inset:auto;box-sizing:border-box;width:230px;height:42px;margin:0;padding:3px 6px;border:1px solid transparent;border-radius:21px;background:#232323;color:var(--text);box-shadow:none;overflow:hidden;opacity:0;clip-path:inset(0 0 0 calc(100% - 42px) round 21px);transition:clip-path 180ms ease,opacity 140ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete}
 .chat-reaction-picker[data-direction="right"]{clip-path:inset(0 calc(100% - 42px) 0 0 round 21px)}
 .chat-reaction-picker:popover-open{display:flex;gap:2px;opacity:1;clip-path:inset(0 round 21px)}
 .chat-reaction-picker[data-direction="left"]{flex-direction:row-reverse}
 @starting-style{.chat-reaction-picker:popover-open{opacity:0;clip-path:inset(0 0 0 calc(100% - 42px) round 21px)}.chat-reaction-picker[data-direction="right"]:popover-open{clip-path:inset(0 calc(100% - 42px) 0 0 round 21px)}}
 .chat-reaction-picker button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;font-size:21px;line-height:1;cursor:pointer;transition:background 140ms ease,opacity 140ms ease}
 .chat-reaction-picker button:hover{background:#ffffff0a}
 .chat-reaction-picker button[aria-pressed="true"]{background:#ffffff12}
 html[data-focus-mode="keyboard"] .chat-reaction-picker button:focus,html[data-focus-mode="keyboard"] .chat-message-tools button:focus,html[data-focus-mode="keyboard"] .chat-reaction:focus{outline:1px solid var(--control-focus);outline-offset:1px}
 .chat-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
 .chat-reaction{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 8px;border:0;border-radius:13px;background:#ffffff0c;color:var(--message-meta);font-size:16px;line-height:20px;cursor:pointer;transition:background 140ms ease,color 140ms ease,opacity 140ms ease}
 .chat-reaction:not(:disabled):hover{color:var(--text);background:#ffffff18}
 .chat-reaction.is-selected{background:#ffffff18;color:var(--text)}
 .chat-reaction.is-selected:not(:disabled):hover{background:#ffffff22}
 .chat-reaction span{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
 .chat-reaction:disabled{cursor:default;opacity:1}
 .chat-message-tools button:active,.chat-reaction:not(:disabled):active,.chat-reaction-picker button:active{opacity:.65}
 .chat-reply-preview{display:flex;flex-direction:column;gap:2px;width:100%;max-width:260px;min-width:0;margin:0 0 7px;padding:5px 8px;border:0;border-left:2px solid var(--message-meta);border-radius:3px;background:#ffffff08;color:var(--message-meta);text-align:left;font-size:12px;line-height:16px;overflow:hidden}
 button.chat-reply-preview:hover{color:var(--text);background:#ffffff12}
 .chat-reply-preview strong{font-size:11px;font-weight:500}
 .chat-reply-preview span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .has-album .chat-reply-preview{margin-top:8px}
 .chat-message.is-highlighted .chat-message-content{outline:1px solid var(--control-focus);outline-offset:3px}
 .chat-message-avatar{display:flex}.chat-message.has-avatar>a{display:flex;flex:0 0 32px}
 @media(prefers-reduced-motion:reduce){.chat-message-tools,.chat-message-tools>.chat-text-button,.chat-reaction-picker,.chat-reaction-picker button,.chat-reaction,.chat-profile-link,.chat-heading-name{transition:none}}
 .chat-date{display:flex;justify-content:center;margin:18px 0 16px;color:var(--muted);font-size:12px;line-height:18px;font-weight:500}
 .chat-date:first-child{margin-top:0}
 .chat-message-time{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:4px;text-align:right;font-size:10px;line-height:14px;color:var(--message-meta);font-variant-numeric:tabular-nums;white-space:nowrap}
 .chat-message-receipt{display:inline-flex;align-items:center;width:16px;height:14px;flex:none}
 .chat-message-receipt svg{display:block;width:16px;height:14px}
 .has-receipt .chat-message-time-space{width:53px}
 .chat-message p{font-size:13px;line-height:20px;color:var(--message-ink)}
 .chat-message-text{position:relative;margin:0}
 /* The inline spacer flows with the last line; time occupies its bottom-right slot. */
 .chat-message-time-space{display:inline-block;width:33px;height:14px;vertical-align:baseline}
 .chat-message-text .chat-message-time{position:absolute;right:0;bottom:1px;margin:0}
 .chat-message-content:has(.chat-reaction) .chat-message-text{position:static}
 .chat-message-content:has(.chat-reaction) .chat-message-time-space{display:none}
 .chat-message-content:has(.chat-reaction) .chat-message-time{position:absolute;right:12px;bottom:12px;margin:0}
 .chat-reactions{padding-right:40px}
 .has-receipt .chat-reactions{padding-right:60px}
 .chat-message .chat-proposal{--message-ink:var(--text);background:#232323;color:var(--text)}
 .chat-preserve{white-space:pre-wrap;overflow-wrap:anywhere}
 .chat-offer-context{display:grid;gap:7px;padding:12px 14px;margin:0 0 18px;border:1px solid var(--line);border-radius:6px;background:#1b1b1b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat-offer-context small{font-size:10px;color:var(--muted)}.chat-offer-context strong{font-size:11px;font-weight:500;color:var(--muted)}.chat-offer-context:hover{border-color:#484848}
 .chat-system{text-align:center;font-size:11px;line-height:1.6;color:var(--muted);margin:20px 0}
 .chat-text-button{font-size:11px;color:var(--muted);padding:3px 0}
 .chat-text-button:hover{color:var(--text)}
 .chat-compose{border-top:1px solid var(--line);padding:18px 28px;flex-shrink:0}
 .chat-compose:empty{display:none}
 .chat-guest-compose{display:flex;align-items:stretch;gap:12px}
 .chat-auth-notice{display:flex;align-items:center;gap:12px;flex:1;min-width:0;height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:#1b1b1b;color:var(--muted);font-size:12px;line-height:20px}
 .chat-auth-notice span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-auth-notice svg{width:18px;height:18px;color:#aaa}
 .chat-guest-compose .button{min-width:98px;height:42px;min-height:42px;flex-shrink:0}
 #chat-message-form{display:flex;align-items:flex-end;gap:12px}
 .chat-compose-reply{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:7px 10px;border-left:2px solid var(--accent);background:#1b1b1b;color:var(--muted);font-size:11px;line-height:16px}.chat-compose-reply>span{display:flex;flex-direction:column;min-width:0}.chat-compose-reply strong{color:var(--text);font-size:11px;font-weight:500}.chat-compose-reply>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-compose-reply .chat-compose-tool{flex:0 0 26px;width:26px;height:26px}
 .chat-compose-pending{display:flex;align-items:flex-end;gap:12px}
 .chat-compose-pending textarea{flex:1;min-width:0;height:42px;padding:10px 12px;resize:none;background:#1b1b1b;border:1px solid var(--line);border-radius:5px}
 .chat-compose-pending .button{height:42px}
 #chat-message{flex:1;min-width:0;height:42px;min-height:42px;max-height:160px;padding:10px 12px;resize:vertical;overflow:auto;font-size:13px;line-height:20px;background:#1b1b1b;border:1px solid var(--line);border-radius:5px}
 #chat-message:focus{outline:none;border-color:#909090}
 #chat-message-form .button{height:42px}
 #chat-message-form>.button[type="submit"]{min-width:98px;flex-shrink:0}
 .chat-message-field{anchor-name:--chat-message-field;position:relative;flex:1;min-width:0;display:flex}
 .chat-message-field #chat-message{width:100%;padding-right:46px}
 .chat-compose-tool{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;padding:0;color:var(--muted);background:transparent;border:0;border-radius:5px;transition:color 140ms ease,opacity 140ms ease}
 .chat-compose-tool svg,.chat-file-draft>svg,.chat-file-link>svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision;flex-shrink:0}
 .chat-compose-tool svg.chat-paperclip-icon{width:22px;height:22px;stroke-width:1.5}
 .chat-compose-tool svg.chat-smile-icon{width:24px;height:24px;stroke-width:1.5}
 .chat-compose-tool:not(.button):hover:not(:disabled){color:var(--text)}
 .chat-compose-tool:not(.button):active:not(:disabled){opacity:.65}
 .chat-attach.button{height:42px;min-height:42px;width:42px;border:1px solid var(--control-border);transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease}
 .chat-emoji{position:absolute;right:5px;bottom:4px}
 .chat-message-field:has(.chat-emoji-panel:popover-open) .chat-emoji{color:var(--text)}
 .chat-emoji-panel{position:fixed;inset:auto;margin:0;width:min(312px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);overflow:auto}
 .chat-emoji-panel::backdrop{background:transparent}
 @supports(position-anchor:--chat-message-field){.chat-emoji-panel{position-anchor:--chat-message-field;inset:auto;right:anchor(right);bottom:calc(anchor(top) + 8px);margin:0;position-try-fallbacks:flip-block,flip-inline}}
 .chat-file-drafts{display:flex;gap:8px;overflow:auto;max-height:104px;margin-bottom:12px}
 .chat-file-drafts:empty{display:none}
 .chat-file-draft{display:flex;align-items:center;gap:9px;flex:0 0 auto;max-width:250px;padding:7px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:12px}
 .chat-file-draft>span{min-width:0}.chat-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .chat-file-draft>img{width:40px;height:40px;object-fit:cover;border-radius:3px}
 .chat-file-draft small,.chat-file-link small{font-size:10px;color:var(--muted)}
 .chat-file-draft .chat-compose-tool{width:28px;height:28px}.chat-file-draft .chat-compose-tool svg{display:block;width:20px;height:20px;stroke-width:var(--close-stroke,1.5)}
 .chat-message-content.has-files{max-width:min(80%,344px,calc(100% - var(--message-side-space)))}
 .has-files .chat-message-text{margin-bottom:8px}
 .chat-message-files{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
 .is-mine .chat-message-files{align-items:flex-end}
 .chat-photo{display:block;width:calc(min(280px,40dvh) * var(--photo-ratio,1.5));max-width:min(100%,320px);padding:0;border:0;border-radius:10px;overflow:hidden;line-height:0;background:transparent}
 .chat-photo img{display:block;width:100%;height:auto}
 .chat-message-content.has-album{width:430px;max-width:min(80%,calc(100% - var(--message-side-space)));padding-top:0}
 .has-album .chat-message-files{align-items:stretch}
 .has-album .chat-message-meta{padding-top:8px}
 .has-album .chat-message-text{margin:8px 0 0}
 .chat-album{display:flex;flex-direction:column;gap:2px;overflow:hidden;border-radius:10px 10px 0 0;width:calc(100% + 24px);margin-inline:-12px}
 .chat-album-row{display:grid;gap:2px;aspect-ratio:var(--album-ratio);min-width:0}
 .chat-album .chat-photo{width:100%;height:100%;max-width:none;min-width:0;min-height:0;border-radius:0;position:relative}
 .chat-album .chat-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 .chat-album .chat-photo:hover::after{content:"";position:absolute;inset:0;background:#fff08;pointer-events:none}
 html[data-focus-mode="keyboard"] .chat-album .chat-photo:focus{outline:2px solid var(--text);outline-offset:-3px;z-index:1}
 .has-album .chat-file-card{align-self:flex-start}
 .has-album .chat-message-files>.chat-file-card:first-child{margin-top:8px}
 .is-mine .has-album .chat-file-card{align-self:flex-end}
 .chat-file-card{display:flex;align-items:center;gap:12px;width:fit-content;max-width:100%;padding:5px 10px;border:1px solid #ffffff24;border-radius:8px;color:var(--message-meta);background:transparent;font-size:13px;transition:color 140ms ease,border-color 140ms ease,background-color 140ms ease}
 .chat-file-card>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .chat-file-card svg{width:24px;height:24px}
 .chat-file-draft>svg.chat-file-type,.chat-file-card>svg.chat-file-type{width:30px;height:34px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
 .chat-file-type text{fill:currentColor;stroke:none;font:600 7px Arial,sans-serif;letter-spacing:.2px}
 .chat-file-type--document{color:#91b8e5}.chat-file-type--pdf{color:#d88383}.chat-file-type--sheet{color:#89bfc0}.chat-file-type--slides,.chat-file-type--archive{color:#cfb080}.chat-file-type--audio{color:#b6a1d4}.chat-file-type--video{color:#cb9db5}.chat-file-type--image{color:#91b8e5}
 .chat-file-card:not(:disabled):hover{color:var(--message-ink);border-color:#ffffff4d;background:#ffffff0a}
 :root[data-focus-mode=keyboard] .chat-file-card:focus-visible{color:var(--message-ink);border-color:#ffffff4d;background:#ffffff0a;outline:1px solid var(--message-meta);outline-offset:2px}
 .chat-file-card:not(:disabled):active{color:var(--message-ink);border-color:#ffffff61;background:#ffffff12}
 @media(prefers-reduced-motion:reduce){.chat-compose-tool,.chat-file-card{transition:none}}
 .chat-login{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;line-height:1.7;color:var(--muted)}
 .chat-login .button{flex-shrink:0}
 .chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;height:100%;text-align:center;padding:30px;color:var(--muted)}
 .chat-empty-symbol{font-size:34px;font-weight:300;color:#666;margin-bottom:20px}
 .chat-empty h2{font-size:18px;color:var(--text);margin-bottom:12px}
 .chat-empty p{font-size:12px;line-height:1.8;max-width:350px}
 .chat-empty .button{margin-top:20px}
 .chat-muted{font-size:12px;line-height:1.7;color:var(--muted)}
 .chat-loading{font-size:12px;color:var(--muted);padding:20px}
 .chat-history{display:block;margin:0 auto 20px;font-size:12px;color:var(--muted);padding:8px 14px}
 .chat-deals-heading h1{flex-shrink:0}
 .chat-deals-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;flex:1}
 .chat-deals-search{display:flex;align-items:center;gap:8px;min-width:120px;width:280px;height:40px;padding:0 10px;border:1px solid var(--line);border-radius:5px;background:transparent}
 .chat-deals-search:focus-within{border-color:#737373}
 .chat-deals-search input{flex:1;min-width:0;width:100%;background:none;border:0;outline:0;font-size:13px}
 .chat-deals-filter{position:relative;display:flex;align-items:center;flex-shrink:0}
 .chat-deals-filter>svg{position:absolute;left:11px;z-index:2;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;color:var(--muted)}
 .chat-deals-filter .vl-select>select:not([multiple]){--select-border:var(--line);height:40px;font-size:12px;background:transparent;border:1px solid var(--line);border-radius:5px;padding-left:36px;min-width:160px}
 /* Preserve row heights and insets while the frame fills the shared page area. */
 .chat-offers-scroll{overflow:auto;flex:1;min-height:0;margin:22px 0;padding:0 28px}
 .chat-deals-pagination{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:20px}
 .chat-deal-more{min-width:160px;min-height:40px;margin:0;font-size:12px}
 .chat-more-status{margin:0;max-width:100%;font-size:12px;line-height:18px;text-align:center;color:#f1a5a5;overflow-wrap:anywhere}
 .chat-more-status:empty{display:none}
 .chat-offer-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .chat-deal-row{min-width:0;border:1px solid var(--line);border-radius:7px;background:transparent}
 .chat-deal-row>summary{display:flex;align-items:center;gap:20px;min-height:82px;padding:16px 20px;cursor:pointer;list-style:none;border-radius:6px}
 .chat-deal-row>summary::-webkit-details-marker{display:none}
 .chat-deal-row>summary::after{display:none}
 .chat-deal-row[open]>summary>.vl-arrow{transform:rotate(180deg)}
 .chat-deal-row>summary:hover{background:#181818}
 .chat-deal-subject{min-width:0;flex:1;display:flex;flex-direction:column;gap:7px}
 .chat-deal-title{display:flex;align-items:center;gap:10px;min-width:0}
 .chat-deal-title>strong{min-width:0;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-deal-row[open] .chat-deal-title>strong{white-space:normal;overflow-wrap:anywhere}
 .chat-deal-kind{flex:none;padding:2px 7px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:10px;line-height:14px;font-weight:400;white-space:nowrap}
 .chat-deal-subject>span,.chat-deal-summary>span{color:var(--muted);font-size:11px;line-height:16px}
 .chat-deal-subject>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-deal-meta{display:flex;align-items:center;gap:6px;min-width:0}
 .chat-deal-number{flex:none;font-variant-numeric:tabular-nums}
 .chat-deal-peer-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .chat-deal-summary{display:flex;flex-direction:column;gap:7px;text-align:right;flex-shrink:0}
 .chat-deal-summary>strong{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
 .chat-deal-details{border-top:1px solid var(--line);padding:18px 20px}
 .chat-deal-peer{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
 .chat-deal-peer time{margin-left:auto;font-size:11px}
 .chat-deal-details>p{font-size:13px;line-height:1.7;margin:16px 0;overflow-wrap:anywhere}
 .chat-deal-details>.button{min-height:36px;font-size:12px;gap:8px}
 .chat-deal-subject>time{color:var(--muted);font-size:11px;line-height:16px;font-variant-numeric:tabular-nums}
 .chat-deal-dates{display:grid;gap:7px;margin:16px 0;font-size:11px;color:var(--muted);line-height:1.6}
 .chat-deal-dates>div{display:flex;justify-content:space-between;gap:16px}
 .chat-deal-dates time{font-variant-numeric:tabular-nums;white-space:nowrap}
 .chat-deal-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
 .chat-deal-actions .button{min-height:36px;font-family:inherit;font-size:12px;font-weight:400;font-style:normal;line-height:18px;letter-spacing:normal;padding:8px 12px}
 .chat-deal-view{font-size:13px;line-height:1.65}
 .chat-deal-name{min-width:0;overflow-wrap:anywhere}
 .chat-deal-view h3{font-size:15px;font-weight:500;line-height:1.4;margin:0}
 .chat-deal-terms{margin:12px 0 16px}
 .chat-deal-terms>p{margin:0;font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere;max-height:min(240px,30dvh);overflow-y:auto;--scrollbar-size:8px}
 .chat-deal-subheading{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
 .chat-deal-subheading>.chat-deal-name{flex:1 1 180px}
 .chat-deal-parties{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0;overflow-wrap:anywhere}
 .chat-deal-parties>div{display:grid;gap:3px}
 .chat-deal-parties span,.chat-deal-total>span{font-size:11px;color:var(--muted)}
 .chat-deal-parties strong{font-size:12px;font-weight:400;line-height:1.5}
 .chat-deal-total{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
 .chat-deal-total strong{font-size:17px;line-height:1.4;font-weight:500;white-space:nowrap}
 .chat-deal-summary-box{padding:14px;background:#181818;border:1px solid var(--line);border-radius:8px}
 .chat-deal-state{display:inline-flex;align-items:center;max-width:100%;padding:3px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px;font-weight:400;line-height:16px}
 /* Status color supplements the label; lifecycle and financial state are unchanged. */
 .chat-deal-status:is([data-deal-state=declined],[data-deal-state=cancelled]){color:#d88383}
 .chat-deal-status:is([data-deal-state=working],[data-deal-state=delivered],[data-deal-state=cancel_pending],[data-deal-state=accepted]){color:#7eafe0}
 .chat-deal-status[data-deal-state=completed]{color:#8fc997}
 .chat-deal-heading{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:0 32px 18px 0}
 .chat-modal .chat-deal-heading h2{font-size:18px;line-height:26px;margin:0}
 .chat-deal-view>.chat-deal-actions,.chat-form>.chat-proposal-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin-top:14px}
 .chat-deal-view>.chat-deal-actions>.button,.chat-form>.chat-proposal-actions>.button{min-width:0;min-height:38px;margin:0}
 .chat-deal-loading{display:flex;align-items:center;justify-content:center;min-height:200px}
 .chat-deal-changes{margin:14px 0;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:12px}
 .chat-deal-changes summary{cursor:pointer;color:var(--muted);line-height:18px}
 .chat-deal-changes>div{margin-top:12px;overflow-wrap:anywhere}
 .chat-deal-changes strong{font-size:12px;font-weight:400}
 .chat-deal-changes p{white-space:pre-wrap;margin:5px 0;font-size:12px;line-height:18px;color:var(--text)}
 .chat-deal-changes p span{display:block;font-size:11px;color:var(--muted)}
 .chat-deal-stale{margin-bottom:14px;border:1px solid var(--line);border-radius:8px;padding:12px}
 .chat-deal-stale p{margin:0;font-size:12px;line-height:18px}
 .chat-deal-stale .button{margin-top:10px;font-size:12px;min-height:32px}
 #chat-deal{flex:none;min-width:0}
 .chat-deal-picker{position:relative;border-bottom:1px solid var(--line);background:var(--panel)}
 .chat-deal-picker>summary{display:flex;align-items:center;gap:14px;padding:12px 28px;list-style:none;cursor:pointer}
 .chat-deal-picker>summary::-webkit-details-marker{display:none}
 .chat-deal-picker>summary::after{display:none}
 .chat-deal-picker>summary>.vl-arrow{flex:none;color:var(--muted)}
 .chat-deal-picker[open]>summary>.vl-arrow{transform:rotate(180deg)}
 .chat-deal-picker>summary>.button{flex:none;min-height:32px;padding:5px 10px;font-size:12px}
 .chat-latest-deal{display:grid;gap:4px;min-width:0;flex:1}
 .chat-latest-deal>strong,.chat-active-deal strong{display:block;font-size:12px;line-height:18px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-latest-deal .chat-deal-unread,.chat-active-deal .chat-deal-unread{margin:0 8px 0 0}
 .chat-latest-deal>span{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;line-height:16px;color:var(--muted)}
 .chat-active-deals-region{position:absolute;z-index:3;inset:100% 0 auto;padding:0 28px 12px;max-height:var(--chat-deals-height,240px);overflow:auto;--scrollbar-size:8px;background:var(--panel);border-bottom:1px solid var(--line)}
 .chat-active-deals-label{padding:6px 0 8px;color:var(--muted);font-size:11px}
 .chat-active-deal{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:9px 10px;text-align:left;border-radius:5px;color:var(--muted);transition:background-color 140ms ease,color 140ms ease,opacity 140ms ease}
 .chat-active-deal>span:first-child{display:grid;gap:3px;min-width:0}
 .chat-active-deal small{font-size:11px;line-height:16px}
 .chat-active-deal>.chat-deal-status{flex:none;font-size:11px;line-height:16px}
 .chat-active-deal:hover,:root[data-focus-mode=keyboard] .chat-active-deal:focus-visible{color:var(--text);background:#1b1b1b}
 .chat-active-deal:active{opacity:.65}
 .chat-active-deals-more{display:flex;min-height:32px;margin:8px auto 0;font-size:11px}
 @media(prefers-reduced-motion:reduce){.chat-active-deal{transition:none}}
 .chat-offer-list>.chat-empty{grid-column:1/-1}
 .chat-offer{border:1px solid #333;border-radius:7px;padding:20px;min-width:0}
 .chat-offer-top{display:flex;gap:9px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--muted);margin-bottom:15px}
 .chat-offer-top time{margin-left:auto;color:var(--dim)}
 .chat-offer-kind{color:var(--text);border:1px solid #444;border-radius:3px;padding:3px 6px}
 .chat-offer h2{font-size:16px;line-height:1.5;margin-bottom:12px;overflow-wrap:anywhere}
 .chat-offer>p{font-size:12px;line-height:1.7;color:var(--muted);max-height:180px;overflow:auto}
 .chat-offer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0;font-size:11px;color:var(--muted)}
 .chat-offer-bottom strong{color:var(--text);font-weight:500;font-size:14px}
 .chat-offer-actions{display:flex;gap:16px;align-items:center}
 .chat-proposal{border:1px solid #414141;border-radius:6px;padding:16px 18px;margin:8px 0;font-size:12px}
 .chat-proposal-top{display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:10px;margin-bottom:12px}
 .chat-proposal h3{font-size:14px;margin-bottom:8px;overflow-wrap:anywhere}
 .chat-proposal strong{display:block;font-size:16px;font-weight:500;margin-bottom:10px}
 .chat-proposal p{line-height:1.65;font-size:12px;margin-top:9px}
 .chat-current-deal{border-bottom:1px solid var(--line);padding:0 28px;max-height:290px;overflow:auto;flex-shrink:0}
 .chat-current-deal summary{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:14px 0;cursor:pointer;color:#ccc}
 .chat-current-deal .chat-proposal{margin:0 0 16px}
 .chat-modal{max-width:440px;max-height:calc(100dvh - 32px);padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:10px}
 .chat-modal::backdrop{background:transparent}
 .chat-modal h2{font-size:20px;line-height:28px;margin:0 34px 18px 0}
 .chat-modal-close{position:absolute;right:18px;top:20px;width:32px;height:32px;padding:0;border-radius:5px;transition:color 140ms ease,opacity 140ms ease}
 .chat-modal-close svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:var(--close-stroke,1.5);stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision}
 .chat-modal-close:active{opacity:.65}
 @media(prefers-reduced-motion:reduce){.chat-modal-close{transition:none}}
 .chat-modal .chat-form{display:flex;flex-direction:column;gap:14px}
 .chat-form-row{display:grid;grid-template-columns:1fr 2fr;gap:16px;min-width:0}
 .chat-form-row--equal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .chat-form .field{min-width:0;gap:8px}.chat-form select{min-width:0}
 .chat-form .field input,.chat-form .field select,.chat-form .field textarea{background:var(--raised);font-size:13px;padding:10px;min-height:40px}
 .chat-form .field textarea{min-height:76px;line-height:1.5}
 .chat-form .button{margin-top:0}
 .chat-report-actions{display:flex;gap:10px;align-items:stretch}
 .chat-report-attachments{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
 #chat-report-form .chat-modal-status{flex:1;min-width:120px;margin:0;font-size:11px;line-height:1.4;text-align:right;overflow-wrap:anywhere}
 #chat-report-form [data-validation-error]::placeholder{color:#f1a5a5;opacity:1}
 .chat-report-attach{display:inline-flex;align-items:center;gap:7px;padding:2px 0;background:transparent;border:0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;transition:color 140ms ease,opacity 140ms ease}
 .chat-report-attach:hover:not(:disabled){color:var(--text)}
 .chat-report-attach:active:not(:disabled){opacity:.65}
 .chat-report-attach svg{display:block;flex:0 0 24px;width:24px;height:24px;shape-rendering:geometricPrecision;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 #chat-report-files{display:grid;grid-auto-rows:56px;gap:7px;width:100%;max-height:182px;overflow:auto;scroll-snap-type:y mandatory;--scrollbar-size:8px}
 #chat-report-files:empty{display:none}
 #chat-report-files .chat-file-draft{height:56px;max-width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
 #chat-report-files .chat-file-draft>span{flex:1}
 .chat-report-evidence{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:12px;overflow-wrap:anywhere}
 .chat-report-evidence svg{width:30px;height:34px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}
 .chat-report-evidence small{display:block;color:var(--muted)}
 @media(prefers-reduced-motion:reduce){.chat-report-attach{transition:none}}
 .chat-report-actions>button[type=submit]{flex:1;min-width:0}
 .chat-report-help{width:42px;min-width:42px;height:42px;padding:10px}
 .chat-report-help svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;color:#d88383}
 .chat-report-help:not(:disabled):hover svg{color:#f1a5a5}
 .chat-report-guidance{box-sizing:border-box;inset:0;margin:auto;width:min(396px,calc(100vw - 48px));max-height:calc(100dvh - 48px);overflow:auto;padding:22px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #0006}
 .chat-report-guidance::backdrop{background:transparent}
 .chat-report-guidance h3{font-size:18px;line-height:26px;margin:0 0 14px}
 .chat-report-guidance p{font-size:13px;line-height:1.6;margin:0 0 12px}
 .chat-report-guidance .chat-report-guidance-note{color:var(--muted)}
 .chat-report-guidance>.button{width:100%;margin-top:4px}
 .chat-file-viewer{box-sizing:border-box;width:min(1040px,calc(100vw - 96px));height:min(760px,calc(100dvh - 96px));max-width:none;max-height:none;padding:18px 20px 16px;overflow:hidden;background:transparent;border-color:transparent;box-shadow:none}
 .chat-file-viewer[open]{display:flex;flex-direction:column}
 .chat-file-viewer::backdrop{background:rgb(24 24 24 / 86%)}
 .chat-file-viewer:not(.chat-photo-viewer){width:min(760px,calc(100vw - 96px));height:fit-content;max-height:min(760px,calc(100dvh - 96px))}
 .chat-file-viewer:not(.chat-photo-viewer)::backdrop{backdrop-filter:blur(5px)}
 .chat-file-viewer:not(.chat-photo-viewer) .chat-viewer-stage{flex:1 1 auto;min-height:96px}
 .chat-file-viewer h2{box-sizing:border-box;width:auto;max-width:none;margin:0 44px 14px;padding-right:40px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;line-height:32px;font-size:14px;font-weight:500}
 .chat-file-viewer .chat-modal-close{right:64px;top:18px}
 .chat-photo-viewer .chat-viewer-stage{position:relative;gap:0}
 .chat-file-viewer .chat-viewer-body{margin-inline:44px}
 .chat-photo-viewer .chat-viewer-prev,.chat-photo-viewer .chat-viewer-next{position:absolute;top:calc(50% - 20px);width:36px;height:40px;padding:6px;z-index:1}
 .chat-photo-viewer .chat-viewer-prev{left:0}
 .chat-photo-viewer .chat-viewer-next{right:0}
 .chat-photo-viewer .chat-viewer-prev svg,.chat-photo-viewer .chat-viewer-next svg{width:18px;height:18px}
 .chat-photo-viewer .chat-viewer-prev svg path,.chat-photo-viewer .chat-viewer-next svg path{stroke-width:var(--icon-stroke-small)}

 .chat-file-viewer .chat-viewer-tools{background:transparent;border-color:transparent}
 .chat-file-viewer .chat-viewer-footer{border:0;background:transparent;padding:0}
 .chat-file-viewer .chat-viewer-tool{color:#c5c5c5}
 .chat-file-viewer .chat-viewer-tool:hover:not(:disabled){background:rgb(255 255 255 / 7%);color:var(--text)}
 .chat-viewer-body{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden;position:relative;outline:0;border-radius:0;background:transparent}
 .chat-viewer-body.is-photo{cursor:default}
 .chat-viewer-body.is-photo.is-zoomed{cursor:grab}
 .chat-viewer-body.is-photo.is-dragging{cursor:grabbing}
 .chat-viewer-stage{display:flex;align-items:stretch;gap:10px;flex:1;min-height:0;min-width:0}
 .chat-viewer-prev,.chat-viewer-next{align-self:center;flex:0 0 36px;width:36px;height:42px;padding:8px}
 .chat-viewer-prev[aria-disabled=true],.chat-viewer-next[aria-disabled=true]{opacity:.3;cursor:default}
 .chat-viewer-footer{display:flex;align-items:center;justify-content:center;gap:14px;flex-shrink:0;min-height:52px;margin-top:12px;position:relative}
 .chat-viewer-thumbs{display:flex;flex-shrink:0;justify-content:center;gap:6px}
 .chat-viewer-thumbs button{width:48px;height:48px;padding:2px;border:1px solid transparent;border-radius:6px;background:transparent;overflow:hidden}
 .chat-viewer-thumbs img{display:block;width:100%;height:100%;object-fit:cover;border-radius:3px}
 .chat-viewer-thumbs button:hover{border-color:var(--control-border-hover)}
 .chat-viewer-thumbs button[aria-pressed=true]{border-color:var(--text)}
 html[data-focus-mode="keyboard"] .chat-viewer-thumbs button:focus{outline:2px solid var(--text);outline-offset:2px}
 .chat-viewer-body>img{display:block;flex:0 0 auto;max-width:none;max-height:none;width:auto;height:auto;object-fit:contain;transform-origin:center;will-change:transform;user-select:none}
 .chat-docx{box-sizing:border-box;align-self:stretch;width:100%;max-height:min(540px,58dvh);min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 14px 12px 0;color:var(--text);font-size:14px;line-height:1.7;overflow-wrap:anywhere;tab-size:4}
 .chat-docx p{margin:0 0 12px;white-space:pre-wrap;color:inherit;font-size:inherit;line-height:inherit}
 .chat-file-viewer .chat-docx :is(h1,h2,h3,h4,h5,h6){display:block;box-sizing:border-box;width:auto;max-width:none;margin:22px 0 12px;padding:0;white-space:normal;overflow:visible;text-overflow:clip;font-weight:600;line-height:1.4;font-size:17px}
 .chat-file-viewer .chat-docx h1{font-size:22px}
 .chat-file-viewer .chat-docx h2{font-size:19px}
 .chat-file-viewer .chat-docx>:first-child{margin-top:0}
 .chat-docx :is(ul,ol){padding-left:24px;margin:12px 0}
 .chat-docx li{margin:4px 0}
 .chat-docx table{border-collapse:collapse;width:100%;margin:16px 0;font-size:13px}
 .chat-docx :is(th,td){border:1px solid var(--line);padding:8px 10px;vertical-align:top;min-width:75px}
 .chat-docx :is(th,td)>:last-child{margin-bottom:0}
 .chat-docx th{font-weight:600;text-align:left}
 .chat-docx img{display:block;max-width:100%;height:auto;margin:12px auto}
 .chat-docx blockquote{margin:12px 0;padding-left:16px;border-left:2px solid var(--control-border);color:var(--muted)}
 html[data-focus-mode="keyboard"] .chat-docx:focus-visible{outline:1px solid var(--control-focus);outline-offset:-1px}
 .chat-viewer-body>audio{width:min(100%,540px)}
 .chat-viewer-body>video{display:block;max-width:100%;max-height:min(520px,55dvh);object-fit:contain}
 .chat-pdf{display:flex;flex-direction:column;min-height:0;width:100%;align-self:stretch}
 .chat-pdf-page{display:grid;justify-items:center;align-items:start;overflow:auto;overscroll-behavior:contain;min-height:0;height:min(520px,55dvh)}
 .chat-pdf-page>canvas{display:block;width:100%;height:auto}
 .chat-pdf-nav{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:6px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
 .chat-pdf-nav span{min-width:52px;text-align:center}
 .chat-pdf-nav button:disabled{opacity:.35}
 html[data-focus-mode="keyboard"] .chat-pdf-page:focus-visible{outline:1px solid var(--control-focus);outline-offset:-1px}
 .chat-viewer-body>pre{box-sizing:border-box;align-self:stretch;width:100%;min-height:0;margin:0;padding:8px 12px 8px 0;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;font:14px/1.65 ui-monospace,Consolas,monospace;color:var(--text)}
 html[data-focus-mode="keyboard"] .chat-viewer-body>pre:focus-visible{outline:1px solid var(--control-focus);outline-offset:-1px}
 .chat-viewer-unavailable{font-size:13px;color:var(--muted);text-align:center}
 .chat-viewer-tools{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#1b1b1b}
 .chat-viewer-tool{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:7px;border:0;border-radius:5px;background:transparent;color:var(--muted);font:inherit;cursor:pointer;transition:color 140ms ease,background 140ms ease,opacity 140ms ease}
 .chat-viewer-tool:hover:not(:disabled){color:var(--text);background:#2a2a2a}
 .chat-viewer-tool:active:not(:disabled){opacity:.65}
 .chat-viewer-tool:disabled{opacity:.35;cursor:default}
 .chat-viewer-tool svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision}
 .chat-viewer-tool svg path{vector-effect:non-scaling-stroke;stroke-width:var(--icon-stroke-control);fill:none}
 .chat-viewer-tool.chat-viewer-scale{width:44px;padding:4px;font-size:11px;line-height:1;color:var(--text);font-variant-numeric:tabular-nums}
 .chat-viewer-download{color:var(--text);text-decoration:none}
 .chat-viewer-separator{width:1px;height:18px;background:var(--line);margin:0 3px}
 html[data-focus-mode="keyboard"] .chat-viewer-tool:focus-visible{outline:2px solid var(--text);outline-offset:2px}
 @media(prefers-reduced-motion:reduce){.chat-viewer-tool{transition:none}}
 .chat-modal-status{font-size:12px;line-height:1.7;margin:16px 0 0}
 .chat-modal-status:empty{display:none}
 .chat-report{border-bottom:1px solid var(--line);padding:14px 0}
 .chat-report blockquote{margin:12px 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
 .chat-layout button:disabled,.chat-modal button:disabled{opacity:.5;cursor:wait}
 .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}

/* Zoomed desktop keeps chat available, with navigation above the conversation. */
@media(max-width:760px) and (hover:hover) and (pointer:fine){
 .chat-route main{flex-basis:auto}
 .chat-layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;max-height:none}
 .chat-sidebar{grid-template-rows:auto 184px;border-right:0;border-bottom:1px solid var(--line);padding:12px}
 .chat-sidebar-footer{display:none}.chat-thread-region{padding:12px 0}
 .chat-navigation{flex-direction:row;flex-wrap:wrap;margin:0;padding:0;gap:4px}
 .chat-navigation a{padding:10px}
 .chat-workspace{min-height:440px}
 .chat-room-heading{flex-wrap:wrap;gap:12px;padding:16px}
 .chat-layout:has(.chat-deals-heading){max-height:none}
 .chat-offers-scroll{margin:0}
 .chat-messages,.chat-offers-scroll{padding:18px 16px;max-height:60vh}
 .chat-compose{padding:16px;flex-wrap:wrap}
 .chat-deals-heading .chat-deals-tools{flex-basis:100%;justify-content:stretch}
 .chat-deals-search{flex:1}
 .chat-deal-row>summary{gap:12px;padding:14px}
 .chat-deal-summary{max-width:45%}
 .chat-deal-summary>span{white-space:normal}
 .chat-guest-compose,#chat-message-form{flex-wrap:wrap}
 .chat-auth-notice{flex-basis:100%}
 .chat-offer-list,.chat-form-row{grid-template-columns:minmax(0,1fr)}
 .chat-current-deal{padding:0 16px}.chat-status{padding:10px 16px}
}
