/* Detached translucent controls; the chat background continues under the composer. */
html[data-color-theme] #welcome-screen .conversation-panel #chat-form {
  --composer-control:46px;display:grid;grid-template-columns:minmax(0,1fr);gap:0;
  position:relative;flex:0 0 auto;margin:0;padding:8px 14px 6px;border:0;background:transparent;box-shadow:none;
}
#chat-form .message-composer-row {display:grid;grid-template-columns:var(--composer-control) minmax(0,1fr) var(--composer-control);gap:8px;align-items:end;min-width:0;}
html[data-color-theme] #chat-form .message-input-shell,
html[data-color-theme] #chat-form :is(#chat-attach,#chat-record-toggle,#send-message) {
  background:rgba(38,43,52,.82);background:color-mix(in srgb,var(--theme-surface,#2a303c) 82%,transparent);
  border:1px solid color-mix(in srgb,var(--theme-border,#657082) 75%,transparent);box-shadow:inset 0 1px #ffffff07;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
#chat-form .message-input-shell {min-width:0;border-radius:25px;overflow:hidden;align-items:flex-end;}
html[data-color-theme] #chat-form .message-input-shell:focus-within {border-color:var(--theme-accent,#b4a1dd);box-shadow:0 0 0 1px var(--theme-border,#536075);}
#welcome-screen #chat-form .message-input-shell textarea {box-sizing:border-box;flex:1;width:0;min-width:0;min-height:var(--composer-control);max-height:120px;margin:0;padding:11px 4px 10px 13px;border:0;border-radius:0;background:transparent;box-shadow:none;line-height:23px;font-size:16px;}
#chat-form #chat-attach,#chat-form #chat-record-toggle {box-sizing:border-box;display:grid;place-items:center;width:var(--composer-control);height:var(--composer-control);min-width:0;min-height:0;margin:0;padding:9px;border-radius:50%;color:var(--theme-accent,#b9c8e4);}
#chat-form #chat-attach svg {width:25px;height:25px;}
#chat-form #chat-record-toggle svg {width:23px;height:23px;}
#chat-form #chat-record-toggle {flex:0 0 var(--composer-control);}
#chat-form .composer-trailing {position:relative;width:var(--composer-control);height:var(--composer-control);align-self:end;}
#chat-form #chat-record-buttons {position:absolute;inset:0;display:flex;align-items:center;padding:0;margin:0;}
#chat-form #chat-record-buttons[hidden] {display:none;}
#chat-form .send-button-slot,#chat-form.has-message .send-button-slot {position:absolute;inset:0;width:var(--composer-control);height:var(--composer-control);margin:0;transition:none;pointer-events:none;}
#chat-form #send-message {inset:0;width:var(--composer-control);height:var(--composer-control);min-width:0;min-height:0;padding:1px;}
#chat-form.has-message #send-message {pointer-events:auto;}
#chat-form #send-message .send-icon {width:100%;height:100%;object-fit:contain;}
#chat-form .message-input-shell .emoji-toggle {width:40px;height:var(--composer-control);min-height:0;flex:0 0 40px;padding:6px;margin:0 3px 0 0;background:transparent;}
#chat-form .message-input-shell .emoji-toggle img {width:30px;height:30px;opacity:.92;}
#chat-form :is(#chat-attach,#chat-record-toggle,#send-message):hover {filter:brightness(1.12);}
#chat-form :is(#chat-attach,#chat-record-toggle,#send-message):focus-visible {outline:2px solid var(--theme-accent,#b5c6e2);outline-offset:2px;}
#welcome-screen .conversation-panel #send-status {margin:0;border:0;box-shadow:none;background:transparent;}
#chat-form.is-recording .message-composer-row {visibility:hidden;}
/* Mirror the selected background on the parent so there is no opaque bottom strip. */
#welcome-screen .conversation-panel[data-chat-background=pattern] {background:var(--chat-pattern);}
#welcome-screen .conversation-panel[data-chat-background=color] {background:var(--chat-background-color);}
#welcome-screen .conversation-panel[data-chat-background=photo] {background-color:var(--theme-canvas,#111522);background-image:linear-gradient(#0003,#0003),var(--chat-background-image);background-position:center;background-repeat:no-repeat;background-size:cover;}
#welcome-screen .conversation-panel[data-chat-background] #chat-messages {background:transparent;}
@media(max-width:700px) {
  html[data-color-theme] #welcome-screen .conversation-panel #chat-form {--composer-control:44px;padding:7px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));}
  #chat-form .message-composer-row {gap:7px;}
  #welcome-screen #chat-form .message-input-shell textarea {padding-top:10px;padding-bottom:9px;}
  #chat-form .message-input-shell .emoji-toggle {width:36px;flex-basis:36px;padding:5px;margin-right:2px;}
  #chat-form .message-input-shell .emoji-toggle img {width:28px;height:28px;}
}
@supports not (backdrop-filter:blur(8px)) {#chat-form .message-input-shell {background:rgba(38,43,52,.9);}}
