:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.app {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.brand-name { font-weight: 800; }
.brand-sub { font-size: 12px; color: var(--muted); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.hidden { display: none; }
h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
p { line-height: 1.7; }
.lead { color: var(--muted); }
.label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
}
.member-code {
  margin: 18px 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .08em;
}
#barcode {
  width: 100%;
  min-height: 88px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.info-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.info-grid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.info-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}
.note, .form-note {
  color: var(--muted);
  font-size: 13px;
}
form { display: grid; gap: 16px; }
label, legend {
  font-size: 14px;
  font-weight: 700;
}
input, select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 12px;
  font-size: 16px;
  background: #fff;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-weight: 500;
}
.check input {
  width: auto;
  margin: 0;
}
.consent { align-items: flex-start; }
.required { color: var(--danger); font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; font-weight: 500; }
button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--accent); color: #fff; }
.secondary { background: #e5e7eb; color: var(--text); }
.error { border-color: #fecaca; }
.error h1 { color: var(--danger); }
