.inputArea {
  padding: 10px 16px 12px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.inputAreaDragOver {
  background: rgba(239, 246, 255, 0.96);
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 8px;
}

.attachmentItem {
  position: relative;
  width: 72px;
  height: 72px;
}

.attachmentThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.attachmentRemove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.fileInput {
  display: none;
}

.wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 720px;
  margin: 0 auto;
  background: #f6f7fb;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 4px 4px 4px 8px;
  transition: border-color 0.15s;
}

.wrapper:focus-within {
  border-color: #2563eb;
  background: #fff;
}

.input {
  flex: 1;
  background: transparent;
  border: none;
  color: #1a1a1a;
  padding: 8px 0;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.45;
}

.input::placeholder {
  color: #bbb;
}

.attachBtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.attachBtn:hover:not(:disabled) {
  background: #eef2ff;
  color: #2563eb;
}

.attachBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sendBtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  border: none;
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
  touch-action: manipulation;
}

.sendBtn:hover {
  background: #1d4ed8;
}

.sendBtn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .inputArea {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .wrapper {
    padding: 2px 2px 2px 10px;
  }
}
