/* === 사이트 게이트 오버레이 === */

.site-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--night, #0B1026);
  background-image: url('../images/stars-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

/* 카드 */
.site-gate-card {
  position: relative;
  background: linear-gradient(165deg, var(--night-card-95) 0%, rgba(11, 16, 38, 0.98) 100%);
  border: 1px solid rgba(244, 197, 66, 0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(244, 197, 66, 0.05),
    inset 0 1px 0 rgba(244, 197, 66, 0.08);
  animation: gate-card-in 0.6s ease-out;
}

@keyframes gate-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 큰 별 아이콘 */
.site-gate-icon {
  font-size: 2rem;
  color: var(--gold, #f4c542);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(244, 197, 66, 0.6);
  animation: gate-icon-glow 4s ease-in-out infinite;
}

@keyframes gate-icon-glow {
  0%, 100% { text-shadow: 0 0 15px rgba(244, 197, 66, 0.4); }
  50% { text-shadow: 0 0 30px rgba(244, 197, 66, 0.8), 0 0 60px rgba(244, 197, 66, 0.2); }
}

.site-gate-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold, #f4c542);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.logo-eye-gate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 1px;
  position: relative;
  top: -1px;
}

.eye-ball-gate {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 50% 48%, #fff 60%, #f0ece4 100%);
  border-radius: 50%;
  border: 2.5px solid var(--gold, #f4c542);
  position: relative;
  box-shadow: 0 0 8px rgba(244, 197, 66, 0.35), inset 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.eye-pupil-gate {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 40% 38%, #2c1a0e, #050200);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: eyeLook 4s ease-in-out infinite;
}

/* 메인 하이라이트 */
.eye-pupil-gate::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  top: 1.5px;
  left: 2px;
  box-shadow: 0 0 3px rgba(255,255,255,0.8);
}

/* 보조 하이라이트 */
.eye-pupil-gate::after {
  content: '';
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  bottom: 2.5px;
  right: 1.5px;
}

.logo-stars-gate {
  display: inline-flex;
  gap: 0;
  margin-left: 3px;
  font-size: 0.5em;
  position: relative;
  top: -3px;
}

.site-gate-subtitle {
  color: var(--sand-muted, #9a978e);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.site-gate-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #f4c542), transparent);
  margin: 1.25rem auto;
  opacity: 0.5;
}

.site-gate-desc {
  color: var(--sand, #d4cfc4);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.site-gate-input {
  display: block;
  width: 100%;
  background: rgba(11, 16, 38, 0.6);
  border: 1px solid var(--border, #253052);
  border-radius: var(--radius-sm, 10px);
  color: var(--sand, #d4cfc4);
  font-family: var(--font-main, sans-serif);
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  text-align: center;
  letter-spacing: 0.2em;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.site-gate-input:focus {
  outline: none;
  border-color: var(--gold, #f4c542);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.12);
}

.site-gate-input::placeholder {
  color: rgba(169, 160, 140, 0.4);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}

.site-gate-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--gold, #f4c542), var(--gold-dark, #D4A82E));
  color: var(--night, #0a0e1a);
  border: none;
  border-radius: var(--radius-sm, 10px);
  font-family: var(--font-main, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
  min-height: 44px;
  box-shadow: 0 2px 15px rgba(244, 197, 66, 0.25);
  letter-spacing: 0.04em;
}

.site-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(244, 197, 66, 0.35);
}

.site-gate-btn:active {
  transform: translateY(0);
}

/* 틀렸을 때 흔들림 */
@keyframes site-gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.site-gate-shake {
  animation: site-gate-shake 0.4s ease;
  border-color: var(--rose, #c85050) !important;
  box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.15) !important;
}

/* 게이트 모바일 대응 */
@media (max-width: 480px) {
  .site-gate-overlay {
    overflow-y: auto;
    padding: 1rem 0.75rem;
  }

  .site-gate-card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 16px;
  }

  .site-gate-logo {
    font-size: 1.5rem;
  }

  .site-gate-subtitle {
    font-size: 0.72rem;
  }

  .site-gate-input {
    font-size: 1rem;
    padding: 0.75rem 0.8rem;
  }

  .site-gate-btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* 게이트 가로 모드 대응 */
@media (max-height: 500px) {
  .site-gate-overlay {
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .site-gate-card {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .site-gate-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .site-gate-divider {
    margin: 0.75rem auto;
  }
}

/* === 관리자 비밀번호 탭 스타일 === */

.site-pw-section {
  max-width: 420px;
}

.site-pw-title {
  color: var(--gold-light, #f7d96e);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-pw-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--night-card, #141828);
  border: 1px solid var(--border, #2a2e3a);
  border-radius: var(--radius-sm, 8px);
  padding: 0.65rem 0.9rem;
}

.site-pw-value {
  flex: 1;
  color: var(--sand, #d4cfc4);
  font-size: 1rem;
  font-family: monospace;
  letter-spacing: 0.15em;
}

.site-pw-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-pw-change {
  display: flex;
  gap: 0.5rem;
}

.site-pw-input {
  flex: 1;
  background: var(--night, #0a0e1a);
  border: 1px solid var(--border, #2a2e3a);
  border-radius: var(--radius-sm, 8px);
  color: var(--sand, #d4cfc4);
  font-family: var(--font-main, sans-serif);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  transition: border-color 0.2s;
}

.site-pw-input:focus {
  outline: none;
  border-color: var(--gold, #f4c542);
}

.site-pw-save-btn {
  background: var(--gold, #f4c542);
  color: var(--night, #0a0e1a);
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-main, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.site-pw-save-btn:hover {
  opacity: 0.9;
}

/* 게이트 토글 */
.site-gate-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--night-card, #141828);
  border: 1px solid var(--border, #2a2e3a);
  border-radius: var(--radius-sm, 8px);
  padding: 0.65rem 0.9rem;
}

.site-gate-status {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-gate-toggle-btn {
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-main, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
  white-space: nowrap;
}

.site-gate-toggle-btn.on {
  background: rgba(232, 80, 80, 0.15);
  color: var(--rose, #e85050);
  border: 1px solid rgba(232, 80, 80, 0.3);
}

.site-gate-toggle-btn.on:hover {
  background: rgba(232, 80, 80, 0.25);
}

.site-gate-toggle-btn.off {
  background: rgba(123, 198, 126, 0.15);
  color: var(--sage, #7bc67e);
  border: 1px solid rgba(123, 198, 126, 0.3);
}

.site-gate-toggle-btn.off:hover {
  background: rgba(123, 198, 126, 0.25);
}

/* === 관리자 페이지 === */

.admin-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-header h2 {
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0;
}

.admin-header .admin-badge {
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* 탭 네비게이션 */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--sand-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 44px;
}

.admin-tab:hover {
  color: var(--sand);
}

.admin-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: var(--radius-xs);
}

/* 탭 콘텐츠 */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* 대시보드 요약 카드 */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  text-align: center;
  transition: border-color var(--transition);
}

.admin-card:hover {
  border-color: var(--border-light);
}

.admin-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.admin-card-label {
  font-size: 0.8rem;
  color: var(--sand-muted);
  margin-top: 0.25rem;
}

/* 회원/로그 테이블 */
.admin-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--night-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.admin-table thead {
  background: rgba(244, 197, 66, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-table th {
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  background: rgba(11, 16, 38, 0.97);
}

.admin-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--sand);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: rgba(244, 197, 66, 0.04);
}

/* 사용자 선택 영역 */
.admin-user-select-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-user-select-area label {
  color: var(--sand-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-user-select {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.admin-user-select:hover {
  border-color: var(--border-light);
}

.admin-user-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* 검색 가능 사용자 드롭다운 */
.admin-user-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}
.admin-user-search-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition);
  text-align: left;
  gap: 0.5rem;
}
.admin-user-search-btn:hover { border-color: var(--border-light); }
.admin-user-search-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.admin-user-search-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-search-arrow { font-size: 0.65rem; color: var(--sand-muted); flex-shrink: 0; }

.admin-user-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--night-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  z-index: 120;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.admin-user-search-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--night-deeper);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  outline: none;
}
.admin-user-search-input::placeholder { color: var(--sand-muted); }
.admin-user-search-input:focus { background: var(--night); }

.admin-user-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 260px;
}
.admin-user-search-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--sand);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.admin-user-search-item:hover { background: rgba(240,160,48,0.1); }
.admin-user-search-item.selected { background: rgba(240,160,48,0.15); color: var(--gold-light); }
.admin-user-search-item[style*="display: none"] + .admin-user-search-item { border-top: none; }

/* 로그 섹션 */
.admin-log-section {
  margin-bottom: 1.5rem;
}

.admin-log-section h4 {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-log-section .admin-log-count {
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.admin-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--sand-muted);
  font-size: 0.9rem;
}

/* 로딩 스피너 */
.admin-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--sand-muted);
}

.admin-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: admin-spin 0.7s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

/* 뒤로가기 */
.admin-back {
  background: none;
  border: none;
  color: var(--sand-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.admin-back:hover {
  color: var(--gold);
}

/* 관리 네비 버튼 */
.admin-nav-btn {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: #fff !important;
  border: none;
  font-weight: 600;
}

.admin-nav-btn:hover {
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
}

/* ===== 기록확인 — 활동별 요약 ===== */
.rec-overview {
  margin-bottom: 1.75rem;
}

.rec-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rec-overview-study {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.rec-overview-last {
  color: var(--sand-muted);
  font-size: 0.8rem;
}

/* 활동 3칸 그리드 */
.rec-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rec-activity-card {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  border-top: 3px solid var(--border);
}

.rec-activity-reading { border-top-color: var(--sage); }
.rec-activity-pdf { border-top-color: #6495ed; }
.rec-activity-subject { border-top-color: #ab6fcf; }
.rec-activity-attitude { border-top-color: var(--amber); }
.rec-activity-attitude.rec-attitude-bad { border-top-color: var(--rose); }

.rec-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.rec-activity-icon {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.rec-icon-reading {
  background: rgba(96, 165, 96, 0.15);
  color: var(--sage);
}

.rec-icon-pdf {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.rec-icon-subject {
  background: rgba(171, 111, 207, 0.15);
  color: #ab6fcf;
}

.rec-icon-attitude {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber);
}

.rec-attitude-bad .rec-icon-attitude {
  background: rgba(200, 80, 80, 0.15);
  color: var(--rose);
}

.rec-activity-count {
  font-size: 0.78rem;
  color: var(--sand-muted);
  font-weight: 600;
}

.rec-attitude-badge-good { color: var(--sage); }
.rec-attitude-badge-warn { color: var(--amber); }
.rec-attitude-badge-bad { color: var(--rose); font-weight: 700; }

.rec-activity-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rec-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.rec-stat-label {
  color: var(--sand-muted);
}

.rec-stat-value {
  color: var(--sand);
  font-weight: 600;
  text-align: right;
}

.rec-stat-value small {
  font-weight: 400;
  color: var(--sand-muted);
  font-size: 0.72rem;
}

.rec-val-warn { color: var(--amber); }
.rec-val-bad { color: var(--rose); }

.rec-activity-empty {
  color: var(--sand-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem 0;
}

/* ===== 기록확인 — 섹션 공통 ===== */
.rec-section {
  margin-bottom: 1.75rem;
}

.rec-section-title {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-sub-title {
  color: var(--gold-light);
  font-size: 0.88rem;
  margin: 1rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-log-count {
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.rec-toggle {
  background: none;
  border: none;
  color: var(--sand-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  line-height: 1;
  transition: color var(--transition);
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rec-toggle:hover {
  color: var(--gold);
}

/* ===== 기록확인 — 미니 카드 ===== */
.rec-mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.rec-mini-card {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.rec-mini-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

.rec-mini-label {
  font-size: 0.7rem;
  color: var(--sand-muted);
  margin-top: 0.15rem;
}

/* ===== 기록확인 — 타임라인 ===== */
.tl-day {
  margin-bottom: 0.75rem;
}

.tl-day-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sand);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-day-count {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--sand-muted);
}

.tl-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  border-left: 3px solid var(--border);
  margin-left: 0.5rem;
  transition: background var(--transition);
}

.tl-item:hover {
  background: rgba(244, 197, 66, 0.04);
}

.tl-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 36px;
  text-align: center;
}

.tl-badge-reading {
  background: rgba(96, 165, 96, 0.15);
  color: var(--sage);
}

.tl-badge-drowsy {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber);
}

.tl-badge-pdf {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.tl-time {
  color: var(--sand-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  min-width: 55px;
}

.tl-detail {
  color: var(--sand);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 기록확인 — 졸음 세션 아이템 ===== */
.drowsy-session-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  background: var(--night-card);
  overflow: hidden;
}

.drowsy-session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  gap: 0.5rem;
}

.drowsy-session-header:hover {
  background: rgba(244, 197, 66, 0.04);
}

.drowsy-session-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.drowsy-dt {
  color: var(--sand-muted);
  font-variant-numeric: tabular-nums;
}

.rec-toggle-icon {
  color: var(--sand-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* 졸음 이벤트 로그 테이블 */
.drowsy-events-log {
  border-top: 1px solid var(--border);
}

.drowsy-event-table {
  font-size: 0.78rem !important;
}

.drowsy-event-table td {
  padding: 0.4rem 0.7rem !important;
}

/* 이벤트 색상 코딩 */
.ev-drowsy {
  background: rgba(240, 160, 48, 0.06);
}

.ev-drowsy td:nth-child(3) {
  color: var(--amber);
  font-weight: 600;
}

.ev-sleep {
  background: rgba(200, 80, 80, 0.06);
}

.ev-sleep td:nth-child(3) {
  color: var(--rose);
  font-weight: 600;
}

.ev-tab td:nth-child(3) {
  color: var(--sand-muted);
}

/* ===== 기록확인 — PDF / 오답노트 ===== */
.pdf-filename {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrong-note-table {
  font-size: 0.78rem !important;
}

.wn-sentence {
  white-space: normal !important;
  max-width: 220px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.wn-resolved {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.75rem;
}

.wn-unresolved {
  color: var(--rose);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ===== 이상행동 알림 ===== */
.admin-alert-section {
  background: rgba(200, 80, 80, 0.08);
  border: 1px solid rgba(200, 80, 80, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-alert-title {
  color: var(--rose);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.admin-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-alert-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.85rem;
}

.admin-alert-item:hover {
  background: rgba(200, 80, 80, 0.1);
}

.admin-alert-name {
  color: var(--sand);
  font-weight: 600;
  min-width: 60px;
}

.admin-alert-detail {
  color: var(--sand-muted);
}

.admin-alert-drowsy .admin-alert-detail,
.admin-alert-tab .admin-alert-detail {
  color: var(--amber);
}

.admin-alert-inactive .admin-alert-detail {
  color: var(--sand-muted);
}

.admin-alert-pdf_low .admin-alert-detail {
  color: var(--rose);
}

/* ===== 기록확인 기간 필터 ===== */
.admin-period-select {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.admin-period-select:hover {
  border-color: var(--border-light);
}

.admin-period-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ===== 기록확인 액션 바 ===== */
.admin-record-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

/* ===== 회원관리 툴바 ===== */
.admin-members-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-search-input {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  transition: border-color var(--transition);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.admin-search-input::placeholder {
  color: var(--sand-muted);
}

.admin-sort-select {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.admin-sort-select:hover {
  border-color: var(--border-light);
}

.admin-sort-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ===== 회원 관리 버튼 ===== */
.admin-member-actions {
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.admin-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
  min-width: 36px;
}

.admin-view-btn {
  color: var(--gold);
  border-color: rgba(244, 197, 66, 0.3);
}

.admin-view-btn:hover {
  background: rgba(244, 197, 66, 0.1);
  border-color: var(--gold);
}

.admin-delete-btn {
  color: var(--rose);
  border-color: rgba(200, 80, 80, 0.3);
}

.admin-delete-btn:hover {
  background: rgba(200, 80, 80, 0.1);
  border-color: var(--rose);
}

/* ===== CSV 내보내기 버튼 ===== */
.admin-csv-btn {
  background: none;
  border: 1px solid rgba(100, 149, 237, 0.4);
  border-radius: var(--radius-sm);
  color: #6495ed;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
}

.admin-csv-btn:hover {
  background: rgba(100, 149, 237, 0.1);
  border-color: #6495ed;
}

.admin-dashboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* 분석 범위 라벨 */
.admin-scope-label {
  color: var(--sand-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* 회원 총수 */
.admin-members-count {
  color: var(--sand-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* ===== 기록확인 — 캘린더 뷰 ===== */

.cal-wrap {
  margin-bottom: 1.5rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cal-month-title {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
  min-width: 120px;
  text-align: center;
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cal-nav-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.cal-nav-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 1rem;
}

.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sand-muted);
  padding: 0.4rem 0;
}

.cal-cell {
  background: var(--night-card);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: all var(--transition);
}

.cal-cell.cal-empty {
  background: transparent;
  border: none;
}

.cal-cell.has-data {
  cursor: pointer;
  border-color: var(--border);
}

.cal-cell.has-data:hover {
  border-color: var(--gold);
  background: rgba(244, 197, 66, 0.06);
}

.cal-cell.today {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.cal-cell.selected {
  background: rgba(244, 197, 66, 0.12);
  border-color: var(--gold);
}

.cal-cell.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand);
  line-height: 1;
}

.cal-cell.disabled .cal-day-num {
  color: var(--sand-muted);
}

.cal-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-dot.reading {
  background: var(--sage);
}

.cal-dot.pdf {
  background: #6495ed;
}

.cal-dot.subject {
  background: #ab6fcf;
}

.cal-dot.drowsy {
  background: var(--amber);
}

/* 캘린더 도트 범례 */
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--sand-muted);
}

.cal-legend-item .cal-dot {
  flex-shrink: 0;
}

/* 캘린더 셀 건수 */
.cal-cell-count {
  font-size: 0.75rem;
  color: var(--sand-muted);
  font-weight: 600;
  line-height: 1;
}

/* ===== 캘린더 — 날짜 상세 패널 ===== */

.day-detail {
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.5rem;
}

.day-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.day-detail-date {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 700;
}

.day-detail-count {
  color: var(--sand-muted);
  font-size: 0.8rem;
}

/* 세션 카드 */
.day-session-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.day-session-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.82rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.day-session-header:hover {
  background: rgba(244, 197, 66, 0.04);
}

.day-session-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.day-session-time {
  color: var(--sand-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  min-width: 55px;
  flex-shrink: 0;
}

.day-session-summary {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.day-session-arrow {
  color: var(--sand-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.day-session-body {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(244, 197, 66, 0.02);
}

.btn-session-delete {
  display: block;
  margin: 0.6rem 0 0 auto;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  background: rgba(224, 108, 117, 0.1);
  color: var(--rose);
  border: 1px solid rgba(224, 108, 117, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-session-delete:hover {
  background: rgba(224, 108, 117, 0.25);
  border-color: var(--rose);
}

/* 활동 타입 배지 */
.day-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.day-badge.reading {
  background: rgba(96, 165, 96, 0.15);
  color: var(--sage);
}

.day-badge.pdf {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.day-badge.subject {
  background: rgba(171, 111, 207, 0.15);
  color: #ab6fcf;
}

.day-badge.drowsy {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber);
}

.day-badge.quiz {
  background: rgba(200, 160, 255, 0.15);
  color: #c8a0ff;
}

/* 상세 통계 행 */
.day-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.8rem;
}

.day-stat-row span:first-child {
  color: var(--sand-muted);
}

.day-stat-row span:last-child {
  color: var(--sand);
  font-weight: 600;
  text-align: right;
}

/* 졸음 이벤트 로그 토글 */
.day-events-toggle {
  margin-top: 0.5rem;
}

.day-events-toggle .rec-toggle {
  font-size: 0.78rem;
}

.day-events-log {
  margin-top: 0.4rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* 졸음 이벤트 타임라인 (기록보기) */
.rv-evt-timeline {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.rv-evt-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sand-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rv-evt-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  font-size: 0.78rem;
}
.rv-evt-badge {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rv-evt-warn {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber);
}
.rv-evt-danger {
  background: rgba(232, 93, 117, 0.15);
  color: var(--rose);
}
.rv-evt-ok {
  background: rgba(123, 198, 126, 0.15);
  color: var(--sage);
}
.rv-evt-muted {
  background: rgba(180, 180, 180, 0.12);
  color: var(--sand-muted);
}
.rv-evt-time {
  color: var(--sand-muted);
  font-family: monospace;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.rv-evt-detail {
  color: var(--sand-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 모의고사 결과 섹션 */
.day-mock-section {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(244, 197, 66, 0.2);
}

.day-stat-highlight span:first-child {
  color: var(--gold);
  font-weight: 600;
}

.day-stat-highlight span:last-child {
  color: var(--gold);
}

/* ===== 모바일 대응 ===== */
@media (max-width: 600px) {
  .admin-container {
    padding: 1rem 0.5rem;
  }

  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* 스크롤 그라데이션 힌트 */
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

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

  .rec-activity-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-number {
    font-size: 1.5rem;
  }

  .admin-table {
    font-size: 0.78rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.6rem;
  }

  .admin-user-select-area {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-select {
    max-width: 100%;
  }

  .rec-mini-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-mini-value {
    font-size: 0.95rem;
  }

  .tl-item {
    font-size: 0.75rem;
    gap: 0.35rem;
    padding: 0.3rem 0.4rem;
  }

  .tl-badge {
    font-size: 0.75rem;
    padding: 0.05rem 0.3rem;
  }

  .tl-detail {
    font-size: 0.72rem;
  }

  .drowsy-session-header {
    font-size: 0.75rem;
    padding: 0.45rem 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .drowsy-session-summary {
    gap: 0.4rem;
  }

  .pdf-filename {
    max-width: 100px;
  }

  .wn-sentence {
    max-width: 140px;
  }

  .admin-members-toolbar {
    flex-direction: column;
  }

  .admin-search-input {
    max-width: 100%;
  }

  .admin-alert-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .admin-member-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-action-btn {
    font-size: 0.68rem;
    padding: 0.25rem 0.4rem;
  }

  /* 캘린더 모바일 */
  .cal-grid {
    gap: 1px;
  }

  .cal-cell {
    min-height: 44px;
    padding: 0.25rem;
  }

  .cal-day-num {
    font-size: 0.72rem;
  }

  .cal-dot {
    width: 5px;
    height: 5px;
  }

  .day-detail {
    padding: 0.75rem;
  }

  .day-session-header {
    font-size: 0.78rem;
    padding: 0.5rem;
  }

  .day-session-summary {
    font-size: 0.75rem;
  }

  .day-stat-row {
    font-size: 0.75rem;
  }
}

/* ===== 물음표 도움말 버튼 ===== */
.help-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--sand-muted, #9a978e);
  background: none;
  color: var(--sand-muted, #9a978e);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 0.3rem;
  vertical-align: middle;
  transition: all var(--transition);
  line-height: 1;
}

.help-tip-btn:hover {
  color: var(--gold, #f4c542);
  border-color: var(--gold, #f4c542);
}

.help-tip-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ===== 관리 대상 버튼 ===== */
.admin-managed-btn {
  color: var(--amber, #f0a030);
  border-color: rgba(240, 160, 48, 0.3);
}

.admin-managed-btn:hover {
  background: rgba(240, 160, 48, 0.1);
  border-color: var(--amber, #f0a030);
}

.admin-managed-btn.managed {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber, #f0a030);
  border-color: rgba(240, 160, 48, 0.4);
}

.admin-invite-perm-btn.granted {
  background: rgba(144, 190, 109, 0.15);
  color: var(--sage, #90be6d);
  border-color: rgba(144, 190, 109, 0.4);
}

/* 파랑별 지급 */
.admin-bluestar-count {
  font-size: 0.75rem;
  color: var(--sand);
  margin-right: 0.3rem;
}

.admin-bluestar-grant-btn {
  background: rgba(66, 133, 244, 0.12);
  color: #7aafff;
  border-color: rgba(66, 133, 244, 0.35);
  font-size: 0.72rem;
}

.admin-bluestar-grant-btn:hover {
  background: rgba(66, 133, 244, 0.25);
}

.admin-star-count {
  font-size: 0.75rem;
  color: var(--gold);
  margin-right: 0.3rem;
}

.admin-revoke-btn {
  background: rgba(232, 93, 117, 0.1);
  color: var(--rose);
  border-color: rgba(232, 93, 117, 0.3);
  font-size: 0.72rem;
}

.admin-revoke-btn:hover {
  background: rgba(232, 93, 117, 0.22);
}

/* ===== 스코프 바 (대시보드/기록확인) ===== */
.admin-scope-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-scope-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--sand-muted);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 26px;
}

.admin-scope-toggle:hover {
  color: var(--amber, #f0a030);
  border-color: rgba(240, 160, 48, 0.4);
  background: rgba(240, 160, 48, 0.08);
}

.admin-scope-toggle.active {
  color: var(--amber, #f0a030);
  border-color: rgba(240, 160, 48, 0.4);
  background: rgba(240, 160, 48, 0.12);
}

/* ===== 기록부여 버튼 ===== */
.admin-grant-btn {
  color: var(--sage, #60a560);
  border-color: rgba(96, 165, 96, 0.3);
}

.admin-grant-btn:hover {
  background: rgba(96, 165, 96, 0.1);
  border-color: var(--sage, #60a560);
}

.admin-grant-btn.granted {
  background: rgba(123, 198, 126, 0.15);
  color: var(--sage, #60a560);
  border-color: rgba(96, 165, 96, 0.4);
}

/* ===== 기록보기 뷰 ===== */
.rv-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.rv-header {
  margin-bottom: 1rem;
}

.rv-title {
  color: var(--gold, #f4c542);
  font-size: 1.2rem;
  margin: 0;
}

.rv-target-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.rv-target-tab {
  background: rgba(244, 197, 66, 0.08);
  border: 1px solid rgba(244, 197, 66, 0.15);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  color: var(--sand-muted, #9a978e);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.rv-target-tab:hover {
  border-color: rgba(244, 197, 66, 0.3);
  color: var(--sand, #e8dcc8);
}
.rv-target-tab.active {
  background: rgba(244, 197, 66, 0.15);
  border-color: var(--gold, #f4c542);
  color: var(--gold, #f4c542);
}

.rv-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rv-filter label {
  color: var(--sand-muted, #9a978e);
  font-size: 0.85rem;
  font-weight: 600;
}

.rv-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rv-card {
  background: var(--night-card, #141828);
  border: 1px solid var(--border, #2a2e3a);
  border-radius: var(--radius, 12px);
  padding: 0.85rem;
  border-top: 3px solid var(--border, #2a2e3a);
}

.rv-card-reading { border-top-color: var(--sage, #60a560); }
.rv-card-pdf { border-top-color: #6495ed; }
.rv-card-subject { border-top-color: #ab6fcf; }
.rv-card-attitude { border-top-color: var(--amber, #f0a030); }

.rv-session-list {
  margin-top: 0.5rem;
}

.rv-session-item {
  border: 1px solid var(--border, #2a2e3a);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 0.4rem;
  background: var(--night-card, #141828);
  overflow: hidden;
}

.rv-session-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--sand, #d4cfc4);
  font-family: var(--font-main, sans-serif);
  font-size: 0.82rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.rv-session-header:hover {
  background: rgba(244, 197, 66, 0.04);
}

.rv-session-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.rv-session-arrow {
  color: var(--sand-muted, #9a978e);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* 기록보기 네비 버튼 */
.rv-nav-btn {
  border-color: var(--sage, #60a560) !important;
}

.rv-nav-btn:hover {
  border-color: var(--sage-light, #7bc67e) !important;
}

/* ===== 기록보기 뷰 모바일 ===== */
@media (max-width: 600px) {
  .rv-container {
    padding: 1rem 0.5rem;
  }

  .rv-summary-grid {
    grid-template-columns: 1fr;
  }

  .rv-session-header {
    font-size: 0.78rem;
    padding: 0.5rem;
  }

  .rv-title {
    font-size: 1rem;
  }
}

/* ===== 관리자 이용안내 탭 ===== */

.ag-container {
  max-width: 700px;
}

.ag-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ag-header-image {
  max-width: 480px;
  width: 100%;
  margin-bottom: 0.75rem;
  /* 가장자리 투명 → 배경과 동화 */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, black 12%, black 78%, transparent),
    linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, black 12%, black 78%, transparent),
    linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-composite: intersect;
}

.ag-header-title {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.ag-header-subtitle {
  color: var(--sand-dark);
  font-size: 0.82rem;
  margin: 0;
}

/* 아코디언 */
.ag-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ag-section {
  background: var(--night-card-70);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ag-section.expanded {
  border-color: var(--gold);
}

.ag-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  background: transparent;
  border: none;
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  text-align: left;
}

.ag-section-header:hover {
  background: rgba(244, 197, 66, 0.06);
}

.ag-section-header:active {
  background: rgba(244, 197, 66, 0.12);
}

.ag-section-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.ag-section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.ag-section-title {
  flex: 1;
}

.ag-section-toggle {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ag-section.expanded .ag-section-toggle {
  transform: rotate(90deg);
}

.ag-section-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.875rem;
  color: var(--sand-dark);
  font-size: 0.82rem;
  line-height: 1.6;
}

.ag-section.expanded .ag-section-body {
  display: block;
}

/* 단계 표시 */
.ag-steps {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ag-step {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.ag-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 197, 66, 0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.ag-text {
  flex: 1;
}

.ag-text strong {
  color: var(--sand);
}

/* 이상행동 감지 기준 */
.ag-alert-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ag-alert-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.82rem;
}

.ag-alert-row strong {
  color: var(--gold);
}

.ag-alert-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.ag-badge-drowsy {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber);
}

.ag-badge-tab {
  background: rgba(200, 160, 255, 0.15);
  color: #c8a0ff;
}

.ag-badge-pdf {
  background: rgba(200, 80, 80, 0.15);
  color: var(--rose);
}

.ag-badge-inactive {
  background: rgba(154, 151, 142, 0.15);
  color: var(--sand-muted);
}

.ag-note {
  color: var(--sand-muted);
  font-size: 0.78rem;
  margin: 0;
  font-style: italic;
}

/* 팁 목록 */
.ag-tip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ag-tip-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
}

.ag-tip-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* 관리자 이용안내 모바일 */
@media (max-width: 600px) {
  .ag-header-title {
    font-size: 1rem;
  }

  .ag-section-icon {
    width: 32px;
    height: 32px;
  }

  .ag-section-header {
    font-size: 0.82rem;
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
  }

  .ag-section-body {
    padding: 0.625rem;
    font-size: 0.78rem;
  }

  .ag-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .ag-alert-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-section-toggle,
  .ag-section,
  .ag-section-header {
    transition: none;
  }
}

/* === 그룹 채팅 탭 === */

.admin-gc-layout {
  display: flex;
  gap: 1rem;
  min-height: 500px;
}

.admin-gc-sidebar {
  width: 240px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--night-card);
  overflow-y: auto;
  max-height: 600px;
}

.admin-gc-sidebar-title {
  font-size: 0.85rem;
  color: var(--gold-light);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.admin-gc-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-gc-group-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}

.admin-gc-group-item:hover {
  background: rgba(255,255,255,0.04);
}

.admin-gc-group-item.active {
  background: rgba(240, 160, 48, 0.1);
  border-left: 3px solid var(--amber);
}

.admin-gc-group-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-gc-group-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-gc-group-name {
  font-size: 0.85rem;
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-gc-group-meta {
  font-size: 0.7rem;
  color: var(--sand-muted);
}

.admin-gc-main {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--night-card);
  display: flex;
  flex-direction: column;
}

.admin-gc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--sand-muted);
  font-size: 0.9rem;
}

.admin-gc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.admin-gc-header-emoji {
  font-size: 1.2rem;
}

.admin-gc-header-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}

.admin-gc-header-members {
  font-size: 0.7rem;
  color: var(--sand-muted);
  margin-left: auto;
}

.admin-gc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 500px;
}

.admin-gc-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.admin-gc-msg-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
  min-width: 60px;
  flex-shrink: 0;
}

.admin-gc-msg-content {
  font-size: 0.82rem;
  color: var(--sand);
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.admin-gc-msg-time {
  font-size: 0.65rem;
  color: var(--sand-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-gc-msg-system {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.72rem;
  color: var(--sand-muted);
  font-style: italic;
}

.admin-gc-msg-image {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  object-fit: cover;
}

@media (max-width: 768px) {
  .admin-gc-layout {
    flex-direction: column;
    min-height: auto;
  }

  .admin-gc-sidebar {
    width: 100%;
    max-height: 200px;
  }

  .admin-gc-messages {
    max-height: 400px;
  }

  .admin-gc-header-members {
    margin-left: 0;
    width: 100%;
  }
}

/* === 초대 관계 탭 === */

.admin-invite-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-invite-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* === 간격 복습 현황 (펼쳐보기) === */
.admin-review-stats-section {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.admin-review-stats-title {
  color: var(--sage);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-review-stats-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(123, 198, 126, 0.15);
  color: var(--sage);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.rv-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rv-user-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--sand-light);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.rv-user-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rv-user-name {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

.rv-user-pending {
  font-size: 0.78rem;
  color: var(--sand-muted);
}

.rv-user-pending.rv-has-pending {
  color: var(--amber);
  font-weight: 600;
}

.rv-user-arrow {
  font-size: 0.7rem;
  color: var(--sand-muted);
  transition: transform 0.15s;
}

.rv-user-detail {
  padding: 0.4rem 0.75rem 0.6rem;
  margin-top: -0.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rv-goal-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(123, 198, 126, 0.06);
}

.rv-goal-name {
  flex: 1;
  color: var(--sand-light);
}

.rv-goal-dday {
  font-size: 0.72rem;
  color: var(--sand-muted);
  min-width: 3rem;
  text-align: center;
}

.rv-goal-count {
  font-size: 0.72rem;
  color: var(--sand-muted);
  min-width: 8rem;
  text-align: right;
}

.rv-goal-row.rv-near {
  background: rgba(240, 160, 48, 0.08);
}

.rv-goal-row.rv-near .rv-goal-dday {
  color: var(--amber);
  font-weight: 600;
}

.rv-goal-row.rv-urgent {
  background: rgba(231, 76, 111, 0.08);
}

.rv-goal-row.rv-urgent .rv-goal-dday {
  color: var(--rose, #e74c6f);
  font-weight: 600;
}

/* === 시험 요청 탭 배지 === */
.admin-tab .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 9px;
  background: var(--rose, #e74c6f);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* === 시험 요청 카드 === */
.admin-exam-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-exam-request-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 197, 66, 0.1);
  border-radius: 10px;
  padding: 1rem;
}

.admin-exam-request-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-exam-request-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-exam-request-type.edit {
  background: rgba(240, 160, 48, 0.15);
  color: var(--amber, #f0a030);
}

.admin-exam-request-type.delete {
  background: rgba(231, 76, 111, 0.15);
  color: var(--rose, #e74c6f);
}

.admin-exam-request-goal {
  color: var(--sand-light, #f5e6d3);
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-exam-request-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--sand-muted, #a89880);
  margin-bottom: 0.5rem;
}

.admin-exam-request-changes {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--sand-light, #f5e6d3);
}

.admin-exam-request-changes del {
  color: var(--rose, #e74c6f);
  text-decoration: line-through;
  opacity: 0.7;
}

.admin-exam-request-changes strong {
  color: var(--sage, #7cc9a2);
}

.admin-exam-request-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* === 초대 체인 트리 === */

.invite-tree {
  overflow-x: auto;
  padding: 0.5rem 0;
}

.invite-tree-node {
  position: relative;
}

.invite-tree-node[data-depth="0"] {
  margin-bottom: 0.4rem;
}

.invite-tree-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s;
  white-space: nowrap;
}

.invite-tree-row:hover {
  background: rgba(244, 197, 66, 0.06);
}

.invite-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  min-width: 1.2rem;
  font-size: 0.65rem;
  color: var(--sand-muted, #887755);
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.invite-tree-toggle:hover {
  color: var(--amber, #f0a030);
  background: rgba(244, 197, 66, 0.1);
}

.invite-tree-toggle-placeholder {
  display: inline-block;
  width: 1.2rem;
  min-width: 1.2rem;
}

.invite-tree-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand, #c4a97d);
}

.invite-tree-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--amber, #f0a030);
  background: rgba(240, 160, 48, 0.12);
  border: 1px solid rgba(240, 160, 48, 0.2);
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}

.invite-tree-date {
  font-size: 0.65rem;
  color: var(--sand-muted, #887755);
  margin-left: 0.3rem;
}

.invite-tree-children {
  position: relative;
  padding-left: 1.4rem;
}

/* 세로 연결선 */
.invite-tree-children::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 0;
  bottom: 0.8rem;
  width: 1px;
  background: rgba(196, 169, 125, 0.15);
}

/* 가로 연결선 */
.invite-tree-children > .invite-tree-node > .invite-tree-row::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 50%;
  width: 0.5rem;
  height: 1px;
  background: rgba(196, 169, 125, 0.15);
}

.invite-tree-children > .invite-tree-node > .invite-tree-row {
  position: relative;
}

/* 가입 요청 토글 */
.invite-requests-toggle .admin-action-btn {
  font-size: 0.8rem;
  color: var(--sand-muted, #887755);
  background: rgba(196, 169, 125, 0.06);
  border: 1px solid rgba(196, 169, 125, 0.12);
  transition: background 0.15s, color 0.15s;
}

.invite-requests-toggle .admin-action-btn:hover {
  color: var(--sand, #c4a97d);
  background: rgba(196, 169, 125, 0.1);
}

/* 모바일 대응 */
@media (max-width: 600px) {
  .invite-tree-children {
    padding-left: 1rem;
  }
  .invite-tree-name {
    font-size: 0.8rem;
  }
}

/* === 회원 호출 (Summon) === */

.admin-summon-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.admin-summon-input-area textarea {
  flex: 1;
  resize: none;
  background: var(--night, #0B1026);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  min-height: 40px;
  max-height: 120px;
}

.admin-summon-input-area textarea:focus {
  border-color: var(--gold);
}

.admin-summon-input-area .admin-summon-send-btn {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s;
}

.admin-summon-input-area .admin-summon-send-btn:hover {
  background: var(--gold-light);
}

/* 호출 목록 아이템 */
.admin-summon-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}

.admin-summon-item:hover,
.admin-summon-item:focus-visible {
  background: rgba(244, 197, 66, 0.08);
}

.admin-summon-item.active {
  background: rgba(244, 197, 66, 0.12);
  border-left: 3px solid var(--gold);
}

.admin-summon-item-info {
  flex: 1;
  min-width: 0;
}

.admin-summon-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-summon-item-reason {
  font-size: 0.75rem;
  color: var(--sand-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-summon-unread {
  width: 10px;
  height: 10px;
  background: var(--rose);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 호출 해제 버튼 */
.admin-summon-dismiss-btn {
  background: rgba(233, 97, 97, 0.15);
  color: var(--rose);
  border: 1px solid rgba(233, 97, 97, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
}

.admin-summon-dismiss-btn:hover {
  background: rgba(233, 97, 97, 0.25);
  border-color: var(--rose);
}

/* 회원관리 테이블 호출 버튼 */
.admin-summon-btn {
  background: rgba(244, 197, 66, 0.12);
  color: var(--gold);
  border: 1px solid rgba(244, 197, 66, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
}

.admin-summon-btn:hover {
  background: rgba(244, 197, 66, 0.2);
  border-color: var(--gold);
}

/* 새 호출 버튼 */
.admin-summon-new-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(244, 197, 66, 0.1);
  color: var(--gold);
  border: 1px dashed rgba(244, 197, 66, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
}

.admin-summon-new-btn:hover {
  background: rgba(244, 197, 66, 0.18);
  border-color: var(--gold);
}

/* 호출 채팅 헤더 */
.admin-summon-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-summon-chat-header-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.admin-summon-chat-header-reason {
  font-size: 0.75rem;
  color: var(--sand-muted);
}

/* 비고 */
.admin-memo {
  display: inline-block;
  min-width: 40px;
  min-height: 1.2em;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--sand);
  border: 1px dashed transparent;
  transition: border-color 0.2s;
}
.admin-memo:hover {
  border-color: var(--border);
}
.admin-memo:empty::after {
  content: '-';
  color: var(--sand-muted);
}

/* ===================================================================
   공지사항 모달 (사용자용) — 어린왕자 밤하늘 테마
   =================================================================== */

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.notice-overlay.notice-visible {
  opacity: 1;
}

.notice-modal {
  position: relative;
  max-width: 400px;
  width: 100%;
  /* 두루마리 펼침: 위에서 아래로 clip */
  clip-path: inset(0 0 92% 0);
  transform: scale(0.96);
  transition:
    clip-path 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s,
    transform 0.5s ease 0.1s;
}
.notice-visible .notice-modal {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* 콘텐츠 레이어 — 두루마리 배경 위에 텍스트 */
.notice-modal-inner {
  position: relative;
  z-index: 1;
  background: url('../images/notice-scroll-bg.png') center / 100% 100% no-repeat;
  /* 이미지 826×1024 → aspect-ratio 고정으로 배경과 비율 일치
     안전 영역: 좌우 ~22%, 위 ~17%h(=21%w), 아래 ~15%h(=19%w) */
  aspect-ratio: 826 / 1024;
  padding: 22% 23% 20%;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 0 40px rgba(244, 197, 66, 0.12))
         drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}

.notice-modal-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.notice-modal-star {
  font-size: 1.4rem;
  color: #8b6914;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(180, 140, 40, 0.4);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s;
}
.notice-visible .notice-modal-star {
  opacity: 1;
  transform: scale(1);
  animation: noticePulse 3s ease-in-out 1.2s infinite;
}
@keyframes noticePulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.notice-modal-title {
  color: #5a3e0a;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.85s, transform 0.4s ease 0.85s;
}
.notice-visible .notice-modal-title {
  opacity: 1;
  transform: translateY(0);
}

.notice-modal-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8942a, transparent);
  margin: 0.6rem auto 0;
  opacity: 0.6;
  transition: width 0.5s ease 1s;
}
.notice-visible .notice-modal-divider {
  width: 80px;
}

/* 본문 */
.notice-modal-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 1.1s, transform 0.5s ease 1.1s;
}
.notice-visible .notice-modal-body {
  opacity: 1;
  transform: translateY(0);
}

.notice-modal-content {
  color: #3e2c08;
  font-size: 0.9rem;
  line-height: 1.85;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
  word-break: keep-all;
  width: 100%;
}
.notice-modal-content::-webkit-scrollbar { width: 3px; }
.notice-modal-content::-webkit-scrollbar-thumb {
  background: rgba(140, 100, 20, 0.3);
  border-radius: 2px;
}

/* 하단 — margin-top: auto로 양피지 안쪽 하단에 고정 */
.notice-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.7rem;
  opacity: 0;
  transition: opacity 0.4s ease 1.35s;
}
.notice-visible .notice-modal-footer {
  opacity: 1;
  border-top: 1px solid rgba(140, 100, 20, 0.2);
}

.notice-dismiss-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #8a7040;
  font-size: 0.72rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.notice-dismiss-label:hover {
  color: #5a3e0a;
}
.notice-dismiss-label input[type="checkbox"] {
  display: none;
}
.notice-dismiss-check-custom {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(140, 100, 20, 0.4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.3);
}
.notice-dismiss-label input:checked + .notice-dismiss-check-custom {
  background: #8b6914;
  border-color: #8b6914;
}
.notice-dismiss-label input:checked + .notice-dismiss-check-custom::after {
  content: '✓';
  font-size: 9px;
  color: #fff;
  font-weight: 700;
}

.notice-modal-btn {
  background: linear-gradient(135deg, #8b6914, #a07820);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(100, 70, 10, 0.3);
}
.notice-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(100, 70, 10, 0.4);
  background: linear-gradient(135deg, #a07820, #b8942a);
}

/* 공지 모달 — 모바일 대응 */
@media (max-width: 480px) {
  .notice-modal-inner {
    padding: 23% 23% 21%;
  }
  .notice-modal-title { font-size: 1.05rem; }
  .notice-modal-content { font-size: 0.82rem; max-height: 120px; }
  .notice-modal-footer { gap: 0.5rem; }
  .notice-modal-btn { padding: 0.45rem 1rem; font-size: 0.78rem; }
  .notice-dismiss-label { font-size: 0.65rem; }
}

/* ===================================================================
   공지사항 관리자 UI
   =================================================================== */

.notice-admin-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.notice-admin-editor {
  background: rgba(16, 23, 52, 0.6);
  border: 1px solid rgba(244, 197, 66, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
}

.notice-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(244, 197, 66, 0.08);
}

.notice-admin-title {
  color: var(--gold, #f4c542);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.notice-admin-updated {
  color: var(--sand-muted, #a09880);
  font-size: 0.72rem;
}

/* 토글 스위치 */
.notice-admin-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.notice-admin-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.notice-admin-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.notice-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
.notice-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--sand-muted, #a09880);
  border-radius: 50%;
  transition: all 0.3s;
}
.notice-admin-toggle input:checked + .notice-toggle-slider {
  background: rgba(244, 197, 66, 0.25);
}
.notice-admin-toggle input:checked + .notice-toggle-slider::after {
  left: 23px;
  background: var(--gold, #f4c542);
  box-shadow: 0 0 8px rgba(244, 197, 66, 0.5);
}

.notice-toggle-text {
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

/* 폼 필드 */
.notice-admin-field {
  margin-bottom: 1rem;
}

.notice-admin-label {
  display: block;
  color: var(--sand, #e8dcc8);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.notice-admin-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(244, 197, 66, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: var(--sand, #e8dcc8);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.notice-admin-input:focus {
  border-color: rgba(244, 197, 66, 0.4);
  box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.08);
}
.notice-admin-input::placeholder {
  color: var(--sand-muted, #a09880);
  opacity: 0.5;
}

.notice-admin-textarea {
  width: 100%;
  min-height: 180px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(244, 197, 66, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  color: var(--sand, #e8dcc8);
  font-size: 0.88rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.notice-admin-textarea:focus {
  border-color: rgba(244, 197, 66, 0.4);
  box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.08);
}
.notice-admin-textarea::placeholder {
  color: var(--sand-muted, #a09880);
  opacity: 0.5;
}

/* 액션 버튼 */
.notice-admin-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.notice-admin-save {
  flex: 1;
  background: linear-gradient(135deg, var(--gold, #f4c542), #e0a820);
  color: var(--night, #0B1026);
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.notice-admin-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}
.notice-admin-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.notice-save-icon {
  font-size: 0.9rem;
}

.notice-admin-preview-btn {
  background: rgba(244, 197, 66, 0.1);
  color: var(--gold, #f4c542);
  border: 1px solid rgba(244, 197, 66, 0.2);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.notice-admin-preview-btn:hover {
  background: rgba(244, 197, 66, 0.18);
  border-color: rgba(244, 197, 66, 0.35);
}

/* 미리보기 영역 */
.notice-admin-preview {
  position: sticky;
  top: 1rem;
}

.notice-preview-label {
  text-align: center;
  color: var(--sand-muted, #a09880);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notice-preview-phone {
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.notice-preview-phone-notch {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 4px auto 8px;
}

.notice-preview-screen {
  background: rgba(11, 16, 38, 0.9);
  border-radius: 16px;
  padding: 16px 10px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-mini-modal {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(244, 197, 66, 0.08);
}

.notice-mini-modal {
  background: url('../images/notice-scroll-bg.png') center / 100% 100% no-repeat;
  box-shadow: 0 0 15px rgba(244, 197, 66, 0.08);
}

.notice-mini-roll,
.notice-mini-bg {
  display: none;
}

.notice-mini-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0.9rem 1.2rem;
  text-align: center;
}

.notice-mini-star {
  font-size: 0.85rem;
  color: #8b6914;
  margin-bottom: 0.3rem;
}

.notice-mini-title {
  color: #5a3e0a;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1.4;
  word-break: keep-all;
}

.notice-mini-divider {
  width: 25px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #b8942a, transparent);
  margin: 0.25rem auto;
  opacity: 0.5;
}

.notice-mini-content {
  color: #3e2c08;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: left;
  max-height: 100px;
  overflow: hidden;
  padding: 0.3rem 0.2rem;
  word-break: keep-all;
}

.notice-mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(140, 100, 20, 0.15);
}

.notice-mini-dismiss {
  font-size: 0.75rem;
  color: #8a7040;
}

.notice-mini-btn {
  font-size: 0.75rem;
  background: #8b6914;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 768px) {
  .notice-admin-wrap {
    grid-template-columns: 1fr;
  }
  .notice-admin-preview {
    display: none;
  }
}

@media (max-width: 480px) {
  .notice-modal {
    max-width: 92%;
  }
  .notice-modal-inner {
    padding: 3.5rem 2rem 2.5rem;
    min-height: 400px;
  }
  .notice-modal-title {
    font-size: 1.05rem;
  }
  .notice-modal-content {
    max-height: 180px;
    font-size: 0.83rem;
  }
  .notice-modal-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    text-align: center;
  }
  .notice-dismiss-label {
    justify-content: center;
  }
  .notice-modal-btn {
    width: 100%;
    padding: 0.55rem;
  }
}

/* 모션 감소 설정 사용자: 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .notice-modal,
  .notice-modal-star,
  .notice-modal-title,
  .notice-modal-divider,
  .notice-modal-body,
  .notice-modal-footer {
    transition: none !important;
    animation: none !important;
  }
  .notice-overlay {
    transition: none !important;
  }
  .notice-visible .notice-modal {
    clip-path: inset(0 0 0 0);
  }
  .notice-visible .notice-modal-star,
  .notice-visible .notice-modal-title,
  .notice-visible .notice-modal-body,
  .notice-visible .notice-modal-footer {
    opacity: 1;
    transform: none;
  }
  .notice-visible .notice-modal-divider {
    width: 80px;
  }
}

/* === 기록보기 오답노트 섹션 === */
.rv-wrong-notes-section {
  margin-bottom: 0.5rem;
}

/* 세션 그룹 아코디언 */
.rv-wn-group {
  margin-bottom: 0.375rem;
}
.rv-wn-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--night-card, #141828);
  border: 1px solid var(--border, #2a2e3a);
  border-radius: 0.5rem;
  color: var(--sand, #d4c9a8);
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.rv-wn-group-header:hover {
  background: rgba(255,255,255,0.04);
}
.rv-wn-group-header[aria-expanded="true"] {
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom-color: transparent;
}
.rv-wn-group-title {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-wn-group-meta {
  font-size: 0.7rem;
  color: var(--sand-muted, #9a978e);
  white-space: nowrap;
}
.rv-wn-group-arrow {
  font-size: 0.7rem;
  color: var(--sand-muted, #9a978e);
  flex-shrink: 0;
}
.rv-wn-group-body {
  border: 1px solid var(--border, #2a2e3a);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.25rem 0.5rem 0.5rem;
  background: rgba(20,24,40,0.5);
}

/* 개별 오답 아이템 */
.rv-wn-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rv-wn-item:last-child {
  border-bottom: none;
}
.rv-wn-item.resolved {
  opacity: 0.55;
}
.rv-wn-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}
.rv-wn-item-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.rv-wn-page {
  font-size: 0.65rem;
  color: var(--sand-muted, #9a978e);
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
}
.rv-wn-resolved {
  font-size: 0.75rem;
  color: var(--sage, #60a560);
  background: rgba(96,165,96,0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
}

/* 삭제 버튼 — 작은 원형 */
.rv-wrong-delete-btn {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(232,93,117,0.12);
  color: var(--rose, #e85d75);
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.rv-wrong-delete-btn::after {
  content: '✕';
  font-size: 0.75rem;
  line-height: 1;
}
.rv-wrong-delete-btn:hover {
  background: rgba(232,93,117,0.3);
}

.rv-wn-question {
  font-size: 0.78rem;
  color: var(--sand, #d4c9a8);
  line-height: 1.45;
  margin-bottom: 0.25rem;
}
.rv-wn-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.72rem;
}
.rv-wn-wrong {
  color: var(--rose, #e85d75);
}
.rv-wn-correct {
  color: var(--sage, #60a560);
}

/* 오답삭제 권한 토글 버튼 */
.btn-toggle-wrong-delete {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: var(--sand-muted, #a89880);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  transition: all 0.2s;
}
.btn-toggle-wrong-delete:hover {
  background: rgba(232,93,117,0.15);
  color: var(--rose, #e85d75);
  border-color: var(--rose, #e85d75);
}
.btn-toggle-wrong-delete.granted {
  background: var(--rose, #e85d75);
  color: #fff;
  border-color: var(--rose, #e85d75);
}
.btn-toggle-wrong-delete.granted:hover {
  background: rgba(232,93,117,0.7);
}

/* === 공지게시판 관리 === */
.bulletin-admin-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bulletin-admin-form {
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, var(--night-card-50, rgba(11,16,38,0.5)), rgba(11,16,38,0.9));
  border: 1px solid rgba(244,197,66,0.15);
  border-radius: var(--radius, 12px);
}

.bulletin-admin-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold, #f4c542);
  margin: 0 0 1rem;
}

.bulletin-admin-options {
  margin-bottom: 1rem;
}

.bulletin-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--sand, #d4c9a8);
  cursor: pointer;
}

.bulletin-pin-label input[type="checkbox"] {
  accent-color: var(--gold, #f4c542);
}
