@charset "utf-8";
/* =========================================================
   DA&E 콘텐츠 어워드 — 관리자 콘솔 (admin.html 전용)
   css/style.css 의 토큰(:root)과 .btn / .f_montB 를 재사용합니다.
   ========================================================= */

/* 스크린리더 전용 (style.css 에는 없음) */
.sr_only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.admin_body {
  background: var(--bg);
  min-height: 100vh;
  /* 콘솔은 한 화면 안에서 관리하므로 페이지 스크롤 대신 앱 영역에서 스크롤 */
}

/* =========================================================
   1. 로그인 게이트
   ========================================================= */
.admin_gate {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(1000px 520px at 15% -5%, rgba(0, 208, 255, 0.18), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(126, 91, 230, 0.18), transparent 60%),
    #0b0d12;
}
.admin_body.is_open .admin_gate { display: none; }

.gate_card {
  width: 100%; max-width: 430px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  padding: 40px 32px 32px;
  color: #fff; text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.gate_ic {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 18px;
  border-radius: 18px; background: var(--brand); color: #fff; font-size: 1.35rem;
  box-shadow: 0 12px 30px rgba(0, 116, 224, 0.45);
}
.gate_card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.gate_card > p {
  margin-top: 10px; font-size: 0.94rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.6); word-break: keep-all;
}
.gate_card input {
  width: 100%; margin-top: 24px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 16px 18px;
  color: #fff; font-size: 1rem; letter-spacing: 0.16em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.gate_card input::placeholder { color: rgba(255, 255, 255, 0.34); letter-spacing: normal; }
.gate_card input:focus { outline: none; border-color: var(--cyan); background: rgba(0, 0, 0, 0.5); }
.gate_card input.is_err { border-color: #ff6b6b; }
.gate_card .btn { margin-top: 14px; }

/* 비밀번호 표시(눈 모양) 토글 — js/pw.js 가 동작을 담당합니다 */
.pw_field { position: relative; display: flex; align-items: center; }
.pw_field > input { width: 100%; flex: 1 1 auto; }
.pw_eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: none; border-radius: 10px;
  background: transparent; color: var(--gray); cursor: pointer;
  font-size: 0.92rem; line-height: 1;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.pw_eye:hover { color: var(--blue); background: rgba(0, 76, 179, 0.08); }
.pw_eye:focus-visible { outline: 2px solid var(--blue-b); outline-offset: 1px; }
.pw_eye.is_on { color: var(--blue); }
/* 게이트(어두운 배경) 안에서는 흰색 계열 */
.gate_card .pw_field { margin-top: 24px; }
.gate_card .pw_field > input { margin-top: 0; }
.gate_card .pw_eye { color: rgba(255, 255, 255, 0.45); }
.gate_card .pw_eye:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.gate_card .pw_eye.is_on { color: var(--cyan); }
.gate_card .pw_field > input { padding-right: 52px; }

.gate_msg { min-height: 22px; margin-top: 10px; font-size: 0.88rem; font-weight: 600; }
.gate_msg.err { color: #ff9b95; }
.gate_msg.ok { color: #6fe3c4; }

.gate_back { margin-top: 22px !important; font-size: 0.86rem !important; }
.gate_back a { color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.gate_back a:hover { color: var(--cyan); }

/* =========================================================
   2. 콘솔 레이아웃
   ========================================================= */
.admin_app { max-width: 1440px; margin: 0 auto; padding: 34px 28px 80px; }
.admin_app[hidden] { display: none; }

.admin_top {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.at_eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-b);
}
.admin_top h1 { margin-top: 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.at_meta { margin-top: 8px; font-size: 0.88rem; color: var(--ink-3); }
.at_right { display: flex; flex-wrap: wrap; gap: 10px; }

.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--ink);
  border: none; border-radius: 12px; padding: 12px 18px;
  font-size: 0.92rem; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.abtn:hover { transform: translateY(-2px); background: var(--bg-2); }
.abtn:disabled { opacity: 0.5; cursor: default; transform: none; }
.abtn i { font-style: normal; }
.abtn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(0, 116, 224, 0.3); }
.abtn--primary:hover { background: var(--brand); box-shadow: 0 12px 28px rgba(0, 116, 224, 0.4); }
.abtn--ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* 오류 / 안내 */
.admin_err {
  margin-top: 22px; padding: 16px 20px;
  background: rgba(255, 90, 82, 0.08);
  border: 1px solid rgba(255, 90, 82, 0.28);
  border-radius: var(--r-sm);
  font-size: 0.92rem; line-height: 1.65; color: #c0392b;
  word-break: keep-all;
}
.admin_err[hidden] { display: none; }
/* 성공 안내 (최종 제출 완료 등) */
.admin_err.is_ok {
  background: rgba(0, 176, 122, 0.09);
  border-color: rgba(0, 176, 122, 0.32);
  color: #0a7a58;
}
.admin_err.is_ok b { font-weight: 800; }

/* =========================================================
   3. 요약 카드
   ========================================================= */
.admin_stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 24px;
}
.stat_card {
  background: #fff; border-radius: var(--r-md); padding: 20px 20px 18px;
  box-shadow: var(--sh2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat_card:hover { transform: translateY(-4px); box-shadow: var(--sh3); }
.stat_k { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); letter-spacing: -0.01em; }
.stat_v {
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em; color: var(--ink);
}
.stat_sub { margin-top: 6px; font-size: 0.78rem; color: var(--gray); }
.stat_card--brand { background: var(--brand); box-shadow: 0 14px 34px rgba(0, 116, 224, 0.32); }
.stat_card--brand .stat_k, .stat_card--brand .stat_sub { color: rgba(255, 255, 255, 0.82); }
.stat_card--brand .stat_v { color: #fff; }

/* =========================================================
   4. 검색 · 필터 도구
   ========================================================= */
.admin_tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 24px; padding: 18px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh2);
}
.tool_search { position: relative; flex: 1 1 300px; min-width: 220px; }
.tool_search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; color: var(--gray); pointer-events: none;
}
.tool_search input {
  width: 100%; border: none; background: var(--bg);
  border-radius: 12px; padding: 13px 16px 13px 42px;
  font-size: 0.94rem; color: var(--ink);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.tool_search input::placeholder { color: var(--gray); }
.tool_search input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue-b); }

.admin_tools select {
  border: none; background: var(--bg); color: var(--ink);
  border-radius: 12px; padding: 13px 16px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: box-shadow 0.25s var(--ease);
}
.admin_tools select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }

/* =========================================================
   5. 표
   ========================================================= */
.admin_table_wrap {
  margin-top: 20px; background: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh2); overflow: hidden;
}
.admin_table_scroll { overflow-x: auto; }
.admin_table { width: 100%; border-collapse: collapse; min-width: 1060px; }
.admin_table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-2); text-align: left;
  padding: 15px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 800; color: var(--ink-3);
  letter-spacing: -0.01em; white-space: nowrap;
}
.admin_table tbody td {
  padding: 15px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.55;
  vertical-align: top; word-break: keep-all;
}
.admin_table tbody tr { cursor: pointer; transition: background 0.2s var(--ease); }
.admin_table tbody tr:hover { background: rgba(49, 130, 246, 0.05); }
.admin_table tbody tr:last-child td { border-bottom: none; }
.admin_table .t_date { white-space: nowrap; color: var(--ink-3); font-size: 0.84rem; }
.admin_table .t_title { font-weight: 700; color: var(--ink); }
.admin_table .t_org { color: var(--ink); }
.admin_table .t_type { font-size: 0.82rem; color: var(--ink-3); }
.admin_table .t_muted { color: var(--gray); }
.admin_table .t_no {
  display: block; margin-top: 4px;
  font-family: 'Montserrat', sans-serif; font-size: 0.74rem; font-weight: 700;
  color: var(--gray); letter-spacing: 0.01em;
}
.admin_table .t_vdone {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 100px;
  background: rgba(0, 176, 122, 0.12); color: #0a8a60;
  font-size: 0.8rem; font-weight: 800;
}

/* 영상(드라이브) 링크 열 */
.admin_table .t_drive { white-space: nowrap; }
.drive_link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 100px;
  background: rgba(49, 130, 246, 0.1); color: #1b64da;
  font-size: 0.82rem; font-weight: 800;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.drive_link:hover { background: var(--blue-b); color: #fff; }
.drive_link i { font-size: 0.9rem; }
.admin_table .t_empty {
  padding: 54px 20px; text-align: center;
  color: var(--gray); font-size: 0.94rem; cursor: default;
}
.admin_table tbody tr.t_row--empty:hover { background: transparent; }

/* 선택 열 · 체크박스 */
.t_check { width: 52px; padding-right: 0 !important; }
.chk_row, .chk_all { display: inline-flex; align-items: center; cursor: pointer; }
.chk_row input, .chk_all input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.chk_row span, .chk_all span {
  display: block; width: 20px; height: 20px; flex: none;
  border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.chk_row:hover span, .chk_all:hover span { box-shadow: inset 0 0 0 1.5px var(--gray); }
.chk_row input:checked + span,
.chk_all input:checked + span,
.chk_all input:indeterminate + span { background: var(--blue-b); box-shadow: inset 0 0 0 1.5px var(--blue-b); }
.chk_row input:checked + span::after,
.chk_all input:checked + span::after {
  content: ''; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.chk_all input:indeterminate + span::after {
  content: ''; position: absolute; left: 5px; top: 9px;
  width: 10px; height: 2px; background: #fff; border-radius: 1px;
}
.chk_row input:focus-visible + span,
.chk_all input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.admin_table tbody tr.is_selected { background: rgba(49, 130, 246, 0.09); }
.admin_table tbody tr.is_selected:hover { background: rgba(49, 130, 246, 0.14); }

/* 위험(삭제) 버튼 */
.abtn--danger {
  background: rgba(255, 90, 82, 0.1); color: #c0392b;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 82, 0.34);
}
.abtn--danger:hover { background: rgba(255, 90, 82, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 90, 82, 0.5); }

/* 선택 삭제 바 */
.admin_bulk {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  margin-top: 14px; padding: 14px 18px;
  background: rgba(49, 130, 246, 0.08);
  border: 1px solid rgba(49, 130, 246, 0.28);
  border-radius: var(--r-sm);
}
.admin_bulk[hidden] { display: none; }
.bulk_count { font-size: 0.92rem; font-weight: 700; color: #1b64da; }
.bulk_count b { font-size: 1.06rem; }
.bulk_btns { display: flex; gap: 10px; }

.admin_count {
  padding: 15px 18px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink-3); background: var(--bg-2);
}

/* 상태 배지 */
.st_badge {
  display: inline-block; padding: 5px 11px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 800; white-space: nowrap;
  background: var(--bg); color: var(--ink-3);
}
.st_badge[data-st="접수"] { background: rgba(49, 130, 246, 0.12); color: #1b64da; }
.st_badge[data-st="검토중"] { background: rgba(255, 168, 40, 0.16); color: #b26a00; }
.st_badge[data-st="선정"] { background: rgba(0, 190, 130, 0.14); color: #0a8a5f; }
.st_badge[data-st="보류"] { background: rgba(139, 149, 161, 0.18); color: #5c6773; }
.st_badge[data-st="제외"] { background: rgba(255, 90, 82, 0.12); color: #c0392b; }

/* =========================================================
   6. 상세 모달
   ========================================================= */
.admin_modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(11, 13, 18, 0.62); backdrop-filter: blur(3px);
}
.admin_modal[hidden] { display: none; }

.modal_card {
  width: 100%; max-width: 760px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.modal_head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 26px 20px; border-bottom: 1px solid var(--line);
}
.modal_eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-b); }
.modal_head h2 { margin-top: 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); word-break: keep-all; }
.modal_close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--bg); color: var(--ink-2); cursor: pointer; font-size: 1rem;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.modal_close:hover { background: var(--line); color: var(--ink); }

.modal_body { padding: 24px 26px; overflow-y: auto; }

.md_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.md_item { background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; }
.md_item--wide { grid-column: 1 / -1; }
.md_k { font-size: 0.78rem; font-weight: 800; color: var(--ink-3); letter-spacing: -0.01em; }
.md_v { margin-top: 8px; font-size: 0.92rem; line-height: 1.7; color: var(--ink); word-break: keep-all; white-space: pre-wrap; }
.md_v a { color: var(--blue-b); font-weight: 600; }
.md_v .t_muted { color: var(--gray); }

/* 영상(드라이브) 링크 박스 — 모달 최상단 */
.drive_box {
  margin-bottom: 18px; padding: 18px 20px;
  background: linear-gradient(120deg, rgba(0, 208, 255, 0.08), rgba(126, 91, 230, 0.08));
  border: 1px solid rgba(49, 130, 246, 0.24);
  border-radius: var(--r-md);
}
.drive_k {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; color: #1b64da; letter-spacing: -0.01em;
}
.drive_k i { font-size: 1rem; }
.drive_now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.drive_open {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  border-radius: 12px; padding: 11px 18px;
  font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 116, 224, 0.3);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.drive_open:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 116, 224, 0.4); }
.drive_open i { font-size: 0.8rem; }
.drive_copy { padding: 11px 16px !important; font-size: 0.86rem !important; }
.drive_url {
  margin-top: 10px; font-size: 0.8rem; color: var(--ink-3);
  word-break: break-all; line-height: 1.6;
}
.drive_none { margin-top: 10px; font-size: 0.86rem; line-height: 1.65; color: var(--ink-3); word-break: keep-all; }
/* 모달 내 주소 입력칸 */
.md_input {
  width: 100%; background: #fff; border: none; border-radius: 12px;
  padding: 13px 16px; font-size: 0.9rem; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease);
  word-break: break-all;
}
.md_input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }
.md_input::placeholder { color: var(--gray); }

.md_edit { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.md_edit h3 { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.md_edit h3 span { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.md_field { margin-top: 14px; }
.md_field label { display: block; font-size: 0.82rem; font-weight: 800; color: var(--ink-3); margin-bottom: 8px; }
.md_field select, .md_field textarea {
  width: 100%; background: var(--bg); border: none; border-radius: 12px;
  padding: 13px 16px; font-size: 0.94rem; color: var(--ink);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.md_field textarea { min-height: 104px; resize: vertical; line-height: 1.7; font-family: inherit; }
.md_field select:focus, .md_field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue-b); }

.modal_foot {
  padding: 18px 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--bg-2);
}
.modal_msg { flex: 1 1 200px; font-size: 0.86rem; font-weight: 600; min-height: 20px; }
.modal_msg.err { color: #c0392b; }
.modal_msg.ok { color: #0a8a5f; }
.modal_btns { display: flex; gap: 10px; margin-left: auto; }

/* =========================================================
   8. 심사위원 전용 화면 (admin.html — 비밀번호: 심사1234)
   ▶ 출품서 + 영상만 노출. 담당자·출품자 정보는 DOM에 넣지 않습니다.
   ========================================================= */
.admin_body.is_judge .admin_gate { display: none; }
.judge_app { max-width: 1100px; margin: 0 auto; padding: 34px 28px 90px; }
.judge_app[hidden] { display: none; }

/* 인앱 브라우저(카카오톡 등) 안내 배너 */
.inapp_notice {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start;
  margin-top: 22px; padding: 18px 20px;
  background: #fff8e8; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px #f3d79a;
}
.inapp_ic { flex: none; margin-top: 2px; font-size: 1.14rem; color: #b26a00; }
.inapp_body { flex: 1 1 240px; min-width: 0; }
.inapp_body b {
  display: block; font-size: 0.94rem; font-weight: 800;
  color: #8a5200; letter-spacing: -0.01em; word-break: keep-all;
}
.inapp_body p { margin-top: 6px; font-size: 0.84rem; line-height: 1.7; color: #8a6414; word-break: keep-all; }
.inapp_body p b { display: inline; font-weight: 800; color: #7a4400; }
.inapp_open {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: 0.86rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(25, 31, 40, 0.22);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.inapp_open:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25, 31, 40, 0.3); }
.inapp_open i { font-size: 0.8rem; }
@media screen and (max-width: 640px) {
  .inapp_notice { padding: 16px; gap: 10px; }
  .inapp_open { width: 100%; justify-content: center; }
}

.judge_top {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.judge_top h1 { margin-top: 8px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.judge_right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.judge_who {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 12px; padding: 8px 10px 8px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.judge_who > span { font-size: 0.8rem; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.judge_who select {
  border: none; background: var(--bg); color: var(--ink);
  border-radius: 9px; padding: 8px 12px; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.judge_who select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }

/* 부문 탭 */
.judge_tabs {
  display: flex; gap: 10px; overflow-x: auto;
  margin-top: 22px; padding-bottom: 4px;
  scrollbar-width: thin;
}
.jtab {
  flex: none; display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: none; border-radius: 14px;
  padding: 13px 18px; cursor: pointer; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.jtab:hover { transform: translateY(-2px); box-shadow: var(--sh2), inset 0 0 0 1px rgba(49, 130, 246, 0.3); }
.jtab_k { font-size: 0.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.jtab_n { font-family: 'Montserrat', sans-serif; font-size: 0.76rem; font-weight: 700; color: var(--gray); }
.jtab_n b { color: var(--blue-b); font-size: 0.86rem; }
.jtab.is_on { background: var(--brand); box-shadow: 0 10px 26px rgba(0, 116, 224, 0.32); }
.jtab.is_on .jtab_k { color: #fff; }
.jtab.is_on .jtab_n { color: rgba(255, 255, 255, 0.72); }
.jtab.is_on .jtab_n b { color: #fff; }

/* 출품 카드 */
.judge_list { display: grid; gap: 16px; margin-top: 20px; }
.judge_empty {
  padding: 56px 20px; text-align: center; background: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh2);
  color: var(--gray); font-size: 0.94rem;
}

.jc {
  background: #fff; border-radius: var(--r-md); padding: 20px 22px;
  box-shadow: var(--sh2);
  transition: box-shadow 0.3s var(--ease);
}
.jc.is_open { box-shadow: var(--sh3); }

/* 접힌 줄: 부문 · 출품명 · 유형 + 우측 컨트롤 */
.jc_top { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; }
.jc_id { flex: 1 1 300px; min-width: 220px; }
.jc_cat {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  background: var(--brand-soft); color: var(--blue);
  font-size: 0.74rem; font-weight: 800; letter-spacing: -0.01em;
}
.jc_title { margin-top: 9px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); word-break: keep-all; }
.jc_sub { margin-top: 12px; font-size: 0.88rem; color: var(--ink-3); word-break: keep-all; line-height: 1.65; }
.jc_tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jc_tags li {
  padding: 4px 10px; border-radius: 100px; background: var(--bg);
  font-size: 0.76rem; font-weight: 700; color: var(--ink-3); word-break: keep-all;
}

.jc_exp {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border: none; border-radius: 100px; cursor: pointer;
  background: #fff; color: var(--ink-2); font-family: inherit;
  font-size: 0.86rem; font-weight: 800; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.jc_exp:hover { background: rgba(49, 130, 246, 0.08); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.4); }
.jc_exp:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.jc_exp i { font-size: 0.68rem; transition: transform 0.3s var(--ease); }
.jc.is_open .jc_exp { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.4); }
.jc.is_open .jc_exp i { transform: rotate(180deg); }

/* 펼친 영역 */
.jc_detail[hidden] { display: none; }
.jc_detail { animation: jc_show 0.24s var(--ease); }
@keyframes jc_show { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jc_detail { animation: none; } }

/* 영상 */
.jc_video {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 18px; padding: 16px 18px;
  background: linear-gradient(120deg, rgba(0, 208, 255, 0.08), rgba(126, 91, 230, 0.08));
  border: 1px solid rgba(49, 130, 246, 0.22);
  border-radius: var(--r-sm);
}
.jc_play {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff;
  border-radius: 12px; padding: 12px 20px;
  font-size: 0.94rem; font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 116, 224, 0.3);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.jc_play:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 116, 224, 0.42); }
.jc_play i { font-size: 1.05rem; }
/* 보조 버튼 — 원본 내려받기 */
.jc_dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  background: #fff; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem; font-weight: 800; white-space: nowrap;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.jc_dl:hover { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.5); transform: translateY(-2px); }
.jc_dl i { font-size: 0.92rem; }

.jc_video_hint { flex: 1 1 190px; font-size: 0.8rem; color: var(--ink-3); word-break: keep-all; }
.jc_novideo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700; color: #b26a00; word-break: keep-all;
}

/* 출품서 — 카드에서 펼쳤을 때만 내용이 보입니다 */
/* 2단 접기: 영상 확인 후 '출품서 내용 펼치기' 를 눌렀을 때만 본문이 열립니다 */
.jc_doc { margin-top: 18px; }
.jc_doc_btn {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 16px; border: none; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink-2);
  font-family: inherit; font-size: 0.9rem; font-weight: 800;
  text-align: left; cursor: pointer; word-break: keep-all;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.jc_doc_btn:hover { color: var(--blue); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.35); }
.jc_doc_btn i:first-child { flex: none; font-size: 0.92rem; color: var(--blue-b); }
.jc_doc_k { flex: 1 1 auto; }
.jc_doc_ar { flex: none; font-size: 0.68rem; color: var(--gray); transition: transform 0.3s var(--ease); }
.jc_doc_btn.is_on { color: var(--blue); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.38); }
.jc_doc_btn.is_on .jc_doc_ar { transform: rotate(180deg); }
.jc_doc_hint {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 8px; padding: 0 4px;
  font-size: 0.79rem; line-height: 1.6; color: var(--gray); word-break: keep-all;
}
.jc_doc_hint[hidden] { display: none; }
.jc_doc_hint i { flex: none; margin-top: 2px; font-size: 0.76rem; }

.jc_body {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-top: 12px; align-items: start;
}
.jc_body[hidden] { display: none; }
.jf {
  padding: 14px 17px;
  background: var(--bg-2); border-radius: var(--r-sm); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.jf_k {
  font-size: 0.82rem; font-weight: 800; color: var(--ink-2);
  letter-spacing: -0.01em; word-break: keep-all;
}
.jf_v {
  font-size: 0.9rem; line-height: 1.75; color: var(--ink);
  word-break: keep-all; white-space: pre-wrap;
}
.jf_v.is_empty { color: var(--gray); }

@media screen and (max-width: 900px) {
  .judge_app { padding: 26px 18px 70px; }
  .judge_top { align-items: flex-start; }
  .judge_right { width: 100%; }
  .jc_body { grid-template-columns: 1fr; }
  .tm_table { min-width: 860px; }
}

@media screen and (max-width: 640px) {
  .judge_top h1 { font-size: 1.4rem; }
  .jc { padding: 18px 17px; }
  .jc_play { width: 100%; justify-content: center; }
  .jc_video { flex-direction: column; align-items: stretch; }
  .jc_video_hint { text-align: center; }
  .jcode_card { padding: 30px 20px 26px; }
  .jcode_form { flex-direction: column; align-items: stretch; }
  .jcode_go_btn { width: 100%; justify-content: center; }
  .js_row { flex-direction: column; align-items: stretch; }
  .js_save { width: 100%; justify-content: center; }
  .tj_grid { grid-template-columns: 1fr; }
}

/* =========================================================
   9. 심사위원 고유번호 선택 (비밀번호 통과 후)
   ========================================================= */
.jcode_app {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px 60px;
}
.jcode_app[hidden] { display: none; }
.admin_body.is_judge .jcode_app:not([hidden]) { display: flex; }

.jcode_card {
  width: 100%; max-width: 540px; background: #fff;
  border-radius: var(--r-lg); padding: 40px 38px 30px;
  box-shadow: 0 24px 60px rgba(6, 14, 34, 0.16);
  text-align: center;
}
.jcode_ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand-soft); color: var(--blue);
  font-size: 1.4rem; margin-bottom: 16px;
}
.jcode_card h1 {
  margin-top: 10px; font-size: 1.42rem; font-weight: 900;
  letter-spacing: -0.04em; color: var(--ink); word-break: keep-all;
}
.jcode_lead {
  margin-top: 12px; font-size: 0.92rem; line-height: 1.7;
  color: var(--ink-3); word-break: keep-all;
}
.jcode_lead b { color: var(--ink-2); font-weight: 800; }

.jcode_form {
  display: flex; align-items: stretch; gap: 9px;
  margin-top: 26px;
}
/* 고유번호 입력칸 + 눈 모양 버튼 */
.jcode_form > .pw_field { flex: 1 1 auto; min-width: 0; }
.pw_field--code > .jcode_in { padding-right: 54px; }
.pw_field--code .pw_eye { right: 7px; }
.jcode_in {
  flex: 1 1 auto; min-width: 0;
  padding: 15px 18px; border: none; border-radius: 14px;
  background: var(--bg); color: var(--ink); font-family: inherit;
  font-size: 1.12rem; font-weight: 800; letter-spacing: 0.24em;
  text-align: center; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.jcode_in::placeholder {
  font-size: 0.94rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: none; color: var(--gray);
}
.jcode_in:focus {
  outline: none; background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue-b);
}
.jcode_in.is_err {
  box-shadow: inset 0 0 0 2px #e03e2d; background: #fff;
}
.jcode_go_btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--brand); color: #fff; font-family: inherit;
  font-size: 0.95rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 116, 224, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.jcode_go_btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 116, 224, 0.42); }
.jcode_go_btn:active { transform: none; }
.jcode_err {
  margin-top: 10px; font-size: 0.83rem; font-weight: 700; color: #c0392b;
  word-break: keep-all; text-align: left; line-height: 1.6;
}
.jcode_err[hidden] { display: none; }

.jcode_note {
  margin-top: 20px; font-size: 0.8rem; line-height: 1.65;
  color: var(--gray); word-break: keep-all; text-align: left;
  padding: 13px 15px; border-radius: var(--r-sm); background: var(--bg-2);
}
.jcode_note i { color: var(--blue-b); margin-right: 5px; }
.jcode_note b { color: var(--ink-2); font-weight: 800; }
/* 하단 버튼 줄 — 잠금 / 관리자 콘솔로 복귀 */
.jcode_foot {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
  margin-top: 18px;
}
.jcode_out { margin-top: 0; }
.jcode_back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-radius: 12px;
  color: var(--ink-3); text-decoration: none;
  font-size: 0.88rem; font-weight: 700;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.jcode_back:hover { color: var(--blue); background: var(--brand-soft); }

/* =========================================================
   10. 심사위원 화면 — 내 정보 · 채점 현황 · 채점 입력
   ========================================================= */
.judge_me {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.82rem; color: var(--ink-3);
}
.judge_me[hidden] { display: none; }
.judge_me b {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  color: var(--blue); letter-spacing: 0.02em;
}
.judge_swap {
  border: none; background: var(--bg); color: var(--ink-3);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  font-size: 0.7rem; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.judge_swap:hover { background: var(--brand-soft); color: var(--blue); }

/* 최종 제출 버튼 (이름 옆) */
.judge_submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; font-family: inherit;
  font-size: 0.9rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(25, 31, 40, 0.26);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.judge_submit[hidden] { display: none; }
.judge_submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25, 31, 40, 0.34); }
.judge_submit:active { transform: none; }
.judge_submit i { font-size: 0.86rem; }
.judge_submit.is_done,
.judge_submit:disabled {
  background: rgba(0, 176, 122, 0.14); color: #0a8a60;
  box-shadow: inset 0 0 0 1px rgba(0, 176, 122, 0.34);
  transform: none; cursor: default;
}

/* 최종 제출 확인 모달 */
.jsub {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  padding: 24px 18px;
  background: rgba(6, 14, 34, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: jsub_in 0.2s var(--ease);
}
.jsub[hidden] { display: none; }
@keyframes jsub_in { from { opacity: 0; } to { opacity: 1; } }
.jsub_card {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: var(--r-lg);
  padding: 30px 28px 24px; text-align: center;
  box-shadow: 0 30px 70px rgba(6, 14, 34, 0.32);
  animation: jsub_up 0.24s var(--ease);
}
@keyframes jsub_up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jsub, .jsub_card { animation: none; } }
.jsub_ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(25, 31, 40, 0.06); color: var(--ink);
  font-size: 1.25rem; margin-bottom: 14px;
}
.jsub_card h2 { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.035em; color: var(--ink); word-break: keep-all; }
.jsub_d { margin-top: 10px; font-size: 0.9rem; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.jsub_d b { color: var(--ink); font-weight: 800; }
.jsub_miss { color: #c0392b !important; }
.jsub_warn {
  margin-top: 16px; padding: 13px 15px;
  background: #fff8e8; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px #f3d79a;
  font-size: 0.82rem; line-height: 1.68; color: #8a6414;
  text-align: left; word-break: keep-all;
}
.jsub_warn i { color: #b26a00; margin-right: 6px; }
.jsub_warn b { display: block; color: #a35d00; font-weight: 800; margin-bottom: 3px; }
.jsub_msg { margin-top: 14px; font-size: 0.84rem; font-weight: 700; color: var(--gray); min-height: 20px; word-break: keep-all; }
.jsub_msg.err { color: #c0392b; }
.jsub_btns { display: flex; gap: 10px; margin-top: 18px; }
.jsub_btns .abtn { flex: 1 1 0; justify-content: center; margin-top: 0; }
.jsub_go {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; font-family: inherit;
  font-size: 0.92rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(25, 31, 40, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.jsub_go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(25, 31, 40, 0.36); }
.jsub_go:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* 서명란 — 서명해야 [최종 제출] 이 활성화됩니다 */
.jsub_sig { margin-top: 16px; text-align: left; }
.jsub_sig_head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.jsub_sig_k {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.84rem; font-weight: 800; color: var(--ink-2);
}
.jsub_sig_k i { font-size: 0.9rem; color: var(--blue-b); }
.jsub_sig_req {
  padding: 2px 7px; border-radius: 100px;
  background: rgba(224, 62, 45, 0.1); color: #c0392b;
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.02em;
}
.jsub_clear {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--bg); color: var(--ink-3); font-family: inherit;
  font-size: 0.76rem; font-weight: 800;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.jsub_clear[hidden] { display: none; }
.jsub_clear:hover { color: var(--blue); background: var(--brand-soft); }
.jsub_clear i { font-size: 0.74rem; }

.jsub_canvas_wrap {
  position: relative;
  border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.jsub_canvas_wrap::after {   /* 서명 가이드 점선 */
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 25px;
  border-bottom: 1px dashed rgba(139, 149, 161, 0.45);
  pointer-events: none;
}
.jsub_canvas {
  display: block; width: 100%; height: 132px;
  touch-action: none;             /* 모바일에서 서명 시 화면 스크롤 방지 */
  cursor: crosshair;
  position: relative; z-index: 1;
  background: transparent;
}
.jsub_canvas_ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--gray);
  word-break: keep-all; padding: 0 18px 22px; text-align: center;
  pointer-events: none;
}
.jsub_canvas_ph[hidden] { display: none; }
.jsub_canvas_ph i { font-size: 0.88rem; }
.jsub_sig_note {
  margin-top: 7px; font-size: 0.78rem; font-weight: 700;
  color: var(--gray); word-break: keep-all;
}
.jsub_sig_note.is_ok { color: #0a8a60; }

/* 내 채점 진행 */
.judge_tally {
  margin-top: 20px; padding: 18px 22px;
  background: linear-gradient(120deg, rgba(0, 208, 255, 0.07), rgba(126, 91, 230, 0.07));
  border: 1px solid rgba(49, 130, 246, 0.22);
  border-radius: var(--r-md);
}
.judge_tally[hidden] { display: none; }
.jt_in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.jt_k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-3); }
.jt_v { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.jt_v span { font-size: 0.9rem; color: var(--gray); font-weight: 700; margin-left: 3px; }
.jt_d { flex: 1 1 100%; font-size: 0.84rem; color: var(--ink-2); word-break: keep-all; margin-top: 4px; }
.jt_bar {
  display: block; margin-top: 12px; height: 7px; border-radius: 100px;
  background: rgba(49, 130, 246, 0.14); overflow: hidden;
}
.jt_bar > span {
  display: block; height: 100%; width: 0; border-radius: 100px;
  background: var(--brand); transition: width 0.5s var(--ease);
}

/* 카드 우측 — 내 점수 배지 + 심사완료 배지 + 펼치기 */
.jc_ctrl { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 채점 저장 즉시 표시되는 초록색 '심사완료' 배지 */
.jc_done {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 100px;
  background: #00b07a; color: #fff;
  font-size: 0.77rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 176, 122, 0.32);
}
.jc_done i { font-size: 0.8rem; }

.jc_mine {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(0, 176, 122, 0.12); color: #0a8a60;
  font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.jc_mine b { font-family: 'Montserrat', sans-serif; font-size: 0.94rem; }
.jc.is_scored { box-shadow: var(--sh2), inset 0 0 0 1.5px rgba(0, 176, 122, 0.28); }

@media screen and (max-width: 640px) {
  .jc_done, .jc_mine { padding: 5px 10px; font-size: 0.72rem; }
}

/* 채점 입력 */
.jc_score {
  margin-top: 16px; padding: 16px 18px;
  background: var(--bg-2); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.js_head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.js_k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gray); }
.js_state {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.76rem; font-weight: 800; white-space: nowrap;
}
.js_state[data-state="none"] { background: rgba(255, 138, 0, 0.13); color: #b26a00; }
.js_state[data-state="saved"] { background: rgba(0, 176, 122, 0.13); color: #0a8a60; }
/* 최종 제출 후 — 잠금 상태 */
.js_state[data-state="final"] { background: rgba(25, 31, 40, 0.09); color: var(--ink-2); }
.jc_score.is_locked { background: rgba(25, 31, 40, 0.035); box-shadow: inset 0 0 0 1px rgba(25, 31, 40, 0.1); }
.jc_score.is_locked .js_in { color: var(--ink-2); opacity: 1; -webkit-text-fill-color: var(--ink-2); cursor: not-allowed; }
.jc_score.is_locked .js_field { background: rgba(255, 255, 255, 0.6); }
.js_save.is_locked,
.js_save.is_locked:disabled {
  background: rgba(25, 31, 40, 0.09); color: var(--ink-3);
  box-shadow: none; opacity: 1; cursor: default; transform: none;
}
.js_msg.lock { color: var(--ink-2); font-weight: 700; }

.js_row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 13px; }
.js_field {
  flex: 1 1 180px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 4px 14px 4px 4px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.js_in {
  width: 100%; border: none; background: transparent; font-family: inherit;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.32rem; font-weight: 800; color: var(--ink);
  padding: 8px 6px 8px 12px; text-align: right; border-radius: 9px;
}
.js_in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }
.js_in::-webkit-outer-spin-button,
.js_in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.js_in { -moz-appearance: textfield; appearance: textfield; }
.js_unit { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--gray); white-space: nowrap; }

.js_save {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--brand); color: #fff; font-family: inherit;
  font-size: 0.92rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 116, 224, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.js_save:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 116, 224, 0.4); }
.js_save:disabled { opacity: 0.72; cursor: progress; transform: none; }

.js_msg { margin-top: 10px; font-size: 0.79rem; color: var(--gray); word-break: keep-all; }
.js_msg.ok { color: #0a8a60; font-weight: 700; }
.js_msg.err { color: #c0392b; font-weight: 700; }

/* =========================================================
   11. 관리자 콘솔 — 심사 총괄 안내 링크 · 총괄 전용 페이지(tally.html)
   ========================================================= */
.tally_link {
  margin-top: 34px; padding: 24px 26px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh2);
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.tally_link h2 {
  margin-top: 8px; font-size: 1.16rem; font-weight: 800;
  letter-spacing: -0.035em; color: var(--ink); word-break: keep-all;
}
.tl_d { margin-top: 8px; font-size: 0.86rem; line-height: 1.68; color: var(--ink-3); word-break: keep-all; }
.tl_d b { color: var(--ink-2); font-weight: 800; }

/* 총괄 전용 페이지 */
.tally_app { padding-bottom: 80px; }
.tally_sec--page { margin-top: 20px; padding: 26px 28px; }
.tally_sec--page:first-of-type { margin-top: 26px; }
.tally_sec {
  margin-top: 34px; padding: 24px 26px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh2);
}
.tally_head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: flex-start; justify-content: space-between;
}
.tally_head h2 { margin-top: 8px; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.tally_sub { margin-top: 8px; font-size: 0.86rem; color: var(--ink-3); word-break: keep-all; }
.tally_body { margin-top: 22px; }
.tally_body[hidden] { display: none; }

/* 심사위원별 카드 */
.tj_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tj_card {
  padding: 15px 16px; border-radius: 14px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tj_card.is_done { background: rgba(0, 176, 122, 0.06); box-shadow: inset 0 0 0 1.5px rgba(0, 176, 122, 0.28); }
.tj_top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tj_code {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: var(--blue);
  background: var(--brand-soft); padding: 3px 8px; border-radius: 7px;
}
.tj_badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.71rem; font-weight: 800; white-space: nowrap;
}
.tj_badge[data-done="1"] { color: #0a8a60; }
.tj_badge[data-done="0"] { color: #b26a00; }
.tj_name {
  margin-top: 10px; font-size: 0.96rem; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 5px;
}
.tj_chair {
  font-style: normal; padding: 2px 6px; border-radius: 100px;
  background: var(--brand-soft); color: var(--blue);
  font-size: 0.63rem; font-weight: 800;
}
.tj_num { margin-top: 8px; font-family: 'Montserrat', sans-serif; color: var(--ink); }
.tj_num b { font-size: 1.22rem; font-weight: 800; }
.tj_num span { margin-left: 3px; font-size: 0.78rem; color: var(--gray); font-weight: 700; }
.tj_bar {
  display: block; margin-top: 9px; height: 5px; border-radius: 100px;
  background: rgba(49, 130, 246, 0.14); overflow: hidden;
}
.tj_bar > span { display: block; height: 100%; border-radius: 100px; background: var(--brand); transition: width 0.5s var(--ease); }
.tj_card.is_done .tj_bar > span { background: #00b07a; }
.tj_meta { margin-top: 9px; font-size: 0.75rem; color: var(--gray); }
.tj_meta b { color: var(--ink-2); font-weight: 800; }

/* 부문별 평균 점수 순위 (파이널리스트 선정) */
.rk_tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rk_tools .abtn { flex: 0 0 auto; }
.rk_tabs {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 2px;
}
.rk_tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: none; border-radius: 100px;
  background: var(--bg); color: var(--ink-2);
  font-family: inherit; font-size: 0.85rem; font-weight: 800;
  letter-spacing: -0.02em; cursor: pointer; word-break: keep-all;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.rk_tab:hover { background: rgba(49, 130, 246, 0.1); color: var(--blue); }
.rk_tab.is_on {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(0, 76, 179, 0.22);
}
.rk_tab_k { white-space: nowrap; }
.rk_tab_n {
  min-width: 22px; padding: 1px 6px; border-radius: 100px;
  background: rgba(139, 149, 161, 0.16); color: inherit;
  font-size: 0.73rem; font-weight: 800; text-align: center;
}
.rk_tab.is_on .rk_tab_n { background: rgba(255, 255, 255, 0.26); }

.rk_panel { margin-top: 16px; }
.rk_scroll { margin-top: 0; }

.rk_table { min-width: 640px; }
.rk_table th.rk_rank, .rk_table td.rk_rank { text-align: center; width: 74px; white-space: nowrap; }
.rk_table th.rk_avg, .rk_table td.rk_avg { text-align: center; width: 68px; }
.rk_table th.rk_n, .rk_table td.rk_n { text-align: center; width: 72px; }
.rk_table th.rk_status, .rk_table td.rk_status { text-align: center; width: 84px; }
.rk_table th.rk_title, .rk_table td.rk_title { min-width: 260px; }

.rk_rank_n {
  display: inline-block; min-width: 22px;
  font-size: 1rem; font-weight: 800; color: var(--ink-3);
}
.rk_medal { margin-left: 3px; font-size: 0.88rem; }
.rk_table tr.is_top .rk_rank_n { color: var(--blue); }
.rk_table tr.is_top { background: rgba(0, 208, 255, 0.045); }
.rk_table tr.is_top:hover { background: rgba(0, 208, 255, 0.08); }
.rk_table tr.is_none { background: transparent; }
.rk_table tr.is_none .rk_title b { color: var(--ink-3); font-weight: 700; }
.rk_table tr.is_none .rk_avg b { color: var(--gray); }
.rk_table tr.is_chosen td { box-shadow: inset 0 -2px 0 rgba(0, 176, 122, 0.35); }

.rk_table td.rk_title b {
  display: block; font-size: 0.9rem; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; word-break: keep-all; line-height: 1.45;
}
.rk_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 5px; }
.rk_cat {
  padding: 2px 7px; border-radius: 100px; background: var(--brand-soft);
  color: var(--blue); font-size: 0.68rem; font-weight: 800; font-style: normal;
  word-break: keep-all;
}
.rk_org { font-size: 0.76rem; color: var(--ink-3); word-break: keep-all; }
.rk_no { font-size: 0.7rem; font-weight: 700; color: var(--gray); }
.rk_table td.rk_avg b { font-size: 1rem; font-weight: 800; color: var(--ink); }
.rk_table tr.is_top .rk_avg b { color: var(--blue); }
.rk_table td.rk_n span { color: var(--gray); font-weight: 700; font-size: 0.76rem; }
.rk_dash { color: #c4ccd6; font-weight: 700; }
.rk_st {
  display: inline-block; padding: 3px 9px; border-radius: 100px;
  background: var(--bg); color: var(--ink-3);
  font-size: 0.71rem; font-weight: 800; white-space: nowrap;
}
.rk_st[data-st="선정"] { background: rgba(0, 176, 122, 0.12); color: #0a8a60; }
.rk_st[data-st="보류"] { background: rgba(178, 106, 0, 0.12); color: #b26a00; }
.rk_st[data-st="제외"] { background: rgba(192, 57, 43, 0.1); color: #c0392b; }
.rk_st[data-st="검토중"] { background: rgba(49, 130, 246, 0.12); color: var(--blue); }

.rk_legend {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.79rem; line-height: 1.7; color: var(--ink-3); word-break: keep-all;
}
.rk_legend i { color: var(--blue-b); margin-right: 4px; }
.rk_legend b { color: var(--ink-2); font-weight: 800; }

/* 최종 제출 서명 (증빙) */
.sg_grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sg_card {
  padding: 15px 16px 14px; border-radius: 14px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column;
}
.sg_card.is_on { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(0, 176, 122, 0.3); }
.sg_top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg_code {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: var(--blue);
  background: var(--brand-soft); padding: 3px 8px; border-radius: 7px;
}
.sg_badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.71rem; font-weight: 800; white-space: nowrap; }
.sg_badge[data-ok="1"] { color: #0a8a60; }
.sg_badge[data-ok="0"] { color: #8b95a1; }
.sg_name {
  margin-top: 10px; font-size: 0.96rem; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 5px;
}
.sg_pad {
  position: relative; margin-top: 10px; border-radius: 11px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.sg_card.is_on .sg_pad { box-shadow: inset 0 0 0 1px rgba(0, 176, 122, 0.24); }
.sg_pad::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 18px;
  border-bottom: 1px dashed rgba(139, 149, 161, 0.4); pointer-events: none;
}
.sg_canvas { display: block; width: 100%; height: 108px; }
.sg_pad--empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 108px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.sg_pad--empty::after { display: none; }
.sg_pad--empty span {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 12px;
  font-size: 0.78rem; font-weight: 700; color: var(--gray);
  text-align: center; word-break: keep-all;
}
.sg_meta {
  margin-top: 9px; font-size: 0.75rem; color: var(--ink-3); word-break: keep-all;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
}
.sg_meta b { color: var(--ink-2); font-weight: 800; }
.sg_dl {
  margin-top: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 12px; border: none; border-radius: 10px;
  background: var(--brand-soft); color: var(--blue); font-family: inherit;
  font-size: 0.82rem; font-weight: 800; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.sg_dl:hover { background: rgba(0, 76, 179, 0.14); transform: translateY(-1px); }
.sg_dl:active { transform: none; }
.sg_dl i { font-size: 0.78rem; }

/* 점수 매트릭스 */
.tm_wrap { margin-top: 24px; }
.tm_bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tm_k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gray); }
.tm_sort {
  border: none; background: var(--bg); color: var(--ink-2);
  border-radius: 10px; padding: 9px 13px; font-family: inherit;
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.tm_sort:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }
.tm_scroll { margin-top: 12px; overflow-x: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.tm_table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 720px; }
.tm_table th {
  padding: 11px 10px; background: var(--bg-2); text-align: left;
  font-size: 0.74rem; font-weight: 800; color: var(--ink-2); white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.tm_table th.tm_j, .tm_table td.tm_j { text-align: center; width: 44px; }
.tm_table th.tm_avg, .tm_table td.tm_avg { text-align: center; width: 56px; }
.tm_table th.tm_n, .tm_table td.tm_n { text-align: center; width: 56px; }
.tm_table td {
  padding: 11px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); word-break: keep-all; vertical-align: middle;
}
.tm_table tbody tr:last-child td { border-bottom: none; }
.tm_table tbody tr:hover { background: var(--bg-2); }
.tm_table td.tm_cat { font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.tm_table td.tm_title { font-weight: 700; color: var(--ink); min-width: 200px; }
.tm_no {
  display: block; margin-top: 3px; font-family: 'Montserrat', sans-serif;
  font-size: 0.71rem; font-weight: 700; color: var(--gray);
}
.tm_table td.tm_j {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--ink);
}
.tm_table td.tm_j.is_none { color: #c4ccd6; }
.tm_table td.tm_avg b { font-family: 'Montserrat', sans-serif; font-size: 0.94rem; color: var(--blue); }
.tm_table td.tm_n { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; color: var(--gray); }
.tm_muted { color: var(--gray); }
.tm_empty { padding: 30px 12px; text-align: center; color: var(--gray); }
.tm_note { margin-top: 12px; font-size: 0.8rem; color: var(--gray); word-break: keep-all; }
.tm_note b { color: var(--ink-2); font-weight: 800; }

@media screen and (max-width: 900px) {
  .tally_sec { padding: 20px 18px; }
  .tally_sec--page { padding: 20px 18px; }
  .tally_link { padding: 20px 18px; }
  .tally_link .abtn { width: 100%; justify-content: center; }
}

/* =========================================================
   7. 반응형
   ========================================================= */
@media screen and (max-width: 900px) {
  .admin_app { padding: 26px 18px 60px; }
  .admin_top { align-items: flex-start; }
  .at_right { width: 100%; }
  .abtn { flex: 1 1 auto; }
}

@media screen and (max-width: 640px) {
  .gate_card { padding: 32px 22px 26px; }
  .admin_stats { grid-template-columns: repeat(2, 1fr); }
  .stat_v { font-size: 1.6rem; }
  .admin_tools { padding: 14px; }
  .admin_tools select { flex: 1 1 44%; }
  .md_grid { grid-template-columns: 1fr; }
  .modal_card { max-height: 92vh; }
  .modal_head, .modal_body, .modal_foot { padding-left: 18px; padding-right: 18px; }
  .modal_btns { width: 100%; }
  .modal_btns .abtn { flex: 1 1 auto; }
}
