/* v0.22.9 — iPhone direct-message composer layout repair.
   Restore predictable grid columns; never let an empty error block
   consume the message input's width. No messaging handlers changed. */
.v223-community .chat-compose {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  column-gap:9px;
  row-gap:8px;
  min-width:0;
  width:100%;
  padding:11px;
  overflow:visible;
}
.v223-community .chat-compose #chat-reply-body {
  display:block;
  grid-column:1;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:48px;
  max-height:124px;
  margin:0;
  flex:none;
  padding:11px 13px;
  resize:none;
  font-size:16px; /* Prevent iOS keyboard focus-zoom */
  line-height:1.35;
  overflow-y:auto;
  scroll-margin-bottom:calc(18px + env(safe-area-inset-bottom));
}
.v223-community .chat-compose button[type=submit] {
  grid-column:2;
  width:auto;
  min-width:70px;
  min-height:48px;
  margin:0;
  padding:10px 14px;
  align-self:end;
  white-space:nowrap;
}
.v223-community .chat-compose #chat-send-error:empty {
  display:none !important;
  padding:0;
  margin:0;
  border:0;
  min-height:0;
  background:transparent;
}
.v223-community .chat-compose #chat-send-error:not(:empty) {
  display:block;
  grid-column:1 / -1;
  grid-row:2;
  width:100%;
  min-width:0;
  margin:0;
  flex:none;
}
@media (max-width:355px) {
  .v223-community .chat-compose { padding:8px; gap:7px; }
  .v223-community .chat-compose button[type=submit] { min-width:64px; padding-inline:10px; }
}
