/* ═══════════════════════════════════════════════════════
   관현악단 v2 — Clean Design System
   References: Band(공지 피드), 에브리타임(레이아웃),
               Headliners(타임테이블 컬럼)
   ═══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

/* ── Design Tokens ── */
:root {
  /* Brand (기존 inline 스타일 호환 유지) */
  --primary:      #1E293B;
  --primary-dark: #0F172A;
  --accent:       #111827;
  --accent-hover: #000000;
  --accent-light: #F1F5F9;
  --amber:        #F59E0B;
  --success:      #10B981;
  --danger:       #EF4444;
  --warning:      #F59E0B;
  --gray-50:      #F8FAFC;
  --gray-100:     #F1F5F9;
  --gray-200:     #E2E8F0;
  --gray-300:     #CBD5E1;
  --gray-500:     #94A3B8;
  --gray-700:     #64748B;
  --gray-900:     #1E293B;

  /* New tokens */
  --ink-1:  #111827;
  --ink-2:  #6B7280;
  --ink-3:  #9CA3AF;
  --bg:     #F5F7FA;
  --surf:   #FFFFFF;
  --line:   #E5E9EF;
  --line-2: #F1F5F9;

  /* Shape */
  --r:    12px;
  --r-sm:  8px;
  --r-lg: 16px;
  --r-xl: 20px;
  --radius:    12px;
  --radius-sm:  8px;

  /* Shadow */
  --sh-1: 0 1px 4px rgba(0,0,0,0.06);
  --sh-2: 0 4px 16px rgba(0,0,0,0.08);
  --sh-3: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);

  /* Layout */
  --sidebar-width: 240px;
  --sidebar-w:     240px;
  --header-h: 56px;
  --nav-h:    60px;
}

/* ── Dark Mode Tokens ── */
@media (prefers-color-scheme: dark) {
  .bottom-nav-item { color: #8B949E; }
  :root {
    --bg:          #0D1117;
    --surf:        #161B22;
    --ink-1:       #F0F6FC;
    --ink-2:       #8B949E;
    --ink-3:       #6E7681;
    --line:        #30363D;
    --line-2:      #21262D;
    --accent:      #E2E8F0;
    --accent-hover:#FFFFFF;
    --accent-light:#1E293B;
    --sh-1: 0 1px 4px rgba(0,0,0,0.3);
    --sh-2: 0 4px 16px rgba(0,0,0,0.4);
    --sh-3: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow:    0 4px 16px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  }
}

/* ── Base ── */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR (데스크탑 전용)
   ═══════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0,0,0,0.12);
}
.sidebar-header {
  padding: 26px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-header h2 {
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 3px;
}
.sidebar-header p { font-size: 11px; opacity: 0.45; }
.nav-menu { list-style: none; padding: 12px 10px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-radius: var(--r-sm); margin-bottom: 2px;
  font-size: 14px; font-weight: 500;
  transition: background 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.07); }
.nav-item.active {
  background: rgba(99,102,241,0.22);
  color: #a5b4fc;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.nav-item i { width: 18px; text-align: center; font-size: 13px; opacity: 0.75; }
.sidebar-footer { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.admin-toggle {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: white; cursor: pointer; width: 100%;
  padding: 10px 14px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  transition: background 0.2s;
}
.admin-toggle:hover { background: rgba(255,255,255,0.12); }
.admin-toggle.active { background: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   MOBILE HEADER (accent color)
   ═══════════════════════════════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: 18px; padding-right: 18px;
  background: var(--surf);
  border-bottom: 1px solid var(--line);
  align-items: center; justify-content: space-between;
  z-index: 99;
}
.mh-brand { display: flex; flex-direction: column; gap: 1px; }
.mobile-header h3 {
  font-size: 18px; font-weight: 900;
  color: var(--ink-1); letter-spacing: -0.5px;
}
.mh-sub { font-size: 10px; color: var(--ink-3); font-weight: 500; transition: opacity 0.11s ease; }
.mobile-header h3 { transition: opacity 0.11s ease; }
.mh-right { display: flex; align-items: center; gap: 12px; }
.mh-dday { font-size: 19px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.hamburger { display: none; }
.mobile-spacer { width: 20px; }
.mobile-admin-btn { display: none !important; }
.mobile-theme-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); font-size: 17px;
  padding: 6px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-theme-btn:active { color: var(--accent); }

/* ── Overlay ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 99;
  backdrop-filter: blur(2px);
}
.overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════ */
.content {
  margin-left: var(--sidebar-w);
  flex: 1; padding: 36px 40px;
  max-width: 1100px;
  overscroll-behavior-y: none;
}
.page { display: none; }
.page.active { display: block; }
.page-title {
  font-size: 22px; font-weight: 800;
  color: var(--ink-1); letter-spacing: -0.6px;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   CONCERT BANNER
   ═══════════════════════════════════════════════════════ */
.concert-banner {
  background: var(--accent);
  border-radius: var(--r);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cb-eyebrow {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px; margin-bottom: 4px;
}
.cb-date {
  font-size: 16px; font-weight: 700;
  color: white; letter-spacing: -0.3px;
}
.cb-dday {
  font-size: 36px; font-weight: 900;
  color: white; letter-spacing: -2px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */
.dash-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent); border-radius: 18px;
  padding: 24px 26px; margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.dash-banner-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.75); margin-bottom: 6px; letter-spacing: 0.3px; }
.dash-banner-dday  { font-size: 36px; font-weight: 900; color: white; line-height: 1; margin-bottom: 6px; }
.dash-banner-info  { font-size: 13px; color: rgba(255,255,255,0.8); }
.dash-banner-icon  { font-size: 48px; color: rgba(255,255,255,0.2); }

@media (prefers-color-scheme: dark) {
  .dash-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .dash-grid { grid-template-columns: 2fr 1fr; }
}

.dash-card {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.dash-card-title {
  font-size: 17px; font-weight: 800; color: var(--ink-1); letter-spacing: -0.3px;
  border-left: 3px solid var(--accent); padding-left: 10px;
}

.dash-notice-item {
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: opacity 0.1s;
}
.dash-notice-item:last-of-type { border-bottom: none; }
.dash-notice-item:hover { opacity: 0.75; }
.dash-notice-title-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.dash-notice-title { font-size: 14px; font-weight: 700; color: var(--ink-1); flex: 1; }
.dash-notice-meta  { display: flex; align-items: center; gap: 8px; }
.dash-notice-date  { font-size: 12px; color: var(--ink-3); }

.dash-schedule-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  margin-bottom: 8px;
}
.dash-schedule-item:last-of-type { margin-bottom: 0; }
.dash-schedule-title { font-size: 15px; font-weight: 600; color: var(--ink-1); margin-bottom: 4px; }
.dash-schedule-title:last-child { margin-bottom: 0; }
.dash-schedule-time  { font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.dash-schedule-desc  { font-size: 13px; color: var(--ink-3); }

.dash-empty { text-align: center; padding: 24px 0; color: var(--ink-3); font-size: 14px; }

.dash-tt-section  { margin-top: 10px; padding-top: 10px; }
.dash-tt-header   { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.dash-tt-header i { margin-right: 4px; }
.dash-tt-slot     { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.dash-tt-slot:last-child { border-bottom: none; }
.dash-tt-time     { font-size: 12px; color: var(--ink-2); white-space: nowrap; min-width: 88px; font-variant-numeric: tabular-nums; }
.dash-tt-parts    { display: flex; flex-wrap: wrap; gap: 4px; }
.dash-tt-chip     { font-size: 11px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 99px; }
.tt-empty-msg     { font-size: 13px; color: var(--ink-3); padding: 12px 0; display: flex; align-items: center; gap: 6px; }

.dash-next-evt { margin: 10px 0 4px; padding: 12px 14px; background: var(--line-2); border-radius: 10px; }
.dash-next-label { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.dash-next-date { font-size: 15px; font-weight: 700; color: var(--accent); }
.dash-next-title { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* 다음 일정 타임라인 */
.dash-upcoming-list { margin-top: 12px; }
.dash-upcoming-item { display: flex; gap: 12px; }
.dash-upcoming-dot-wrap {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; padding-top: 3px;
}
.dash-upcoming-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ink-3); background: var(--surf); flex-shrink: 0;
}
.dash-upcoming-line {
  flex: 1; width: 1px; min-height: 18px; margin: 4px 0;
  border-left: 1.5px dashed var(--line);
}
.dash-upcoming-body { flex: 1; min-width: 0; padding-bottom: 14px; }
.dash-upcoming-item:last-child .dash-upcoming-body { padding-bottom: 0; }
.dash-upcoming-title { font-size: 14px; font-weight: 600; color: var(--ink-1); line-height: 1.4; margin-bottom: 3px; }
.dash-upcoming-meta { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }


.dash-today-btns { display: flex; gap: 8px; margin-top: 14px; }
.dash-today-btns:empty { display: none; }
.dash-view-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; width: 100%; padding: 11px 8px; margin-top: 0;
  text-align: center; background: none; white-space: nowrap;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.dash-view-all:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   HOME STATS BAR
   ═══════════════════════════════════════════════════════ */
.home-stats {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 22px;
}
.hs-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.hs-item strong {
  font-size: 28px; font-weight: 900;
  color: var(--ink-1); letter-spacing: -1.5px; line-height: 1;
}
.hs-item span {
  font-size: 11px; color: var(--ink-3); font-weight: 500;
}
.hs-sep {
  width: 1px; height: 32px;
  background: var(--line);
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════ */
.section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 20px; font-weight: 900;
  color: var(--ink-1); letter-spacing: -0.6px;
}

/* ═══════════════════════════════════════════════════════
   STATS ROW (구형, 호환용)
   ═══════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.stat-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px;
  text-align: center;
}
.stat-number {
  font-size: 26px; font-weight: 800;
  color: var(--ink-1); letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 4px;
}
.stat-label { font-size: 11px; color: var(--ink-3); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   TAB FILTER (pill chips)
   ═══════════════════════════════════════════════════════ */
.tab-filter {
  display: flex; gap: 7px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px; padding-bottom: 2px;
}
.tab-filter::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--surf); font-size: 13px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: all 0.15s; font-family: inherit;
}
.tab-btn:hover { border-color: var(--ink-3); color: var(--ink-1); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   GENERAL CARD
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
  word-break: break-word; overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════
   NOTICE FEED (Band 스타일 플랫 리스트)
   ═══════════════════════════════════════════════════════ */
.notice-feed {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.notice-card[data-type="urgent"] { background: rgba(239,68,68,0.04); }
.notice-card[data-type="info"]   { background: rgba(16,185,129,0.04); }

.notice-card {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background 0.1s;
  word-break: break-word; overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
.notice-card:last-child { border-bottom: none; }
.notice-card:hover { background: var(--bg); }
.notice-card:active { background: var(--line-2); }

/* 공지 아이템 메인 행 */
.nc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.nc-left {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.nc-title {
  font-size: 15px; font-weight: 700; color: var(--ink-1);
  line-height: 1.4; letter-spacing: -0.2px;
}
.nc-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.nc-date {
  font-size: 12px; color: var(--ink-3); white-space: nowrap;
}
.nc-chevron {
  font-size: 11px; color: var(--ink-3);
  transition: transform 0.22s ease;
}
.notice-row-actions { display: flex; gap: 0; }

/* 펼쳐진 본문 */
.notice-full-body {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-1);
  margin-top: 0;
  padding: 14px 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
  letter-spacing: -0.2px;
  font-weight: 400;
}
.notice-full-body p.nbp {
  margin: 0 0 1.2em;
  padding: 0;
}
.notice-full-body p.nbp:last-child { margin-bottom: 0; }
.ni-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.65;
}
.ni-lbl {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}
.ni-val {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.notice-full {
  word-break: break-word;
}

/* 더보기 버튼 */
.load-more-btn {
  display: block; width: 100%; padding: 14px;
  background: none; border: none; border-top: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.load-more-btn:hover { background: var(--bg); color: var(--ink-1); }

/* 하위 호환 */
.notice-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.notice-title-text { font-size: 15px; font-weight: 700; color: var(--ink-1); line-height: 1.45; margin-bottom: 7px; }
.notice-card-footer { display: flex; align-items: center; gap: 8px; }
.notice-preview { color: var(--ink-3); font-size: 13px; }
.btn-toggle-detail { display: none; }

/* ═══════════════════════════════════════════════════════
   BAND 스타일 공지 피드 — 리스트형 (카드 없음)
   ═══════════════════════════════════════════════════════ */
.band-feed {
  display: flex; flex-direction: column;
  background: var(--surf);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.band-post {
  background: var(--surf);
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.band-post:last-child { border-bottom: none; }
.band-post:hover { background: var(--bg); }
.band-post:active { background: var(--line-2); }

/* 포스트 헤더: 뱃지(좌) / 날짜+chevron(우) */
.bp-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-bottom: 0;
}
.bp-hl { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bp-hr { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bp-time { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.bp-admin { display: flex; gap: 2px; }
.nc-chevron { display: none; }

/* 제목 */
.bp-title {
  font-size: 16px; font-weight: 500;
  color: var(--ink-1); line-height: 1.45;
  letter-spacing: -0.2px; margin-top: 7px;
}

/* 본문 미리보기 */
.bp-preview {
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 이미지 그리드 (인스타그램 스타일) */
.bp-img-grid { margin: 10px 0 4px; border-radius: 10px; overflow: hidden; }
.bp-img-g1 { cursor: pointer; }
.bp-img-g1 img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.bp-img-g2, .bp-img-g4 { display: grid; gap: 2px; }
.bp-img-g2 { grid-template-columns: 1fr 1fr; }
.bp-img-g4 { grid-template-columns: 1fr 1fr; }
.bp-img-cell { position: relative; cursor: pointer; overflow: hidden; }
.bp-img-g2 .bp-img-cell img { width: 100%; height: 150px; object-fit: cover; display: block; }
.bp-img-g4 .bp-img-cell img { width: 100%; height: 120px; object-fit: cover; display: block; }
.bp-img-more { position: absolute; inset: 0; background: rgba(0,0,0,0.52); display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; font-weight: 700; }

/* 펼쳐진 공지 하단 북마크 */
.nf-footer {
  display: flex; justify-content: flex-end;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.notice-full-date {
  font-size: 12px; color: var(--ink-3); margin-bottom: 0;
  padding: 10px 18px 12px;
  display: flex; align-items: center; gap: 5px;
}
.bp-source, .bp-sep, .bp-dot-type { display: none; }

/* 고정됨 뱃지 */
.bp-pin-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-light); border-radius: 20px;
  padding: 2px 8px; flex-shrink: 0;
}
.bp-pin-badge i { font-size: 9px; transform: rotate(45deg); }

/* 고정된 포스트 */
.band-post-pinned { background: var(--accent-light) !important; }

/* 핀 버튼 활성 */
.bp-pin-active { color: var(--accent) !important; }


/* ═══════════════════════════════════════════════════════
   BADGES & META
   ═══════════════════════════════════════════════════════ */
.card-badge {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-urgent { background: #FEF2F2; color: #DC2626; }
.badge-normal { background: #EEF2FF; color: #4338CA; }
.badge-info   { background: #D1FAE5; color: #065F46; }
.card-date { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.card-body { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  padding: 9px 18px;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  transition: filter 0.15s; letter-spacing: 0;
}
.btn:hover  { filter: brightness(0.93); }
.btn:active { filter: brightness(0.85); }
.btn-primary   { background: var(--accent); color: white; }
.btn-secondary {
  background: var(--bg); color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { filter: none; background: var(--line); }
.btn-danger  { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  padding: 5px 8px; font-size: 14px; color: var(--ink-3);
  border-radius: 6px; transition: all 0.15s; font-family: inherit;
}
.btn-icon:hover { color: var(--accent); background: var(--accent-light); }

/* ═══════════════════════════════════════════════════════
   CALENDAR — 에브리타임 스타일
   ═══════════════════════════════════════════════════════ */
.calendar-container {
  background: var(--surf);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.calendar-header h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.7px; color: var(--ink-1); }
.calendar-header button:not(.cal-month-btn) {
  background: none; border: none;
  color: var(--ink-2); font-size: 16px; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.calendar-header button:not(.cal-month-btn):hover { background: var(--bg); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day-name {
  padding: 10px 4px; text-align: center;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  background: none; letter-spacing: 0.02em;
}
.calendar-day-name:first-child { color: var(--danger); }
.calendar-day-name:last-child  { color: var(--accent); }

.calendar-day {
  padding: 8px 2px 6px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  font-size: 12px; cursor: pointer;
  transition: background 0.1s;
}
.calendar-day:hover { background: var(--bg); }
.calendar-day.other-month { opacity: 0.3; }
.calendar-day .day-number {
  font-weight: 600; margin-bottom: 4px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.calendar-day.today .day-number {
  background: #DC2626; color: white;
  border-radius: 50%; font-weight: 800;
}
.day-number.sunday  { color: var(--danger); }
.day-number.saturday { color: #6366F1; }

.cal-dots { display: flex; gap: 3px; justify-content: center; margin-top: 2px; }
.cal-dot  { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* 캘린더 이벤트 레이블 */
.evt-labels { display: flex; flex-direction: column; gap: 2px; width: calc(100% - 4px); }
.evt-label  {
  font-size: 9px; font-weight: 700; color: white;
  padding: 1px 4px; border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.evt-more   { font-size: 8px; color: var(--ink-3); padding: 0 2px; font-weight: 600; }

.calendar-event {
  font-size: 10px; padding: 2px 5px; border-radius: 20px;
  margin-top: 2px;
  background: var(--accent-light); color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600; line-height: 1.4; max-width: 100%;
}
.calendar-more { font-size: 10px; color: var(--ink-3); padding: 1px 4px; line-height: 1.3; }

/* ═══════════════════════════════════════════════════════
   TIMETABLE
   ═══════════════════════════════════════════════════════ */
.tt-topbar {
  display: flex; align-items: center; gap: 10px;
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--bg);
  padding: 6px 0 10px; margin-bottom: 4px;
}
.tt-date-chips {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tt-date-chips::-webkit-scrollbar { display: none; }
.tt-chip {
  flex-shrink: 0;
  padding: 8px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: 2px solid var(--line);
  background: var(--surf); color: var(--ink-2);
  cursor: pointer; transition: all 0.15s;
  letter-spacing: -0.2px;
}
.tt-chip:hover { border-color: var(--accent); color: var(--accent); }
.tt-chip.active {
  background: var(--accent); border-color: var(--accent);
  color: white;
}
.tt-no-date { font-size: 14px; color: var(--ink-3); }
.tt-admin-btns { display: flex; gap: 6px; flex-shrink: 0; }

/* 날짜 선택 드롭다운 */
.tt-date-select {
  flex: 1; font-size: 16px; font-weight: 700; color: var(--ink-1);
  border: 2px solid var(--line); border-radius: 20px;
  padding: 9px 20px; background: var(--surf); cursor: pointer;
  font-family: inherit; letter-spacing: -0.2px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111827' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.tt-date-select:focus { outline: none; border-color: var(--accent); }

/* Headliners 스타일 타임테이블 — 다크 배경 */
.ttf-scroll-box { overflow: visible; }
.ttf-wrapper {
  display: flex; background: var(--surf);
  border-radius: 16px;
  overflow: hidden; min-width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
.ttf-ta   { flex-shrink: 0; width: 46px; background: var(--surf); }
.ttf-ca   { display: flex; flex: 1; min-width: 0; }
.ttf-col  { flex: 1; border-left: 1px solid var(--line); min-width: 0; }

/* 컬럼 헤더 — 흰 배경 + 하단 컬러 언더라인 */
.ttf-ch {
  position: sticky; top: 0; z-index: 10;
  height: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px; text-align: center; padding: 0 4px;
  background: var(--surf);
  border-bottom: 1px solid var(--line);
}
.ttf-ch-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.ttf-ch-time { background: var(--surf); border-bottom: 1px solid var(--line); }

/* 그리드 */
.ttf-tb  { position: relative; }
.ttf-gl  { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(0,0,0,0.07); }
.ttf-gl-hour { border-top: 1px solid rgba(0,0,0,0.13) !important; border-top-style: solid !important; }
.ttf-tl  {
  position: absolute; top: -13px; left: 6px;
  font-size: 10px; color: var(--ink-3);
  font-weight: 700; white-space: nowrap; letter-spacing: 0.4px;
}

/* 컬럼 바디 — 약간 어두운 배경으로 블록 강조 */
.ttf-cb { position: relative; overflow: visible; background: var(--bg); }

/* 블록 — 그라디언트 + 왼쪽 흰색 강조선 + 그림자 */
.ttf-block {
  position: absolute; left: 4px; right: 4px;
  border-radius: 8px; overflow: hidden; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 8px 6px 11px; gap: 2px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: filter 0.15s, transform 0.12s;
}
.ttf-block:hover  { filter: brightness(0.92); z-index: 3; transform: scaleX(0.97) translateY(-1px); }
.ttf-block:active { filter: brightness(0.82); transform: scale(0.97); }
.ttf-block-sel    { outline: 2px solid; outline-offset: -2px; }
.ttf-bn {
  font-size: 12px; font-weight: 800; color: inherit;
  line-height: 1.2; letter-spacing: -0.1px; word-break: keep-all;
}
.ttf-bt {
  font-size: 10px; color: inherit; opacity: 0.65;
  white-space: nowrap; font-weight: 600; letter-spacing: 0.2px;
}


/* ═══════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  margin-bottom: 5px; color: var(--ink-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit;
  background: var(--surf); color: var(--ink-1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.12);
}
input[type="date"].form-input {
  -webkit-appearance: none; appearance: none;
  min-height: 46px; line-height: 1.4;
  padding-top: 11px; padding-bottom: 11px;
}
.form-textarea { resize: vertical; min-height: 80px; }

select, input[type="date"] {
  padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; font-family: inherit;
  background: var(--surf); color: var(--ink-1);
  transition: border-color 0.15s;
}
select:focus, input[type="date"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.12);
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal.active { display: flex; }
.modal-content {
  background: var(--surf); border-radius: var(--r-lg);
  padding: 24px; width: 90%; max-width: 440px;
  max-height: 80vh; overflow-y: auto;
  box-shadow: var(--sh-3);
}
.modal-content h3 { margin-bottom: 18px; font-size: 17px; font-weight: 700; }
.modal-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* 관리자 인증 모달 */
.admin-modal-card {
  background: var(--surf); border-radius: 24px;
  padding: 36px 28px 28px; width: 88%; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.amc-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}
.amc-title { font-size: 18px; font-weight: 800; color: var(--ink-1); margin-bottom: 4px; }
.amc-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.amc-input-wrap { position: relative; width: 100%; margin-bottom: 14px; }
.amc-input {
  width: 100%; padding: 14px 44px 14px 16px; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink-1);
  font-size: 16px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.amc-input:focus { border-color: var(--accent); }
.amc-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 14px; padding: 4px;
}
.amc-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--accent); color: white;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-bottom: 10px;
  transition: opacity 0.15s;
}
.amc-btn:hover { opacity: 0.88; }
.amc-cancel {
  background: none; border: none; color: var(--ink-3);
  font-size: 14px; font-family: inherit; cursor: pointer; padding: 4px 0;
}
.amc-cancel:hover { color: var(--ink-1); }

/* ═══════════════════════════════════════════════════════
   EVENT LIST (home)
   ═══════════════════════════════════════════════════════ */
.event-list { margin-top: 8px; }
.event-item {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surf);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 8px; box-shadow: var(--sh-1);
}
.event-item h5 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.event-item p  { font-size: 12px; color: var(--ink-2); }

/* ═══════════════════════════════════════════════════════
   ADMIN BAR
   ═══════════════════════════════════════════════════════ */
.admin-bar {
  display: none; background: var(--accent); color: white;
  padding: 8px 16px; font-size: 13px;
  position: fixed; top: 0;
  left: var(--sidebar-w); right: 0; z-index: 50;
}
.admin-bar.active { display: flex; justify-content: space-between; align-items: center; }
body.admin-mode .content { padding-top: 52px; }
.admin-actions { display: none; }
body.admin-mode .admin-actions { display: inline-flex; gap: 6px; }

/* ═══════════════════════════════════════════════════════
   FILE ATTACHMENTS
   ═══════════════════════════════════════════════════════ */
.file-upload-area {
  border: 2px dashed var(--line); border-radius: var(--r-sm);
  padding: 22px; text-align: center; cursor: pointer;
  transition: all 0.2s; color: var(--ink-3); font-size: 13px;
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--accent); background: var(--accent-light); color: var(--accent);
}
.file-upload-area i { font-size: 24px; display: block; margin-bottom: 8px; }
.file-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.file-preview-item {
  position: relative; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px; background: var(--bg); max-width: 150px;
}
.file-preview-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.file-preview-item .file-name { font-size: 11px; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.file-preview-item .file-remove {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: white; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.file-icon-preview { width: 120px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 6px; color: var(--ink-3); font-size: 28px; }
.notice-attachments { margin-top: 12px; }
.notice-attachments h5 { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 12px; cursor: pointer;
  text-decoration: none; color: var(--ink-2); font-weight: 500; transition: all 0.15s;
}
.attachment-item:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.attachment-item i { font-size: 14px; }
.attachment-link { color: var(--accent); border-color: var(--accent-light); }
.attachment-image-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attachment-image-grid img { max-width: 200px; max-height: 150px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid var(--line); transition: transform 0.2s; }
.attachment-image-grid img:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9); z-index: 300;
  align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-3); }
.empty-state i { font-size: 40px; margin-bottom: 10px; opacity: 0.35; display: block; }
.empty-state p { font-size: 14px; margin: 0; }

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--surf);
  border-top: 1px solid var(--line);
  z-index: 98;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
  color: var(--ink-3); font-size: 10px; font-weight: 600;
  border: none; background: none; padding: 8px 0;
  transition: color 0.15s; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bottom-nav-item i { font-size: 20px; transition: transform 0.15s; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active i { transform: scale(1.08); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

/* ═══════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none; width: calc(100% - 32px); max-width: 360px;
}
@media (min-width: 769px) { .toast-container { bottom: 28px; } }
.toast {
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: white;
  box-shadow: var(--sh-2); animation: toastIn 0.25s ease-out;
  pointer-events: auto; line-height: 1.4;
}
.toast-info    { background: var(--ink-1); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--amber); color: var(--ink-1); }
.toast-clickable { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toast-clickable:hover { filter: brightness(1.1); }
.toast-link { font-size: 12px; opacity: 0.85; white-space: nowrap; flex-shrink: 0; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ═══════════════════════════════════════════════════════
   CONFIRM BOTTOM SHEET
   ═══════════════════════════════════════════════════════ */
.confirm-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 800;
  display: flex; align-items: flex-end; backdrop-filter: blur(2px);
  animation: fadeInBd 0.2s ease-out;
}
@media (min-width: 769px) { .confirm-backdrop { align-items: center; justify-content: center; } }
@keyframes fadeInBd { from { opacity: 0; } to { opacity: 1; } }
.confirm-sheet {
  background: var(--surf); padding: 28px 24px; width: 100%;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  animation: sheetUp 0.26s ease-out;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 769px) { .confirm-sheet { max-width: 400px; border-radius: var(--r-lg); padding-bottom: 24px; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.confirm-sheet p { font-size: 16px; font-weight: 600; color: var(--ink-1); margin-bottom: 24px; line-height: 1.5; }
.confirm-sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-sheet-btns .btn { padding: 14px; font-size: 15px; justify-content: center; border-radius: var(--r); }

/* ═══════════════════════════════════════════════════════
   IN-APP NOTIFICATION
   ═══════════════════════════════════════════════════════ */
.in-app-notification {
  position: fixed; top: 20px; right: 20px; z-index: 500;
  background: var(--ink-1); color: white; border-radius: var(--r);
  padding: 14px 18px; max-width: 300px;
  box-shadow: var(--sh-3); animation: slideIn 0.3s ease-out;
  border: 1px solid rgba(255,255,255,0.07);
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.notif-item { font-size: 12px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.8; }

/* ⑧ 공지 펼침/접힘 애니메이션 — grid-template-rows (max-height보다 빠름) */
.notice-full {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.2s ease;
}
.notice-full.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  transition: grid-template-rows 0.3s ease, opacity 0.2s ease 0.05s;
}
.notice-full-inner {
  overflow: hidden;
}

/* ⑩ 스켈레톤 shimmer */
.skeleton-box {
  background: var(--line); position: relative; overflow: hidden;
  border-radius: var(--r);
}
.skeleton-box::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.14) 50%, transparent 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* 페이지 전환 — JS 구동으로 대체 (renderPage 참고) */

/* 공지 카드 stagger — 페이지 전환(220ms) 완료 후 시작 */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.band-post { animation: cardSlideUp 0.32s cubic-bezier(0.34, 1.3, 0.64, 1) both; }
.band-post:nth-child(1) { animation-delay: 260ms; }
.band-post:nth-child(2) { animation-delay: 305ms; }
.band-post:nth-child(3) { animation-delay: 345ms; }
.band-post:nth-child(4) { animation-delay: 380ms; }
.band-post:nth-child(5) { animation-delay: 410ms; }
.band-post:nth-child(n+6) { animation-delay: 435ms; }

/* 바텀 네비 아이콘 bounce */
@keyframes navIconBounce {
  0%   { transform: translateY(0)   scale(1.08); }
  30%  { transform: translateY(-7px) scale(1.3); }
  60%  { transform: translateY(3px)  scale(0.9); }
  80%  { transform: translateY(-2px) scale(1.06); }
  100% { transform: translateY(0)   scale(1.08); }
}
.bottom-nav-item.nav-pop i { animation: navIconBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* 탭 버튼 active pop */
@keyframes chipPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.85); }
  75%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.tab-btn.active { animation: chipPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* 타임테이블 그리드 슬라이드인 */
@keyframes ttGridIn {
  from { opacity: 0; transform: translateX(22px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}
.tt-grid-animate { animation: ttGridIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both; }

/* 버튼 누름 피드백 */
.btn:active        { transform: scale(0.94) !important; transition: transform 0.08s !important; }
.bottom-nav-item:active { transform: scale(0.86); transition: transform 0.08s; }
.tab-btn:active    { transform: scale(0.92); }

/* 캘린더 오늘 날짜 펄스 (로드 후 1회) */
@keyframes todayPulse {
  0%   { box-shadow: 0 0 0 0   rgba(220,38,38,0.45); }
  55%  { box-shadow: 0 0 0 11px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0   rgba(220,38,38,0); }
}
.calendar-day.today .day-number { animation: todayPulse 1.3s ease-out 0.5s 1; }

/* ③ 타임테이블 현재 시간 인디케이터 */
@keyframes nowDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  60%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.ttf-now-line { position: absolute; left: 0; right: 0; height: 2px; background: #EF4444; z-index: 10; pointer-events: none; }
.ttf-now-line::before { content: ''; position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #EF4444; animation: nowDotPulse 1.6s ease-out infinite; }
.ttf-now-label { position: absolute; right: 4px; top: -18px; font-size: 10px; font-weight: 800; color: #EF4444; background: var(--surf); padding: 1px 5px; border-radius: 4px; }

/* 캘린더 선택 날짜: 오늘=채움, 선택=링 */
.calendar-day.cal-selected .day-number {
  border: 2px solid var(--ink-2);
  border-radius: 50%; font-weight: 800;
  color: var(--ink-1); box-sizing: border-box;
}
.calendar-day.today.cal-selected .day-number {
  background: #DC2626; color: white;
  border: 2px solid white; outline: 2px solid #DC2626;
}


/* ⑥ 핀 공지 강조 */
.band-post-pinned { background: var(--accent-light) !important; }
.band-post-pinned:hover { background: #f9d0e8 !important; }

/* ⑧ D-Day 배너 긴박감 */
.dash-banner-warning { background: linear-gradient(135deg, #B45309 0%, #D97706 100%) !important; box-shadow: 0 6px 24px rgba(217,119,6,0.3) !important; }
.dash-banner-urgent  { background: linear-gradient(135deg, #991B1B 0%, #EF4444 100%) !important; box-shadow: 0 6px 24px rgba(239,68,68,0.35) !important; }

/* ① 검색어 하이라이트 */
.search-hl { background: rgba(255,210,0,0.38); color: inherit; border-radius: 2px; padding: 0 1px; font-style: normal; }
@media (prefers-color-scheme: dark) { .search-hl { background: rgba(255,210,0,0.22); } }

/* ② 현재 진행 중 타임테이블 슬롯 */
@keyframes slotGlow {
  0%,100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 0 14px 4px rgba(255,255,255,0.25); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 22px 6px rgba(255,255,255,0.4); }
}
.ttf-block-now { animation: slotGlow 2s ease-in-out infinite; z-index: 2; }

/* ③ 모바일 헤더 스크롤 blur */
.mobile-header { transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.mobile-header.scrolled {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@media (prefers-color-scheme: dark) {
  .mobile-header.scrolled { background: rgba(22,27,34,0.88) !important; }
}

/* ⑪ 북마크 버튼 */
.bp-bookmark-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 4px 6px;
  border-radius: 6px; transition: color 0.15s, transform 0.2s;
  font-family: inherit; line-height: 1;
}
.bp-bookmark-btn:hover { color: var(--accent); }
.bp-bookmark-btn.bp-bookmarked { color: var(--accent); }
.bp-bookmark-btn.bp-bookmarked i { animation: bookmarkPop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes bookmarkPop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* ⑪ 홈 북마크 섹션 */
.dash-bookmark-section {
  margin: 0 0 16px;
  background: var(--surf); border-radius: 14px;
  border: 1px solid var(--line); padding: 14px 16px;
}


/* undo toast */
.undo-toast {
  position: fixed; bottom: calc(var(--nav-h) + 14px); left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1F2937; color: #F9FAFB;
  padding: 12px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  z-index: 600; pointer-events: none; opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.3,0.64,1), opacity 0.25s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.undo-toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.undo-toast button { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 800; cursor: pointer; padding: 0; }

/* SW 업데이트 배너 */
.sw-update-banner {
  position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px;
  background: var(--accent); color: white;
  padding: 11px 16px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 600; z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideDown 0.3s cubic-bezier(0.34,1.3,0.64,1);
}
.sw-update-banner span { display: flex; align-items: center; gap: 8px; }
.sw-update-banner button { background: rgba(255,255,255,0.22); border: none; color: white; padding: 5px 13px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ⑫ 오프라인 배너 */
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.offline-banner {
  position: fixed; bottom: calc(var(--nav-h) + 8px); left: 12px; right: 12px;
  background: #1F2937; color: #F9FAFB; font-size: 12px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; z-index: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  animation: slideDown 0.3s cubic-bezier(0.34,1.3,0.64,1);
}
.offline-banner-hide { opacity: 0; transform: translateY(20px); transition: all 0.3s; }

/* ─── Splash Screen ─── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.splash-out { opacity: 0; transform: scale(1.05); pointer-events: none; }

.splash-content {
  text-align: center;
  animation: splashIn 0.55s cubic-bezier(0.34, 1.3, 0.64, 1) 0.08s both;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(22px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.splash-icon-wrap {
  width: 88px; height: 88px; border-radius: 26px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  overflow: hidden;
}
.splash-icon-wrap img { width: 88px; height: 88px; object-fit: cover; }
.splash-eyebrow {
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
  margin: 0 0 6px;
}
.splash-title {
  font-size: 34px; font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -1.2px; margin: 0 0 14px;
}
.splash-sub {
  font-size: 15px; font-weight: 500;
  color: #555; line-height: 1.65;
  letter-spacing: -0.2px; margin: 0;
}
.splash-footer {
  position: absolute; bottom: max(36px, env(safe-area-inset-bottom, 36px));
  font-size: 11px; color: #bbb; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 0;
}
@media (prefers-color-scheme: dark) {
  .splash           { background: #0D1117; }
  .splash-icon-wrap { background: #161B22; }
  .splash-title     { color: #F0F6FC; }
  .splash-sub       { color: #8B949E; }
  .splash-footer    { color: #6E7681; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════════════
   DAY DETAIL PANEL (Desktop)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .day-detail-panel { margin-top: 18px; }
  .day-detail-placeholder { color: var(--ink-3); font-size: 14px; padding: 14px 0; display: flex; align-items: center; gap: 8px; }
  .day-detail-date { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
  .day-detail-item {
    background: var(--surf); border-radius: var(--r); border: 1px solid var(--line);
    padding: 12px 16px; margin-bottom: 8px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .day-detail-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
  .day-detail-meta  { font-size: 12px; color: var(--ink-2); }
  .day-detail-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .day-detail-tt-btn {
    width: 100%; margin-top: 10px; padding: 9px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--accent);
    background: var(--line-2); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .day-detail-tt-btn:hover { background: var(--line); }
}

/* ═══════════════════════════════════════════════════════
   MOBILE OVERRIDES
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Layout */
  .sidebar { display: none !important; }
  .mobile-header { display: flex; }
  .bottom-nav { display: flex; }

  .content {
    margin-left: 0;
    padding: 0 16px;
    padding-top:    calc(var(--header-h) + env(safe-area-inset-top) + 16px) !important;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px) !important;
    max-width: 100%;
  }

  .page-title { font-size: 19px; margin-bottom: 16px; }

  /* iOS 자동 확대 방지 */
  input, select, textarea { font-size: 16px !important; }

  /* Notification */
  .in-app-notification {
    top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
    right: 12px; left: 12px; max-width: none;
  }

  /* Admin bar */
  .admin-bar { left: 0; top: calc(var(--header-h) + env(safe-area-inset-top)); }
  body.admin-mode .content {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 52px + 16px) !important;
  }

  /* Timetable */
  .ttf-ta  { width: 38px; }
  .ttf-ch  { height: 48px; font-size: 12px; }
  .ttf-tl  { font-size: 9px; left: 2px; }
  .ttf-block { left: 2px; right: 2px; border-radius: 7px; padding: 6px 5px; }
  .ttf-bn  { font-size: 12px; }
  .ttf-bt  { font-size: 10px; }
  .tt-chip { font-size: 13px; padding: 7px 13px; }
  .tt-date-select { font-size: 15px; padding: 7px 12px; }

  /* Calendar page fixed layout */
  body.page-calendar .content { overflow: hidden; height: 100dvh; box-sizing: border-box; }
  .calendar-page-wrapper { height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .cal-top { flex-shrink: 0; }
  .cal-top .page-title { margin-bottom: 8px; font-size: 17px; }
  .calendar-page-wrapper .calendar-container { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .calendar-page-wrapper .calendar-header { flex-shrink: 0; }
  .calendar-page-wrapper .calendar-grid {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: repeat(7, 1fr);
  }
  .calendar-page-wrapper.cal-rows-4 .calendar-grid { grid-template-rows: auto repeat(4, 1fr); }
  .calendar-page-wrapper.cal-rows-5 .calendar-grid { grid-template-rows: auto repeat(5, 1fr); }
  .calendar-page-wrapper.cal-rows-6 .calendar-grid { grid-template-rows: auto repeat(6, 1fr); }
  .calendar-page-wrapper .calendar-day { min-height: 0 !important; padding: 6px 2px 4px; overflow: hidden; align-items: center; }
  .calendar-page-wrapper .calendar-day .day-number { font-size: 13px; width: 26px; height: 26px; margin-bottom: 3px; }
  .calendar-page-wrapper .calendar-day.today .day-number { width: 26px; height: 26px; font-size: 13px; }
  .calendar-page-wrapper .cal-dot { width: 4px; height: 4px; }
  .calendar-page-wrapper .calendar-event { font-size: 8px; padding: 1px 4px; margin-top: 1px; }
  .calendar-page-wrapper .calendar-more  { font-size: 8px; padding: 0 2px; }

  /* Day Detail Panel — Mobile */
  .day-detail-panel {
    flex-shrink: 0; height: 160px;
    background: var(--surf);
    border-top: 1.5px solid var(--line);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow-y: auto; padding: 12px 16px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
    margin: 0 -16px;
    display: flex; flex-direction: column;
  }
  .day-detail-placeholder {
    flex: 1; color: var(--ink-3); font-size: 12px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .day-detail-date { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
  .day-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .day-detail-item:last-child { border-bottom: none; }
  .day-detail-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
  .day-detail-meta  { font-size: 11px; color: var(--ink-3); }
  .day-detail-actions { display: flex; gap: 2px; flex-shrink: 0; }
  .day-detail-tt-btn {
    width: 100%; margin-top: 8px; padding: 8px; border-radius: 8px;
    font-size: 12px; font-weight: 600; color: var(--accent);
    background: var(--line-2); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
  }
}

/* ═══════════════════════════════════════════════════════
   NOTICE — NEW 뱃지 & 검색
══════════════════════════════════════════════════════════ */
.bp-new-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; color: #fff;
  background: #DC2626; border-radius: 4px;
  padding: 1px 6px; letter-spacing: 0.5px; flex-shrink: 0;
}

.notice-search-wrap {
  position: relative; margin: 0 0 12px;
}
.notice-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 14px; pointer-events: none;
}
.notice-search-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink-1);
  font-size: 14px; font-family: inherit;
  transition: border-color .15s;
}
.notice-search-input:focus {
  outline: none; border-color: var(--accent);
}
.notice-search-input::placeholder { color: var(--ink-3); }

/* ═══════════════════════════════════════════════════════
   CALENDAR — 월 선택 팝업
══════════════════════════════════════════════════════════ */
.cal-month-picker-wrap {
  position: relative; display: flex; align-items: center;
}
.cal-month-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--ink-1);
  font-family: inherit; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 8px;
  white-space: nowrap;
  transition: background .15s;
}
.cal-month-btn:hover { background: var(--bg); }
.cal-month-btn i { font-size: 11px; color: var(--ink-3); transition: transform .2s; }

.cal-month-picker {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--surf); border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  padding: 14px; z-index: 200; min-width: 220px;
}
.cal-month-picker.cmp-open { display: block; }

.cmp-year-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cmp-year-row span { font-size: 15px; font-weight: 700; color: var(--ink-1); }
.cmp-year-row button {
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); padding: 4px 8px; border-radius: 6px;
  font-size: 13px; transition: background .15s;
}
.cmp-year-row button:hover { background: var(--bg); }

.cmp-months {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.cmp-m-btn {
  background: var(--bg); border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 8px 0; border-radius: 8px; font-family: inherit;
  transition: background .15s, color .15s;
}
.cmp-m-btn:hover { background: var(--accent-light); color: var(--accent); }
.cmp-m-active { background: var(--accent) !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════
   TIMETABLE — 날짜 칩 피커
══════════════════════════════════════════════════════════ */
.tt-date-picker {
  flex: 1; overflow-x: auto; display: flex; gap: 16px;
  padding-bottom: 2px; scrollbar-width: none;
}
.tt-date-picker::-webkit-scrollbar { display: none; }

.tt-month-group { flex-shrink: 0; }
.tt-month-label {
  font-size: 10px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.3px; margin-bottom: 5px; white-space: nowrap;
}
.tt-date-chips { display: flex; gap: 6px; }
.tt-date-chip {
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding: 5px 10px; white-space: nowrap; font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.tt-date-chip:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.tt-chip-active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════
   NOTICE B STYLE — Banner (고정) + Individual Cards
   ═══════════════════════════════════════════════════════ */
#noticeList { display: flex; flex-direction: column; gap: 10px; }

.notice-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 14px;
  padding: 15px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  word-break: break-word; overflow-wrap: break-word;
  transition: filter 0.15s;
}
.notice-banner:hover  { filter: brightness(1.06); }
.notice-banner:active { filter: brightness(0.9); }

.nb-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.nb-top-left  { display: flex; align-items: center; gap: 6px; }
.nb-top-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nb-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.5px; }
.nb-meta  { font-size: 12px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px; }
.nb-title { font-size: 15px; font-weight: 700; color: white; line-height: 1.45; letter-spacing: -0.2px; }

.nb-admin-btn { color: rgba(255,255,255,0.65) !important; }
.nb-admin-btn:hover { color: white !important; background: rgba(255,255,255,0.15) !important; }

.notice-banner .notice-full.expanded {
  border-top: 1px solid rgba(255,255,255,0.2); margin-top: 10px;
}
.notice-banner .notice-full-body { color: rgba(255,255,255,0.9); }
.notice-banner .ni-lbl, .notice-banner .ni-val { color: rgba(255,255,255,0.9); }
.notice-banner .nf-footer { border-top: 1px solid rgba(255,255,255,0.2); }
.notice-banner .bp-bookmark-btn { color: rgba(255,255,255,0.65); }
.notice-banner .bp-bookmark-btn:hover { color: white; background: rgba(255,255,255,0.12); }
.notice-banner .bp-bookmark-btn.bp-bookmarked { color: white; }
.notice-banner .notice-attachments h5 { color: rgba(255,255,255,0.7); }
.notice-banner .attachment-item {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}
.notice-banner .attachment-item:hover {
  background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); color: white;
}

.notice-cards-list { display: flex; flex-direction: column; gap: 8px; }

.notice-card-b {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  word-break: break-word; overflow-wrap: break-word;
  transition: background 0.12s;
}
.notice-card-b:hover  { background: var(--bg); }
.notice-card-b:active { background: var(--line-2); }

/* ═══════════════════════════════════════════════════════
   NOTICE C STYLE — 에브리타임 sticky tab + 리스트
   ═══════════════════════════════════════════════════════ */
.tab-filter-c {
  display: flex;
  background: var(--surf);
  border-bottom: 1.5px solid var(--line);
  margin: 0 -16px 14px;
  padding: 0;
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 10;
}
@media (min-width: 769px) {
  .tab-filter-c { position: static; margin: 0 0 14px; border-radius: 10px 10px 0 0; }
}
.tab-btn-c {
  flex: 1; text-align: center;
  padding: 11px 0;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  background: none; border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer; font-family: inherit;
  margin-bottom: -1.5px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn-c.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

.notice-list-c { display: flex; flex-direction: column; }

.notice-item-c {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.1s;
}
.notice-item-c:last-child { border-bottom: none; }
.notice-item-c:active { opacity: 0.65; }

.nic-row1 {
  display: flex; align-items: center;
  gap: 6px; margin-bottom: 8px;
  flex-wrap: nowrap;
}
.nic-pin-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  color: #1E293B; background: #F1F5F9; border: 1px solid #94A3B8;
  padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
}
.nic-pin-badge i { font-size: 9px; transform: rotate(45deg); }
@media (prefers-color-scheme: dark) {
  .nic-pin-badge { color: #CBD5E1; background: #1E293B; border-color: #475569; }
}
.nic-date {
  font-size: 12px; color: var(--ink-3);
  margin-left: auto; white-space: nowrap; flex-shrink: 0;
}
.nic-title {
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-1); line-height: 1.45; letter-spacing: -0.2px;
}
.notice-item-c[data-type="urgent"] .nic-title { color: #DC2626; }
@media (prefers-color-scheme: dark) {
  .notice-item-c[data-type="urgent"] .nic-title { color: #F87171; }
}

/* ── Manual Theme Override ── */
:root[data-theme="dark"] {
  --bg: #0D1117; --surf: #161B22;
  --ink-1: #F0F6FC; --ink-2: #8B949E; --ink-3: #6E7681;
  --line: #30363D; --line-2: #21262D;
  --accent: #E2E8F0; --accent-hover: #FFFFFF; --accent-light: #1E293B;
  --sh-1: 0 1px 4px rgba(0,0,0,0.3); --sh-2: 0 4px 16px rgba(0,0,0,0.4); --sh-3: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3); --shadow: 0 4px 16px rgba(0,0,0,0.4); --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
}
:root[data-theme="dark"] .bottom-nav-item { color: #8B949E; }
:root[data-theme="dark"] .dash-banner { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
:root[data-theme="dark"] .mobile-header.scrolled { background: rgba(22,27,34,0.88) !important; }
:root[data-theme="dark"] .splash { background: #0D1117; }
:root[data-theme="dark"] .splash-icon-wrap { background: #161B22; }
:root[data-theme="dark"] .splash-title { color: #F0F6FC; }
:root[data-theme="dark"] .splash-sub { color: #8B949E; }
:root[data-theme="dark"] .splash-footer { color: #6E7681; }
:root[data-theme="dark"] .nic-pin-badge { color: #CBD5E1; background: #1E293B; border-color: #475569; }
:root[data-theme="dark"] .notice-item-c[data-type="urgent"] .nic-title { color: #F87171; }
:root[data-theme="dark"] .search-hl { background: rgba(255,210,0,0.22); }

:root[data-theme="light"] {
  --bg: #F5F7FA; --surf: #FFFFFF;
  --ink-1: #111827; --ink-2: #6B7280; --ink-3: #9CA3AF;
  --line: #E5E9EF; --line-2: #F1F5F9;
  --accent: #111827; --accent-hover: #000000; --accent-light: #F1F5F9;
  --sh-1: 0 1px 4px rgba(0,0,0,0.06); --sh-2: 0 4px 16px rgba(0,0,0,0.08); --sh-3: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06); --shadow: 0 4px 16px rgba(0,0,0,0.08); --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
}
:root[data-theme="light"] .bottom-nav-item { color: inherit; }
:root[data-theme="light"] .dash-banner { background: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
:root[data-theme="light"] .mobile-header.scrolled { background: rgba(255,255,255,0.88) !important; }
:root[data-theme="light"] .splash { background: #fff; }
:root[data-theme="light"] .splash-icon-wrap { background: #fff; }
:root[data-theme="light"] .splash-title { color: #1a1a1a; }
:root[data-theme="light"] .splash-sub { color: #555; }
:root[data-theme="light"] .splash-footer { color: #bbb; }
:root[data-theme="light"] .nic-pin-badge { color: #1E293B; background: #F1F5F9; border-color: #94A3B8; }
:root[data-theme="light"] .notice-item-c[data-type="urgent"] .nic-title { color: #DC2626; }
