* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Noto Sans KR',sans-serif; background:#f8fafc; color:#1e293b; min-height:100vh; }
#app { max-width:1400px; margin:0 auto; padding:0 20px 40px; }

/* 로그인 */
.login-screen {
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 45%,#2563eb 100%);
  padding:24px;
}
.login-card {
  width:100%; max-width:400px; overflow:hidden;
  background:#fff; border-radius:16px;
  box-shadow:0 20px 60px rgba(15,23,42,0.35);
}
.login-header {
  padding:32px 32px 24px;
  background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);
  text-align:center;
}
.login-header h1 { color:#fff; font-size:24px; font-weight:700; margin-bottom:4px; }
.login-header p { color:rgba(255,255,255,0.78); font-size:13px; }
.login-body { padding:28px 32px 32px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; color:#475569; }
.form-group input {
  width:100%; padding:10px 14px; border:2px solid #e2e8f0; border-radius:8px;
  font-size:14px; font-family:inherit; outline:none; transition:border-color 0.2s;
}
.form-group input:focus { border-color:#2563eb; }
.btn-login {
  width:100%; margin-top:8px; padding:12px; border:none; border-radius:8px;
  background:#2563eb; color:#fff; font-size:15px; font-weight:600;
  font-family:inherit; cursor:pointer; transition:background 0.2s;
}
.btn-login:hover { background:#1d4ed8; }
.btn-login:disabled { background:#94a3b8; cursor:not-allowed; }
.login-error {
  margin-bottom:16px; padding:10px 14px; border-radius:8px;
  border:1px solid #fecaca; background:#fef2f2; color:#dc2626; font-size:13px;
}
.login-hint { margin-top:16px; text-align:center; font-size:12px; color:#94a3b8; }

/* 헤더 */
.header { background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%); margin:0 -20px; padding:20px 40px; margin-bottom:24px; }
.header-inner { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.header h1 { color:#fff; font-size:22px; font-weight:700; }
.version { background:rgba(255,255,255,0.2); color:#fff; padding:2px 10px; border-radius:12px; font-size:12px; }
.header-user { margin-left:auto; display:flex; align-items:center; gap:12px; }
.header-user span { color:rgba(255,255,255,0.85); font-size:13px; }
.btn-logout {
  padding:6px 14px; border:1px solid rgba(255,255,255,0.45); border-radius:6px;
  background:transparent; color:#fff; font-size:12px; font-family:inherit;
  cursor:pointer; transition:all 0.2s;
}
.btn-logout:hover { background:rgba(255,255,255,0.14); }

/* 업로드 */
.upload-section { margin-bottom:24px; }
.dropzone { border:2px dashed #cbd5e1; border-radius:12px; padding:48px; text-align:center; cursor:pointer;
  transition:all 0.2s; background:#fff; }
.dropzone:hover, .dropzone.dragover { border-color:#2563eb; background:#eff6ff; }
.dropzone-icon { font-size:48px; margin-bottom:12px; }
.dropzone-text { font-size:16px; font-weight:500; color:#475569; }
.dropzone-sub { font-size:13px; color:#94a3b8; margin-top:4px; }

/* 진행 */
.progress-section { margin-bottom:24px; }
.progress-bar { height:6px; background:#e2e8f0; border-radius:3px; overflow:hidden; }
.progress-fill { height:100%; background:#2563eb; border-radius:3px; transition:width 0.3s; width:0; }
.progress-text { font-size:13px; color:#64748b; margin-top:6px; }

/* 파일 목록 */
.file-list { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.file-chip { padding:8px 16px; border-radius:8px; background:#fff; border:2px solid #e2e8f0;
  cursor:pointer; font-size:13px; font-weight:500; transition:all 0.2s; }
.file-chip:hover { border-color:#2563eb; }
.file-chip.active { border-color:#2563eb; background:#eff6ff; color:#1e40af; }
.file-chip .status { margin-right:4px; }

/* 요약 카드 */
.summary-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:20px; }
.summary-card { background:#fff; border-radius:10px; padding:16px; border:1px solid #e2e8f0; }
.summary-card .label { font-size:12px; color:#64748b; margin-bottom:4px; }
.summary-card .value { font-size:24px; font-weight:700; }
.summary-card.pass .value { color:#059669; }
.summary-card.fail .value { color:#dc2626; }
.summary-card.warn .value { color:#d97706; }
.summary-card.info .value { color:#2563eb; }

/* 탭 */
.tabs { display:flex; gap:4px; border-bottom:2px solid #e2e8f0; margin-bottom:16px; }
.tab { padding:10px 20px; border:none; background:none; font-size:14px; font-weight:500;
  color:#64748b; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; }
.tab:hover { color:#1e293b; }
.tab.active { color:#2563eb; border-bottom-color:#2563eb; }
.tab-content { background:#fff; border-radius:10px; border:1px solid #e2e8f0; overflow:auto; }

/* 테이블 */
.result-table { width:100%; border-collapse:collapse; font-size:13px; }
.result-table th { background:#f1f5f9; padding:10px 12px; text-align:left; font-weight:600;
  color:#475569; border-bottom:2px solid #e2e8f0; position:sticky; top:0; }
.result-table td { padding:8px 12px; border-bottom:1px solid #f1f5f9; }
.result-table tr:hover { background:#f8fafc; }
.result-table .pass { background:#f0fdf4; }
.result-table .fail { background:#fef2f2; }
.result-table .warn { background:#fffbeb; }
.result-table .status-pass { color:#059669; font-weight:700; }
.result-table .status-fail { color:#dc2626; font-weight:700; }
.result-table .status-warn { color:#d97706; font-weight:700; }
.result-table .num { text-align:right; font-variant-numeric:tabular-nums; }

/* 주석 패널 */
.note-review { margin:12px; padding:14px 16px; border-radius:10px; border:1px solid #d1d5db; }
.note-review .title { font-size:13px; font-weight:700; margin-bottom:4px; }
.note-review .count { font-size:18px; font-weight:700; }
.note-review .detail-list { margin-top:8px; font-size:12px; line-height:1.5; }
.note-review .detail-list > div + div { margin-top:4px; }
.note-review.pass { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.note-review.warn { background:#fffbeb; border-color:#fcd34d; color:#92400e; }
.note-nav { display:flex; flex-wrap:wrap; gap:6px; padding:12px; border-bottom:1px solid #e2e8f0; }
.note-btn { padding:4px 12px; border-radius:6px; border:1px solid #d1d5db; background:#fff;
  font-size:12px; cursor:pointer; transition:all 0.15s; }
.note-btn:hover { border-color:#2563eb; }
.note-btn.active { background:#2563eb; color:#fff; border-color:#2563eb; }
.note-btn.has-ref { border-color:#059669; background:#f0fdf4; }
.note-btn.has-ref.active { background:#059669; color:#fff; }
.note-detail { padding:16px; }
.note-title { font-size:16px; font-weight:700; color:#1e3a5f; margin-bottom:12px; }
.note-status { display:inline-block; margin-bottom:12px; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.note-status.pass { background:#d1fae5; color:#065f46; }
.note-status.warn { background:#fef3c7; color:#92400e; }
.note-issue-box { margin-bottom:14px; padding:12px; border-radius:8px; background:#fffbeb; border:1px solid #fcd34d; color:#92400e; font-size:12px; line-height:1.5; }
.note-issue-box strong { display:block; margin-bottom:6px; }
.ref-box { background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; padding:12px; margin-bottom:16px; }
.ref-box h4 { color:#1e40af; font-size:13px; margin-bottom:8px; }
.ref-table { width:100%; font-size:12px; border-collapse:collapse; }
.ref-table th,.ref-table td { padding:6px 10px; border:1px solid #dbeafe; }
.ref-table th { background:#dbeafe; }
.note-table-wrap { margin-bottom:16px; }
.note-table-wrap h4 { color:#6d28d9; font-size:13px; margin-bottom:6px; }
.note-table { width:100%; font-size:12px; border-collapse:collapse; }
.note-table th,.note-table td { padding:6px 10px; border:1px solid #e2e8f0; }
.note-table th { background:#e0e7ff; font-weight:600; text-align:center; }
.note-table .num { text-align:right; }
.note-table .match-cell { background:#d1fae5; }
.match-detail { color:#047857; font-size:11px; font-weight:600; padding:4px 8px; background:#ecfdf5;
  border:1px solid #a7f3d0; border-radius:4px; margin-top:4px; display:inline-block; }
.match-summary { margin-top:12px; padding:10px 16px; border-radius:8px; font-weight:700; font-size:14px; }
.match-summary.pass { background:#d1fae5; color:#065f46; }
.match-summary.warn { background:#fef3c7; color:#92400e; }

/* 버튼 */
.action-bar { display:flex; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid #e2e8f0; }
.btn { padding:10px 24px; border-radius:8px; border:none; font-size:14px; font-weight:600;
  cursor:pointer; transition:all 0.2s; }
.btn-primary { background:#2563eb; color:#fff; }
.btn-primary:hover { background:#1d4ed8; }
.btn-secondary { background:#f1f5f9; color:#475569; border:1px solid #d1d5db; }
.btn-secondary:hover { background:#e2e8f0; }

/* 이력 */
.history-section { margin-top:32px; }
.history-section h2 { font-size:18px; margin-bottom:12px; color:#1e293b; }
.history-list { background:#fff; border-radius:10px; border:1px solid #e2e8f0; padding:16px; }
.empty-text { color:#94a3b8; font-size:14px; text-align:center; padding:20px; }
.history-item { display:flex; justify-content:space-between; align-items:center; padding:10px 0;
  border-bottom:1px solid #f1f5f9; }
.history-item:last-child { border-bottom:none; }
.history-item .name { font-weight:500; }
.history-item .date { color:#94a3b8; font-size:12px; }
.history-item .badge { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.badge-pass { background:#d1fae5; color:#065f46; }
.badge-fail { background:#fee2e2; color:#991b1b; }
