/* One compact row: voice, typing/hold target, stickers, then one +/send slot. */
.composer-shell .mobile-composer{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;align-items:end;gap:4px;padding:5px;border-radius:16px;background:#132334;border-color:#385168}
.mobile-composer>.icon-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border-radius:11px;color:#bcd0de;touch-action:manipulation}
.mobile-composer>.icon-button:hover,.mobile-composer>.icon-button[aria-expanded=true],.mobile-composer #record[aria-pressed=true]{background:#2b4254;color:#dcecdc}
.mobile-composer svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mobile-composer #record .keyboard-icon{display:none}.mobile-composer #record[data-mode=voice] .microphone-icon{display:none}.mobile-composer #record[data-mode=voice] .keyboard-icon{display:block}
.composer-entry{position:relative;min-width:0}.mobile-composer #message-input{display:block;width:100%;min-height:44px;max-height:132px;padding:10px 10px 9px;margin:0;font-size:16px;line-height:24px;background:#1b3042;border-radius:11px;resize:none;overflow-y:auto}
.mobile-composer #message-input[hidden],.mobile-composer #voice-hold[hidden]{display:none}
.mobile-composer #send{position:static;grid-column:4;grid-row:1;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;background:transparent;color:#b3d7bc;border-radius:11px;box-shadow:none}.mobile-composer #send:hover{background:#314c49}.mobile-composer #send .send-paw{fill:currentColor;stroke:none;width:24px;height:24px}
.mobile-composer #composer-plus{grid-column:4;grid-row:1}.mobile-composer #send[hidden],.mobile-composer #composer-plus[hidden]{display:none}.mobile-composer #send:not([hidden]){display:flex;align-items:center;justify-content:center}
.mobile-composer #voice-hold{width:100%;min-height:44px;padding:8px 4px;border-radius:11px;border:1px solid #536e69;background:#243f43;color:#e4f1e4;font-size:14px;font-weight:650;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mobile-composer #voice-hold[aria-pressed=true]{background:#3a655b;border-color:#a4d0b7}
.mobile-composer button:focus-visible,.composer-panel button:focus-visible,.sticker-panel button:focus-visible,#voice-consent:focus-visible{outline:2px solid #bee7cb;outline-offset:2px}
.composer-panel,.sticker-panel{padding:14px 8px 5px;display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #2f4458;margin-top:10px}
.composer-panel[hidden],.sticker-panel[hidden],#voice-options[hidden],#voice-overlay[hidden],#voice-draft[hidden]{display:none}
.composer-panel #photo-button,.composer-panel #file-button{width:100%;height:auto;min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#233b4d;border-radius:12px;font-size:12px;color:#d8e4ed}
.composer-panel svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.composer-panel .task-check{justify-content:center;font-size:11px;white-space:normal;line-height:1.6;margin:0;padding:8px;min-height:70px;background:#1b3042;border-radius:12px}.composer-panel .task-check input{width:18px;height:18px;flex-shrink:0}
.sticker-panel{grid-template-columns:repeat(6,minmax(0,1fr));max-height:245px;overflow:auto}.sticker-choice{display:flex;align-items:center;justify-content:center;min-width:0;padding:0;background:#1c3040;border-radius:12px}.sticker-choice:hover{background:#31504e}.sticker-choice .cat-sticker{width:100%;height:auto;aspect-ratio:1;min-width:0;max-width:120px}
.cat-sticker{display:block;width:clamp(96px,28vw,150px);height:clamp(96px,28vw,150px);background-image:url('/native/assets/cat-stickers.png');background-repeat:no-repeat;background-size:300% 200%;flex-shrink:0}
.cat-sticker[data-sticker-id=cat-wave]{background-position:0% 0%}.cat-sticker[data-sticker-id=cat-laugh]{background-position:50% 0%}.cat-sticker[data-sticker-id=cat-heart]{background-position:100% 0%}.cat-sticker[data-sticker-id=cat-celebrate]{background-position:0% 100%}.cat-sticker[data-sticker-id=cat-think]{background-position:50% 100%}.cat-sticker[data-sticker-id=cat-sleep]{background-position:100% 100%}
.message-bubble:has(>.cat-sticker){padding:0;border:0;background:transparent;box-shadow:none}.message-bubble audio{display:block;width:min(290px,100%);max-width:100%}
#voice-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;margin-top:6px;color:#a9c1d1;font-size:10px}#voice-consent{padding:5px 7px;min-height:32px;border:1px solid #425e70;border-radius:6px;font-size:11px;color:#c3e0d6;background:#203943}#voice-consent[aria-pressed=true]{border-color:#8bba9c;color:#cdebd6}
#voice-overlay{position:absolute;left:12px;right:12px;bottom:calc(100% + 10px);z-index:6;border:1px solid #7ea08d;border-radius:18px;padding:18px 14px;background:#1d423fee;box-shadow:0 10px 30px #0005;color:#e4f4e8;text-align:center;pointer-events:none}#voice-overlay[data-mode=cancel]{background:#653739ee;border-color:#d7a6a6}#voice-overlay[data-mode=text]{background:#314d69ee;border-color:#9cc3e4}#voice-time{font-variant-numeric:tabular-nums;font-size:13px}#voice-wave{display:block;width:100%;height:60px;margin:8px 0}#voice-wave[hidden]{display:none}#voice-hint{font-size:12px;line-height:1.6}
#voice-status{font-size:12px;line-height:1.6;color:#c1d5df;margin:6px 2px 0}#voice-status:empty{display:none}#voice-draft{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:9px;padding:10px;border:1px solid #668276;border-radius:12px;background:#1b333b}#voice-draft audio{width:min(300px,100%);max-width:100%;height:40px}#voice-draft label{flex-basis:100%;margin:3px 0;font-size:12px;color:#c4dfd1}#voice-draft #voice-transcript{flex:1 1 100%;width:100%;min-width:0;min-height:86px;max-height:220px;padding:10px;border:1px solid #597f76;border-radius:8px;background:#132c34;color:#e8f3ee;font-size:16px;line-height:1.5;resize:vertical}#voice-draft #voice-transcript:focus-visible{outline:2px solid #bee7cb;outline-offset:2px}#voice-draft #voice-transcript[readonly]{opacity:.8}#voice-draft button{min-height:40px;padding:8px 12px;border-radius:8px;background:#35564e;color:#e4eee6}#voice-draft #voice-discard{background:#334451}.voice-consent-dialog button{min-height:44px}
@media(max-width:700px){.composer-shell{padding:8px 8px max(8px,env(safe-area-inset-bottom))}.composer-shell .mobile-composer{gap:2px;padding:3px}.sticker-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.sticker-choice .cat-sticker{max-width:106px}.composer-footer{margin-top:4px}.composer-footer:has(#compose-status:empty){display:none}.composer-shell>#chat-error:empty{display:none}}

/* Restricted browser agents get one compact reply toolbar, not stacked notes. */
.composer-shell #agent-browser-toolbar{display:flex;align-items:center;gap:6px;min-width:0;margin:0 0 6px;padding:0;min-height:36px}
#agent-browser-toolbar #agent-reply-context{display:block;flex:1 1 auto;width:0;min-width:0;height:36px;min-height:36px;max-height:36px;margin:0;padding:6px 26px 6px 10px;border:1px solid #3e596a;border-radius:8px;background:#192e3c;color:#c8e0dd;font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none}
#agent-browser-toolbar #agent-browser-logout{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:44px;height:36px;min-height:36px;max-height:36px;margin:0;padding:6px 9px;border:1px solid #3e596a;border-radius:8px;background:#192b39;color:#adc1cc;font-size:11px;line-height:20px;white-space:nowrap}
#agent-browser-toolbar #agent-browser-logout:hover{background:#294355;color:#e2efef}#agent-browser-toolbar :focus-visible{outline:2px solid #bee7cb;outline-offset:2px}
.composer-shell .mobile-composer.agent-browser-mode{grid-template-columns:minmax(0,1fr) 44px}.mobile-composer.agent-browser-mode>#record,.mobile-composer.agent-browser-mode>#sticker-button{display:none}.mobile-composer.agent-browser-mode>#send,.mobile-composer.agent-browser-mode>#composer-plus{grid-column:2}
@media(max-width:700px){.composer-shell #agent-browser-toolbar{min-height:44px;margin-bottom:4px}#agent-browser-toolbar #agent-reply-context,#agent-browser-toolbar #agent-browser-logout{height:44px;min-height:44px;max-height:44px}}

/* Sending destination lives inside the input, as a compact topic tag. */
.mobile-composer .composer-entry{display:flex;align-items:flex-start;gap:4px;background:#1b3042;border-radius:11px}
.mobile-composer .composer-entry #message-input{flex:1;min-width:0;width:0;background:transparent;border:0;border-radius:0 11px 11px 0}
.mobile-composer .composer-topic-target{display:flex;flex:0 1 auto;align-items:center;max-width:180px;min-width:0;height:44px;margin:0;padding:0 0 0 6px;box-sizing:border-box}
.mobile-composer .composer-topic-target[hidden]{display:none}
.mobile-composer .composer-topic-target select{field-sizing:content;min-width:72px;max-width:174px;min-height:32px;height:32px;margin:0;padding:3px 20px 3px 8px;border:1px solid color-mix(in srgb,var(--send-topic-color) 60%,transparent);border-radius:7px;background:color-mix(in srgb,var(--send-topic-color) 20%,#152635);color:#eaf3f8;font-size:12px;font-weight:650;line-height:22px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.mobile-composer .composer-topic-target select:disabled{cursor:default;opacity:.6}.mobile-composer .composer-topic-target select:focus-visible{outline:2px solid #b9d8eb;outline-offset:1px}.mobile-composer .composer-topic-target option{background:#172c3d;color:#eaf3f8}
.composer-entry:has(#voice-hold:not([hidden])) .composer-topic-target{display:none}
@media(max-width:700px){.mobile-composer .composer-topic-target{max-width:94px;padding-left:3px}.mobile-composer .composer-topic-target select{max-width:91px;min-width:65px;min-height:44px;height:44px;padding-left:5px;padding-right:15px;font-size:11px}.mobile-composer .composer-entry #message-input{padding-inline:6px}}
