/* Форма ветки Тональности (§5.3–5.5, §6.2–6.3): поля, зона Вложений,
   счётчик, строка сетевого сбоя. Порт feedback-form.module.css из pos-app
   с префиксом ff-. */

.ff-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

/* ===== Счётчик символов негативного сообщения (§5.4) ===== */
.ff-counterRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ff-counter {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--gray-600);
}

.ff-counterOver {
  color: var(--red);
  font-weight: 600;
}

/* ===== Зона загрузки Вложений (§5.5) ===== */
.ff-uploadArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 24px 16px;
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-input);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.ff-uploadArea:hover {
  border-color: var(--teal);
  background: var(--teal-tint-faint);
}

.ff-uploadChip {
  font-size: 1.5rem;
}

.ff-uploadButton {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ff-fileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Миниатюры-превью выбранных файлов */
.ff-previews {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.ff-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ff-previewThumb {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ff-previewThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-previewSpinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--veil);
  color: var(--teal);
  font-size: 1.25rem;
}

.ff-previewName {
  font-size: 0.75rem;
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Подсказка позитивной ветки (§6.2) ===== */
.ff-requirement {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600);
}

/* «Назад» — вторичное действие под «Отправить» (§6.2–6.3), той же ширины:
   как и основная кнопка, растягивается на всю колонку формы;
   зазор чуть плотнее шага сетки, чтобы читалась парой с «Отправить» */
.ff-back {
  margin-top: -8px;
}
