* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #ecfeff 0%, #f8fafc 45%, #eef2ff 100%);
  color: #0f172a;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

header h1 {
  margin: 0;
  font-size: 24px;
}

header p {
  margin: 8px 0 20px;
  color: #64748b;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

input,
select {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn.primary {
  background: #0d9488;
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  background: #0f766e;
}

.btn.secondary {
  background: #f1f5f9;
  color: #334155;
}

.btn.secondary:hover:not(:disabled) {
  background: #e2e8f0;
}

.info {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 13px;
}

.info p {
  margin: 0;
}

.info p + p {
  margin-top: 4px;
}

.hidden {
  display: none;
}

.progress {
  margin-top: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.progress-phase {
  font-weight: 600;
  color: #0f766e;
}

.progress-percent {
  color: #64748b;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

#bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #0d9488;
  transition: width 0.2s;
}

#progress-text {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.status {
  margin: 14px 0 0;
  min-height: 18px;
  font-size: 13px;
}

.status.error {
  color: #dc2626;
}

.status.success {
  color: #059669;
}
