:root {
  --bg: #f6f3ef;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #1b6b4f;
  --accent-2: #0f4a36;
  --card: #ffffff;
  --border: #e2ded7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #f9f4ec 0%, #f0ece6 55%, #efe7de 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

header {
  padding: 28px 24px 10px;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

main.steps {
  padding: 12px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-index {
  background: #f3eee7;
  color: var(--accent-2);
  border-radius: 14px;
  font-weight: 700;
  padding: 8px 12px;
  font-size: 14px;
  min-width: 54px;
  text-align: center;
}

.step-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #e7e2da;
  color: #2c2c2c;
}

label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.muted-row {
  opacity: 0.8;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profile-grid .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-grid .value {
  font-weight: 600;
}

.upload-list {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.upload-list .item {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8f5f1;
  margin-bottom: 6px;
}

.download-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.download-item {
  background: #f8f5f1;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.download-item .title {
  font-weight: 600;
  font-size: 14px;
}

.download-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checklist input[type="checkbox"] {
  margin-right: 8px;
}

.status {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  white-space: pre-wrap;
}

.pill {
  display: inline-block;
  background: #eef6f1;
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 6px;
}

.widget-frame {
  width: 100%;
  min-height: 480px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #faf8f5;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  padding: 16px 18px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-title {
  font-weight: 700;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.modal .widget-frame {
  min-height: 0;
  flex: 1;
}

#verifyModal .modal-content {
  max-width: 720px;
  height: auto;
}

footer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  header {
    padding: 20px 18px 6px;
  }

  main {
    padding: 8px 18px 24px;
  }
}
