:root {
  --bg: #f3efe6;
  --card: #fffdf8;
  --ink: #1a3658;
  --gold: #c4a35a;
  --line: #d8d0c0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

body {
  padding: 24px 16px 40px;
  font-size: 18px;
  line-height: 1.65;
}

.card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 32px;
  box-shadow: 0 16px 40px rgba(26, 54, 88, 0.08);
}

header { text-align: center; }

.brand-seal { display: flex; justify-content: center; }
.rka-seal { width: 108px; height: 108px; object-fit: contain; }

.brand-kicker {
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a3658;
}

.logo {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

header h1 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.subtitle {
  margin: 6px 0 0;
  color: #1a3658;
  font-size: 18px;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #14532d;
  font-size: 16px;
  font-weight: 600;
}

.upload-area { margin-top: 22px; }

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed var(--gold);
  border-radius: 18px;
  background: #fbf7ee;
  cursor: pointer;
}

.drop-zone-title { font-weight: 700; }
.drop-zone-hint { font-size: 16px; color: #1a3658; }
.drop-zone input { display: none; }

.status-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef4ff;
  font-size: 16px;
  color: #1a3658;
}

.hidden { display: none !important; }

.input-group { margin-top: 18px; }
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a3658;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}

.btn, .btn-secondary, .btn-next {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
}

.btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--ink);
  color: #e8d5a3;
  font-weight: 700;
}

.btn:hover { filter: brightness(1.08); }

.result-box { margin-top: 22px; }
.result-box h3, .result-box h4 { margin: 16px 0 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.btn-secondary, .btn-next {
  padding: 10px 14px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 600;
}

.btn-next { width: 100%; margin-top: 16px; }

#mappingTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  color: #1a3658;
}

#mappingTable th, #mappingTable td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

#mappingTable th { background: #f3efe6; }

.statusbar {
  max-width: 860px;
  margin: 20px auto 0;
  text-align: center;
}

.statusbar-text { font-size: 16px; color: #1a3658; line-height: 1.5; }
.statusbar-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.chip-wa { background: #ecfdf3; }
