.quick-reply-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 0 0 auto;
  column-gap: 8px;
  row-gap: 5px;
  padding: 18px 10px 8px;
}

.quick-reply-form textarea {
  height: clamp(76px, 16dvh, 120px);
  min-height: 56px;
  max-height: clamp(76px, 38dvh, 360px);
  line-height: 1.5;
  overflow-y: auto;
  resize: none;
}

.quick-reply-resize {
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  display: grid;
  place-items: center;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
}

.quick-reply-resize::before {
  content: "";
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #799387;
}

.quick-reply-resize:hover::before,
.quick-reply-resize:focus-visible::before {
  background: #17633a;
}

.quick-reply-resize:focus-visible {
  outline: 2px solid #17633a;
  outline-offset: -2px;
}

.quick-reply-keys {
  grid-column: 1 / -1;
  margin: 0;
  color: #52645a;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .quick-reply-panel-body { overflow-y: auto; }
  .quick-reply-form textarea {
    height: 68px;
    min-height: 48px;
    max-height: clamp(48px, 22dvh, 120px);
  }
}
