/* Composer — owner ruling 23 Sep 2026: a soft-corner rectangle in every state (single line, expanded, voice) on every device.
   Uses the card radius token so the composer matches the cards and tenant radius settings. The round send/mic controls are unchanged.
   Keyed on #inputBar so no device, height or state rule in the older sheets can put the pill back.
   master.css squares the composer's top corners whenever it follows the voice stage, even while that stage is hidden; that only
   applies now when the voice bar is actually showing, and the voice bar's own top corners use the same radius. */
#inputBar.composer{border-radius:var(--r-card,var(--ds-radius-12))}
.screen .voice-bar{border-radius:var(--r-card,var(--ds-radius-12)) var(--r-card,var(--ds-radius-12)) 0 0}

/* The fitted particle ink fills the control, independent of the ordinary icon size. */
#inputBar .send.conversation-orb .orb,
#inputBar .send.conversation-orb .orb svg{width:100%;height:100%}
/* A speech failure is readable content in the field row, never an overlay on a draft or controls. */
#inputBar.has-voice-status .composer-row{flex-direction:column}
#voiceStatus{font:inherit;font-size:var(--composer-font);line-height:1.5;color:var(--muted);white-space:normal;overflow-wrap:anywhere;padding:0 0 8px}

/* Voice notices float as a 3-second pill above the composer (owner ruling 24 Sep 2026): tenant primary colour, white text, centred.
   Absolutely positioned, so the composer and the welcome above it never change size. */
#composer.composer-wrap{position:relative}
#composer .voice-toast{position:absolute;left:0;right:0;margin-inline:auto;width:fit-content;bottom:calc(100% + 10px);z-index:var(--ds-z-toast);max-width:min(760px,calc(100% - 2 * var(--edge,16px)));padding:9px 18px;border-radius:var(--ds-radius-pill);background:var(--accent);color:#fff;font-size:max(var(--ds-fs-13),calc(14 * var(--st,1px)));font-weight:600;line-height:1.4;text-align:center;text-wrap:balance;box-shadow:0 8px 24px -8px color-mix(in srgb,var(--accent) 60%,transparent);opacity:0;transform:translateY(6px);transition:opacity .2s ease,transform .2s ease;pointer-events:none}
#composer .voice-toast.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){#composer .voice-toast{transition:none}}
/* Voice conversation in the bar (owner, 13 Nov 2026, conversation mode round 3, C; replaces the voice pill of 17 Oct and
   4 Nov 2026). In a conversation the answer bar keeps its shape, its size and its outline exactly as they are; only what is
   inside it changes.
   - The live orb sits at the start of the bar, in front of the words, inside the bar with room all around it; pressing it
     interrupts and never ends (16 Oct 2026). It keeps the brand's orb colour in every state (Joe's review, 13 Nov 2026: no
     colour change); how it moves says whose turn it is: it swells with the voice (app.js, --voice-lvl) and breathes while the
     persona thinks.
   - The words say what is happening, on one line in the field's own type: "Listening…", "{persona} is thinking. Tap the orb to
     interrupt", "{persona} is speaking. Tap the orb to interrupt". The hint gives way when the line does not fit (app.js
     fitVoiceLine), so the main words always show whole.
   - End stands alone at the end of the bar, a soft rectangle (13 Nov 2026: soft rectangles, never round pills).
   The field keeps its place under the words (hidden, not removed), so the bar's height never changes. */
#aiosShell #inputBar{width:100%;position:relative}
#aiosShell #inputBar[data-voice-state]{--vc-orb:calc(var(--one-line) + 2 * var(--row-pad) - 12px)}
#aiosShell #inputBar[data-voice-state] textarea.composer-field{visibility:hidden}
#aiosShell #inputBar[data-voice-state] :is(.composer-ph,.counter,.mic-affordance,#voiceStatus,#voicePartial){display:none}
#aiosShell #inputBar[data-voice-state] .composer-version{display:none!important}
#aiosShell #inputBar[data-voice-state] .send.conversation-orb{position:absolute;left:var(--ds-space-8);top:50%;translate:0 -50%;z-index:var(--ds-z-lift);flex:none;width:var(--vc-orb);height:var(--vc-orb);min-width:0;min-height:0;margin:0}
#inputBar .send.conversation-orb .orb circle{fill:var(--orb-colour,var(--accent))}
#inputBar .send.conversation-orb .orb svg{transform:scale(calc(.9 + .12 * var(--voice-lvl,0)));transition:transform .09s linear}
#inputBar:is([data-voice-state=thinking],[data-voice-state=finishing]) .send.conversation-orb .orb svg{transform:none;animation:aiosVoiceOrbBreath 1.6s ease-in-out infinite}
@keyframes aiosVoiceOrbBreath{0%,100%{transform:scale(.86)}50%{transform:scale(.96)}}
#aiosShell #inputBar .voice-line:not([hidden]){position:absolute;top:0;bottom:0;left:calc(var(--vc-orb,36px) + 17px);right:4px;display:flex;flex-direction:row;align-items:center;gap:var(--ds-space-6);white-space:nowrap;overflow:hidden;font-size:var(--composer-font);line-height:1.5;text-align:left;pointer-events:none}
#aiosShell #inputBar .voice-line-main{flex:none;font-weight:600;color:var(--ink)}
#aiosShell #inputBar .voice-line-hint{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
#aiosShell #inputBar .voice-line.no-hint .voice-line-hint{display:none}
#aiosShell #inputBar .voice-line:not(.no-hint):is([data-state=thinking],[data-state=speaking]) .voice-line-main::after{content:"."}
#aiosShell #inputBar .voice-line[data-state=listening] .voice-line-main::after{content:"…";display:inline-block;animation:aiosVoiceEllipsis 1.4s ease-in-out infinite}
@keyframes aiosVoiceEllipsis{0%,100%{opacity:.25}50%{opacity:1}}
#aiosShell #inputBar .voice-line[data-state=thinking] .voice-line-main{background:linear-gradient(100deg,var(--ink) 35%,#b4bcc8 50%,var(--ink) 65%) 0 0/300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:aiosVoiceShimmer 1.8s linear infinite}
@keyframes aiosVoiceShimmer{from{background-position:100% 0}to{background-position:0 0}}
#aiosShell #inputBar #conversationEnd{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--ds-space-6);width:auto;height:var(--vc-orb,36px);margin-right:var(--ds-space-8);padding:0 12px;border:1px solid #d6dbe2;border-radius:var(--ds-radius-8);background:#fff;box-shadow:none;color:#1f2933;font-size:var(--ds-fs-13);font-weight:600;line-height:1;white-space:nowrap}
#aiosShell #inputBar #conversationEnd svg{width:15px;height:15px;flex:none}
#aiosShell #inputBar #conversationEnd:hover{background:#f3f5f8}
#conversationEnd:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  #aiosShell #inputBar[data-voice-state] .send.conversation-orb .orb svg{transform:none;transition:none;animation:none}
  #aiosShell #inputBar .voice-line[data-state] .voice-line-main,#aiosShell #inputBar .voice-line[data-state] .voice-line-main::after{animation:none}
  #aiosShell #inputBar .voice-line[data-state=thinking] .voice-line-main{background:none;color:var(--ink)}
}
/* Bold words in the placeholder (app.js drawPlaceholder, owner 5 Nov 2026): a twin line over the empty field carries the bold, the
   field's own placeholder turns clear under it. Only copy with **marks** gets the twin; every other placeholder is unchanged. */
#inputBar .composer-row{position:relative}
#inputBar .composer-ph{display:none;position:absolute;margin:0;pointer-events:none;white-space:nowrap;overflow:hidden}
#inputBar .composer-ph strong{font-weight:700}
#inputBar textarea.composer-field.has-ph-twin::placeholder{color:transparent}
#inputBar textarea.composer-field.has-ph-twin:not([hidden]):placeholder-shown + .composer-ph{display:block}
