.message-input-h5 {
  position: relative;
  border-top: 1px solid var(--stroke-color-secondary);
  background-color: var(--bg-color-operate);
  -webkit-tap-highlight-color: transparent;
}

.message-input-h5__bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
}

.message-input-h5__left-inline,
.message-input-h5__right-inline,
.message-input-h5__input-prefix,
.message-input-h5__input-suffix,
.message-input-h5__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.message-input-h5__input-wrapper {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  border-radius: 16px;
  background-color: var(--bg-color-input);
}

.message-input-h5__textarea {
  width: 100%;
  min-height: 40px;
  max-height: 100px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: none;
  border-radius: 16px;
  outline: none;
  background-color: transparent;
  color: var(--text-color-primary);
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  overflow-y: hidden;
}

.message-input-h5__textarea::placeholder {
  color: var(--text-color-secondary);
}

.message-input-h5__textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message-input-h5__actions {
  gap: 4px;
  padding-bottom: 4px;
}

.message-input-h5__action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-color-secondary);
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.message-input-h5__action-button:active {
  background-color: var(--bg-color-hover);
}

.message-input-h5__action-button--active {
  color: var(--text-color-link);
}

.message-input-h5__action-button--rotated {
  transform: rotate(45deg);
}

.message-input-h5__send-button {
  min-width: 58px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 18px;
  background-color: var(--button-color-primary-default, #147aff);
  color: #fff;
  font-size: 14px;
}

.message-input-h5__send-button:disabled {
  opacity: 0.5;
}

.message-input-h5__emoji-panel,
.message-input-h5__action-panel {
  height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.message-input-h5__emoji-panel {
  touch-action: pan-y;
}

.message-input-h5__emoji-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
}

.message-input-h5__emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 28px) / 8);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  font-size: 24px;
}

.message-input-h5__emoji-item:active {
  background-color: var(--bg-color-hover);
}

.message-input-h5__action-panel {
  padding: 20px;
  box-sizing: border-box;
}

.message-input-h5__action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.message-input-h5__action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-color-primary);
  cursor: pointer;
}

.message-input-h5__action-item:active {
  opacity: 0.7;
}

.message-input-h5__action-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--bg-color-input);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.message-input-h5__action-icon {
  color: var(--icon-color-primary);
}

.message-input-h5__action-label {
  color: var(--text-color-secondary);
  font-size: 12px;
}

.message-input-h5__safe-area-bottom {
  height: env(safe-area-inset-bottom, 0);
}

.message-input-h5__group-call-dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.message-input-h5__group-call-dialog * {
  box-sizing: border-box;
}

.message-input-h5__group-call-dialog-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: calc(70vh - 120px);
  max-height: calc(70vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
