/* CamOS message bar, shaped like Codex's composer (Cam, Nov 1). The one look for every web message bar: the dashboard's
   components/ui/composer.tsx renders these classes (its controls are the kit's own Buttons), and plain-JS pages use
   the same markup (message-bar.js, the signed-out landing, Telegram's shared bar). Imported into the dashboard bundle
   (index.css) and linked by index.html and the signed-out pages. Change it here only. Kit tokens only.
   Markup: <div class="cui-prompt-tray">…</div>               optional tray behind the bar's top (project, computer)
           <form class="cui-prompt">
             <div class="cui-prompt-top">notes, reply/quote chips (full width)</div>
             <div class="cui-prompt-attachments">Attachment chips</div>
             <div class="cui-prompt-body"><textarea class="cui-prompt-textarea"></textarea></div>   first row
             <div class="cui-prompt-row">an extra row under the text (style chips)</div>
             <div class="cui-prompt-leading">+ and tools</div>                                       second row, left
             <div class="cui-prompt-trailing">level, mic, voice, send</div>                          second row, right
             <div class="cui-prompt-full">replaces both while dictating</div>
             <div class="cui-prompt-drop" aria-hidden="true"></div>
           </form>
   Numbers below are Codex's own (ChatGPT.app 26.1027 app.asar CSS, checked against Cam's screenshot); "Codex: x" marks a
   value the kit has no token for. On a computer the empty bar is exactly 98px tall: 8 + 6 above the text, a 44px first
   row (20px line), 4 gap, 28px controls, 8 below; it grows line by line to 25dvh of text, then scrolls.
   [data-layout=inline] (agent chat, service chats, Imagine's folded phone pill): one slim row, the text between the controls. */
@layer theme,camos;
@layer camos{
.cui-prompt,.cui-prompt-tray{
  --composer-radius:22px; /* Codex: 22px */
  --cui-prompt-weight:430; /* Codex: 430 */
  --cui-prompt-control:36px;--cui-prompt-disc:36px;--cui-prompt-icon:var(--control-icon-size-xl); /* bigger than Codex's 28 (Cam, Nov 1) */
  --cui-prompt-control-font:14px;--cui-prompt-control-line:20px;
  --cui-prompt-chip-pad:0 12px;--cui-prompt-approve-pad:0 10px}
/* Dark: the bar Codex paints on Cam's screen. */
[data-theme=dark] :is(.cui-prompt,.cui-prompt-tray){--composer-background-color:#2f2f2f} /* Codex: #2f2f2f */
.cui-prompt{
  --cui-prompt-line:var(--font-text-sm-line-height);--cui-prompt-font:var(--font-text-sm-size);
  --cui-prompt-pad:8px;--cui-prompt-pad-bottom:8px;--cui-prompt-text-x:4px;--cui-prompt-text-y:6px;--cui-prompt-text-b:0px;
  --cui-prompt-text-min:calc(var(--cui-prompt-text-y) + 44px + var(--cui-prompt-text-b));
  --cui-prompt-max:calc(25dvh + var(--cui-prompt-text-y) + var(--cui-prompt-text-b)); /* Codex: 25dvh of text */
  position:relative;z-index:10;display:flex;flex-wrap:wrap;align-items:center;column-gap:5px;row-gap:4px;box-sizing:border-box; /* Codex: 5px, 4px */
  width:100%;min-width:0;max-width:100%;margin:0;padding:var(--cui-prompt-pad) var(--cui-prompt-pad) var(--cui-prompt-pad-bottom);
  border:0;border-radius:var(--composer-radius);color:var(--color-text);font-weight:var(--cui-prompt-weight);container:composer/inline-size;
  background:var(--composer-background-color);
  box-shadow:0 0 0 1px #0000000a,0 2px 8px 0 #0000000a,0 4px 80px 8px #00000006} /* Codex: --elevation-composer */
/* Dark: Codex's soft inner edge, no drop shadow. */
[data-theme=dark] .cui-prompt{box-shadow:inset 0 0 1px 0 #fff3} /* Codex: --elevation-composer-dark */
/* The slim bar sits right under the last message: the kit's hairline and small shadow, not Codex's 80px spread, which greyed that message (Cam, Nov 1). */
.cui-prompt[data-layout=inline]:not([data-theme=dark] *){box-shadow:var(--shadow-hairline),var(--shadow-100)}
.cui-prompt[hidden]{display:none}
/* With attachments above it the text starts 6px under them instead of 14px from the top. */
.cui-prompt:has(>.cui-prompt-attachments:not(:empty):not([hidden])){--cui-prompt-text-y:2px}
.cui-prompt>*{flex:1 1 100%;min-width:0;box-sizing:border-box}
.cui-prompt>[hidden]{display:none!important}
.cui-prompt>.cui-prompt-top{order:-3}
.cui-prompt>.cui-prompt-attachments{order:-2;display:flex;flex-wrap:wrap;gap:6px;padding:0 var(--cui-prompt-text-x)}
.cui-prompt>.cui-prompt-attachments:empty,.cui-prompt>.cui-prompt-top:empty,.cui-prompt>.cui-prompt-top:not(:has(>:not([hidden]))){display:none}
.cui-prompt>.cui-prompt-body{order:-1;position:relative;display:flex;flex-direction:column;cursor:text}
.cui-prompt>.cui-prompt-row{order:0}
.cui-prompt>.cui-prompt-row:empty{display:none}
.cui-prompt>.cui-prompt-leading{order:1;flex:0 1 auto;display:flex;align-items:center;gap:5px;min-height:var(--cui-prompt-control)} /* Codex: 5px */
/* The level chip touches the mic; the send disc sits 8px after it (margin below). */
.cui-prompt>.cui-prompt-trailing{order:2;flex:none;display:flex;align-items:center;justify-content:flex-end;gap:0;margin-inline-start:auto;min-height:var(--cui-prompt-control)}
.cui-prompt>.cui-prompt-leading:empty,.cui-prompt>.cui-prompt-trailing:empty{display:none}
.cui-prompt>.cui-prompt-full{order:3}
/* One slim row (agent chat, Telegram and the other service chats, Imagine's folded pill): leading · text · trailing,
   44px tall on a computer; more lines grow the text and the controls stay on the bottom line. */
.cui-prompt[data-layout=inline]{--cui-prompt-text-min:var(--cui-prompt-control);--cui-prompt-text-y:calc((var(--cui-prompt-control) - var(--cui-prompt-line)) / 2);--cui-prompt-text-b:var(--cui-prompt-text-y);--cui-prompt-pad-bottom:var(--cui-prompt-pad);align-items:flex-end}
.cui-prompt[data-layout=inline]>.cui-prompt-leading{order:-1}
.cui-prompt[data-layout=inline]>.cui-prompt-body{order:0;flex:1 1 0}
.cui-prompt[data-layout=inline]>.cui-prompt-trailing{order:1;margin-inline-start:0}

/* The text: the plain textarea and the chats' Lexical editor share these metrics. */
.cui-prompt .cui-prompt-textarea,.cui-prompt .cui-prompt-body .aui-lexical-input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:var(--cui-prompt-text-min);max-height:var(--cui-prompt-max);margin:0;
  padding:var(--cui-prompt-text-y) var(--cui-prompt-text-x) var(--cui-prompt-text-b);border:0;border-radius:0;outline:none;resize:none;overflow-y:auto;
  background:transparent;box-shadow:none;color:inherit;caret-color:var(--color-text);font:inherit;font-size:var(--cui-prompt-font);line-height:var(--cui-prompt-line);-webkit-appearance:none;appearance:none}
.cui-prompt .cui-prompt-textarea{field-sizing:content}
/* WCAG AA on the bar's fill (Nov 1; signed-out pages too): the kit's tertiary is 3.2:1 in light and 4.1:1 in dark, its secondary 6.6 and 5.9. */
.cui-prompt{--color-text-tertiary:var(--color-text-secondary);--input-placeholder-text-color:var(--color-text-secondary)}
.cui-prompt .cui-prompt-textarea::placeholder{color:var(--input-placeholder-text-color);opacity:1}
.cui-prompt .cui-prompt-textarea:focus,.cui-prompt .cui-prompt-textarea:focus-visible{outline:none;box-shadow:none}
.cui-prompt .cui-prompt-textarea:disabled{cursor:not-allowed;color:var(--color-text-disabled)}
/* Lexical: the scroll box is the editor's wrapper, so the editor itself grows freely inside it. */
.cui-prompt .cui-prompt-body .camos-composer-input{min-height:var(--cui-prompt-text-min);max-height:var(--cui-prompt-max);padding:0;overflow-y:auto;color:var(--color-text);font-size:var(--cui-prompt-font);line-height:var(--cui-prompt-line)}
.cui-prompt .cui-prompt-body .aui-lexical-input{max-height:none;overflow:visible}
.cui-prompt .cui-prompt-body .aui-lexical-input p{margin:0;line-height:var(--cui-prompt-line)}
.cui-prompt .cui-prompt-body .aui-lexical-placeholder{top:var(--cui-prompt-text-y);left:var(--cui-prompt-text-x);right:var(--cui-prompt-text-x);font-size:var(--cui-prompt-font);line-height:var(--cui-prompt-line);color:var(--input-placeholder-text-color)}
/* The cycling placeholder (camos-prompt.js cyclePlaceholder): where the field's own placeholder sits; lines rise from
   below and leave upward. Reduced motion: no overlay, the field's placeholder stays still. */
.cui-prompt-ph{position:absolute;top:var(--cui-prompt-text-y,6px);left:var(--cui-prompt-text-x,4px);right:var(--cui-prompt-text-x,4px);height:var(--cui-prompt-line);overflow:hidden;pointer-events:none;
  color:var(--input-placeholder-text-color);font-size:var(--cui-prompt-font);line-height:var(--cui-prompt-line)}
.cui-prompt-ph-hidden{visibility:hidden}
.cui-prompt-ph-line{position:absolute;inset:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:transform .45s var(--cubic-enter),opacity .45s var(--transition-ease-basic)}
.cui-prompt-ph-below{transform:translateY(100%);opacity:0;transition:none}
.cui-prompt-ph-above{transform:translateY(-100%);opacity:0}

/* The tray behind the bar (Codex; a new chat only): a darker surface exactly as wide as the bar, rounded on top with the
   bar's own radius, 38px showing (5 + 28 + 5). Its lower part runs a full corner radius under the bar, so the bar's
   rounded top corners sit in the tray's colour: two stacked rounded surfaces, no cut-out. No outline. Its controls are the
   kit's ghost Buttons (28px), 8px apart and 8px in, lined up with the bar's "+". */
.cui-composer-tray{background:var(--color-surface-secondary)}
.cui-prompt-tray{background:var(--color-surface-tertiary)}
[data-theme=dark] :is(.cui-prompt-tray,.cui-composer-tray){background:#212121} /* Codex: #212121 */
.cui-prompt-tray{position:relative;z-index:0;display:flex;align-items:center;gap:8px;min-width:0;box-sizing:border-box;
  /* Narrower than the bar, 14px in on each side, like Codex (Cam, Nov 20 2026): the bar's ends stick out past the tray. */
  margin:0 14px calc(var(--composer-radius) * -1);padding:5px 8px calc(var(--composer-radius) + 5px);
  border-radius:var(--composer-radius) var(--composer-radius) 0 0;color:var(--color-text);font-weight:var(--cui-prompt-weight);
  font-size:var(--cui-prompt-control-font);line-height:var(--cui-prompt-control-line)}
.cui-prompt-tray .cui-prompt-tray-button{min-width:0;max-width:224px;padding:var(--cui-prompt-chip-pad);--button-gap:6px} /* Codex: 224px, 6px */
.cui-prompt-tray .cui-prompt-tray-button>span{min-width:0}

/* Every control in the bar and the strip is a kit Button; these set its own variables to Codex's numbers (28px, fully
   round, 16px icon, 13/18 text; ghost hover 8% white / 5% ink; focus: a 2px ring with no gap). */
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant]:not(:where(.cui-work-popover *)){
  --button-radius:var(--radius-full);--button-font-size:var(--cui-prompt-control-font);--button-font-weight:var(--cui-prompt-weight);
  --button-icon-size:var(--cui-prompt-icon);--button-icon-offset:0px;--button-gap:4px;--button-ring-color:var(--color-ring);--button-ring-offset:0px;--scale:1;
  line-height:var(--cui-prompt-control-line)}
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant=ghost]:is([data-color=primary],[data-color=secondary]):not(:where(.cui-work-popover *)){
  --button-background-color:var(--color-background-primary-ghost-hover);--button-background-color-active:var(--color-background-primary-ghost-hover)}
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant=ghost][data-color=primary]:not(:where(.cui-work-popover *)){--button-text-color:var(--color-text);--button-text-color-hover:var(--color-text)}
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant=ghost][data-color=secondary]:not(:where(.cui-work-popover *)){--button-text-color:var(--color-text-tertiary);--button-text-color-hover:var(--color-text-tertiary)}
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant=ghost]:is([aria-expanded=true],[data-state=open])::before{opacity:1}
:where(.cui-prompt-leading,.cui-prompt-trailing,.cui-prompt-full,.cui-prompt-tray) button[data-variant=ghost]:is([data-disabled],:disabled){opacity:.4;cursor:default} /* Codex: .4 */
/* Send and stop (the send spot): the solid colour, no hover change; disabled is the same disc at half strength. */
:where(.cui-prompt-trailing,.cui-prompt-full) button[data-variant=solid][data-color=primary]{
  --button-background-color:var(--color-background-primary-solid);--button-background-color-hover:var(--color-background-primary-solid);--button-background-color-active:var(--color-background-primary-solid);
  --button-text-color:var(--color-text-primary-solid);--button-ring-color:var(--color-background-primary-solid)}
:where(.cui-prompt-trailing,.cui-prompt-full) button[data-variant=solid][data-color=primary]:is([data-disabled],:disabled):not([aria-hidden=true]){opacity:.5;cursor:default} /* Codex: .5 */
/* The Mac app draws this strip natively; keep its room so the chat stays clear of it. */
.cui-composer-stack:has(.cui-composer[data-native-mac-composer-active=true])>.cui-prompt-tray{visibility:hidden}

/* The approval pill (permission-picker.tsx ApprovalPill): the kit's ghost Button, tertiary, the kit's warning colour at
   Full access. Icon only in a narrow bar. */
.cui-prompt .cui-approve-toggle:not([data-uniform]){padding:var(--cui-prompt-approve-pad)}
@container composer (max-width:480px){.cui-prompt .cui-approve-label{display:none}.cui-prompt .cui-approve-toggle:not([data-uniform]){width:var(--cui-prompt-control);padding:0}} /* Codex: 480px */

/* Agents at work (agents-at-work.tsx): the same 28px kit Button; the avatars are 6px from the label. */
.cui-prompt .cui-agents-trigger{padding:var(--cui-prompt-approve-pad);--button-gap:6px}

/* The send spot (chat-composer.tsx): crossfading kit Button discs (send, stop, queue, dictation, voice) in one place. */
.cui-prompt .cui-primary-action{position:relative;flex:none;width:var(--cui-prompt-disc);height:var(--cui-prompt-disc);margin-inline-start:8px} /* Codex: 8px */
.cui-prompt .cui-primary-action>*{position:absolute;inset:0}
.cui-prompt .cui-primary-action>[aria-hidden=true] svg{transform:scale(.6);opacity:0}
.cui-prompt .cui-primary-action svg{transition:transform .28s var(--cubic-enter),opacity .28s var(--transition-ease-basic)}
.cui-prompt .cui-composer-disc{margin-inline-start:8px} /* Codex: 8px */

/* The level chip (level-pill.tsx, a kit Button): Codex's model chip, 14px icon, name, 16px tertiary chevron; 4px apart.
   Only in a very narrow bar does it shrink to its icon. */
.cui-prompt .cui-level-pill:not(.gi-level){padding:var(--cui-prompt-chip-pad)}
.cui-prompt .cui-level-pill .cui-level-chevron{color:var(--color-text-tertiary)}
@container composer (max-width:300px){
  .cui-prompt .cui-level-pill:not(.gi-level){width:var(--cui-prompt-control);padding:0}
  .cui-prompt .cui-level-pill:not(.gi-level) :is(.mp-pill-name,.cui-level-chevron){display:none}
  .cui-prompt .cui-level-pill:not(.gi-level) .cui-level-icon{width:var(--cui-prompt-icon);height:var(--cui-prompt-icon)}
}
/* Other pills in the bar (the plain-JS model pill, Atlas's): the same chip without the kit Button. */
.cui-prompt .mp-pill{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;min-width:0;max-width:100%;height:var(--cui-prompt-control);padding:var(--cui-prompt-chip-pad);border-radius:var(--radius-full);background:transparent;color:var(--color-text);
  font-size:var(--cui-prompt-control-font);line-height:var(--cui-prompt-control-line);font-weight:var(--cui-prompt-weight)}
.cui-prompt .mp-pill:hover:not(:disabled),.cui-prompt .mp-pill[aria-expanded=true]{background:var(--color-background-primary-ghost-hover)}
.cui-prompt .mp-pill .mp-pill-chevron{width:16px;height:16px;color:var(--color-text-tertiary)}
.cui-prompt .mp-pill-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cui-prompt>.cui-prompt-leading>button:not([data-variant]):not(.cui-prompt-button){min-height:var(--cui-prompt-control)}

/* Plain-JS controls (pages without React): the same sizes and colours as the kit Buttons the dashboard uses
   (ghost primary icon buttons; the solid primary disc, disabled while there's nothing to send). */
.cui-prompt .cui-prompt-button{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:var(--cui-prompt-control);height:var(--cui-prompt-control);min-width:0;margin:0;padding:0;
  border:0;border-radius:var(--radius-full);background:transparent;color:var(--color-text);cursor:pointer;
  transition:background-color var(--transition-duration-basic) var(--transition-ease-basic),color var(--transition-duration-basic) var(--transition-ease-basic);-webkit-tap-highlight-color:transparent}
@media (hover:hover) and (pointer:fine){.cui-prompt .cui-prompt-button:hover:not(:disabled){background:var(--color-background-primary-ghost-hover)}}
.cui-prompt .cui-prompt-button:focus-visible{outline:2px solid var(--color-ring);outline-offset:0}
.cui-prompt .cui-prompt-submit:focus-visible{outline:2px solid var(--color-background-primary-solid);outline-offset:0}
.cui-prompt .cui-prompt-button:disabled{opacity:.4;cursor:default} /* Codex: .4 */
.cui-prompt .cui-prompt-button[hidden],.cui-prompt .cui-prompt-submit[hidden]{display:none}
.cui-prompt :is(.cui-prompt-button,.cui-prompt-submit,.cui-composer-control.cui-button,.cui-composer-disc.cui-button) svg{width:var(--cui-prompt-icon);height:var(--cui-prompt-icon);flex:none}
.cui-prompt .cui-prompt-submit{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:var(--cui-prompt-disc);height:var(--cui-prompt-disc);margin:0 0 0 8px;padding:0;
  border:0;border-radius:var(--radius-full);background:var(--color-background-primary-solid);color:var(--color-text-primary-solid);cursor:pointer;
  transition:opacity var(--transition-duration-basic) var(--transition-ease-basic);-webkit-tap-highlight-color:transparent}
.cui-prompt .cui-prompt-submit:disabled{opacity:.5;cursor:default} /* Codex: .5 */
.cui-prompt .cui-prompt-submit[data-state=stop] svg{width:12px;height:12px;fill:currentColor}

/* Files dragged over the bar or its chat: one drop layer on the bar itself, the kit's info colour over the bar's own, "Drop to attach". */
.cui-prompt>.cui-prompt-drop{position:absolute;inset:0;z-index:5;flex:none;display:grid;place-items:center;border-radius:inherit;pointer-events:none;opacity:0;
  background:color-mix(in oklab,var(--color-background-info-solid) 10%,var(--composer-background-color));box-shadow:inset 0 0 0 1.5px var(--color-ring);color:var(--color-text-info);
  font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);font-weight:var(--font-weight-medium);
  transition:opacity var(--transition-duration-basic) var(--transition-ease-basic)}
.cui-prompt[data-dragging]>.cui-prompt-drop{opacity:1}

/* Narrow bar: the level/model pill keeps its name and chevron only. */
@container composer (max-width:520px){.cui-prompt .mp-pill :is(.mp-pill-effort,.mp-pill-bolt){display:none}.cui-prompt .mp-pill{padding-inline:6px;gap:2px}}
@container composer (max-width:300px){.cui-prompt .mp-pill:not(.cui-level-pill) .mp-pill-name{display:none}}

/* Phones: Codex's browser composer (101px tall when empty: 15 + 26 + 16 above its 36px controls, 8 below, 28px radius,
   text 16/26 starting 18px in, placeholder at full tertiary, a 36px disc 8px from the edge), but CamOS keeps 44px touch
   targets: they reach 4px past where Codex's 36px controls end, so their centres land where Codex's do. */
@media (max-width: 767px), (max-width: 1024px) and (max-height: 500px) and (pointer: coarse){
  .cui-prompt,.cui-prompt-tray{--composer-radius:28px; /* Codex: 28px */
    --cui-prompt-control:44px;--cui-prompt-disc:36px;--cui-prompt-icon:var(--control-icon-size-lg);
    --cui-prompt-control-font:16px;--cui-prompt-control-line:26px; /* Codex: 16/26 */
    --cui-prompt-chip-pad:0 12px 0 14px;--cui-prompt-approve-pad:0 12px 0 14px} /* Codex: 14px, 12px */
  .cui-prompt{--cui-prompt-font:var(--font-text-md-size);--cui-prompt-line:26px; /* Codex: 16 x 1.625 */
    --cui-prompt-pad-bottom:4px;--cui-prompt-text-x:10px;--cui-prompt-text-y:7px;--cui-prompt-text-b:12px;--cui-prompt-text-min:calc(var(--cui-prompt-text-y) + var(--cui-prompt-line) + var(--cui-prompt-text-b));
    column-gap:0;row-gap:0;box-shadow:0 0 0 1px #0000000a,0 2px 8px 0 #0000000a,0 4px 40px 8px #00000006} /* Codex: --elevation-composer under 40rem */
  .cui-prompt:has(>.cui-prompt-attachments:not(:empty):not([hidden])){--cui-prompt-text-y:21px} /* Codex: 6 + 15 under attachments */
  @supports (corner-shape:superellipse(1.1)){.cui-prompt{corner-shape:superellipse(1.1)}} /* Codex: superellipse(1.1) */
  .cui-prompt>:is(.cui-prompt-leading,.cui-prompt-trailing){gap:0}
  .cui-prompt>.cui-prompt-leading{margin-inline-start:-4px}
  /* Imagine's folded one-row pill keeps its even padding. */
  .cui-prompt[data-layout=inline]{--cui-prompt-pad:6px;--cui-prompt-pad-bottom:6px;--cui-prompt-text-x:6px}
  .cui-prompt[data-layout=inline]>.cui-prompt-leading{margin-inline-start:0}
  .cui-prompt .cui-primary-action,.cui-prompt .cui-composer-disc{margin-inline:4px 0}
  .cui-prompt .cui-prompt-submit{margin-inline:4px 0}
  .cui-prompt :is(.cui-agents-trigger,.cui-composer-control){--button-size:44px;min-width:44px}
  .cui-prompt .cui-composer-disc{--button-size:36px;min-width:36px}
}
.cui-prompt[data-safe-bottom]{margin-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-reduced-motion:reduce){.cui-prompt,.cui-prompt *,.cui-prompt *::before{transition:none!important}}

/* Plain-JS bar extras (message-bar.js): a note line above the bar, the level/model pill slot, the greyed suggested reply
   (the placeholder itself, a little brighter), and toggled buttons (listening, pressed). */
.cui-prompt-note{margin:0 8px 6px;font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);color:var(--color-text-secondary)}
.cui-prompt-note[data-kind=error]{color:var(--color-text-danger)}
.cui-prompt-note[hidden]{display:none}
.cui-prompt .cui-prompt-textarea[data-suggesting]::placeholder{color:color-mix(in srgb,var(--color-text) 45%,transparent)}
.cui-prompt .cui-prompt-button.is-on{color:var(--color-text-danger)}
.cui-prompt .cui-prompt-button[aria-pressed=true]{color:var(--color-ring)}

/* shadcn Attachment chip for the plain-JS bars: the dashboard's components/ui/attachment.tsx at size "sm" (change both
   together): hairline card, 32px media square (a photo/video thumbnail or the file's icon), name and size, remove ×.
   Markup: <div class="cui-attachment"><span class="cui-attachment-media"><img></span><span class="cui-attachment-content">
   <span class="cui-attachment-title">name</span><span class="cui-attachment-description">2 MB</span></span>
   <button class="cui-attachment-action" aria-label="Remove">×</button></div> */
.cui-attachment{position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;width:fit-content;min-width:0;max-width:min(240px,100%);padding:6px 6px 6px 6px;
  border:var(--shadow-hairline-width) solid var(--shadow-hairline-color);border-radius:var(--radius-xl);background:var(--color-surface-elevated);color:inherit;font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height)}
.cui-attachment-media{position:relative;display:grid;place-items:center;flex:none;width:32px;height:32px;overflow:hidden;border-radius:var(--radius-md);background:var(--color-background-primary-surface)}
.cui-attachment-media :is(img,video){display:block;width:100%;height:100%;object-fit:cover}
.cui-attachment-media svg{width:16px;height:16px}
.cui-attachment-content{display:flex;flex-direction:column;min-width:0;flex:1}
.cui-attachment-title{min-width:0;overflow:hidden;font-weight:var(--font-weight-medium);text-overflow:ellipsis;white-space:nowrap}
.cui-attachment-description{min-width:0;margin-top:2px;overflow:hidden;color:var(--color-text-secondary);text-overflow:ellipsis;white-space:nowrap}
.cui-attachment-action{display:grid;place-items:center;flex:none;width:24px;height:24px;margin:0;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-secondary);cursor:pointer}
.cui-attachment-action:hover{background:var(--color-background-primary-ghost-hover);color:inherit}
.cui-attachment-action svg{width:16px;height:16px}

/* The chip editor (composer-input.tsx) and every @ chip in a bar: picture and name inline with the text. A sent message has only the bold
   @name (.cui-mention-sent). Here, not in the bundle, so the Inbox (a page without the bundle's styles) draws the same ones. */
.camos-composer-input{position:relative}
.camos-composer-input .aui-lexical-input{outline:none;white-space:pre-wrap;overflow-wrap:anywhere}
.camos-composer-input .aui-lexical-placeholder{position:absolute;pointer-events:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cui-mention-chip{color:inherit;font-weight:var(--font-weight-medium);text-decoration:none;white-space:nowrap}
.camos-composer-input .cui-mention-chip{margin:0 1px}
a.cui-mention-chip{cursor:pointer}
.cui-mention-sent{color:inherit;font-weight:var(--font-weight-semibold)}
.td-message-by{display:flex;align-items:center;gap:4px;margin-bottom:2px;color:var(--color-text-secondary);font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height);font-weight:var(--font-weight-medium)}
.td-message-by :is(img,svg){width:16px;height:16px;border-radius:var(--radius-full);object-fit:cover}
a.cui-mention-chip:hover{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cui-mention-chip-logo{display:inline-block;width:1em;height:1em;margin-inline-end:.25em;vertical-align:-.125em;border-radius:var(--radius-2xs);object-fit:contain}
.cui-mention-chip:is([data-directive-type=agent],[data-directive-type=person],[data-directive-type=telegram]) .cui-mention-chip-logo{border-radius:var(--radius-full);object-fit:cover}
}
