/* Semantic colours keep the composer consistent with all four themes. */
html body .composerHint[hidden],html body .composerLegacy[hidden]{display:none!important}
html body :is(#composerAddMenu,#agentAttachMenu).composerMenuV2{overflow:visible;max-height:none;padding:6px;min-width:206px;box-sizing:border-box;background:var(--panel,#242724);color:var(--text,#dce5de);border:1px solid var(--line,#4b554d);border-radius:12px;box-shadow:0 8px 28px #0002;z-index:180}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 10px;background:transparent;border:0;border-radius:7px;color:inherit;font:inherit;font-size:14px;text-align:left;white-space:nowrap}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuIcon{width:20px;text-align:center;font-size:19px;font-weight:400}.composerMenuArrow{margin-left:auto;opacity:.6}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button>.composerMenuIcon{flex:0 0 20px}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button>span[data-i18n]{width:auto;flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button>.composerMenuArrow{flex:0 0 auto}
html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button:hover,html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain>button[aria-expanded=true],html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button:hover{background:color-mix(in srgb,var(--text,#dce5de) 8%,transparent)}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout{position:fixed;box-sizing:border-box;padding:10px;overflow:auto;scrollbar-width:thin;background:var(--panel,#242724);color:var(--text,#dce5de);border:1px solid var(--line,#4b554d);border-radius:10px;box-shadow:0 8px 28px #0002;z-index:181}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout[hidden]{display:none}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout input{width:100%;box-sizing:border-box;background:var(--bg,#191919);border:1px solid var(--line,#4b554d);color:inherit;border-radius:7px;font-size:14px;padding:9px;margin-bottom:6px}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button{display:block;background:transparent;color:inherit;border:0;border-radius:6px;padding:8px;width:100%;text-align:left;white-space:normal;box-sizing:border-box;font-size:14px}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button strong{display:block;font-size:14px;overflow-wrap:anywhere;font-weight:600}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button small{display:block;color:var(--muted,#aebbb0);font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;margin-top:4px}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button[aria-pressed=true]{box-shadow:inset 2px 0 var(--green,#83a68e)}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout p{font-size:12px;color:var(--muted,#aebbb0);margin:6px 4px}.composerFlyout p:empty{display:none}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout .composerFlyBack{display:none}.composerFlyout.compact .composerFlyBack{display:block!important}
html body :is(#composerAddMenu,#agentAttachMenu).composerMenuV2 :focus-visible,html body :is(#composeForm,#chatForm) .composerToken button:focus-visible{outline:2px solid var(--green,#83a68e);outline-offset:1px}
html body #taskInputChips{margin:4px 0 8px;gap:6px;max-height:120px}
html body :is(#composeForm,#chatForm) .composerToken{background:transparent;border:0;border-radius:5px;padding:3px 4px;gap:3px;color:var(--text,#dce5de);font-size:14px}
html body :is(#composeForm,#chatForm) .composerToken strong{font-weight:700;overflow-wrap:anywhere}
html body :is(#composeForm,#chatForm) .composerToken button{opacity:0;width:20px;height:20px;padding:0;background:transparent;border:0;color:inherit;font-size:16px;line-height:20px}
html body :is(#composeForm,#chatForm) .composerToken:hover button,html body :is(#composeForm,#chatForm) .composerToken:focus-within button{opacity:1}
html body #composerSelectedAgent{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 4px;text-align:left}
html body #composerSelectedAgent[hidden],html body #taskInputChips[hidden]{display:none}
html body #taskInputDialog{background:var(--panel,#242724);color:var(--text,#dce5de);border-color:var(--line,#4b554d)}
html body #taskInputDialog button,html body #taskInputDialog input{color:inherit;background:transparent;border-color:var(--line,#4b554d)}
html body #taskInputDialog small,html body #taskInputDialog p{color:var(--muted,#aebbb0)}
@media(hover:none){html body :is(#composeForm,#chatForm) .composerToken button{opacity:1}}

.workspaceCreatePanel{padding:14px 0;border-top:1px solid var(--line,#4b554d)}.workspaceCreatePanel label{display:flex;flex-direction:column;gap:8px}.workspaceCreatePanel p{font-size:13px;color:var(--muted,#aebbb0)}

html body #taskInputChips{box-sizing:border-box;padding:4px 12px 0}html body #composerSelectedAgent{padding:0 12px}

/* The editable text and selected capabilities share one line box. */
html body :is(#composeForm,#chatForm) #prompt.composerInlineEditor{box-sizing:border-box;display:block;width:100%;min-height:86px;max-height:180px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;outline:0;border:0;background:transparent;color:var(--text,#ececec);padding:18px 19px 8px;font:400 13px/1.7 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;cursor:text}
html body #chatWorkspace #chatForm #prompt.composerInlineEditor{height:98px;min-height:72px;max-height:22vh;padding:15px 16px 5px;font-size:14px;line-height:1.6}
html body #prompt.composerInlineEditor[data-empty=true]:before{content:attr(placeholder);color:var(--muted,#888);pointer-events:none}
html body #prompt.composerInlineEditor[aria-disabled=true]{cursor:default;opacity:.65}
html body #prompt .composerInlineToken{display:inline;position:relative;background:transparent;border:0;padding:0;margin:0;font:inherit;white-space:pre-wrap;color:inherit}
html body #prompt .composerInlineToken strong{display:inline;font-size:inherit;line-height:inherit;font-family:inherit;font-weight:600;color:inherit}
html body #prompt .composerInlineIcon{font-size:inherit;font-weight:400;margin-right:.2em;user-select:none}
html body #prompt [data-kind=skill] .composerInlineIcon:before{content:'✦'}
html body #prompt [data-kind=plugin] .composerInlineIcon:before{content:'◇'}
html body #prompt .composerInlineRemove{position:absolute;right:-7px;top:-9px;width:14px;height:14px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:var(--panel,#292929);color:var(--text,#ececec);font:12px/14px sans-serif;opacity:0;cursor:pointer}
html body #prompt .composerInlineRemove:after{content:'×'}
html body #prompt .composerInlineToken:hover .composerInlineRemove,html body #prompt .composerInlineToken:focus-within .composerInlineRemove{opacity:1}
html body #prompt .composerInlineRemove:focus-visible{outline:2px solid var(--green);outline-offset:1px}
@media(hover:none){html body #prompt .composerInlineRemove{opacity:1}}

html body .composerFlyResults>a,html body #taskInputResults>a{display:block;font-size:12px;padding:4px 8px 10px;color:inherit;text-decoration:underline}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button:disabled small{white-space:normal;overflow-wrap:anywhere}

html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyout button:disabled{opacity:1;cursor:not-allowed}

/* Names stay in the compact list; details never change its row heights. */
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyResults button strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
html body :is(#composerAddMenu,#agentAttachMenu) .composerFlyResults button[aria-disabled=true]{color:var(--muted,#aebbb0);cursor:not-allowed}
html body :is(#composerAddMenu,#agentAttachMenu) .composerChoiceDetails{position:fixed;box-sizing:border-box;z-index:182;padding:12px 14px;overflow:auto;scrollbar-width:thin;border:1px solid var(--line,#4b554d);border-radius:10px;background:var(--panel,#242724);color:var(--text,#dce5de);box-shadow:0 8px 28px #0002;font:13px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;overflow-wrap:anywhere}
html body :is(#composerAddMenu,#agentAttachMenu) .composerChoiceDetails[hidden]{display:none}
html body :is(#composerAddMenu,#agentAttachMenu) .composerChoiceDetails strong{font-size:14px;font-weight:600}
html body :is(#composerAddMenu,#agentAttachMenu) .composerChoiceDetails p{margin:6px 0 0;color:var(--muted,#aebbb0);white-space:pre-wrap}
html body :is(#composerAddMenu,#agentAttachMenu) .composerChoiceDetails a{display:inline-block;margin-top:8px;color:inherit;text-decoration:underline}

/* Match the task composer field and attachment button on the agent page. */
html body #chatWorkspace #chatForm #prompt{height:auto;min-height:86px;max-height:180px;padding:18px 19px 8px;font-size:13px;line-height:1.7}
html body #chatForm .agentAttachWrap{flex-basis:32px;width:32px}
html body #chatForm #agentAttachAdd{width:32px;height:32px;font-size:24px}
@media(max-width:760px){html body #chatWorkspace #chatForm #prompt{min-height:73px;padding:13px 14px 5px}}

/* Original bottom toolbar: compact choices, wrapping rows, distinct actions. */
html body :is(#composeForm,#chatForm) :is(.composerTools,.agentComposerToolbar){display:flex;flex-wrap:wrap!important;align-items:center;gap:6px;min-width:0;padding:6px 10px 10px;margin:0;overflow:visible}
html body :is(#composeForm,#chatForm) :is(.composerOptions,.agentToolbarScroll){display:flex;flex:1 1 360px;flex-wrap:wrap;align-items:center;gap:3px 5px;min-width:0;overflow:visible;white-space:normal;padding:0;margin:0}
html body :is(#composeForm,#chatForm) :is(.composerOptions,.agentToolbarScroll)>label{display:inline-flex;flex:0 1 auto;align-items:center;min-width:0;max-width:100%;margin:0}
html body :is(#composeForm,#chatForm) :is(.composerOptions,.agentToolbarScroll) select{width:auto;max-width:155px;min-width:0;height:36px;padding:0 19px 0 5px;border:0;background:transparent;color:var(--text,#ececec);font-size:12px}
html body :is(#composeForm,#chatForm) .composerActions{position:static;display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;background:transparent;box-shadow:none}
html body :is(#composeForm,#chatForm) :is(.composerRunActions,.agentRunActions){display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
html body :is(#composeForm,#chatForm) .composerActions button{position:static;display:grid;place-items:center;flex:0 0 auto;width:40px;min-width:40px;height:40px;margin:0;padding:0;border-radius:9px}
html body :is(#composeForm,#chatForm) .composerActions .stop{width:auto;min-width:44px;padding:0 9px;font-size:12px;white-space:nowrap;background:transparent;color:var(--muted,#aaa);border:1px solid var(--line,#555)}
html body :is(#composeForm,#chatForm) .composerActions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html body :is(#composeForm,#chatForm) .modelNativeSelect{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;clip-path:inset(50%);pointer-events:none}
html body :is(#composeForm,#chatForm) .modelBrandHost{position:relative;flex:0 0 auto;max-width:100%}
html body :is(#composeForm,#chatForm) .modelBrandTrigger{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:36px;padding:0 5px;border:0;border-radius:7px;background:transparent;color:var(--text,#ececec);font:inherit;font-size:12px;cursor:pointer}
.modelBrandTrigger .modelBrandName{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modelBrandIcon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;flex:0 0 19px;vertical-align:middle;color:inherit}
.modelBrandIcon svg{display:block;width:100%;height:100%}
.modelBrandIcon[data-brand=openai],.modelBrandIcon[data-brand=runway]{color:inherit}
.modelBrandPanel{position:fixed;inset:auto;margin:0;z-index:10000;width:min(360px,calc(100vw - 24px));max-height:min(420px,60vh);overflow:auto;padding:6px;border:1px solid var(--line,#444);border-radius:12px;background:var(--panel,#292929);color:var(--text,#ececec);box-shadow:0 8px 28px #0002}
.modelBrandPanel[hidden]{display:none}
.modelBrandOption{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:8px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.modelBrandOption[aria-selected=true],.modelBrandOption:hover{background:var(--side,#222)}
.modelBrandOption:disabled{opacity:.45;cursor:not-allowed}
.modelBrandGroup{padding:8px;color:var(--muted,#aaa);font-size:11px}
.modelAutoSection{padding:9px 10px 8px}
.modelAutoTitle{display:block;margin-bottom:7px;color:var(--text,#eee);font-size:12px;font-weight:600}
.modelAutoSection input[type=range]{display:block;width:100%;min-height:22px;margin:0;padding:0;accent-color:#7567e8;cursor:pointer}
.modelAutoSection input[type=range][data-active=false]{opacity:.55}
.modelAutoLabels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:2px}
.modelAutoLabels button{min-width:0;padding:2px 1px;border:0;background:transparent;color:var(--muted,#888);font:inherit;font-size:10px;white-space:nowrap;cursor:pointer}
.modelAutoLabels button[aria-current=true]{color:#7350a5;font-weight:600}
.modelAutoDivider{height:1px;margin:2px 8px 5px;background:var(--line,#444);opacity:.55}
.modelAutoHover .modelAutoTitle{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400;margin:0;padding:6px 0;cursor:pointer}
.modelAutoHover .modelAutoLabels{display:none;position:fixed;z-index:10002;box-sizing:border-box;width:144px;grid-template-columns:1fr;text-align:left;margin:0;padding:5px;border:1px solid var(--line,#444);border-radius:10px;background:var(--panel,#292929);color:var(--text,#eee);box-shadow:0 8px 24px #0002}
.modelAutoHover.expanded .modelAutoLabels{display:grid}
.modelAutoHover .modelAutoLabels button{text-align:left;padding:8px;font-size:12px}
.modelAutoHover .modelAutoLabels button{border-radius:6px;transition:background-color .12s ease,color .12s ease}
.modelAutoHover .modelAutoLabels button:hover,.modelAutoHover .modelAutoLabels button:focus-visible{background:var(--side,#e5e1f0);color:var(--text,#eee);font-weight:650;outline:0}
.modelAutoHover .modelAutoLabels button[aria-current=true]{background:color-mix(in srgb,#8863d4 14%,transparent);color:#8863d4;font-weight:600}
html body label.search:has(#search){display:none!important}
html body #newTask{background:transparent!important;border:0!important;box-shadow:none!important}
.modelBrandTrigger:focus-visible,.modelBrandOption:focus-visible{outline:2px solid var(--green,#8dd5b0);outline-offset:1px}
html body :is(#composeForm,#chatForm) .composerActions [hidden]{display:none!important}
@media(max-width:600px){
 html body :is(#composeForm,#chatForm) :is(.composerTools,.agentComposerToolbar){gap:5px}
 html body #composeForm .composerOptions{flex-basis:calc(100% - 45px)}
 html body #chatForm .agentToolbarScroll{flex-basis:calc(100% - 45px)}
 html body :is(#composeForm,#chatForm) .composerActions{flex-basis:auto;max-width:100%}
 .modelBrandTrigger .modelBrandName{max-width:135px}
}
html body #chatForm .composerActions :is(#send,#agentVoiceInput){width:40px;min-width:40px;height:40px;min-height:40px;flex:0 0 40px;margin:0;padding:0}

html body :is(#composeForm,#chatForm) :is(#routingPolicyLabel,#routingProviderLabel,#agentRoutingLabel,#agentProviderLabel){display:none!important}
html body :is(#composeForm,#chatForm) label:has(>#effort),html body #chatForm #agentEffortLabel{display:none!important}
.modelChoiceRow{display:flex;align-items:center;gap:6px;min-width:0}
.modelChoiceRow>.modelBrandOption{flex:1;min-width:0}
.modelChoiceRow>.modelBrandOption>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modelEffortChoice{flex:0 0 72px;width:72px;min-height:36px;border:1px solid var(--line,#444);border-radius:7px;background:var(--panel,#292929);color:var(--text,#eee);padding:4px;font:inherit;font-size:12px}
.modelRoutingSetting{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;color:var(--text,#eee)}
.modelRoutingSetting small{flex-basis:100%;font-size:11px;color:var(--muted,#999)}

/* Model-specific preferences live in the hover/tap details, never in each row. */
.modelHoverPanel{box-sizing:border-box;display:block;overflow:hidden}
.modelHoverPanel[hidden]{display:none}
.modelBrandList{min-width:0;max-height:220px;overflow:auto;overscroll-behavior:contain}
.modelEffortDetails{position:fixed;z-index:10003;width:240px;margin:0;min-width:0;overflow:visible;border:1px solid var(--line,#444);border-radius:10px;background:var(--panel,#292929);box-shadow:0 8px 24px #0002;padding:8px;box-sizing:border-box;color:var(--text,#eee)}
.modelEffortDetails[hidden]{display:none!important}
.modelEffortHeader{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;align-items:center;text-align:center;gap:4px}
.modelEffortHeading{min-width:0;display:flex;align-items:center;justify-content:center;gap:5px}
.modelEffortHeading strong{font-size:11px;font-weight:500;color:var(--muted,#888);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modelEffortPreview{font-size:13px;font-weight:650}
.modelEffortBolt{font-size:15px;line-height:20px;color:var(--muted,#999)}
.modelEffortReset{width:20px;height:20px;padding:0;border:0;background:transparent;color:var(--muted,#999);font-size:15px;line-height:20px;cursor:pointer}
.modelEffortDetails input[type=range]{display:block;width:100%;padding:0;margin:5px 0 3px;accent-color:#6f63ff;min-height:22px;cursor:pointer}
.modelEffortTicks{display:flex;justify-content:space-between;gap:4px;font-size:11px;color:var(--muted,#aaa)}
.modelEffortSaveStatus{display:none!important}
.modelDetailsBack{min-height:30px;border:1px solid var(--line,#444);border-radius:7px;padding:4px 9px;background:transparent;color:inherit;font:inherit;font-size:11px;cursor:pointer}
.modelDetailsBack{display:none}
.modelEffortDetails :is(input,button):disabled{opacity:.45;cursor:not-allowed}
.modelEffortBadge{font-size:11px;white-space:nowrap;font-weight:500}
.modelEffortBadge[data-effort=auto]{color:var(--muted,#888)}
:is(.modelEffortBadge,.modelEffortPreview)[data-effort=low]{color:#80758d}
:is(.modelEffortBadge,.modelEffortPreview)[data-effort=medium]{color:#8863a5}
:is(.modelEffortBadge,.modelEffortPreview)[data-effort=high]{color:#8650b5}
:is(.modelEffortBadge,.modelEffortPreview)[data-effort=xhigh]{color:#7934af}
:is(.modelEffortBadge,.modelEffortPreview)[data-effort=ultra],:is(.modelEffortBadge,.modelEffortPreview)[data-effort=max]{color:#692199}
html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=low]{color:#bab0c4}
html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=medium]{color:#c3a5e0}
html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=high]{color:#c195ee}
html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=xhigh]{color:#bb8aef}
html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=ultra],html:is([data-wh-theme=dark],[data-wh-theme=navy]) :is(.modelEffortBadge,.modelEffortPreview)[data-effort=max]{color:#b380f2}
@media(max-width:759px){
 .modelHoverPanel{display:block;overflow:auto}
 .modelEffortDetails{padding:8px;max-height:none;overflow:visible}
}

/* Compact references share one rhythm; skill identity is distinct from files. */
html body :is(#composeForm,#chatForm) #taskInputChips{gap:3px 6px;margin:2px 0 4px;padding:2px 12px 0;align-items:center}
html body :is(#composeForm,#chatForm) .taskInputChip.composerToken{position:relative;gap:2px;max-width:min(30ch,100%);min-width:0;padding:2px 19px 2px 1px;font-size:13px;line-height:1.45}
html body :is(#composeForm,#chatForm) .taskInputChip.composerToken strong{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
html body :is(#composeForm,#chatForm) .taskInputChip.composerToken button{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);width:18px;height:22px;padding:0;margin:0;line-height:1}
html body :is(#composeForm,#chatForm) #prompt .composerInlineToken{display:inline-flex;align-items:baseline;max-width:calc(100% - 16px);vertical-align:baseline;margin:0 3px 0 0;line-height:inherit}
html body :is(#composeForm,#chatForm) #prompt .composerInlineToken strong{display:inline-block;max-width:30ch;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
html body :is(#composeForm,#chatForm) #prompt .composerInlineToken[data-kind=skill]{color:#bfa6ee}
html[data-wh-theme=light] body :is(#composeForm,#chatForm) #prompt .composerInlineToken[data-kind=skill],html[data-wh-theme=paper] body :is(#composeForm,#chatForm) #prompt .composerInlineToken[data-kind=skill]{color:#77519e}
@media(hover:none){html body :is(#composeForm,#chatForm) .taskInputChip.composerToken{padding-inline-end:25px}html body :is(#composeForm,#chatForm) .taskInputChip.composerToken button{width:24px;height:28px}html body :is(#composeForm,#chatForm) #prompt .composerInlineToken{padding-inline-end:9px}}

/* Video previews size to the frame instead of stretching across the gallery. */
html body :is(.message.assistant,#chatWorkspace .bubble.assistant) .generatedMediaGallery .generatedFile.generatedMedia:has(> .generatedMediaOpen > video){width:fit-content;max-width:min(100%,480px);justify-self:start;align-self:start}
html body :is(.message.assistant,#chatWorkspace .bubble.assistant) .generatedMediaGallery .generatedFile.generatedMedia:has(> .generatedMediaOpen > video):only-child{grid-column:1/-1}
html body :is(.message.assistant,#chatWorkspace .bubble.assistant) .generatedMediaGallery .generatedFile.generatedMedia .generatedMediaOpen:has(> video){width:100%;height:auto;max-height:none;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;background:transparent}
html body :is(.message.assistant,#chatWorkspace .bubble.assistant) .generatedMediaGallery .generatedFile.generatedMedia .generatedMediaOpen > video{width:auto;height:auto;max-width:100%;max-height:320px;object-fit:contain}

/* Keep translated menu labels usable within a short phone viewport. */
@media(max-width:619px){html body :is(#composerAddMenu,#agentAttachMenu) .composerMenuMain{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain}}
