:root {
  --bg: #f5f9ff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --line: #dce8f8;
  --line-strong: #cbdcf4;
  --text: #1c2738;
  --muted: #76869d;
  --blue: #4e94ef;
  --blue-deep: #347bd5;
  --shadow: 0 20px 58px rgba(94, 128, 173, 0.16);
  --card-shadow: 0 10px 28px rgba(102, 137, 180, 0.10);
  --radius-shell: 22px;
  --radius-card: 16px;
  --content-width: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 14%, rgba(168, 205, 255, 0.32), transparent 28%),
    radial-gradient(circle at 85% 78%, rgba(210, 228, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 52%, #f7fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.page-glow--one { top: -110px; right: 8%; background: #d5e8ff; }
.page-glow--two { bottom: -130px; left: 5%; background: #cfe4ff; }

.site-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 34px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(221, 233, 249, 0.86);
  border-radius: var(--radius-shell);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 82px;
  padding: 14px 30px;
  display: grid;
  grid-template-columns: 190px 1fr 170px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e7eef8;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.brand-name {
  display: block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.95;
  font-style: italic;
  letter-spacing: -1.6px;
}
.brand-subtitle {
  display: block;
  margin-top: 7px;
  color: #9aa9bd;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 2px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transform: translateX(-50%) scale(0.3);
  transition: 180ms ease;
}
.nav-link.is-active { color: var(--blue-deep); }
.nav-link.is-active::after { opacity: 1; transform: translateX(-50%) scale(1); }


.main-content { padding: 26px 28px 6px; }
.page-section { display: none; }
.page-section.is-visible { display: block; animation: page-in 300ms ease both; }

.hero-frame {
  width: min(100%, var(--content-width));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d5e4f7;
  border-radius: 16px;
  background: #eaf3ff;
  box-shadow: 0 10px 24px rgba(86, 126, 176, 0.12);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-cards {
  width: min(100%, var(--content-width));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 14px;
}

.info-card {
  position: relative;
  min-height: 196px;
  padding: 21px 22px;
  text-align: left;
  border: 1px solid #dfebfa;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--card-shadow);
}
button.info-card {
  width: 100%;
  color: inherit;
  cursor: pointer;
}
.info-card--link { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.info-card--link:hover {
  transform: translateY(-3px);
  border-color: #c7dcf8;
  box-shadow: 0 14px 32px rgba(91, 134, 186, 0.14);
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
}
.card-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.emoji-icon {
  width: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
}
.card-arrow {
  position: absolute;
  top: 18px;
  right: 19px;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  color: #27374d;
  transition: transform 180ms ease, color 180ms ease;
}
.info-card--link:hover .card-arrow { transform: translateX(3px); color: var(--blue-deep); }

.intro-copy {
  margin: 25px 0 0;
  color: #53657c;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}
.schedule-preview { margin-top: 19px; }
.schedule-row {
  display: grid;
  grid-template-columns: 82px 74px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #edf2f9;
  color: #526279;
  font-size: 13px;
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row span:nth-child(2) { color: #4f6480; }
.schedule-row span:last-child { color: #34455c; }

.info-card--message {
  display: flex;
  flex-direction: column;
}
.today-message {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.footer {
  width: min(100%, var(--content-width));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-contact {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #7d8ba0;
  font-size: 13px;
}
.footer-link {
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.footer-link:hover { color: var(--blue-deep); }
.footer-divider { color: #c0cad7; }
.social-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-link {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8998ab;
}
.social-link svg { width: 20px; fill: currentColor; }
.social-link--x { font-size: 22px; font-family: Arial, sans-serif; }
.social-link:hover { color: var(--blue-deep); }

.subpage-head,
.placeholder-card {
  width: min(100%, var(--content-width));
  margin-left: auto;
  margin-right: auto;
}
.subpage-head { margin-top: 8px; margin-bottom: 16px; }
.subpage-head p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.subpage-head h1 { margin: 0; font-size: 28px; letter-spacing: -1px; }
.placeholder-card {
  min-height: 420px;
  padding: 32px;
  border: 1px solid #dfebfa;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  box-shadow: var(--card-shadow);
}
.placeholder-card h2 { margin-top: 0; }
.muted { color: var(--muted); }
.profile-placeholder {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
}
.avatar-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #edf5ff;
  font-size: 42px;
}
.centered-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #61738b;
}
.centered-placeholder > span { font-size: 32px; }
.schedule-list-large { margin-top: 24px; max-width: 600px; }
.schedule-list-large .schedule-row {
  grid-template-columns: 110px 110px 1fr;
  min-height: 52px;
  font-size: 14px;
}

.email-modal[hidden] { display: none; }
.email-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(33, 53, 78, 0.24); backdrop-filter: blur(5px); }
.modal-dialog {
  position: relative;
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid #dae8f8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 75, 120, 0.22);
  text-align: center;
  animation: modal-in 220ms ease both;
}
.modal-label { margin: 0 0 7px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.modal-dialog h2 { margin: 0 0 20px; font-size: 23px; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #8392a5; font-size: 25px; cursor: pointer; }
.email-address {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dce9f8;
  border-radius: 12px;
  color: #40546d;
  background: #f7fbff;
  font-size: 14px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.modal-help { margin: 10px 0 20px; color: #8b9aac; font-size: 12px; }
.mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(35, 54, 78, 0.9);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.interactive { -webkit-tap-highlight-color: transparent; }
.interactive:focus-visible { outline: 3px solid rgba(78, 148, 239, 0.28); outline-offset: 3px; }
.interactive.is-bouncing { animation: bounce-tap 320ms ease; }
.sparkle-particle {
  position: fixed;
  z-index: 110;
  width: var(--sparkle-size, 3px);
  height: var(--sparkle-size, 3px);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.98);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 8px rgba(184, 217, 255, 0.88);
  pointer-events: none;
  animation: sparkle-fly 560ms ease-out forwards;
}
.sparkle-particle.is-tiny-dot {
  border-radius: 50%;
  clip-path: none;
  opacity: .92;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bounce-tap { 0%,100% { transform: scale(1); } 45% { transform: scale(.965); } 72% { transform: scale(1.018); } }
@keyframes sparkle-fly {
  0% { opacity: 0; transform: translate(0,0) scale(.25) rotate(0deg); }
  14% { opacity: 1; }
  68% { opacity: .88; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.92) rotate(var(--spin, 80deg)); }
}

@media (max-width: 860px) {
  .site-shell { width: min(100% - 24px, 720px); margin: 18px auto; }
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 14px 20px 12px;
  }
  .brand { grid-column: 1; }
  .soop-button { grid-column: 2; }
  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-top: 8px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .main-content { padding: 20px 18px 4px; }
  .home-cards { grid-template-columns: 1fr; }
  .info-card { min-height: 168px; }
  .footer { grid-template-columns: 1fr auto; }
  .footer-contact { grid-column: 1; justify-self: start; }
  .social-links { grid-column: 2; }
  .profile-placeholder { grid-template-columns: 1fr; text-align: center; }
  .avatar-placeholder { width: 130px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .site-shell { width: calc(100% - 14px); margin: 7px auto; border-radius: 18px; }
  .topbar { min-height: 72px; padding: 13px 15px 10px; gap: 8px; }
  .brand-name { font-size: 28px; }
  .brand-subtitle { font-size: 10px; margin-top: 4px; }
  .soop-button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .nav { gap: 21px; }
  .nav-link { font-size: 13px; padding-bottom: 14px; }
  .main-content { padding: 14px 10px 2px; }
  .hero-frame { border-radius: 12px; }
  .home-cards { margin-top: 11px; gap: 10px; }
  .info-card { min-height: 154px; padding: 17px; border-radius: 13px; }
  .card-heading h2 { font-size: 15px; }
  .emoji-icon { font-size: 16px; }
  .card-arrow { top: 14px; right: 15px; font-size: 25px; }
  .intro-copy { margin-top: 18px; font-size: 13px; line-height: 1.75; }
  .schedule-preview { margin-top: 13px; }
  .schedule-row { grid-template-columns: 74px 66px 1fr; gap: 5px; font-size: 11px; min-height: 32px; }
  .today-message { font-size: 14px; }
  .footer { min-height: 58px; padding: 8px 4px 14px; }
  .footer-contact { gap: 11px; font-size: 12px; }
  .social-links { gap: 14px; }
  .social-link { width: 21px; height: 21px; }
  .placeholder-card { min-height: 350px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ───────────────────────── 일정 페이지 ───────────────────────── */
body.modal-open { overflow: hidden; }

.schedule-page {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.schedule-page-head {
  margin: 7px 0 24px;
}
.schedule-page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.schedule-page-head p {
  margin: 7px 0 0;
  color: #7c8da4;
  font-size: 12px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.month-navigation {
  display: flex;
  align-items: center;
  gap: 9px;
}
.calendar-nav-button,
.calendar-month-label {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 14px rgba(91, 126, 171, 0.05);
}
.calendar-nav-button {
  width: 38px;
  padding: 0;
  color: #5f7899;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.calendar-nav-button:hover {
  border-color: #c9ddf7;
  color: var(--blue-deep);
}
.calendar-month-label {
  min-width: 132px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #40536d;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.35px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #66768c;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend-dot {
  width: 18px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
}
.legend-dot--broadcast { background: #dcecff; }
.legend-dot--collab { background: #e2e7f8; }
.legend-dot--off { background: #efe1e4; }
.legend-dot--event { background: #eceae6; }

.calendar-frame {
  overflow-x: auto;
  border: 1px solid #dfe9f6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 9px 25px rgba(101, 135, 176, 0.07);
  scrollbar-width: thin;
}
.calendar-board {
  min-width: 720px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  min-height: 39px;
  align-items: center;
  border-bottom: 1px solid #e7eef8;
  color: #50627c;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}
.calendar-weekdays .is-sunday { color: #b87983; }
.calendar-weekdays .is-saturday { color: #5a86c5; }

.calendar-day {
  position: relative;
  min-height: 77px;
  padding: 9px 9px 7px;
  border-right: 1px solid #e7eef8;
  border-bottom: 1px solid #e7eef8;
  background: rgba(255, 255, 255, 0.18);
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n + 7) { border-bottom: 0; }
.calendar-date-number {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #4c5e77;
  font-size: 11px;
  font-weight: 650;
}
.calendar-day.is-sunday .calendar-date-number { color: #b87983; }
.calendar-day.is-saturday .calendar-date-number { color: #5a86c5; }
.calendar-day.is-outside .calendar-date-number { color: #bdc8d6; }
.calendar-day.is-outside { background: rgba(248, 251, 255, 0.35); }
.calendar-day.is-today .calendar-date-number {
  color: #fff;
  background: #74a8eb;
}
.calendar-day-events {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}
.calendar-event {
  width: 100%;
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: filter 150ms ease, transform 150ms ease;
}
.calendar-event:hover {
  filter: brightness(0.985);
  transform: translateY(-1px);
}
.calendar-event time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.calendar-event span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event--broadcast {
  color: #4c80bd;
  background: #e7f2ff;
}
.calendar-event--collab {
  color: #6577a9;
  background: #eceff9;
}
.calendar-event--off {
  color: #9a7179;
  background: #f3e9eb;
}
.calendar-event--event {
  color: #81796d;
  background: #f0eeea;
}

.calendar-help {
  margin: 15px 0 3px;
  color: #9aa8ba;
  font-size: 10px;
  text-align: center;
}

.schedule-modal[hidden] { display: none; }
.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}
.schedule-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(76, 86, 99, 0.42);
  backdrop-filter: blur(9px) saturate(0.62);
  -webkit-backdrop-filter: blur(9px) saturate(0.62);
  cursor: default;
}
.schedule-dialog {
  position: relative;
  width: min(370px, 100%);
  padding: 27px 28px 25px;
  border: 1px solid #d9e5f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 68px rgba(36, 54, 78, 0.24);
  animation: schedule-dialog-in 220ms cubic-bezier(.2,.8,.25,1) both;
}
.schedule-dialog-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid #dbe7f5;
  border-radius: 50%;
  color: #4b8bdf;
  background: #fff;
  box-shadow: 0 4px 12px rgba(80, 119, 166, 0.1);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.schedule-type-badge {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.schedule-type-badge[data-type="broadcast"] { color: #4c80bd; background: #e7f2ff; }
.schedule-type-badge[data-type="collab"] { color: #6577a9; background: #eceff9; }
.schedule-type-badge[data-type="off"] { color: #9a7179; background: #f3e9eb; }
.schedule-type-badge[data-type="event"] { color: #81796d; background: #f0eeea; }
.schedule-dialog-date {
  margin: 17px 0 0;
  color: #344861;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.schedule-dialog-time {
  position: relative;
  margin: 8px 0 0;
  padding-left: 19px;
  color: #5f7592;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.schedule-dialog-time::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1.5px solid #739dd3;
  border-radius: 50%;
  transform: translateY(-50%);
}
.schedule-dialog-time::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(50% - 4px);
  width: 1.5px;
  height: 4px;
  border-radius: 1px;
  background: #739dd3;
  box-shadow: 2px 3px 0 -0.2px #739dd3;
  transform-origin: bottom;
}
.schedule-dialog h2 {
  margin: 19px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1ebf7;
  color: #347bd5;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -0.8px;
}
.schedule-dialog-description {
  min-height: 60px;
  margin: 14px 0 0;
  color: #485d77;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-line;
}
.schedule-dialog-members {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e1ebf7;
  color: #5c708b;
  font-size: 11px;
  line-height: 1.5;
}
.schedule-dialog-members[hidden] { display: none; }
.schedule-dialog-members svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: #6e9bdd;
}

.schedule-preview-empty {
  margin: 26px 0 0;
  color: #8c9aad;
  font-size: 12px;
}

@keyframes schedule-dialog-in {
  from { opacity: 0; transform: translateY(9px) scale(.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 860px) {
  .calendar-toolbar { align-items: flex-start; }
  .calendar-legend { gap: 10px; padding: 0 10px; }
}

@media (max-width: 620px) {
  .schedule-page-head { margin-bottom: 18px; }
  .schedule-page-head h1 { font-size: 23px; }
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .month-navigation { align-self: flex-start; }
  .calendar-legend {
    align-self: flex-start;
    max-width: 100%;
    overflow-x: auto;
  }
  .calendar-day { min-height: 73px; }
  .schedule-dialog { width: min(342px, 100%); padding: 25px 24px 23px; }
  .schedule-dialog h2 { font-size: 21px; }
}






/* v8: visibly blue dark navy page headings */
:root { --heading-navy: #597ACE; }
.page-main-title,
#profile-title,
#schedule-title,
#closet-title,
#goals-title,
#emailModalTitle {
  color: #597ACE !important;
  -webkit-text-fill-color: #597ACE !important;
}


/* v10: 페이지 내부 어디를 클릭해도 보이는 파티클 전용 최상단 레이어 */
.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  overflow: hidden;
}

.particle-layer .sparkle-particle {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 0.7px rgba(92, 139, 202, 0.42),
    0 0 5px rgba(255, 255, 255, 1),
    0 0 9px rgba(140, 188, 244, 0.92);
}


/* v12: 사이트와 어울리는 은은한 하늘빛/라일락빛 반짝이 */
.particle-layer .sparkle-particle {
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  aspect-ratio: 1;
  border-radius: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(244, 249, 255, 0.98) 0%,
    rgba(226, 239, 255, 0.98) 55%,
    rgba(214, 227, 255, 0.98) 100%
  );
  clip-path: polygon(
    50% 0%,
    61% 36%,
    100% 50%,
    61% 64%,
    50% 100%,
    39% 64%,
    0% 50%,
    39% 36%
  );
  box-shadow:
    0 0 1px rgba(101, 136, 201, 0.55),
    0 0 6px rgba(227, 239, 255, 0.98),
    0 0 11px rgba(181, 208, 255, 0.92),
    0 0 15px rgba(213, 204, 255, 0.55);
  filter:
    drop-shadow(0 0 2px rgba(117, 163, 228, 0.45))
    drop-shadow(0 0 4px rgba(193, 182, 255, 0.28));
}

.particle-layer .sparkle-particle.is-mini-sparkle {
  background: linear-gradient(
    180deg,
    rgba(247, 250, 255, 1) 0%,
    rgba(230, 240, 255, 0.98) 65%,
    rgba(220, 231, 255, 0.98) 100%
  );
  clip-path: polygon(
    50% 0%,
    58% 41%,
    100% 50%,
    58% 59%,
    50% 100%,
    42% 59%,
    0% 50%,
    42% 41%
  );
  opacity: 0.96;
  box-shadow:
    0 0 1px rgba(98, 132, 198, 0.48),
    0 0 5px rgba(228, 239, 255, 0.92),
    0 0 9px rgba(186, 208, 255, 0.78);
}


/* ═══════════════════ PROFILE V15 — EDITORIAL LAYOUT ═══════════════════ */
.profile-editorial {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.profile-editorial-head {
  margin: 7px 0 24px;
}
.profile-editorial-head h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.profile-editorial-head p {
  margin: 7px 0 0;
  color: #7c8da4;
  font-size: 12px;
}

.profile-section {
  position: relative;
  border: 1px solid #dfebfa;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.85);
  box-shadow: var(--card-shadow);
}

.profile-section + .profile-section {
  margin-top: 14px;
}

.profile-section-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.profile-section-label span {
  margin-top: 24px;
  color: #91a8c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}
.profile-section-label i {
  width: 1px;
  flex: 1;
  margin: 12px 0 24px;
  background: linear-gradient(to bottom, #d6e5f7, rgba(214,229,247,0));
}

.profile-section--identity {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 46px;
  align-items: center;
  padding: 40px 44px 40px 70px;
}
.profile-identity-copy h2 {
  margin: 0;
  color: #40536d;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.profile-intro-text {
  margin: 13px 0 25px;
  color: #64758b;
  font-size: 13px;
  line-height: 1.8;
}

.profile-ledger {
  margin: 0;
  border-top: 1px solid #e5edf7;
}
.profile-ledger > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 43px;
  align-items: center;
  border-bottom: 1px solid #e8eff7;
}
.profile-ledger dt {
  color: #8898ac;
  font-size: 10px;
  font-weight: 700;
}
.profile-ledger dd {
  margin: 0;
  color: #43566f;
  font-size: 12.5px;
  line-height: 1.55;
}

.profile-fan-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(52,123,213,.28);
  color: var(--blue-deep);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.profile-main-color {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-main-color-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(75,119,170,.14);
  border-radius: 50%;
}

.profile-photo-button {
  justify-self: end;
  width: 232px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.profile-photo-ring {
  position: relative;
  display: block;
  width: 232px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #cfe0f5;
  border-radius: 50%;
  background: #eaf3ff;
  box-shadow: 0 14px 34px rgba(92,132,181,.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.profile-photo-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  pointer-events: none;
}
.profile-photo-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 67% 45%;
}.profile-photo-button:hover .profile-photo-ring {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(92,132,181,.17);
}
.profile-photo-button.is-photo-bouncing .profile-photo-ring {
  animation: profile-photo-boing 360ms cubic-bezier(.28,.82,.32,1);
}

.profile-section--preference {
  padding: 18px 34px 18px 70px;
}
.profile-preference-rows {
  width: 100%;
}
.profile-preference-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
}
.profile-preference-row + .profile-preference-row {
  border-top: 1px solid #e7eef7;
}
.profile-preference-row h2 {
  margin: 0;
  color: #40536d;
  font-size: 15px;
  letter-spacing: -.4px;
}
.profile-preference-row p {
  margin: 0;
  color: #607188;
  font-size: 12px;
  line-height: 1.7;
}

.profile-section--broadcast {
  padding: 28px 34px 30px 70px;
}
.profile-broadcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 1fr);
  gap: 24px;
}
.profile-goal-column {
  padding-left: 24px;
  border-left: 1px solid #e3ebf6;
}
.profile-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.profile-column-head h2 {
  margin: 0;
  color: #40536d;
  font-size: 15px;
  letter-spacing: -.4px;
}
.profile-column-head span {
  display: none;
}

.profile-content-list {
  border-top: 1px solid #e5edf7;
}
.profile-content-list article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  min-height: 49px;
  border-bottom: 1px solid #e9eff7;
}
.profile-content-list strong {
  color: #4a5d75;
  font-size: 12px;
}
.profile-content-list p {
  margin: 0;
  color: #77879b;
  font-size: 11px;
  line-height: 1.55;
}

.profile-goal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: profile-goal;
  border-top: 1px solid #e5edf7;
}
.profile-goal-list li {
  counter-increment: profile-goal;
  position: relative;
  min-height: 62px;
  padding: 17px 0 15px 43px;
  border-bottom: 1px solid #e9eff7;
  color: #5e7087;
  font-size: 11.5px;
  line-height: 1.65;
}
.profile-goal-list li::before {
  content: counter(profile-goal, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  color: #7397c3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* 팬닉 팝업 */
.fan-modal[hidden] { display: none; }
.fan-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 24px;
}
.fan-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33,53,78,.24);
  backdrop-filter: blur(5px);
}
.fan-dialog {
  position: relative;
  width: min(550px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 28px;
  align-items: center;
  padding: 31px;
  border: 1px solid #d9e7f8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40,75,120,.22);
  animation: modal-in 220ms ease both;
}
.fan-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #8392a5;
  font-size: 25px;
  cursor: pointer;
}.fan-dialog-copy h2 {
  margin: 0 0 14px;
  color: #40536d;
  font-size: 23px;
  letter-spacing: -.6px;
}
.fan-dialog-copy > p:last-child {
  margin: 0;
  color: #607188;
  font-size: 12.5px;
  line-height: 1.8;
}
.fan-dialog-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: linear-gradient(145deg,#f7fbff,#e8f3ff);
}
.fan-dialog-placeholder {
  color: #9aacbf;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 1px;
  text-align: center;
}

/* 팬심 링크 */
.social-link--fansim {
  width: auto;
  height: 23px;
  padding: 0 1px;
  color: #8998ab;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.2px;
}

@keyframes profile-photo-boing {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(1px) scale(0.975); }
  62% { transform: translateY(-4px) scale(1.018); }
  82% { transform: translateY(0) scale(0.995); }
}

@media (max-width: 760px) {
  .profile-section--identity {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 28px 34px 62px;
  }
  .profile-photo-button {
    grid-row: 1;
    justify-self: center;
    width: 205px;
  }
  .profile-photo-ring { width: 205px; }
  .profile-broadcast-layout { grid-template-columns: 1fr; }
  .profile-goal-column {
    padding: 24px 0 0;
    border-top: 1px solid #e3ebf6;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .profile-editorial-head h1 { font-size: 23px; }
  .profile-section-label { width: 31px; }
  .profile-section-label span { margin-top: 19px; }
  .profile-section--identity,
  .profile-section--preference,
  .profile-section--broadcast {
    padding-left: 47px;
    padding-right: 18px;
  }
  .profile-ledger > div { grid-template-columns: 78px minmax(0,1fr); }
  .profile-preference-row { grid-template-columns: 70px minmax(0,1fr); }
  .profile-content-list article { grid-template-columns: 92px minmax(0,1fr); }
  .fan-dialog {
    grid-template-columns: 1fr;
    width: min(350px, 100%);
    padding: 27px 23px 23px;
  }
  .fan-dialog-image {
    width: 130px;
    margin: 0 auto;
  }
}

/* v16 refinements: simpler labels, solid color dot, gentler photo motion, wider goal column */

/* v17: soft press motion for SOOP button */


/* v18: 검증된 SOOP 버튼 말랑 모션 */
.soop-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #c9def9;
  border-radius: 12px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 12px rgba(105, 148, 202, 0.08);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(0) scale(1);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 170ms cubic-bezier(.22, .78, .24, 1),
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.soop-button:hover {
  transform: translateY(-3px) scale(1.025);
  background: #eef6ff;
  border-color: #aecdF7;
  box-shadow: 0 10px 22px rgba(94, 143, 204, 0.18);
}

.soop-button.is-soop-pressed {
  transform: translateY(2px) scaleX(1.025) scaleY(0.91) !important;
  background: #e7f2ff;
  border-color: #9fc6f4;
  box-shadow: 0 2px 6px rgba(94, 143, 204, 0.10);
}

.soop-button.is-soop-releasing {
  animation: soop-soft-pop 330ms cubic-bezier(.22, .82, .32, 1) both !important;
}

/* 공통 클릭 애니메이션이 SOOP 전용 모션을 덮지 않도록 차단 */
.soop-button.interactive.is-bouncing {
  animation: none !important;
}

@keyframes soop-soft-pop {
  0%   { transform: translateY(2px) scaleX(1.025) scaleY(0.91); }
  55%  { transform: translateY(-2px) scaleX(0.985) scaleY(1.045); }
  78%  { transform: translateY(0) scaleX(1.01) scaleY(0.985); }
  100% { transform: translateY(0) scale(1); }
}


/* ═══════════════════════ WARDROBE V19 ═══════════════════════ */
.wardrobe-page {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-bottom: 12px;
}

.wardrobe-page-head {
  margin: 7px 0 24px;
}
.wardrobe-page-head h1 {
  margin: 0;
  color: #597ACE;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.wardrobe-page-head p {
  margin: 7px 0 0;
  color: #7c8da4;
  font-size: 12px;
}

.wardrobe-filter-panel {
  margin-bottom: 16px;
  border-bottom: 1px solid #e3ebf6;
}

.wardrobe-primary-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  gap: 0;
  padding: 3px;
  border: 1px solid #dce7f6;
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.92);
}

.wardrobe-primary-tab {
  min-height: 39px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  color: #8291a5;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.wardrobe-primary-tab:hover {
  color: #5879a4;
  background: rgba(255,255,255,.72);
}
.wardrobe-primary-tab.is-active {
  color: #4e82c7;
  background: #fff;
  box-shadow: 0 4px 13px rgba(104, 139, 182, .11);
}

.wardrobe-secondary-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 20px;
}

.wardrobe-secondary-tab {
  position: relative;
  min-width: 48px;
  padding: 0 2px 15px;
  border: 0;
  color: #8a99ac;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease;
}
.wardrobe-secondary-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #6c9ee1;
  opacity: 0;
  transform: translateX(-50%) scaleX(.45);
  transition: 180ms ease;
}
.wardrobe-secondary-tab:hover {
  color: #607b9d;
}
.wardrobe-secondary-tab.is-active {
  color: #4e82c7;
}
.wardrobe-secondary-tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.wardrobe-gallery-frame {
  min-height: 450px;
  padding: 24px;
  border: 1px solid #dfebfa;
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--card-shadow);
}

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.wardrobe-card {
  min-width: 0;
  padding: 8px 8px 13px;
  border: 1px solid #e0e9f5;
  border-radius: 14px;
  color: #53657c;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 19px rgba(105, 135, 172, .08);
  font: inherit;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(.22,.78,.24,1),
    border-color 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease;
}

.wardrobe-card:hover {
  transform: translateY(-4px);
  border-color: #cbdff6;
  background: #fff;
  box-shadow: 0 13px 27px rgba(105, 135, 172, .13);
}

.wardrobe-card:active {
  transform: translateY(-1px) scale(.985);
}

.wardrobe-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #e0eaf6;
  border-radius: 10px;
  background: #edf5ff;
}

.wardrobe-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
  pointer-events: none;
}

.wardrobe-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms cubic-bezier(.2,.75,.25,1);
}

.wardrobe-card:hover .wardrobe-card-image img {
  transform: scale(1.025);
}

.wardrobe-card-name {
  display: block;
  min-height: 18px;
  margin-top: 11px;
  overflow: hidden;
  color: #52657e;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-empty {
  margin: 150px 0 0;
  color: #92a0b1;
  font-size: 12px;
  text-align: center;
}

/* 원본 비율을 그대로 보여주는 이미지 팝업 */
.wardrobe-modal[hidden] {
  display: none;
}

.wardrobe-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wardrobe-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 50, 74, .29);
  backdrop-filter: blur(6px);
}

.wardrobe-dialog {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(760px, calc(100vw - 56px));
  max-height: calc(100vh - 72px);
  padding: 15px;
  overflow: auto;
  border: 1px solid #d9e7f8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(42, 70, 107, .22);
  animation: wardrobe-dialog-in 220ms ease both;
}

.wardrobe-dialog-head {
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 10px;
}

.wardrobe-dialog-head h2 {
  margin: 4px 0 0;
  color: #4d6079;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.35px;
}

.wardrobe-dialog-close {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dae7f6;
  border-radius: 50%;
  color: #6f86a3;
  background: #fff;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.wardrobe-modal-stage {
  position: relative;
  min-width: min(270px, calc(100vw - 92px));
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e9f4;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(249,252,255,.94), rgba(237,245,255,.92));
}

.wardrobe-modal-stage img {
  width: auto;
  height: auto;
  max-width: min(64vw, 690px);
  max-height: 56vh;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.wardrobe-modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(207, 222, 241, .95);
  border-radius: 50%;
  color: #617d9f;
  background: rgba(255,255,255,.90);
  box-shadow: 0 6px 18px rgba(73, 104, 143, .13);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(5px);
}

.wardrobe-modal-arrow--prev {
  left: 12px;
}
.wardrobe-modal-arrow--next {
  right: 12px;
}
.wardrobe-modal-arrow[hidden] {
  display: none;
}

.wardrobe-modal-dots {
  min-height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}

.wardrobe-modal-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5e1f0;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}
.wardrobe-modal-dot.is-active {
  width: 17px;
  border-radius: 999px;
  background: #79a4dc;
}

@keyframes wardrobe-dialog-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .wardrobe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .wardrobe-gallery-frame {
    padding: 18px;
  }
}

@media (max-width: 540px) {
  .wardrobe-page-head h1 {
    font-size: 23px;
  }
  .wardrobe-primary-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .wardrobe-secondary-tabs {
    gap: 28px;
  }
  .wardrobe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wardrobe-gallery-frame {
    min-height: 360px;
    padding: 12px;
    border-radius: 14px;
  }
  .wardrobe-card {
    padding: 6px 6px 11px;
    border-radius: 12px;
  }
  .wardrobe-dialog {
    padding: 13px;
    border-radius: 15px;
  }
  .wardrobe-modal-stage img {
    max-width: calc(100vw - 88px);
    max-height: 58vh;
  }
  .wardrobe-modal-arrow {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}


/* v20 안전 표시: 자바스크립트가 늦게 로드되어도 정적 옷장 카드가 먼저 보입니다. */
#wardrobeGrid:empty::before {
  content: "옷장 이미지를 불러오는 중이에요.";
  grid-column: 1 / -1;
  padding: 130px 0;
  color: #92a0b1;
  font-size: 12px;
  text-align: center;
}


/* v21: 옷장 이미지 팝업을 이전보다 약 15~20% 작게 조정 */

/* v22: 최종 팝업 크기는 index.html의 #wardrobe-popup-size-v22가 강제 적용합니다. */


/* ═══════════════════ V23 — WORK PAGE ═══════════════════ */
.goals-page {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.goals-page-head {
  margin: 7px 0 22px;
}
.goals-page-head h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.goals-page-head p {
  margin: 7px 0 0;
  color: #7c8da4;
  font-size: 12px;
}

.goals-search-wrap {
  margin-bottom: 18px;
}
.goals-search-box {
  width: min(100%, 462px);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #dbe8f8;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 6px 18px rgba(117, 148, 192, .05);
}
.goals-search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: #7ea0d5;
}
.goals-search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #43566f;
  font: inherit;
  font-size: 13.5px;
}
.goals-search-box input::placeholder {
  color: #a0b0c5;
}

.goals-board {
  border: 1px solid #dfebfa;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.84);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.goal-item + .goal-item {
  border-top: 1px solid #e8eff8;
}
.goal-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto 34px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.goal-item.is-expanded .goal-summary {
  background: linear-gradient(180deg, rgba(247,250,255,.62), rgba(246,250,255,.34));
}
.goal-marker {
  width: 6px;
  height: 6px;
  justify-self: center;
  border-radius: 50%;
  background: #8eafe0;
  box-shadow: none;
}
.goal-identity strong {
  display: block;
  color: #354966;
  font-size: 15px;
  letter-spacing: -0.4px;
}
.goal-identity small {
  display: block;
  margin-top: 4px;
  color: #8d9db2;
  font-size: 12px;
}
.goal-count {
  min-width: 60px;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
}
.goal-count b {
  color: #5b86da;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.7px;
}
.goal-count em {
  color: #7389a8;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
}
.goal-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e5f8;
  border-radius: 50%;
  color: #7e9ccc;
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.goal-item.is-expanded .goal-chevron {
  transform: rotate(180deg);
  background: #f8fbff;
  border-color: #cfe1f8;
}
.goal-detail {
  padding: 0 16px 16px 60px;
}
.goal-detail[hidden] {
  display: none !important;
}
.goal-detail-card {
  max-width: 800px;
  padding: 18px 20px;
  border: 1px solid #e3ecfa;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250,252,255,.96), rgba(245,249,255,.80));
}
.goal-detail-list {
  display: grid;
  gap: 13px;
}
.goal-detail-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.goal-detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d90df;
  box-shadow: 0 0 0 3px rgba(93, 144, 223, .10);
}
.goal-detail-name {
  color: #3e5271;
  font-size: 14px;
}
.goal-detail-qty {
  min-width: 40px;
  padding-left: 24px;
  border-left: 1px solid #e4ebf7;
  color: #7f92ab;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.goals-empty {
  margin: 0;
  padding: 88px 16px;
  text-align: center;
  color: #90a0b6;
  font-size: 13px;
}

@media (max-width: 720px) {
  .goal-summary {
    grid-template-columns: 20px minmax(0,1fr) auto 30px;
    gap: 10px;
    padding: 14px 14px;
  }
  .goal-identity strong {
    font-size: 14px;
  }
  .goal-detail {
    padding: 0 12px 14px 48px;
  }
}

@media (max-width: 540px) {
  .goals-page-head h1 {
    font-size: 23px;
  }
  .goals-search-box {
    min-height: 42px;
    padding: 0 14px;
  }
  .goal-summary {
    grid-template-columns: 16px minmax(0,1fr) auto 26px;
    gap: 9px;
    padding: 13px 11px;
  }
  .goal-count b {
    font-size: 18px;
  }
  .goal-detail {
    padding: 0 10px 12px 38px;
  }
  .goal-detail-card {
    padding: 14px 14px;
    border-radius: 14px;
  }
  .goal-detail-row {
    grid-template-columns: 10px minmax(0,1fr) auto;
    gap: 10px;
  }
  .goal-detail-name,
  .goal-detail-qty {
    font-size: 12px;
  }
}

/* v24: 업보 행 접기 허용, 사람 아이콘 제거, 앞 표시는 중앙 점으로 변경 */

/* v25: 업보는 처음 모두 접힘 / 재클릭 시 접힘 / 사람 아이콘 없음 / 앞 표시는 작은 점 */


/* v29: 관리자 프로필 편집 연결. 공개 페이지 레이아웃은 v28과 동일 */

/* ═══════════════════ V51 — HOME / PROFILE / SCHEDULE / INQUIRIES ═══════════════════ */
.brand-name.is-korean {
  font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif;
  font-size: 27px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -1.1px;
}
.brand-name.is-latin {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -1.6px;
}

.calendar-day {
  text-align: left;
}
.calendar-date-number {
  margin: 0;
}

.fan-dialog-image {
  overflow: hidden;
  border-radius: 18px;
}
.fan-dialog-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inquiry-modal[hidden] { display: none; }
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
}
.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33,53,78,.24);
  backdrop-filter: blur(5px);
}
.inquiry-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 30px;
  border: 1px solid #dae8f8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40,75,120,.22);
  animation: modal-in 220ms ease both;
}
.inquiry-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #8392a5;
  font-size: 25px;
  cursor: pointer;
}
.inquiry-dialog h2 {
  margin: 0;
  color: #597ACE;
  font-size: 23px;
  letter-spacing: -.7px;
}
.inquiry-dialog-copy {
  margin: 7px 0 20px;
  color: #8090a5;
  font-size: 12px;
}
.inquiry-dialog form {
  display: grid;
  gap: 13px;
}
.inquiry-dialog label {
  display: grid;
  gap: 7px;
}
.inquiry-dialog label span {
  color: #52657e;
  font-size: 11px;
  font-weight: 750;
}
.inquiry-dialog input,
.inquiry-dialog textarea {
  width: 100%;
  border: 1px solid #dce9f8;
  border-radius: 11px;
  background: #fff;
  color: #34455c;
  font: inherit;
  outline: 0;
}
.inquiry-dialog input { height: 42px; padding: 0 12px; }
.inquiry-dialog textarea { min-height: 135px; padding: 11px 12px; resize: vertical; }
.inquiry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 3px;
}
.inquiry-actions span {
  margin-right: auto;
  color: #6f89ab;
  font-size: 11px;
}
.inquiry-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 540px) {
  .brand-name.is-korean { font-size: 24px; }
  .brand-name.is-latin { font-size: 28px; }
  .inquiry-dialog { padding: 25px 20px 20px; }
}
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.calendar-date-number { align-self: flex-start; }
.calendar-day-events { width: 100%; }


/* ═══════════════════ V54 — FAN CHARACTER NAME / POPUP ═══════════════════ */
/* 로고: 영문/한글 모두 같은 계열의 둥글고 깔끔한 산세리프 톤 */
.brand-name,
.brand-name.is-korean,
.brand-name.is-latin {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  font-family: ui-rounded, "Arial Rounded MT Bold", "SF Pro Rounded", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: var(--blue) !important;
  -webkit-text-fill-color: var(--blue) !important;
  transform: none !important;
}
.brand-name.is-korean {
  font-size: 28px !important;
  letter-spacing: -1.2px !important;
}
.brand-name.is-latin {
  font-size: 31px !important;
  letter-spacing: -1.1px !important;
}

/* 팬 캐릭터는 프로필 정보표의 한 줄로만 표시하고, 클릭하면 팝업으로 소개해요. */
.profile-fan-link {
  color: #597ACE;
  font-weight: 700;
}

/* 이메일 팝업은 주소 확인/복사만. 별도 메일 전송 버튼은 없음 */
#emailModal .mail-button { display: none !important; }

@media (max-width: 540px) {
  .brand-name.is-korean { font-size: 24px !important; }
  .brand-name.is-latin { font-size: 27px !important; }
}


/* ═══════════════════ V55 — HOME CARD ALIGNMENT + INQUIRY LABELS ═══════════════════ */
.home-cards .info-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
.home-cards .card-heading {
  min-height: 26px;
  width: 100%;
  align-items: center;
}
.home-cards .intro-copy,
.home-cards .schedule-preview,
.home-cards .today-message {
  margin-top: 22px;
}
.home-cards .intro-copy {
  margin-bottom: 0;
}
.home-cards .schedule-preview {
  width: 100%;
}
.home-cards .today-message {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}
.inquiry-dialog .field-optional {
  color: #9aa9bd;
  font-style: normal;
  font-weight: 500;
}


/* ═══════════════════ V56 — HOME EDITORIAL HARMONY ═══════════════════ */
.home-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.home-cards .info-card {
  min-height: 190px;
  padding: 20px 20px 18px;
  border-color: #e1eaf6;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 7px 20px rgba(93,125,166,.065);
}
.home-cards .info-card--link:hover {
  transform: translateY(-2px);
  border-color: #cfdef1;
  box-shadow: 0 10px 24px rgba(93,125,166,.09);
}
.home-cards .card-heading {
  min-height: 28px;
  gap: 10px;
  padding-right: 24px;
  border-bottom: 1px solid #e9eff7;
  padding-bottom: 12px;
}
.home-cards .card-heading h2 {
  color: #40536d;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.35px;
}
.home-cards .emoji-icon {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  overflow: hidden;
  border-radius: 50%;
  background: #a9c7ef;
  color: transparent;
  font-size: 0;
}
.home-cards .card-arrow {
  top: 17px;
  right: 18px;
  color: #9aabc0;
  font-size: 22px;
}
.home-cards .intro-copy,
.home-cards .schedule-preview,
.home-cards .today-message {
  margin-top: 17px;
}
.home-cards .intro-copy,
.home-cards .today-message {
  color: #65768d;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
}
.home-cards .today-message {
  color: #59708d;
}
.home-cards .schedule-row {
  grid-template-columns: 74px 58px minmax(0,1fr);
  min-height: 31px;
  gap: 5px;
  color: #6c7e94;
  font-size: 11.5px;
}
.home-cards .schedule-row span:nth-child(2) { color: #7e8fa4; }
.home-cards .schedule-row span:last-child { color: #50647e; }
@media (max-width: 720px) {
  .home-cards { grid-template-columns: 1fr; }
}


/* ═════════════ v59 — original sparkle visual, reliability pin ═════════════ */
.particle-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.particle-layer .sparkle-particle {
  position: absolute !important;
  width: var(--sparkle-size) !important;
  height: var(--sparkle-size) !important;
  aspect-ratio: 1;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(244,249,255,.98) 0%, rgba(226,239,255,.98) 55%, rgba(214,227,255,.98) 100%) !important;
  clip-path: polygon(50% 0%,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0% 50%,39% 36%) !important;
  box-shadow: 0 0 1px rgba(101,136,201,.55),0 0 6px rgba(227,239,255,.98),0 0 11px rgba(181,208,255,.92),0 0 15px rgba(213,204,255,.55) !important;
  filter: drop-shadow(0 0 2px rgba(117,163,228,.45)) drop-shadow(0 0 4px rgba(193,182,255,.28));
  pointer-events: none !important;
  animation: sparkle-fly 560ms ease-out forwards !important;
}
.particle-layer .sparkle-particle.is-mini-sparkle {
  background: linear-gradient(180deg,rgba(247,250,255,1) 0%,rgba(230,240,255,.98) 65%,rgba(220,231,255,.98) 100%) !important;
  clip-path: polygon(50% 0%,58% 41%,100% 50%,58% 59%,50% 100%,42% 59%,0% 50%,42% 41%) !important;
  opacity: .96;
}
/* Keep the explicitly requested click sparkle visible even when the OS has Reduce Motion enabled. */
@media (prefers-reduced-motion: reduce) {
  .particle-layer .sparkle-particle {
    animation-duration: 560ms !important;
    animation-iteration-count: 1 !important;
  }
}
