/* Screen-only motion: hardware dimensions and the surrounding page stay fixed. */
.composer { height: auto; min-height: 54px; align-items: flex-end; }
.composer .add { margin-bottom: 3px; }
.composer-field { min-width: 0; height: auto; min-height: 33px; align-items: flex-end; padding: 7px 8px 7px 11px; gap: 7px; }
#composer-text { flex: 1; min-width: 0; max-height: 84px; overflow: auto; scrollbar-width: none; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.composer-action { flex: 0 0 20px; height: 20px; display: grid; place-items: center; }
.is-composing #composer-text { color: #111; }
.is-composing #composer-text:after { content: ''; display: inline-block; height: 12px; width: 1.5px; background: #007aff; vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
.is-composing .composer-action { color: #fff; background: #007aff; border-radius: 50%; }
.is-composing .composer-action svg { width: 15px; height: 15px; stroke-width: 2.5; }
.keyboard-shell { display: grid; grid-template-rows: 0fr; flex-shrink: 0; transition: grid-template-rows .32s cubic-bezier(.22,.8,.3,1); }
.keyboard-clip { min-height: 0; overflow: hidden; }
.keyboard { background: #d1d4da; padding: 0 5px 7px; transform: translateY(16px); transition: transform .32s cubic-bezier(.22,.8,.3,1); user-select: none; }
.keyboard-open .keyboard-shell { grid-template-rows: 1fr; }
.keyboard-open .keyboard { transform: translateY(0); }
.keyboard-open .home-bar { background: #d1d4da; }
.is-seeking .keyboard-shell, .is-seeking .keyboard { transition: none; }
.predictions { height: 30px; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; font-size: 10px; color: #303238; text-align: center; }
.predictions span + span { border-left: 1px solid #aeb2ba; }
.key-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 7px; }
.key { display: grid; place-items: center; height: 32px; min-width: 0; flex: 1; border-radius: 5px; background: #fff; color: #111; box-shadow: 0 1px 0 #91959d; font-size: 16px; position: relative; }
.key-row.home { padding: 0 14px; }
.key-row.lower { gap: 4px; }
.key.utility { flex: 1.45; background: #afb5bf; }
.key.utility svg { width: 17px; height: 17px; }
.key.space { flex: 4.4; font-size: 11px; }
.key.label { font-size: 10px; }
.key.return { flex: 1.6; }
.key.active { background: #b6bcc6; transform: translateY(1px); box-shadow: none; }
.keyboard-footer { display: flex; justify-content: space-between; padding: 4px 12px 0; color: #41454c; }
.keyboard-footer svg { width: 18px; height: 18px; }
.msg.out.send-arrive { transform-origin: bottom right; animation: keyboard-send .42s cubic-bezier(.16,1,.3,1); }
@keyframes keyboard-send { from { transform: translateY(38px) scale(.92); opacity: .25; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media(prefers-reduced-motion:reduce) {
  .keyboard-shell, .keyboard { transition: none; }
  .keyboard { transform: none; }
  .is-composing #composer-text:after, .msg.out.send-arrive { animation: none; }
}
