.an-section {
  margin-top: 18px;
}

.an-section-tight {
  margin-top: 14px;
}

.an-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.96);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 20px 22px;
}

.an-hero-card {
  width: 100%;
  padding: 22px 24px;
}

.an-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eefbf8;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.an-title {
  margin: 10px 0 8px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111827;
}

.an-sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.68;
}

.an-hero-sub {
  max-width: 860px;
}

.an-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.an-card-title-lg {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111827;
}

.an-sub-bottom {
  margin-top: 6px;
}

.an-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

.an-field {
  margin: 0;
  min-width: 0;
}

.an-field-wide {
  grid-column: 1 / -1;
}

.an-label {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.an-help {
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.an-input,
textarea.an-input,
select.an-input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
}

textarea.an-input.an-textarea {
  min-height: 46px;
  height: 46px;
  padding: 11px 14px;
  resize: none;
  line-height: 1.45;
}

.an-upload-field {
  position: relative;
}

.an-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.an-upload-card {
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.an-upload-card:hover {
  border-color: #9d7bff;
  box-shadow: 0 10px 24px rgba(157, 123, 255, 0.10);
  transform: translateY(-1px);
}

.an-upload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.an-upload-title {
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.an-upload-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.an-upload-desc {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.an-upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(96, 165, 250, 0.14));
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.an-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.an-preview-empty {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.an-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.an-preview-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f5f9;
}

.an-preview-meta {
  padding: 9px 10px 10px;
}

.an-preview-name {
  display: block;
  color: #111827;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-preview-size {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.4;
}

.an-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.an-preview-remove:hover {
  background: rgba(15, 23, 42, 0.88);
}

.an-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.an-actions .btn {
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
}

.an-warning {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .an-title {
    font-size: 32px;
  }

  .an-form-grid {
    grid-template-columns: 1fr;
  }

  .an-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .an-section {
    margin-top: 14px;
  }

  .an-card,
  .an-hero-card {
    padding: 16px;
    border-radius: 18px;
  }

  .an-badge {
    min-height: 28px;
    font-size: 11px;
  }

  .an-title {
    margin: 8px 0 6px;
    font-size: 26px;
    line-height: 1.14;
  }

  .an-sub {
    font-size: 13px;
    line-height: 1.6;
  }

  .an-card-title-lg {
    font-size: 19px;
  }

  .an-preview-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .an-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.an-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.an-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.an-hero-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.an-btn-manual {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.10);
  white-space: nowrap;
}

.an-btn-manual:hover {
  border-color: #a5b4fc;
  box-shadow: 0 14px 28px rgba(96, 165, 250, 0.16);
  transform: translateY(-1px);
}

.an-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.an-btn-start {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f472b6 0%, #818cf8 55%, #60a5fa 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 28px rgba(129, 140, 248, 0.24);
}

.an-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(129, 140, 248, 0.30);
}

@media (max-width: 900px) {
  .an-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-hero-side {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .an-btn-manual,
  .an-btn-start {
    width: 100%;
    justify-content: center;
  }
}