/* ChatGPT web reference: desktop rail 260px, work column 768px, body 16/24,
   44px controls; mobile rail 310px, 12px edges, composer type 16/24. */
body.chat-shell-page{--chat-bg:#fff;--chat-side:#f9f9f9;--chat-ink:#0d0d0d;--chat-muted:#777;--chat-line:#e5e5e5;--chat-hover:#eee;--chat-bubble:#f4f4f4;--chat-field:#fff;--chat-shadow-soft:0 2px 8px #00000006,0 6px 24px #00000004;--chat-shadow-float:0 4px 12px #00000008,0 16px 48px #00000010;--chat-shadow-dialog:0 8px 24px #0000000a,0 24px 80px #00000018;margin:0;overflow:hidden;background:var(--chat-bg);color:var(--chat-ink)}
body.chat-shell-page[data-chat-theme=dark]{--chat-bg:#212121;--chat-side:#171717;--chat-ink:#ececec;--chat-muted:#aaa;--chat-line:#444;--chat-hover:#303030;--chat-bubble:#303030;--chat-field:#303030;--chat-shadow-soft:0 2px 12px #0002;--chat-shadow-float:0 8px 36px #0005;--chat-shadow-dialog:0 20px 80px #0006;color-scheme:dark}
.chat-shell{height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);font:400 16px/24px var(--leai-font,system-ui);color:var(--chat-ink);background:var(--chat-bg)}.chat-shell.chat-with-sidebar{grid-template-columns:260px minmax(0,1fr)}.chat-shell *,.gpt-backdrop *{box-sizing:border-box}.chat-shell button,.chat-shell textarea,.chat-shell input,.chat-shell select{font:inherit;color:inherit}.chat-shell button{cursor:pointer}.chat-shell button:disabled{cursor:default;opacity:.4}.chat-shell a{color:inherit;text-decoration:none}.chat-shell :focus-visible,.gpt-backdrop :focus-visible{outline:2px solid #999;outline-offset:2px}.gpt-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:10px;background:transparent;padding:10px;color:inherit;cursor:pointer}.gpt-icon svg{width:21px;height:21px}.gpt-icon:hover{background:var(--chat-hover)}
.chat-sidebar{position:relative;display:flex;flex-direction:column;min-height:0;background:var(--chat-side);padding:4px 8px 8px}.chat-sidebar>header{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 4px 0 12px;flex:none}.chat-brand{font-size:18px;font-weight:600}.chat-sidebar>nav{display:grid;gap:2px;padding:8px 0 16px;flex:none}.chat-sidebar>nav>button{border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:38px;border-radius:8px;text-align:left;font-size:14px;line-height:20px}.chat-sidebar>nav>button:hover{background:var(--chat-hover)}.chat-sidebar>nav svg{width:19px;height:19px;flex:none}.chat-history{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;padding:12px 0}.chat-history>p{font-size:12px;color:var(--chat-muted);margin:0 10px 8px}.chat-history-row{position:relative;display:flex;align-items:center;border-radius:8px;min-width:0}.chat-history-row:hover,.chat-history-row.selected{background:var(--chat-hover)}.chat-history-title{min-width:0;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:0;background:transparent;text-align:left;font-size:14px!important;padding:10px 12px;line-height:20px!important}.chat-history-more{width:32px;height:36px;padding:6px;opacity:0}.chat-history-row:hover .chat-history-more,.chat-history-row.selected .chat-history-more,.chat-history-more:focus-visible{opacity:1}.chat-history-actions{position:absolute;z-index:15;top:35px;right:4px;width:170px;padding:6px;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-bg);box-shadow:var(--chat-shadow-float)}.chat-history-actions button,.gpt-profile-menu button{display:block;width:100%;border:0;border-radius:8px;background:transparent;font:inherit;font-size:14px;padding:9px 10px;text-align:left;color:var(--chat-ink)}.chat-history-actions button:hover,.gpt-profile-menu button:hover{background:var(--chat-hover)}.chat-sidebar>footer{flex:none;padding-top:6px}.chat-profile{display:flex;gap:10px;align-items:center;width:100%;min-height:44px;padding:8px 10px;background:transparent;border:0;border-radius:8px;text-align:left;font-size:14px!important;overflow:hidden}.chat-profile svg{width:22px;height:22px;flex:none}.chat-profile span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-profile:hover{background:var(--chat-hover)}.chat-search{margin:0 4px 8px;padding:9px 10px;border:1px solid var(--chat-line);border-radius:10px;width:calc(100% - 8px);min-height:40px;background:var(--chat-bg);font-size:14px!important}.chat-sidebar-scrim{display:none}.gpt-profile-menu{position:absolute;bottom:60px;left:8px;width:240px;max-width:calc(100% - 16px);z-index:30;padding:6px;border:1px solid var(--chat-line);border-radius:14px;background:var(--chat-bg);box-shadow:var(--chat-shadow-float)}
.chat-main{position:relative;display:flex;flex-direction:column;height:100dvh;min-width:0;min-height:0;overflow:hidden}.chat-topbar{height:56px;display:flex;align-items:center;justify-content:space-between;flex:none;padding:6px 16px 6px 12px}.chat-topbar>div{display:flex;align-items:center;gap:8px}.chat-topbar>div>span{font-size:20px;line-height:28px;font-weight:500}.chat-top-profile .gpt-profile-menu{top:52px;bottom:auto;right:12px;left:auto}.chat-conversation{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:max(8px,env(safe-area-inset-bottom))}.chat-conversation.is-empty{justify-content:center;padding-bottom:70px}.chat-transcript{width:min(880px,100%);margin:0 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:12px 16px}.is-working .chat-transcript{flex:1}.is-empty .chat-transcript{flex:none}.chat-welcome{text-align:center}.chat-welcome h1{font:500 20px/25px var(--leai-font,system-ui);margin:0 0 16px;letter-spacing:0}.chat-message{display:flex;flex-direction:column;align-items:flex-end;margin:8px 0 10px}.chat-user-note{max-width:80%;padding:10px 18px;border-radius:22px;background:var(--chat-bubble);overflow-wrap:anywhere}.chat-user-note p{white-space:pre-wrap;margin:0;font:400 16px/26px var(--leai-font,system-ui)}.chat-copy{width:32px;height:32px;padding:7px;color:var(--chat-muted);opacity:0}.chat-message:hover .chat-copy,.chat-copy:focus-visible{opacity:1}.chat-copy svg{width:16px;height:16px}.chat-composer-wrap{position:relative;flex:none;width:min(800px,100%);margin:0 auto;padding:4px 16px 0;background:var(--chat-bg)}.chat-composer{display:flex;align-items:flex-end;gap:2px;min-height:52px;padding:4px 6px;width:100%;background:var(--chat-field);border:1px solid var(--chat-line);border-radius:28px;box-shadow:var(--chat-shadow-soft)}.chat-composer textarea{flex:1;min-width:0;min-height:40px;max-height:160px;width:100%;height:40px;resize:none;border:0;outline:none;background:transparent;padding:8px 4px;font:400 17px/24px var(--leai-font,system-ui)}.chat-composer textarea::placeholder{color:var(--chat-muted)}.chat-composer .gpt-icon{width:40px;height:40px;border-radius:50%;padding:9px}.chat-send{width:34px;height:34px;display:grid;place-items:center;flex:none;padding:7px;margin:3px 2px;background:var(--chat-ink);color:var(--chat-bg)!important;border:0;border-radius:50%}.chat-send svg{width:20px;height:20px}.chat-send:disabled{opacity:.3}.chat-disclaimer{font-size:11px;line-height:16px;text-align:center;color:var(--chat-muted);margin:7px 0 0}.chat-notice{font-size:13px;line-height:20px;color:var(--chat-muted);margin:12px 0}.chat-scene-stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--chat-bg,#fff);display:flex;flex-direction:column;border-left:1px solid var(--chat-line,#ddd)}.chat-scene-stage[hidden]{display:none!important}.chat-scene-stage iframe{width:100%;height:100%;min-height:0;flex:1;border:0;display:block}
.gpt-tools{position:absolute;bottom:calc(100% + 8px);left:16px;z-index:60;width:320px;max-width:calc(100% - 32px);max-height:min(560px,65dvh);overflow:auto;padding:6px;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:16px;box-shadow:var(--chat-shadow-float);scrollbar-width:thin}.gpt-tools>header{display:flex;align-items:center;justify-content:space-between;padding-left:10px;color:var(--chat-muted);font-size:13px}.gpt-tools>header>.gpt-icon{width:32px;height:32px;padding:4px;font-size:22px}.gpt-tool-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;min-height:44px;border:0;border-radius:8px;background:transparent;text-align:left;font-size:14px!important}.gpt-tool-row>span:last-child{color:var(--chat-muted)}.gpt-tool-row:hover{background:var(--chat-hover)}.gpt-tools-divider{height:1px;background:var(--chat-line);margin:4px 8px}.chat-artifact{margin:20px 0;padding:14px 16px;border:1px solid var(--chat-line);border-radius:14px;background:var(--chat-bg)}.chat-artifact>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}.chat-artifact>header>span{font-weight:500}.chat-artifact>header select{width:50%;max-width:300px;min-width:0;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:8px;padding:6px;font-size:12px}.artifact-editor>nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding-bottom:12px}.artifact-editor button{font:inherit;font-size:13px;min-height:36px;padding:7px 10px;border:0;border-radius:12px;background:transparent;color:var(--chat-ink);cursor:pointer}.artifact-editor button:hover,.artifact-editor [aria-pressed=true]{background:var(--chat-hover)}.artifact-download{margin-left:auto}.artifact-preview{display:block;width:100%;height:360px;border:1px solid var(--chat-line);border-radius:10px;background:white}.artifact-text{font:400 16px/26px var(--leai-font,system-ui);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:14px;border:1px solid var(--chat-line);border-radius:10px;background:var(--chat-side);max-height:460px;overflow:auto}.artifact-source,.artifact-instruction textarea{box-sizing:border-box;width:100%;min-height:280px;resize:vertical;padding:12px;border:1px solid var(--chat-line);border-radius:10px;background:var(--chat-side);color:var(--chat-ink);font:14px/22px ui-monospace,Consolas,monospace}.artifact-instruction p{font-size:13px;color:var(--chat-muted)}.artifact-instruction textarea{font:400 16px/24px var(--leai-font,system-ui);min-height:140px}.artifact-editor>footer{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px;font-size:11px;color:var(--chat-muted)}.artifact-editor>footer>span:first-child{flex:1}.artifact-editor>footer>[role=status]{width:100%}
.gpt-backdrop{position:fixed;inset:0;z-index:1750;display:flex;align-items:center;justify-content:center;background:#0005;padding:16px;color:var(--chat-ink);font:400 16px/24px var(--leai-font,system-ui)}.gpt-settings{width:min(480px,100%);max-height:85dvh;overflow:auto;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:24px;padding:20px 24px;box-shadow:var(--chat-shadow-dialog)}.gpt-settings header,.chat-knowledge header{display:flex;align-items:center;justify-content:space-between;gap:12px}.gpt-settings h2,.chat-knowledge h2{font-size:18px;font-weight:500;margin:0 0 12px}.gpt-settings header h2,.chat-knowledge header h2{margin:0}.gpt-settings>label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.gpt-settings select,.gpt-settings input{font:inherit;background:var(--chat-bg);color:var(--chat-ink);border:1px solid var(--chat-line);border-radius:10px;min-height:42px;padding:8px 12px;max-width:100%}.gpt-settings input{width:100%;margin:10px 0}.gpt-settings p{font-size:13px;color:var(--chat-muted)}.gpt-settings footer{display:flex;justify-content:flex-end;gap:8px}.gpt-settings footer button{font:inherit;background:var(--chat-bg);color:var(--chat-ink);border:1px solid var(--chat-line);border-radius:20px;padding:8px 16px;min-height:40px;cursor:pointer}.chat-knowledge{position:fixed;right:0;top:0;bottom:0;width:min(470px,100%);display:flex;flex-direction:column;min-height:0;padding:12px 16px;background:var(--chat-bg);border-left:1px solid var(--chat-line)}.chat-knowledge>header{flex:none}.chat-knowledge>nav{display:flex;gap:6px;overflow:auto;flex:none;padding:12px 0}.chat-knowledge nav button{font:inherit;font-size:12px;background:transparent;border:1px solid var(--chat-line);border-radius:20px;padding:8px 12px;white-space:nowrap;color:var(--chat-ink);cursor:pointer}.chat-knowledge nav [aria-pressed=true]{background:var(--chat-hover)}.chat-knowledge>.reading-content{flex:1;min-height:0}.reading-open-chat{flex:none;align-self:flex-start;margin:8px 18px 12px;border:1px solid #ddd;border-radius:22px;padding:10px 14px;font:400 14px/20px var(--leai-font,system-ui);background:white;cursor:pointer;color:#171717}
/* Embedded gallery has no duplicate page chrome. Its only mode switch is the parent sidebar. */
html[data-embed=chat] ._brand_45enb_2,html[data-embed=chat] .space-global-mode,html[data-embed=chat] .space-unified-dock,html[data-embed=chat] .chat-return{display:none!important}html[data-embed=chat] .scene-reading{top:12px;bottom:12px;width:min(560px,calc(100% - 24px))}
@media(max-width:767px){.chat-shell.chat-with-sidebar{grid-template-columns:minmax(0,1fr)}.chat-sidebar{position:fixed;left:0;top:0;bottom:0;width:310px;max-width:82vw;z-index:1670;box-shadow:10px 0 35px #0002}.chat-sidebar-scrim{display:block;position:fixed;inset:0;z-index:1665;border:0;background:#0005}.chat-sidebar>nav>button{min-height:44px;font-size:15px}.chat-history-more{opacity:1}.chat-history-title{font-size:15px!important}.chat-topbar{height:56px;padding:6px 10px}.chat-topbar>div>span{font-size:18px}.chat-welcome h1{font-size:24px;line-height:28px;font-weight:400;margin-bottom:24px}.chat-conversation.is-empty{padding-bottom:90px}.chat-transcript{padding:16px 12px}.chat-composer-wrap{padding:4px 12px 0}.chat-composer{min-height:48px;padding:2px 4px;gap:0}.chat-composer textarea{font-size:16px;padding:8px 2px}.chat-composer .gpt-icon{width:36px;height:40px;padding:8px}.chat-send{width:32px;height:32px;margin:4px 2px;padding:6px}.chat-disclaimer{font-size:10px;line-height:14px;margin-top:6px}.chat-user-note{max-width:90%;padding:10px 14px}.chat-copy{opacity:1}.gpt-tools{left:12px;max-width:calc(100% - 24px);max-height:min(560px,65dvh)}.chat-artifact{padding:12px;margin:14px 0}.artifact-preview{height:300px}.artifact-source{font-size:16px;line-height:24px}.artifact-editor>nav button{font-size:12px;padding:7px 8px}.artifact-instruction textarea{font-size:16px}.gpt-settings{padding:14px 16px}.chat-knowledge{width:100%}}
@media(prefers-reduced-motion:reduce){.chat-shell *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
body.chat-shell-page[data-chat-theme=dark] .chat-knowledge .reading-page,body.chat-shell-page[data-chat-theme=dark] .chat-knowledge .reading-content{background:var(--chat-bg);color:var(--chat-ink)}body.chat-shell-page[data-chat-theme=dark] .chat-knowledge .reading-page :is(p,h3,h4,li){color:var(--chat-ink)}
/* Conversation polish: browser viewport follows mobile keyboard; controls stay contextual. */
.chat-shell{height:var(--chat-vh,100dvh)}.chat-main{height:100%}.chat-history-group{font-size:12px;line-height:18px;color:var(--chat-muted);margin:14px 10px 4px}.chat-history-actions{position:fixed;z-index:1740}.chat-message-actions{display:flex;gap:2px;align-items:center;min-height:32px;color:var(--chat-muted)}.chat-message-actions small{font-size:10px;margin-right:6px}.chat-edit{width:32px;height:32px;padding:7px;color:var(--chat-muted);opacity:0}.chat-edit svg{width:16px;height:16px}.chat-message:hover .chat-edit,.chat-edit:focus-visible{opacity:1}.chat-message-editor{width:min(100%,640px);padding:12px;background:var(--chat-bubble);border-radius:18px}.chat-message-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:100px;max-height:300px;resize:vertical;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--chat-ink);font:400 16px/26px var(--leai-font,system-ui)}.chat-message-editor>div{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.chat-message-editor button{font:inherit;font-size:13px;min-height:36px;padding:7px 14px;border:1px solid var(--chat-line);border-radius:20px;background:var(--chat-bg);color:var(--chat-ink);cursor:pointer}.chat-message-editor button[type=submit]{background:var(--chat-ink);color:var(--chat-bg);border-color:var(--chat-ink)}.chat-scroll-bottom{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 10px);width:36px;height:36px;padding:8px;border:1px solid var(--chat-line);border-radius:50%;background:var(--chat-bg);box-shadow:0 2px 8px #0001;z-index:20}.chat-scroll-bottom svg{width:18px;height:18px}.chat-archive{margin:18px 0;border-top:1px solid var(--chat-line);padding-top:14px;font-size:14px}.chat-archive summary{cursor:pointer}.chat-archive>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.chat-archive span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-archive button{flex:none;font:inherit;font-size:12px;padding:8px 10px;border:1px solid var(--chat-line);border-radius:16px;background:var(--chat-bg);color:var(--chat-ink);cursor:pointer}@media(max-width:767px){.chat-sidebar{bottom:auto;height:var(--chat-vh,100dvh)}.chat-edit{opacity:1}.chat-history-actions{font-size:14px}.gpt-settings,.chat-knowledge{max-height:var(--chat-vh,100dvh)}}
.chat-composer textarea:focus-visible{outline:none}.chat-composer:focus-within{border-color:#b8b8b8}body.chat-shell-page[data-chat-theme=dark] .chat-composer:focus-within{border-color:#666}
/* Attachments and search context stay within the existing message/history surfaces. */
.chat-history-title>span,.chat-search-excerpt{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-search-excerpt{font-size:11px;line-height:17px;color:var(--chat-muted);font-weight:400;margin-top:3px}.chat-attachments{display:flex;flex-direction:column;gap:6px;min-width:0}.chat-attachments button{display:flex;gap:10px;align-items:center;text-align:left;padding:10px 12px;min-height:48px;max-width:100%;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-bg);color:var(--chat-ink);font:inherit;font-size:14px;cursor:pointer}.chat-attachments button>svg{width:22px;height:22px;flex:none}.chat-attachments button>span{min-width:0;overflow-wrap:anywhere}.chat-user-note:has(.chat-attachments){padding:6px;background:transparent}.chat-user-note:has(.chat-attachments)>p{padding:8px 12px}.chat-artifact>header>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-artifact>header>.gpt-icon{width:32px;height:32px;padding:7px}.chat-artifact>header .gpt-icon svg{width:17px;height:17px}.chat-drop-hint{position:absolute;inset:64px 12px 12px;z-index:1800;display:grid;place-items:center;pointer-events:auto;border:2px dashed #aaa;border-radius:20px;background:var(--chat-bg);opacity:.96;padding:24px;text-align:center;color:var(--chat-muted);font-size:18px;line-height:28px}.chat-drop-hint>span{pointer-events:none}@media(max-width:767px){.chat-attachments button{font-size:14px}.chat-artifact>header{flex-wrap:wrap}.chat-artifact>header>span{flex:1}.chat-artifact>header select{order:3;width:100%;max-width:none;font-size:16px}.chat-drop-hint{font-size:16px;line-height:24px}}
/* File workspace: side canvas on desktop; focused window on narrower screens. */
.chat-main.has-file-window>.chat-conversation{margin-right:50%}.chat-file-window{position:absolute;z-index:50;right:0;top:56px;bottom:0;width:50%;margin:0;padding:14px 16px;display:flex;flex-direction:column;min-height:0;border:0;border-left:1px solid var(--chat-line);border-radius:0;overflow:hidden;background:var(--chat-bg)}.chat-file-window>header{flex:none}.chat-file-window>.artifact-editor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.chat-file-window .artifact-editor>nav,.chat-file-window .artifact-editor>footer{flex:none}.chat-file-window .artifact-preview{flex:1;min-height:180px;height:auto}.chat-file-window .artifact-text{flex:1;min-height:0;max-height:none;overflow:auto}.chat-file-window .artifact-source{flex:1;min-height:150px;resize:none}.chat-file-window .artifact-instruction{overflow:auto;min-height:0}.artifact-versions{overflow:auto;min-height:0;flex:1;font-size:13px}.artifact-version-list{display:flex;gap:4px;flex-wrap:wrap;padding:6px 0 12px}.artifact-version-list button{font-size:12px;border:1px solid var(--chat-line);text-align:left}.artifact-version-diff h3{font-size:14px;font-weight:500}.artifact-version-diff>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.artifact-version-diff h4{font-size:12px;font-weight:500;color:var(--chat-muted);margin:6px 0}.artifact-version-diff pre{font:12px/20px ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;border:1px solid var(--chat-line);border-radius:10px;max-height:300px;overflow:auto;background:var(--chat-side)}.artifact-version-diff>button{margin:8px 0;border:1px solid var(--chat-line)}
@media(max-width:1099px){.chat-file-window{left:0;right:0;width:100%;border-left:0;z-index:80;max-height:calc(var(--chat-visible-height,100dvh) - 56px)}.chat-file-window .artifact-preview{min-height:120px}.artifact-version-diff>div{grid-template-columns:1fr}}
/* The expanded mobile composer floats over an unchanged message layout. */
.chat-compose-collapse{display:none}@media(max-width:767px){.chat-main.is-composing>.chat-conversation::after{content:'';display:block;flex:none;height:var(--composer-reserve,76px)}.chat-main.is-composing .chat-composer-wrap{position:fixed;left:0;right:0;width:100%;top:var(--chat-composer-top,0px);bottom:auto;z-index:90;padding:12px;background:transparent}.chat-main.is-composing .chat-composer{background:var(--chat-field);box-shadow:var(--chat-shadow-float);border-radius:26px;padding-top:26px}.chat-main.is-composing .chat-composer textarea{min-height:96px;max-height:min(200px,35dvh);font-size:17px;line-height:26px}.chat-main.is-composing .chat-compose-collapse{display:grid;position:absolute;top:14px;right:20px;width:28px;height:28px;padding:6px;border-radius:50%;z-index:2}.chat-compose-collapse svg{width:16px;height:16px}.chat-main.is-composing .chat-disclaimer{display:none}.chat-main.is-composing .chat-scroll-bottom{bottom:calc(100% + 6px)}.chat-file-window{padding:12px}.chat-main:not(.is-composing) .chat-composer-wrap{padding-bottom:0}}
.chat-conversation.is-working .chat-transcript:has(.chat-welcome){display:flex;flex-direction:column;justify-content:center}.chat-file-window>.chat-notice{flex:none;max-height:80px;overflow:auto;font-size:12px}
/* Expanded mobile composer: text spans the first row; controls occupy their own row. */
@media(max-width:767px){
 .chat-main.is-composing .chat-composer{display:grid;grid-template-columns:36px 1fr 36px 36px;gap:4px;padding:12px; padding-top:18px}
 .chat-main.is-composing .chat-composer textarea{grid-column:1/-1;grid-row:1;width:100%;box-sizing:border-box;margin:0;padding:0 28px 0 2px;align-self:start;min-height:64px;max-height:min(200px,30dvh)}
 .chat-main.is-composing .chat-composer>button{grid-row:2;align-self:end}
 .chat-main.is-composing .chat-composer>button:first-child{grid-column:1}
 .chat-main.is-composing .chat-composer>button:nth-last-child(2){grid-column:3}
 .chat-main.is-composing .chat-composer>button:last-child{grid-column:4}
}
.chat-composer .is-dictating{color:#c83232;background:#ffeded}
.chat-studio-window{display:flex;flex-direction:column;overflow:hidden}
.chat-studio-window>header>a{font-size:13px;color:var(--chat-muted);margin-left:auto;white-space:nowrap}
.chat-studio-window>.chat-notice{flex:none;margin:8px 16px;font-size:13px}
.studio-live{display:block;flex:1;width:100%;min-height:0;border:0;background:white}
.chat-utilities{position:relative;display:flex}
.chat-session-menu{position:absolute;right:0;top:44px;z-index:80;width:220px;padding:6px;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:14px;box-shadow:var(--chat-shadow-float)}
.chat-session-menu button{display:block;width:100%;padding:10px;text-align:left;font:400 14px/20px var(--leai-font,system-ui);border:0;border-radius:8px;background:transparent;color:var(--chat-ink)}
.chat-session-menu button:hover{background:var(--chat-hover)}
.chat-utility-dialog{width:min(680px,100%)}
.chat-utility-dialog textarea{box-sizing:border-box;width:100%;height:min(52dvh,500px);resize:vertical;display:block;margin:16px 0;padding:12px;font:400 17px/26px var(--leai-font,system-ui);color:var(--chat-ink);background:var(--chat-field);border:1px solid var(--chat-line);border-radius:12px}
.chat-find-results{display:grid;gap:6px;max-height:45dvh;overflow:auto;margin-bottom:10px}
.chat-find-results button{font:400 14px/22px var(--leai-font,system-ui);white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;padding:12px;border:1px solid var(--chat-line);border-radius:10px;background:var(--chat-field);color:var(--chat-ink);max-height:110px;overflow:auto}
.chat-message.chat-found .chat-user-note{outline:2px solid var(--chat-muted);outline-offset:4px}
.chat-library-filters{display:flex;gap:6px;flex-wrap:wrap}
.chat-library-filters button{font:inherit;font-size:14px;padding:7px 14px;border:1px solid var(--chat-line);border-radius:20px;background:transparent;color:var(--chat-ink)}
.chat-library-filters button[aria-pressed=true]{background:var(--chat-hover)}
.chat-library-list{display:grid;gap:6px;max-height:45dvh;overflow:auto}
.chat-library-list button{display:flex;flex-direction:column;gap:4px;text-align:left;padding:12px;border:1px solid var(--chat-line);border-radius:12px;color:var(--chat-ink);background:var(--chat-field);font:400 15px/22px var(--leai-font,system-ui)}
.chat-library-list button span{overflow-wrap:anywhere}.chat-library-list small{font-size:12px;color:var(--chat-muted)}
/* Quiet surface hierarchy and motion; composer viewport geometry stays unanimated. */
.chat-shell,.gpt-backdrop{-webkit-font-smoothing:antialiased}
.chat-sidebar{border-right:1px solid color-mix(in srgb,var(--chat-line) 45%,transparent)}
.chat-topbar>div{min-width:0}.chat-topbar .chat-current-title{font-size:16px;line-height:24px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(52vw,560px)}
.chat-top-profile{flex:none}
.chat-sidebar>nav{gap:2px;padding-bottom:12px}.chat-sidebar>nav>button{border-radius:10px}
.chat-composer{transition:border-color 160ms ease,box-shadow 160ms ease}
.chat-composer:focus-within{box-shadow:var(--chat-shadow-soft),0 0 0 1px color-mix(in srgb,var(--chat-line) 60%,transparent)}
.gpt-tools{padding:8px;border-radius:20px}
.gpt-tools>header{padding:2px 2px 6px 10px}
.gpt-tool-row{padding:11px 12px;min-height:46px;border-radius:12px;font-size:15px!important;line-height:22px}
.gpt-tool-label{display:flex;align-items:center;gap:12px;min-width:0;color:var(--chat-ink)}
.gpt-tool-label>svg{width:20px;height:20px;flex:none}
.gpt-tool-label>span{min-width:0;overflow-wrap:anywhere}
.gpt-tool-chevron svg{width:14px;height:14px;display:block}
.gpt-tools-divider{margin:6px 10px}
.gpt-profile-menu,.chat-session-menu{padding:8px;border-radius:16px}
.gpt-settings header{padding-bottom:10px}.gpt-settings>label{padding:12px 0;margin:0;border-bottom:1px solid var(--chat-line);font-size:14px}
.gpt-settings>label select{font-size:14px;max-width:55%;border-color:transparent;background:var(--chat-side)}
.gpt-settings>p{line-height:21px}.gpt-settings header>.gpt-icon{background:var(--chat-side);border-radius:50%;width:36px;height:36px;padding:8px}
.gpt-settings footer{padding-top:12px}
.gpt-backdrop{background:color-mix(in srgb,#000 24%,transparent)}
.chat-file-window{box-shadow:-6px 0 28px #00000005}
.artifact-editor>nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;min-height:48px;gap:4px}
.artifact-editor>nav>button{white-space:nowrap;flex:none;border-radius:10px}
.chat-library-list{gap:0;border:1px solid var(--chat-line);border-radius:16px}
.chat-library-list:empty{display:none}
.chat-library-list button{border:0;border-bottom:1px solid var(--chat-line);border-radius:0;padding:14px 16px;background:transparent}
.chat-library-list button:last-child{border-bottom:0}
.chat-library-list button:hover{background:var(--chat-hover)}
.chat-shell button,.gpt-backdrop button{touch-action:manipulation}
@media(hover:hover){.gpt-icon,.gpt-tool-row,.chat-session-menu button,.chat-history-title,.chat-profile,.chat-library-list button,.artifact-editor button{transition:background-color 130ms ease,color 130ms ease,opacity 130ms ease}.chat-send:not(:disabled):hover{filter:brightness(.85)}}
@media(prefers-reduced-motion:no-preference){
 .gpt-tools,.gpt-profile-menu,.chat-session-menu,.chat-history-actions{animation:chat-surface-in 160ms cubic-bezier(.2,.7,.2,1) both}
 .gpt-settings{animation:chat-dialog-in 180ms cubic-bezier(.2,.7,.2,1) both}
 .gpt-backdrop{animation:chat-fade-in 140ms ease both}
 .chat-knowledge{animation:chat-panel-in 200ms ease both}
 .chat-message:last-of-type .chat-user-note{animation:chat-message-in 170ms ease both}
 .chat-send:not(:disabled):active{transform:scale(.94)}
 @media(max-width:767px){.chat-sidebar{animation:chat-drawer-in 200ms cubic-bezier(.2,.7,.2,1) both}.chat-sidebar-scrim{animation:chat-fade-in 180ms ease both}}
}
@keyframes chat-surface-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes chat-dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes chat-fade-in{from{opacity:0}to{opacity:1}}
@keyframes chat-panel-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@keyframes chat-drawer-in{from{transform:translateX(-16px);opacity:0}to{transform:none;opacity:1}}
@keyframes chat-message-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.gpt-tool-row{font-size:16px!important;min-height:48px}.gpt-tools{border-radius:22px}.gpt-settings>label{align-items:flex-start;gap:10px}.gpt-settings>label select{max-width:58%;font-size:16px}.chat-topbar .chat-current-title{font-size:17px;max-width:44vw}}
@media(prefers-reduced-motion:reduce){.chat-shell *,.gpt-backdrop,.gpt-backdrop *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.gpt-tool-row>.gpt-tool-label{color:var(--chat-ink)}
.chat-history-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--chat-muted)!important;font-size:12px!important;line-height:20px!important;text-align:left}
.chat-history-toggle:hover{background:var(--chat-hover)}
.chat-history-toggle>svg{width:13px;height:13px;transform:rotate(-90deg)}
.chat-history-toggle[aria-expanded=true]>svg{transform:none}
.chat-history [hidden]{display:none!important}
/* Category screens share the chat shell; simple tabs and document rows. */
.chat-sidebar>nav{max-height:48%;overflow-y:auto;scrollbar-width:thin}
.chat-sidebar>nav>button[aria-current=page]{background:var(--chat-hover)}
.workspace-catalogue{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px max(24px,calc((100% - 1000px)/2)) 106px;scrollbar-width:thin}
.catalogue-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.catalogue-heading h1{font-size:24px;line-height:32px;font-weight:600;margin:0;letter-spacing:-.4px}
.catalogue-heading>.gpt-icon{font-size:28px;border-radius:50%;background:var(--chat-side);box-shadow:var(--chat-shadow-soft)}
.catalogue-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:20px;padding:2px 0}
.catalogue-tabs button{border:0;border-radius:24px;background:transparent;color:var(--chat-muted);padding:10px 18px;font-size:16px;white-space:nowrap;min-height:44px}
.catalogue-tabs button[aria-pressed=true]{background:var(--chat-bubble);color:var(--chat-ink);font-weight:500}
.catalogue-row{display:flex;align-items:center;gap:16px;width:100%;padding:16px 2px;border:0;border-radius:12px;background:transparent;text-align:left;min-height:80px}
.catalogue-row:hover{background:var(--chat-side)}
.catalogue-row-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;border:1px solid var(--chat-line);border-radius:14px;box-shadow:0 1px 2px #00000003}
.catalogue-row-icon svg{width:24px;height:24px}.catalogue-row-copy{display:grid;gap:4px;min-width:0;flex:1}.catalogue-row-copy>span{font-size:17px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalogue-row-copy small{font-size:13px;line-height:20px;color:var(--chat-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalogue-row-chevron{font-size:24px;color:var(--chat-muted);padding:8px}
.catalogue-template{border-bottom:1px solid var(--chat-line);padding-bottom:10px}.catalogue-template-actions{display:flex;gap:12px;padding-left:66px}.catalogue-template-actions button,.catalogue-template-actions a,.catalogue-open-studio,.catalogue-create button{border:1px solid var(--chat-line);border-radius:20px;font-size:13px;line-height:20px;padding:7px 13px;background:var(--chat-bg);color:var(--chat-ink);min-height:36px}
.catalogue-note,.catalogue-empty{font-size:13px;line-height:21px;color:var(--chat-muted)}.catalogue-empty{padding:24px 0}
.catalogue-search{position:sticky;bottom:-88px;display:flex;align-items:center;gap:12px;z-index:4;margin:22px auto -80px;width:min(600px,100%);padding:12px 16px;border:1px solid var(--chat-line);border-radius:30px;background:var(--chat-bg);box-shadow:var(--chat-shadow-float)}
.catalogue-search>svg{width:20px;height:20px;color:var(--chat-muted);flex:none}.catalogue-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:16px;line-height:24px;color:var(--chat-ink)}
.catalogue-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.catalogue-media-card{position:relative;aspect-ratio:4/5;border:1px solid var(--chat-line);border-radius:22px;overflow:hidden;padding:0;background:var(--chat-side);text-align:left;color:var(--chat-ink)}
.catalogue-media-card img{width:100%;height:100%;object-fit:cover;display:block}.catalogue-card-placeholder{display:grid;place-items:center;height:100%}.catalogue-card-placeholder svg{width:40px;height:40px;color:var(--chat-muted)}
.catalogue-card-caption{position:absolute;bottom:0;left:0;right:0;display:grid;gap:3px;padding:36px 14px 14px;background:linear-gradient(transparent,#000b);color:#fff}.catalogue-card-caption strong{font-size:16px;line-height:22px;font-weight:500}.catalogue-card-caption small{font-size:11px;opacity:.8}
.catalogue-create{display:flex;gap:8px;margin:12px 0}.catalogue-create input{min-width:0;flex:1;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-bg);padding:10px 12px;color:var(--chat-ink)}
@media(max-width:767px){.workspace-catalogue{padding:12px 16px 106px}.catalogue-heading h1{font-size:22px;line-height:30px}.catalogue-tabs{margin-right:-16px}.catalogue-tabs button{padding:10px 16px}.catalogue-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalogue-media-card{border-radius:20px}.catalogue-row{gap:12px}.catalogue-row-copy>span{font-size:17px}.catalogue-row-copy small{font-size:12px}.catalogue-card-caption{padding:28px 10px 12px}.catalogue-card-caption strong{font-size:14px;line-height:20px}.catalogue-heading{margin-bottom:12px}.catalogue-open-studio{font-size:12px;padding:7px 10px}}
.workspace-catalogue{display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px}
.catalogue-heading,.catalogue-tabs,.catalogue-note,.catalogue-create{flex:none}
.catalogue-list,.catalogue-media-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px;scrollbar-width:thin}
.catalogue-media-grid{align-content:start}
.catalogue-search{position:relative;bottom:auto;flex:none;margin:12px auto 0}
@media(max-width:767px){.workspace-catalogue{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
.catalogue-media-grid{grid-auto-rows:max-content}
.catalogue-media-card{width:100%;min-width:0;min-height:0;align-self:start;display:block;isolation:isolate}
.catalogue-media-card img{position:absolute;inset:0;pointer-events:none}
.catalogue-card-caption,.catalogue-card-placeholder{pointer-events:none}
.catalogue-fallback-icon{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);z-index:-1;color:var(--chat-muted)}
.catalogue-fallback-icon svg{width:36px;height:36px}
.catalogue-media-card{background:linear-gradient(145deg,var(--chat-side),var(--chat-bubble))}
.catalogue-no-preview .catalogue-card-caption{background:transparent;color:var(--chat-ink)}
.template-adapt-button{font:inherit;font-size:12px;padding:8px 12px;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-bg);color:var(--chat-ink)}
.chat-assistant-message{align-items:flex-start}.chat-assistant-message .chat-user-note{background:transparent;padding:4px 0;max-width:100%}
.saitomat-connection{font:400 14px/22px var(--leai-font,system-ui);margin-bottom:16px}.saitomat-connection form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.saitomat-connection form p{flex-basis:100%;color:var(--chat-muted)}.saitomat-connection input{min-width:0;width:220px;max-width:100%;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-bg);padding:10px 12px;font-size:16px;color:var(--chat-ink)}
.saitomat-action{font:400 13px/20px var(--leai-font,system-ui);padding:8px 12px;min-height:38px;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-bg);color:var(--chat-ink);cursor:pointer}.saitomat-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.saitomat-buttons a{font-size:14px;text-decoration:underline}.saitomat-confirm{border:1px solid var(--chat-line);border-radius:16px;padding:14px;margin:12px 0}.saitomat-confirm button{margin-right:8px}
.saitomat-preview{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}.saitomat-preview>a{font-size:13px;text-decoration:underline}.saitomat-preview .chat-notice{flex:none;margin:4px 0}.saitomat-result{width:100%;flex:1;min-height:180px;border:1px solid var(--chat-line);border-radius:12px;background:white}

/* In-conversation tools: fixed application components, never model-generated scripts. */
.chat-tool-card{width:100%;min-width:0;border:1px solid var(--chat-line,#e7e7e7);border-radius:20px;overflow:hidden;background:var(--chat-bg,#fff);text-align:left;box-shadow:0 3px 15px #00000005;animation:tool-card-enter 220ms ease-out}
.chat-tool-card>header{display:flex;gap:12px;align-items:center;padding:17px 18px;background:#f4f5f8;color:inherit}
.chat-tool-card>header div{display:grid;gap:3px;min-width:0}.chat-tool-card strong{font-size:16px;font-weight:550;overflow-wrap:anywhere}.chat-tool-card small{font-size:13px;color:#737373}.tool-card-mark{font-size:24px;line-height:1}
.chat-tool-card>footer{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:11px 16px;border-top:1px solid #ececec}.chat-tool-card>footer button,.chat-tool-card>footer a{font:inherit;font-size:13px;color:inherit;background:none;border:0;padding:7px 0;text-decoration:none;cursor:pointer}.chat-tool-card>footer button:hover,.chat-tool-card>footer a:hover{text-decoration:underline}.chat-tool-card button:disabled{opacity:.5;cursor:default}
.tool-card-cover{display:grid;position:relative;width:100%;height:210px;background:#f7f7f7;border:0;padding:0;color:inherit;cursor:pointer;overflow:hidden}.tool-card-cover img{width:100%;height:100%;object-fit:cover;object-position:top}.tool-card-cover span{position:absolute;bottom:12px;left:12px;background:#ffffffed;color:#222;border-radius:12px;padding:7px 11px;font-size:13px}
.tool-card-live{height:470px;min-height:260px}.tool-card-live iframe{display:block;width:100%;height:100%;border:0;background:white}.tool-card-note{padding:10px 16px!important;margin:0!important;font-size:13px!important;color:#777}
.chat-tool-card:focus-within{outline-offset:3px}body.chat-shell-page[data-chat-theme=dark] .chat-tool-card>header{background:#282828}body.chat-shell-page[data-chat-theme=dark] .chat-tool-card{background:#212121}body.chat-shell-page[data-chat-theme=dark] .chat-tool-card>footer{border-color:#393939}
@keyframes tool-card-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:767px){.chat-tool-card{border-radius:18px}.tool-card-live{height:min(450px,58svh)}.tool-card-cover{height:190px}.chat-tool-card>header{padding:14px}.chat-tool-card>footer{padding:8px 14px;gap:4px 14px}}
@media(prefers-reduced-motion:reduce){.chat-tool-card{animation:none}}

.tool-card-live>.saitomat-preview{height:100%;padding:10px;box-sizing:border-box}.tool-card-live>.saitomat-preview .saitomat-result{height:auto}

/* Adaptive workspace: one content scroller, floating controls, more usable canvas. */
.chat-shell{--chat-rail:0px}.chat-shell.chat-with-sidebar{--chat-rail:260px}
.chat-topbar{position:relative;z-index:40;background:var(--chat-bg);transition:margin-top 180ms ease,opacity 150ms ease}
.chat-main.is-chrome-hidden>.chat-topbar{margin-top:-56px;opacity:0;pointer-events:none}
.chat-topbar:focus-within{opacity:1}
.workspace-catalogue{display:block;overflow-y:auto;overscroll-behavior:auto;padding:12px max(20px,calc((100% - 1440px)/2)) 104px;scroll-padding-top:12px}
.catalogue-list,.catalogue-media-grid{overflow:visible;min-height:auto;flex:none;padding-bottom:0}
.catalogue-tabs{margin-bottom:12px}.catalogue-service-info{margin:0 0 12px;font-size:12px;line-height:20px}.catalogue-service-info summary{width:max-content;max-width:100%;cursor:pointer;color:var(--chat-muted)}.catalogue-service-info p{margin:8px 0}
.catalogue-search{position:fixed;z-index:45;left:calc(var(--chat-rail) + (100vw - var(--chat-rail))/2);transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));width:min(600px,calc(100vw - var(--chat-rail) - 32px));height:52px;margin:0;padding:10px 16px;background:color-mix(in srgb,var(--chat-bg) 94%,transparent);box-shadow:var(--chat-shadow-float)}
.chat-conversation{position:relative;padding-bottom:0}.chat-conversation.is-empty{padding-bottom:0}.chat-transcript{padding-bottom:calc(var(--chat-compose-height,112px) + 12px);scroll-padding-bottom:calc(var(--chat-compose-height,112px) + 12px)}
.chat-composer-wrap{position:absolute;left:0;right:0;transform:none;bottom:max(8px,env(safe-area-inset-bottom));z-index:45;width:min(800px,100%);margin-inline:auto;padding:4px 16px 0;background:transparent}
/* Scrolling compacts the editor; the dock remains visible and interactive. */
.chat-main.is-composer-compact .chat-composer-wrap>.composer-service-hint{display:none}

.chat-composer{box-shadow:var(--chat-shadow-float);background:color-mix(in srgb,var(--chat-field) 96%,transparent)}
.chat-disclaimer{pointer-events:none;text-shadow:0 1px 5px var(--chat-bg)}
.chat-tool-card .tool-card-close{margin-left:auto;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--chat-bg) 85%,transparent);padding:9px;flex:none}.tool-card-close svg{width:18px;height:18px}
.catalogue-site-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.catalogue-site-card{min-width:0;margin:0;padding:0;border:1px solid var(--chat-line);border-radius:24px;background:var(--chat-bg);box-shadow:var(--chat-shadow-soft);scroll-margin-top:10px}
.catalogue-site-cover{display:block;position:relative;isolation:isolate;width:100%;aspect-ratio:16/10;overflow:hidden;border:0;border-radius:23px;padding:0;text-align:left;background:var(--chat-side);color:white!important}
.catalogue-site-cover>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;transition:transform 260ms ease}
.catalogue-site-caption{position:absolute;bottom:0;left:0;right:0;display:grid;gap:4px;padding:52px 20px 18px;background:linear-gradient(transparent,#000c);pointer-events:none}
.catalogue-site-caption strong{font-size:20px;line-height:26px;font-weight:550}.catalogue-site-caption small{font-size:14px;line-height:20px;color:#ffffffe0}
.catalogue-site-open{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#ffffffed;color:#222;font-size:21px;box-shadow:0 2px 12px #0001}
.catalogue-site-card.is-open{grid-column:1/-1;border-radius:20px}
.catalogue-site-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--chat-bg);border-radius:20px 20px 0 0}
.catalogue-site-header>div{flex:1;min-width:0}.catalogue-site-header h2{font:550 18px/26px var(--leai-font,system-ui);margin:0}.catalogue-site-header p{font-size:13px;line-height:20px;margin:0;color:var(--chat-muted)}
.catalogue-site-close{border:1px solid var(--chat-line);border-radius:50%;width:40px;height:40px;padding:10px;flex:none;background:var(--chat-bg)}
.catalogue-site-live{height:min(64dvh,680px);min-height:280px;background:white}.catalogue-site-live iframe{display:block;width:100%;height:100%;border:0;background:white}
.catalogue-site-card>.catalogue-template-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid var(--chat-line)}
.catalogue-site-card .catalogue-template-actions button,.catalogue-site-card .catalogue-template-actions a{border:0;border-radius:12px;background:var(--chat-side);font-size:13px;line-height:20px;min-height:40px;padding:10px 12px}
.catalogue-site-cover:has(img[hidden]){background:#333}
@media(hover:hover){.catalogue-site-cover:hover>img{transform:scale(1.025)}}
@media(max-width:767px){
 .chat-shell.chat-with-sidebar{--chat-rail:0px}
 .workspace-catalogue{padding:8px 12px 96px}.catalogue-tabs{margin-right:-12px;gap:4px}.catalogue-tabs button{padding:9px 15px}
 .catalogue-media-grid{gap:10px}.catalogue-media-card{border-radius:18px}.catalogue-card-caption{padding:30px 10px 12px}
 .catalogue-search{left:12px;right:12px;transform:none;width:auto;height:52px;bottom:auto;top:max(8px,calc(var(--chat-visual-bottom,100dvh) - 52px - max(12px,env(safe-area-inset-bottom))))}
 .catalogue-site-grid{grid-template-columns:minmax(0,1fr);gap:16px}.catalogue-site-card,.catalogue-site-cover{border-radius:20px}.catalogue-site-caption{padding:48px 16px 16px}.catalogue-site-caption strong{font-size:19px}.catalogue-site-card>.catalogue-template-actions{padding:10px 12px;gap:6px}.catalogue-site-card .catalogue-template-actions button,.catalogue-site-card .catalogue-template-actions a{font-size:12px;padding:10px}
 .catalogue-site-header{padding:10px 12px}.catalogue-site-live{height:60svh;min-height:250px}
 .chat-composer-wrap{position:fixed;left:0;right:0;transform:none;width:100%;bottom:max(8px,env(safe-area-inset-bottom));padding:4px 12px 0;background:transparent}
 .chat-main.is-composing>.chat-conversation::after{display:none}
 .chat-main.is-composing .chat-composer-wrap{left:0;right:0;transform:none}

 /* A real document scroller lets Safari decide when to retract its own browser chrome. */
 body.chat-shell-page[data-page-scroll=true]{overflow-y:auto;overflow-x:clip;overscroll-behavior-y:auto}
 body.chat-shell-page[data-page-scroll=true] .chat-shell{height:auto;min-height:var(--chat-vh,100svh);align-items:start}
 body.chat-shell-page[data-page-scroll=true] .chat-main{height:auto;min-height:var(--chat-vh,100svh);overflow:visible}
 body.chat-shell-page[data-page-scroll=true] .chat-topbar{position:sticky;top:0;transition:transform 180ms ease,opacity 150ms ease}
 body.chat-shell-page[data-page-scroll=true] .chat-main.is-chrome-hidden>.chat-topbar{margin-top:0;transform:translateY(-100%)}
 body.chat-shell-page[data-page-scroll=true] .workspace-catalogue{flex:none;overflow:visible;min-height:calc(var(--chat-vh,100svh) - 56px);scroll-padding-top:0}
 body.chat-shell-page[data-page-scroll=true] .chat-conversation{min-height:calc(var(--chat-vh,100svh) - 56px);height:auto;flex:none}
 body.chat-shell-page[data-page-scroll=true] .chat-transcript{overflow:visible;min-height:calc(var(--chat-vh,100svh) - 56px);flex:none}
 body.chat-shell-page[data-page-scroll=true] .chat-conversation.is-empty .chat-transcript{display:grid;place-items:center}
 body.chat-shell-page[data-page-scroll=true] .chat-file-window{position:fixed;top:56px;bottom:auto;height:calc(var(--chat-visible-height,100dvh) - 56px)}
 body.chat-shell-page[data-page-scroll=true] .chat-top-profile .chat-session-menu{z-index:80}
 .chat-sidebar-scrim{touch-action:none}
}
@media(prefers-reduced-motion:reduce){.chat-topbar,.catalogue-site-cover>img{transition:none}}
.catalogue-site-open svg{width:18px;height:18px}
.chat-main.is-chrome-hidden>.chat-file-window{top:0}.gpt-settings,.chat-knowledge,.chat-file-window,.chat-sidebar{overscroll-behavior:contain}
@media(min-width:768px) and (max-width:1099px){.catalogue-site-grid{grid-template-columns:minmax(0,1fr)}}

/* Public automation diagrams, syllabus and project examples share the same card system. */
.feature-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.feature-card{min-width:0;border:1px solid var(--chat-line);border-radius:22px;background:var(--chat-bg);scroll-margin-top:10px;box-shadow:var(--chat-shadow-soft)}
.feature-card.is-open{grid-column:1/-1}
.feature-cover{display:flex;flex-direction:column;gap:13px;width:100%;min-height:260px;padding:22px;border:0;border-radius:21px;text-align:left;background:linear-gradient(145deg,var(--chat-side),var(--chat-bg));color:var(--chat-ink)}
.feature-kind{font-size:12px;color:var(--chat-muted)}.feature-cover>strong{font-size:21px;font-weight:550;line-height:28px}.feature-cover-description{font-size:14px;line-height:22px;color:var(--chat-muted);max-width:56ch}.feature-cover-cta{margin-top:auto;padding-top:8px;font-size:13px}.feature-meta{font-size:13px;line-height:21px;color:var(--chat-muted)}
.flow-teaser{display:flex;align-items:center;gap:7px;max-width:100%;padding:6px 0;font-size:11px;line-height:16px}.flow-teaser>span{border:1px solid var(--chat-line);border-radius:9px;padding:8px;background:var(--chat-bg)}.flow-teaser>i{font-style:normal;color:var(--chat-muted)}
.feature-expanded-header{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-radius:22px 22px 0 0;background:var(--chat-bg)}.feature-expanded-header>div{min-width:0}.feature-expanded-header h2{font-size:20px;line-height:28px;font-weight:550;margin:1px 0 0}.feature-expanded-header small{font-size:12px;color:var(--chat-muted)}.feature-close{border:1px solid var(--chat-line);border-radius:50%;background:var(--chat-bg);width:40px;height:40px;padding:10px}
.feature-description,.feature-status,.feature-access-note{margin:0;padding:0 20px 12px;font-size:14px;line-height:22px;color:var(--chat-muted)}.feature-status,.feature-access-note{font-size:12px;line-height:20px}.feature-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--chat-line)}.feature-actions button,.feature-actions a{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:14px;min-height:42px;border:1px solid var(--chat-line);border-radius:22px;padding:9px 15px;background:var(--chat-side);color:var(--chat-ink);cursor:pointer}.feature-actions .feature-status{padding:10px 0}
.learning-syllabus,.work-overview{padding:8px 20px 20px;font-size:15px;line-height:25px}.learning-syllabus h3,.work-overview h3{font-size:16px;font-weight:550;margin:18px 0 8px}.learning-syllabus h4{font-size:15px;font-weight:500;margin:0}.learning-syllabus p{margin:6px 0 14px}.learning-syllabus ol,.learning-syllabus ul,.work-overview ul{padding-left:22px}.learning-syllabus li{margin:8px 0}.learning-syllabus .feature-status{padding:0}
.flow-workspace{border-top:1px solid var(--chat-line)}.flow-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px 16px}.flow-toolbar>span{font-size:12px;color:var(--chat-muted);margin-right:auto}.flow-toolbar button{font:inherit;font-size:13px;border:1px solid var(--chat-line);border-radius:12px;padding:6px 11px;min-width:42px;min-height:42px;background:var(--chat-bg);color:var(--chat-ink)}.flow-toolbar output{font-size:12px;min-width:40px;text-align:center}.flow-help{font-size:12px;line-height:20px;margin:0;padding:0 20px 12px;color:var(--chat-muted)}
.flow-canvas{display:block;width:100%;height:360px;touch-action:none;cursor:grab;background-color:var(--chat-side);background-image:radial-gradient(var(--chat-line) 1px,transparent 1px);background-size:20px 20px;border-block:1px solid var(--chat-line);user-select:none;-webkit-user-select:none}
.flow-canvas:active{cursor:grabbing}.flow-node{cursor:move;outline:none}.flow-node rect{fill:var(--chat-bg);stroke:var(--chat-line);stroke-width:1.5}.flow-node text{fill:var(--chat-ink);pointer-events:none;font-family:var(--leai-font,system-ui)}.flow-node-title{font-size:19px;font-weight:500}.flow-node-number{font-size:14px;fill:var(--chat-muted)!important}.flow-node.is-selected rect,.flow-node:focus-visible rect{stroke:var(--chat-ink);stroke-width:2.5}.flow-edge path{stroke:#b2b2b2;stroke-width:2}.flow-edge.is-active path{stroke:var(--chat-ink);stroke-width:2.5}.flow-edge text{fill:var(--chat-muted);font:12px var(--leai-font,system-ui)}
.flow-step-nav{display:flex;justify-content:center;gap:8px;padding:12px 16px}.flow-step-nav button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--chat-line);border-radius:50%;background:var(--chat-bg);font:inherit;font-size:13px;color:var(--chat-muted)}.flow-step-nav [aria-pressed=true]{background:var(--chat-ink);color:var(--chat-bg)}
.flow-explanation{padding:4px 20px 16px;font-size:14px;line-height:23px}.flow-explanation h3{font-size:17px;font-weight:550;margin:4px 0 12px}.flow-explanation dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px 16px;margin:0}.flow-explanation dt{color:var(--chat-muted)}.flow-explanation dd{margin:0}.flow-explanation p{margin-bottom:0}.flow-explanation p button{border:0;background:var(--chat-side);border-radius:14px;min-height:36px;padding:6px 10px;font:inherit;font-size:13px;margin:4px;color:var(--chat-ink)}
@media(max-width:767px){.feature-card-grid{grid-template-columns:minmax(0,1fr);gap:14px}.feature-cover{padding:19px;min-height:230px;gap:11px}.feature-cover>strong{font-size:20px;line-height:27px}.feature-expanded-header{padding:12px 14px}.feature-expanded-header h2{font-size:18px;line-height:25px}.feature-description,.feature-status,.feature-access-note{padding-left:14px;padding-right:14px}.feature-actions{padding:12px 14px}.learning-syllabus,.work-overview{padding:4px 14px 16px}.flow-toolbar{padding:8px;gap:4px}.flow-toolbar>span{flex-basis:100%;margin:0 0 3px 6px}.flow-toolbar button{font-size:12px}.flow-canvas{height:330px}.flow-help{padding-left:14px;padding-right:14px}.flow-explanation{padding:2px 14px 16px}.flow-explanation dl{grid-template-columns:minmax(0,1fr);gap:3px}.flow-explanation dd{margin-bottom:9px}.flow-teaser{font-size:10px;gap:5px}.flow-teaser>span{padding:7px}.flow-step-nav{gap:7px}.flow-step-nav button{width:38px;height:38px}}
@media(prefers-reduced-motion:no-preference){.flow-node rect,.flow-edge path{transition:stroke 180ms ease}}
.account-subscription{padding:14px;border:1px solid var(--chat-line,#e5e5e5);border-radius:16px;margin:12px 0}.account-subscription h3{font-size:17px;font-weight:550;margin:0 0 8px}.account-subscription p{font-size:14px;line-height:22px}.account-subscription button:disabled{opacity:.45;cursor:default}
.chat-sidebar>nav{max-height:60%}
.work-preview{display:flex;flex-direction:column;min-width:0;border-block:1px solid var(--chat-line);background:var(--chat-bg)}.work-preview-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;flex:none}.work-preview-toolbar>span{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}.work-preview-toolbar>a{font-size:12px;white-space:nowrap}.work-preview-toolbar>.gpt-icon{border:1px solid var(--chat-line);border-radius:50%;width:38px;height:38px;padding:9px}.work-live-frame{display:block;width:100%;height:min(65dvh,720px);min-height:300px;border:0;background:white}.work-preview-help{padding:9px 14px;margin:0;font-size:12px;line-height:19px;color:var(--chat-muted);flex:none}
.work-preview.is-fullscreen{position:fixed;inset:0;z-index:1720;overscroll-behavior:contain;border:0;border-radius:0;height:100dvh;height:var(--chat-visible-height,100dvh)}.work-preview.is-fullscreen>.work-live-frame{flex:1;height:auto;min-height:0}.work-preview.is-fullscreen>.work-preview-toolbar{padding-top:max(8px,env(safe-area-inset-top))}.work-preview.is-fullscreen>.work-preview-help{padding-bottom:max(9px,env(safe-area-inset-bottom))}
@media(max-width:767px){.work-preview-toolbar{padding:8px;gap:5px}.work-preview-toolbar>span{font-size:12px}.work-preview-toolbar>a{font-size:11px}.work-live-frame{height:62svh;min-height:280px}.work-preview-help{font-size:11px;line-height:18px}}
.work-project-cover .work-cover-art{width:100%;height:100%;display:block;object-fit:cover;object-position:top}.work-project-cover>svg.work-cover-art{background:#dbe5e1}.work-project-card .work-overview{padding:12px 16px;font-size:14px;line-height:23px}.work-project-card .work-overview summary{cursor:pointer;color:var(--chat-muted)}
.work-live-surface{position:relative;min-height:300px;height:min(65dvh,720px);overflow:hidden;background:var(--chat-side)}.work-live-surface>.work-live-frame{position:absolute;inset:0;height:100%;min-height:0}.work-load-cover{position:absolute;inset:0;display:grid;place-items:center;background:var(--chat-side);overflow:hidden}.work-load-cover>.work-cover-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;opacity:.32;filter:blur(2px)}.work-load-message{position:relative;text-align:center;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:20px;padding:18px;max-width:calc(100% - 32px);font-size:14px;line-height:22px;box-shadow:var(--chat-shadow-float)}.work-load-message p{margin:0 0 10px}.work-load-message p+p{font-size:12px;color:var(--chat-muted)}.work-load-message button,.work-load-message a{display:inline-block;border:1px solid var(--chat-line);border-radius:20px;background:var(--chat-side);color:inherit;font:inherit;font-size:12px;padding:9px 12px;margin:4px;min-height:40px}.work-preview.is-fullscreen>.work-live-surface{flex:1;height:auto;min-height:0}@media(max-width:767px){.work-live-surface{height:62svh;min-height:280px}}
.work-preview.is-unavailable:not(.is-fullscreen)>.work-live-surface{height:320px;min-height:260px}.work-preview:not(.is-fullscreen) .work-preview-toolbar>span{display:none}.work-preview:not(.is-fullscreen) .work-preview-toolbar{justify-content:flex-end}

/* Account summary: compact by content, with the existing protected owner route. */
.space-utility-dialog.account-dialog{width:min(400px,calc(100vw - 32px));min-height:0;max-height:calc(var(--chat-vh,100dvh) - 32px);padding:18px;border:1px solid var(--chat-line,#ddd);border-radius:22px;background:var(--chat-field,#fff);color:var(--chat-ink,#202020);font-size:15px;line-height:1.5;box-sizing:border-box;overflow:auto}
.account-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.account-dialog>header h2{margin:0;font-size:18px;line-height:24px;font-weight:600}.account-dialog>header button{width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:50%;background:var(--chat-side,#f6f6f6);font:inherit;font-size:24px;color:var(--chat-ink,#202020)}
.account-dialog .account-summary{display:grid;gap:3px;padding:2px 0 12px}.account-dialog .account-email{margin:0;font-size:15px;overflow-wrap:anywhere;color:var(--chat-ink,#202020)}.account-dialog .account-status{margin:0;font-size:12px;color:var(--chat-muted,#686868)}.account-dialog .account-actions{display:grid;gap:4px}.account-dialog .account-actions>a,.account-dialog .account-actions>button{display:flex;align-items:center;justify-content:flex-start;min-height:44px;width:100%;margin:0;padding:8px 12px;box-sizing:border-box;border:0;border-radius:12px;background:var(--chat-side,#f6f6f6);font:inherit;font-size:14px;text-decoration:none;color:var(--chat-ink,#202020)}
.account-dialog .account-login{display:grid;gap:10px;margin:0}.account-dialog .account-login label{font-size:13px;margin:0;color:var(--chat-muted,#686868)}.account-dialog .account-login input{min-height:44px;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--chat-line,#ddd);border-radius:12px;background:var(--chat-field,#fff);color:var(--chat-ink,#202020);font:400 16px/22px var(--leai-font,system-ui)}.account-dialog .account-primary{min-height:44px;border:0;border-radius:12px;background:var(--chat-ink,#202020);color:var(--chat-bg,#fff);font:inherit;font-size:14px;padding:10px 14px}.account-dialog .account-feedback{margin:10px 0 0;font-size:13px;line-height:20px;overflow-wrap:anywhere}.account-dialog .account-subscription{margin:4px 0;padding:0}.account-dialog .account-subscription h3{font-size:15px;margin:8px 0}.account-dialog .account-subscription p{font-size:13px;margin:6px 0}
.account-dialog .account-continuation{display:grid;gap:6px;margin:0 0 16px;padding:12px;border:1px solid var(--chat-line,#ddd);border-radius:12px;background:var(--chat-side,#f6f6f6)}.account-dialog .account-continuation p{margin:0;font:inherit;font-size:13px;line-height:19px;color:var(--chat-muted,#686868)}.account-dialog .account-continuation .account-continuation-title{font-weight:600;color:var(--chat-ink,#202020)}

/* One workspace: the conversation and the optional scene have their own space. */
.chat-main.has-scene{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:56px minmax(0,1fr);height:var(--chat-visible-height,100dvh);overflow:hidden}.chat-main.has-scene>.chat-topbar{grid-column:1/-1;grid-row:1}.chat-main.has-scene>.chat-conversation{grid-column:1;grid-row:2;position:relative;min-width:0;min-height:0;height:100%;margin:0;padding:0;overflow:hidden;justify-content:flex-start}.chat-main.has-scene>.chat-scene-stage{grid-column:2;grid-row:2}.chat-main.has-scene .chat-transcript{width:100%;min-height:0;flex:1;overflow:auto;padding:12px;scroll-padding-bottom:12px}.chat-main.has-scene .chat-conversation>.chat-composer-wrap{position:relative;inset:auto;left:auto;right:auto;bottom:auto;top:auto;transform:none;flex:none;max-width:100%;width:100%;margin:0;padding:6px 10px max(8px,env(safe-area-inset-bottom));box-sizing:border-box;background:var(--chat-bg,#fff)}
.chat-main.has-scene.is-composing .chat-composer-wrap>.composer-service-hint{display:none}
.scene-pane-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;height:48px;padding:2px 8px 2px 14px;border-bottom:1px solid var(--chat-line,#ddd)}.scene-pane-header h2{margin:0;font-size:14px;font-weight:600;line-height:20px}.scene-pane-header>div{display:flex;align-items:center;gap:4px}.scene-view-toggle{min-height:44px;padding:8px 12px;border:0;border-radius:22px;background:var(--chat-side,#f6f6f6);font:inherit;font-size:13px;color:var(--chat-ink,#202020)}.scene-products{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.scene-products>.product-collection{min-height:100%;box-sizing:border-box}
.chat-message-parts{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0}.chat-message-parts>span{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 8px;border-radius:8px;background:var(--chat-side,#f6f6f6);font-size:12px;line-height:18px;overflow-wrap:anywhere}.chat-message-parts svg{width:14px;height:14px;flex:none}.chat-message-actions .discussion-sources{max-width:min(460px,75vw);font-size:12px}.source-info-trigger{display:grid;place-items:center;list-style:none;width:44px;height:44px;min-height:44px;cursor:pointer;color:var(--chat-muted,#686868);border-radius:12px}.source-info-trigger::-webkit-details-marker{display:none}.source-info-trigger svg{width:17px;height:17px}.discussion-sources[open] .source-info-trigger{background:var(--chat-side,#f6f6f6)}.chat-message-actions:has(.discussion-sources[open]){align-items:flex-start;flex-wrap:wrap}.chat-message-actions .discussion-sources p{font-size:12px;line-height:18px;margin:6px 0;white-space:normal}
@media(max-width:1099px){.chat-main.has-scene{grid-template-columns:minmax(0,1fr);grid-template-rows:56px clamp(110px,32%,300px) minmax(0,1fr)}.chat-main.has-scene>.chat-scene-stage{grid-column:1;grid-row:2;border-left:0;border-bottom:1px solid var(--chat-line,#ddd)}.chat-main.has-scene>.chat-conversation{grid-column:1;grid-row:3}.chat-main.has-scene .chat-transcript{padding:8px 12px}.scene-pane-header{height:44px}.chat-main.has-scene.is-composing .chat-conversation>.chat-composer-wrap{position:relative;inset:auto;padding:4px 10px max(6px,env(safe-area-inset-bottom))}}
/* Media version viewer (media-asset-editor.js): stacked label/select, fluid media, nav button kept inside the pane. */
.media-asset-editor>section{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow:auto;padding:2px 2px 8px}
.media-asset-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--chat-muted)}
.media-asset-editor select{font:inherit;font-size:14px;min-height:42px;width:100%;max-width:100%;padding:8px 36px 8px 12px;border:1px solid var(--chat-line);border-radius:12px;background-color:var(--chat-field);color:var(--chat-ink)}
.media-asset-editor section>p{margin:0;font-size:13px;color:var(--chat-muted);overflow-wrap:anywhere}
.media-asset-editor img,.media-asset-editor video{display:block;max-width:100%;height:auto;border-radius:12px;background:var(--chat-hover)}
.media-asset-editor video{width:100%;max-height:60dvh}
.media-asset-editor audio{display:block;width:100%}
.media-asset-editor>nav{padding-right:2px}
.media-asset-editor>nav .artifact-download{margin-left:auto;flex:none}
.media-asset-editor .artifact-versions{gap:8px}

/* Long request: the field grows with its text (up to 44% of the screen) instead of showing a 2-3 line window; no horizontal scroll.
   Browsers without field-sizing keep the previous behaviour. */
@supports (field-sizing:content){.chat-composer textarea,.chat-main.is-composing .chat-composer textarea{field-sizing:content;height:auto!important;max-height:min(44dvh,360px)!important;overflow-x:hidden;overflow-wrap:anywhere;white-space:pre-wrap}}
