/* Вкладки брифа: дизайн / логотип */
.brief-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 4px;
  background: #e5e7eb;
  border-radius: 12px;
  max-width: 420px;
  margin-inline: auto;
}

.brief-tabs__btn {
  flex: 1 1 0;
  min-width: 140px;
  border: none;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brief-tabs__btn:hover {
  color: #111827;
}

.brief-tabs__btn.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.brief-tabs__badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.brief-tabs__badge.is-filled {
  background: #22c55e;
}

.brief-tabs__badge.is-partial {
  background: #f59e0b;
}

.brief-tab-panel {
  display: none;
}

.brief-tab-panel.is-active {
  display: block;
}

.brief-combined-actions {
  margin-top: 8px;
}

.brief-combined-actions .brief-notice {
  max-width: 640px;
  margin-inline: auto;
}

/* Скрытое поле от ботов — не показывать пользователю */
.brief-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.choice-card--element .choice-card__preview-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2rem;
  background: #fff;
}

/* Квадратные превью стилей дизайна */
.choice-card--style .choice-card__preview-wrap {
  height: auto;
  aspect-ratio: 1;
  max-height: 160px;
  padding: 10px;
  background: linear-gradient(90deg, #f3f4f6 0%, #f3f4f6 100%);
}

.choice-card--style .choice-card__preview {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Квадратные превью стилей логотипа */
.choice-card--logo-style .choice-card__preview-wrap {
  height: auto;
  aspect-ratio: 1;
  max-height: 120px;
  padding: 10px;
  background: #fff;
}

.choice-card--logo-style .choice-card__preview {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.choice-card--element .choice-card__preview-wrap {
  aspect-ratio: 1;
  max-height: 110px;
  background: #f9fafb;
}

.choice-card--element .choice-card__preview-wrap--placeholder {
  background: #fff;
}

/* Сохранённый комбинированный бриф */
.sb-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 4px;
  background: #e5e7eb;
  border-radius: 12px;
}

.sb-tabs__btn {
  flex: 1 1 0;
  min-width: 130px;
  border: none;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.sb-tabs__btn.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.sb-tabs__btn.is-empty {
  opacity: 0.55;
}

.sb-tab-panel {
  display: none;
}

.sb-tab-panel.is-active {
  display: block;
}

.sb-empty-note {
  padding: 24px;
  text-align: center;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.sb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.sb-btn--secondary {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.sb-btn--secondary:hover {
  background: #eff6ff;
}
