.afl20-pmc-app,
.afl20-pmc-app * {
  box-sizing: border-box;
}

.afl20-pmc-app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.afl20-pmc-app .afl20-pmc-banner {
  margin: 0 0 24px;
  padding: 20px 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0e735, #ffd93d);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #4a0e6e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.afl20-pmc-app .afl20-pmc-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.afl20-pmc-app .afl20-pmc-side {
  display: flex;
  flex: 0 0 280px;
  flex-direction: column;
  gap: 16px;
}

.afl20-pmc-app .afl20-pmc-upload-zone {
  padding: 30px 20px;
  border: 2px dashed #b8a9d4;
  border-radius: 16px;
  outline: none;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.afl20-pmc-app .afl20-pmc-upload-zone:hover,
.afl20-pmc-app .afl20-pmc-upload-zone:focus-visible,
.afl20-pmc-app .afl20-pmc-upload-zone.afl20-pmc-dragover {
  border-color: #7b4ba5;
  background: #faf7fc;
  box-shadow: 0 0 0 3px rgba(123, 75, 165, 0.12);
}

.afl20-pmc-app .afl20-pmc-upload-zone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: #7b4ba5;
}

.afl20-pmc-app .afl20-pmc-upload-zone-icon svg,
.afl20-pmc-app .afl20-pmc-frame-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.afl20-pmc-app .afl20-pmc-upload-btn,
.afl20-pmc-app .afl20-pmc-download-btn,
.afl20-pmc-app .afl20-pmc-frame-btn {
  margin: 0;
  font-family: inherit;
  text-shadow: none;
}

.afl20-pmc-app .afl20-pmc-upload-btn {
  padding: 14px 40px;
  border: 0;
  border-radius: 30px;
  background: #7b4ba5;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s;
}

.afl20-pmc-app .afl20-pmc-upload-btn:hover,
.afl20-pmc-app .afl20-pmc-upload-btn:focus-visible {
  background: #5d3a82;
  color: #fff;
}

.afl20-pmc-app .afl20-pmc-upload-hint {
  margin-top: 7px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.afl20-pmc-app .afl20-pmc-file-input {
  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;
}

.afl20-pmc-app .afl20-pmc-frame-select {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.afl20-pmc-app .afl20-pmc-frame-select-label {
  margin-bottom: 10px;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
}

.afl20-pmc-app .afl20-pmc-frame-btns {
  display: flex;
  gap: 8px;
}

.afl20-pmc-app .afl20-pmc-frame-btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid #e0d6f0;
  border-radius: 12px;
  background: #fff;
  color: #4a0e6e;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.afl20-pmc-app .afl20-pmc-frame-btn:hover,
.afl20-pmc-app .afl20-pmc-frame-btn:focus-visible {
  border-color: #b8a9d4;
  background: #faf7fc;
  color: #4a0e6e;
}

.afl20-pmc-app .afl20-pmc-frame-btn.active {
  border-color: #7b4ba5;
  background: #f5eef9;
}

.afl20-pmc-app .afl20-pmc-frame-btn-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #7b4ba5;
}

.afl20-pmc-app .afl20-pmc-frame-btn-name {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.afl20-pmc-app .afl20-pmc-download-btn {
  padding: 16px 30px;
  border: 0;
  border-radius: 30px;
  background: #c30024;
  box-shadow: 0 4px 12px rgba(195, 0, 36, 0.25);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.afl20-pmc-app .afl20-pmc-download-btn:hover:not(:disabled),
.afl20-pmc-app .afl20-pmc-download-btn:focus-visible:not(:disabled) {
  background: #a6001f;
  color: #fff;
  transform: translateY(-1px);
}

.afl20-pmc-app .afl20-pmc-download-btn:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.afl20-pmc-app .afl20-pmc-status {
  min-height: 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.afl20-pmc-app .afl20-pmc-status.is-error {
  color: #c30024;
  font-weight: 600;
}

.afl20-pmc-app .afl20-pmc-poster-maker {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
}

@media (max-width: 800px) {
  .afl20-pmc-app .afl20-pmc-main {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .afl20-pmc-app .afl20-pmc-side {
    flex: none;
  }

  .afl20-pmc-app .afl20-pmc-poster-maker {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .afl20-pmc-app .afl20-pmc-banner {
    padding: 16px 18px;
    font-size: 16px;
  }

  .afl20-pmc-app .afl20-pmc-upload-zone {
    padding: 24px 16px;
  }
}

