/* =====================================================================
   AI 모의면접 시범서비스(PoC) — 폐쇄망 시연 단말(키오스크) 공통 스타일
   대상: user/ai-001 ~ ai-005 (body.poc). app.css 토큰·컴포넌트 위에 얹는다(app.css 수정 금지).
   원칙: 기본 글자 17px · 터치 영역 48px 이상 · 고대비(AA) · 키보드 포커스 표시 · prefers-reduced-motion 존중
   ===================================================================== */
body.poc {
  --poc-bg: #F1F4F7;
  --poc-ink: #111827;
  --poc-line: #D5DCE3;
  --poc-teal: #007A74;        /* 텍스트·버튼용 CI 청록(AA) */
  --poc-teal-d: #00615C;
  --poc-navy: #0F2A3D;
  --poc-warn-ink: #6B5100;
  --poc-radius: 18px;
  font-size: 17px; line-height: 1.6; color: var(--poc-ink); background: var(--poc-bg);
}
body.poc [hidden] { display: none !important; }
body.poc .text-muted { color: #4B5563; }
body.poc kbd { font-family: inherit; font-size: 13px; font-weight: 700; padding: 1px 6px; border: 1px solid #C3CCD6; border-bottom-width: 2px; border-radius: 6px; background: #fff; color: #1F2937; }
body.poc .help { font-size: 15px; color: #4B5563; }
body.poc :focus-visible { outline: 3px solid var(--poc-teal); outline-offset: 3px; border-radius: 6px; }
body.poc .poc-footer :focus-visible { outline-color: #fff; }

/* ---------- 버튼·폼 (키오스크 크기) ---------- */
body.poc .btn { height: 52px; padding: 0 22px; font-size: 16.5px; font-weight: 700; border-radius: 12px; }
body.poc .btn svg { width: 20px; height: 20px; }
body.poc .btn-lg { height: 60px; padding: 0 30px; font-size: 18.5px; border-radius: 14px; }
body.poc .btn-sm { height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
body.poc .btn-xs { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
body.poc .skip { top: -80px; }
body.poc .skip:focus { top: 0; }
body.poc .btn-primary { background: var(--poc-teal); }
body.poc .btn-primary:hover { background: var(--poc-teal-d); }
body.poc .btn-outline { border-color: var(--poc-line); color: var(--poc-ink); }
body.poc .btn-outline:hover { border-color: #6B7280; }
body.poc .btn-danger-o { border: 1px solid #F3B7B9; background: #fff; color: #B4262B; }
body.poc .btn-danger-o:hover { background: var(--danger-50); }
body.poc .btn-danger { background: #C8313A; color: #fff; }
body.poc .btn-danger:hover { background: #A9262E; }
body.poc .btn[disabled], body.poc .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
body.poc .input, body.poc .select { height: 56px; font-size: 18px; border: 2px solid var(--poc-line); border-radius: 12px; }
body.poc .textarea { font-size: 17.5px; line-height: 1.75; border: 2px solid var(--poc-line); border-radius: 14px; padding: 16px 18px; }
body.poc .input:focus, body.poc .textarea:focus, body.poc .select:focus { border-color: var(--poc-teal); box-shadow: 0 0 0 4px rgba(0,122,116,.16); }
body.poc .input[aria-invalid="true"] { border-color: #C8313A; box-shadow: 0 0 0 4px rgba(200,49,58,.12); }
body.poc .check { font-size: 16.5px; gap: 12px; }
body.poc .check input { width: 24px; height: 24px; flex-shrink: 0; }
body.poc .badge { height: 28px; padding: 0 12px; font-size: 13px; }
body.poc .badge-warn { color: var(--poc-warn-ink); }
body.poc .badge-accent { color: #93500C; }
body.poc .badge-info { color: #0E678C; }
body.poc .badge-success { color: #3D6A0A; }
body.poc .alert { font-size: 15.5px; padding: 16px 18px; border-radius: 14px; }
body.poc .alert b { font-weight: 800; }
body.poc .alert-warn { color: #5F4700; }
body.poc .alert-danger { color: #9E1F25; border: 1px solid #F3B7B9; }
body.poc .proto-note { font-size: 13.5px; line-height: 1.65; }

/* ---------- 헤더 ---------- */
.poc-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--poc-line); }
.poc-header .bar { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 76px; display: flex; align-items: center; gap: 16px; }
.poc-brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 1; }
a.poc-brand { color: inherit; text-decoration: none; border-radius: 10px; }
a.poc-brand:hover .name { color: var(--poc-primary, #007A74); }
a.poc-brand:focus-visible { outline: 3px solid var(--poc-primary, #007A74); outline-offset: 4px; }
.poc-brand img { height: 30px; width: auto; flex-shrink: 0; }
.poc-brand .name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; padding-left: 14px; border-left: 1px solid var(--poc-line); white-space: nowrap; line-height: 1.2; }
.poc-brand .name small { display: block; font-size: 12px; font-weight: 600; color: #4B5563; letter-spacing: 0; }
.poc-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--poc-navy); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.poc-badge svg { width: 15px; height: 15px; }
.poc-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.poc-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: #F6F8FA; border: 1px solid var(--poc-line); font-size: 14px; color: #374151; white-space: nowrap; }
.poc-chip svg { width: 18px; height: 18px; color: var(--poc-teal); flex-shrink: 0; }
.poc-chip b { font-size: 16px; font-weight: 800; color: var(--poc-ink); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.poc-chip.none b { color: #6B7280; font-weight: 700; letter-spacing: 0; }
.poc-end { height: 44px !important; }

/* 단계 바 */
.poc-steps-wrap { background: #fff; border-bottom: 1px solid var(--poc-line); }
.poc-steps { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 8px; list-style: none; }
.poc-steps li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 12px; background: #F3F5F8; color: #4B5563; font-size: 16px; font-weight: 700; white-space: nowrap; }
.poc-steps li .n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #9CA3AF; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; background: #fff; color: #4B5563; }
.poc-steps li .n svg { width: 16px; height: 16px; }
.poc-steps li.done { background: var(--primary-50); color: var(--poc-teal); }
.poc-steps li.done .n { background: var(--poc-teal); border-color: var(--poc-teal); color: #fff; }
.poc-steps li.current { background: var(--poc-ink); color: #fff; }
.poc-steps li.current .n { background: #fff; border-color: #fff; color: var(--poc-ink); }
.poc-steps li .lbl { overflow: hidden; text-overflow: ellipsis; }

/* 본문 */
.poc-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 8px; }
.poc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.poc-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.poc-lead { font-size: 17.5px; color: #374151; margin-top: 6px; }
.poc-card { background: #fff; border: 1px solid #E1E6EC; border-radius: var(--poc-radius); padding: 28px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.poc-h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.poc-h2 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--poc-ink); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.poc-sub { font-size: 15px; color: #4B5563; margin-top: 4px; }
.tbl-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* 시나리오 색 점 */
.sc-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex-shrink: 0; }

/* AI 면접관 아바타 */
.poc-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; position: relative; }
.poc-avatar svg { width: 100%; height: 100%; }
.poc-avatar.speaking::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgba(0,169,157,.45); animation: pocPulse 1.2s ease-out infinite; }
@keyframes pocPulse { 0% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.poc-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0,122,116,.2); border-top-color: var(--poc-teal); animation: pocSpin .8s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes pocSpin { to { transform: rotate(360deg); } }

/* ---------- 푸터 ---------- */
.poc-footer { margin-top: 56px; background: #0F1B2A; color: #D1D8E0; font-size: 14.5px; }
.poc-footer .inner { max-width: 1200px; margin: 0 auto; padding: 26px 24px 84px; display: flex; gap: 20px 32px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.poc-footer .sep-text { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; }
.poc-footer .sep-text svg { width: 22px; height: 22px; flex-shrink: 0; color: #5FD3C8; margin-top: 1px; }
.poc-footer .sep-text b { color: #fff; }
.poc-footer .host { display: block; margin-top: 4px; font-size: 13px; color: #9FB0C2; }
.poc-footer .help-box { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.poc-footer .help-box span { color: #9FB0C2; font-size: 14px; }
.poc-footer .btn-call { height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; }
.poc-footer .btn-call:hover { background: rgba(255,255,255,.1); }
.poc-footer .btn-call svg { width: 18px; height: 18px; }

/* ---------- 토스트 ---------- */
.poc-toast { position: fixed; left: 50%; bottom: 36px; z-index: 700; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; background: #111827; color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 16px; font-weight: 600; box-shadow: 0 12px 32px rgba(16,24,40,.28); max-width: min(560px, calc(100vw - 32px)); width: max-content; display: flex; gap: 10px; align-items: flex-start; transition: opacity .2s, transform .2s, visibility .2s; }
.poc-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.poc-toast svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #5FD3C8; }
.poc-toast.warn svg { color: #F5C518; } .poc-toast.danger svg { color: #FF8A8F; }

/* ---------- 모달 (app.css .modal 재사용 + 키오스크 크기) ---------- */
body.poc .modal .dialog { border-radius: 22px; }
body.poc .modal .dialog-head { font-size: 20px; padding: 22px 26px; }
body.poc .modal .dialog-body { padding: 24px 26px; font-size: 16.5px; }
body.poc .modal .dialog-foot { padding: 16px 26px; border-radius: 0 0 22px 22px; flex-wrap: wrap; }
body.poc .modal .x { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #4B5563; }
body.poc .modal .x:hover { background: var(--bg-mute); }
body.poc .modal .x svg { width: 22px; height: 22px; }

/* 프로토타입 바: PoC 는 권한 선택 없이 화면 ID·목록·포털 안내만 */
body.poc .proto-bar a { white-space: nowrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .poc-brand .name small { display: none; }
  .poc-chip { padding: 0 10px; }
  .poc-chip .k { display: none; }
}
@media (max-width: 767px) {
  body.poc { font-size: 16.5px; }
  .poc-header .bar { min-height: 0; padding: 10px 16px; flex-wrap: wrap; gap: 8px 10px; }
  .poc-brand { gap: 10px; flex: 1 1 auto; }
  .poc-brand img { height: 24px; width: 58px; object-fit: cover; object-position: left; }
  .poc-brand .name { font-size: 16.5px; padding-left: 10px; }
  .poc-meta { margin-left: 0; width: 100%; gap: 6px; }
  .poc-meta .poc-chip { height: 40px; font-size: 13px; padding: 0 10px; gap: 6px; }
  .poc-meta .poc-chip b { font-size: 14.5px; }
  .poc-meta .poc-end { margin-left: auto; height: 40px !important; padding: 0 12px; font-size: 14px; }
  .poc-badge { height: 26px; font-size: 12px; padding: 0 10px; }
  .poc-steps { padding: 8px 16px; gap: 6px; }
  .poc-steps li { flex: 0 0 auto; height: 44px; padding: 0 10px; font-size: 14.5px; gap: 8px; }
  .poc-steps li.current { flex: 1 1 auto; }
  .poc-steps li:not(.current) .lbl { display: none; }
  .poc-steps li .n { width: 26px; height: 26px; font-size: 13px; }
  .poc-main { padding: 20px 16px 8px; }
  .poc-title { font-size: 24px; }
  .poc-lead { font-size: 16px; }
  .poc-card { padding: 20px 18px; border-radius: 16px; }
  .poc-h2 { font-size: 19px; }
  .poc-footer .inner { padding: 22px 16px 72px; }
  .poc-footer .help-box { width: 100%; justify-content: space-between; }
  body.poc .btn-lg { height: 58px; font-size: 17.5px; padding: 0 22px; }
  body.poc .modal { padding: 12px; }
  body.poc .modal .dialog-head, body.poc .modal .dialog-body, body.poc .modal .dialog-foot { padding-left: 18px; padding-right: 18px; }
  body.poc .modal .dialog-foot .btn { flex: 1 1 auto; }
  body.poc .proto-bar { bottom: 8px; }
}

/* ---------- 모션 감소 ---------- */
@media (prefers-reduced-motion: reduce) {
  body.poc *, body.poc *::before, body.poc *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .poc-avatar.speaking::after { display: none; }
}

/* ---------- 인쇄 (현장 출력물) ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body.poc { background: #fff; font-size: 10.5pt; color: #000; }
  .poc-header, .poc-steps-wrap, .poc-footer, .proto-bar, .poc-toast, .no-print, .modal, .skip { display: none !important; }
  .poc-main { max-width: none; padding: 0; }
  .poc-card { box-shadow: none; border-color: #BFC6CE; break-inside: avoid; padding: 14px 16px; border-radius: 10px; }
  .print-only { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }
