/* /me/ — 회원 포털 전용 스타일. PT 다크 토큰 (--bg, --accent, ...) 재사용 */
.me-body { background: var(--bg); color: var(--text); margin: 0; padding: 0; min-height: 100vh; font-family: 'Pretendard', 'Pretendard Variable', -apple-system, sans-serif; }

/* === Login === */
.me-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.me-login-card { background: var(--surface, #181818); border-radius: 12px; padding: 40px 28px; box-shadow: rgba(0,0,0,0.5) 0px 8px 24px; max-width: 380px; width: 100%; }
.me-login-logo { font-size: 24px; font-weight: 700; color: var(--accent); text-align: center; }
.me-login-subtitle { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 6px; margin-bottom: 28px; }
.me-login-error { color: #f3727f; font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }
.me-input { width: 100%; box-sizing: border-box; background: #1f1f1f; color: #fff; border: 1px solid #4d4d4d; border-radius: 6px; padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none; }
.me-input:focus { border-color: var(--accent); }

/* === Buttons === */
.me-btn { display: inline-block; box-sizing: border-box; padding: 12px 20px; border: none; border-radius: 9999px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: transform 0.1s, box-shadow 0.2s; }
.me-btn-primary { background: var(--accent); color: #000; width: 100%; margin-top: 14px; }
.me-btn-primary:hover { box-shadow: 0 4px 14px rgba(255,94,0,0.35); }
.me-btn-outline { background: transparent; color: var(--text); border: 1px solid #7c7c7c; }
.me-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.me-btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 14px; }
.me-btn-ghost:hover { color: var(--text); }
.me-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === Shell === */
.me-shell { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.me-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.me-greet { color: var(--text); font-size: 15px; }

/* === Dashboard cards === */
.me-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .me-cards { grid-template-columns: 1fr 1fr; } }
.me-card { background: var(--surface-card, #252525); border-radius: 12px; padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: rgba(0,0,0,0.3) 0px 8px 8px; }
.me-card-disabled { opacity: 0.5; pointer-events: none; }
.me-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.me-card-meta { font-size: 12px; color: var(--text-secondary); }
.me-card-result { font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.me-card-desc { font-size: 13px; color: var(--text-muted); margin: 4px 0 8px; line-height: 1.5; }
.me-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.me-card-loading { color: var(--text-secondary); padding: 20px; text-align: center; }

/* === Test runner === */
.me-test { background: var(--surface-card, #252525); border-radius: 12px; padding: 24px 20px; }
.me-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.me-progress-step { flex: 1; height: 4px; border-radius: 2px; background: #3a3a3a; }
.me-progress-step.active { background: var(--accent); }
.me-progress-step.done { background: #ff9a52; }
.me-step-header { text-align: center; margin-bottom: 18px; }
.me-step-header h2 { color: var(--accent); font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.me-step-header span { color: var(--text-secondary); font-size: 12px; }
.me-questions { list-style: none; margin: 0; padding: 0; }
.me-q { display: flex; align-items: center; gap: 12px; padding: 14px 14px; margin-bottom: 8px; border-radius: 10px; border: 1px solid #3a3a3a; background: #1f1f1f; cursor: pointer; user-select: none; transition: border-color 0.15s, background 0.15s; }
.me-q:hover { border-color: #5a5a5a; }
.me-q-checked { border-color: var(--accent); background: #2a1f15; }
.me-q-mark { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #5a5a5a; flex-shrink: 0; position: relative; }
.me-q-checked .me-q-mark { background: var(--accent); border-color: var(--accent); }
.me-q-checked .me-q-mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.me-q-text { color: var(--text); font-size: 14px; line-height: 1.5; }
.me-test-actions { display: flex; gap: 10px; margin-top: 24px; }
.me-test-actions .me-btn { flex: 1; width: auto; margin-top: 0; }

/* === Result === */
.me-result { background: var(--surface-card, #252525); border-radius: 12px; padding: 0 0 24px; overflow: hidden; }
.me-result-top { padding: 32px 20px 24px; background: linear-gradient(135deg, var(--accent), #ff8c3a); color: #000; text-align: center; }
.me-result-top-label { font-size: 12px; letter-spacing: 0.05em; opacity: 0.85; }
.me-result-top h2 { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.me-result-top p { font-size: 13px; margin: 0; opacity: 0.85; }
.me-score { padding: 24px 20px 0; }
.me-score-row { display: flex; align-items: center; margin-bottom: 14px; gap: 10px; }
.me-score-label { width: 40px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-align: right; }
.me-score-bar { flex: 1; height: 10px; background: #3a3a3a; border-radius: 5px; overflow: hidden; }
.me-score-fill { height: 100%; border-radius: 5px; transition: width 0.8s ease; }
.me-score-fill.me-score-auditory    { background: var(--accent); }
.me-score-fill.me-score-visual      { background: #ffaa4d; }
.me-score-fill.me-score-kinesthetic { background: var(--accent-dark, #cc4b00); }
.me-score-pct { width: 40px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--text); }
.me-divider { height: 1px; background: #3a3a3a; margin: 20px 20px; }
.me-info { padding: 0 20px; color: var(--text-muted); line-height: 1.7; font-size: 14px; }
.me-info-label { font-size: 11px; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.me-info ul { padding-left: 18px; margin: 0; }
.me-info li { margin-bottom: 4px; }
.me-result-actions { display: flex; gap: 10px; padding: 24px 20px 0; }
.me-result-actions .me-btn { flex: 1; width: auto; margin-top: 0; }

.me-error { padding: 40px; text-align: center; color: #f3727f; }

/* === DISC === */
.me-disc-keywords { display: flex; gap: 8px; padding: 16px 20px 0; flex-wrap: wrap; }
.me-disc-chip { display: inline-block; padding: 6px 12px; background: #2a2a2a; color: var(--accent); border-radius: 9999px; font-size: 12px; font-weight: 700; }
.me-score-fill.me-score-disc { background: var(--accent); }
.me-disc-rank { font-size: 11px; color: var(--text-secondary); width: 56px; flex-shrink: 0; text-align: right; }

/* DISC test runner: word card with rank label + X button */
.me-q-disc { position: relative; }
.me-q-rank { width: 36px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--accent); text-align: center; }
.me-q-x {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: #4a4a4a; color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.me-q-x:hover { background: #6a6a6a; }

/* === Voice Intake === */
.me-vi { background: var(--surface-card, #252525); border-radius: 12px; padding: 20px 18px; }
.me-vi-questions { list-style: none; margin: 0; padding: 0; counter-reset: viq; }
.me-vi-q-item { padding: 16px 0; border-bottom: 1px solid #3a3a3a; counter-increment: viq; }
.me-vi-q-item:last-child { border-bottom: none; }
.me-vi-q-text { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.me-vi-q-text::before { content: 'Q' counter(viq) '. '; color: var(--accent); margin-right: 4px; }
.me-vi-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.me-vi-radio, .me-vi-checkbox {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3a3a; background: #1f1f1f;
  color: var(--text); font-size: 13px; line-height: 1.4; user-select: none;
}
.me-vi-radio:hover, .me-vi-checkbox:hover { border-color: #5a5a5a; }
.me-vi-radio input, .me-vi-checkbox input { accent-color: var(--accent); flex-shrink: 0; }
.me-vi-other { margin-top: 8px; }
.me-vi-error { color: #f3727f; font-size: 12px; min-height: 16px; margin-top: 6px; }
.me-vi-error-shown { font-weight: 500; }

/* === Voice Intake result view === */
.me-vi-result { background: var(--surface-card, #252525); border-radius: 12px; padding: 20px 18px; }
.me-vi-row { padding: 14px 0; border-bottom: 1px solid #3a3a3a; }
.me-vi-row:last-child { border-bottom: none; }
.me-vi-q { color: var(--text-secondary); font-size: 12px; margin-bottom: 6px; }
.me-vi-a { color: var(--text); font-size: 14px; line-height: 1.6; }
