/* Mobile: one input and two well-spaced actions. Desktop composition is unchanged. */
.composer-mobile-add { display:none; }
#mobileComposerSheet { color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:24px 24px 0 0; padding:20px 20px calc(20px + env(safe-area-inset-bottom)); width:min(100%,560px); max-width:100%; max-height:85dvh; overflow:auto; margin:auto auto 0; box-shadow:0 -12px 48px #0002; }
#mobileComposerSheet::backdrop { background:rgba(25,25,23,.35); }
.mobile-composer-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.mobile-composer-heading h2 { font-size:18px; font-weight:650; }
#mobileComposerSheet button { touch-action:manipulation; }
#mobileComposerSheet button:focus-visible, .composer-mobile-add:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.mobile-composer-close { width:48px; height:48px; border-radius:50%; background:var(--card); }
.mobile-composer-options { display:grid; gap:10px; }
.mobile-composer-option { display:flex; align-items:center; gap:14px; width:100%; min-height:56px; padding:14px 16px; text-align:left; font-size:16px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
.mobile-composer-option svg { width:24px; height:24px; flex:none; color:var(--ink-soft); }
.mobile-composer-voice-group { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:10px; }
#mobileVoiceStatus { display:none; }
@media (max-width:767px) {
  .dock { display:grid !important; grid-template-columns:48px minmax(0,1fr) 48px !important; gap:10px !important; padding:4px 0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; align-items:end; }
  .dock > button:nth-child(1), .dock > button:nth-child(2), .dock > .relative { display:none !important; }
  .dock > .composer-mobile-add { display:flex; grid-column:1; grid-row:1; width:48px; height:48px; align-items:center; justify-content:center; border-radius:50%; background:var(--card); border:1px solid var(--line); color:var(--ink); }
  .dock #input { grid-column:2 !important; grid-row:1 !important; min-width:0; width:100%; min-height:48px !important; max-height:144px; font-size:16px !important; line-height:22px; padding:13px 14px !important; background:var(--card); border:1px solid var(--line); border-radius:20px; }
  .dock #sendBtn { grid-column:3 !important; grid-row:1 !important; width:48px !important; height:48px; min-height:48px !important; padding:12px !important; align-self:end; border-radius:50%; margin:0 !important; }
  #mobileVoiceStatus:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:4px 0 12px; color:var(--primary-strong); font-size:14px; }
  #mobileVoiceStatus button { min-width:64px; min-height:44px; border:1px solid var(--line); border-radius:12px; padding:8px 16px; background:var(--card); }
  #attachPreview { gap:12px; }
  #attachPreview button { min-width:44px; min-height:44px; }
}
/* On the narrowest phones, give writing its own row while keeping 48px actions. */
@media (max-width:360px) {
  .dock #input { grid-column:1 / -1 !important; grid-row:1 !important; }
  .dock > .composer-mobile-add, .dock #sendBtn { grid-row:2 !important; }
}
