.ref-card {
  background: var(--paper, #ffffff);
  border: 1px solid rgba(126, 155, 98, 0.16);
  border-radius: 22px;
  padding: 18px 16px 16px;
  margin: 0 0 16px;
  box-shadow: 0 18px 40px rgba(60, 42, 34, 0.08);
}
.ref-card h2 { font-size: 20px; }
.code-box {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 32px;
  letter-spacing: 0.18em;
  text-align: center;
  background: #eef5e4;
  border-radius: 16px;
  padding: 18px 12px;
  margin: 8px 0 12px;
  color: #4a5c43;
}
.code-wrap { margin: 8px 0 14px; }
.code-wrap .code-box { margin: 0 0 10px; }
.code-wrap .btn { width: 100%; }
.phone-screen .code-box { font-size: 24px; padding: 14px 8px; }
.phone-screen .ref-card { box-shadow: 0 8px 20px rgba(60, 42, 34, 0.08); }
.code-box.is-empty {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #7a8a72;
}
.ref-status {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f0e4;
  color: #4a5c43;
  line-height: 1.7;
  white-space: pre-wrap;
}
.ref-status.wait { background: #eef5e4; }
.ref-status.ok { background: #e4efe8; }
.ref-status.err { background: #f6e4e0; color: #6a2b22; }
.ref-auth {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #7a8a72;
  word-break: break-all;
}
button[data-issue][disabled],
button[type="submit"][disabled] {
  opacity: 0.72;
  cursor: wait;
}
.rules {
  margin: 4px 0 14px;
  padding-left: 1.35em;
  color: #4a5c43;
  font-size: 13px;
  line-height: 1.7;
}
.rules li { margin: 0 0 8px; }
.ref-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ref-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  appearance: auto;
  flex: 0 0 auto;
  accent-color: #7e9b62;
}
.ref-agree input[type="checkbox"]:focus {
  outline: 2px solid rgba(196, 165, 116, 0.45);
  outline-offset: 2px;
  border: 0;
}
.ref-agree span {
  font-size: 14px;
  line-height: 1.5;
}
.ref-choose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 8px;
}
.ref-choose .btn {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
}
.ref-back {
  margin-top: 4px;
}
.ref-back .btn { width: 100%; }
.lead { white-space: pre-wrap; }
