.up-reg {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f7faff;
  --bg: #ffffff;
  --accent: #2563eb;
  /* 파란 포커스 */
  --brand: #2d5f3f;
  /* 실제 버튼 컬러 */
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --container: min(1100px, 94vw);
  color: var(--ink);
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 16px;
}
.user-profile-v1-update {
  width: 100%;
}
.up-reg * {
  box-sizing: border-box;
}

.up-reg .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  border: 0;
}

/* Head */
.up-head {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #eeede5;
  padding-bottom: 12px;
}

.up-head-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.up-head-desc {
  margin: 0;
  color: var(--muted);
}

/* Card */
.up-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 12px 0;
}

.up-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Grid */
.up-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Field */
.up-field .up-label {
  width: 100%;
  display: block;
  font-weight: 700;
  margin: 2px 0 6px;
}

.up-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.up-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Readonly (텍스트형 값) */
.up-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafafa;
  color: var(--muted);
}

/* 라인/스택 레이아웃 */
.up-line {
  display: flex;
  gap: 8px;
  align-items: center;
}

.up-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.up-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Address 보조 (member_address.html 오버라이드용 선택) */
.up-zip-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
}

.up-btn-zip {
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease;
  height: 44px;
  white-space: nowrap;
}

.up-btn-zip:hover {
  filter: brightness(0.95);
}

/* Buttons */
.up-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.up-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.up-btn.primary {
  background: var(--brand);
  color: #fff;
}

.up-btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.up-btn.line {
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.up-btn:hover {
  filter: brightness(0.98);
}

/* Misc */
.nospace {
  letter-spacing: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .up-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
