#msg-input {
  width: 100%;
  flex: none;
  border: none; outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  resize: none;
  max-height: 120px;
  line-height: 1.6;
  padding: 2px 0;
}
#msg-input::placeholder { color: var(--text-faint); }

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.composer-options,
.composer-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.composer-options { flex-wrap: wrap; }
.mode-toggle-tooltip {
  position: relative;
  display: inline-flex;
}
.mode-toggle-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 50;
  width: 260px;
  max-width: calc(100vw - 32px);
  padding: 7px 9px;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--bg2);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s, transform .18s;
}
.mode-toggle-tooltip.is-restricted:hover::after,
.mode-toggle-tooltip.is-restricted:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}
.mode-toggle-tooltip.is-restricted .mode-toggle {
  opacity: .58;
  cursor: not-allowed;
}
.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}

button.attach-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}
button.attach-remove:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
