/* Danmi v38 — consolidated theme/profile stylesheet
   Original cascade order preserved exactly.
   Visual behavior is intentionally unchanged. */


/* ===== 1. original profile-cute-polish.css ===== */

/* 단미 프로필 영역 — 사이트 전체 톤과 자연스럽게 맞춘 2차 다듬기 */
.sidebar-profile,
.profile-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* 기존 카드와 같은 보라색 포인트만 은은하게 사용 */
.sidebar-profile::before,
.profile-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 10%, rgba(139, 92, 246, .09), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
}

.sidebar-profile::after,
.profile-summary::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -42px;
  bottom: -44px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, .10);
  box-shadow: 0 0 0 14px rgba(139, 92, 246, .035);
}

.sidebar-profile {
  margin: 8px 12px 14px;
  padding: 16px 12px 14px;
  border: 1px solid var(--border-color, rgba(139,92,246,.18));
  border-radius: var(--ui-radius-md, 18px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(45, 24, 82, .06);
}

.profile-image,
.summary-profile-image {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary, #8b5cf6);
  background: linear-gradient(145deg, #fff, #f7f3ff);
  border: 2px solid rgba(255,255,255,.94);
  outline: 1px solid rgba(139, 92, 246, .20);
  box-shadow: 0 8px 20px rgba(85, 54, 135, .12);
}

.profile-image {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 24px;
}

.summary-profile-image {
  width: 116px;
  height: 116px;
  border-radius: 36px;
}

.profile-image-letter,
.summary-profile-letter {
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}
.profile-image-letter { font-size: 18px; }
.summary-profile-letter { font-size: 27px; }

/* 장식은 작고 절제되게 */
.profile-image-sparkle,
.summary-profile-sparkle,
.summary-profile-heart {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--primary, #8b5cf6);
  line-height: 1;
}
.profile-image-sparkle {
  right: -4px;
  top: -5px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--card-bg, #fff);
  font-size: 11px;
  border: 1px solid rgba(139, 92, 246, .18);
  box-shadow: 0 4px 10px rgba(45,24,82,.08);
}
.summary-profile-heart {
  right: -7px;
  bottom: 7px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(139, 92, 246, .18);
  color: #d96ca6;
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(45,24,82,.08);
}
.summary-profile-sparkle { opacity: .72; }
.sparkle-one { top: 8px; right: 9px; font-size: 14px; }
.sparkle-two { bottom: 13px; left: 10px; font-size: 10px; }

.sidebar-profile strong {
  display: block;
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.15;
}
.sidebar-profile span:not(.profile-image-letter):not(.profile-image-sparkle) {
  color: var(--text-sub, #766b7e);
  font-size: 11px;
  letter-spacing: .06em;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(176px, .38fr);
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--border-color, rgba(139,92,246,.16));
  border-radius: var(--ui-radius-lg, 24px);
  box-shadow: var(--ui-shadow-soft, 0 10px 30px rgba(45,24,82,.08));
}

.profile-text { min-width: 0; }
.profile-text .small-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 7px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #8b5cf6) 10%, transparent);
  color: var(--primary, #8b5cf6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
}
.profile-text h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.profile-text > p:not(.small-title) {
  max-width: 590px;
  margin: 0;
  color: var(--text-sub, #766b7e);
  line-height: 1.68;
}
.profile-text .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.profile-text .tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--primary, #8b5cf6) 18%, var(--border-color, #ddd));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #8b5cf6) 5%, var(--card-bg, #fff));
  color: var(--text-color, #352d3c);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-links {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--border-color, rgba(139,92,246,.15));
  border-radius: var(--ui-radius-md, 18px);
  background: color-mix(in srgb, var(--card-bg, #fff) 88%, transparent);
}
.profile-links h3 {
  margin: 0 0 3px;
  color: var(--text-color, #352d3c);
  font-size: 14px;
}
.profile-links h3 span { color: #d96ca6; }
.profile-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 30px 7px 11px;
  border: 1px solid var(--border-color, rgba(139,92,246,.14));
  border-radius: 12px;
  background: var(--card-bg, #fff);
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.profile-links a::after {
  content: "›";
  position: absolute;
  right: 11px;
  color: var(--primary, #8b5cf6);
  font-size: 19px;
  line-height: 1;
}
.profile-links a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary, #8b5cf6) 38%, var(--border-color, #ddd));
  background: color-mix(in srgb, var(--primary, #8b5cf6) 4%, var(--card-bg, #fff));
  box-shadow: 0 7px 16px rgba(45,24,82,.07);
}

html[data-theme="dark"] .sidebar-profile::before,
html[data-theme="dark"] .profile-summary::before,
body.dark-mode .sidebar-profile::before,
body.dark-mode .profile-summary::before {
  background:
    radial-gradient(circle at 92% 10%, rgba(167,139,250,.12), transparent 31%),
    linear-gradient(145deg, rgba(38,32,47,.72), rgba(30,26,37,.42));
}
html[data-theme="dark"] .sidebar-profile,
html[data-theme="dark"] .profile-summary,
body.dark-mode .sidebar-profile,
body.dark-mode .profile-summary {
  border-color: rgba(196,181,221,.14);
}
html[data-theme="dark"] .profile-image,
html[data-theme="dark"] .summary-profile-image,
body.dark-mode .profile-image,
body.dark-mode .summary-profile-image {
  color: #d8c5ff;
  background: linear-gradient(145deg, #342b40, #292331);
  border-color: rgba(255,255,255,.10);
  outline-color: rgba(167,139,250,.20);
}
html[data-theme="dark"] .profile-image-sparkle,
html[data-theme="dark"] .summary-profile-heart,
body.dark-mode .profile-image-sparkle,
body.dark-mode .summary-profile-heart {
  background: #302838;
  border-color: rgba(196,181,221,.16);
}
html[data-theme="dark"] .profile-text .tag-list span,
body.dark-mode .profile-text .tag-list span {
  color: #eee8f5;
  background: rgba(167,139,250,.07);
  border-color: rgba(196,181,221,.13);
}
html[data-theme="dark"] .profile-links,
html[data-theme="dark"] .profile-links a,
body.dark-mode .profile-links,
body.dark-mode .profile-links a {
  background: rgba(255,255,255,.035);
  border-color: rgba(196,181,221,.12);
}
html[data-theme="dark"] .profile-links a:hover,
body.dark-mode .profile-links a:hover { background: rgba(167,139,250,.08); }

@media (max-width: 1080px) {
  .profile-summary { grid-template-columns: auto minmax(0,1fr); }
  .profile-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0,1fr));
    align-items: center;
  }
  .profile-links h3 { margin: 0; }
}

@media (max-width: 760px) {
  .profile-summary {
    grid-template-columns: 78px minmax(0,1fr);
    gap: 13px;
    padding: 17px;
    border-radius: var(--ui-radius-lg, 24px);
  }
  .summary-profile-image {
    width: 78px;
    height: 78px;
    border-radius: 26px;
  }
  .summary-profile-letter { font-size: 20px; }
  .summary-profile-heart { width: 25px; height: 25px; right: -4px; bottom: 3px; font-size: 10px; }
  .sparkle-one { font-size: 11px; top: 5px; right: 6px; }
  .sparkle-two { display: none; }
  .profile-text h2 { font-size: 24px; margin-bottom: 5px; }
  .profile-text .small-title { min-height: 21px; padding: 3px 7px; font-size: 9px; }
  .profile-text > p:not(.small-title) { font-size: 13px; line-height: 1.55; }
  .profile-text .tag-list { gap: 5px; margin-top: 9px; }
  .profile-text .tag-list span { min-height: 24px; padding: 3px 7px; font-size: 10px; }
  .profile-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 15px;
  }
  .profile-links h3 { display: none; }
  .profile-links a {
    justify-content: center;
    min-height: 36px;
    padding: 6px 7px;
    font-size: 11px;
    text-align: center;
  }
  .profile-links a::after { display: none; }
}

@media (max-width: 390px) {
  .profile-summary { grid-template-columns: 68px minmax(0,1fr); padding: 14px; gap: 10px; }
  .summary-profile-image { width: 68px; height: 68px; border-radius: 23px; }
  .profile-text h2 { font-size: 22px; }
  .profile-text .tag-list span:nth-child(n+4) { display: none; }
}

/* 프로필과 전체 UI 톤 맞춤 3차: 귀엽고 예쁜 트럼프 카드 무드 */
:root {
  --cute-card-bg: linear-gradient(155deg, rgba(255,255,255,.96), rgba(252,247,255,.92));
  --cute-card-border: rgba(139, 92, 246, .18);
  --cute-card-inner: rgba(255,255,255,.82);
  --cute-card-shadow: 0 14px 34px rgba(55, 30, 92, .08);
  --cute-card-shadow-hover: 0 18px 42px rgba(55, 30, 92, .13);
}

.dashboard-grid > .card,
.mobile-summary-card,
.route-page-header,
.admin-dashboard-card,
.admin-form-section,
.admin-list-section,
.admin-backup-section,
.member-panel,
.policy-panel,
.admin-login-panel,
.songbook-notice-panel,
.notice-item,
.route-schedule-week,
.route-songbook-panel,
.route-homework-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--cute-card-border) !important;
  background: var(--cute-card-bg) !important;
  box-shadow: var(--cute-card-shadow) !important;
}

.dashboard-grid > .card::before,
.mobile-summary-card::before,
.route-page-header::before,
.admin-dashboard-card::before,
.admin-form-section::before,
.admin-list-section::before,
.admin-backup-section::before,
.member-panel::before,
.policy-panel::before,
.admin-login-panel::before,
.songbook-notice-panel::before,
.notice-item::before,
.route-schedule-week::before,
.route-songbook-panel::before,
.route-homework-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: calc(var(--ui-radius-lg, 24px) - 8px);
  opacity: .95;
  z-index: -1;
}

.dashboard-grid > .card::after,
.mobile-summary-card::after,
.route-page-header::after,
.admin-dashboard-card::after,
.admin-form-section::after,
.admin-list-section::after,
.admin-backup-section::after,
.member-panel::after,
.policy-panel::after,
.admin-login-panel::after,
.songbook-notice-panel::after,
.notice-item::after,
.route-schedule-week::after,
.route-songbook-panel::after,
.route-homework-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,.55), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(139,92,246,.07), transparent 28%);
  z-index: -2;
}

@media (hover:hover) and (pointer:fine) {
  .dashboard-grid > .card:hover,
  .mobile-summary-card:hover,
  .admin-dashboard-card:hover,
  .admin-form-section:hover,
  .admin-list-section:hover,
  .admin-backup-section:hover {
    box-shadow: var(--cute-card-shadow-hover) !important;
  }
}

/* 트럼프 카드 느낌의 귀여운 무늬 */
.schedule-card::after,
.songbook-card::after,
.homework-card::after,
.mobile-summary-card::after {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,.52), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(139,92,246,.06), transparent 28%);
}
.schedule-card::after { box-shadow: inset 0 0 0 9999px rgba(0,0,0,0); }
.schedule-card .card-header h2::after,
.songbook-card .card-header h2::after,
.homework-card .card-header h2::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(139,92,246,.16);
  box-shadow: 0 4px 10px rgba(55,30,92,.06);
  font-size: 12px;
  line-height: 1;
}
.schedule-card .card-header h2::after { content: "♦"; color: #e573ae; }
.songbook-card .card-header h2::after { content: "♥"; color: #e573ae; }
.homework-card .card-header h2::after { content: "♣"; color: #8b5cf6; }

.card-header,
.admin-list-head,
.admin-dashboard-card-head,
.route-title-line,
.profile-links h3 {
  position: relative;
}

.card-header h2,
.card-header h3,
.route-page-header h2,
.admin-dashboard-card-head strong,
.admin-section-title,
.policy-header h2,
.admin-login-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main, #332c3d);
}

.card-header h2::before,
.route-page-header h2::before,
.admin-section-title::before,
.admin-login-header h2::before,
.policy-header h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f38bc0, #8b5cf6);
  box-shadow: 0 0 0 5px rgba(139,92,246,.08);
  flex: 0 0 auto;
}

/* 버튼도 프로필 카드와 비슷한 무드로 */
.card-header > button,
.profile-links a,
.view-all-button,
.route-home-button,
.route-view-toggle button,
.primary-button,
.secondary-button,
.admin-tab-button {
  border-radius: 14px !important;
}

.card-header > button,
.view-all-button,
.route-home-button,
.route-view-toggle button,
.secondary-button,
.admin-tab-button {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,242,255,.92));
  border: 1px solid rgba(139,92,246,.16) !important;
  box-shadow: 0 6px 16px rgba(55,30,92,.06);
}

.primary-button {
  background: linear-gradient(180deg, #a78bfa, #8b5cf6) !important;
  border: 1px solid rgba(124,58,237,.55) !important;
}

.menu-button,
.mobile-nav-button {
  border-radius: 16px !important;
}

.menu-button.active,
.mobile-nav-button.active {
  background: linear-gradient(180deg, rgba(250,244,255,.94), rgba(245,236,255,.92)) !important;
  border: 1px solid rgba(139,92,246,.18) !important;
  box-shadow: 0 8px 18px rgba(55,30,92,.08);
}

/* 작은 카드와 리스트도 너무 각지지 않게 */
.schedule-item,
.homework-item,
.notice-item,
.song-row,
.route-song-row,
.route-schedule-item,
.route-homework-item,
.admin-search-result-empty,
.empty-state,
.route-empty-state {
  border-radius: 16px !important;
}

.song-meta-badge,
.song-status,
.profile-text .tag-list span,
.schedule-type,
.homework-status,
.notice-category,
.songbook-notice-chip {
  border-radius: 999px !important;
  border: 1px solid rgba(139,92,246,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

/* 다크모드 */
html[data-theme="dark"],
body.dark-mode {
  --cute-card-bg: linear-gradient(155deg, rgba(40,34,49,.96), rgba(28,24,36,.94));
  --cute-card-border: rgba(196, 181, 253, .14);
  --cute-card-inner: rgba(255,255,255,.06);
  --cute-card-shadow: 0 18px 40px rgba(4, 3, 10, .24);
  --cute-card-shadow-hover: 0 22px 46px rgba(4, 3, 10, .34);
}

html[data-theme="dark"] .dashboard-grid > .card::before,
html[data-theme="dark"] .mobile-summary-card::before,
html[data-theme="dark"] .route-page-header::before,
html[data-theme="dark"] .admin-dashboard-card::before,
html[data-theme="dark"] .admin-form-section::before,
html[data-theme="dark"] .admin-list-section::before,
html[data-theme="dark"] .admin-backup-section::before,
html[data-theme="dark"] .member-panel::before,
html[data-theme="dark"] .policy-panel::before,
html[data-theme="dark"] .admin-login-panel::before,
body.dark-mode .dashboard-grid > .card::before,
body.dark-mode .mobile-summary-card::before,
body.dark-mode .route-page-header::before,
body.dark-mode .admin-dashboard-card::before,
body.dark-mode .admin-form-section::before,
body.dark-mode .admin-list-section::before,
body.dark-mode .admin-backup-section::before,
body.dark-mode .member-panel::before,
body.dark-mode .policy-panel::before,
body.dark-mode .admin-login-panel::before {
  border-color: rgba(255,255,255,.06);
}

html[data-theme="dark"] .card-header > button,
html[data-theme="dark"] .view-all-button,
html[data-theme="dark"] .route-home-button,
html[data-theme="dark"] .route-view-toggle button,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .admin-tab-button,
body.dark-mode .card-header > button,
body.dark-mode .view-all-button,
body.dark-mode .route-home-button,
body.dark-mode .route-view-toggle button,
body.dark-mode .secondary-button,
body.dark-mode .admin-tab-button {
  background: linear-gradient(180deg, rgba(50,43,61,.96), rgba(35,29,43,.95));
  border-color: rgba(196,181,253,.16) !important;
  color: #f5f1ff;
}

html[data-theme="dark"] .schedule-card .card-header h2::after,
html[data-theme="dark"] .songbook-card .card-header h2::after,
html[data-theme="dark"] .homework-card .card-header h2::after,
body.dark-mode .schedule-card .card-header h2::after,
body.dark-mode .songbook-card .card-header h2::after,
body.dark-mode .homework-card .card-header h2::after {
  background: rgba(34,29,43,.94);
  border-color: rgba(196,181,253,.14);
}

@media (max-width: 760px) {
  .dashboard-grid > .card::before,
  .mobile-summary-card::before,
  .route-page-header::before,
  .admin-dashboard-card::before,
  .admin-form-section::before,
  .admin-list-section::before,
  .admin-backup-section::before {
    inset: 6px;
    border-radius: 16px;
  }

  .card-header h2::before,
  .route-page-header h2::before,
  .admin-section-title::before,
  .admin-login-header h2::before,
  .policy-header h2::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(139,92,246,.08);
  }

  .schedule-card .card-header h2::after,
  .songbook-card .card-header h2::after,
  .homework-card .card-header h2::after {
    width: 21px;
    height: 21px;
    margin-left: 6px;
    font-size: 11px;
  }
}

/* 2026-08-04 헤더/아이콘 위치 긴급 보정 */
*, *::before, *::after { box-sizing: border-box; }

/* 카드 제목 안 장식 배지가 제목과 떨어지지 않도록 고정 */
.card-header h2,
.card-header h3,
.songbook-heading-group h2 {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  min-width: 0;
}
.card-header h2::before,
.card-header h2::after,
.card-header h3::before,
.card-header h3::after {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
}
.schedule-card .card-header h2::after,
.songbook-card .card-header h2::after,
.homework-card .card-header h2::after {
  margin: 0 0 0 4px !important;
  vertical-align: middle;
}
.card-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  min-height: 44px;
  overflow: visible !important;
}
.card-header > button,
.card-header > a {
  flex: 0 0 auto;
  position: relative !important;
  inset: auto !important;
  transform: none;
}

/* 전체 페이지 헤더가 본문 위를 덮지 않도록 일반 흐름으로 복구 */
.route-page {
  display: block;
  min-width: 0;
}
.route-page-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 2;
  width: 100%;
  min-height: 86px;
  margin: 0 0 18px !important;
  padding: 18px 20px !important;
  overflow: visible !important;
}
.route-page-header::before,
.route-page-header::after {
  pointer-events: none;
}
.route-title-area,
.route-title-line,
.route-header-actions {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0;
}
.route-title-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.route-page-body {
  position: relative !important;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: none !important;
  min-width: 0;
}

/* 전체보기 모달 헤더와 본문 겹침 방지 */
.full-view-panel {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.full-view-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  z-index: 4;
  width: 100%;
  min-height: 78px;
  margin: 0 !important;
  padding: 16px 20px !important;
  overflow: visible !important;
}
.full-view-body {
  position: relative !important;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 !important;
  padding-top: 18px !important;
  overflow-y: auto !important;
  transform: none !important;
}
.full-view-close {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto;
}

/* 관리자 탭/각종 탭 헤더도 콘텐츠를 가리지 않게 */
.admin-tabs,
.homework-tabs,
.member-auth-tabs,
.route-view-toggle,
.full-songbook-controls,
.songbook-controls {
  position: relative !important;
  top: auto !important;
  inset-block-start: auto !important;
  transform: none !important;
  z-index: 1;
}
.admin-panel,
.admin-panel-body,
.route-songbook-panel,
.route-homework-panel,
.route-schedule-week {
  scroll-margin-top: 16px;
}

@media (max-width: 760px) {
  .card-header {
    min-height: 40px;
    gap: 8px !important;
  }
  .card-header h2,
  .card-header h3,
  .songbook-heading-group h2 {
    font-size: clamp(18px, 5vw, 22px);
  }
  .schedule-card .card-header h2::after,
  .songbook-card .card-header h2::after,
  .homework-card .card-header h2::after {
    width: 20px !important;
    height: 20px !important;
    margin-left: 3px !important;
  }
  .route-page-header {
    min-height: 0;
    margin-bottom: 12px !important;
    padding: calc(14px + env(safe-area-inset-top)) 14px 14px !important;
  }
  .route-page-header {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
  }
  .route-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }
  .route-page-body {
    padding-top: 0 !important;
  }
  .full-view-header {
    position: relative !important;
    min-height: 72px;
    padding: calc(14px + env(safe-area-inset-top)) 15px 13px !important;
  }
  .full-view-body {
    padding-top: 14px !important;
  }
}

@media (max-width: 420px) {
  .route-page-header {
    grid-template-columns: 1fr;
  }
  .route-header-actions {
    width: 100%;
    justify-content: space-between !important;
  }
  .route-home-button {
    margin-left: auto;
  }
  .card-header h2::before {
    display: none !important;
  }
}



/* ===== 2. original pastel-rounded-ui-v4.css ===== */

/* Danmi UI v4 — soft pastel, rounded, readable in light/dark mode */
:root {
  --ui-bg: #f8f5fb;
  --ui-bg-2: #fffafd;
  --ui-surface: rgba(255,255,255,.88);
  --ui-surface-strong: #fffefe;
  --ui-soft: #f4eefb;
  --ui-soft-pink: #fff0f6;
  --ui-soft-blue: #eef6ff;
  --ui-soft-mint: #effaf6;
  --ui-line: #e5d9ef;
  --ui-line-strong: #d4c2e4;
  --ui-text: #4b3d59;
  --ui-sub: #7d708a;
  --ui-primary: #9a78c7;
  --ui-primary-strong: #7954aa;
  --ui-pink: #e99abd;
  --ui-shadow: 0 10px 28px rgba(91,64,119,.09);
  --ui-shadow-soft: 0 5px 16px rgba(91,64,119,.07);
  --ui-radius-xl: 24px;
  --ui-radius-lg: 19px;
  --ui-radius-md: 14px;
  --ui-radius-pill: 999px;
}

html[data-theme="dark"], body.dark-mode {
  --ui-bg: #17131e;
  --ui-bg-2: #1e1927;
  --ui-surface: rgba(39,32,51,.92);
  --ui-surface-strong: #2a2235;
  --ui-soft: #332941;
  --ui-soft-pink: #3c2938;
  --ui-soft-blue: #273549;
  --ui-soft-mint: #263b37;
  --ui-line: #4b3e5c;
  --ui-line-strong: #655376;
  --ui-text: #f7f1fb;
  --ui-sub: #cbbfd6;
  --ui-primary: #c2a4e7;
  --ui-primary-strong: #dcc5f5;
  --ui-pink: #f0abc9;
  --ui-shadow: 0 12px 30px rgba(0,0,0,.22);
  --ui-shadow-soft: 0 6px 18px rgba(0,0,0,.17);
}

html, body, .app-layout, .page-area { background: var(--ui-bg) !important; }
body { color: var(--ui-text) !important; }

/* Major cards and panels */
.profile-card, .profile-summary, .content-card, .dashboard-card, .schedule-card,
.songbook-card, .homework-card, .notice-card, .admin-card, .settings-card,
.member-panel, .admin-panel, .route-page-shell, .full-view-panel,
.full-view-content, .route-page-content, .modal-card, .auth-modal-card,
[class*="empty-state"], .admin-server-card {
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-xl) !important;
  box-shadow: var(--ui-shadow) !important;
  color: var(--ui-text) !important;
}

/* Thin inner card frame: gentle playing-card feeling */
.profile-card, .profile-summary, .content-card, .schedule-card,
.songbook-card, .homework-card, .notice-card, .admin-card, .settings-card {
  outline: 1px solid color-mix(in srgb, var(--ui-line) 58%, transparent);
  outline-offset: -6px;
}

/* Headers must remain in normal flow and never cover content */
.card-header, .songbook-heading-group, .full-view-header, .route-page-header,
.admin-panel-header, .member-panel-header, .settings-page-heading,
.admin-card-header, .modal-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  z-index: 2 !important;
  min-height: 0 !important;
  border-radius: var(--ui-radius-lg) !important;
  color: var(--ui-text) !important;
}
.full-view-header, .route-page-header {
  background: color-mix(in srgb, var(--ui-surface-strong) 93%, transparent) !important;
  border: 1px solid var(--ui-line) !important;
  box-shadow: var(--ui-shadow-soft) !important;
  margin: 0 0 14px !important;
}
.full-view-content, .route-page-content, #routePageBody {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Form controls */
button, input, select, textarea, .primary-button, .secondary-button,
.menu-button, .mobile-nav-button, .admin-tab-button, .route-view-toggle,
.route-view-toggle-mobile, .member-login-button, .genre-button,
.songbook-filter-button, .full-view-close, .route-home-button {
  border-radius: var(--ui-radius-md) !important;
}
input, select, textarea {
  background: var(--ui-surface-strong) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 18%, transparent) !important;
}
.primary-button {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-pink)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--ui-primary) 25%, transparent) !important;
}
.secondary-button, .route-view-toggle, .route-view-toggle-mobile {
  background: var(--ui-soft) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-primary-strong) !important;
}

/* Pills and status badges */
.genre, .difficulty, .song-status, .status-badge, .live-badge,
.route-week-current-badge, .profile-tag, .notice-type, .schedule-type,
.admin-server-badge, .admin-device-badge, .member-server-status,
.songbook-count-summary, .badge, [class*="-badge"] {
  border-radius: var(--ui-radius-pill) !important;
  border: 1px solid color-mix(in srgb, var(--ui-line) 88%, transparent) !important;
  box-shadow: none !important;
}

/* Lists and tables */
.song-row, .schedule-item, .homework-item, .notice-item,
.admin-song-item, .admin-homework-item, .admin-notice-item,
.song-table-header, .admin-list-header, .schedule-day,
.admin-server-status-list > div {
  border-radius: var(--ui-radius-md) !important;
  border-color: var(--ui-line) !important;
}
.song-row, .schedule-item, .homework-item, .notice-item,
.admin-song-item, .admin-homework-item, .admin-notice-item {
  background: color-mix(in srgb, var(--ui-surface-strong) 90%, var(--ui-soft)) !important;
}
.song-row:hover, .schedule-item:hover, .homework-item:hover, .notice-item:hover {
  background: var(--ui-soft) !important;
  transform: translateY(-1px);
}
.song-table-header, .admin-list-header {
  background: var(--ui-soft) !important;
  color: var(--ui-sub) !important;
}

/* Sidebar and mobile navigation */
.sidebar, .mobile-navigation {
  background: color-mix(in srgb, var(--ui-surface-strong) 94%, transparent) !important;
  border-color: var(--ui-line) !important;
}
.menu-button, .mobile-nav-button {
  color: var(--ui-sub) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}
.menu-button.active, .mobile-nav-button.active,
.menu-button[aria-current="page"], .mobile-nav-button[aria-current="page"] {
  background: linear-gradient(135deg, var(--ui-soft), var(--ui-soft-pink)) !important;
  border-color: var(--ui-line-strong) !important;
  color: var(--ui-primary-strong) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}
.menu-button:not(.active):not([aria-current="page"]),
.mobile-nav-button:not(.active):not([aria-current="page"]) {
  box-shadow: none !important;
}
.nav-icon-image { border-radius: 12px !important; }

/* Profile and social actions harmonized */
.profile-avatar, .profile-image, .profile-photo, .profile-avatar-wrap {
  border-radius: 50% !important;
  border-color: var(--ui-line-strong) !important;
}
.profile-links a, .social-link, .profile-link-button {
  border-radius: var(--ui-radius-md) !important;
  background: var(--ui-soft) !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-primary-strong) !important;
}

/* Soft scrollbar */
* { scrollbar-color: var(--ui-line-strong) transparent; }
*::-webkit-scrollbar-thumb { background: var(--ui-line-strong) !important; border-radius: 999px !important; }

/* Mobile: preserve readability and prevent badge overlap */
@media (max-width: 760px) {
  :root { --ui-radius-xl: 20px; --ui-radius-lg: 17px; --ui-radius-md: 13px; }
  .page-area, .main-content, .route-page-content, .full-view-content { min-width: 0 !important; }
  .full-view-header, .route-page-header, .settings-page-heading,
  .admin-panel-header, .member-panel-header {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    padding: 12px !important;
  }
  #songbookSection #songRows .genre,
  #songbookSection #songRows .difficulty,
  #songbookSection #songRows .song-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .card-header { gap: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .song-row:hover, .schedule-item:hover, .homework-item:hover, .notice-item:hover { transform: none !important; }
}



/* ===== 3. original gothic-card-theme-v10.css ===== */

/* Danmi Gothic Card Theme v10
   Refined light/dark card aesthetic, solid colors, responsive-safe. */
:root {
  --danmi-page: #fffafb;
  --danmi-page-alt: #f9f1f4;
  --danmi-panel: #fffdfd;
  --danmi-panel-soft: #fff7f9;
  --danmi-panel-strong: #fff2f6;
  --danmi-line: #e7bcc8;
  --danmi-line-strong: #cb8197;
  --danmi-text: #32262c;
  --danmi-sub: #76636c;
  --danmi-accent: #d95f88;
  --danmi-accent-deep: #a93e63;
  --danmi-accent-soft: #f9dfe7;
  --danmi-gold: #c6a06e;
  --danmi-shadow: 0 12px 30px rgba(103, 58, 72, .10);
  --danmi-shadow-soft: 0 7px 18px rgba(103, 58, 72, .08);
  --danmi-radius-xl: 24px;
  --danmi-radius-lg: 20px;
  --danmi-radius-md: 15px;
  --danmi-radius-sm: 11px;
}

html[data-theme="dark"], body.dark-mode {
  --danmi-page: #100e13;
  --danmi-page-alt: #17131a;
  --danmi-panel: #1c181f;
  --danmi-panel-soft: #241d26;
  --danmi-panel-strong: #2b222b;
  --danmi-line: #72515e;
  --danmi-line-strong: #b27388;
  --danmi-text: #fff7fa;
  --danmi-sub: #d7c4cc;
  --danmi-accent: #ef7fa5;
  --danmi-accent-deep: #d65886;
  --danmi-accent-soft: #3b2630;
  --danmi-gold: #d4b98f;
  --danmi-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  --danmi-shadow-soft: 0 8px 20px rgba(0, 0, 0, .24);
}

html, body, .app-layout, .page-area {
  background: var(--danmi-page) !important;
  color: var(--danmi-text) !important;
}

body {
  background-image: none !important;
}

/* Global cards: solid, refined, double-frame illusion */
.card,
.profile-summary,
.sidebar-profile,
.sidebar-status,
.mobile-summary-card,
.dashboard-grid > section,
.route-page-shell,
.route-page-header,
.route-page-content,
.full-view-panel,
.full-view-content,
.admin-dashboard-card,
.admin-form-section,
.admin-list-section,
.admin-backup-section,
.member-panel,
.policy-panel,
.admin-login-panel,
.modal-card,
.auth-modal-card {
  position: relative;
  background: var(--danmi-panel) !important;
  border: 1px solid var(--danmi-line) !important;
  border-radius: var(--danmi-radius-xl) !important;
  box-shadow: var(--danmi-shadow) !important;
  color: var(--danmi-text) !important;
  overflow: hidden;
}

.card::before,
.profile-summary::before,
.sidebar-profile::before,
.sidebar-status::before,
.mobile-summary-card::before,
.route-page-shell::before,
.route-page-header::before,
.full-view-panel::before,
.admin-dashboard-card::before,
.admin-form-section::before,
.admin-list-section::before,
.admin-backup-section::before,
.member-panel::before,
.policy-panel::before,
.admin-login-panel::before,
.modal-card::before,
.auth-modal-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--danmi-line) 70%, transparent);
  border-radius: calc(var(--danmi-radius-xl) - 7px);
  pointer-events: none;
  z-index: 0;
  background: none !important;
}

.card > *,
.profile-summary > *,
.sidebar-profile > *,
.sidebar-status > *,
.mobile-summary-card > *,
.route-page-shell > *,
.route-page-header > *,
.full-view-panel > *,
.admin-dashboard-card > *,
.admin-form-section > *,
.admin-list-section > *,
.admin-backup-section > *,
.member-panel > *,
.policy-panel > *,
.admin-login-panel > *,
.modal-card > *,
.auth-modal-card > * {
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  background: var(--danmi-panel-soft) !important;
  border-right: 1px solid var(--danmi-line) !important;
  box-shadow: 8px 0 28px rgba(84, 42, 57, .08) !important;
}

.sidebar-logo {
  padding: 24px 18px 18px !important;
  text-align: center;
}

.sidebar-logo h1 {
  color: var(--danmi-text) !important;
  letter-spacing: .05em;
  font-size: clamp(30px, 2.1vw, 42px) !important;
  line-height: 1;
}
.sidebar-logo h1::first-letter { color: var(--danmi-accent); }
.sidebar-logo p { color: var(--danmi-sub) !important; letter-spacing: .12em; }

.sidebar-profile {
  margin: 0 14px 16px !important;
  padding: 18px 14px !important;
  text-align: center;
}

.profile-image,
.summary-profile-image {
  background: var(--danmi-panel-strong) !important;
  border: 2px solid var(--danmi-line-strong) !important;
  box-shadow: 0 0 0 5px var(--danmi-panel), 0 0 0 6px var(--danmi-line) !important;
}

.sidebar-status {
  margin: 0 14px 16px !important;
  padding: 16px !important;
}

.sidebar-menu { gap: 8px !important; padding: 4px 12px !important; }
.menu-button {
  min-height: 50px;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  color: var(--danmi-text) !important;
  background: transparent !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.menu-button:hover { background: var(--danmi-panel) !important; border-color: var(--danmi-line) !important; transform: translateX(2px); }
.menu-button.active,
.menu-button[aria-current="page"] {
  background: var(--danmi-accent-soft) !important;
  border-color: var(--danmi-line-strong) !important;
  color: var(--danmi-accent-deep) !important;
  box-shadow: var(--danmi-shadow-soft) !important;
}
html[data-theme="dark"] .menu-button.active,
html[data-theme="dark"] .menu-button[aria-current="page"],
body.dark-mode .menu-button.active,
body.dark-mode .menu-button[aria-current="page"] { color: #ffdce8 !important; }

.menu-icon-wrap,
.mobile-nav-button .menu-icon-wrap {
  background: var(--danmi-panel) !important;
  border: 1px solid var(--danmi-line) !important;
  box-shadow: none !important;
}

/* Header */
.top-header {
  background: color-mix(in srgb, var(--danmi-page) 94%, transparent) !important;
  border-bottom: 1px solid var(--danmi-line) !important;
  backdrop-filter: blur(14px);
}
.notice-bar strong {
  color: var(--danmi-accent-deep) !important;
  background: var(--danmi-accent-soft) !important;
  border: 1px solid var(--danmi-line) !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
}
.notice-bar span { color: var(--danmi-sub) !important; }

.theme-button,
.member-login-button,
.bottom-button,
.secondary-button,
.route-home-button,
.view-all-button,
.card-header button,
.route-view-toggle button,
.route-view-toggle-mobile button,
.admin-tab-button {
  background: var(--danmi-panel) !important;
  color: var(--danmi-text) !important;
  border: 1px solid var(--danmi-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.theme-button:hover,
.member-login-button:hover,
.bottom-button:hover,
.secondary-button:hover,
.route-home-button:hover,
.view-all-button:hover,
.card-header button:hover,
.route-view-toggle button:hover,
.route-view-toggle-mobile button:hover,
.admin-tab-button:hover {
  background: var(--danmi-accent-soft) !important;
  border-color: var(--danmi-line-strong) !important;
}

.primary-button,
button.primary,
.save-button {
  background: var(--danmi-accent) !important;
  border: 1px solid var(--danmi-accent-deep) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--danmi-accent) 26%, transparent) !important;
}

/* Main profile hero */
.profile-summary {
  padding: clamp(22px, 3vw, 36px) !important;
  background: var(--danmi-panel) !important;
}
.profile-text .small-title {
  color: var(--danmi-accent-deep) !important;
  letter-spacing: .12em;
}
.profile-text h2 {
  color: var(--danmi-text) !important;
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 1.05;
}
.profile-text p { color: var(--danmi-sub) !important; }
.profile-text .tag-list span {
  background: var(--danmi-accent-soft) !important;
  border: 1px solid var(--danmi-line) !important;
  color: var(--danmi-accent-deep) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .profile-text .tag-list span,
body.dark-mode .profile-text .tag-list span { color: #ffd4e3 !important; }
.profile-links,
.profile-links a {
  background: var(--danmi-panel-soft) !important;
  border-color: var(--danmi-line) !important;
  color: var(--danmi-text) !important;
  border-radius: 16px !important;
}
.profile-links a:hover { background: var(--danmi-accent-soft) !important; }

/* Card headings: clean editorial look, no gradients/suits clutter */
.card-header,
.mobile-summary-header,
.route-page-header,
.full-view-header,
.admin-list-header {
  background: var(--danmi-panel) !important;
  border-color: var(--danmi-line) !important;
  color: var(--danmi-text) !important;
  box-shadow: none !important;
}
.card-header h2,
.card-header h3,
.mobile-summary-header h2,
.route-page-header h1,
.route-page-header h2,
.full-view-header h1,
.full-view-header h2,
.admin-section-title {
  color: var(--danmi-text) !important;
  letter-spacing: .015em;
}
.card-header h2::before,
.card-header h3::before,
.mobile-summary-header h2::before,
.route-page-header h1::before,
.route-page-header h2::before,
.full-view-header h1::before,
.full-view-header h2::before,
.admin-section-title::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  display: inline-block !important;
  border-radius: 3px !important;
  background: var(--danmi-accent) !important;
  box-shadow: 0 0 0 4px var(--danmi-accent-soft) !important;
  margin-right: 11px !important;
  vertical-align: .12em;
}
.card-header h2::after,
.card-header h3::after,
.songbook-heading-group h2::after,
.route-page-header h1::after,
.route-page-header h2::after,
.full-view-header h1::after,
.full-view-header h2::after { display: none !important; content: none !important; }

/* Lists and table rows */
.schedule-item,
.song-row,
.route-song-row,
.homework-item,
.notice-item,
.route-week-row,
.route-notice-item,
.admin-song-item,
.admin-homework-item,
.admin-notice-item {
  background: var(--danmi-panel-soft) !important;
  border: 1px solid var(--danmi-line) !important;
  border-radius: var(--danmi-radius-md) !important;
  color: var(--danmi-text) !important;
  box-shadow: none !important;
}
.schedule-item:hover,
.song-row:hover,
.route-song-row:hover,
.homework-item:hover,
.notice-item:hover,
.route-week-row:hover,
.route-notice-item:hover {
  background: var(--danmi-panel-strong) !important;
  border-color: var(--danmi-line-strong) !important;
}

.song-table-header,
.route-song-header {
  background: var(--danmi-panel-strong) !important;
  border: 1px solid var(--danmi-line) !important;
  border-radius: 14px !important;
  color: var(--danmi-sub) !important;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--danmi-page) 65%, transparent) !important;
}

/* Inputs */
input, select, textarea {
  background: var(--danmi-panel-soft) !important;
  border: 1px solid var(--danmi-line) !important;
  color: var(--danmi-text) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--danmi-line-strong) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danmi-accent-soft) 75%, transparent) !important;
  outline: none !important;
}
input::placeholder, textarea::placeholder { color: var(--danmi-sub) !important; opacity: .82; }

/* Pills */
.schedule-type,
.song-meta-badge,
.song-status,
.genre,
.difficulty,
.status-badge,
.live-badge,
.homework-status,
.notice-category,
.route-week-state,
.songbook-notice-chip {
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, currentColor 28%, var(--danmi-line)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.live-badge { background: #f7d8e2 !important; color: #9c3157 !important; }
html[data-theme="dark"] .live-badge,
body.dark-mode .live-badge { background: #4a2634 !important; color: #ffbdd3 !important; }

/* Full pages */
.route-page-shell,
.full-view-panel { background: var(--danmi-page-alt) !important; }
.route-page-content,
.full-view-content { background: var(--danmi-panel) !important; }
.route-page-header,
.full-view-header {
  border-radius: 20px !important;
  min-height: 78px;
}
.route-week-date,
.route-week-time,
.route-notice-summary,
.route-notice-content,
.notice-chevron {
  background: var(--danmi-panel-strong) !important;
  border-color: var(--danmi-line) !important;
  color: var(--danmi-text) !important;
}
.route-week-date strong,
.route-notice-summary strong { color: var(--danmi-text) !important; }
.route-week-date span,
.route-week-content p,
.route-notice-summary time,
.route-notice-content { color: var(--danmi-sub) !important; }

/* Footer-like bottom and scrollbars */
.sidebar-bottom { border-top-color: var(--danmi-line) !important; }
* { scrollbar-color: var(--danmi-line-strong) var(--danmi-page-alt); }
*::-webkit-scrollbar-track { background: var(--danmi-page-alt) !important; }
*::-webkit-scrollbar-thumb { background: var(--danmi-line-strong) !important; border: 3px solid var(--danmi-page-alt) !important; }

/* Mobile navigation */
.mobile-navigation {
  background: color-mix(in srgb, var(--danmi-panel) 96%, transparent) !important;
  border-top: 1px solid var(--danmi-line) !important;
  box-shadow: 0 -8px 24px rgba(60, 28, 39, .10) !important;
}
.mobile-nav-button {
  color: var(--danmi-sub) !important;
  border-radius: 15px !important;
}
.mobile-nav-button.active,
.mobile-nav-button[aria-current="page"] {
  background: var(--danmi-accent-soft) !important;
  color: var(--danmi-accent-deep) !important;
}
html[data-theme="dark"] .mobile-nav-button.active,
html[data-theme="dark"] .mobile-nav-button[aria-current="page"],
body.dark-mode .mobile-nav-button.active,
body.dark-mode .mobile-nav-button[aria-current="page"] { color: #ffd4e3 !important; }

@media (max-width: 900px) {
  .profile-summary { border-radius: 22px !important; }
  .dashboard-grid { gap: 14px !important; }
  .card, .mobile-summary-card { border-radius: 20px !important; }
  .card::before, .mobile-summary-card::before { inset: 5px; border-radius: 14px; }
}

@media (max-width: 640px) {
  .main-content { padding-inline: 12px !important; }
  .profile-summary { padding: 20px 16px !important; }
  .card-header, .mobile-summary-header { min-height: 54px; }
  .route-page-header, .full-view-header { min-height: 66px; padding: 14px !important; }
  .route-page-header h1, .route-page-header h2, .full-view-header h1, .full-view-header h2 { font-size: 23px !important; }
  .schedule-item, .song-row, .homework-item, .notice-item { border-radius: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-button { transition: none !important; }
}

