@charset "UTF-8";

/* ======================================== *
 * 성적 입력 페이지 전용 스타일
 * ======================================== */

/* ── 성적 요약 바 ── */
.grade-summary-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 2.4rem;
  background: #f0f6ff;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.grade-summary-bar .summary-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.grade-summary-bar .summary-label {
  font-size: 1.4rem;
  color: #505050;
}
.grade-summary-bar .summary-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #006fff;
}

/* ── Tabs (학년 탭) ── */
.grade-tabs {
  display: flex;
  gap: 0.6rem;
  padding: 1.2rem 1.6rem;
  background: #fff;
  border-radius: 1.2rem 1.2rem 0 0;
  border: 1px solid #ebebeb;
  border-bottom: none;
}
.grade-tab-btn {
  padding: 0.8rem 2rem;
  border: 1px solid #dadada;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  color: #505050;
  cursor: pointer;
  border-radius: 20rem;
  transition: all 0.2s;
  font-family: inherit;
}
.grade-tab-btn:hover { color: #202020; border-color: #202020; }
.grade-tab-btn.active { background: #202020; color: #fff; border-color: #202020; }

/* ── Semester sub-tabs ── */
.sem-tabs {
  display: flex;
  gap: 0.4rem;
  background: #f0f1f5;
  border-radius: 20rem;
  padding: 0.3rem;
}
.sem-btn {
  padding: 0.5rem 1.6rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  font-weight: 600;
  color: #505050;
  cursor: pointer;
  border-radius: 20rem;
  transition: all 0.2s;
  font-family: inherit;
}
.sem-btn:hover { color: #006fff; }
.sem-btn.active { background: #202020; color: #fff; }

/* ── Grade Panel ── */
.grade-panel {
  display: none;
  background: #fff;
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 2rem;
  border: 1px solid #ebebeb;
  border-top: none;
}
.grade-panel.active { display: block; }

/* ── Toolbar ── */
.gi-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.gi-toolbar h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #202020;
}

/* ── Legend ── */
.gi-legend {
  font-size: 1.2rem;
  color: #808080;
  padding: 0.6rem 0.4rem;
  text-align: right;
  position: relative;
}
.gi-legend-info {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0;
  vertical-align: baseline;
  transition: color 0.15s;
}
.gi-legend-info:hover { color: #b91c1c; }
.gi-legend-popover {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fffde7;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 1.6rem;
  z-index: 100;
  width: 36rem;
  max-width: calc(100vw - 2rem);
  text-align: left;
  line-height: 1.8;
  font-size: 1.3rem;
  color: #404040;
}
.gi-legend-popover.show { display: block; }
.gi-legend-popover-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #202020;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
}
.gi-legend-popover-section {
  margin-bottom: 0.8rem;
}
.gi-legend-popover-note {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f0f0;
  color: #6b7280;
  font-size: 1.2rem;
}

/* ── Table ── */
.gi-table-wrapper {
  overflow-x: auto;
  border: 1px solid #ebebeb;
  border-radius: 0.6rem;
}
.gi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  min-width: 90rem;
}
.gi-table thead th {
  background: #f8f9fb;
  padding: 1.2rem 0.8rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: #505050;
  border-bottom: 1px solid #dadada;
  border-right: 1px solid #dadada;
  white-space: nowrap;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
.gi-table thead tr:first-child th:last-child { border-right: none; }
.gi-table thead tr:last-child th {
  border-bottom: 2px solid #101010;
}
.gi-table thead tr:first-child th.sem1-header {
  background: #f0f6ff;
  color: #006fff;
}
.gi-table thead tr:first-child th.sem2-header {
  background: #f0fdf4;
  color: #16a34a;
}
.gi-table thead tr:first-child th.info-header {
  background: #f8f9fb;
}
.gi-table .s1h { background: #f0f6ff !important; color: #1e40af !important; }
.gi-table .s2h { background: #f0fdf4 !important; color: #166534 !important; }
.gi-table .sem1-col { background: #fafcff; }
.gi-table .sem2-col { background: #fafff9; }

.gi-table tbody td {
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.gi-table tbody td:last-child { border-right: none; }
.gi-table tbody tr:hover td { background: #f8f9fb; }
.gi-table tbody tr:hover .sem1-col { background: #f0f7ff; }
.gi-table tbody tr:hover .sem2-col { background: #f0fff4; }

.gi-table tbody td input:not([type="checkbox"]),
.gi-table tbody td select {
  width: 100%;
  padding: 0.6rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  text-align: center;
  background: transparent;
  transition: all 0.15s;
  font-family: inherit;
  height: 3.2rem;
}
.gi-table tbody td input:not([type="checkbox"]):hover,
.gi-table tbody td select:hover {
  border-color: #dadada;
  background: #fff;
}
.gi-table tbody td input:not([type="checkbox"]):focus,
.gi-table tbody td select:focus {
  outline: none;
  border-color: #006fff;
  background: #fff;
  box-shadow: 0 0 0 0.2rem #e8f1ff;
}
.gi-table tbody td input.text-input { text-align: left; min-width: 12rem; }
.gi-table tbody td input.num-input { min-width: 4rem; max-width: 5.5rem; }
.gi-table tbody td input.dist-input { min-width: 3.5rem; max-width: 5rem; }
.gi-table tbody td select { min-width: 4rem; cursor: pointer; font-size: 1.2rem; }
.gi-table tbody td select.type-select { min-width: 8rem; }
.gi-table tbody td select.cat-select { min-width: 12rem; }

/* ── 과목 콤보박스 ── */
.subj-wrap { position: relative; }
.subj-wrap input.text-input { padding-right: 2rem; }
.subj-arrow {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #999;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
}
.subj-dropdown {
  display: none;
  position: fixed;
  z-index: 999;
  background: #fff;
  border: 1px solid #006fff;
  border-radius: 0.6rem;
  max-height: 18rem;
  overflow-y: auto;
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.12);
}
.subj-dropdown.open { display: block; }
.subj-opt {
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subj-opt:hover,
.subj-opt.highlight {
  background: #e8f1ff;
  color: #006fff;
}

.row-num {
  font-size: 1.2rem;
  color: #999;
  font-weight: 600;
  width: 3rem;
}
/* ── 체크박스 ── */
.chk-all, .chk-row {
  width: 1.3rem;
  height: 1.3rem;
  cursor: pointer;
  accent-color: #dc2626;
  margin: 0;
}
.gi-table thead th.chk-header {
  background: #fefce8 !important;
}
.gi-table tbody td.chk-cell {
  background: #fefce8;
  padding: 0.8rem;
}

/* ── 선택 삭제 버튼 ── */
.btn-del-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 4rem;
  padding: 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #dc2626;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-del-selected:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #dc2626;
}
.btn-del-selected:disabled {
  color: #cbd5e1;
  border-color: #e5e7eb;
  cursor: default;
}

/* ── 성적 입력 안내 드롭다운 ── */
.gi-guide-dropdown {
  position: relative;
  display: inline-block;
}
.gi-guide-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 20rem;
  overflow: hidden;
}
.gi-guide-dropdown.open .gi-guide-menu { display: block; }
.gi-guide-menu button,
.gi-guide-menu label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.4rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #303030;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.gi-guide-menu button:hover,
.gi-guide-menu label:hover {
  background: #f0f6ff;
  color: #006fff;
}
.gi-guide-menu button + button,
.gi-guide-menu label + button,
.gi-guide-menu button + label,
.gi-guide-menu label + label {
  border-top: 1px solid #f0f0f0;
}

/* ── 어디가 호환 버튼 ── */
.btn-compat {
  color: #006fff !important;
  border-color: #006fff !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-compat:hover {
  background: #006fff !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 111, 255, 0.25);
}

/* ── Excel 버튼 ── */
.btn-excel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 4rem;
  padding: 0 1.2rem;
  border: 1px solid #1d6f42;
  background: #fff;
  color: #1d6f42;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-excel i {
  font-size: 1.5rem;
}
.btn-excel:hover {
  background: #1d6f42;
  color: #fff;
}
.btn-excel.btn-neis {
  border-color: #2563eb;
  color: #2563eb;
}
.btn-excel.btn-neis:hover {
  background: #2563eb;
  color: #fff;
}
.btn-excel.btn-pdf {
  border-color: #dc2626;
  color: #dc2626;
}
.btn-excel.btn-pdf:hover {
  background: #dc2626;
  color: #fff;
}
.btn-excel.btn-guide {
  border-color: #6b7280;
  color: #6b7280;
}
.btn-excel.btn-guide:hover {
  background: #6b7280;
  color: #fff;
}

/* ── Top toolbar ── */
.gi-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.gi-top-toolbar .toolbar-left {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.gi-top-toolbar .toolbar-right {
  display: flex;
  gap: 0.6rem;
}
.gi-top-toolbar .toolbar-right .btn.gray.light { border: 1px solid #d1d5db; }
.gi-top-toolbar .toolbar-right .btn.danger { border: 1px solid #dc2626; }

/* ── Toast ── */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1.2rem 2rem;
  border-radius: 0.6rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.12);
}
.toast.show { transform: translateX(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

/* ── Badge ── */
.badge-achieve {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.badge-a { background: #dcfce7; color: #166534; }
.badge-b { background: #dbeafe; color: #1e40af; }
.badge-c { background: #fef9c3; color: #854d0e; }
.badge-d { background: #fed7aa; color: #9a3412; }
.badge-e { background: #fecaca; color: #991b1b; }

/* ── 하단 네비게이션 ── */
.gi-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ebebeb;
}
.gi-bottom-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

@media (max-width: 800px) {
  .grade-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
  }
  .gi-top-toolbar {
    flex-direction: row;
    align-items: center;
  }
  .gi-top-toolbar .toolbar-left,
  .gi-top-toolbar .toolbar-right {
    flex-wrap: wrap;
  }
  .gi-table { min-width: 76rem; }
  .grade-panel { padding: 1.4rem; }
  .grade-tabs { padding: 1rem; gap: 0.4rem; }
  .grade-tab-btn { padding: 0.7rem 1.4rem; font-size: 1.3rem; }
  .btn-del-selected { padding: 0.6rem 1rem; font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .gi-table { min-width: 64rem; font-size: 1.3rem; }
  .gi-table tbody td input:not([type="checkbox"]),
  .gi-table tbody td select { font-size: 1.2rem; height: 3rem; padding: 0.5rem 0.3rem; }
  .gi-table tbody td input.text-input { min-width: 9rem; }
  .gi-table tbody td select.cat-select { min-width: 9rem; }
  .gi-table tbody td select.type-select { min-width: 6rem; }
  .gi-table thead th { padding: 1rem 0.5rem; font-size: 1.2rem; }
  .grade-summary-bar .summary-label { font-size: 1.3rem; }
  .grade-summary-bar .summary-value { font-size: 1.4rem; }
  .grade-tabs { padding: 0.8rem; flex-wrap: wrap; }
  .grade-tab-btn { padding: 0.6rem 1.2rem; font-size: 1.2rem; }
  .sem-btn { padding: 0.6rem 1.4rem; font-size: 1.2rem; }
  .btn-excel { height: 3.6rem; font-size: 1.2rem; padding: 0 1rem; }
  .btn-excel i { font-size: 1.4rem; }
  .btn-excel.btn-guide { height: 3.6rem; }
  .btn-excel.btn-guide i { font-size: 1.4rem; }
  .btn-del-selected { padding: 0.5rem 0.8rem; font-size: 1.1rem; }
  .gi-guide-menu { min-width: auto; max-width: calc(100vw - 2rem); left: 0; right: auto; }
  .gi-guide-dropdown:last-of-type .gi-guide-menu { left: auto; right: 0; }
  .gi-legend-popover { width: auto; right: 0; left: 0; font-size: 1.2rem; }
  #uploadStatus { display: none; }
  #pdfGuideModal { align-items: center !important; padding: 8px !important; }
  #pdfGuideModal .modal-content { max-width: 92% !important; max-height: 70vh !important; min-height: auto !important; margin: 0 !important; border-radius: 6px !important; }
  #pdfGuideModal .modal-body { padding: 1rem !important; }
  #pdfGuideModal .modal-body > div:first-child { padding: 1rem 1.2rem !important; font-size: 1.1rem !important; line-height: 1.6 !important; margin-bottom: 1rem !important; }
  #pdfGuideModal .modal-body > div:first-child > p:first-child { font-size: 1.2rem !important; }
  #pdfGuideModal .modal-body ol { font-size: 1.1rem !important; line-height: 1.8 !important; }
  #pdfGuideModal .modal-body img { max-width: 240px !important; margin: 0 auto !important; }
  .grade-panel { padding: 1rem; }
  .gi-bottom-nav { margin-top: 2rem; padding-top: 1.4rem; }
}

@media (max-width: 400px) {
  .gi-table { min-width: 56rem; font-size: 1.2rem; }
  .gi-table tbody td input.text-input { min-width: 7rem; }
  .gi-table tbody td select.cat-select { min-width: 7rem; }
  .gi-table tbody td select.type-select { min-width: 5rem; }
  .gi-table tbody td input.num-input { min-width: 3.5rem; max-width: 4.5rem; }
  .gi-table tbody td input.dist-input { min-width: 3rem; max-width: 4rem; }
  .grade-summary-bar { gap: 0.8rem; padding: 1rem 1.2rem; }
  .txt-full { display: none; }
  .btn-excel { padding: 0 0.8rem; }
  .btn-excel i { display: none; }
  .btn-compat { font-size: 0 !important; padding: 0 1rem !important; height: 3.6rem; }
  .btn-compat i { font-size: 1.6rem; }
  .gi-top-toolbar .toolbar-left { gap: 0.4rem; }
  .gi-top-toolbar .toolbar-right {
    width: 100%; justify-content: center;
    border: 1px solid #d1d5db; border-radius: 0.6rem; padding: 0.6rem 1.2rem;
  }
  .gi-top-toolbar .toolbar-right .btn.small { height: 3.6rem; padding: 0 0.8rem; font-size: 1.2rem; }
  .gi-top-toolbar .toolbar-right .btn.gray.light { border: 1px solid #d1d5db; }
  .gi-top-toolbar .toolbar-right .btn.danger.small { border: 1px solid #dc2626; }
  .gi-top-toolbar .toolbar-right .btn.small [class^="ri-"] { font-size: 1.4rem; }
  .btn-del-selected { font-size: 0; padding: 0 1rem; height: 3.6rem; }
  .btn-del-selected i { font-size: 1.6rem; }
}

/* ── 관심대학 탭 ── */
.fav-list { display: flex; flex-direction: column; gap: 1.6rem; }
.fav-empty { text-align: center; padding: 6rem 2rem; color: #9ca3af; }
.fav-empty i { font-size: 4rem; display: block; margin-bottom: 1.2rem; color: #d1d5db; }
.fav-empty p { font-size: 1.4rem; line-height: 1.8; }
.fav-card { border: 1px solid #e5e7eb; border-radius: 1.2rem; overflow: hidden; background: #fff; }
.fav-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 2rem; background: #f9fafb; border-bottom: 1px solid #e5e7eb; cursor: pointer; transition: background 0.2s; }
.fav-card-header:hover { background: #f0f1f5; }
.fav-card-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.fav-arrow { font-size: 2rem; color: #9ca3af; transition: transform 0.2s; }
.fav-open .fav-arrow { transform: rotate(180deg); }
.fav-open .fav-card-header { border-bottom: 1px solid #e5e7eb; }
.fav-card:not(.fav-open) .fav-card-header { border-bottom: none; }
.fav-card-info { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fav-univ { font-size: 1.5rem; font-weight: 700; color: #202020; }
.fav-dept { font-size: 1.3rem; color: #4b5563; }
.fav-type { font-size: 1.2rem; color: #006fff; background: #f0f4ff; padding: 0.2rem 0.8rem; border-radius: 0.4rem; font-weight: 500; }
.fav-type-sub { color: #b45309; background: #fffbf0; }
.fav-type-more { color: #6b7280; background: #f3f4f6; }
.fav-del-btn { display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; background: none; border: 1px solid #d1d5db; border-radius: 0.6rem; cursor: pointer; color: #9ca3af; transition: all 0.2s; flex-shrink: 0; }
.fav-del-btn:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.fav-card-body { padding: 1.6rem 2rem; }
.fav-no-data { text-align: center; color: #9ca3af; font-size: 1.3rem; padding: 2rem; }
.fav-card-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.fav-card-table th, .fav-card-table td { padding: 0.8rem 1rem; text-align: center; border-bottom: 1px solid #f0f1f5; }
.fav-card-table thead th { background: #f9fafb; font-weight: 600; color: #374151; font-size: 1.2rem; }
.fav-card-table tbody th { text-align: left; font-weight: 500; color: #6b7280; white-space: nowrap; }
.fav-card-table tbody td { color: #202020; font-weight: 600; }
/* ── 섹션 구분 헤더 ── */
.fav-section-header { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 700; color: #333; padding: 1.2rem 0.4rem 0.8rem; margin-top: 1.2rem; border-bottom: 2px solid #e5e7eb; }
.fav-section-header:first-child { margin-top: 0; }
.fav-section-header i { font-size: 1.6rem; color: #006fff; }
.fav-section-count { font-size: 1.2rem; font-weight: 500; color: #888; margin-left: 0.2rem; }

/* ── 관심비교 그룹 카드 ── */
.fav-compare-card { border: 2px solid #b0c8e0; border-radius: 1.2rem; overflow: hidden; background: #fff; margin-bottom: 0.8rem; }
.fav-compare-header { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 2rem; background: #f0f6ff; border-bottom: 2px solid #b0c8e0; cursor: pointer; transition: background 0.2s; }
.fav-compare-header:hover { background: #e0edff; }
.fav-compare-card:not(.fav-open) .fav-compare-header { border-bottom: none; }
.fav-compare-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.2rem; font-weight: 600; color: #fff; background: #006fff; padding: 0.3rem 1rem; border-radius: 0.4rem; }
.fav-compare-label { font-size: 1.4rem; font-weight: 700; color: #202020; }
.fav-compare-body { padding: 0; }
.fav-compare-body .con-table { margin: 0; }

@media (max-width: 640px) {
  .fav-card-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem; position: relative; }
  .fav-card-header .fav-card-info { padding-right: 4.5rem; }
  .fav-card-header .fav-del-btn { position: absolute; top: 1.2rem; right: 1.4rem; }
  .fav-card-body { padding: 1.2rem; overflow-x: auto; }
  .fav-card-table { min-width: 40rem; }
  .fav-compare-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem; position: relative; }
  .fav-compare-header .fav-card-info { padding-right: 4.5rem; }
  .fav-compare-header .fav-del-btn { position: absolute; top: 1.2rem; right: 1.4rem; }
  .fav-compare-body { overflow-x: auto; }
}

/* ── 계정 관리 (접이식) ── */
.account-manage-area { margin-top: 6rem; padding-top: 2rem; text-align: right; }
.account-manage-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; color: #6b7280; text-decoration: none; cursor: pointer; }
.account-manage-toggle:hover { color: #374151; }
.account-manage-arrow { transition: transform 0.2s; font-size: 1.6rem; }
.account-manage-panel { margin-top: 1.4rem; text-align: left; background: #fafafa; border-radius: 0.8rem; padding: 2rem; }
.account-manage-list { list-style: none; margin: 0; padding: 0; }
.account-manage-list li { margin-bottom: 1rem; }
.account-manage-list li:last-child { margin-bottom: 0; }
.account-manage-list a { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; color: #6b7280; text-decoration: none; }
.account-manage-list a:hover { color: #374151; }
.account-manage-etc { margin-top: 1.6rem; font-size: 1.4rem; color: #6b7280; }
.account-manage-etc-panel { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed #e5e7eb; }
.account-delete-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; color: #6b7280; text-decoration: none; }
.account-delete-link:hover { color: #dc2626; }

@media (max-width: 640px) {
  .account-manage-area { margin-top: 4rem; padding-top: 1.4rem; }
  .account-manage-panel { padding: 1.4rem; }
}

/* ── 회원탈퇴 확인 모달 ── */
.delete-account-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; align-items: center; justify-content: center; }
.delete-account-overlay.show { display: flex; }
.delete-account-modal { background: #fff; border-radius: 1.6rem; padding: 3rem; max-width: 42rem; width: 90%; box-shadow: 0 1rem 4rem rgba(0,0,0,0.2); }
.delete-account-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.6rem; }
.delete-account-header i { font-size: 2.4rem; color: #dc2626; }
.delete-account-header h3 { font-size: 1.8rem; font-weight: 700; color: #202020; margin: 0; }
.delete-account-desc { font-size: 1.4rem; color: #dc2626; margin-bottom: 1.2rem; font-weight: 500; }
.delete-account-guide { font-size: 1.4rem; color: #4b5563; margin-bottom: 1.2rem; }
.delete-account-guide strong { color: #dc2626; }
.delete-account-input { width: 100%; padding: 1rem 1.4rem; font-size: 1.5rem; border: 2px solid #d1d5db; border-radius: 0.8rem; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.delete-account-input:focus { border-color: #dc2626; }
.delete-account-buttons { display: flex; gap: 1rem; margin-top: 2rem; justify-content: flex-end; }
.delete-account-buttons .btn { padding: 0.8rem 2rem; font-size: 1.4rem; border-radius: 0.8rem; cursor: pointer; border: none; font-weight: 600; }
.delete-account-buttons .btn.danger { background: #dc2626; color: #fff; }
.delete-account-buttons .btn.danger:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.delete-account-buttons .btn.danger:not(:disabled):hover { background: #b91c1c; }

/* ── 모바일 테이블 가로스크롤 안내 오버레이 ── */
.table-scroll-overlay { display: none; }
@media (max-width: 600px) {
  .table-scroll-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 58, 95, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; border-radius: 0.4rem; cursor: pointer;
  }
  .table-scroll-overlay-inner {
    text-align: center; color: #fff; padding: 20px;
  }
}
