/* Dialogue presentation; chat content and document previews remain unchanged. */
html[data-ui="workbench"] .chat-home.conversation-mode{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;max-width:none;margin:0}
html[data-ui="workbench"] .shell.native-workspace #main:has(>.conversation-mode){height:calc(100dvh - 68px);min-height:0;padding:14px 16px 12px;overflow:hidden}
html[data-ui="workbench"] .shell.has-projects #main>.chat-home.conversation-mode{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;margin:0}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:43px;margin:0 0 10px;padding:0 3px;border:0}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-intro h1{flex:none;margin:0;font-size:18px;line-height:1.3;font-weight:680;letter-spacing:-.03em;white-space:nowrap}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-export{flex:none;width:auto;margin:0}
html[data-ui="workbench"] .shell.has-projects #main>.chat-home.conversation-mode .chat-export{width:auto;margin:0}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-export .btn{min-height:28px;padding:3px 7px;border:0;background:transparent;color:var(--muted);font-size:11px}
html[data-ui="workbench"] .chat-home.conversation-mode:not(.has-messages) .chat-workspace{margin-top:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-transcript{display:flex;flex-direction:column;flex:1 1 auto;gap:16px;width:100%;max-width:none;min-width:0;min-height:0;margin:0;padding:8px 8px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.chat-transcript,.chat-composer textarea)::-webkit-scrollbar{display:none}
html[data-ui="workbench"] .moi-workspace-chat-pane>.chat-home.conversation-mode{overflow-x:hidden;scrollbar-width:none}
html[data-ui="workbench"] .moi-workspace-chat-pane>.chat-home.conversation-mode::-webkit-scrollbar{display:none}
html[data-ui="workbench"] .shell.has-projects #main>.chat-home.conversation-mode.has-messages .chat-transcript{padding-bottom:0}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-transcript::before{content:"";margin-top:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-message.conversation-entry,
html[data-ui="workbench"] .shell.has-projects #main>.chat-home.conversation-mode .chat-message.conversation-entry:is(.user,.assistant){display:flex;flex:none;box-sizing:border-box;min-width:0;width:auto;max-width:calc(100% - 30px);margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.user{align-self:flex-end;justify-content:flex-end;max-width:min(84%,680px)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.user .conversation-content{padding:3px 30px 3px 0;border:0;border-radius:0;background:transparent}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.assistant{align-self:flex-start;gap:10px;width:100%;max-width:calc(100% - 30px)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-avatar{position:relative;display:block;flex:none;width:36px;height:36px;overflow:visible}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.assistant .conversation-content{flex:1 1 auto;min-width:0;max-width:760px;padding:3px 30px 0 0}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry .conversation-content{position:relative;min-width:0}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-speaker{display:block;margin:0 0 5px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.2}
html[data-ui="workbench"] .chat-home.chat-layout-rows .conversation-entry.user{align-self:stretch;justify-content:flex-start;max-width:calc(100% - 30px)}
html[data-ui="workbench"] .chat-home.chat-layout-rows .conversation-entry.user .conversation-content{width:100%;padding:10px 36px 10px 13px;border-left:2px solid var(--brand);border-radius:0 8px 8px 0;background:var(--brand-soft)}
html[data-ui="workbench"] .chat-home.chat-layout-bubbles .conversation-entry.user .conversation-content{max-width:100%;padding:10px 36px 10px 13px;border:1px solid var(--line);border-radius:14px 14px 4px 14px;background:var(--brand-soft)}
html[data-ui="workbench"] .chat-home.chat-layout-bubbles .conversation-entry.assistant .conversation-content{padding:10px 36px 10px 13px;border:1px solid var(--line);border-radius:14px 14px 14px 4px;background:var(--surface)}
html[data-ui="workbench"] .chat-home.chat-layout-bubbles .conversation-entry.assistant{width:auto;max-width:min(calc(100% - 30px),790px)}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connection-start{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;min-height:180px;padding:24px 12px;text-align:center}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connection-start h2{margin:0;color:var(--ink);font-size:18px;font-weight:700}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connection-start p{margin:8px 0 16px;color:var(--muted);font-size:12px;line-height:1.6}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connection-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connect-provider{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 11px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connect-provider .ai-provider-mark{width:18px;height:18px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-connect-provider .ai-provider-mark::before{width:16px;height:16px}
html[data-ui="workbench"] .chat-home.conversation-mode:has(.chat-connection-start) .chat-workspace{margin-top:0}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-body,.conversation-extras){min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-body>p{margin:0;font-size:14px;line-height:1.7;white-space:pre-wrap}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-body code{max-width:100%;overflow-wrap:anywhere}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-body pre,.chat-document-source){max-width:100%;overflow-x:auto;white-space:pre;overflow-wrap:normal}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-body pre code{white-space:inherit;overflow-wrap:normal}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-document-table{max-width:100%;min-width:0;overflow-x:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-document-table :is(th,td){overflow-wrap:anywhere}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-document-table :is(th,td):first-child{white-space:nowrap}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.chat-document-rendered,.chat-html-preview,.chat-images,.chat-artifacts){max-width:100%;min-width:0}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-extras>:first-child{margin-top:10px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-copy{position:absolute;top:0;right:2px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;opacity:0}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.user .conversation-copy{top:3px;right:3px;left:auto;transform:none}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry:hover .conversation-copy,
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry:focus-within .conversation-copy{opacity:1}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-copy:hover,
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-copy:focus-visible{color:var(--ink);opacity:1}
@media(hover:none){html[data-ui="workbench"] .chat-home.conversation-mode .conversation-copy{opacity:1}}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work{margin:0 0 11px;color:var(--muted);font-size:11px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work summary{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:2px 0;list-style:none;cursor:pointer;font-weight:600}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work summary::-webkit-details-marker{display:none}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work summary>span{display:inline-block;font-size:17px;line-height:.7;transition:transform 160ms ease}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work[open] summary>span{transform:rotate(90deg)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:2px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work ol{display:grid;gap:5px;margin:7px 0 4px;padding:0 0 0 13px;list-style:none;border-left:1px solid var(--line)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work li{display:flex;justify-content:space-between;gap:16px;max-width:360px;line-height:1.5}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work li small{flex:none;color:var(--muted);font-size:10px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-work p{margin:6px 0 3px 13px;font-size:11px;line-height:1.5}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-copy,.chat-working button):focus-visible{outline:2px solid var(--ink);outline-offset:2px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.is-error .conversation-body{color:#a94747}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-workspace{flex:none;width:100%;min-width:0;max-width:none}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-composer{min-width:0;max-width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none;overflow:visible}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-composer:has(textarea:focus-visible){border-color:var(--muted);box-shadow:0 0 0 2px var(--brand-soft)}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-composer-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:25px;margin-bottom:6px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-composer-top [role="status"]{margin-left:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;font-weight:650}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider .ai-provider-mark{width:17px;height:17px;border-radius:4px;background:transparent}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider .ai-provider-mark::before{width:15px;height:15px}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider .choice-select{width:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider .choice-trigger{min-height:24px;gap:8px;padding:1px 4px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:11px;font-weight:650;box-shadow:none}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-provider .choice-menu{top:auto;bottom:calc(100% + 3px);min-width:142px}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-model-control,.conversation-effort-control){display:inline-flex;min-width:0}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-model-control,.conversation-effort-control) .choice-select{min-width:0;max-width:100%}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-model-control,.conversation-effort-control) .choice-trigger{min-height:24px;max-width:180px;gap:6px;padding:2px 7px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);font-size:11px;box-shadow:none}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-effort-control .choice-trigger{max-width:110px}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-model-control,.conversation-effort-control) .choice-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-model-control,.conversation-effort-control) .choice-menu{min-width:170px;max-height:min(280px,55vh);overflow-y:auto}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-model-control .choice-menu{width:min(320px,calc(100vw - 16px))}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-composer-top .choice-menu [role="option"]{white-space:normal;overflow-wrap:anywhere}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-prompt{min-width:0;max-width:100%}
html[data-ui="workbench"] .chat-home.conversation-mode .conversation-prompt textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;height:64px;min-height:64px;max-height:160px;padding:3px 0;border:0;outline:none;background:transparent;color:var(--ink);font-size:14px;line-height:1.6;resize:vertical;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;scrollbar-width:none}
html[data-ui="workbench"] .chat-home.conversation-mode.conversation-drop-target .chat-composer{outline:2px dashed var(--ink);outline-offset:-4px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-working{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;margin:0;color:var(--muted);font-size:13px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-working .conversation-content{display:flex;align-items:center;gap:14px;min-height:34px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-working .btn{border:0;background:transparent;color:var(--muted);font-size:11px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue{align-self:stretch;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:12px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue-head strong{color:var(--muted);font-size:12px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue ol{display:grid;gap:4px;margin:0;padding:0;list-style:none}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue li{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 0;border-top:1px solid var(--line)}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-queue li button{flex:none;width:24px;height:24px;min-height:24px;padding:0;color:var(--muted)}
html[data-ui="workbench"] .chat-home.conversation-mode .artifact-reading-state{flex:1;margin:0;padding:8px}
html[data-ui="workbench"] .chat-home.conversation-mode .chat-artifacts button{padding:9px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
@media(max-width:720px){
 html[data-ui="workbench"] .shell.native-workspace #main:has(>.conversation-mode){padding:10px}
 html[data-ui="workbench"] .chat-home.conversation-mode .chat-transcript{gap:15px;padding-inline:2px}
 html[data-ui="workbench"] .chat-home.conversation-mode .conversation-entry.user{max-width:calc(100% - 34px)}
 html[data-ui="workbench"] .chat-home.conversation-mode .conversation-avatar{width:30px;height:30px}
 html[data-ui="workbench"] .chat-home.conversation-mode .chat-composer{padding:10px 12px}
 html[data-ui="workbench"] .chat-home.conversation-mode .conversation-composer-top [role="status"]{flex-basis:100%;margin-left:0}
}
@media(prefers-reduced-motion:reduce){html[data-ui="workbench"] .chat-home.conversation-mode :is(.conversation-copy,.chat-composer,.conversation-work summary>span){transition:none}}
