/* ═══════════════════════════════════════════════════════════════
   AI Link Auth — auth.css
   al2- 디자인 시스템 통일 버전
   
   개선 포인트:
   - 보라색 그라데이션 배경 → 클린 뉴트럴 + 브랜드 악센트
   - Noto Sans KR → Pretendard (al2- 시스템 폰트)
   - 독립 변수 → al2- CSS 변수 사용
   - 소셜 로그인 계층 구조 명확화
   - 역할 선택 카드 al2- 컴포넌트 스타일
   - 신뢰 지표 추가
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Auth-specific (al2- 변수 위에 추가) */
  --auth-customer: #2563EB;
  --auth-customer-bg: #EFF6FF;
  --auth-sales: #D97706;
  --auth-sales-bg: #FFFBEB;
  --auth-kakao: #FEE500;
  --auth-naver: #03C75A;
  --auth-radius: var(--al2-radius-md, 10px);
  --auth-radius-lg: var(--al2-radius-lg, 14px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  font-family: var(--al2-font-sans, 'Pretendard', -apple-system, sans-serif);
  background: var(--al2-g50, #F8FAFC);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── 배경 장식 (미묘한 브랜드 톤) ─── */
.bg-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bg-decoration-1 {
  width: 400px; height: 400px;
  top: -150px; right: -150px;
  background: radial-gradient(circle, rgba(108,58,224,.06) 0%, transparent 70%);
}

.bg-decoration-2 {
  width: 300px; height: 300px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(37,99,235,.04) 0%, transparent 70%);
}

.bg-decoration-3 {
  width: 200px; height: 200px;
  top: 40%; left: 10%;
  background: radial-gradient(circle, rgba(108,58,224,.03) 0%, transparent 70%);
}


/* ─── 컨테이너 ─── */
.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--al2-white, #fff);
  border-radius: var(--auth-radius-lg);
  border: 1px solid var(--al2-g200, #E2E8F0);
  box-shadow: 0 8px 32px rgba(15,23,42,.08);
  overflow: hidden;
  animation: authSlideUp 0.4s ease;
}

@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ─── 로딩 오버레이 ─── */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-provider-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--auth-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.loading-provider-icon img {
  width: 28px;
  height: 28px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--al2-g200);
  border-top-color: var(--al2-brand, #6C3AE0);
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  margin-bottom: 12px;
}

@keyframes authSpin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: .85rem;
  font-weight: 600;
  color: var(--al2-g700);
}

.loading-step {
  font-size: .75rem;
  color: var(--al2-g400);
  margin-top: 4px;
}


/* ─── 초대 배너 ─── */
.invite-banner {
  display: none;
  background: linear-gradient(135deg, var(--al2-brand-light, #EDE5FB), #f0e7ff);
  border: 1px solid rgba(108,58,224,.12);
  border-radius: var(--auth-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
}

.invite-banner.show { display: flex; }

.invite-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--al2-brand), #a78bfa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.invite-info { flex: 1; }
.invite-title { font-size: .82rem; font-weight: 700; color: var(--al2-g800); }
.invite-desc { font-size: .72rem; color: var(--al2-g500); margin-top: 2px; }
.invite-close {
  background: none; border: none; color: var(--al2-g400);
  cursor: pointer; font-size: 1rem; padding: 4px;
}


/* ─── 헤더 ─── */
.auth-header {
  text-align: center;
  padding: 32px 28px 0;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
}

.auth-logo-icon {
  width: 36px; height: 36px;
  background: var(--al2-brand, #6C3AE0);
  border-radius: var(--al2-radius-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
}

.auth-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--al2-g900);
  letter-spacing: -.02em;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--al2-g900);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.auth-subtitle {
  font-size: .82rem;
  color: var(--al2-g500);
  line-height: 1.5;
}


/* ─── 바디 ─── */
.auth-body {
  padding: 24px 28px;
}


/* ─── 소셜 로그인 ─── */
.social-section {
  margin-bottom: 20px;
}

.social-hint {
  font-size: .75rem;
  color: var(--al2-g400);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 카카오 메인 버튼 */
.social-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--auth-radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  width: 100%;
}

.social-btn-primary img {
  width: 20px; height: 20px;
}

.btn-kakao {
  background: var(--auth-kakao);
  color: #191919;
}

.btn-kakao:hover {
  background: #f5da00;
  box-shadow: 0 2px 8px rgba(254,229,0,.3);
}

/* 네이버/구글 가로 배치 */
.social-btn-secondary-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--al2-g200);
  border-radius: var(--auth-radius);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  background: var(--al2-white);
}

.social-btn-secondary img {
  width: 18px; height: 18px;
}

.btn-naver {
  background: var(--auth-naver);
  color: #fff;
  border-color: var(--auth-naver);
}

.btn-naver:hover {
  background: #02b350;
}

.btn-google {
  background: var(--al2-white);
  color: var(--al2-g700);
}

.btn-google:hover {
  background: var(--al2-g50);
  border-color: var(--al2-g300);
}

/* 소셜 로딩 상태 */
.social-btn-primary.is-loading,
.social-btn-secondary.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 소셜 신뢰 문구 */
.social-trust {
  text-align: center;
  font-size: .65rem;
  color: var(--al2-g400);
  margin-top: 8px;
}

.social-trust i {
  color: var(--al2-green);
  margin-right: 3px;
}


/* ─── 이메일 토글 ─── */
.email-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  border-top: 1px solid var(--al2-g100);
  color: var(--al2-g500);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
  font-family: inherit;
  margin-top: 4px;
}

.email-toggle:hover { color: var(--al2-g700); }

.email-toggle i {
  font-size: .6rem;
  transition: transform .2s;
}

.email-toggle.open i {
  transform: rotate(180deg);
}


/* ─── 이메일 폼 ─── */
.email-form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.email-form-wrapper.show {
  max-height: 800px;
}
/* otherWaysWrapper는 내부에 또 다른 email-form-wrapper를 포함 → 더 큰 max-height */
#otherWaysWrapper.show {
  max-height: 1400px;
}

.email-form {
  padding: 16px 0 4px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--al2-g700);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--al2-g200);
  border-radius: var(--auth-radius);
  font-size: .85rem;
  font-family: inherit;
  color: var(--al2-g800);
  background: var(--al2-white);
  outline: none;
  transition: all .15s;
}

.form-input:focus {
  border-color: var(--al2-brand);
  box-shadow: 0 0 0 3px rgba(108,58,224,.08);
}

.form-input::placeholder {
  color: var(--al2-g400);
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--al2-g400);
  cursor: pointer;
  font-size: .82rem;
}

.forgot-password {
  text-align: right;
  margin-bottom: 14px;
}

.forgot-password a {
  font-size: .72rem;
  color: var(--al2-g400);
  text-decoration: none;
}

.forgot-password a:hover {
  color: var(--al2-brand);
}


/* ─── 버튼 ─── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: var(--auth-radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--al2-brand-dark, #4A1FB8);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .6s linear infinite;
}

.hidden { display: none; }


/* ─── 푸터 ─── */
.auth-footer {
  text-align: center;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--al2-g100);
}

.auth-footer p {
  font-size: .78rem;
  color: var(--al2-g500);
}

.auth-footer a {
  color: var(--al2-brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}


/* ─── 신뢰 지표 (카드 아래) ─── */
.auth-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding: 0 20px;
}

.auth-trust-item {
  text-align: center;
}

.auth-trust-val {
  font-family: var(--al2-font-mono, 'JetBrains Mono', monospace);
  font-size: .88rem;
  font-weight: 700;
  color: var(--al2-g700);
}

.auth-trust-lbl {
  font-size: .62rem;
  color: var(--al2-g400);
  margin-top: 1px;
}


/* ═══════════════════════════════════════════════════════════════
   역할 선택 섹션
   ═══════════════════════════════════════════════════════════════ */
.login-section { display: block; }
.role-section { display: none; }

/* 스텝 인디케이터 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  color: var(--al2-g400);
  font-weight: 500;
}

.step.active { color: var(--al2-brand); }
.step.completed { color: var(--al2-green); }

.step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  border: 2px solid var(--al2-g200);
  color: var(--al2-g400);
  background: var(--al2-white);
}

.step.active .step-number {
  border-color: var(--al2-brand);
  color: var(--al2-brand);
  background: var(--al2-brand-dim, rgba(108,58,224,.08));
}

.step.completed .step-number {
  border-color: var(--al2-green);
  background: var(--al2-green-light);
  color: var(--al2-green);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--al2-g200);
  margin: 0 8px;
  margin-bottom: 18px;
}

.step-line.completed { background: var(--al2-green); }

.welcome-text {
  font-size: .85rem;
  color: var(--al2-g500);
  margin-bottom: 8px;
}

.user-name {
  font-weight: 700;
  color: var(--al2-brand);
}


/* ─── 역할 선택 카드 ─── */
.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.role-option {
  position: relative;
  border: 2px solid var(--al2-g200);
  border-radius: var(--auth-radius-lg);
  padding: 20px 16px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: var(--al2-white);
}

.role-option::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border: 2px solid var(--al2-g200);
  border-radius: 50%;
  transition: all .2s;
}

.role-option:hover {
  border-color: var(--al2-g300);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.role-option.customer:hover,
.role-option.selected.customer {
  border-color: var(--auth-customer);
  background: var(--auth-customer-bg);
}

.role-option.sales:hover,
.role-option.selected.sales {
  border-color: var(--auth-sales);
  background: var(--auth-sales-bg);
}

.role-option.selected {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.role-option.selected::before {
  border-width: 6px;
}

.role-option.selected.customer::before {
  border-color: var(--auth-customer);
}

.role-option.selected.sales::before {
  border-color: var(--auth-sales);
}

.role-option input { display: none; }

.role-check {
  display: none;
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.role-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--al2-g900);
  margin-bottom: 4px;
}

.role-desc {
  font-size: .72rem;
  color: var(--al2-g500);
  line-height: 1.4;
  margin-bottom: 10px;
}

.role-features {
  text-align: left;
  margin-bottom: 10px;
}

.role-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  color: var(--al2-g600);
  padding: 2px 0;
}

.role-feature i {
  color: var(--al2-green);
  font-size: .55rem;
  width: 12px;
  text-align: center;
}

.role-badge {
  font-size: .6rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--al2-radius-full, 100px);
  background: var(--al2-g100);
  color: var(--al2-g500);
  display: inline-block;
}

.role-option.customer .role-badge {
  background: linear-gradient(135deg, var(--auth-customer), #1d4ed8);
  color: #fff;
}

.role-option.sales .role-badge {
  background: linear-gradient(135deg, var(--auth-sales), #b45309);
  color: #fff;
}

/* 영업대표 배지 선택 */
.sales-badge-section {
  margin-top: 12px;
  padding: 16px;
  background: var(--al2-g50);
  border-radius: var(--auth-radius);
  border: 1px solid var(--al2-g200);
}

.badge-section-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--al2-g700);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.badge-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px solid var(--al2-g200);
  border-radius: var(--auth-radius);
  cursor: pointer;
  transition: all .15s;
  background: var(--al2-white);
  text-align: center;
  font-family: inherit;
}

.badge-option:hover {
  border-color: var(--auth-sales);
}

.badge-option.selected {
  border-color: var(--auth-sales);
  background: var(--auth-sales-bg);
}

.badge-icon { font-size: 1.2rem; }
.badge-name { font-size: .68rem; font-weight: 600; color: var(--al2-g700); }
.badge-desc { font-size: .58rem; color: var(--al2-g400); }

/* 계속하기 버튼 */
.role-actions {
  margin-top: 16px;
}

.btn.btn-role {
  padding: 12px 16px;
}


/* ─── 토스트 ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--al2-g800);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--auth-radius);
  font-size: .78rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--al2-green); }
.toast.error { background: var(--al2-red, #DC2626); }

/* 이메일 인증 관련 */
#verificationSection { margin-top: 12px; }
#verificationError {
  padding: 8px 12px;
  border-radius: var(--auth-radius);
  font-size: .75rem;
  margin-top: 8px;
  display: none;
}

.verification-input-group {
  display: flex;
  gap: 6px;
}

.verification-input-group input {
  flex: 1;
}

.verification-input-group button {
  flex-shrink: 0;
}

#timerDisplay {
  font-family: var(--al2-font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--al2-brand);
}


/* ─── 회원가입 전용 필드 ─── */
.signup-fields { display: none; }

.email-check-row {
  display: flex;
  gap: 6px;
}

.email-check-row input { flex: 1; }
.email-check-row button { flex-shrink: 0; }

.btn-sm {
  padding: 8px 12px;
  font-size: .75rem;
  border-radius: var(--auth-radius);
  border: 1px solid var(--al2-g200);
  background: var(--al2-white);
  color: var(--al2-g700);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-sm:hover {
  border-color: var(--al2-brand);
  color: var(--al2-brand);
}

.btn-sm:disabled {
  opacity: .5;
  cursor: not-allowed;
}


/* ─── 반응형 ─── */
@media (max-width: 480px) {
  body { padding: 1rem; }

  .auth-container { max-width: 100%; }

  .auth-header { padding: 24px 20px 0; }
  .auth-body { padding: 20px; }
  .auth-footer { padding: 14px 20px 20px; }

  .auth-title { font-size: 1.15rem; }

  .role-options {
    grid-template-columns: 1fr;
  }

  .badge-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-btn-secondary-group {
    grid-template-columns: 1fr 1fr;
  }

  .auth-trust {
    gap: 16px;
  }
}

/* ════════════════════════════════════════════════════════════════
 * v3.0 (2026-04-26) — Stripe-style email-first 단순화
 * ════════════════════════════════════════════════════════════════ */
.au3-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: lowercase;
}
.au3-divider::before, .au3-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.au3-input-wrap {
  position: relative;
  margin-bottom: 8px;
}
.au3-input-wrap input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.94rem;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.au3-input-wrap input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.au3-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.au3-btn-primary:hover { transform: translateY(-1px); }
.au3-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.au3-btn-kakao { background: #fee500; color: #181600; }
.au3-btn-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.au3-btn-google { background: #fff; color: #1f2937; border: 1px solid #dadce0; }
.au3-btn-naver  { background: #03c75a; color: #fff; }
.au3-btn-stretch { width: 100%; }  /* 안전 마커 (au3-btn-primary 이미 width:100%) */

.au3-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.au3-btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }

.au3-icon-row {
  display: flex;
  gap: 8px;
}
.au3-icon-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  color: #475569;
  transition: border-color .15s;
}
.au3-icon-btn:hover { border-color: #94a3b8; }
.au3-icon-btn img { width: 16px; height: 16px; }

.au3-tiny-link {
  display: inline-block;
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
}
.au3-tiny-link:hover { color: #475569; text-decoration: underline; }

.au3-more {
  margin-top: 14px;
  text-align: center;
}
.au3-more-panel {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  display: none;
}
.au3-more-panel.open { display: block; }

.au3-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.au3-email-chip button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6366f1;
  font-size: 0.86rem;
  line-height: 1;
  padding: 0 2px;
}

.au3-status {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 10px;
  min-height: 16px;
}
.au3-status.ok { color: #10b981; }
.au3-status.warn { color: #f59e0b; }

/* role section 슬림화 */
.au3-role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.au3-role-card:hover { border-color: #6366f1; background: #f8fafc; }
.au3-role-card.selected { border-color: #6366f1; background: #eef2ff; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18); }
.au3-role-card.selected .au3-role-check { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: #6366f1; }
.au3-role-card:not(.selected) .au3-role-check { color: transparent; }
.au3-role-icon { font-size: 1.6rem; }
.au3-role-name { font-weight: 700; color: #0f172a; }
.au3-role-tag { font-size: 0.78rem; color: #64748b; }

