/* A compact writing surface with one shared reading width. */
.project-layout.workflow-chat{--chat-column-width:760px}
.workflow-chat .conversation-body{max-width:var(--chat-column-width)}
.workflow-chat .chat-composer{position:relative;max-width:var(--chat-column-width);padding:10px 14px 9px;border-radius:24px;max-height:none;overflow:visible;box-shadow:0 2px 8px #00000006}
.workflow-chat .composer-topline{min-height:22px;margin:0 0 2px;gap:8px}
.workflow-chat .composer-topline>.conversation-workflow.compact{max-width:170px}
.workflow-chat .conversation-workflow.compact>select{min-height:22px;height:22px;padding-top:0;padding-bottom:0}
.workflow-chat .composer-topline>.cloud-context{font-size:11px}
.workflow-chat .cloud-context-toggle{font-size:11px;line-height:1.5;padding:0;min-height:22px}
.workflow-chat .chat-composer>textarea{min-height:42px;height:42px;max-height:160px;padding:6px 2px;margin:0 0 4px;font-size:16px;line-height:1.65}
.workflow-chat .composer-toolbar{gap:6px 10px;align-items:center}
.workflow-chat .composer-tools{gap:4px}
.workflow-chat .composer-tools>.chat-capabilities{gap:4px}
.workflow-chat .composer-label .mini-button,.workflow-chat .composer-options>summary{min-height:32px;padding:5px 6px;font-size:12px}
.workflow-chat .composer-tools .chat-capability,.new-conversation-mode .chat-capability{min-height:32px;padding:5px 9px;font-size:12px;line-height:1.5;font-weight:400}
.workflow-chat .reasoning-effort>select,.new-conversation-mode .reasoning-effort>select{min-height:32px!important;height:32px;font-size:12px!important;padding-top:4px!important;padding-bottom:4px!important}
.workflow-chat .composer-toolbar>.composer-actions{flex:0 1 206px;min-width:130px;gap:8px}
.workflow-chat .composer-actions>.model-choice{min-width:0;max-width:164px}
.workflow-chat .composer-actions>.model-choice>select{min-height:32px;height:32px;font-size:12px}
.workflow-chat .composer-actions .model-choice-value{font-size:12px}
.workflow-chat .composer-actions>.composer-send{flex-basis:34px;min-width:34px;min-height:34px;width:34px;height:34px}
.workflow-chat .composer-send>svg{width:18px;height:18px}
.workflow-chat .composer-actions>.composer-send:disabled,.new-conversation-actions>.new-conversation-send:disabled{opacity:1;background:var(--surface-alt)!important;color:var(--muted)!important}
.workflow-chat .composer-footnote{display:none}
.workflow-chat .chat-composer:has(.composer-notice),.workflow-chat .chat-composer:has(.cloud-budget.exceeded){border-color:color-mix(in srgb,#bc493b 50%,var(--border))}
.workflow-chat .user-message{max-width:82%;padding:10px 16px;border-radius:18px}
.workflow-chat .message-content pre,.workflow-chat .markdown-body,.workflow-chat .message-content details summary{font-size:16px;line-height:1.75}
.workflow-chat .conversation-pair{margin-bottom:28px}
.workflow-chat .assistant-message{padding-top:20px}
.workflow-chat .message-meta{margin-bottom:10px}
.workflow-chat .markdown-body p{margin-bottom:14px}
.workflow-chat .markdown-body h1{font-size:23px}.workflow-chat .markdown-body h2{font-size:21px}.workflow-chat .markdown-body h3{font-size:18px}
.workflow-chat .markdown-body h1,.workflow-chat .markdown-body h2,.workflow-chat .markdown-body h3{margin:24px 0 10px}
.workflow-chat .markdown-body li{margin:5px 0}
.workflow-chat .message-footer{gap:12px;margin-top:8px}
.workflow-chat .reply-timing{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 14px;margin:10px 0 8px;padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}
.workflow-chat .reply-timing .reply-time-stamp{min-width:0;overflow-wrap:anywhere}
.workflow-chat .reply-timing time{font:inherit;color:inherit}
.workflow-chat .reply-time-missing{color:var(--muted)}
.workflow-chat .reply-timing .reply-total-time{white-space:nowrap}
.attachment-image-frame{position:relative;min-height:120px;overflow:hidden;border-radius:10px;background:var(--surface-alt)}
.message-attachments .attachment-image-frame{display:block;margin:0}
.attachment-image-frame>a{display:block;min-height:120px}
.attachment-image-frame.loading img{opacity:0}
.attachment-image-frame.error>a{display:none}
.attachment-image-loading,.attachment-image-error{display:flex;align-items:center;justify-content:center;gap:8px;min-height:120px;padding:14px;color:var(--muted);font-size:13px;line-height:1.7}
.attachment-image-loading{position:absolute;inset:0}
.attachment-image-error{flex-direction:column;border:1px solid var(--border);border-radius:10px}
.attachment-image-error>.mini-button{color:var(--primary);background:var(--surface);border:1px solid var(--border);padding:5px 10px}

/* New and existing conversations use the same font, controls and proportions. */
.main-content.new-conversation-main{padding:28px 24px;align-items:center}
.new-conversation{width:min(760px,100%);padding:20px 0 28px;margin:-30px auto 0}
.main-content.new-conversation-main:has(.composer-options[open]){align-items:center}
.new-conversation:has(.composer-options[open]){margin:-30px auto 0}
.new-conversation-welcome{margin-bottom:26px}
.new-conversation-mark,.new-conversation-welcome>.eyebrow{display:none}
.new-conversation-welcome h1{font-size:28px;line-height:1.4;margin:0 0 10px;letter-spacing:normal;font-weight:600}
.new-conversation-welcome>p:last-child{font-size:13px}
.new-conversation-composer{position:relative;padding:12px 14px 10px;border-radius:24px;box-shadow:0 2px 10px #00000007}
.new-conversation-composer:focus-within{border-color:color-mix(in srgb,var(--muted) 50%,var(--border));box-shadow:0 2px 10px #00000007}
.new-conversation-topline{display:none}
.new-conversation-composer>textarea{min-height:48px;max-height:180px;padding:5px 2px 8px;font-size:16px;line-height:1.65}
.new-conversation-mode{gap:6px;min-width:0;margin:4px 0 7px;align-items:center}
.new-conversation-mode .segmented{padding:2px;border-radius:12px;flex:0 0 auto}
.new-conversation-mode .segmented>button{min-height:28px;font-size:12px;padding:3px 8px;font-weight:400}
.new-conversation-mode .chat-capabilities{width:auto;gap:4px;padding:0;flex:0 1 auto}
.new-conversation-mode .composer-options{margin:0;flex:0 0 auto}
.new-conversation-mode .composer-options>summary{gap:5px;min-height:32px;padding:5px 6px;font-size:12px;line-height:1.5;white-space:nowrap;list-style:none}
.new-conversation-mode .composer-options>summary::after{content:none}
.new-conversation-mode .composer-options>summary::-webkit-details-marker{display:none}
.new-conversation-mode .composer-options>summary>.generation-options-icon{margin:0;font-size:13px}
.new-conversation-mode .composer-settings-panel{position:absolute;left:0;bottom:calc(100% + 10px);width:min(100%,420px);max-height:min(430px,48dvh);overflow:auto;z-index:50;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 6px 24px #00000012}
.new-conversation-mode .composer-options-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;gap:12px}
.new-conversation-mode .composer-options-grid label,.new-conversation-mode .composer-options-grid input{font-size:14px}
.new-conversation-mode .output-limit-note{font-size:12px;line-height:1.75;color:var(--muted);margin-top:12px}
.new-conversation-tools{padding:0;border:0;align-items:center;gap:8px}
.new-conversation .conversation-selectors{align-items:center;gap:8px;flex-wrap:nowrap}
.new-conversation .conversation-model{flex:1;min-width:0}
.new-conversation .conversation-model>span{display:none}
.new-conversation .conversation-workflow{flex:0 1 155px;min-width:85px;max-width:155px}
.new-conversation .conversation-workflow>span{display:none}
.new-conversation .conversation-workflow>select,.new-conversation .model-choice>select{border:0;background:transparent;min-height:34px;height:34px;font-size:13px;padding:5px 25px 5px 8px;border-radius:10px;max-width:100%}
.new-conversation .conversation-workflow>select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808088' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center;background-size:12px}
.new-conversation .model-choice-value{font-size:13px;left:8px;right:25px}
.new-conversation .model-choice:hover,.new-conversation .conversation-workflow>select:hover{background:var(--surface-alt);border-radius:10px}
.new-conversation-actions{gap:6px}
.new-conversation-actions>.new-conversation-file{border:0;background:transparent;padding:5px 8px;min-height:34px;font-size:12px}
.new-conversation-actions>.new-conversation-send{padding:0;min-width:36px;width:36px;min-height:36px;height:36px;border-radius:50%;font-size:18px;background:var(--text);color:var(--surface)}
.new-conversation-actions>.new-conversation-send:hover:not(:disabled){background:var(--heading);color:var(--surface)}
.new-conversation-hint{margin-top:12px;font-size:12px}
.new-conversation-shortcut{margin-top:3px;font-size:11px}
.output-limit-note>b{font-weight:500;color:var(--text)}
.output-presets{gap:5px;flex-wrap:wrap}
.output-presets button{font-size:12px;min-height:28px;line-height:1.5}
.model-output-guide{padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-alt);font-size:13px;line-height:1.75}
.model-output-guide p{margin:3px 0 8px}.model-output-guide a{color:var(--primary)}
.model-output-summary{display:inline-block;margin-top:3px;font-size:12px;color:var(--muted)}
:root[data-theme=dark] .new-conversation-composer{background:#2b2b2b;box-shadow:none}

@media(max-width:1100px){
 .workflow-chat .composer-toolbar>.composer-actions{flex-basis:174px}
 .workflow-chat .composer-actions>.model-choice{max-width:132px}
}
@media(max-width:640px){
 .project-main{padding:8px 10px}.workflow-chat .conversation-scroll{padding:10px 2px 20px}
 .workflow-chat .chat-composer{padding:9px 10px 8px;border-radius:22px}
 .workflow-chat .composer-topline>.conversation-workflow.compact{max-width:115px}
 .workflow-chat .composer-topline .conversation-workflow.compact>select{max-width:115px}
 .workflow-chat .chat-composer>textarea{min-height:42px;font-size:16px;margin-bottom:4px}
 .workflow-chat .composer-tools{display:contents}
 .workflow-chat .composer-tools>.chat-capabilities{grid-column:1/-1;grid-row:1;gap:4px}
 .workflow-chat .composer-tools>.composer-label{grid-column:1;grid-row:2}
 .workflow-chat .composer-tools>.composer-options{grid-column:2;grid-row:2;margin:0}
 .workflow-chat .composer-tools>.image-options{grid-column:1/-1;grid-row:1}
 .workflow-chat .composer-toolbar{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:5px}
 .workflow-chat .composer-toolbar>.composer-actions{grid-column:3;grid-row:2;width:auto;min-width:0;gap:5px}
 .workflow-chat .composer-toolbar:not(:has(.composer-options))>.composer-actions{grid-column:2/-1}
 .workflow-chat .composer-actions>.model-choice{flex:1;max-width:none}
 .workflow-chat .composer-actions>.model-choice>select{background:transparent;min-height:32px;height:32px;font-size:13px}
 .workflow-chat .composer-actions .model-choice-value{font-size:13px}
 .workflow-chat .composer-actions>.composer-send{min-width:34px;min-height:34px;width:34px;height:34px}
 .workflow-chat .composer-tools .chat-capability{font-size:12px;min-height:30px;padding:4px 7px}
 .workflow-chat .chat-capability small,.new-conversation-mode .chat-capability small{display:none}
 .workflow-chat .composer-label .mini-button,.workflow-chat .composer-options>summary{font-size:12px;min-height:30px;padding:4px}
 .workflow-chat .user-message{max-width:92%;padding:10px 14px}
 .main-content.new-conversation-main{padding:24px 14px;align-items:center}
 .new-conversation{padding:16px 0 24px;margin:-20px auto 0}
 .new-conversation:has(.composer-options[open]){margin:-20px auto 0}
 .new-conversation-welcome{margin-bottom:22px}.new-conversation-welcome h1{font-size:25px}
 .new-conversation-composer{padding:12px 10px 9px;border-radius:22px}
 .new-conversation-mode{gap:5px;margin-bottom:6px}
 .new-conversation-mode .chat-capabilities{width:auto;gap:4px}
 .new-conversation-mode .chat-capability{font-size:12px;min-height:30px;padding:4px 7px}
 .new-conversation-tools{flex-wrap:nowrap;gap:4px;align-items:center}
 .new-conversation .conversation-selectors{display:flex;flex-basis:auto;gap:2px;min-width:0}
 .new-conversation .conversation-workflow{flex:0 0 88px;min-width:88px;max-width:88px}
 .new-conversation .conversation-workflow>select{padding-left:5px;font-size:12px}
 .new-conversation-actions{width:auto;margin:0;gap:2px;flex-shrink:0}
 .new-conversation-actions>.new-conversation-file{padding:5px;font-size:12px}
 .new-conversation .model-choice-value,.new-conversation .model-choice>select{font-size:12px}
 .new-conversation-mode .composer-options>summary{padding-left:2px;padding-right:2px}
 .new-conversation-hint{max-width:300px;font-size:11px}
 .new-conversation-mode .composer-settings-panel{position:fixed;left:12px;right:12px;bottom:20px;width:auto;max-height:min(470px,65dvh);z-index:80}
 .workflow-chat .composer-settings-panel{max-height:min(470px,60dvh);width:min(100%,400px)}
}
