  :root {
    /* 🌙 기본 초선명 고대비 다크 테마 */
    --bg-dark: #070e1b;
    --card-bg: #0f192d;
    --card-inner: #162238;
    --border-color: rgba(255, 255, 255, 0.16);
    --border-focus: #38bdf8;
    --accent-blue: #38bdf8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1; /* 🔥 종전 저대비 회색(#6c757d)을 대체하는 초선명 슬레이트-300 */
    --text-muted: #94a3b8;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.35);

    /* 📋 [학급 신청시스템] 고대비 전용 변수 (스크린샷 이슈 완벽 해결) */
    --instruction-bg: rgba(14, 165, 233, 0.12);
    --instruction-border: #0284c7;
    --instruction-text: #f8fafc;
    --summary-box-bg: #0b1528;
    --summary-box-border: #38bdf8;
    --summary-label-color: #7dd3fc;
  }

  /* 🗂️ 교사 관리자 포털 카테고리 네비게이션 스타일 */
  .teacher-category-pills .nav-link {
    color: #94a3b8;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
  }
  .teacher-category-pills .nav-link:hover {
    color: #f8fafc;
    background-color: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
  }
  .teacher-category-pills .nav-link.active {
    color: #0f172a !important;
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
  }
  html[data-theme="light"] .teacher-category-pills .nav-link,
  body.theme-light .teacher-category-pills .nav-link {
    color: #475569;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
  }
  html[data-theme="light"] .teacher-category-pills .nav-link.active,
  body.theme-light .teacher-category-pills .nav-link.active {
    color: #ffffff !important;
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
  }
  .teacher-subtab-item .nav-link {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
  }

  /* ☀️ [고대비 선명 라이트 테마] (밝은 교실 환경, 빔프로젝터, 주간 화면 최적화) */
  html[data-theme="light"], body.theme-light {
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --card-inner: #f1f5f9;
    --border-color: #cbd5e1;
    --border-focus: #0284c7;
    --accent-blue: #0284c7;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;
    --text-main: #0f172a;
    --text-secondary: #334155; /* Slate-700, 깊고 또렷한 텍스트 */
    --text-muted: #64748b;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(2, 132, 199, 0.3);

    --instruction-bg: #f0f9ff;
    --instruction-border: #0284c7;
    --instruction-text: #075985;
    --summary-box-bg: #f8fafc;
    --summary-box-border: #0284c7;
    --summary-label-color: #0369a1;
  }

  body {
    background-color: var(--bg-dark);
    background-image: 
      radial-gradient(at 10% 10%, rgba(56, 189, 248, 0.06) 0px, transparent 50%),
      radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
  }

  /* 💡 [핵심 가독성 혁신] Bootstrap의 칙칙한 저대비 회색(#6c757d) 전면 퇴출 및 초선명 텍스트 적용 */
  .text-secondary {
    color: var(--text-secondary) !important;
  }
  .text-muted {
    color: var(--text-muted) !important;
  }
  .card-custom .text-secondary,
  .modal-content .text-secondary,
  #studentDashboard .text-secondary {
    color: var(--text-secondary) !important;
  }
  small, .small {
    font-size: 0.88rem;
  }
  small.text-secondary, .small.text-secondary {
    color: var(--text-secondary) !important;
    font-weight: 500;
  }

  /* 📋 [학급 신청시스템] 교사 전달 안내문 전용 고대비 하이라이트 박스 (유저 요청 스크린샷 완벽 대응) */
  .app-desc-highlight-box {
    background: var(--instruction-bg) !important;
    border: 1.5px solid var(--instruction-border) !important;
    border-left: 5px solid var(--accent-blue) !important;
    color: var(--instruction-text) !important;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.01em;
    white-space: pre-line;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* 학생 신청 결과 요약 박스 */
  .app-summary-box {
    background: var(--summary-box-bg) !important;
    border: 1.5px dashed var(--summary-box-border) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  }
  .summary-label {
    color: var(--summary-label-color) !important;
    font-weight: 700;
    margin-right: 4px;
  }
  .summary-val {
    color: var(--text-main) !important;
  }

  /* 모달 내부 안내문 */
  .modal-instruction-box {
    background: var(--card-inner) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--accent-amber) !important;
  }
  .modal-instruction-text {
    color: var(--text-main) !important;
    font-size: 0.94rem;
    font-weight: 500;
  }
  /* 📅 학사일정 (Academic Schedule) 전용 스타일 */
  .schedule-tab-nav {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 9999px;
    display: inline-flex;
    gap: 4px;
    backdrop-filter: blur(8px);
  }
  .schedule-tab-nav .btn {
    transition: all 0.2s ease;
    font-size: 0.88rem;
  }
  @keyframes spinAnim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .spin-anim {
    display: inline-block;
    animation: spinAnim 0.7s linear infinite;
  }
  .schedule-month-btn {
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .schedule-month-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.4);
  }
  .schedule-month-btn.active {
    background: #0284c7;
    color: #fff;
    border-color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  }
  /* 📅 2026~2027 학사일정 캘린더 모던 트렌디 그리드 & 헤더 */
  .calendar-grid-container {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
  @media (max-width: 576px) {
    .calendar-grid-container {
      gap: 3px;
    }
  }
  .calendar-header-cell {
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
  }
  .calendar-header-cell.calendar-header-sun {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.2);
  }
  .calendar-header-cell.calendar-header-sat {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
  }
  .calendar-day-cell {
    min-height: 105px;
    background: rgba(18, 26, 44, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
  }
  @media (max-width: 768px) {
    .calendar-day-cell {
      min-height: 58px;
      padding: 4px 3px;
      border-radius: 8px;
    }
    .calendar-day-cell .calendar-event-chip-container {
      display: none;
    }
    .calendar-day-cell.has-events .calendar-day-num::after {
      content: '';
      display: block;
      width: 5px;
      height: 5px;
      margin: 3px auto 0;
      border-radius: 50%;
      background: #38bdf8;
    }
  }
  @media (max-width: 991.98px) {
    #btnToggleDesktopMode,
    #headerActionButtons {
      display: none !important;
    }
  }
  /* PC 모드에서는 창 너비와 관계없이 상단 관리자 버튼 유지 */
  html.pc-view-mode #btnToggleDesktopMode,
  html.pc-view-mode #headerActionButtons {
    display: flex !important;
  }
  .calendar-day-cell:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(30, 41, 59, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
  }
  .calendar-day-cell.is-other-month {
    opacity: 0.2;
    background: rgba(11, 17, 32, 0.35);
    cursor: default;
    border-color: rgba(255, 255, 255, 0.03);
  }
  .calendar-day-cell.is-other-month:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.03);
  }
  /* 🔴 일요일 & 공휴일 스타일: 높은 가독성과 명확한 휴일 표시 */
  .calendar-day-cell.is-sun {
    background: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.18);
  }
  .calendar-day-cell.is-sun .calendar-day-num {
    color: #fb7185;
    font-weight: 800;
  }
  .calendar-day-cell.is-holiday {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(225, 29, 72, 0.05));
    border-color: rgba(244, 63, 94, 0.35);
  }
  .calendar-day-cell.is-holiday .calendar-day-num {
    color: #f43f5e;
    font-weight: 800;
  }
  /* 🔵 토요일 스타일: 청명한 스카이블루와 주말 인지 */
  .calendar-day-cell.is-sat {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.18);
  }
  .calendar-day-cell.is-sat .calendar-day-num {
    color: #38bdf8;
    font-weight: 800;
  }
  /* 🌟 오늘 (Today) 강조 */
  .calendar-day-cell.is-today {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 41, 59, 0.8));
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  }
  .calendar-day-cell.is-today .calendar-day-num {
    color: #fbbf24;
    font-weight: 900;
  }
  .calendar-day-cell.is-vacation {
    background: rgba(16, 185, 129, 0.05);
  }
  .calendar-day-num {
    font-weight: 700;
    font-size: 0.86rem;
    color: #e2e8f0;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
  }
  .calendar-event-chip-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    width: 100%;
  }
  /* 🏷️ 트렌디 캡슐(Pill) 뱃지 - 네모박스 테두리 제거 & 소프트 컬러 바 장착 */
  .calendar-event-chip {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    line-height: 1.25;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
    cursor: pointer;
  }
  .calendar-event-chip:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
  }
  /* 📌 일정 구분별 트렌디 캡슐 스타일 */
  .event-chip-exam {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
    border-left: 3.5px solid #ef4444;
  }
  .event-chip-vacation {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    border-left: 3.5px solid #10b981;
  }
  .event-chip-holiday {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-left: 3.5px solid #f59e0b;
  }
  .event-chip-event {
    background: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
    border-left: 3.5px solid #38bdf8;
  }
  .event-chip-other {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border-left: 3.5px solid #a855f7;
  }
  .holiday-mini-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
    line-height: 1;
  }
  .admin-edit-hint {
    font-size: 0.68rem;
    color: #f59e0b;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .calendar-day-cell:hover .admin-edit-hint {
    opacity: 1;
  }
  .calendar-add-hint {
    font-size: 0.68rem;
    font-weight: 600;
    color: #fbbf24;
    opacity: 0.85;
    padding: 2px 4px;
    line-height: 1.2;
  }
  .calendar-day-cell:hover .calendar-add-hint {
    opacity: 1;
  }
  .quick-schedule-preset-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fde68a;
  }
  .schedule-timeline-item {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .schedule-timeline-item:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(21, 31, 50, 0.9);
    transform: translateX(3px);
  }
  .schedule-dday-card {
    background: linear-gradient(135deg, rgba(21, 31, 50, 0.9), rgba(13, 21, 38, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 220px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .schedule-dday-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
  .card-custom {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
  }
  .card-custom:hover {
    border-color: rgba(56, 189, 248, 0.25);
  }
  .dday-banner-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: thin;
  }
  .dday-banner-container::-webkit-scrollbar {
    height: 5px;
  }
  .dday-banner-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
  }
  .dday-card {
    background: linear-gradient(135deg, rgba(21, 31, 50, 0.85), rgba(13, 21, 38, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  .dday-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
  }
  .dday-card-urgent::before {
    background: linear-gradient(to bottom, #f43f5e, #ef4444);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
  }
  .dday-card-warning::before {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  }
  .dday-card-normal::before {
    background: linear-gradient(to bottom, #38bdf8, #0284c7);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  }
  .dday-card-passed::before {
    background: #64748b;
  }

  .dday-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  }
  .dday-tag-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .dday-tag-urgent { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
  .dday-tag-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
  .dday-tag-normal { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
  .dday-tag-passed { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }

  .dday-badge {
    font-size: 1.18rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 12px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dday-badge-urgent {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
    animation: pulse-glow 2s infinite ease-in-out;
  }
  .dday-badge-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  }
  .dday-badge-normal {
    background: rgba(56, 189, 248, 0.15);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
  }
  .dday-badge-passed {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
  }
  @keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(244, 63, 94, 0.25); }
    50% { transform: scale(1.03); box-shadow: 0 0 18px rgba(244, 63, 94, 0.5); }
  }
  .notice-card {
    background-color: var(--card-inner);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--accent-emerald);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: background-color 0.15s;
  }
  .notice-card:hover {
    background-color: rgba(16, 185, 129, 0.06);
  }
  .stat-badge {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .stat-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
  }
  .stat-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
  }
  .stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
  }
  .stat-unauth {
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 8px;
    color: #f87171;
  }
  .period-badge {
    font-size: 0.88rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
  }
  .form-control, .form-select {
    background-color: var(--card-inner);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .form-control:focus, .form-select:focus {
    background-color: var(--card-inner);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.2);
  }
  @keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
  }
  .shake-input {
    animation: shake-anim 0.35s ease-in-out !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.35) !important;
  }
  /* 📋 학급 신청시스템 다채로운 입력 방식(O/X, 객관식, 금액 등) 전용 스타일 */
  .input-type-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }
  .input-type-card:hover {
    border-color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
  }
  .input-type-card.active {
    border-color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(30, 41, 59, 0.9));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  }
  /* 📋 교사 신청시스템 관리 UI 개선 */
  .teacher-app-workflow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 0.5rem;
  }
  .teacher-app-workflow-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    transition: all 0.2s ease;
  }
  .teacher-app-workflow-step.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
  }
  .teacher-app-workflow-step.done {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
  }
  .teacher-app-workflow-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: #334155;
    color: #e2e8f0;
  }
  .teacher-app-workflow-step.active .step-num { background: #0ea5e9; color: #fff; }
  .teacher-app-workflow-step.done .step-num { background: #16a34a; color: #fff; }
  .teacher-app-workflow-step .step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
  }
  .teacher-app-workflow-arrow {
    color: #64748b;
    font-size: 0.75rem;
  }
  .teacher-app-status-banner {
    background: rgba(15, 23, 42, 0.85);
    border-color: #334155 !important;
  }
  .teacher-app-status-banner.status-off { border-left: 4px solid #64748b !important; }
  .teacher-app-status-banner.status-waiting { border-left: 4px solid #f59e0b !important; }
  .teacher-app-status-banner.status-active { border-left: 4px solid #22c55e !important; }
  .teacher-app-status-banner.status-closed { border-left: 4px solid #ef4444 !important; }
  .teacher-app-stat-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .teacher-app-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  .teacher-app-stat-card.stat-filter-active {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
  }
  tr.teacher-app-row-unsubmitted td {
    background: rgba(245, 158, 11, 0.06);
  }
  #btnSaveAppConfig.btn-unsaved-pulse {
    animation: unsaved-pulse 1.5s ease-in-out infinite;
  }
  @keyframes unsaved-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  }
  /* 📢 교사 알림장/D-Day 관리 UI */
  .teacher-notice-workflow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 0.5rem;
  }
  .teacher-notice-workflow-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    transition: all 0.2s ease;
  }
  .teacher-notice-workflow-step.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
  }
  .teacher-notice-workflow-step.done {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
  }
  .teacher-notice-workflow-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: #334155;
    color: #e2e8f0;
  }
  .teacher-notice-workflow-step.active .step-num { background: #16a34a; color: #fff; }
  .teacher-notice-workflow-step.done .step-num { background: #15803d; color: #fff; }
  .teacher-notice-workflow-step .step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
  }
  .teacher-notice-workflow-arrow { color: #64748b; font-size: 0.75rem; }
  .teacher-notice-status-banner {
    background: rgba(15, 23, 42, 0.85);
    border-color: #334155 !important;
    border-left: 4px solid #22c55e !important;
  }
  .teacher-notice-editor-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.65rem;
  }
  .teacher-notice-editor-card .dday-preview-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  #btnSaveNotice.btn-unsaved-pulse {
    animation: unsaved-pulse-green 1.5s ease-in-out infinite;
  }
  @keyframes unsaved-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  }
  .ox-choice-btn {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border-width: 2px !important;
    background: rgba(15, 23, 42, 0.7);
  }
  .ox-choice-btn:hover {
    transform: translateY(-2px);
  }
  .ox-choice-btn.selected-o {
    background: linear-gradient(135deg, #15803d, #166534) !important;
    color: #ffffff !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
  }
  .ox-choice-btn.selected-x {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
  }
  .choice-pill-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #e2e8f0;
    transition: all 0.15s ease;
    cursor: pointer;
  }
  .choice-pill-btn:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
  }
  .choice-pill-btn.active {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  }
  .quick-preset-chip {
    cursor: pointer;
    transition: all 0.15s;
  }
  .quick-preset-chip:hover {
    transform: scale(1.05);
  }
  .nav-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }
  .nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px 10px 0 0;
    transition: all 0.15s;
  }
  .nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-tabs .nav-link.active {
    color: var(--accent-blue);
    background: var(--card-inner);
    border-bottom: 3px solid var(--accent-blue);
    font-weight: 700;
  }
  .status-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  .badge-present { background-color: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
  .badge-unauth { background-color: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
  .badge-disease { background-color: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
  .badge-auth { background-color: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.4); }
  .badge-etc { background-color: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
  .badge-absent-null { background-color: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.4); }
  .period-tag {
    font-size: 0.75rem;
    background-color: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
  }
  .report-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
  }
  .report-done {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
  }
  .report-pending {
    background-color: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
  }
  .report-none {
    background-color: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
  }
  .reason-btn, .preset-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--card-inner);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  .reason-btn:hover, .preset-btn:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #082f49;
    font-weight: 700;
    transform: translateY(-1px);
  }
  .preset-btn {
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
  }
  .student-month-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
  }
  .month-pill-btn {
    background-color: var(--card-inner);
    color: #94a3b8;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
  }
  .month-pill-btn:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.4);
  }
  .month-pill-btn.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #082f49;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
  }
  .meal-box {
    background: linear-gradient(135deg, rgba(21, 31, 50, 0.95), rgba(13, 21, 38, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    height: 100%;
    box-shadow: var(--card-shadow);
  }
  .meal-item-tag {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin: 3px;
    font-weight: 500;
  }
  .student-special-item {
    background-color: var(--card-inner);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-amber);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: transform 0.15s;
  }
  .student-special-item:hover {
    transform: translateX(2px);
  }
  .matrix-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-inner);
  }
  .matrix-table {
    margin-bottom: 0;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .matrix-table th, .matrix-table td {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--border-color);
  }
  .sticky-col {
    position: sticky;
    left: 0;
    background-color: var(--card-bg) !important;
    z-index: 2;
  }
  .col-sat { color: #60a5fa !important; background-color: rgba(59, 130, 246, 0.06); }
  .col-sun { color: #f87171 !important; background-color: rgba(239, 68, 68, 0.06); }
  .cell-badge {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s;
  }
  .cell-badge:hover {
    transform: scale(1.15);
  }
  .cell-badge.has-missing-report {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.95), 0 0 8px rgba(239, 68, 68, 0.35);
  }
  .cell-report-missing {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 15px;
    letter-spacing: -0.02em;
    border: 2px solid var(--card-inner);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
  }
  .matrix-legend {
    row-gap: 8px;
    column-gap: 8px;
    padding: 4px 2px;
    width: 100%;
    overflow: visible;
  }
  .matrix-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
  }
  .matrix-legend .cell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    line-height: 1;
    padding: 0;
    cursor: default;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  .matrix-legend .cell-badge:hover {
    transform: none;
  }
  .matrix-legend-missing-item .cell-badge {
    position: relative;
    overflow: visible;
  }
  .matrix-legend-missing {
    position: absolute;
    top: -5px;
    right: -5px;
    pointer-events: none;
  }
  .matrix-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.06));
    border: 1px solid var(--border-color);
  }
  .matrix-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 4px 10px;
  }
  .matrix-summary-item .val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .matrix-summary-item .lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
  }
  .matrix-empty-state {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
  }
  .matrix-table .col-today {
    background-color: rgba(59, 130, 246, 0.12) !important;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
  }
  .matrix-table .col-future {
    opacity: 0.45;
  }
  .matrix-table tr.matrix-row-hidden {
    display: none;
  }
  .day-report-card {
    background-color: var(--card-inner);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
  }
  .day-report-title {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.98rem;
    margin-bottom: 8px;
  }
  .day-student-row {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
  }
  .day-student-row:last-child {
    border-bottom: none;
  }
  .summary-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(239, 68, 68, 0.06));
    border: 1px solid var(--border-color);
  }
  .summary-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 4px 10px;
  }
  .summary-stats-item .val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .summary-stats-item .lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
  }
  .summary-toolbar {
    row-gap: 8px;
  }
  .day-student-row.is-clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 8px;
    margin: 0 -8px;
    transition: background-color 0.15s;
  }
  .day-student-row.is-clickable:hover {
    background-color: rgba(255, 255, 255, 0.04);
  }
  .warning-alert-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(13, 21, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 5px solid #ef4444;
    border-radius: 14px;
    padding: 16px 20px;
  }
  .safe-alert-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(13, 21, 38, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-left: 5px solid #10b981;
    border-radius: 14px;
    padding: 16px 20px;
  }
  
  /* 📊 실시간 출결 현황 요약 통계 배너 */
  .live-summary-banner {
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.25s ease;
  }
  .live-summary-perfect {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
  }
  .live-summary-partial {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.3);
  }
  .live-stat-chip {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }
  .live-chip-present { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
  .live-chip-unauth { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
  .live-chip-late { background: rgba(234, 179, 8, 0.18); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
  .live-chip-early { background: rgba(249, 115, 22, 0.18); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
  .live-chip-absent { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
  .live-chip-unregistered { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
  
  /* 📱 모바일 하단 플로팅 퀵바 (화면 하단 항시 고정 및 모바일 터치 최적화) */
  .mobile-quick-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
    z-index: 1040;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.55);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  @media (min-width: 992px) {
    .mobile-quick-nav {
      display: none !important;
    }
  }
  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 4px 2px;
    min-height: 48px;
    transition: color 0.15s ease, transform 0.1s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-btn i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
  }
  .mobile-nav-btn.active, .mobile-nav-btn:hover {
    color: #38bdf8;
  }
  .mobile-nav-btn.active i {
    color: #38bdf8;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
  }
  .mobile-nav-btn:active {
    transform: scale(0.92);
  }

  /* 🖥️ PC 버전 강제 모드 스타일 (모바일 및 삼성인터넷 바로가기에서 PC모드 선택 시) */
  html.pc-view-mode, body.pc-view-mode {
    min-width: 1200px !important;
    width: 1200px !important;
    margin: 0 auto !important;
    overflow-x: auto !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  html.pc-view-mode .container {
    min-width: 1140px !important;
    max-width: 1180px !important;
    width: 1180px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  html.pc-view-mode body {
    padding-bottom: 50px !important;
  }
  html.pc-view-mode .mobile-quick-nav {
    display: none !important;
  }
  html.pc-view-mode .calendar-day-cell {
    min-height: 105px !important;
  }

  /* 📱/🖥️ 플로팅 화면 모드 전환 버튼 (PC 모드 활성화 시 모바일 기기 화면 우측 하단에 고정 노출) */
  .floating-mode-switch-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    touch-action: manipulation;
  }
  .floating-mode-switch-btn:hover, .floating-mode-switch-btn:focus {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(2, 132, 199, 0.65);
    color: #fff;
  }
  html.pc-view-mode .floating-mode-switch-btn {
    display: inline-flex !important;
  }

  /* ========================================================================= */
  /* ☀️ [고대비 선명 라이트 테마 - 전용 색상 및 가독성 엔진]                  */
  /* ========================================================================= */
  
  /* 1. 배경 및 기본 텍스트 (눈이 편안한 밝은 슬레이트 캔버스 & 딥 네이비 본문) */
  html[data-theme="light"] body,
  body.theme-light {
    background-color: #f1f5f9 !important;
    background-image: 
      radial-gradient(at 10% 10%, rgba(2, 132, 199, 0.05) 0px, transparent 50%),
      radial-gradient(at 90% 90%, rgba(5, 150, 105, 0.04) 0px, transparent 50%) !important;
    color: #0f172a !important;
  }

  /* 2. [가장 핵심] Bootstrap의 .text-white, .text-light 강제 흰색 해제 */
  /* (버튼, 컬러 배지, 토스트, 캘린더 이벤트 태그를 제외한 모든 요소를 딥 네이비(#0f172a)로 자동 전환) */
  html[data-theme="light"] .text-white:not(.btn):not(.btn *):not(.badge.bg-primary):not(.badge.bg-primary *):not(.badge.bg-success):not(.badge.bg-success *):not(.badge.bg-danger):not(.badge.bg-danger *):not(.badge.bg-secondary):not(.badge.bg-secondary *):not(.toast):not(.toast *):not(.calendar-event-tag):not(.calendar-event-tag *),
  html[data-theme="light"] .text-light:not(.btn):not(.btn *):not(.badge.bg-primary):not(.badge.bg-primary *):not(.badge.bg-success):not(.badge.bg-success *):not(.badge.bg-danger):not(.badge.bg-danger *):not(.badge.bg-secondary):not(.badge.bg-secondary *):not(.toast):not(.toast *):not(.calendar-event-tag):not(.calendar-event-tag *),
  html[data-theme="light"] .text-white-50:not(.btn *):not(.badge *),
  html[data-theme="light"] .text-light-50:not(.btn *):not(.badge *) {
    color: #0f172a !important;
  }

  /* 3. 제목 및 헤딩 요소 가독성 */
  html[data-theme="light"] h1:not(.btn *),
  html[data-theme="light"] h2:not(.btn *),
  html[data-theme="light"] h3:not(.btn *),
  html[data-theme="light"] h4:not(.btn *),
  html[data-theme="light"] h5:not(.btn *),
  html[data-theme="light"] h6:not(.btn *) {
    color: #0f172a !important;
  }

  /* 4. 시인성 최적화 컬러 유틸리티 오버라이드 (밝은 배경 전용 고대비 색상) */
  html[data-theme="light"] .text-info {
    color: #0284c7 !important; /* 종전 연한 하늘색을 선명한 딥 오션블루로 보정 */
  }
  html[data-theme="light"] .text-warning {
    color: #b45309 !important; /* 종전 노란색을 눈에 확 띄는 앰버 브라운으로 보정 */
  }
  html[data-theme="light"] .text-secondary {
    color: #475569 !important; /* 슬레이트-600 */
  }
  html[data-theme="light"] .text-muted {
    color: #64748b !important; /* 슬레이트-500 */
  }
  html[data-theme="light"] small.text-secondary,
  html[data-theme="light"] .small.text-secondary {
    color: #475569 !important;
    font-weight: 600;
  }

  /* 5. 카드 및 대시보드 컨테이너 */
  html[data-theme="light"] .card-custom {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
  }
  html[data-theme="light"] .card-custom.border-primary {
    border-color: #93c5fd !important;
  }
  html[data-theme="light"] .card-custom.border-warning {
    border-color: #fcd34d !important;
  }
  html[data-theme="light"] .card-custom.border-success {
    border-color: #86efac !important;
  }
  html[data-theme="light"] .card-custom.border-danger {
    border-color: #fca5a5 !important;
  }

  /* 6. 어두운 배경 유틸리티(.bg-dark, .bg-black)를 라이트 톤으로 전환 */
  html[data-theme="light"] .bg-dark:not(.btn):not(.badge.bg-dark) {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .bg-black {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] [style*="background-color: #1e293b"],
  html[data-theme="light"] [style*="background-color:#1e293b"],
  html[data-theme="light"] [style*="background: #1e293b"],
  html[data-theme="light"] [style*="background:#1e293b"],
  html[data-theme="light"] [style*="background-color: #0b1329"],
  html[data-theme="light"] [style*="background-color:#0b1329"],
  html[data-theme="light"] [style*="rgba(15, 23, 42"],
  html[data-theme="light"] [style*="rgba(15,23,42"] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .border-secondary {
    border-color: #cbd5e1 !important;
  }

  /* 7. 📋 [학급 신청시스템] 배너, 안내문, 요약 박스 고대비 최적화 */
  html[data-theme="light"] #studentApplicationBannerCard {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1.5px solid #7dd3fc !important;
    border-left: 6px solid #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
  }
  html[data-theme="light"] #studentAppTitleDisplay {
    color: #0f172a !important;
  }
  html[data-theme="light"] .app-desc-highlight-box {
    background: #eff6ff !important;
    border: 1.5px solid #93c5fd !important;
    border-left: 5px solid #2563eb !important;
    color: #1e3a8a !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
  }
  html[data-theme="light"] .app-summary-box {
    background: #ffffff !important;
    border: 1.5px dashed #0284c7 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }
  html[data-theme="light"] .summary-label {
    color: #0369a1 !important;
  }
  html[data-theme="light"] .summary-val {
    color: #0f172a !important;
  }
  html[data-theme="light"] #studentAppSummaryOption {
    color: #0f172a !important;
  }
  html[data-theme="light"] #studentAppSummaryContent {
    color: #0284c7 !important;
  }
  html[data-theme="light"] #studentAppAdminNoteText {
    color: #0f172a !important;
  }

  /* 8. 팝업 모달 다이얼로그 가독성 */
  html[data-theme="light"] .modal-content {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15) !important;
  }
  html[data-theme="light"] .modal-content.bg-dark {
    background-color: #ffffff !important;
  }
  html[data-theme="light"] .modal-header {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .modal-footer {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .modal-title {
    color: #0284c7 !important;
  }
  html[data-theme="light"] .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(15%) !important;
  }
  html[data-theme="light"] .modal-instruction-box {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #d97706 !important;
  }
  html[data-theme="light"] .modal-instruction-text {
    color: #78350f !important;
  }
  html[data-theme="light"] #studentAppModal .modal-body > div:first-child {
    background-color: #f0f9ff !important;
    border: 1.5px solid #7dd3fc !important;
  }
  html[data-theme="light"] #modalAppStudentName {
    color: #0f172a !important;
  }

  /* 9. 입력 폼 & 셀렉트 박스 */
  html[data-theme="light"] .form-control,
  html[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #94a3b8 !important;
  }
  html[data-theme="light"] .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
  }
  html[data-theme="light"] .form-control:focus,
  html[data-theme="light"] .form-select:focus {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 0.25rem rgba(2, 132, 199, 0.2) !important;
  }
  html[data-theme="light"] option {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] #dailyPinInput {
    background-color: #ffffff !important;
    color: #b45309 !important;
    border-color: #f59e0b !important;
  }

  /* 10. 테이블 가독성 */
  html[data-theme="light"] .table-dark {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .table-dark > :not(caption) > * > * {
    background-color: transparent !important;
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .table-dark th {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    font-weight: 700 !important;
  }
  html[data-theme="light"] .table-dark td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .table-hover > tbody > tr:hover > * {
    background-color: #f8fafc !important;
    color: #0f172a !important;
  }

  /* 11. 버튼 & 아웃라인 버튼 & 배지 */
  html[data-theme="light"] .btn-outline-light {
    color: #1e293b !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }
  html[data-theme="light"] .btn-outline-light:hover,
  html[data-theme="light"] .btn-outline-light:focus {
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
  }
  html[data-theme="light"] .btn-outline-secondary {
    color: #334155 !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .btn-outline-secondary:hover {
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
  }
  html[data-theme="light"] .badge.bg-dark {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .badge.bg-dark .text-info {
    color: #0284c7 !important;
  }
  html[data-theme="light"] .badge.bg-secondary {
    background-color: #64748b !important;
    color: #ffffff !important;
  }

  /* 12. 캘린더, 급식 식단, D-Day, 알림장 컴포넌트 */
  html[data-theme="light"] .calendar-day-cell {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .calendar-day-cell:hover {
    background: #f8fafc !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .calendar-day-num {
    color: #0f172a !important;
    font-weight: 700 !important;
  }
  html[data-theme="light"] .calendar-header-cell {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .schedule-tab-nav {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .schedule-month-btn {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
  }
  html[data-theme="light"] .schedule-month-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .schedule-timeline-item,
  html[data-theme="light"] .schedule-dday-card,
  html[data-theme="light"] .dday-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .schedule-timeline-item:hover,
  html[data-theme="light"] .schedule-dday-card:hover,
  html[data-theme="light"] .dday-card:hover {
    background: #f8fafc !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .dday-title {
    color: #0f172a !important;
  }
  html[data-theme="light"] .stat-badge {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }
  html[data-theme="light"] .stat-badge .stat-badge-num {
    color: #0f172a !important;
  }
  html[data-theme="light"] .notice-card {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-left-color: #059669 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .meal-box {
    background: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .meal-item-tag {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
  }
  html[data-theme="light"] .month-pill-btn {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .month-pill-btn.active {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .student-special-item {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    border-left-color: #d97706 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .matrix-container {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .choice-pill-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
  }
  html[data-theme="light"] .choice-pill-btn:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .choice-pill-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .ox-choice-btn {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .ox-choice-btn.selected-o,
  html[data-theme="light"] .ox-choice-btn.selected-o * {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    border-color: #15803d !important;
  }
  html[data-theme="light"] .ox-choice-btn.selected-x,
  html[data-theme="light"] .ox-choice-btn.selected-x * {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
  }
  html[data-theme="light"] .quick-preset-chip {
    background: #ffffff !important;
    color: #0284c7 !important;
    border-color: #7dd3fc !important;
  }
  html[data-theme="light"] .quick-preset-chip:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .input-group-text {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
  }
  html[data-theme="light"] #teacherDashboard {
    background-color: #ffffff !important;
    border-color: #d97706 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .mobile-quick-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .mobile-nav-btn {
    color: #475569 !important;
  }
  html[data-theme="light"] .mobile-nav-btn.active {
    color: #0284c7 !important;
  }
  html[data-theme="light"] #headerSubtitleText {
    color: #475569 !important;
    font-weight: 500 !important;
  }

  /* 13. 라이트 모드 — 저대비 블록·칩·워크플로 추가 보정 */
  html[data-theme="light"] .calendar-header-cell.calendar-header-sun,
  body.theme-light .calendar-header-cell.calendar-header-sun {
    color: #be123c !important;
    background: #ffe4e6 !important;
    border-color: #fda4af !important;
  }
  html[data-theme="light"] .calendar-header-cell.calendar-header-sat,
  body.theme-light .calendar-header-cell.calendar-header-sat {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-sun,
  body.theme-light .calendar-day-cell.is-sun {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-sun .calendar-day-num,
  body.theme-light .calendar-day-cell.is-sun .calendar-day-num {
    color: #be123c !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-sat,
  body.theme-light .calendar-day-cell.is-sat {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-sat .calendar-day-num,
  body.theme-light .calendar-day-cell.is-sat .calendar-day-num {
    color: #0369a1 !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-holiday,
  body.theme-light .calendar-day-cell.is-holiday {
    background: linear-gradient(135deg, #ffe4e6, #fff1f2) !important;
    border-color: #fda4af !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-holiday .calendar-day-num,
  body.theme-light .calendar-day-cell.is-holiday .calendar-day-num {
    color: #be123c !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-today,
  body.theme-light .calendar-day-cell.is-today {
    background: linear-gradient(135deg, #fef3c7, #fffbeb) !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25) !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-today .calendar-day-num,
  body.theme-light .calendar-day-cell.is-today .calendar-day-num {
    color: #b45309 !important;
  }
  html[data-theme="light"] .calendar-day-cell.is-other-month,
  body.theme-light .calendar-day-cell.is-other-month {
    background: #f1f5f9 !important;
    opacity: 0.72 !important;
  }
  html[data-theme="light"] .event-chip-exam,
  body.theme-light .event-chip-exam {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-left-color: #dc2626 !important;
  }
  html[data-theme="light"] .event-chip-vacation,
  body.theme-light .event-chip-vacation {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-left-color: #059669 !important;
  }
  html[data-theme="light"] .event-chip-holiday,
  body.theme-light .event-chip-holiday {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-left-color: #d97706 !important;
  }
  html[data-theme="light"] .event-chip-event,
  body.theme-light .event-chip-event {
    background: #e0f2fe !important;
    color: #075985 !important;
    border-left-color: #0284c7 !important;
  }
  html[data-theme="light"] .event-chip-other,
  body.theme-light .event-chip-other {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border-left-color: #7c3aed !important;
  }
  html[data-theme="light"] .holiday-mini-pill,
  body.theme-light .holiday-mini-pill {
    background: #fecdd3 !important;
    color: #9f1239 !important;
  }

  html[data-theme="light"] .dday-tag-urgent,
  body.theme-light .dday-tag-urgent { background: #ffe4e6 !important; color: #be123c !important; border-color: #fda4af !important; }
  html[data-theme="light"] .dday-tag-warning,
  body.theme-light .dday-tag-warning { background: #fef3c7 !important; color: #b45309 !important; border-color: #fcd34d !important; }
  html[data-theme="light"] .dday-tag-normal,
  body.theme-light .dday-tag-normal { background: #e0f2fe !important; color: #0369a1 !important; border-color: #7dd3fc !important; }
  html[data-theme="light"] .dday-tag-passed,
  body.theme-light .dday-tag-passed { background: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }
  html[data-theme="light"] .dday-badge-urgent,
  body.theme-light .dday-badge-urgent { background: #ffe4e6 !important; color: #be123c !important; border-color: #f43f5e !important; }
  html[data-theme="light"] .dday-badge-warning,
  body.theme-light .dday-badge-warning { background: #fef3c7 !important; color: #b45309 !important; border-color: #d97706 !important; }
  html[data-theme="light"] .dday-badge-normal,
  body.theme-light .dday-badge-normal { background: #e0f2fe !important; color: #0369a1 !important; border-color: #0284c7 !important; }
  html[data-theme="light"] .dday-badge-passed,
  body.theme-light .dday-badge-passed { background: #f1f5f9 !important; color: #475569 !important; border-color: #94a3b8 !important; }

  html[data-theme="light"] .teacher-app-workflow,
  html[data-theme="light"] .teacher-notice-workflow,
  body.theme-light .teacher-app-workflow,
  body.theme-light .teacher-notice-workflow {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .teacher-app-workflow-step,
  html[data-theme="light"] .teacher-notice-workflow-step,
  body.theme-light .teacher-app-workflow-step,
  body.theme-light .teacher-notice-workflow-step {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }
  html[data-theme="light"] .teacher-app-workflow-step .step-label,
  html[data-theme="light"] .teacher-notice-workflow-step .step-label,
  body.theme-light .teacher-app-workflow-step .step-label,
  body.theme-light .teacher-notice-workflow-step .step-label {
    color: #334155 !important;
  }
  html[data-theme="light"] .teacher-app-workflow-step .step-num,
  html[data-theme="light"] .teacher-notice-workflow-step .step-num,
  body.theme-light .teacher-app-workflow-step .step-num,
  body.theme-light .teacher-notice-workflow-step .step-num {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .teacher-app-status-banner,
  html[data-theme="light"] .teacher-notice-status-banner,
  body.theme-light .teacher-app-status-banner,
  body.theme-light .teacher-notice-status-banner {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .teacher-notice-editor-card,
  body.theme-light .teacher-notice-editor-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .input-type-card,
  body.theme-light .input-type-card {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  html[data-theme="light"] .input-type-card:hover,
  body.theme-light .input-type-card:hover {
    background-color: #f0f9ff !important;
    border-color: #0284c7 !important;
  }
  html[data-theme="light"] .input-type-card.active,
  body.theme-light .input-type-card.active {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.25) !important;
  }

  html[data-theme="light"] .nav-tabs .nav-link,
  body.theme-light .nav-tabs .nav-link {
    color: #64748b !important;
  }
  html[data-theme="light"] .nav-tabs .nav-link:hover,
  body.theme-light .nav-tabs .nav-link:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
  }
  html[data-theme="light"] .nav-tabs .nav-link.active,
  body.theme-light .nav-tabs .nav-link.active {
    color: #0284c7 !important;
    background: #ffffff !important;
  }
  html[data-theme="light"] .schedule-tab-nav .btn:not(.active),
  body.theme-light .schedule-tab-nav .btn:not(.active) {
    color: #475569 !important;
  }

  html[data-theme="light"] .reason-btn,
  html[data-theme="light"] .preset-btn,
  body.theme-light .reason-btn,
  body.theme-light .preset-btn {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
  }
  html[data-theme="light"] .preset-btn,
  body.theme-light .preset-btn {
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
  }
  html[data-theme="light"] .reason-btn:hover,
  html[data-theme="light"] .preset-btn:hover,
  body.theme-light .reason-btn:hover,
  body.theme-light .preset-btn:hover {
    color: #ffffff !important;
  }

  html[data-theme="light"] .warning-alert-card,
  body.theme-light .warning-alert-card {
    background: linear-gradient(135deg, #fef2f2, #fff1f2) !important;
    border-color: #fca5a5 !important;
    color: #7f1d1d !important;
  }
  html[data-theme="light"] .safe-alert-card,
  body.theme-light .safe-alert-card {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
    border-color: #6ee7b7 !important;
    color: #065f46 !important;
  }
  html[data-theme="light"] .live-summary-perfect,
  body.theme-light .live-summary-perfect {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border-color: #6ee7b7 !important;
  }
  html[data-theme="light"] .live-summary-partial,
  body.theme-light .live-summary-partial {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe) !important;
    border-color: #7dd3fc !important;
  }
  html[data-theme="light"] .live-chip-present,
  body.theme-light .live-chip-present { background: #d1fae5 !important; color: #047857 !important; border-color: #6ee7b7 !important; }
  html[data-theme="light"] .live-chip-unauth,
  html[data-theme="light"] .live-chip-absent,
  body.theme-light .live-chip-unauth,
  body.theme-light .live-chip-absent { background: #fee2e2 !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
  html[data-theme="light"] .live-chip-late,
  body.theme-light .live-chip-late { background: #fef3c7 !important; color: #b45309 !important; border-color: #fcd34d !important; }
  html[data-theme="light"] .live-chip-early,
  body.theme-light .live-chip-early { background: #ffedd5 !important; color: #c2410c !important; border-color: #fdba74 !important; }
  html[data-theme="light"] .live-chip-unregistered,
  body.theme-light .live-chip-unregistered { background: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }

  html[data-theme="light"] .badge-present,
  body.theme-light .badge-present { background-color: #d1fae5 !important; color: #047857 !important; border-color: #6ee7b7 !important; }
  html[data-theme="light"] .badge-unauth,
  body.theme-light .badge-unauth { background-color: #fee2e2 !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
  html[data-theme="light"] .badge-disease,
  body.theme-light .badge-disease { background-color: #ede9fe !important; color: #6d28d9 !important; border-color: #c4b5fd !important; }
  html[data-theme="light"] .badge-auth,
  body.theme-light .badge-auth { background-color: #cffafe !important; color: #0e7490 !important; border-color: #67e8f9 !important; }
  html[data-theme="light"] .badge-etc,
  body.theme-light .badge-etc { background-color: #fef3c7 !important; color: #b45309 !important; border-color: #fcd34d !important; }
  html[data-theme="light"] .badge-absent-null,
  body.theme-light .badge-absent-null { background-color: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }

  html[data-theme="light"] .report-done,
  body.theme-light .report-done { background-color: #d1fae5 !important; color: #047857 !important; border-color: #6ee7b7 !important; }
  html[data-theme="light"] .report-pending,
  body.theme-light .report-pending { background-color: #fef3c7 !important; color: #b45309 !important; border-color: #fcd34d !important; }
  html[data-theme="light"] .report-none,
  body.theme-light .report-none { background-color: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }

  html[data-theme="light"] .period-tag,
  body.theme-light .period-tag { background-color: #e0f2fe !important; color: #0369a1 !important; border-color: #7dd3fc !important; }
  html[data-theme="light"] .matrix-legend-item,
  body.theme-light .matrix-legend-item {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0;
  }
  html[data-theme="light"] .matrix-empty-state,
  body.theme-light .matrix-empty-state {
    background-color: #f8fafc !important;
    color: #64748b !important;
  }
  html[data-theme="light"] .day-student-row.is-clickable:hover,
  body.theme-light .day-student-row.is-clickable:hover {
    background-color: #f1f5f9 !important;
  }
  html[data-theme="light"] .config-pin-type-personal,
  body.theme-light .config-pin-type-personal {
    background: #f0f9ff !important;
    border-color: #7dd3fc !important;
  }
  html[data-theme="light"] .config-pin-type-daily,
  body.theme-light .config-pin-type-daily {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
  }
  html[data-theme="light"] .banner-admin-image-preview,
  body.theme-light .banner-admin-image-preview {
    background: #e2e8f0 !important;
    border: 1px dashed #94a3b8;
  }

  /* 🎪 학교 행사 / 이벤트 배너 카드 스타일 */
  .banner-settings-step {
    margin-bottom: 1rem;
  }
  .banner-settings-step-title {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  .banner-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
  }
  .banner-source-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.875rem;
    margin: 0;
  }
  .banner-source-option:hover {
    background: rgba(56, 189, 248, 0.08);
  }
  .banner-source-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
  }
  .banner-admin-image-preview {
    width: 100%;
    min-height: 140px;
    background: rgba(15, 23, 42, 0.8);
  }
  html[data-theme="light"] .banner-settings-step-title {
    color: #0f172a !important;
  }

  /* ⚙️ 환경설정·PIN 탭 */
  .config-settings-step {
    margin-bottom: 1rem;
  }
  .letter-spacing-pin {
    letter-spacing: 0.35rem;
    font-variant-numeric: tabular-nums;
  }
  .config-pin-type-card {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    height: 100%;
  }
  .config-pin-type-personal {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.06);
  }
  .config-pin-type-daily {
    border-color: rgba(234, 179, 8, 0.45);
    background: rgba(234, 179, 8, 0.06);
  }
  .roster-pin-input.roster-pin-default {
    border-color: #eab308 !important;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
  }
  .roster-pin-table tr.roster-row-default td {
    background: rgba(234, 179, 8, 0.04);
  }
  html[data-theme="light"] .config-pin-type-card,
  body.theme-light .config-pin-type-card {
    background: rgba(248, 250, 252, 0.95);
  }
  html[data-theme="light"] .banner-source-option {
    color: #0f172a !important;
  }
  .festival-event-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid #38bdf8;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.22);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    cursor: pointer;
    overflow: hidden;
  }
  .festival-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(56, 189, 248, 0.35);
    border-color: #60a5fa;
  }
  .festival-event-card:active {
    transform: scale(0.995);
  }
  .festival-badge-pulse {
    animation: festivalPulse 2.2s infinite;
  }
  @keyframes festivalPulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
  }
  .festival-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
  }
  html[data-theme="light"] .festival-event-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.25) !important;
  }
  html[data-theme="light"] .festival-event-card .text-white {
    color: #0f172a !important;
  }

  /* 🔍 고화질 확대 라이트박스 뷰어 스타일 */
  .banner-viewer-modal .modal-dialog {
    max-width: 96vw;
    margin: 1.5vh auto;
    height: 97vh;
  }
  .banner-viewer-modal .modal-content {
    height: 100%;
    background: #090d16;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }
  .banner-viewer-modal .modal-body {
    flex: 1 1 auto;
    height: calc(100% - 56px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  #paneBannerMap {
    flex: 1 1 auto;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  html[data-theme="light"] .banner-viewer-modal .modal-content {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }
  .banner-viewer-viewport {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
    cursor: grab;
    user-select: none;
    touch-action: none;
  }
  .banner-viewer-viewport.grabbing {
    cursor: grabbing;
  }
  html[data-theme="light"] .banner-viewer-viewport {
    background: radial-gradient(circle at 50% 50%, #e2e8f0 0%, #cbd5e1 100%) !important;
  }
  .banner-transform-layer {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    transition: transform 0.05s ease-out;
  }
  .banner-floating-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 40px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  html[data-theme="light"] .banner-floating-toolbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  }
  .banner-floating-toolbar .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 4px 10px;
  }
  .banner-nav-tab-btn {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    color: #94a3b8;
    border: none;
    background: transparent;
    transition: all 0.15s ease;
  }
  .banner-nav-tab-btn.active {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
  }
  html[data-theme="light"] .banner-nav-tab-btn {
    color: #475569;
  }
  html[data-theme="light"] .banner-nav-tab-btn.active {
    color: #ffffff !important;
  }

  .cal-dow-short { display: none; }

  /* 📱 좁은 화면 전용. 데스크톱(992px 이상)과 PC버전 모드는 기존 레이아웃을 유지한다. */
  @media (max-width: 991.98px) {
    html:not(.pc-view-mode),
    html:not(.pc-view-mode) body {
      overflow-x: clip;
      max-width: 100%;
    }
    html:not(.pc-view-mode) body {
      word-break: keep-all;
      overflow-wrap: break-word;
    }
    html:not(.pc-view-mode) .container {
      max-width: 100%;
      padding-left: 12px;
      padding-right: 12px;
    }
    html:not(.pc-view-mode) .row > [class*="col-"],
    html:not(.pc-view-mode) .card-custom,
    html:not(.pc-view-mode) .meal-box,
    html:not(.pc-view-mode) .festival-event-card,
    html:not(.pc-view-mode) .modal-dialog,
    html:not(.pc-view-mode) .tab-pane,
    html:not(.pc-view-mode) .tab-content {
      min-width: 0;
      max-width: 100%;
    }

    html:not(.pc-view-mode) h1,
    html:not(.pc-view-mode) h2,
    html:not(.pc-view-mode) h3,
    html:not(.pc-view-mode) h4,
    html:not(.pc-view-mode) h5,
    html:not(.pc-view-mode) h6,
    html:not(.pc-view-mode) p,
    html:not(.pc-view-mode) li,
    html:not(.pc-view-mode) label,
    html:not(.pc-view-mode) .alert,
    html:not(.pc-view-mode) .notice-card,
    html:not(.pc-view-mode) .app-desc-highlight-box,
    html:not(.pc-view-mode) .modal-title,
    html:not(.pc-view-mode) .modal-body {
      overflow-wrap: break-word;
      max-width: 100%;
    }
    html:not(.pc-view-mode) .text-truncate {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      max-width: 100% !important;
    }
    html:not(.pc-view-mode) .text-nowrap {
      white-space: normal !important;
    }
    html:not(.pc-view-mode) .badge,
    html:not(.pc-view-mode) .period-badge,
    html:not(.pc-view-mode) .status-badge,
    html:not(.pc-view-mode) .live-stat-chip,
    html:not(.pc-view-mode) .dday-badge {
      white-space: normal;
      max-width: 100%;
      min-width: 0;
      height: auto;
      overflow-wrap: anywhere;
    }

    html:not(.pc-view-mode) .card-custom {
      padding: 16px 14px;
      margin-bottom: 14px;
      border-radius: 14px;
    }
    html:not(.pc-view-mode) .meal-box,
    html:not(.pc-view-mode) .festival-event-card,
    html:not(.pc-view-mode) .notice-card,
    html:not(.pc-view-mode) .day-report-card,
    html:not(.pc-view-mode) .warning-alert-card,
    html:not(.pc-view-mode) .safe-alert-card {
      padding: 14px 12px;
    }
    html:not(.pc-view-mode) .dday-card {
      min-width: min(250px, 88%);
    }
    html:not(.pc-view-mode) .schedule-dday-card {
      min-width: 0;
      width: 100%;
    }

    html:not(.pc-view-mode) .btn {
      min-height: 44px;
    }
    html:not(.pc-view-mode) .btn-close {
      min-width: 44px;
      min-height: 44px;
    }
    html:not(.pc-view-mode) .form-control,
    html:not(.pc-view-mode) .form-select {
      min-height: 44px;
      font-size: 16px;
    }
    html:not(.pc-view-mode) textarea.form-control {
      min-height: 88px;
    }
    html:not(.pc-view-mode) .reason-btn,
    html:not(.pc-view-mode) .preset-btn,
    html:not(.pc-view-mode) .choice-pill-btn,
    html:not(.pc-view-mode) .ox-choice-btn,
    html:not(.pc-view-mode) .month-pill-btn,
    html:not(.pc-view-mode) .schedule-month-btn {
      min-height: 40px;
    }
    html:not(.pc-view-mode) .mobile-nav-btn {
      min-height: 48px;
    }

    html:not(.pc-view-mode) .schedule-tab-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      max-width: 100%;
      border-radius: 18px;
    }
    html:not(.pc-view-mode) .schedule-tab-nav .btn {
      white-space: normal;
      line-height: 1.3;
    }
    html:not(.pc-view-mode) .teacher-category-pills {
      max-width: 100%;
    }
    html:not(.pc-view-mode) .teacher-category-pills .nav-link {
      min-height: 44px;
      white-space: normal;
      text-align: left;
    }
    html:not(.pc-view-mode) #teacherMainTabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
    }
    html:not(.pc-view-mode) #teacherMainTabs .nav-item {
      flex: 0 0 auto;
    }
    html:not(.pc-view-mode) #teacherMainTabs .nav-link {
      white-space: nowrap;
      min-height: 44px;
    }

    html:not(.pc-view-mode) .table-responsive,
    html:not(.pc-view-mode) .matrix-container,
    html:not(.pc-view-mode) .dday-banner-container,
    html:not(.pc-view-mode) .student-month-tabs-container {
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
    }
    html:not(.pc-view-mode) .table-responsive > .table:not(.matrix-table) {
      min-width: 560px;
    }
    html:not(.pc-view-mode) #tab3 .table-responsive > .table {
      min-width: 0;
    }
    html:not(.pc-view-mode) .modal-body .table,
    html:not(.pc-view-mode) .modal-body .table th,
    html:not(.pc-view-mode) .modal-body .table td {
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    html:not(.pc-view-mode) .matrix-table,
    html:not(.pc-view-mode) .matrix-table th,
    html:not(.pc-view-mode) .matrix-table td {
      white-space: nowrap;
      overflow-wrap: normal;
    }

    html:not(.pc-view-mode) .modal-dialog {
      width: calc(100% - 1rem);
      max-width: calc(100% - 1rem);
      margin: 0.5rem auto;
      max-height: calc(100dvh - 1rem);
    }
    html:not(.pc-view-mode) .modal-content {
      max-height: calc(100dvh - 1rem);
    }
    html:not(.pc-view-mode) .modal-body {
      overflow-x: auto;
      overflow-y: auto;
    }
    html:not(.pc-view-mode) .modal-header {
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 8px;
    }
    html:not(.pc-view-mode) .modal-title {
      flex: 1 1 auto;
      min-width: 0;
    }
    html:not(.pc-view-mode) .modal-header .btn-close {
      flex: 0 0 auto;
      margin: 0;
    }
    html:not(.pc-view-mode) .modal-footer {
      flex-wrap: wrap;
      gap: 8px;
    }
    html:not(.pc-view-mode) .banner-viewer-modal .modal-header {
      flex-wrap: wrap;
    }
    html:not(.pc-view-mode) .modal-footer .btn {
      flex: 1 1 140px;
    }
    html:not(.pc-view-mode) .banner-viewer-modal .modal-dialog {
      width: 100%;
      max-width: 100%;
      height: 100dvh;
      max-height: 100dvh;
      margin: 0;
    }
    html:not(.pc-view-mode) .banner-viewer-modal .modal-content {
      height: 100dvh;
      max-height: 100dvh;
      border-radius: 0;
    }
    html:not(.pc-view-mode) .banner-floating-toolbar {
      max-width: calc(100% - 16px);
      flex-wrap: wrap;
      justify-content: center;
    }
    html:not(.pc-view-mode) #festivalBannerModalImg {
      max-width: none;
    }

    html:not(.pc-view-mode) .schedule-timeline-item {
      flex-wrap: wrap;
      align-items: flex-start;
    }
    html:not(.pc-view-mode) .schedule-timeline-item > * {
      min-width: 0;
      max-width: 100%;
    }
    html:not(.pc-view-mode) #deviceBoundBadgeContainer .d-flex,
    html:not(.pc-view-mode) #studentLoginAppNotice {
      flex-wrap: wrap;
      gap: 8px;
    }
    html:not(.pc-view-mode) #appToastContainer {
      top: 12px !important;
      right: 12px !important;
      left: 12px !important;
      width: auto !important;
      max-width: none !important;
    }
    html:not(.pc-view-mode) #appToastContainer > * {
      max-width: 100%;
      overflow-wrap: anywhere;
    }
  }

  @media (max-width: 767.98px) {
    html:not(.pc-view-mode) .cal-dow-full { display: none; }
    html:not(.pc-view-mode) .cal-dow-short { display: inline; }
    html:not(.pc-view-mode) .calendar-header-cell {
      font-size: 0.78rem;
      padding: 6px 0;
      letter-spacing: 0;
      overflow: hidden;
    }
  }

  .btn-alert-send {
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 6px 14px rgba(255, 193, 7, 0.22);
    transform: translateY(0);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  }

  .btn-alert-send:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 8px 18px rgba(255, 193, 7, 0.28);
  }

  .btn-alert-send:active:not(:disabled),
  .btn-alert-send.is-pressed {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.24), 0 2px 6px rgba(255, 193, 7, 0.18);
  }

  .btn-alert-send.is-sending {
    opacity: 0.92;
    transform: translateY(1px);
  }
