.admin-page {
  padding-bottom: 0;
  background: #f4f6f8;
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* index.html 글자 크기 '소' 와 동일 */
  --admin-title-size: 1.15rem;
  --admin-name-size: 1.3rem;
  --admin-body-size: 1rem;
  --admin-label-size: 0.9rem;
  font-size: var(--admin-body-size);
}

.admin-page button,
.admin-page input,
.admin-page select,
.admin-page textarea {
  font-family: inherit;
}

.admin-page .header-brand {
  font-family: "HDHyundai", "Pretendard", "Noto Sans KR", sans-serif;
}

/* 알림 메시지: 탭/통계에 가리지 않도록 상단 중앙 고정 */
.admin-page > #message.message {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  margin: 0;
  max-width: min(720px, calc(100vw - 40px));
  width: max-content;
  min-width: min(420px, calc(100vw - 40px));
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  text-align: center;
  pointer-events: none;
  border: 1px solid transparent;
}
.admin-page > #message.message.info {
  background: #cff4fc;
  color: #055160;
  border-color: #9eeaf9;
}
.admin-page > #message.message.error {
  background: #f8d7da;
  color: #842029;
  border-color: #f1aeb5;
}
.admin-page > #message.message[hidden] {
  display: none;
}

/* 상단 헤더: 스크롤해도 뷰포트 상단에 고정 */
.admin-page .admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* 좌측 탭은 고정, 메인 콘텐츠는 화면 중앙 */
.admin-layout {
  position: relative;
  padding: 0 24px 0;
}

.admin-main {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* 좌측 사이드바(탭 + 진행 패널) — admin-panel 시작 높이에 맞춤 */
.admin-sidebar {
  position: fixed;
  left: 12px;
  top: 164px;
  z-index: 25;
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 탭 공통 콘텐츠 영역 */
.panel-heading {
  margin-bottom: 18px;
}
.panel-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.panel-heading p {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
}

/* 엑셀 업로드 카드 */
.upload-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  max-width: 720px;
}
.upload-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.upload-dropzone {
  flex: 1 1 320px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #1d4ed8;
  background: #eff6ff;
}
.upload-dropzone.has-file {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
}
.upload-icon {
  font-size: 22px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}
.upload-text {
  font-size: 14px;
  color: #475569;
  word-break: break-all;
}
.upload-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
}
.upload-recruitment-type {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.upload-recruitment-type legend {
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.upload-recruitment-type label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
}
#upload-step-file,
#upload-step-grouping {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
#upload-step-file[hidden],
#upload-step-grouping[hidden] {
  display: none !important;
}
.upload-grouping-type {
  flex: 1 0 100%;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.upload-grouping-type legend {
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.upload-grouping-help,
.upload-grouping-order {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}
.upload-grouping-order {
  font-weight: 700;
  color: #334155;
}
.upload-grouping-section {
  display: grid;
  gap: 6px;
}
.upload-grouping-section-title {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.upload-grouping-type label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.upload-grouping-type input[type="checkbox"],
.upload-grouping-type input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: none;
  accent-color: #0f766e;
}
.upload-grouping-type label.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
}
.upload-grouping-type label.is-disabled input {
  pointer-events: none;
}
.upload-step-actions {
  flex: 1 0 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.groups-criteria-note {
  margin: 8px 0 0;
  color: #334155;
  font-weight: 700;
}
.developer-only[hidden] {
  display: none !important;
}
.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: #475569;
}
.upload-progress[hidden] {
  display: none;
}
.upload-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
}
@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.upload-guide {
  max-width: 720px;
  margin-top: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.upload-guide h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #334155;
}
.upload-guide ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-guide li {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.admin-status-title {
  padding: 4px 6px 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

/* 좌측 세로 탭 */
.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border: 1px solid transparent;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: left;
}
.admin-tab:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.admin-tab.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}
.admin-tab-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.admin-tab-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  min-width: 0;
}
.admin-tab-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-tab-desc {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-tab.active .admin-tab-desc {
  opacity: 0.85;
}
@keyframes admin-side-progress-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes admin-side-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.admin-panel {
  display: none;
  padding: 18px 0 40px;
  animation: admin-panel-in 0.18s ease;
}
.admin-panel.active {
  display: block;
}

/* 사이드바와 중앙 본문이 겹치지 않도록 */
@media (max-width: 1500px) {
  .admin-main {
    max-width: min(1120px, calc(100% - 392px));
    margin-left: 196px;
    margin-right: 196px;
  }
}

@media (max-width: 900px) {
  .admin-layout {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 0;
  }
  .admin-sidebar {
    position: sticky;
    left: auto;
    top: 72px;
    width: 100%;
  }
  .admin-main {
    max-width: none;
    margin: 0;
    order: 3;
  }
  .admin-tabs,
  .admin-stats {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }
  .admin-tab,
  .stat-chip {
    width: auto;
    flex: 0 0 auto;
  }
  .admin-status-title {
    display: none;
  }
}

@keyframes admin-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  vertical-align: middle;
}

/* Tab1 table */
.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-toolbar input,
.admin-toolbar select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}
.admin-toolbar input { flex: 1; min-width: 220px; }

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table-fixed {
  table-layout: fixed;
}
.admin-table-fixed .col-exam { width: 12%; }
.admin-table-fixed .col-name { width: 9%; }
.admin-table-fixed .col-age { width: 7%; }
.admin-table-fixed .col-career { width: 10%; }
.admin-table-fixed .col-education { width: 21%; }
.admin-table-fixed .col-certificates { width: 20%; }
.admin-table-fixed .col-language { width: 12%; }
.admin-table-fixed .col-status { width: 9%; }
.admin-table-fixed .col-exclude-photo { width: 16%; }
.admin-table-fixed .col-exclude-exam { width: 26%; }
.admin-table-fixed .col-exclude-name { width: 34%; }
.admin-table-fixed .col-exclude-action { width: 24%; }
.admin-table-fixed th,
.admin-table-fixed td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table th,
.admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.th-sort:hover {
  color: #0b3d6e;
}
.th-sort.is-active {
  color: #0b3d6e;
}
.th-sort-icon {
  font-size: 11px;
  opacity: 0.45;
  line-height: 1;
}
.th-sort.is-active .th-sort-icon {
  opacity: 0.95;
}
.admin-table .small-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table .small-cell.small-cell-wrap,
.admin-table-fixed td.small-cell-wrap {
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.35;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: normal;
}
.admin-table .small-cell-wrap .wrap-seg {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
  vertical-align: baseline;
  margin-right: 0.2em;
}
.admin-table .small-cell-wrap .wrap-seg:last-child {
  margin-right: 0;
}
.admin-table .small-cell-wrap .wrap-seg.career-line {
  display: block;
  margin-right: 0;
}
.admin-table .small-cell-wrap .lang-exam,
.admin-table .small-cell-wrap .lang-score {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
}
.admin-table .small-cell-wrap .lang-score {
  margin-left: 0.35em;
}
.admin-table .col-check {
  width: 36px;
  text-align: center;
}
.admin-table .col-check input {
  cursor: pointer;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-empty { text-align: center; color: #94a3b8; padding: 24px; }

.admin-table tr.applicant-row,
.admin-table tr.re-row {
  cursor: pointer;
}
.admin-table tr.applicant-row:hover,
.admin-table tr.re-row:hover {
  background: #f1f6fc;
}
.admin-table tr.all-exclude-row:hover {
  background: #fff7ed;
}

.admin-exclude-photo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e9ef;
  background: #f8fafc;
  vertical-align: middle;
}

.all-exclude-row-btn {
  min-width: 64px;
}

.all-exclude-mode-btn.active {
  border-color: #f4c38a;
  background: #fff7ed;
  color: #9a5b13;
}

.status-pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.status-pill.pending { background: #f1f5f9; color: #475569; }
.status-pill.queued { background: #e0f2fe; color: #075985; }
.status-pill.analyzing { background: #fef3c7; color: #92400e; }
.status-pill.analyzed { background: #dcfce7; color: #166534; }
.status-pill.excluded { background: #fef3c7; color: #92400e; }
.status-pill.rejected { background: #fee2e2; color: #991b1b; }
.status-pill.failed { background: #fee2e2; color: #991b1b; }
.status-pill.recruitment-entry_level { background: #e0f2fe; color: #075985; }
.status-pill.recruitment-experienced { background: #ede9fe; color: #5b21b6; }
.admin-table tr.row-added { background: #f0fdf4; }

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}
.page-info { font-size: 13px; color: #64748b; }

/* Tab4: 그룹·순서 변경 */
.groups-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
}

#groups-interview-filter {
  flex: 0 1 260px;
  width: min(260px, 34vw);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groups-toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.groups-dirty {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
}
.groups-dirty[hidden] { display: none; }

.groups-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.group-col {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.group-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eef2ff;
  border-bottom: 1px solid #e0e7ff;
}
.group-col-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.group-col-label-input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.6);
}
.group-col-label-input:hover,
.group-col-label-input:focus {
  border-color: #93c5fd;
  background: #fff;
  outline: none;
}
.group-col-label-input::placeholder {
  color: #64748b;
  font-weight: 600;
}
.group-col-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-col-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.group-col-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* 빈 슬롯 없이도 그룹 열들이 비슷한 세로 길이를 갖도록 최소 높이를 준다.
     같은 행의 더 긴 그룹이 있으면 flex:1 로 그 높이에 맞춰 늘어난다. */
  min-height: 320px;
  flex: 1;
  transition: background 0.12s;
}
.group-col-body.drop-hover {
  background: #eff6ff;
}
.group-col-body.drop-hover .gm-empty {
  display: none;
}
.gm-drop-gap {
  flex: 0 0 auto;
  border-radius: 10px;
}
.gm-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 18px 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.gm-card.gm-empty-slot {
  justify-content: center;
  min-height: 72px;
  color: #94a3b8;
  font-size: 13px;
  border-style: dashed;
  background: #f8fafc;
  cursor: default;
}
.gm-card.gm-empty-slot:hover {
  border-color: #e2e8f0;
  box-shadow: none;
}

.gm-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: grab;
  transition: box-shadow 0.12s, border-color 0.12s, background 0.12s, transform 0.16s ease;
}
.gm-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
}
.gm-card.dragging {
  height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.gm-native-drag-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}
.gm-drag-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  opacity: 1;
  cursor: grabbing;
  border-color: #003087;
  background: #f7fbff;
  box-shadow: 0 0 0 2px rgba(0, 48, 135, 0.16), 0 8px 18px rgba(0, 48, 135, 0.14);
  pointer-events: none;
  transform: translate(-10000px, -10000px);
  transition: none;
}

.gm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.gm-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}
.gm-info {
  flex: 1;
  min-width: 0;
}
.gm-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.gm-field {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-field.sub { color: #94a3b8; }

/* ── index 글자 크기 '소' 기본 스케일 적용 ── */
.admin-page .header-brand {
  font-size: var(--admin-title-size);
}

.admin-page .header-title {
  font-size: var(--admin-title-size);
}

.admin-page .header-link,
.admin-page .admin-toolbar input,
.admin-page .admin-toolbar select,
.admin-page .admin-table,
.admin-page .admin-tab,
.admin-page .select-summary,
.admin-page .page-info,
.admin-page .batch-progress-text,
.admin-page .bar-exam,
.admin-page button.primary,
.admin-page button.secondary,
.admin-page .primary,
.admin-page .secondary {
  font-size: var(--admin-body-size);
}

.admin-page .panel-heading h2 {
  font-size: var(--admin-title-size);
}

.admin-page .panel-heading p,
.admin-page .admin-tab-desc,
.admin-page .panel-badge,
.admin-page .stat-chip,
.admin-page .upload-hint,
.admin-page .filter-hint {
  font-size: var(--admin-label-size);
}

.admin-page .admin-tab-title,
.admin-page .bar-name,
.admin-page .stat-chip .stat-num {
  font-size: var(--admin-body-size);
}

.admin-page .admin-tab-icon {
  font-size: var(--admin-title-size);
}

.header-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.login-form input,
.interviewer-form input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.interviewer-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.interview-check-list {
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-height: 150px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.interview-check-list-modal {
  min-height: 96px;
  max-height: none;
  overflow: visible;
  min-width: 100%;
  padding: 10px;
}

.interview-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.interview-picker-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.interview-picker-pager[hidden] {
  display: none !important;
}

.interview-picker-pager .page-info {
  min-width: 7.5rem;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.interview-picker-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.interview-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #334155;
}

.interview-check:hover {
  background: #f8fafc;
}

.interview-check input {
  width: 16px;
  height: 16px;
}

.interview-check-empty {
  color: #94a3b8;
  font-size: 0.9rem;
}

.interviewer-modal-box {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  box-sizing: border-box;
}

/* 처음엔 1칸 높이로 시작 → 계정 추가 시 커지다가 이 한도에서 멈춤 */
.interviewer-modal-box--create {
  height: auto;
  max-height: min(820px, calc(100dvh - 32px));
}

.interviewer-modal-box > .detail-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interview-upload-modal-box .upload-card,
.interview-upload-modal-box .upload-guide {
  max-width: none;
}

.interview-upload-modal-box .upload-guide {
  margin-top: 0;
}

.interviewer-create-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.interviewer-bulk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-weight: 700;
}

.interviewer-account-rows {
  display: grid;
  gap: 10px;
}

.interviewer-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.interviewer-account-row label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.interviewer-account-row input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.interviewer-account-row .bulk-remove {
  justify-self: end;
  grid-column: 1 / -1;
}

.interview-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-weight: 700;
}

.interview-pick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .interviewer-account-row {
    grid-template-columns: 1fr;
  }

  .interviewer-bulk-head,
  .interview-pick-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-page > #message.message {
  font-size: var(--admin-body-size);
}

/* 지원자 상세 모달 (am-body 포함) */
.admin-page #applicant-modal .detail-name-row h2 {
  font-size: var(--admin-name-size);
}

.admin-page #applicant-modal .detail-index,
.admin-page #applicant-modal .detail-role,
.admin-page #applicant-modal .detail-contact,
.admin-page #applicant-modal .detail-sidebar-keywords-title,
.admin-page #applicant-modal .detail-sidebar-tags-empty,
.admin-page #applicant-modal .tag {
  font-size: var(--admin-label-size);
}

.admin-page #applicant-modal .detail-meta-row,
.admin-page #applicant-modal .detail-meta-row dt,
.admin-page #applicant-modal .detail-meta-row dd,
.admin-page #applicant-modal .toggle-original-btn,
.admin-page #applicant-modal #am-body,
.admin-page #applicant-modal .detail-body {
  font-size: var(--admin-body-size);
}

.admin-page #applicant-modal #am-body .detail-section h3,
.admin-page #applicant-modal .detail-section h3,
.admin-page #applicant-modal .detail-panel-title,
.admin-page #applicant-modal .detail-panel-head h3 {
  font-size: var(--admin-title-size);
}

.admin-page #applicant-modal #am-body .summary-list,
.admin-page #applicant-modal #am-body .summary-list li,
.admin-page #applicant-modal #am-body .question-list,
.admin-page #applicant-modal #am-body .question-list li,
.admin-page #applicant-modal #am-body .detail-questions li,
.admin-page #applicant-modal #am-body .panel-desc,
.admin-page #applicant-modal #am-body .report-empty,
.admin-page #applicant-modal #am-body .report-loading,
.admin-page #applicant-modal #am-body .report-box,
.admin-page #applicant-modal #am-body .report-summary,
.admin-page #applicant-modal .application-original,
.admin-page #applicant-modal .application-block-title,
.admin-page #applicant-modal .application-flat-key,
.admin-page #applicant-modal .application-flat-val,
.admin-page #applicant-modal .application-block-body,
.admin-page #applicant-modal .application-essay-text,
.admin-page #applicant-modal .application-record-card,
.admin-page #applicant-modal .application-record-card h5,
.admin-page #applicant-modal .application-record-row,
.admin-page #applicant-modal .application-record-row dt,
.admin-page #applicant-modal .application-record-row dd,
.admin-page #applicant-modal .application-original p,
.admin-page #applicant-modal .application-original li,
.admin-page #applicant-modal .resume-original,
.admin-page #applicant-modal .resume-section-head h4,
.admin-page #applicant-modal .resume-section-head span,
.admin-page #applicant-modal .resume-field dt,
.admin-page #applicant-modal .resume-field dd,
.admin-page #applicant-modal .resume-nested-card h5,
.admin-page #applicant-modal .resume-record-card h5,
.admin-page #applicant-modal .resume-record-row dt,
.admin-page #applicant-modal .resume-record-row dd,
.admin-page #applicant-modal .resume-essay h5,
.admin-page #applicant-modal .resume-essay p,
.admin-page #applicant-modal .resume-table th,
.admin-page #applicant-modal .resume-table td,
.admin-page #applicant-modal .resume-long-field,
.admin-page #applicant-modal .resume-subtable-title {
  font-size: var(--admin-body-size);
}

/* 대시보드 분석 모달 지원서 원문과 동일한 resume 레이아웃 */
.admin-page #applicant-modal #am-body .resume-original {
  color: #1f2933;
}

.admin-page #applicant-modal #am-body .resume-document {
  display: grid;
  gap: clamp(0.7rem, 1vw, 0.95rem);
}

.admin-page #applicant-modal #am-body .resume-section,
.admin-page #applicant-modal #am-body .resume-field,
.admin-page #applicant-modal #am-body .resume-nested-card,
.admin-page #applicant-modal #am-body .resume-record-list,
.admin-page #applicant-modal #am-body .resume-record-card,
.admin-page #applicant-modal #am-body .resume-table-wrap,
.admin-page #applicant-modal #am-body .resume-long-field,
.admin-page #applicant-modal #am-body .resume-essay {
  border-radius: 8px;
}

.admin-page #applicant-modal #am-body .resume-field-grid,
.admin-page #applicant-modal #am-body .resume-field-grid.identity,
.admin-page #applicant-modal #am-body .resume-field-grid.military,
.admin-page #applicant-modal #am-body .resume-field-grid.compact,
.admin-page #applicant-modal #am-body .resume-record-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.admin-page #applicant-modal #am-body .resume-field-grid.roomy,
.admin-page #applicant-modal #am-body .resume-field-grid.remaining {
  grid-template-columns: repeat(2, minmax(min(240px, 100%), 1fr));
}

.admin-page #applicant-modal #am-body .resume-table {
  min-width: 480px;
}

/* ── Admin/Login visual refresh ───────────────────────────────── */
.admin-page {
  --admin-blue: #073b66;
  --admin-blue-2: #115a92;
  --admin-cyan: #0e7490;
  --admin-green: #138a58;
  --admin-ink: #172033;
  --admin-muted: #667085;
  --admin-line: #dbe4ee;
  --admin-soft: #f4f7fa;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 42%, #e9eef4 100%);
  color: var(--admin-ink);
}

.admin-page .admin-header {
  background: var(--admin-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(7, 59, 102, 0.18);
}

.admin-page .header-link {
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-page .header-link:hover,
.admin-page .header-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.admin-layout {
  padding-top: 0;
}

.admin-main {
  max-width: 1180px;
}

.admin-sidebar,
.admin-status-sidebar {
  top: 148px;
  width: 184px;
}

.admin-tabs,
.admin-stats,
.admin-side-progress {
  border-color: rgba(219, 228, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.10);
}

.admin-tabs {
  gap: 6px;
  padding: 8px;
}

.admin-tab {
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  border-color: transparent;
}

.admin-tab:hover {
  background: #eef7f8;
  color: var(--admin-cyan);
}

.admin-tab.active {
  background: var(--admin-blue);
  border-color: var(--admin-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(7, 59, 102, 0.18);
}

.admin-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e6f3f6;
  font-size: 16px;
}

.admin-tab.active .admin-tab-icon {
  background: rgba(255, 255, 255, 0.18);
}

.admin-tab-title {
  letter-spacing: 0;
}

.admin-tab-desc {
  color: inherit;
}

.admin-panel {
  padding: 22px 0 48px;
}

.panel-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-line);
}

.panel-heading h2 {
  color: var(--admin-ink);
  letter-spacing: 0;
}

.panel-heading p {
  color: var(--admin-muted);
}

.admin-panel-quick-link {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin: 0;
}

.admin-panel-quick-mark.admin-tab-mark {
  width: 26px;
  height: 26px;
  border-color: #b9d8ee;
  background: #fff;
  color: var(--admin-cyan);
  box-shadow: inset 0 0 0 3px rgba(14, 116, 144, 0.08);
}

.admin-panel-quick-mark.admin-tab-mark--applicants::before {
  width: 12px;
  height: 8px;
  bottom: 5px;
  border-width: 1.8px;
  border-radius: 5px 5px 3px 3px;
}

.admin-panel-quick-mark.admin-tab-mark--applicants::after {
  top: 5px;
  width: 7px;
  height: 7px;
  border-width: 1.8px;
}

.admin-panel-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 4px 12px 4px 6px;
  border: 1px solid #c7ddeb;
  border-radius: 999px;
  background: #fff;
  color: var(--admin-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.10);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-panel-quick-btn:hover,
.admin-panel-quick-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #8fc5d4;
  background: #eef7f8;
  box-shadow: 0 10px 20px rgba(14, 116, 144, 0.14);
  outline: none;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.panel-heading-actions .groups-dirty {
  margin-left: 0;
}

.admin-toolbar,
.groups-toolbar,
.select-actionbar {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
}

.admin-toolbar {
  padding: 12px;
}

.admin-toolbar input,
.admin-toolbar select,
.groups-toolbar select,
.select-register input,
.bar-jobs select,
.group-col-label-input,
.login-form input,
.interviewer-form input,
.interviewer-account-row input {
  min-height: 40px;
  border-color: var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-ink);
  font-weight: 600;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus,
.groups-toolbar select:focus,
.select-register input:focus,
.bar-jobs select:focus,
.group-col-label-input:focus,
.login-form input:focus,
.interviewer-form input:focus,
.interviewer-account-row input:focus {
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.24);
  outline: none;
}

.admin-table-wrap,
.exam-results,
.upload-card,
.upload-guide,
.group-col,
.bar-card {
  border-color: var(--admin-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.05);
}

.admin-table th {
  background: #f4f7fa;
  color: #526070;
  font-weight: 800;
}

.admin-table th,
.admin-table td {
  border-bottom-color: #e8edf3;
}

.admin-table tr.applicant-row:hover,
.admin-table tr.re-row:hover {
  background: #eef7f8;
}

.th-sort:hover,
.th-sort.is-active {
  color: var(--admin-cyan);
}

.status-pill {
  border: 1px solid transparent;
  font-weight: 800;
}

.status-pill.analyzed {
  border-color: #cfe8dd;
  background: #eff8f3;
  color: #12663f;
}

.status-pill.queued {
  border-color: #c7e6ee;
  background: #e6f3f6;
  color: #0e6075;
}

.status-pill.analyzing,
.status-pill.excluded {
  border-color: #f1d7a8;
  background: #fff8e8;
  color: #8a5b0a;
}

.status-pill.failed,
.status-pill.rejected {
  border-color: #f6cccc;
  background: #fdecec;
  color: #963434;
}

.upload-card {
  max-width: 760px;
}

.upload-card-body {
  margin-top: 0;
}

.upload-dropzone {
  border-color: #c9d8e6;
  border-radius: 8px;
  background: #f8fafc;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--admin-cyan);
  background: #eef7f8;
}

.upload-dropzone.has-file {
  border-color: var(--admin-green);
  background: #eff8f3;
}

.upload-icon {
  color: var(--admin-cyan);
}

.upload-guide {
  border-style: solid;
  background: #f8fafc;
}

.groups-toolbar {
  padding: 12px;
}

.groups-dirty {
  color: #8a5b0a;
}

.group-col {
  overflow: hidden;
}

.group-col-head {
  background: #eef7f8;
  border-bottom-color: var(--admin-line);
}

.group-col-num {
  border-radius: 6px;
  background: var(--admin-green);
}

.gm-card {
  border-color: var(--admin-line);
  border-radius: 8px;
}

.gm-card:hover {
  border-color: rgba(14, 116, 144, 0.45);
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.08);
}

.gm-num,
.gm-btn {
  border-radius: 6px;
}

.gm-photo {
  border-radius: 8px;
}

.panel-badge {
  border-color: #f1d7a8;
  background: #fff8e8;
  color: #8a5b0a;
}

.admin-pagination button,
.modal-actions button,
.interviewer-actions button {
  border-radius: 8px;
}

.login-page {
  padding-bottom: 0;
}

.login-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(7, 59, 102, 0.08) 0%, rgba(14, 116, 144, 0.06) 42%, rgba(19, 138, 88, 0.05) 100%),
    #eef3f7;
}

.login-panel {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid rgba(219, 228, 238, 0.98);
  border-radius: 8px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.16);
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--admin-blue), var(--admin-cyan), var(--admin-green));
}

.login-panel .header-brand {
  color: var(--admin-blue);
}

.login-panel .header-title {
  margin-top: 8px;
  color: var(--admin-ink);
  white-space: normal;
}

.login-form {
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  color: #475467;
}

.login-form button[type="submit"] {
  min-height: 46px;
  margin-top: 4px;
}

.password-change-copy {
  margin: 0 0 2px;
  padding: 10px 12px;
  border: 1px solid #c7e6ee;
  border-radius: 8px;
  background: #e6f3f6;
  color: #0e6075;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1500px) {
  .admin-main {
    max-width: min(1180px, calc(100% - 424px));
    margin-left: 208px;
    margin-right: 208px;
  }
}

@media (max-width: 900px) {
  .admin-layout {
    padding: 16px;
  }

  .admin-sidebar,
  .admin-status-sidebar {
    top: 72px;
    width: 100%;
  }

  .admin-main {
    max-width: none;
    margin: 0;
  }

  .admin-tabs,
  .admin-stats {
    border-radius: 8px;
  }

  .admin-tab {
    min-height: 48px;
  }

  .panel-heading {
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .login-panel {
    padding: 28px 22px;
  }

  .admin-panel-quick-link {
    justify-content: stretch;
  }

  .admin-panel-quick-btn {
    width: 100%;
  }

  .groups-toolbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ── Usability pass: login spacing + non-overlapping admin rails ── */
.login-panel {
  display: flex;
  flex-direction: column;
}

.login-panel .header-brand {
  align-self: center;
  margin: 0;
  padding: 0.28rem 0.72rem;
  border: 1px solid #c7e6ee;
  border-radius: 999px;
  background: #e6f3f6;
  font-size: 0.95rem;
  line-height: 1.2;
}

.login-panel .header-title {
  align-self: center;
  max-width: 320px;
  margin: 18px auto 0;
  text-align: center;
  line-height: 1.38;
}

.login-form {
  margin-top: 30px;
}

@media (min-width: 1101px) {
  .admin-layout {
    display: grid;
    grid-template-columns: 184px minmax(0, 1180px) 184px;
    gap: 24px;
    align-items: start;
    width: min(100%, 1644px);
    margin: 0 auto;
    padding: 24px;
  }

  .admin-sidebar,
  .admin-status-sidebar {
    position: sticky;
    top: 92px;
    left: auto;
    right: auto;
    width: auto;
  }

  .admin-sidebar {
    grid-column: 1;
  }

  .admin-main {
    grid-column: 2;
    max-width: none;
    margin: 0;
  }
}

.admin-tab.active {
  background: #eef7f8;
  border-color: #c7e6ee;
  color: var(--admin-cyan);
  box-shadow: inset 3px 0 0 var(--admin-cyan), 0 1px 2px rgba(23, 32, 51, 0.05);
}

.admin-tab.active .admin-tab-icon {
  background: #fff;
  color: var(--admin-cyan);
}

.admin-tab.active .admin-tab-desc {
  opacity: 0.78;
}

@media (max-width: 1100px) {
  .admin-layout {
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .admin-sidebar,
  .admin-status-sidebar {
    position: sticky;
    left: auto;
    right: auto;
    width: 100%;
  }

  .admin-sidebar {
    top: 72px;
  }

  .admin-main {
    max-width: none;
    margin: 0;
  }
}

/* ── Interviewer account table action sizing ─────────────────── */
#interviewer-tbody td:last-child {
  white-space: normal;
}

#interviewer-tbody .interviewer-actions {
  justify-content: flex-end;
  gap: 4px;
  max-width: 86px;
  margin-left: auto;
}

#interviewer-tbody .interviewer-actions button {
  min-width: 0;
  min-height: 28px;
  padding: 0.24rem 0.46rem;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.12;
}

#interviewer-tbody .iv-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--admin-ink);
  font-weight: 700;
  line-height: 1.35;
}

#interviewer-tbody .iv-readonly.muted {
  color: #98a2b3;
  font-weight: 600;
}

#interviewer-tbody .iv-interview-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 180px;
}

#interviewer-tbody .iv-interview-chip {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  min-height: 26px;
  padding: 0.22rem 0.52rem;
  border: 1px solid #c7e6ee;
  border-radius: 999px;
  background: #e6f3f6;
  color: #0e6075;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#interviewer-tbody .interviewer-actions .iv-edit {
  border-color: #c7e6ee;
  background: #e6f3f6;
  color: #0e6075;
}

#interviewer-tbody .interviewer-actions .iv-edit:hover,
#interviewer-tbody .interviewer-actions .iv-edit:focus-visible {
  border-color: #8fcbd9;
  background: #d9eef3;
}

.interviewer-edit-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(110px, 0.75fr) minmax(180px, 1.25fr);
  gap: 10px;
}

.interviewer-edit-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.interviewer-edit-grid input {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--admin-ink);
  font: inherit;
  font-weight: 600;
}

#interviewer-edit-username,
#interviewer-edit-name,
#interviewer-edit-email {
  width: 90%;
  justify-self: center;
}

.interviewer-edit-grid input:focus {
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.24);
  outline: none;
}

.interviewer-edit-actions {
  align-items: center;
}

.interviewer-edit-actions #interviewer-edit-reset {
  border-color: #f1d7a8;
  background: #fff8e8;
  color: #8a5b0a;
}

.interviewer-edit-actions #interviewer-edit-reset:hover,
.interviewer-edit-actions #interviewer-edit-reset:focus-visible {
  background: #fbeecf;
}

.modal-actions-spacer {
  flex: 1;
}

@media (max-width: 700px) {
  .interviewer-edit-grid {
    grid-template-columns: 1fr;
  }

  .interviewer-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions-spacer {
    display: none;
  }
}

/* ── Responsive stabilization: admin.html ─────────────────────── */
.admin-page .admin-table-wrap {
  max-width: 100%;
}

.admin-page .admin-table {
  min-width: 760px;
}

.admin-page .admin-table-fixed {
  min-width: 1180px;
}

.admin-table-profile {
  min-width: 1240px;
}

.admin-panel[data-panel="interviewers"] .admin-table {
  min-width: 980px;
}

.admin-panel[data-panel="interviews"] .admin-table {
  min-width: 760px;
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .admin-layout {
    grid-template-columns: 164px minmax(0, 1fr) 164px;
    gap: 16px;
    padding: 20px 16px;
  }

  .admin-tab,
  .stat-chip {
    padding-left: 8px;
    padding-right: 8px;
  }

  .admin-tab-desc {
    display: none;
  }
}

@media (max-width: 1100px) {
  .admin-layout {
    gap: 14px;
  }

  .admin-sidebar,
  .admin-status-sidebar {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    width: 100%;
  }

  .admin-main {
    order: 3;
    width: 100%;
  }

  .admin-tabs,
  .admin-stats {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .admin-tab,
  .stat-chip {
    flex: 0 0 min(220px, 72vw);
  }
}

@media (max-width: 760px) {
  .admin-page .app-header {
    padding: 0.85rem 1rem;
  }

  .admin-page .header-inner {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .admin-page .header-brand,
  .admin-page .header-title,
  .admin-page .header-nav {
    justify-self: stretch;
  }

  .admin-page .header-title {
    text-align: left;
    white-space: normal;
    line-height: 1.35;
  }

  .admin-page .header-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .admin-page .header-link,
  .admin-page .header-button {
    padding: 0.38rem 0.62rem;
    font-size: 0.82rem;
  }

  .admin-layout {
    padding: 12px;
  }

  .admin-panel {
    padding-top: 14px;
  }

  .panel-heading {
    margin-bottom: 12px;
  }

  .panel-heading p {
    line-height: 1.45;
  }

  .admin-toolbar,
  .groups-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-toolbar input,
  .admin-toolbar select,
  .admin-toolbar button,
  .groups-toolbar select,
  .groups-toolbar button {
    width: 100%;
    min-width: 0;
  }

  .groups-toolbar-right {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .groups-dirty {
    width: 100%;
  }

  .panel-heading-row .groups-dirty {
    margin-left: 0;
  }

  .groups-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .group-col-body {
    min-height: 180px;
  }

  .upload-card,
  .upload-guide {
    max-width: none;
  }

  .upload-card-body {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-dropzone {
    flex-basis: auto;
    width: 100%;
  }

  .admin-page > #message.message {
    top: 72px;
    width: calc(100vw - 24px);
    min-width: 0;
    max-width: calc(100vw - 24px);
  }

  .interviewer-modal-box,
  .admin-page .modal-box {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 1rem;
  }

  .interviewer-modal-box--create {
    height: auto;
    max-height: min(820px, calc(100dvh - 24px));
  }
}

@media (max-width: 480px) {
  .admin-tabs,
  .admin-stats {
    gap: 6px;
    padding: 6px;
  }

  .admin-tab,
  .stat-chip {
    flex-basis: min(210px, 84vw);
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }

  .modal-actions,
  .interviewer-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions button,
  .interviewer-edit-actions button {
    width: 100%;
  }

  #interviewer-edit-username,
  #interviewer-edit-name,
  #interviewer-edit-email {
    width: 100%;
  }
}

@media (min-width: 721px) {
  .admin-page .admin-table-fixed {
    min-width: clamp(920px, calc(1180px * var(--app-density-scale, 1)), 1480px);
  }

  .admin-table-profile {
    min-width: clamp(980px, calc(1240px * var(--app-density-scale, 1)), 1550px);
  }
}

@media (min-width: 1101px) {
  .admin-layout {
    display: grid;
    grid-template-columns:
      minmax(150px, calc(184px * var(--app-density-scale, 1)))
      minmax(0, calc(1180px * var(--app-density-scale, 1)))
      minmax(150px, calc(184px * var(--app-density-scale, 1)));
    gap: clamp(16px, calc(24px * var(--app-density-scale, 1)), 32px);
    width: min(100%, calc(1644px * var(--app-density-scale, 1)));
    margin: 0 auto;
  }
}

/* ── Hamburger nav + list sticky (improve/visibility) ─────────── */
.admin-page .header-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}

.admin-page .header-brand-wrap .header-brand {
  justify-self: auto;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}

.admin-page .header-title-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.admin-page .header-title-button:hover,
.admin-page .header-title-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-page .header-title-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.admin-page {
  --admin-sidebar-width: 220px;
  --admin-header-offset: 72px;
}

.admin-nav-drawer {
  position: fixed;
  top: var(--admin-header-offset);
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--admin-sidebar-width);
  height: auto;
  padding: 24px 10px 16px;
  background: #fbfcfe;
  border-right: 1px solid #d8e1eb;
  box-shadow: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-nav-drawer .admin-tabs {
  position: static;
  width: 100%;
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-nav-drawer .admin-tab {
  width: 100%;
}

/* 좌·우 사이드바 제거 후 메인 전체 폭 사용 (좌측 고정 메뉴 여백 반영) */
.admin-page .admin-layout {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 24px 0 calc(var(--admin-sidebar-width) + 20px) !important;
}

.admin-page.admin-on-home .admin-nav-drawer {
  display: none !important;
}

.admin-page.admin-on-home .admin-layout {
  padding: 0 24px 0 !important;
}

.admin-page .admin-home-dashboard-link {
  display: none;
}

.admin-page.admin-on-home .admin-home-dashboard-link {
  display: inline-flex;
  align-items: center;
}

.admin-page .admin-main {
  max-width: min(1400px, 100%) !important;
  width: 100% !important;
  margin: 0 auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.admin-page .admin-sidebar,
.admin-page .admin-status-sidebar {
  display: none !important;
}

/* 지원자 목록: 필터 고정 + 테이블 본문만 스크롤, 컬럼 헤더 sticky */
.admin-page:has(.admin-panel-list.active) {
  overflow: hidden;
  height: 100vh;
  padding-bottom: 0;
}

.admin-panel-list.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  padding-bottom: 12px;
}

.admin-panel-list .panel-heading {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.admin-panel-list .admin-list-chrome {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
  padding-bottom: 10px;
}

.admin-panel-list .admin-toolbar {
  margin-bottom: 0;
}

.admin-panel-list .admin-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  background: #fff;
}

.admin-panel-list .admin-table-fixed {
  min-width: 0 !important;
  width: 100%;
}

.admin-panel-list .admin-table-fixed .col-education { width: 19%; }
.admin-panel-list .admin-table-fixed .col-certificates { width: 19%; }
.admin-panel-list .admin-table-fixed .col-language { width: 15%; }

.admin-panel-list .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 #e5e9ef;
}

.admin-panel-list .admin-table th,
.admin-panel-list .admin-table td {
  text-align: center;
  vertical-align: middle;
}

.admin-panel-list .admin-table .th-sort {
  justify-content: center;
  width: 100%;
}

.admin-panel-list .admin-pagination {
  flex-shrink: 0;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .admin-panel-list.active {
    height: calc(100vh - 96px);
    max-height: calc(100vh - 96px);
  }

  .admin-page .admin-layout {
    padding: 0 16px 0 calc(var(--admin-sidebar-width) + 12px) !important;
  }

  .admin-page.admin-on-home .admin-layout {
    padding: 0 16px 0 !important;
  }
}

.analysis-progress-card {
  margin-top: 20px;
  max-width: 720px;
  padding: 22px 24px 20px;
  border: 1px solid #c7e0ea;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #f3fafc 0%, #ffffff 42%);
  box-shadow: 0 10px 28px rgba(7, 59, 102, 0.08);
}

.analysis-progress-card[hidden] {
  display: none !important;
}

.analysis-progress-card--compact {
  margin: 0 0 16px;
  max-width: none;
  padding: 16px 18px;
}

.analysis-progress-card--interviews {
  width: min(780px, 100%);
  max-width: 100%;
  margin: 0 0 14px;
  padding: 16px 18px 14px;
  border-color: #d6e4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.analysis-progress-card--interviews .analysis-progress-top {
  align-items: center;
  margin-bottom: 12px;
}

.analysis-progress-card--interviews .analysis-progress-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0;
}

.analysis-progress-card--interviews .analysis-progress-file {
  font-size: 15px;
  line-height: 1.35;
}

.analysis-progress-card--interviews .analysis-progress-pct {
  min-width: 3.7rem;
  font-size: 1.35rem;
}

.analysis-progress-card--interviews .analysis-progress-bar {
  height: 8px;
  background: #edf4f7;
}

.analysis-progress-card--interviews .analysis-progress-meta {
  margin-top: 9px;
  font-size: 12px;
  color: #475467;
}

.analysis-progress-card--interviews .analysis-progress-current {
  margin-top: 7px;
  min-height: 0;
  font-size: 12px;
}

.analysis-progress-card--interviews .analysis-progress-actions {
  margin-top: 10px;
}

.analysis-progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.analysis-progress-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--admin-cyan, #0e7490);
}

.analysis-progress-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #c7e6ee;
  border-top-color: var(--admin-cyan, #0e7490);
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.analysis-progress-file {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #172033;
  line-height: 1.35;
  word-break: break-all;
}

.analysis-progress-pct {
  flex-shrink: 0;
  min-width: 4.5rem;
  text-align: right;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--admin-blue, #073b66);
  line-height: 1;
}

.analysis-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: #e6f3f6;
  overflow: hidden;
}

.analysis-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-cyan, #0e7490), var(--admin-green, #138a58));
  transition: width 0.35s ease;
}

.analysis-progress-card.is-indeterminate .analysis-progress-fill {
  width: 40% !important;
  animation: admin-side-progress-indeterminate 1.1s ease-in-out infinite;
}

.analysis-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.analysis-progress-current {
  margin: 10px 0 0;
  min-height: 1.35em;
  font-size: 13px;
  color: #64748b;
}

.analysis-progress-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.analysis-cancel-btn {
  border-color: #f1c4c4;
  color: #b42318;
  background: #fff7f7;
}

.analysis-cancel-btn:hover:not(:disabled) {
  border-color: #e8a0a0;
  background: #ffecec;
}

.analysis-cancel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .analysis-progress-top {
    flex-direction: column;
  }

  .analysis-progress-pct {
    text-align: left;
  }
}

/* ── Admin console refinement: fixed sidebar ─────────────────── */
.admin-nav-drawer {
  width: var(--admin-sidebar-width, 220px);
  padding: 24px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbfcfe;
  border-right: 1px solid #d8e1eb;
  box-shadow: none;
}

.admin-nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d8e3ed;
  padding: 3px;
  flex-shrink: 0;
}

.admin-nav-drawer .admin-tabs {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-nav-drawer .admin-tab {
  position: relative;
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #26364a;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-nav-drawer .admin-tab:hover,
.admin-nav-drawer .admin-tab:focus-visible {
  background: #f6fbfc;
  border-color: #9ccad7;
  color: var(--admin-blue, #073b66);
  box-shadow: 0 8px 18px rgba(15, 67, 87, 0.11);
  transform: translateX(2px);
  outline: none;
}

.admin-nav-drawer .admin-tab.active {
  background: linear-gradient(90deg, #edf8fa 0%, #fff 74%);
  border-color: #82bdcc;
  color: var(--admin-blue, #073b66);
  box-shadow: inset 4px 0 0 var(--admin-cyan, #0e7490), 0 10px 22px rgba(14, 116, 144, 0.14);
}

.admin-nav-drawer .admin-tab--external {
  margin-top: auto;
}

.admin-nav-drawer .admin-tab--external::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  justify-self: end;
}

.admin-tab-mark,
.admin-home-action-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #406175;
  flex-shrink: 0;
}

.admin-tab-mark {
  width: 32px;
  height: 32px;
}

.admin-nav-drawer .admin-tab.active .admin-tab-mark,
.admin-home-action:hover .admin-home-action-mark,
.admin-home-action:focus-visible .admin-home-action-mark {
  border-color: #9ccad7;
  background: #f8fcfd;
  color: var(--admin-cyan, #0e7490);
}

.admin-nav-drawer .admin-tab-mark--home {
  border-color: #bdd7ea;
  background: #eef7ff;
  color: #2563a4;
}

.admin-nav-drawer .admin-tab-mark--upload {
  border-color: #b9ddca;
  background: #effaf3;
  color: #16834d;
}

.admin-nav-drawer .admin-tab-mark--applicants {
  border-color: #b9d8ee;
  background: #edf8fd;
  color: #0e7490;
}

.admin-nav-drawer .admin-tab-mark--groups {
  border-color: #d0c4f2;
  background: #f5f1ff;
  color: #6d55b8;
}

.admin-nav-drawer .admin-tab-mark--accounts {
  border-color: #c5d2e6;
  background: #f1f5fb;
  color: #29476f;
}

.admin-nav-drawer .admin-tab-mark--reanalyze {
  border-color: #ead19d;
  background: #fff8e8;
  color: #9a6411;
}

.admin-nav-drawer .admin-tab-mark--dashboard {
  border-color: #c5d2e6;
  background: #f1f5fb;
  color: #29476f;
}

.admin-tab-mark::before,
.admin-tab-mark::after,
.admin-home-action-mark::before,
.admin-home-action-mark::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.admin-tab-mark--home::before,
.admin-home-action-mark--home::before {
  width: 14px;
  height: 11px;
  bottom: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.admin-tab-mark--home::after,
.admin-home-action-mark--home::after {
  width: 13px;
  height: 13px;
  top: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-tab-mark--upload::before,
.admin-home-action-mark--upload::before {
  width: 14px;
  height: 14px;
  bottom: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.admin-tab-mark--upload::after,
.admin-home-action-mark--upload::after {
  top: 7px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-tab-mark--applicants::before,
.admin-home-action-mark--applicants::before {
  width: 16px;
  height: 11px;
  bottom: 7px;
  border: 2px solid currentColor;
  border-radius: 6px 6px 3px 3px;
}

.admin-tab-mark--applicants::after,
.admin-home-action-mark--applicants::after {
  top: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.admin-tab-mark--groups::before,
.admin-home-action-mark--groups::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.admin-tab-mark--groups::after,
.admin-home-action-mark--groups::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.admin-tab-mark--accounts::before,
.admin-home-action-mark--accounts::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.admin-tab-mark--accounts::after,
.admin-home-action-mark--accounts::after {
  width: 6px;
  height: 6px;
  left: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.admin-tab-mark--reanalyze::before,
.admin-home-action-mark--reanalyze::before {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.admin-tab-mark--reanalyze::after,
.admin-home-action-mark--reanalyze::after {
  right: 7px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-nav-drawer .admin-tab-mark--home::before,
.admin-nav-drawer .admin-tab-mark--upload::before,
.admin-nav-drawer .admin-tab-mark--applicants::before,
.admin-nav-drawer .admin-tab-mark--groups::before,
.admin-nav-drawer .admin-tab-mark--accounts::before,
.admin-nav-drawer .admin-tab-mark--reanalyze::before,
.admin-nav-drawer .admin-tab-mark--dashboard::before {
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  transform: translate(-50%, -50%);
  -webkit-mask: var(--admin-nav-mark) center / contain no-repeat;
  mask: var(--admin-nav-mark) center / contain no-repeat;
}

.admin-nav-drawer .admin-tab-mark--home::after,
.admin-nav-drawer .admin-tab-mark--upload::after,
.admin-nav-drawer .admin-tab-mark--applicants::after,
.admin-nav-drawer .admin-tab-mark--groups::after,
.admin-nav-drawer .admin-tab-mark--accounts::after,
.admin-nav-drawer .admin-tab-mark--reanalyze::after,
.admin-nav-drawer .admin-tab-mark--dashboard::after {
  display: none;
}

.admin-nav-drawer .admin-tab-mark--home {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5'/%3E%3Cpath d='M6 9.5V20h12V9.5'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--upload {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M5 14v5h14v-5'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--applicants {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3Cpath d='M3 21a6 6 0 0 1 12 0'/%3E%3Cpath d='M17 8h4'/%3E%3Cpath d='M17 13h4'/%3E%3Cpath d='M17 18h4'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--groups {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.5'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1.5'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1.5'/%3E%3Cpath d='M14 17h6'/%3E%3Cpath d='M17 14v6'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--accounts {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M8 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3Cpath d='M5.8 16a3.4 3.4 0 0 1 4.4 0'/%3E%3Cpath d='M13 10h5'/%3E%3Cpath d='M13 14h4'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--reanalyze {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 4v6h-6'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-mark--dashboard {
  --admin-nav-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}

.admin-nav-drawer .admin-tab-title {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-nav-drawer .admin-tab-desc {
  display: none;
}

.admin-tab-meta {
  min-width: 26px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef2f6;
  color: #37475c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.admin-nav-drawer .admin-tab.active .admin-tab-meta {
  background: #d6edf3;
  color: var(--admin-cyan, #0e7490);
}

.admin-panel-home {
  width: min(1120px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 0;
}

.admin-home-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-home-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.admin-home-kicker {
  display: block;
  margin-bottom: 10px;
  color: #11b981;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-home-hero h2 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.24;
}

.admin-home-hero p {
  max-width: 680px;
  margin: 12px auto 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-home-feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-home-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: clamp(310px, 32vh, 360px);
  margin: 0;
  padding: 24px;
  border: 1px solid #e4eaf1;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-home-feature-card:hover,
.admin-home-feature-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 48, 135, 0.22);
  background: rgba(0, 48, 135, 0.045);
  box-shadow: 0 18px 34px rgba(0, 48, 135, 0.12);
  outline: none;
}

.admin-home-feature-visual {
  position: relative;
  display: block;
  height: clamp(124px, 14vh, 152px);
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5eaf0;
}

.admin-home-feature-visual::before,
.admin-home-feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.admin-home-feature-visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.46));
}

.admin-home-feature-visual--upload {
  background:
    linear-gradient(135deg, #e9f7f1 0%, #f8fbff 46%, #d6efe7 100%);
}

.admin-home-feature-visual--upload::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px) 0 0 / 32px 32px;
}

.feature-sheet {
  position: absolute;
  width: 96px;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(20, 40, 70, 0.12);
  z-index: 1;
}

.feature-sheet::before,
.feature-sheet::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 8px;
  border-radius: 999px;
  background: #d9e6ee;
}

.feature-sheet::before {
  top: 18px;
}

.feature-sheet::after {
  top: 32px;
  width: 48px;
}

.feature-sheet-a {
  left: 32px;
  top: 28px;
  transform: rotate(-7deg);
}

.feature-sheet-b {
  right: 32px;
  top: 36px;
  transform: rotate(6deg);
}

.feature-upload-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #11b981;
  box-shadow: 0 16px 28px rgba(17, 185, 129, 0.24);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.feature-upload-arrow::before,
.feature-upload-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.feature-upload-arrow::before {
  top: 12px;
  width: 4px;
  height: 17px;
  border-radius: 2px;
}

.feature-upload-arrow::after {
  top: 12px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.admin-home-feature-visual--review {
  background:
    radial-gradient(circle at 74% 36%, rgba(78, 70, 229, 0.16), transparent 34%),
    linear-gradient(135deg, #edf1ff 0%, #fbfcff 46%, #e8f8ff 100%);
}

.feature-chart {
  position: absolute;
  bottom: 20px;
  width: 30px;
  border-radius: 12px 12px 4px 4px;
  background: #4f46e5;
  z-index: 1;
}

.feature-chart-a {
  left: 42px;
  height: 42px;
  opacity: 0.74;
}

.feature-chart-b {
  left: 84px;
  height: 64px;
  opacity: 0.92;
}

.feature-chart-c {
  left: 126px;
  height: 74px;
}

.feature-chart-ring {
  position: absolute;
  right: 36px;
  top: 25px;
  width: 56px;
  height: 56px;
  border: 10px solid #11b981;
  border-right-color: #dbeafe;
  border-radius: 50%;
  transform: rotate(-35deg);
  z-index: 1;
}

.admin-home-feature-visual--operation {
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.14), transparent 28%),
    linear-gradient(135deg, #f5efff 0%, #fbfcff 48%, #f1fbf7 100%);
}

.feature-group {
  position: absolute;
  width: 100px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(32, 42, 70, 0.1);
  z-index: 1;
}

.feature-group::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
}

.feature-group::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 14px;
  top: 16px;
  height: 8px;
  border-radius: 999px;
  background: #d9e2ec;
}

.feature-group-a {
  left: 32px;
  top: 22px;
}

.feature-group-b {
  right: 32px;
  top: 44px;
}

.feature-group-c {
  left: 72px;
  bottom: 16px;
}

.feature-flow {
  position: absolute;
  left: 56px;
  right: 58px;
  top: 55px;
  height: 30px;
  border: 2px solid rgba(168, 85, 247, 0.28);
  border-left: 0;
  border-radius: 0 24px 24px 0;
}

.admin-home-feature-visual--accounts {
  background:
    radial-gradient(circle at 72% 30%, rgba(7, 59, 102, 0.14), transparent 30%),
    linear-gradient(135deg, #eef6fb 0%, #fbfcff 48%, #eaf7f1 100%);
}

.feature-account-card {
  position: absolute;
  width: 112px;
  height: 66px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.11);
  z-index: 1;
}

.feature-account-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #073b66;
}

.feature-account-card::after {
  content: "";
  position: absolute;
  left: 50px;
  right: 16px;
  top: 20px;
  height: 8px;
  border-radius: 999px;
  background: #d9e3ec;
  box-shadow: 0 15px 0 #edf2f7;
}

.feature-account-card-a {
  left: 42px;
  top: 26px;
  transform: rotate(-5deg);
}

.feature-account-card-b {
  right: 38px;
  top: 34px;
  transform: rotate(5deg);
}

.feature-account-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #073b66;
  box-shadow: 0 18px 28px rgba(7, 59, 102, 0.25);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.feature-account-badge::before,
.feature-account-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.feature-account-badge::before {
  top: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.feature-account-badge::after {
  bottom: 10px;
  width: 24px;
  height: 11px;
  border-radius: 13px 13px 5px 5px;
}

.admin-home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
}

.admin-home-feature-icon .admin-home-action-mark {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
}

.admin-home-feature-icon .admin-home-action-mark::before {
  inset: 50% auto auto 50%;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  transform: translate(-50%, -50%);
  -webkit-mask: var(--admin-home-mark) center / contain no-repeat;
  mask: var(--admin-home-mark) center / contain no-repeat;
}

.admin-home-feature-icon .admin-home-action-mark::after {
  display: none;
}

.admin-home-feature-icon .admin-home-action-mark--upload {
  --admin-home-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M5 14v5h14v-5'/%3E%3C/svg%3E");
}

.admin-home-feature-icon .admin-home-action-mark--applicants {
  --admin-home-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3Cpath d='M3 21a6 6 0 0 1 12 0'/%3E%3Cpath d='M17 8h4'/%3E%3Cpath d='M17 13h4'/%3E%3Cpath d='M17 18h4'/%3E%3C/svg%3E");
}

.admin-home-feature-icon .admin-home-action-mark--groups {
  --admin-home-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.5'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1.5'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1.5'/%3E%3Cpath d='M14 17h6'/%3E%3Cpath d='M17 14v6'/%3E%3C/svg%3E");
}

.admin-home-feature-icon .admin-home-action-mark--accounts {
  --admin-home-mark: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M8 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3Cpath d='M5.8 16a3.4 3.4 0 0 1 4.4 0'/%3E%3Cpath d='M13 10h5'/%3E%3Cpath d='M13 14h4'/%3E%3C/svg%3E");
}

.admin-home-feature-icon--green {
  background: #11b981;
  box-shadow: 0 18px 28px rgba(17, 185, 129, 0.25);
}

.admin-home-feature-icon--blue {
  background: #4f46e5;
  box-shadow: 0 18px 28px rgba(79, 70, 229, 0.25);
}

.admin-home-feature-icon--violet {
  background: #a855f7;
  box-shadow: 0 18px 28px rgba(168, 85, 247, 0.24);
}

.admin-home-feature-icon--navy {
  background: #073b66;
  box-shadow: 0 18px 28px rgba(7, 59, 102, 0.24);
}

.admin-home-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-home-feature-copy strong {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.28;
}

.admin-home-feature-copy span {
  min-height: 0;
  color: #667085;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .admin-home-feature-grid {
    gap: 20px;
  }

  .admin-home-feature-card {
    min-height: clamp(300px, 31vh, 340px);
    padding: 22px;
  }
}

@media (max-width: 980px) {
  .admin-panel-home {
    padding-top: 22px;
  }

  .admin-home-feature-grid {
    grid-template-columns: 1fr;
  }

  .admin-home-feature-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .admin-page {
    --admin-sidebar-width: 188px;
  }

  .admin-nav-drawer {
    width: var(--admin-sidebar-width);
    padding: 20px 8px 14px;
  }

  .admin-home-hero h2 {
    font-size: 27px;
  }

  .admin-home-feature-card {
    padding: 18px;
    border-radius: 14px;
  }

  .admin-home-feature-visual {
    height: 148px;
  }

  .admin-home-feature-copy strong {
    font-size: 20px;
  }
}
