.yd-code-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yd-code-card label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

.yd-code-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}

.yd-code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 59, 43, 0.12);
}

.yd-code-msg {
  font-size: var(--text-sm);
  color: var(--accent-2);
  margin: 0;
  font-weight: 600;
}

.yd-code-msg:empty {
  display: none;
}

.yd-code-foot {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 4px 0 0;
  text-align: center;
}

.yd-code-foot a {
  color: var(--accent);
  font-weight: 600;
}