/* =========================================================================
   미리펀딩 — 디자인 시스템
   방향: 밝은 이미지 중심 레이아웃 — 흰 바탕, 테두리 없는 카드, 민트 강조, 굵은 달성률.
   색: 로고 2색 — 네이비 #05265F(제목·강조 텍스트·민트 위 글자)와 민트 #01C8A5(채움·진행바·강조선).
   대비 기준(guide 19장, WCAG AA): 본문 글자 4.5:1, 큰 글자·UI 3:1. 민트는 흰 바탕 대비가 낮아(2.1:1)
   채움(네이비 글자와 함께, 6.8:1)·장식에만 쓰고, 큰 숫자는 --c-brand-500, 작은 글자·링크는 --c-brand-700을 쓴다.
   색만으로 의미를 전달하지 않도록 텍스트/아이콘을 병행한다.
   ========================================================================= */

/* 1. 토큰 ------------------------------------------------------------------ */
:root {
  --c-brand: #01c8a5;           /* 로고 민트: 버튼 채움(글자 네이비 6.8:1)·진행바·강조선 */
  --c-brand-hover: #00b394;
  --c-brand-500: #00a084;       /* 큰 숫자(19px 굵게 이상)·입력 강조 테두리 — 흰 바탕 3.3:1 */
  --c-brand-600: #008a72;
  --c-brand-700: #007a65;       /* 작은 글자·링크 — 흰 바탕 5.3:1 */
  --c-brand-dark: #05265f;      /* 로고 네이비: 활성 칩·강조 텍스트 */
  --c-navy-900: #05265f;
  --c-title: #05265f;           /* 제목 — 흰 바탕 14.5:1 */
  --c-text: #333d4b;
  --c-text-2: #4e5968;          /* 보조 텍스트 7.1:1 */
  --c-muted: #6b7684;           /* 캡션 4.6:1 */
  --c-muted-2: #8b95a1;         /* 장식·비필수 */
  --c-border: #e5e8eb;
  --c-border-strong: #d1d6db;
  --c-input: #8b95a1;           /* 입력 테두리 3.0:1 */
  --c-surface: #ffffff;
  --c-bg: #ffffff;
  --c-bg-soft: #f9fafb;
  --c-fill: #f2f4f6;            /* 회색 칩·보조 버튼 */
  --c-tint: #e6faf6;            /* 민트 연한 배경 */
  --c-tint-2: #c4f1e8;
  --c-light: #f2f4f6;
  --c-green: #12b886;
  --c-green-text: #087a55;
  --c-green-tint: #e6f8f1;
  --c-red: #f04452;
  --c-red-text: #d22030;
  --c-red-tint: #fff0f1;
  --c-amber: #ffa41b;
  --c-amber-text: #a15c00;
  --c-amber-tint: #fff5e5;
  --c-blue: #3182f6;
  --c-blue-text: #1b64da;
  --c-blue-tint: #e8f3ff;

  --grad-brand: var(--c-brand);
  --grad-hero: linear-gradient(120deg, #041b47 0%, #05265f 50%, #0b4f7a 100%);
  --grad-progress: var(--c-brand-500);
  --grad-progress-done: var(--c-green);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.07);
  --shadow-pop: 0 10px 32px rgba(0, 0, 0, 0.14);
  --shadow-brand: none;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --container: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. 기본 ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; /* 고정 헤더가 #join 등 앵커 대상을 가리지 않게 */ }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-brand-700); text-decoration: none; }
a:hover { color: var(--c-title); }
h1, h2, h3, h4 { color: var(--c-title); margin: 0; line-height: 1.35; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }
::selection { background: var(--c-tint-2); }
:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 2px; border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
svg.icon { flex: none; display: inline-block; vertical-align: -0.18em; }

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

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--c-title); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* 3. 레이아웃 --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 1040px; }
.page { padding: 28px 0 80px; min-height: calc(100vh - var(--header-h) - 220px); }
.page--flush { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: var(--gap, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.span-2 { grid-column: span 2; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-right { text-align: right; } .text-center { text-align: center; }
.w-full { width: 100%; }
.muted { color: var(--c-text-2); }
.caption { font-size: 13px; color: var(--c-muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; color: var(--c-title); }
.text-brand { color: var(--c-brand-700); }
.text-green { color: var(--c-green-text); }
.text-red { color: var(--c-red-text); }
.text-amber { color: var(--c-amber-text); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hide-mobile { }
.show-mobile { display: none !important; }

/* 4. 헤더 ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--c-border); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--c-title); flex: none; }
.brand:hover { color: var(--c-title); }
.brand__logo { display: block; width: auto; height: 30px; } /* 가로형 로고(static/img/brand/logo-horizontal.svg, 가로:세로 4.46:1) */
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; min-width: 0; }
.main-nav a { color: var(--c-title); font-weight: 700; font-size: 17px; padding: 8px 0; position: relative; white-space: nowrap; letter-spacing: -0.03em; }
.main-nav a:hover { color: var(--c-brand-700); }
.main-nav a.is-active { color: var(--c-brand-700); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-search { position: relative; width: 220px; margin-right: 8px; }
.header-search input { width: 100%; height: 40px; border: 1.5px solid var(--c-brand-500); border-radius: var(--r-pill); padding: 0 40px 0 16px; font-size: 14px; background: #fff; color: var(--c-title); }
.header-search input::placeholder { color: var(--c-muted); }
.header-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 160, 132, 0.18); }
.header-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--c-title); display: grid; place-items: center; padding: 0; }
.nav-home .header-search { display: none; }
.header-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; color: var(--c-text-2); font-size: 14px; font-weight: 500; white-space: nowrap; border-radius: var(--r-md); }
.header-link:hover { color: var(--c-title); background: var(--c-fill); }
.header-divider { width: 1px; height: 16px; background: var(--c-border-strong); margin: 0 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 0; background: transparent; color: var(--c-title); }
.icon-btn:hover { background: var(--c-fill); color: var(--c-title); }
.user-menu { position: relative; }
.user-menu__trigger { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border: 0; background: none; border-radius: var(--r-md); color: var(--c-title); font-weight: 600; font-size: 14px; }
.user-menu__trigger:hover { background: var(--c-fill); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--c-tint); color: var(--c-brand-700); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.avatar--xl { width: 72px; height: 72px; font-size: 26px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 8px; display: none; z-index: 50; }
.dropdown.is-open { display: block; }
.dropdown__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--c-border); margin-bottom: 6px; }
.dropdown a, .dropdown button.dropdown__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-md); color: var(--c-text); font-weight: 500; font-size: 14px; background: none; border: 0; text-align: left; }
.dropdown a:hover, .dropdown button.dropdown__item:hover { background: var(--c-fill); color: var(--c-title); }
.dropdown__sep { height: 1px; background: var(--c-border); margin: 6px 4px; }
.mobile-nav-toggle { display: none; }
.mobile-drawer { display: none; }
/* 관리자 전용 GNB(운영 콘솔·슈퍼관리자): 공개 사이트처럼 가운데 폭에 모으지 않고 화면 전체 폭에 맞춘다(왼쪽 메뉴와 같은 정렬) */
.admin-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 24px 0 20px; }
.admin-header .brand__logo { height: 28px; }
.admin-header__area { margin-left: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-title); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.admin-header__nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.admin-header__nav a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--r-md); color: var(--c-text-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.admin-header__nav a:hover { background: var(--c-fill); color: var(--c-title); }
.admin-header__nav a.is-active { background: var(--c-tint); color: var(--c-brand-700); }
.admin-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.admin-header__link { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--r-md); color: var(--c-text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.admin-header__link:hover { background: var(--c-fill); color: var(--c-title); }
.admin-header__who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.admin-header__who strong { font-size: 14px; color: var(--c-title); }
.admin-header__who small { font-size: 12px; color: var(--c-muted); font-weight: 500; }
/* 전체 폭 작업 화면(메이커 스튜디오 작성 단계): 공개 헤더 메뉴는 그대로 두되 헤더 안쪽 폭을 화면 전체로 맞춰 왼쪽 단계 메뉴와 정렬한다 */
.layout-wide .site-header__inner.container { max-width: none; padding: 0 24px 0 20px; }
@media (max-width: 767px) {
  .admin-header__inner { gap: 8px; padding: 0 12px; }
  .admin-header__who { display: none; }
  .admin-header .brand__logo { width: 31px; height: 26px; object-fit: cover; object-position: left center; } /* 좁은 화면: 로고 왼쪽 심볼만 */
  .admin-header__nav a span, .admin-header__link span { display: none; }
  .admin-header__nav a, .admin-header__link { padding: 0 10px; }
  .layout-wide .site-header__inner.container { padding: 0 16px; }
}

/* 5. 버튼 ------------------------------------------------------------------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: background 0.15s var(--ease), color 0.15s, border-color 0.15s, transform 0.1s; text-decoration: none; position: relative; user-select: none; letter-spacing: -0.02em; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand); color: var(--c-title); }
.btn--primary:hover { background: var(--c-brand-hover); color: var(--c-title); }
.btn--secondary { background: #fff; color: var(--c-title); border-color: var(--c-border-strong); }
.btn--secondary:hover { color: var(--c-title); border-color: var(--c-muted-2); background: var(--c-bg-soft); }
.btn--outline { background: #fff; color: var(--c-title); border: 1.5px solid var(--c-brand-500); border-radius: var(--r-pill); }
.btn--outline:hover { background: var(--c-tint); color: var(--c-title); }
.btn--soft { background: var(--c-fill); color: var(--c-text); }
.btn--soft:hover { background: #e5e8eb; color: var(--c-title); }
.btn--white { background: #fff; color: var(--c-title); }
.btn--white:hover { color: var(--c-title); background: #f2f4f6; }
.btn--dark { background: var(--c-title); color: #fff; }
.btn--dark:hover { background: #333d4b; color: #fff; }
.btn--danger { background: var(--c-red-text); color: #fff; }
.btn--danger:hover { color: #fff; background: #b81b2a; }
.btn--danger-soft { background: var(--c-red-tint); color: var(--c-red-text); border-color: #ffd0d4; }
.btn--danger-soft:hover { color: var(--c-red-text); background: #ffe1e4; }
.btn--success { background: var(--c-green-text); color: #fff; }
.btn--warning { background: var(--c-amber-tint); color: var(--c-amber-text); border-color: #ffd9a3; }
.btn--text { background: none; color: var(--c-brand-700); padding: 0 8px; height: auto; }
.btn--text:hover { color: var(--c-title); text-decoration: underline; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn--xs { --h: 30px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); font-weight: 600; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { cursor: not-allowed; opacity: 1; background: var(--c-fill); color: var(--c-muted); box-shadow: none; border-color: transparent; filter: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(5, 38, 95, 0.25); border-top-color: var(--c-title); animation: spin 0.7s linear infinite; }
.btn--danger.is-loading::after, .btn--dark.is-loading::after { border-color: rgba(255, 255, 255, 0.45); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.8s linear infinite; vertical-align: -0.15em; }
.spinner--sm { width: 11px; height: 11px; border-width: 2px; }

/* 6. 배지·칩·태그 ----------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--c-tint); color: var(--c-brand-700); }
.badge--indigo { background: var(--c-blue-tint); color: var(--c-blue-text); }
.badge--warning { background: var(--c-amber-tint); color: var(--c-amber-text); }
.badge--danger { background: var(--c-red-tint); color: var(--c-red-text); }
.badge--neutral { background: var(--c-fill); color: var(--c-text-2); }
.badge--outline { background: #fff; border: 1px solid var(--c-border-strong); color: var(--c-text); }
.badge--dark { background: rgba(5, 38, 95, 0.72); color: #fff; }
.badge--sm { height: 20px; padding: 0 6px; font-size: 11px; }
.badge--goal { background: var(--c-brand-700); color: #fff; box-shadow: 0 1px 3px rgba(5, 38, 95, 0.18); } /* 목표 달성(카드 썸네일 위): 🎉 + 흰 글자. 흰 글자 대비를 위해 진한 민트(5.2:1) */
.badge--sm .badge__dot { width: 5px; height: 5px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--c-fill); color: var(--c-text-2); font-size: 13px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); background: var(--c-fill); color: var(--c-text-2); font-size: 12px; font-weight: 600; }
.tag--brand { background: var(--c-tint); color: var(--c-brand-700); }
.tag--muted { background: var(--c-fill); color: var(--c-text); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: var(--c-fill); color: var(--c-text); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.chip:hover { background: #e5e8eb; color: var(--c-title); }
.chip.is-active { background: var(--c-title); color: #fff; font-weight: 700; }
.chip__count { font-weight: 600; opacity: 0.8; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-brand-700); }

/* 7. 카드 ------------------------------------------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: none; }
.card--pad { padding: 28px; }
.card--pad-sm { padding: 20px; }
.card__title { font-size: 18px; margin-bottom: 4px; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card--tint { background: var(--c-bg-soft); border-color: transparent; }
.card--plain { box-shadow: none; }

.stat-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.stat-card__icon { width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; flex: none; }
.stat-card__icon--indigo { background: var(--c-tint); color: var(--c-brand-700); }
.stat-card__icon--green { background: var(--c-green-tint); color: var(--c-green-text); }
.stat-card__icon--amber { background: var(--c-amber-tint); color: var(--c-amber-text); }
.stat-card__label { font-size: 14px; color: var(--c-text-2); }
.stat-card__value { font-size: 26px; font-weight: 800; color: var(--c-title); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card__unit { font-size: 15px; font-weight: 700; margin-left: 3px; }

/* 커버(이미지 없을 때 부드러운 테마 배경 + 이모지) */
.cover { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--c-fill); }
.cover img.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover--indigo { background: linear-gradient(135deg, #dfe7ff 0%, #c7d5fb 100%); color: #213a7a; }
.cover--brand { background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%); color: #fff; }
.cover--teal { background: linear-gradient(135deg, #d5f5f0 0%, #b5ebe3 100%); color: #0f5a52; }
.cover--coral { background: linear-gradient(135deg, #ffe3dc 0%, #ffc9bb 100%); color: #8a3523; }
.cover--violet { background: linear-gradient(135deg, #ece5ff 0%, #d8cbfb 100%); color: #4b3a8c; }
.cover--amber { background: linear-gradient(135deg, #fff0d6 0%, #ffe0ad 100%); color: #7a4b0a; }
.cover--slate { background: linear-gradient(135deg, #e6eaf2 0%, #cfd6e4 100%); color: #33415c; }
.cover--green { background: linear-gradient(135deg, #e0f5e4 0%, #c2ebcb 100%); color: #24603a; }
.cover--rose { background: linear-gradient(135deg, #ffe4ea 0%, #ffcad6 100%); color: #8c2c43; }
.cover--sand { background: linear-gradient(135deg, #f4ebe2 0%, #e7d6c4 100%); color: #6b4b30; }
.cover__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cover__headline { font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; }
.cover__emoji { position: absolute; font-size: 84px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12)); }

/* 상단 라벨(커버 위): 시작 예정·마감 임박·종료 등 */
.cover-wrap { position: relative; }
.cover__labels { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; z-index: 1; }
.cover__like { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border: 0; background: none; color: #fff; display: grid; place-items: center; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.cover__like.is-liked { color: var(--c-red); }
.cover__like.is-liked svg { fill: currentColor; }

/* 행사 카드 (와디즈 카드형: 이미지 → 상태·제목·기관 → 지표) */
.event-card { display: flex; flex-direction: column; position: relative; height: 100%; }
.event-card .cover { aspect-ratio: 16 / 9; border-radius: var(--r-md); padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.event-card .cover__emoji { right: 22px; bottom: 14px; font-size: 64px; }
.event-card .cover__headline { font-size: 19px; max-width: 70%; }
.event-card:hover .cover { box-shadow: var(--shadow-card); }
.event-card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card__state { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--c-title); letter-spacing: -0.03em; }
.event-card__state.is-live { color: var(--c-brand-500); font-size: 19px; }
.event-card__state .badge { font-weight: 700; }
.event-card__title { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--c-title); }
.event-card__title a { color: inherit; }
.event-card__title a::after { content: ""; position: absolute; inset: 0; }
.event-card__meta { display: flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 13px; }
.event-card__desc { color: var(--c-text-2); font-size: 14px; line-height: 1.5; }
.event-card__org { color: var(--c-muted); }
/* 지표·'행사 보기'는 카드 아래에 붙여 한 줄의 카드끼리 위치를 맞춘다(guide 19.5 'CTA 위치 고정') */
.event-card__foot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.event-card__foot b { color: var(--c-title); font-weight: 700; }
.event-card__cta { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--c-border); color: var(--c-brand-700); font-size: 14px; font-weight: 700; }
.event-card:hover .event-card__cta, .event-card:focus-within .event-card__cta { text-decoration: underline; text-underline-offset: 3px; }
.event-card.is-ended .cover { filter: grayscale(0.6); opacity: 0.85; }

/* 프로젝트 카드 */
.project-card { display: flex; flex-direction: column; position: relative; height: 100%; }
.project-card .cover { aspect-ratio: 16 / 9; border-radius: var(--r-md); padding: 0; }
.project-card .cover__emoji { left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 72px; }
.project-card .cover__eyebrow { position: absolute; left: 14px; bottom: 12px; }
.project-card:hover .cover { box-shadow: var(--shadow-card); }
.project-card__body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.project-card__stat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.project-card__pct { font-size: 19px; font-weight: 800; color: var(--c-brand-500); letter-spacing: -0.03em; line-height: 1.2; }
.project-card__pct.is-done { color: var(--c-brand-500); }
.project-card__pct small { font-size: 19px; font-weight: 800; margin-left: 2px; }
.project-card__chips { margin-left: auto; display: flex; gap: 4px; }
.project-card__cat { color: var(--c-brand-700); font-size: 13px; font-weight: 700; }
.project-card__title { font-size: 16px; font-weight: 500; color: var(--c-title); margin-top: 6px; line-height: 1.5; letter-spacing: -0.02em; }
.project-card__title a { color: inherit; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; }
.project-card__summary { color: var(--c-muted); font-size: 13px; margin-top: 2px; }
.project-card__maker { color: var(--c-muted); font-size: 13px; margin-top: 6px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.project-card__maker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card__amount { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--c-text-2); }
.project-card__amount strong { font-size: 14px; font-weight: 700; color: var(--c-title); font-variant-numeric: tabular-nums; }
.project-card__foot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.project-card__foot span { display: inline-flex; align-items: center; gap: 4px; }
.project-card__hidden-amount { font-size: 15px; font-weight: 700; color: var(--c-text-2); display: inline-flex; align-items: center; gap: 4px; }

/* 8. 진행바 ----------------------------------------------------------------- */
.progress { height: 4px; background: var(--c-fill); border-radius: var(--r-pill); overflow: hidden; margin-top: 8px; }
.progress__bar { height: 100%; background: var(--grad-progress); border-radius: inherit; transition: width 0.6s var(--ease); }
.progress__bar.is-done { background: var(--grad-progress); }
.progress--thick { height: 6px; }
.progress--thin { height: 3px; margin-top: 6px; }
.step-progress { height: 6px; background: var(--c-fill); border-radius: var(--r-pill); overflow: hidden; }
.step-progress__bar { height: 100%; background: var(--c-brand-500); border-radius: inherit; }

/* 9. 폼 -------------------------------------------------------------------- */
.form-card { padding: 34px 36px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.form-section__title { font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.form-section__title small { font-size: 13px; font-weight: 400; color: var(--c-muted); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field + .field { margin-top: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 22px; }
.field-row .field + .field { margin-top: 0; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.label { font-size: 15px; font-weight: 700; color: var(--c-title); display: flex; align-items: center; gap: 6px; }
.req { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; line-height: 1; color: var(--c-red-text); vertical-align: 1px; white-space: nowrap; } /* 필수 입력 표시(라벨 옆, 붉은 글자) */
.label .opt { color: var(--c-muted); font-weight: 500; font-size: 13px; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--c-input); border-radius: var(--r-md); background: #fff; color: var(--c-title); font-size: 15px; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder, .textarea::placeholder { color: var(--c-muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-brand-500); box-shadow: 0 0 0 3px rgba(0, 160, 132, 0.2); }
.textarea { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23191f28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input--sm, .select--sm { height: 40px; font-size: 14px; }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled { background: var(--c-fill); color: var(--c-text); border-color: var(--c-border-strong); cursor: not-allowed; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--c-red-text); box-shadow: 0 0 0 3px rgba(210, 32, 48, 0.12); }
.field__help { font-size: 13px; color: var(--c-muted); display: flex; justify-content: space-between; gap: 12px; }
.field__error { font-size: 13px; color: var(--c-red-text); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.counter { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--c-muted); font-size: 13px; white-space: nowrap; }
.counter.is-over { color: var(--c-red-text); font-weight: 700; }
.counter.is-under { color: var(--c-amber-text); font-weight: 600; } /* 최소 글자 수 미달(제출 전 안내) */
.counter.is-ok { color: var(--c-green-text); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 44px; }
.input-group__icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.input-group__suffix { position: absolute; right: 14px; color: var(--c-text); font-weight: 600; pointer-events: none; }
.input-group--suffix .input { padding-left: 14px; padding-right: 44px; text-align: right; }
.input-group--action .input { padding-right: 224px; } /* 오른쪽 역할 선택 + 초대 버튼 폭만큼 비워 자리 표시 글·입력이 가려지지 않게(좁은 칸은 18장에서 아래 줄로) */
.input-group__action { position: absolute; right: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--c-text); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-brand-700); flex: none; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--c-title); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 48px; height: 28px; border-radius: var(--r-pill); background: #b0b8c1; position: relative; transition: background 0.2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.switch input:checked + .switch__track { background: var(--c-brand-600); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--c-brand-700); outline-offset: 2px; }
.upload { border: 1.5px dashed var(--c-muted-2); border-radius: var(--r-lg); background: var(--c-bg-soft); padding: 28px 24px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; transition: border-color 0.15s, background 0.15s; position: relative; }
.upload.is-dragover { border-color: var(--c-brand-500); background: var(--c-tint); }
.upload__icon { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--c-tint); color: var(--c-brand-700); display: grid; place-items: center; flex: none; }
.upload__text strong { display: block; color: var(--c-title); font-size: 15px; }
.upload__text span { font-size: 13px; color: var(--c-muted); }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__preview { display: flex; align-items: center; gap: 16px; width: 100%; }
.upload__preview img { width: 168px; height: 94px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.upload__preview--square img { width: 88px; height: 88px; border-radius: 50%; }
.upload__state { font-size: 13px; font-weight: 600; }
.upload__state.is-error { color: var(--c-red-text); }
.upload__state.is-ok { color: var(--c-green-text); }
.token-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--c-input); border-radius: var(--r-md); background: #fff; }
.token-input:focus-within { border-color: var(--c-brand-500); box-shadow: 0 0 0 3px rgba(0, 160, 132, 0.2); }
.token-input input { border: 0; outline: 0; flex: 1; min-width: 160px; height: 32px; }
.token { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: var(--c-tint); color: var(--c-brand-700); font-weight: 600; font-size: 13px; }
.token button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 122, 122, 0.12); color: var(--c-brand-700); display: grid; place-items: center; padding: 0; }
.form-errors { border: 1px solid #ffd0d4; background: var(--c-red-tint); color: var(--c-red-text); border-radius: var(--r-lg); padding: 14px 18px; font-size: 14px; }
.form-errors ul { margin: 6px 0 0 18px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* 10. 탭 ------------------------------------------------------------------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 16px 0 14px; color: var(--c-muted); font-weight: 600; font-size: 16px; white-space: nowrap; background: none; border: 0; }
.tabs__item:hover { color: var(--c-title); }
.tabs__item.is-active, .tabs__item[aria-selected="true"] { color: var(--c-title); font-weight: 700; }
.tabs__item.is-active::after, .tabs__item[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-title); }
.tabs--bar { background: #fff; }
.segmented { display: inline-flex; background: var(--c-fill); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.segmented button, .segmented a { border: 0; background: none; height: 36px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; color: var(--c-text-2); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.segmented .is-active { background: #fff; color: var(--c-title); box-shadow: var(--shadow-sm); }
/* 카테고리 탭(와디즈 카테고리 줄): 텍스트 + 밑줄 */
.cat-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { position: relative; flex: none; padding: 14px 12px 12px; color: var(--c-text-2); font-size: 16px; font-weight: 500; white-space: nowrap; }
.cat-tabs a:hover { color: var(--c-title); }
.cat-tabs a.is-active { color: var(--c-title); font-weight: 700; }
.cat-tabs a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--c-title); }
.cat-tabs a span { color: var(--c-muted); font-size: 13px; font-weight: 600; margin-left: 4px; }

/* 11. 홈·히어로·배너 ----------------------------------------------------------- */
/* 큰 검색창(와디즈 메인 상단) */
.home-search { display: flex; justify-content: center; padding: 28px 0 8px; }
.home-search form { position: relative; width: min(600px, 100%); }
.home-search input { width: 100%; height: 56px; border: 2px solid var(--c-brand-500); border-radius: var(--r-pill); padding: 0 60px 0 26px; font-size: 16px; color: var(--c-title); background: #fff; }
.home-search input::placeholder { color: var(--c-muted); }
.home-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 160, 132, 0.18); }
.home-search button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--c-title); display: grid; place-items: center; }
.home-search__note { text-align: center; color: var(--c-muted); font-size: 13px; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 6px; }
/* 원형 바로가기(와디즈 카테고리 아이콘 줄) */
.quick-links { display: flex; gap: 22px; justify-content: center; padding: 22px 0 6px; overflow-x: auto; scrollbar-width: none; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-link { position: relative; /* 안의 sr-only가 가로 스크롤 밖으로 빠져 문서 폭을 넓히지 않게 */ flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--c-text); font-size: 13px; text-align: center; line-height: 1.35; }
.quick-link:hover { color: var(--c-title); }
.quick-link__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--c-fill); position: relative; transition: transform 0.15s var(--ease); }
.quick-link:hover .quick-link__icon { transform: translateY(-2px); }
.quick-link__badge { position: absolute; top: -4px; right: -10px; background: var(--c-red-text); color: #fff; font-size: 10px; font-weight: 800; height: 18px; padding: 0 6px; border-radius: var(--r-pill); line-height: 18px; }
.quick-link__badge--live { background: var(--c-brand-700); }
.quick-link span.clamp-2 { max-width: 84px; }
/* 메인: 배너 + 실시간 랭킹 */
.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.banner { position: relative; }
.home-main.home-main--full { grid-template-columns: minmax(0, 1fr); } /* 실시간 랭킹을 끈 메인: 배너가 랭킹 자리까지 넓어진다 */
@media (min-width: 961px) { .home-main--full .banner__viewport { aspect-ratio: 1280 / 284; } } /* 넓어진 만큼 높이는 그대로(랭킹 있을 때와 같은 높이) */
.banner__viewport { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 773 / 260; background: var(--c-fill); }
.banner__slide { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 34px 40px; color: #fff; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s; }
.banner__slide.is-active { opacity: 1; visibility: visible; }
.banner__slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%); }
.banner__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner__slide .cover { position: absolute; inset: 0; z-index: -2; }
.banner__slide .cover__emoji { right: 12%; top: 50%; transform: translateY(-50%); font-size: 110px; }
.banner__slide--intro { background: var(--grad-hero); }
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__slide > div:not(.banner__bg) { position: relative; max-width: 620px; }
.banner__slide--intro::after { display: none; }
.banner__eyebrow { font-size: 13px; font-weight: 700; opacity: 0.92; display: inline-flex; align-items: center; gap: 6px; }
.banner__title { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -0.04em; margin-top: 8px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.banner__desc { margin-top: 8px; font-size: 15px; opacity: 0.94; max-width: 520px; }
.banner__cta { margin-top: 16px; }
.banner__nav { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; z-index: 2; }
.banner__nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5, 38, 95, 0.45); color: #fff; display: grid; place-items: center; }
.banner__nav button:hover { background: rgba(5, 38, 95, 0.7); }
.banner__count { position: absolute; right: 24px; top: 20px; z-index: 2; background: rgba(5, 38, 95, 0.45); color: #fff; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.banner__progress { height: 3px; background: var(--c-border); margin-top: 14px; position: relative; overflow: hidden; border-radius: 2px; }
.banner__progress span { position: absolute; top: 0; bottom: 0; background: var(--c-title); transition: left 0.35s var(--ease), width 0.35s var(--ease); }
.home-stats { margin-top: 14px; color: var(--c-text-2); font-size: 14px; }
.home-stats b { color: var(--c-title); font-variant-numeric: tabular-nums; }
/* 실시간 랭킹 */
.rank-panel__title { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--c-title); }
.rank-panel__sub { color: var(--c-muted); font-size: 13px; margin-top: 2px; }
.rank-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.rank-item { display: grid; grid-template-columns: 116px 22px minmax(0, 1fr); gap: 10px; align-items: start; position: relative; }
.rank-item__thumb { width: 116px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; position: relative; }
.rank-item__thumb .cover, .rank-item__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank-item__thumb .cover__emoji { font-size: 34px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rank-item__no { font-size: 17px; font-weight: 800; color: var(--c-title); font-variant-numeric: tabular-nums; line-height: 1.4; }
.rank-item__title { font-size: 14px; color: var(--c-title); line-height: 1.45; }
.rank-item__title a { color: inherit; }
.rank-item__title a::after { content: ""; position: absolute; inset: 0; }
.rank-item__pct { font-size: 15px; font-weight: 800; color: var(--c-brand-700); margin-top: 4px; }
.rank-item__event { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.rank-empty { color: var(--c-muted); font-size: 14px; padding: 24px 0; }
/* 하단 CTA 배너 */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-md); background: linear-gradient(110deg, #e6f9f9 0%, #f2fbf8 60%, #f7f7f2 100%); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner__title { font-size: 26px; font-weight: 800; color: var(--c-title); letter-spacing: -0.04em; }
.cta-banner__desc { color: var(--c-text-2); margin-top: 6px; font-size: 16px; }
.cta-banner__art { position: absolute; right: 230px; top: 50%; transform: translateY(-50%); font-size: 88px; opacity: 0.9; pointer-events: none; }

/* 구 히어로(인증 화면 등 재사용) */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--grad-hero); color: #fff; padding: 56px 60px; display: flex; align-items: center; isolation: isolate; }
.hero__content { max-width: 560px; position: relative; z-index: 1; }
.hero__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.9; }
.hero__title { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; margin-top: 14px; }
.hero__desc { margin-top: 16px; font-size: 16px; line-height: 1.75; opacity: 0.9; }
.hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 행사 머리(펀딩 목록·행사 상세 상단) */
.event-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--grad-hero); color: #fff; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; isolation: isolate; }
.event-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05)); }
.event-banner__media { position: absolute; inset: 0; z-index: -2; }
.event-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.event-banner--teal { background: linear-gradient(110deg, #0d4f4f 0%, #127272 55%, #1f9a8f 100%); }
.event-banner--brand { background: linear-gradient(110deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%); }
.event-banner--indigo { background: linear-gradient(110deg, #1d2b5c 0%, #2d438a 55%, #4a62b8 100%); }
.event-banner--coral { background: linear-gradient(110deg, #7a2f22 0%, #a84a33 50%, #cf6f4e 100%); }
.event-banner--violet { background: linear-gradient(110deg, #33296f 0%, #4e43a4 50%, #7465cc 100%); }
.event-banner--amber { background: linear-gradient(110deg, #5c3a1c 0%, #85602f 50%, #b08446 100%); }
.event-banner--slate { background: linear-gradient(110deg, #2a3142 0%, #414b63 50%, #5f6b86 100%); }
.org-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; background: #fff; padding: 1px; vertical-align: -0.3em; }
.event-banner__org { opacity: 0.92; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.poster__logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; display: block; }
.event-banner__title { color: #fff; font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -0.04em; }
.event-banner__desc { margin-top: 8px; opacity: 0.92; font-size: 15px; line-height: 1.7; max-width: 640px; }
.event-banner__stats { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); background: rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); flex: none; backdrop-filter: blur(4px); }
.event-banner__stat { padding: 16px 22px; text-align: center; }
.event-banner__stat + .event-banner__stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.event-banner__stat span { font-size: 13px; opacity: 0.88; display: block; }
.event-banner__stat strong { font-size: 24px; font-weight: 800; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.badge--on-dark { background: rgba(255, 255, 255, 0.95); color: var(--c-brand-700); }
.badge--on-dark.badge--warning { background: var(--c-amber-tint); color: var(--c-amber-text); }
.badge--on-dark.badge--neutral, .badge--on-dark.badge--indigo { background: rgba(255, 255, 255, 0.92); color: var(--c-title); }

.wallet-bar { display: flex; align-items: center; gap: 20px; padding: 16px 22px; flex-wrap: wrap; background: var(--c-bg-soft); border-color: transparent; }
.wallet-bar__item { display: flex; align-items: center; gap: 10px; color: var(--c-text-2); font-size: 15px; }
.wallet-bar__item strong { color: var(--c-title); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-bar__item strong.is-brand { color: var(--c-title); font-size: 20px; }
.wallet-bar__sep { width: 1px; height: 20px; background: var(--c-border-strong); }
.wallet-bar__note { margin-left: auto; color: var(--c-muted); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* 12. 섹션 헤더·경로 --------------------------------------------------------- */
.section { margin-top: 64px; }
.section--flush { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head__title { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.section-head__desc { margin-top: 4px; color: var(--c-muted); font-size: 15px; }
.section-head__link { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; font-size: 14px; color: var(--c-text-2); }
.section-head__link:hover { color: var(--c-title); }
.page-title { font-size: 32px; font-weight: 800; color: var(--c-muted-2); letter-spacing: -0.04em; margin: 12px 0 20px; }
.page-title strong { color: var(--c-title); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--c-muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-title); }
.breadcrumb [aria-current] { color: var(--c-title); font-weight: 600; }
.breadcrumb .icon { color: var(--c-muted-2); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin: 0 0 24px; }
.chip-row + .toolbar { margin-top: 16px; } /* 필터 칩 줄 바로 아래 검색 줄(전체 탐색·행사 목록): 붙지 않게 */
.toolbar__search { flex: 0 1 420px; }
.search-box { position: relative; }
.search-box .input { padding-left: 44px; height: 44px; border-radius: var(--r-pill); border-color: var(--c-input); }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.search-box--sm .input { height: 40px; }
.toolbar__form { flex-wrap: nowrap; }
.toolbar__form-search { width: 280px; flex: 0 1 280px; }
.toolbar .select { border-radius: var(--r-pill); height: 44px; }
@media (max-width: 767px) { .toolbar__form { flex-wrap: wrap; width: 100%; } .toolbar__form-search { width: 100%; flex: 1 1 100%; } }

/* 13. 테이블 ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; }
.table { min-width: 720px; font-size: 14px; }
.table th { text-align: left; font-weight: 700; color: var(--c-text-2); background: var(--c-bg-soft); padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; font-size: 13px; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); vertical-align: middle; color: var(--c-text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--c-bg-soft); }
.table .num { text-align: right; white-space: nowrap; }
.table__title { font-weight: 700; color: var(--c-title); }
.table__sub { font-size: 12px; color: var(--c-muted); }
.table--compact td { padding: 10px 14px; }

/* 14. 알림·모달·토스트 --------------------------------------------------------- */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.6; }
.callout .icon { margin-top: 2px; }
.callout--info { background: var(--c-tint); color: #005c5c; }
.callout--neutral { background: var(--c-bg-soft); color: var(--c-text-2); }
.callout--success { background: var(--c-green-tint); color: var(--c-green-text); }
.callout--warning { background: var(--c-amber-tint); color: var(--c-amber-text); }
.callout--danger { background: var(--c-red-tint); color: var(--c-red-text); }
.callout strong { color: inherit; }
.callout__title { font-weight: 700; display: block; margin-bottom: 2px; }
.callout__link { display: inline-block; margin-top: 4px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.messages { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; background: var(--c-title); color: #fff; border: 0; border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-pop); font-size: 14px; animation: toast-in 0.25s var(--ease); }
.toast .icon { color: var(--c-brand); }
.toast--success .icon { color: #5ee0b0; }
.toast--error .icon { color: #ff8a94; }
.toast--warning .icon { color: #ffc566; }
.toast__close { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, 0.75); padding: 0; width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.toast a { color: #7ff0f0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.notif-btn { position: relative; margin-right: 6px; }  /* 두 자리 이상 뱃지가 옆 아바타에 닿지 않게 */
/* 알림 개수 뱃지: 종 아이콘(22px, 버튼 가운데)의 오른쪽 위 모서리에만 걸치게 작게 둔다(아이콘을 가리지 않도록) */
.notif-btn__badge { position: absolute; top: 4px; left: 23px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--c-red-text); color: #fff; font-size: 10px; font-weight: 800; line-height: 12px; text-align: center; border: 2px solid #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; white-space: nowrap; pointer-events: none; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--c-border); }
.notif-item:last-child { border-bottom: 0; }
.notif-item__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; }
.notif-item.is-unread .notif-item__dot { background: var(--c-brand-500); }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title { color: var(--c-title); font-weight: 600; }
.notif-item.is-unread .notif-item__title { font-weight: 800; }
.notif-item__title:hover { color: var(--c-brand-700); }
.notif-item__meta { color: var(--c-muted); font-size: 13px; margin-top: 4px; }
.toast .btn { margin-left: auto; flex: none; }
.is-bumped { animation: live-bump 1.2s var(--ease); border-radius: 4px; }
@keyframes live-bump { 0% { background: var(--c-tint-2); } 100% { background: transparent; } }
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.modal__dialog { position: relative; background: #fff; border-radius: var(--r-xl); width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; box-shadow: var(--shadow-pop); animation: toast-in 0.2s var(--ease); }
.modal__dialog--wide { width: min(720px, 100%); }
.modal__title { font-size: 20px; margin-bottom: 8px; }
.modal__close { position: absolute; right: 14px; top: 14px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
/* 확인 모달 메시지: 영향 요약(역할별 지갑 수·1인당 차액)을 줄 단위로 보여 준다 */
[data-confirm-message] { white-space: pre-line; }

/* 15. 페이지네이션·빈 상태·스켈레톤 ---------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--r-md); border: 0; background: none; color: var(--c-text-2); font-weight: 600; font-size: 15px; }
.pagination a:hover { background: var(--c-fill); color: var(--c-title); }
.pagination .is-current { background: var(--c-title); color: #fff; }
.pagination .is-disabled { opacity: 0.4; }
.empty { text-align: center; padding: 72px 24px; border: 0; border-radius: var(--r-lg); background: var(--c-bg-soft); }
.empty__icon { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--c-brand-700); display: grid; place-items: center; margin: 0 auto 16px; }
.empty__title { font-size: 18px; color: var(--c-title); font-weight: 700; }
.empty__desc { margin-top: 6px; color: var(--c-muted); font-size: 14px; }
.empty .btn { margin-top: 20px; }
.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 16. 공지·CTA 패널 ---------------------------------------------------------- */
.notice-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); list-style: none; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { color: var(--c-text); flex: 1; min-width: 0; }
.notice-list a:hover { color: var(--c-title); }
.notice-list time { color: var(--c-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
/* 항목 목록: 왼쪽 내용 + 오른쪽 동작 버튼(받은 초대, 생성한 파일 등) */
.item-list { list-style: none; margin: 8px 0 0; padding: 0; }
.item-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.item-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.item-list__body { flex: 1; min-width: 0; }
.item-list__body .strong { display: block; overflow-wrap: anywhere; }
@media (max-width: 640px) { .item-list--stack li { flex-direction: column; align-items: stretch; gap: 10px; } }
.cta-panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-tint); padding: 36px 32px; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.cta-panel__title { font-size: 22px; font-weight: 800; color: var(--c-title); line-height: 1.45; letter-spacing: -0.03em; }
.cta-panel__desc { margin-top: 10px; color: var(--c-text-2); }
.cta-panel__art { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 84px; line-height: 1; }

/* 17. 상세 페이지 ------------------------------------------------------------- */
.detail-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.gallery { padding: 0; border: 0; }
.gallery__main { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: var(--c-fill); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .cover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.gallery__main .cover__emoji { right: 16%; top: 50%; transform: translateY(-50%); font-size: 140px; }
.gallery__main .cover__headline { font-size: 30px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 96px; height: 54px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--c-fill); position: relative; }
.gallery__thumb.is-active { border-color: var(--c-title); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb .cover { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; }
.info-card { padding: 4px 0 0; position: sticky; top: calc(var(--header-h) + 20px); border: 0; background: none; }
.info-card__cats { display: flex; align-items: center; gap: 8px; }
.info-card__title { font-size: 28px; font-weight: 800; line-height: 1.38; margin-top: 12px; letter-spacing: -0.04em; }
.info-card__summary { margin-top: 10px; color: var(--c-text-2); font-size: 15px; line-height: 1.7; }
.info-card__amount { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.info-card__pct { font-size: 40px; font-weight: 800; color: var(--c-brand-500); letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.info-card__pct.is-done { color: var(--c-brand-500); }
.info-card__pct small { font-size: 22px; font-weight: 800; margin-left: 4px; }
.info-card__amount strong { font-size: 22px; font-weight: 700; color: var(--c-title); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.info-card__amount strong small { font-size: 16px; font-weight: 600; margin-left: 2px; color: var(--c-text-2); }
.info-card__goal { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.info-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--c-bg-soft); border-radius: var(--r-md); margin: 20px 0; padding: 14px 0; }
.info-card__stat { text-align: center; }
.info-card__stat + .info-card__stat { border-left: 1px solid var(--c-border); }
.info-card__stat span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-text-2); }
.info-card__stat strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; color: var(--c-title); font-variant-numeric: tabular-nums; }
.info-card__rows { margin: 0 0 20px; display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 14px; }
.info-card__rows dt { color: var(--c-muted); }
.info-card__rows dd { margin: 0; color: var(--c-text); font-weight: 500; }
.info-card__actions { display: flex; gap: 8px; }
.info-card__actions .btn--block { flex: 1; }
.info-card .btn--lg { height: 58px; font-size: 18px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--c-text-2); font-size: 13px; padding: 0; }
.like-btn.is-liked { color: var(--c-red-text); }
.like-btn.is-liked svg { fill: currentColor; }
.like-box { flex: none; width: 58px; height: 58px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--c-title); font-size: 11px; font-weight: 700; }
.like-box:hover { border-color: var(--c-muted-2); }
.like-box.is-liked { color: var(--c-red-text); }
.like-box.is-liked svg { fill: currentColor; }
.detail-tabs { margin-top: 40px; position: sticky; top: var(--header-h); z-index: 20; background: #fff; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; margin-top: 28px; align-items: start; }
.prose { font-size: 16px; line-height: 1.85; color: var(--c-text); }
.prose h2 { font-size: 22px; margin: 28px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose h4 { font-size: 17px; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin: 4px 0; }
.prose img { border-radius: var(--r-md); margin: 18px 0; }
.prose blockquote { margin: 18px 0; padding: 14px 20px; border-left: 3px solid var(--c-brand-500); background: var(--c-bg-soft); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--c-title); }
.prose a { text-decoration: underline; }
.prose > :first-child { margin-top: 0; }
.highlight-box { background: var(--c-tint); border-radius: var(--r-lg); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.highlight-box strong { font-size: 20px; color: var(--c-title); line-height: 1.6; font-weight: 800; }
.highlight-box span { font-size: 56px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ps-item { border: 0; border-radius: var(--r-lg); padding: 20px; background: var(--c-bg-soft); }
.ps-item h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-brand-700); }
.ps-item p { margin-top: 8px; color: var(--c-text); font-size: 15px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; margin-top: 22px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq-list details { border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; padding: 0 4px; background: #fff; }
.faq-list details + details { margin-top: 0; }
.faq-list summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--c-title); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 0 18px; color: var(--c-text); white-space: pre-line; }

.reward { display: block; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); padding: 20px 20px 16px; background: #fff; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.reward + .reward { margin-top: 12px; }
label.reward { cursor: pointer; }
.reward:hover { border-color: var(--c-muted-2); }
.reward.is-selected { border-color: var(--c-brand-500); box-shadow: 0 0 0 2px var(--c-brand-500) inset; background: #fbfefe; }
.reward.is-soldout { background: var(--c-bg-soft); cursor: not-allowed; }
.reward.is-soldout .reward__price { color: var(--c-muted); }
.reward__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reward__price { font-size: 20px; font-weight: 800; color: var(--c-title); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.reward__title { margin-top: 8px; font-weight: 600; color: var(--c-title); font-size: 15px; }
.reward__desc { margin-top: 4px; color: var(--c-text-2); font-size: 14px; white-space: pre-line; }
.reward__meta { margin-top: 12px; font-size: 13px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.reward__controls { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border); display: none; gap: 12px; align-items: center; flex-wrap: wrap; }
.reward.is-selected .reward__controls { display: flex; }
.reward input[type=checkbox].reward__check { position: absolute; opacity: 0; pointer-events: none; }
.stepper-input { display: inline-flex; align-items: center; border: 1px solid var(--c-input); border-radius: var(--r-md); overflow: hidden; height: 40px; background: #fff; }
.stepper-input button { width: 40px; height: 100%; border: 0; background: var(--c-bg-soft); color: var(--c-title); font-size: 18px; display: grid; place-items: center; }
.stepper-input button:hover { background: var(--c-fill); }
.stepper-input input { width: 52px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper-input input::-webkit-outer-spin-button, .stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sticky-cta { display: none; }
.pledge-summary { border-top: 1px solid var(--c-border); margin-top: 18px; padding-top: 12px; }
.pledge-summary--flush { border-top: 0; margin-top: 14px; padding-top: 0; }
.pledge-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; padding: 5px 0; }
.pledge-summary__row span { color: var(--c-text-2); }
.pledge-summary__row strong { color: var(--c-title); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pledge-summary__row.is-total { border-top: 1px solid var(--c-border); margin-top: 8px; padding-top: 12px; }
.pledge-summary__row.is-total span { color: var(--c-title); font-weight: 700; font-size: 15px; }
.pledge-summary__row.is-total strong { font-size: 20px; font-weight: 800; color: var(--c-title); }
.pledge-summary__row.is-negative strong { color: var(--c-red-text); }
.maker-box { display: flex; gap: 16px; align-items: flex-start; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.comment:last-child { border-bottom: 0; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.comment__head strong { color: var(--c-title); }
.comment__text { margin-top: 6px; white-space: pre-line; color: var(--c-text); }

/* 18. 메이커 스튜디오 ----------------------------------------------------------- */
.studio { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.studio__side { background: #fff; border-right: 1px solid var(--c-border); padding: 32px 22px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.studio__intro small { display: block; color: var(--c-muted); font-size: 13px; }
.studio__intro strong { display: block; margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--c-title); font-weight: 800; }
.studio__intro .tag { margin-top: 12px; }
.stepper { list-style: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 4px; }
.stepper a, .stepper span.stepper__link { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); color: var(--c-text); position: relative; }
.stepper a:hover { background: var(--c-bg-soft); }
.stepper .is-current a, .stepper .is-current .stepper__link { background: var(--c-tint); }
.stepper__num { width: 32px; height: 32px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.is-current .stepper__num { background: var(--c-title); color: #fff; }
.is-complete .stepper__num { background: var(--c-tint); color: var(--c-brand-700); }
.is-invalid .stepper__num { background: var(--c-amber-tint); color: var(--c-amber-text); }
.stepper__text strong { display: block; color: var(--c-title); font-size: 15px; font-weight: 700; }
.stepper__text small { display: block; color: var(--c-muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.stepper__state { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--c-brand-700); }
.stepper__state.is-warn { color: var(--c-amber-text); }
.studio__note { margin-top: 24px; background: var(--c-bg-soft); border-radius: var(--r-lg); padding: 16px; font-size: 14px; color: var(--c-text); line-height: 1.65; }
.studio__note strong { color: var(--c-title); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.studio__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 700; color: var(--c-text-2); }
.studio__back:hover { color: var(--c-title); }
.studio__main { padding: 32px 44px 40px; min-width: 0; }
.studio__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.studio__head h1 { font-size: 28px; font-weight: 800; margin-top: 6px; }
.studio__head p { margin-top: 6px; color: var(--c-text-2); }
.studio__progress { display: flex; align-items: center; gap: 16px; margin: 20px 0 28px; }
.studio__progress .step-progress { flex: 1; }
.studio__progress span { font-size: 14px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.studio__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.guide-card { padding: 24px; }
.guide-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.guide-card h3 .icon-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c-title); color: #fff; display: grid; place-items: center; }
.guide-card ul { margin: 12px 0 0 18px; font-size: 14px; color: var(--c-text); line-height: 1.7; }
.guide-card li + li { margin-top: 6px; }
.preview-mini { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; margin-top: 12px; background: #fff; }
.preview-mini .cover, .preview-mini img { height: 120px; width: 100%; object-fit: cover; }
.preview-mini .cover__emoji { font-size: 52px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.preview-mini__body { padding: 12px 14px; }
.preview-mini__body strong { display: block; color: var(--c-title); font-weight: 700; }
.preview-mini__body span { font-size: 13px; color: var(--c-muted); }
.save-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-md); font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--c-fill); color: var(--c-text); border: 0; }
.save-chip[data-state="saved"] { background: var(--c-tint); color: var(--c-brand-700); }
.save-chip[data-state="dirty"] { background: var(--c-amber-tint); color: var(--c-amber-text); }
.save-chip[data-state="saving"] { background: var(--c-fill); color: var(--c-text-2); }
.save-chip[data-state="error"], .save-chip[data-state="conflict"] { background: var(--c-red-tint); color: var(--c-red-text); }
.studio-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.studio-actions__note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-muted); }
.studio-actions__buttons { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.editor { border: 1px solid var(--c-input); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--c-brand-500); box-shadow: 0 0 0 3px rgba(0, 160, 132, 0.2); }
.editor__toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--c-border); background: var(--c-bg-soft); }
.editor__toolbar button { width: 34px; height: 32px; border: 0; background: none; border-radius: var(--r-sm); color: var(--c-text); display: grid; place-items: center; }
.editor__toolbar button:hover, .editor__toolbar button.is-on { background: var(--c-fill); color: var(--c-title); }
.editor__toolbar select { height: 32px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); padding: 0 28px 0 10px; font-size: 14px; background-position: right 6px center; background-size: 16px; }
.editor__sep { width: 1px; height: 20px; background: var(--c-border); margin: 0 4px; }
.editor__area { min-height: 320px; max-height: 640px; overflow-y: auto; padding: 20px 22px; outline: none; font-size: 15px; line-height: 1.8; }
.editor__area:empty::before { content: attr(data-placeholder); color: var(--c-muted-2); white-space: pre-line; pointer-events: none; }
/* 위지윅 스토리 이미지: 본문 안 <figure><img><figcaption>(편집기·공개 상세·미리보기 공통 .prose)과 편집기 이미지 도구 */
.prose figure { margin: 22px 0; }
.prose figure img { margin: 0 auto; border-radius: var(--r-md); }
.prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--c-text-2); text-align: center; }
/* 이미지 크기 단계(figure data-size, 없으면 꽉 차게): 본문 폭 대비 비율이라 화면 폭이 바뀌어도 비율 그대로, 가운데 정렬.
   원본보다 크게 늘리지는 않는다(img max-width 100%). 폰(479px 이하)에서는 작은 이미지도 알아볼 수 있게 60%·75%·90% */
.prose figure[data-size] { margin-left: auto; margin-right: auto; }
.prose figure[data-size="s"] { width: 40%; }
.prose figure[data-size="m"] { width: 60%; }
.prose figure[data-size="l"] { width: 80%; }
@media (max-width: 479px) {
  .prose figure[data-size="s"] { width: 60%; }
  .prose figure[data-size="m"] { width: 75%; }
  .prose figure[data-size="l"] { width: 90%; }
}
.editor { position: relative; }
.editor.is-dragover { border-color: var(--c-brand-500); box-shadow: 0 0 0 3px rgba(0, 160, 132, 0.2); }
.editor.is-dragover .editor__area { background: var(--c-tint); }
.editor__area .story-figure { position: relative; cursor: pointer; border-radius: var(--r-md); outline-offset: 4px; }
.editor__area .story-figure:hover { outline: 2px solid var(--c-border-strong); }
.editor__area .story-figure:focus-visible, .editor__area .story-figure.is-selected { outline: 3px solid var(--c-brand-700); }
.editor__area .story-figure:focus { outline-color: var(--c-brand-700); }
.story-figure.is-uploading { display: grid; place-items: center; min-height: 140px; padding: 16px; background: var(--c-bg-soft); border: 1.5px dashed var(--c-muted-2); color: var(--c-text-2); cursor: progress; }
.story-figure__uploading { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.story-figure__uploading::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-border-strong); border-top-color: var(--c-brand-700); animation: story-figure-spin 0.8s linear infinite; }
@keyframes story-figure-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .story-figure__uploading::before { animation: none; } }
.figure-toolbar { position: absolute; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: calc(100% - 16px); padding: 6px; background: #fff; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); box-shadow: 0 6px 18px rgba(5, 38, 95, 0.16); }
.figure-toolbar__btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--c-title); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.figure-toolbar__btn:hover:not(:disabled), .figure-toolbar__btn[aria-expanded="true"] { background: var(--c-fill); }
.figure-toolbar__btn:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 1px; }
.figure-toolbar__btn:disabled { color: var(--c-muted-2); cursor: not-allowed; }
.figure-toolbar__btn.is-danger { color: var(--c-red-text); }
.figure-toolbar__panel { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 8px 4px 2px; border-top: 1px solid var(--c-border); }
.figure-toolbar__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--c-title); }
.figure-toolbar__field .input { width: 100%; min-width: min(260px, 60vw); }
.figure-toolbar__sizes { display: inline-flex; flex-wrap: wrap; gap: 2px; padding-left: 4px; border-left: 1px solid var(--c-border); }
.figure-toolbar__btn[aria-pressed="true"] { background: var(--c-tint); color: var(--c-brand-700); box-shadow: inset 0 0 0 1.5px var(--c-brand-500); }
/* 크기 손잡이: 고른 이미지의 오른쪽 아래 모서리(위치는 studio.js). 끄는 동안 이미지 폭을 미리 보여 주고 놓으면 가장 가까운 크기로 */
.figure-resize { position: absolute; z-index: 6; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; cursor: nwse-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.figure-resize[hidden] { display: none; }
.figure-resize::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c-brand-700); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(5, 38, 95, 0.35); }
.figure-resize__tip { position: absolute; right: 100%; bottom: 100%; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: var(--r-sm); background: var(--c-title); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; pointer-events: none; }
.editor__area .story-figure.is-resizing { outline-style: dashed; cursor: nwse-resize; }
.editor.is-resizing-figure .figure-toolbar { display: none; } /* 끄는 동안은 도구를 감춰 이미지 폭이 잘 보이게 */
@media (pointer: coarse) {
  .figure-resize { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .figure-resize::before { width: 20px; height: 20px; }
}
/* 팀원 초대(4단계): 입력 칸이 좁으면(모바일·좁은 데스크톱) 역할 선택·초대 버튼을 입력 칸 아래 줄로 내려 자리 표시 글을 가리지 않는다 */
.team-invite { container-type: inline-size; }
@container (max-width: 560px) {
  .input-group--action { flex-wrap: wrap; row-gap: 8px; }
  .input-group--action .input { padding-right: 14px; }
  .input-group--action .input-group__icon { top: 15px; }
  .input-group--action .input-group__action { position: static; width: 100%; justify-content: flex-end; }
}
@media (max-width: 767px) {
  .figure-toolbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 좁은 화면: 이동·삭제는 아이콘만(이름은 aria-label) */
  .figure-toolbar__sizes { border-left: 0; padding-left: 0; } /* 좁은 화면: 크기 버튼은 다음 줄로 내려가므로 구분선 없이 */
  .input-group--action { flex-wrap: wrap; row-gap: 8px; }
  .input-group--action .input { padding-right: 14px; }
  .input-group--action .input-group__icon { top: 15px; }
  .input-group--action .input-group__action { position: static; width: 100%; justify-content: flex-end; }
}
.reward-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 190px auto; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; }
.reward-row + .reward-row { margin-top: 10px; }
.reward-row.is-inactive { opacity: 0.6; background: var(--c-bg-soft); }
.reward-row__thumb { width: 100px; height: 66px; border-radius: var(--r-sm); object-fit: cover; background: var(--c-fill); display: grid; place-items: center; color: var(--c-muted); }
.reward-row__title { font-weight: 700; color: var(--c-title); font-size: 16px; }
.reward-row__price { margin-top: 4px; color: var(--c-title); font-weight: 700; display: flex; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.reward-row__price span { color: var(--c-muted); font-weight: 500; }
.reward-row__stock { font-size: 13px; color: var(--c-muted); }
.reward-row__actions { display: flex; gap: 6px; align-items: center; }
.reward-form { border: 1.5px dashed var(--c-muted-2); border-radius: var(--r-lg); padding: 22px; margin-top: 16px; background: var(--c-bg-soft); }
.reward-form__title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--c-title); font-size: 17px; margin-bottom: 16px; }
.reward-form__title .icon-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c-title); color: #fff; display: grid; place-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.team-member { display: flex; align-items: center; gap: 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 12px 14px; position: relative; background: #fff; min-width: 0; }
.team-member__info { min-width: 0; flex: 1; }
.team-member__name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-title); font-size: 14px; }
.team-member__email { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-border); list-style: none; font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.checklist__icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.checklist__icon.is-ok { background: var(--c-brand-700); color: #fff; }
.checklist__icon.is-bad { background: var(--c-amber-tint); color: var(--c-amber-text); }
.checklist__num { width: 24px; height: 24px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.checklist__label { font-weight: 700; color: var(--c-title); min-width: 92px; flex: none; }
.checklist__desc { color: var(--c-muted); flex: 1; min-width: 0; }
.flow-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.flow-steps li { display: flex; gap: 14px; align-items: flex-start; }
.flow-steps__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; flex: none; }
.flow-steps li.is-done .flow-steps__icon { background: var(--c-tint); color: var(--c-brand-700); }
.flow-steps li.is-now .flow-steps__icon { background: var(--c-title); color: #fff; }
.flow-steps strong { color: var(--c-title); display: block; font-size: 15px; }
.flow-steps small { color: var(--c-muted); font-size: 13px; line-height: 1.5; display: block; }
.flow-steps__arrow { padding-left: 12px; color: var(--c-muted-2); }
.preview-frame { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-soft); }
.preview-frame iframe { width: 100%; height: 760px; border: 0; display: block; background: #fff; }
.preview-frame--mobile { width: 410px; max-width: 100%; margin: 0 auto; border-radius: 34px; border: 10px solid #191f28; }
.preview-frame--mobile iframe { height: 760px; }
.maker-preview { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 18px; margin-top: 14px; }
.maker-preview__head { display: flex; gap: 14px; align-items: center; }
.maker-preview dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.maker-preview dt { color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.maker-preview dd { margin: 0; color: var(--c-title); font-weight: 600; }
/* 저장 상태(AT-12 재시도)·충돌 비교(PE-005)·제목 중복 안내(MK1-02)·단계 잠금(18.13)·리워드 드래그 정렬(MK3-12)·대표 이전(MK4-07) */
.save-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.save-chip[data-state="offline"] { background: var(--c-red-tint); color: var(--c-red-text); }
.save-status__action { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid #ffd0d4; background: #fff; color: var(--c-red-text); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.save-status__action:hover { background: var(--c-red-tint); }
.save-status__action:focus-visible, .reward-row__handle:focus-visible, .team-member__transfer:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 2px; }
.field__warn { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--c-amber-text); }
.field__warn .icon { flex: none; margin-top: 2px; }
.field__warn + .field { margin-top: 22px; }
.stepper__state.is-locked { color: var(--c-text-2); }
.conflict-table { min-width: 0; }
.conflict-table th[scope="row"] { position: static; vertical-align: top; width: 28%; white-space: normal; background: #fff; color: var(--c-title); font-size: 14px; }
.conflict-table__label { display: block; }
.conflict-table__badge { margin: 6px 4px 0 0; }
.conflict-table__value { vertical-align: top; white-space: pre-line; overflow-wrap: anywhere; }
.conflict-table__thumb { width: 120px; height: 68px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--c-border); }
.reward-list__hint { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.reward-row.reward-row--sortable { grid-template-columns: 30px 84px minmax(0, 1fr) 150px auto; gap: 16px; }
.reward-row--sortable .reward-row__thumb { width: 84px; height: 56px; }
.reward-row__order { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reward-row__order form { display: contents; }
.reward-row__move { width: 30px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: #fff; color: var(--c-text); cursor: pointer; }
.reward-row__move:hover:not(:disabled) { background: var(--c-bg-soft); color: var(--c-title); }
.reward-row__move:disabled { background: var(--c-fill); border-color: transparent; color: var(--c-muted-2); cursor: not-allowed; }
.reward-row__move:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 2px; }
.reward-row__handle { width: 30px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--c-text-2); cursor: grab; touch-action: none; }
.reward-row__handle:hover { background: var(--c-fill); color: var(--c-title); }
.reward-row.is-dragging { opacity: 0.55; border-style: dashed; border-color: var(--c-brand-500); }
.reward-list[aria-busy="true"] .reward-row__handle { cursor: progress; }
.team-member__transfer { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--c-brand-700); font-size: 12px; font-weight: 700; cursor: pointer; }
.team-member__transfer:hover { color: var(--c-title); text-decoration: underline; }
@media (max-width: 1199px) { .reward-row.reward-row--sortable { grid-template-columns: 30px 84px minmax(0, 1fr) auto; } }
@media (max-width: 767px) {
  .reward-row.reward-row--sortable { grid-template-columns: 30px 64px minmax(0, 1fr); }
  .reward-row--sortable .reward-row__thumb { width: 64px; height: 48px; }
  .save-status { justify-content: flex-start; }
}
/* 충돌 비교 창: 좁은 화면에서도 세 칸이 모두 보이게(머리글 줄바꿈), 긴 제목이 닫기 버튼에 가리지 않게. 모바일 단계 머리는 저장 상태를 아래로 */
.conflict-table thead th { white-space: normal; }
[data-conflict-modal] .modal__title { padding-right: 36px; }
@media (max-width: 767px) {
  .studio__head { flex-direction: column; gap: 12px; }
  .conflict-table th, .conflict-table td { padding: 10px 12px; }
}

/* 19. 운영 콘솔 ------------------------------------------------------------- */
.console { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); background: var(--c-bg-soft); }
.console__side { background: #fff; border-right: 1px solid var(--c-border); color: var(--c-text); padding: 22px 14px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.console__label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-muted); padding: 0 12px; margin: 18px 0 6px; }
.console__label:first-child { margin-top: 0; }
.console__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); color: var(--c-text-2); font-weight: 500; font-size: 15px; }
.console__nav a:hover { background: var(--c-fill); color: var(--c-title); }
.console__nav a.is-active { background: var(--c-tint); color: var(--c-title); font-weight: 700; }
.console__nav a.is-active .icon { color: var(--c-brand-700); }
.console__nav .count { margin-left: auto; background: var(--c-fill); color: var(--c-text-2); border-radius: var(--r-pill); padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 20px; }
.console__nav .count--alert { background: var(--c-red-text); color: #fff; }
.event-switcher { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 14px; margin-bottom: 8px; }
.event-switcher small { color: var(--c-muted); font-size: 12px; display: block; }
.event-switcher strong { color: var(--c-title); display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; }
.event-switcher select { margin-top: 10px; width: 100%; height: 38px; border-radius: var(--r-md); border: 1px solid var(--c-input); background: #fff; color: var(--c-title); padding: 0 10px; font-size: 14px; }
.event-switcher select option { color: var(--c-title); }
.console__main { padding: 28px 36px 60px; min-width: 0; }
.console__main .card { border-color: var(--c-border); }
.console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.console-head h1 { font-size: 26px; font-weight: 800; }
.console-head p { margin-top: 6px; color: var(--c-text-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 20px 22px; }
.kpi__label { font-size: 13px; color: var(--c-text-2); display: flex; align-items: center; gap: 6px; }
.kpi__value { font-size: 26px; font-weight: 800; color: var(--c-title); margin-top: 6px; line-height: 1.2; }
.kpi__value small { font-size: 15px; font-weight: 700; margin-left: 2px; }
.kpi__sub { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.ready-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); list-style: none; }
.ready-list li:last-child { border-bottom: 0; }
.ready-list__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ready-list__icon.is-ok { background: var(--c-tint); color: var(--c-brand-700); }
.ready-list__icon.is-bad { background: var(--c-red-tint); color: var(--c-red-text); }
.ready-list__icon.is-warn { background: var(--c-amber-tint); color: var(--c-amber-text); }
.ready-list__label { font-weight: 700; color: var(--c-title); width: 140px; flex: none; font-size: 14px; }
.ready-list__detail { color: var(--c-text-2); font-size: 14px; flex: 1; min-width: 0; }
.control-panel { display: flex; gap: 8px; flex-wrap: wrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand-500); box-shadow: 0 0 0 0 rgba(0, 160, 132, 0.5); animation: pulse 1.8s infinite; display: inline-block; }
.live-dot.is-stale { background: var(--c-amber); animation: none; }
.live-dot.is-off { background: var(--c-muted-2); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 160, 132, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(0, 160, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 160, 132, 0); } }
.rank-bar { height: 8px; background: var(--c-fill); border-radius: 999px; overflow: hidden; min-width: 120px; }
.rank-bar span { display: block; height: 100%; background: var(--c-brand-500); border-radius: inherit; }
.chart { width: 100%; height: 260px; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--c-muted); }
.chart .grid-line { stroke: var(--c-border); stroke-width: 1; }
.chart .bar { fill: var(--chart-1); }
.chart .bar:hover { fill: var(--chart-1-strong); }
.chart .line { fill: none; stroke: var(--chart-1); stroke-width: 2.5; }
.chart .area { fill: var(--chart-1); fill-opacity: 0.1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.bulk-bar__count { font-size: 14px; color: var(--c-text-2); margin-right: 4px; }
.bulk-bar__count b { color: var(--c-title); font-variant-numeric: tabular-nums; }
.filter-bar .input, .filter-bar .select { height: 42px; font-size: 14px; width: auto; min-width: 150px; }
.filter-bar .search-box .input { height: 42px; min-width: 260px; padding-left: 40px; border-radius: var(--r-md); }
.filter-bar .search-box .icon { left: 14px; }
.diff-table td:first-child { width: 160px; font-weight: 700; color: var(--c-title); }
@media (max-width: 640px) {
  .diff-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .diff-table--stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--c-border); }
  .diff-table--stack tbody tr:last-child { border-bottom: 0; }
  .diff-table--stack td { display: block; width: auto; padding: 2px 0; border: 0; overflow-wrap: anywhere; }
  .diff-table--stack td:first-child { width: auto; margin-bottom: 4px; }
  .diff-table--stack td[data-label]::before { content: attr(data-label) " "; display: inline-block; min-width: 72px; margin-right: 6px; font-weight: 600; color: var(--c-text-2); text-decoration: none; }
}
.diff-old { color: var(--c-red-text); text-decoration: line-through; text-decoration-color: rgba(210, 32, 48, 0.4); }
.diff-new { color: var(--c-green-text); font-weight: 600; }
.timeline { list-style: none; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -4px; width: 2px; background: var(--c-border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c-brand-500); }
.timeline strong { color: var(--c-title); font-size: 14px; }
.timeline time { font-size: 12px; color: var(--c-muted); margin-left: 6px; }
.timeline p { font-size: 14px; color: var(--c-text); margin-top: 4px; white-space: pre-line; }
/* 설정 '변경 이력'(EM-02): 기록마다 바뀐 설정 목록(변경 전 → 후) */
.settings-history__changes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--c-text); }
.timeline .settings-history__changes li { padding: 0; overflow-wrap: anywhere; }
.timeline .settings-history__changes li::before, .timeline .settings-history__changes li::after { display: none; }
.def-list { display: grid; grid-template-columns: 180px 1fr; gap: 12px 20px; margin: 0; font-size: 14px; }
.def-list dt { color: var(--c-muted); }
.def-list dd { margin: 0; color: var(--c-title); font-weight: 600; }

/* 차트 공통 색(dataviz: 단일 계열·헤어라인 그리드·라벨은 텍스트 토큰). 흰 바탕 기준 비문자 대비 3:1 이상 */
:root { --chart-1: #00a084; --chart-1-strong: #007a65; --chart-grid: #e5e8eb; --chart-axis: #b0b8c1; }

/* 실시간 현황 (dataviz: 단일 계열·이중 축 금지·헤어라인 그리드·새로고침 시 이전 렌더 유지) */
.live-kpis { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.live-hero__value { font-size: 48px; font-weight: 800; color: var(--c-title); line-height: 1.1; margin-top: 6px; letter-spacing: -0.03em; }
.live-hero__value small { font-size: 22px; font-weight: 700; margin-left: 4px; }
.kpi__value, .live-hero__value { font-variant-numeric: normal; }
[data-live-frame] { transition: opacity 0.2s; }
.is-refreshing [data-live-frame] { opacity: 0.6; }
.chart-box { position: relative; width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box .axis-text { font-size: 12px; fill: var(--c-muted); font-variant-numeric: tabular-nums; }
.chart-box .grid-line { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .baseline { stroke: var(--chart-axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .bar { fill: var(--chart-1); }
.chart-box .bar-hit { fill: transparent; cursor: pointer; }
.chart-box .bar-group:hover .bar, .chart-box .bar-group:focus .bar { fill: var(--chart-1-strong); }
.chart-box .bar-group:focus { outline: none; }
.chart-box .bar-group:focus-visible .bar-hit { stroke: var(--chart-1-strong); stroke-width: 2; }
.chart-box .line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .area { fill: var(--chart-1); fill-opacity: 0.1; }
.chart-box .end-dot { fill: var(--chart-1); stroke: #fff; stroke-width: 2; }
.chart-box .end-label { font-size: 13px; font-weight: 700; fill: var(--c-title); }
.chart-box .crosshair { stroke: var(--chart-axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .empty-text { font-size: 14px; fill: var(--c-muted); }
.chart-tooltip { position: fixed; pointer-events: none; background: #fff; color: var(--c-text); border: 1px solid var(--c-border); box-shadow: var(--shadow-pop); font-size: 12px; padding: 10px 12px; border-radius: var(--r-md); white-space: nowrap; z-index: 90; display: none; min-width: 140px; }
.chart-tooltip strong { display: block; font-size: 15px; color: var(--c-title); }
.chart-tooltip .key { display: inline-block; width: 12px; height: 2px; background: var(--chart-1); vertical-align: middle; margin-right: 6px; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter__track { flex: 1; height: 8px; background: var(--c-fill); border-radius: 999px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--chart-1); border-radius: 999px; }
.meter__fill.is-done { background: var(--c-green); }
.meter__text { min-width: 64px; text-align: right; font-weight: 700; color: var(--c-title); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .live-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .live-kpis { grid-template-columns: minmax(0, 1fr); } .live-hero__value { font-size: 38px; } }

.grid-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-media { grid-template-columns: 240px minmax(0, 1fr); }
.kpi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199px) { .kpi-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .grid-media, .kpi-grid--3, .kpi-grid--5 { grid-template-columns: minmax(0, 1fr); } }

/* 20. 인증·폼 페이지 ----------------------------------------------------------- */
/* 인증 화면(로그인·회원가입·2단계 인증·휴면): 전체 화면을 쓰지 않고 일반 화면 폭 안에서 가운데 카드로 둔다(헤더·푸터와 같은 정렬) */
.auth { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.auth__panel { order: 1; width: min(460px, 100%); }
.auth__box { width: 100%; background: var(--c-surface, #fff); border: 1px solid var(--c-border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 40px 36px 32px; }
.auth__box h1 { font-size: 26px; font-weight: 800; }
.auth__box .lead { margin-top: 8px; color: var(--c-text-2); }
/* 브랜드 안내는 카드 아래 짧은 목록으로만(장식, 화면 낭독기에서는 숨김) */
.auth__visual { order: 2; width: min(460px, 100%); padding: 0 8px; color: var(--c-muted); }
.auth__visual .hero__eyebrow, .auth__visual h2, .auth__visual > p { display: none; }
.auth__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.auth__points li { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; }
.auth__points .icon { color: var(--c-brand-500); flex: none; }
.auth__alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--c-muted); }
/* 약관 동의 묶음: 체크박스 아래 안내는 체크박스 글자와 같은 들여쓰기(음수 여백 없이) */
.consent-box { background: var(--c-bg); }
.consent-item + .consent-item { margin-top: 14px; }
.consent-item__note { margin: 4px 0 0 30px; line-height: 1.6; }
.notice-strip { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--c-muted); }

/* 20-1. 현장 화면(집계 보드·실시간 랭킹·발표 모드) 규칙은 파일 끝 25절로 옮겼다. ------------------------------ */

/* 20-2. 참가 안내 QR·인쇄용 안내문 ------------------------------------------------ */
.join-guide { display: flex; gap: 28px; align-items: flex-start; }
.join-guide__qr { flex: none; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 6px; background: #fff; line-height: 0; }
.join-guide__qr svg { display: block; width: 168px; height: 168px; }
.join-guide__body { flex: 1; min-width: 0; }
.join-guide__link { font-size: 13px; background: var(--c-fill); border-radius: 6px; padding: 4px 8px; color: var(--c-title); overflow-wrap: anywhere; }
@media (max-width: 640px) { .join-guide { flex-direction: column; align-items: center; } }
body.poster-mode { background: var(--c-bg-soft); }
.poster { max-width: 820px; margin: 0 auto; padding: 32px 20px 48px; }
.poster__actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 16px; }
.poster__sheet { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 56px 48px; text-align: center; }
.poster__org { color: var(--c-text-2); font-weight: 700; }
.poster__title { color: var(--c-title); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; line-height: 1.2; }
.poster__period { color: var(--c-text); margin-top: 10px; font-variant-numeric: tabular-nums; }
.poster__qr { display: inline-block; margin: 32px auto 12px; line-height: 0; }
.poster__qr svg { display: block; width: 320px; height: 320px; }
.poster__lead { color: var(--c-title); font-size: 18px; font-weight: 700; }
.poster__code { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; border: 2px solid var(--c-title); border-radius: var(--r-lg); padding: 10px 22px; }
.poster__code span { color: var(--c-text-2); font-weight: 700; }
.poster__code strong { font-size: 34px; letter-spacing: 0.18em; color: var(--c-title); font-variant-numeric: tabular-nums; }
.poster__steps { text-align: left; max-width: 460px; margin: 28px auto 0; color: var(--c-text); line-height: 1.9; }
.poster__link { margin-top: 20px; font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.poster__foot { margin-top: 28px; font-size: 13px; color: var(--c-muted); }
@media print {
  .no-print, .skip-link, .messages { display: none !important; }
  body.poster-mode { background: #fff; }
  .poster { padding: 0; max-width: none; }
  .poster__sheet { border: 0; padding: 24px 0; }
}

/* 20-3. 2단계 인증 ------------------------------------------------------------- */
.input--code { font-size: 22px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; text-align: center; max-width: 320px; }
.mfa-steps { margin: 0; padding-left: 22px; display: grid; gap: 22px; color: var(--c-text); }
.mfa-steps > li > strong { color: var(--c-title); }
.mfa-setup { display: flex; gap: 24px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mfa-setup__qr { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 6px; background: #fff; line-height: 0; }
.mfa-setup__qr svg { display: block; width: 180px; height: 180px; }
.mfa-setup__secret { display: inline-block; font-size: 16px; letter-spacing: 0.08em; background: var(--c-fill); border-radius: var(--r-md); padding: 8px 12px; color: var(--c-title); overflow-wrap: anywhere; }
.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recovery-codes code { display: block; text-align: center; font-size: 18px; letter-spacing: 0.08em; background: var(--c-fill); border-radius: var(--r-md); padding: 10px; color: var(--c-title); }
.security-link { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.security-link:hover { border-color: var(--c-muted-2); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--c-text); font-size: 14px; }
.check-list li { display: flex; gap: 8px; align-items: center; }
.check-list .icon { color: var(--c-brand-700); }
.check-list--muted .icon { color: var(--c-muted); }

/* 20-4. 서버 렌더링 차트(메이커 통계·분석) — 단일 계열, 헤어라인 그리드, 텍스트 토큰 라벨 */
.ssr-chart-box { margin-top: 12px; }
.ssr-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ssr-grid { stroke: var(--chart-grid); stroke-width: 1; }
.ssr-baseline { stroke: var(--chart-axis); stroke-width: 1; }
.ssr-axis { fill: var(--c-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ssr-empty { fill: var(--c-muted); font-size: 13px; }
.ssr-bar { fill: var(--chart-1); }
.ssr-hit { fill: transparent; }
.ssr-bar-group:hover .ssr-bar, .ssr-bar-group:focus .ssr-bar { fill: var(--chart-1-strong); }
.ssr-bar-group:focus { outline: none; }
.ssr-bar-group:focus .ssr-hit { stroke: var(--chart-1-strong); stroke-width: 1.5; }

.funnel { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.funnel li { display: grid; grid-template-columns: minmax(140px, 22%) minmax(0, 1fr) minmax(120px, auto); gap: 14px; align-items: center; }
.funnel__label { color: var(--c-title); font-weight: 700; font-size: 14px; }
.funnel__bar { height: 18px; background: var(--c-fill); border-radius: 4px; overflow: hidden; }
.funnel__bar span { display: block; height: 100%; background: var(--chart-1); border-radius: 0 4px 4px 0; }
.funnel__value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .funnel li { grid-template-columns: 1fr auto; } .funnel__bar { grid-column: 1 / -1; grid-row: 2; } }

.audit-filters { flex-wrap: wrap; gap: 10px; }
.input--sm { --h: 38px; height: 38px; padding: 0 10px; font-size: 14px; width: auto; }

/* 21. 푸터 (와디즈형: 링크 줄 → 운영 정보) -------------------------------------------- */
.site-footer { background: #fff; margin-top: 80px; font-size: 13px; color: var(--c-muted); }
.site-footer__links { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.site-footer__links .container { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; min-height: 48px; }
.site-footer__links a { color: var(--c-text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.site-footer__links a:hover { color: var(--c-title); }
.site-footer__links a.is-strong { color: var(--c-title); font-weight: 700; }
.site-footer__links .site-footer__right { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 48px; }
.site-footer__help strong { display: flex; align-items: center; gap: 6px; color: var(--c-title); font-size: 16px; font-weight: 800; }
.site-footer__help a { display: flex; align-items: center; gap: 2px; color: var(--c-text-2); font-size: 15px; margin-top: 10px; font-weight: 500; }
.site-footer__help a:hover { color: var(--c-title); }
.site-footer__info p + p { margin-top: 10px; }
.site-footer__info b { color: var(--c-text-2); font-weight: 700; }
.site-footer__logo { display: block; width: auto; height: 24px; margin-bottom: 14px; }
.site-footer__company { margin-top: 14px !important; color: var(--c-text-2); }
.site-footer__biz { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 14px; padding: 0; list-style: none; }
.site-footer__biz li { display: inline-flex; gap: 6px; }
.site-footer__biz li + li::before { content: ""; align-self: center; width: 1px; height: 11px; margin: 0 10px; background: var(--c-border-strong); }
.site-footer__biz span { color: var(--c-muted); }
.site-footer__copy { margin-top: 14px !important; }
@media (max-width: 767px) {
  .site-footer__biz { flex-direction: column; }
  .site-footer__biz li + li::before { display: none; }
}
.site-footer a { color: inherit; }
.mock-ribbon { font-size: 12px; color: var(--c-muted); text-align: right; padding-top: 10px; }

/* 22. 반응형 ------------------------------------------------------------------ */
@media (max-width: 1279px) {
  .header-search { display: none; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 16px; }
  .site-header__inner { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .hero { padding: 48px 44px; }
  .studio { grid-template-columns: 250px minmax(0, 1fr); }
  .studio__grid { grid-template-columns: minmax(0, 1fr); }
  .studio__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .studio__main { padding: 28px 28px; }
  .detail-top, .detail-body { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; }
  .console { grid-template-columns: 220px minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .reward-row__stockcol { display: none; }
}

@media (max-width: 960px) {
  .main-nav, .header-actions .hide-tablet { display: none; }
  .mobile-nav-toggle { display: inline-grid; }
  .mobile-drawer.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 45; padding: 16px 24px 40px; overflow-y: auto; }
  .mobile-drawer a, .mobile-drawer button.drawer-logout { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--c-border); background: none; color: var(--c-title); font-weight: 600; font-size: 17px; text-align: left; }
  .mobile-drawer__user { padding: 12px 4px 16px; border-bottom: 1px solid var(--c-border); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .home-main { grid-template-columns: minmax(0, 1fr); }
  .detail-top, .detail-body { grid-template-columns: minmax(0, 1fr); }
  .info-card { position: static; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio__side { position: static; height: auto; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--c-border); }
  .studio__intro, .studio__note, .studio__back { display: none; }
  .stepper { flex-direction: row; overflow-x: auto; margin-top: 0; padding-top: 0; border-top: 0; gap: 6px; scrollbar-width: none; }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper li { flex: none; }
  .stepper a, .stepper span.stepper__link { padding: 8px 12px 8px 8px; gap: 8px; align-items: center; }
  .stepper__text small, .stepper__state { display: none; }
  .stepper__text strong { font-size: 14px; white-space: nowrap; }
  .stepper__num { width: 28px; height: 28px; font-size: 12px; }
  .console { grid-template-columns: minmax(0, 1fr); }
  .console__side { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--c-border); }
  .console__nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .console__nav a { white-space: nowrap; }
  .console__label { display: none; }
  .console__main { padding: 22px 20px 48px; }
  .auth { padding: 28px 16px 56px; }
  .auth__box { padding: 28px 20px 24px; border-radius: var(--r-lg); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-banner__art { display: none; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .page { padding: 16px 0 96px; }
  .brand__logo { height: 26px; }
  .site-header__inner { gap: 8px; }
  .header-actions { gap: 2px; }
  .header-actions .btn { --h: 36px; padding: 0 12px; font-size: 13px; }
  .header-actions .btn .icon { display: none; }
  .header-actions .user-menu, .header-actions .header-link, .header-actions .header-divider { display: none; }
  .mobile-nav-toggle { width: 40px; height: 40px; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial !important; }
  .grid-2, .grid-3, .grid-4, .kpi-grid, .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .span-2 { grid-column: auto; }
  .home-search { padding-top: 16px; }
  .home-search input { height: 50px; font-size: 15px; }
  .quick-links { justify-content: flex-start; gap: 12px; margin: 0 -16px; padding: 18px 16px 4px; }
  .quick-link { width: 70px; font-size: 12px; }
  .quick-link__icon { width: 54px; height: 54px; font-size: 25px; }
  .banner__viewport { aspect-ratio: 4 / 3; }
  .banner__slide { padding: 22px 20px 64px; }
  .banner__title { font-size: 22px; }
  .banner__desc { font-size: 14px; }
  .banner__nav { right: 16px; bottom: 16px; }
  .banner__nav button { width: 36px; height: 36px; }
  .rank-item { grid-template-columns: 100px 20px minmax(0, 1fr); }
  .rank-item__thumb { width: 100px; }
  .hero { padding: 36px 24px 30px; border-radius: var(--r-lg); }
  .hero__title { font-size: 28px; margin-top: 10px; }
  .hero__desc { font-size: 15px; }
  .hero__actions .btn { width: 100%; }
  .stat-card { padding: 18px 20px; }
  .section { margin-top: 44px; }
  .section-head__title { font-size: 21px; }
  .page-title { font-size: 26px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { height: 36px; padding: 0 14px; font-size: 14px; }
  .cat-tabs { margin: 0 -16px 20px; padding: 0 8px; }
  .toolbar__search { flex: 1 1 100%; }
  .event-banner { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .event-banner__title { font-size: 23px; }
  .event-banner__stats { grid-template-columns: repeat(3, 1fr); }
  .event-banner__stat { padding: 12px 6px; }
  .event-banner__stat strong { font-size: 19px; }
  .wallet-bar { padding: 14px 16px; gap: 10px; }
  .wallet-bar__sep { display: none; }
  .wallet-bar__note { margin-left: 0; width: 100%; }
  .info-card__title { font-size: 23px; }
  .info-card__pct { font-size: 34px; }
  .gallery__main .cover__emoji { font-size: 92px; }
  .gallery__main .cover__headline { font-size: 22px; }
  .gallery__thumb { width: calc(25% - 6px); height: 48px; }
  .detail-tabs .tabs { gap: 20px; padding: 0 16px; }
  .tabs__item { font-size: 15px; }
  .highlight-box { padding: 22px; }
  .highlight-box strong { font-size: 17px; }
  .ps-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--c-border); }
  .sticky-cta .btn { flex: 1; }
  .form-card { padding: 24px 20px; }
  .studio__main { padding: 22px 16px 120px; }
  .studio__head h1 { font-size: 23px; }
  .studio__aside { grid-template-columns: 1fr; }
  .studio-actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--c-border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .studio-actions__note { display: none; }
  .studio-actions__buttons { width: 100%; }
  .studio-actions__buttons .btn { flex: 1; padding: 0 10px; }
  .reward-row { grid-template-columns: 64px minmax(0, 1fr); }
  .reward-row__thumb { width: 64px; height: 48px; }
  .reward-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .team-grid { grid-template-columns: 1fr; }
  .checklist__label { width: auto; }
  .checklist__desc { display: none; }
  .cta-panel__art { font-size: 60px; right: 18px; opacity: 0.9; }
  .cta-panel { padding: 28px 22px; }
  .cta-panel__title { font-size: 19px; padding-right: 60px; }
  .cta-banner { padding: 28px 22px; }
  .cta-banner__title { font-size: 21px; }
  .modal__dialog { padding: 24px 20px; border-radius: var(--r-lg); }
  .def-list { grid-template-columns: 1fr; gap: 2px; }
  .def-list dd { margin-bottom: 10px; }
  .messages { top: calc(var(--header-h) + 8px); right: 12px; left: 12px; max-width: none; }
  .console-head h1 { font-size: 22px; }
  .preview-frame iframe { height: 620px; }
  .site-footer__links .site-footer__right { margin-left: 0; }
}

/* 헤더 메뉴 활성 표시: body 클래스(nav-*)와 data-nav 매칭 */
.nav-events .main-nav a[data-nav="events"],
.nav-projects .main-nav a[data-nav="projects"],
.nav-studio .main-nav a[data-nav="studio"],
.nav-guide .main-nav a[data-nav="guide"] { color: var(--c-brand-700); }
.nav-events .main-nav a[data-nav="events"]::after,
.nav-projects .main-nav a[data-nav="projects"]::after,
.nav-studio .main-nav a[data-nav="studio"]::after,
.nav-guide .main-nav a[data-nav="guide"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-brand-500); }

/* 22. 심사 평가표 (심사위원 평가·운영 콘솔 '심사 평가') ------------------------------------
   대비: 점수 칸은 흰 바탕(캡션 --c-muted 4.6:1), 오류는 빨간 테두리+문구(색만으로 구분하지 않음), 순위 강조는 --c-brand-700/--c-tint 4.7:1 */
.judge-panel { margin-top: 32px; border-color: var(--c-brand-500); }
.judge-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.judge-panel__head .card__title { display: flex; align-items: center; gap: 6px; }
.judge-panel__head .card__title .icon { color: var(--c-brand-700); }
.judge-panel__status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.judge-panel__total { color: var(--c-text-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.judge-panel__total strong { color: var(--c-title); font-size: 20px; font-weight: 800; }
.judge-panel__subtitle { font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.score-grid { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); }
.score-row:focus-within { border-color: var(--c-brand-500); }
.score-row.is-invalid { border-color: var(--c-red-text); box-shadow: 0 0 0 3px rgba(210, 32, 48, 0.12); }
.score-row__text { min-width: 0; }
.score-row__text .caption { margin-top: 2px; }
.score-row__input { display: flex; align-items: center; gap: 8px; }
.score-input { width: 84px; height: 44px; text-align: right; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.score-row__max { color: var(--c-text-2); font-weight: 600; white-space: nowrap; }
.score-row .field__error { grid-column: 1 / -1; }
.score-total { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 16px; color: var(--c-text-2); font-weight: 600; }
.score-total strong { color: var(--c-title); font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.judge-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.score-readonly { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.score-readonly > div { padding: 12px 14px; border-radius: var(--r-md); background: var(--c-bg-soft); }
.score-readonly dt { font-size: 13px; color: var(--c-text-2); }
.score-readonly dd { margin: 2px 0 0; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.score-readonly dd strong { color: var(--c-title); font-size: 20px; font-weight: 800; }
.score-readonly .is-total { background: var(--c-tint); }
.score-comment { padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.criteria-preview { list-style: none; display: grid; gap: 8px; }
.criteria-preview li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.criteria-preview li:last-child { border-bottom: 0; }
.criteria-preview strong { color: var(--c-title); }
.judge-progress { min-width: 240px; }
.judge-progress .kpi__value { margin-top: 4px; }
.judge-link__count { color: var(--c-text-2); font-weight: 600; font-size: 13px; }
.judging-switch { align-items: flex-start; flex-wrap: wrap; }
.judging-switch__title { margin: 0; }
.judging-rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--r-pill); background: var(--c-fill); color: var(--c-title); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.judging-rank.is-top { background: var(--c-tint); color: var(--c-brand-700); }
.criteria-table td { vertical-align: top; position: relative; } /* 칸 안의 .sr-only 라벨(absolute)이 가로 스크롤 영역(.table-wrap) 밖으로 빠져 모바일 화면 전체가 넓어지지 않게 */
.criteria-table td:first-child { width: 48px; padding-top: 22px; color: var(--c-text-2); font-weight: 700; }
.criteria-table__max { width: 120px; }
.criteria-table .field__error { white-space: normal; }
.judging-criteria__foot { flex-wrap: wrap; }
.judging-comment { max-width: 360px; white-space: normal; }
.judging-pending { list-style: none; }
.table tr.is-excluded td { color: var(--c-text-2); background: var(--c-bg-soft); }
@media (max-width: 1199px) { .score-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .score-row { grid-template-columns: minmax(0, 1fr); }
  .score-input { width: 100%; }
  .score-row__input { width: 100%; }
  .judge-form__actions .btn { width: 100%; }
}

/* 24. 도입 문의 (공개 문의 폼·접수 완료·슈퍼관리자 문의함) ----------------------------------- */
.nav-inquiry .main-nav a[data-nav="inquiry"] { color: var(--c-brand-700); }
.nav-inquiry .main-nav a[data-nav="inquiry"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-brand-500); }
/* GNB 메뉴가 4개가 되어, 검색창이 보이는 1280~1340px와 메뉴가 작아지는 961~1080px에서 로그인(메이커) 헤더 버튼과 겹치지 않게 간격을 줄인다 */
@media (min-width: 1280px) and (max-width: 1340px) { .main-nav { gap: 22px; } }
@media (min-width: 961px) and (max-width: 1080px) { .site-header__inner { gap: 16px; } .main-nav { gap: 14px; } .main-nav a { font-size: 15px; } }
/* 공개 문의 화면: 일반 화면 폭 안에서 왼쪽 소개 + 오른쪽 문의 카드(모바일은 소개 → 폼 → 기능 순) */
.inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); grid-template-rows: auto 1fr; grid-template-areas: "head form" "more form"; gap: 32px 64px; align-items: start; }
.inquiry__head { grid-area: head; padding-top: 8px; }
.inquiry__title { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: -0.04em; margin-top: 10px; }
.inquiry__lead { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--c-text-2); }
.inquiry__form-card { grid-area: form; padding: 36px 36px 32px; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.inquiry__form-card > h2 { font-size: 22px; font-weight: 800; }
.inquiry__more { grid-area: more; }
.inquiry__section-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.inquiry-features { list-style: none; display: grid; gap: 20px; }
.inquiry-features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.inquiry-features__icon { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--c-tint); color: var(--c-brand-700); display: grid; place-items: center; }
.inquiry-features strong { color: var(--c-title); font-size: 16px; }
.inquiry-features p { margin-top: 2px; color: var(--c-text-2); font-size: 14px; }
.inquiry-steps { margin-top: 32px; padding: 24px; }
.inquiry-steps .inquiry__section-title { font-size: 16px; margin-bottom: 14px; }
.inquiry-steps ol { list-style: none; display: grid; gap: 14px; }
.inquiry-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--c-text-2); font-size: 14px; }
.inquiry-steps li strong { display: block; color: var(--c-title); font-size: 15px; }
.inquiry-steps__num { width: 28px; height: 28px; border-radius: 50%; background: var(--c-title); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.inquiry-form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.inquiry-form__group + .inquiry-form__group { margin-top: 32px; }
.inquiry-form__legend { display: block; width: 100%; padding: 0 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--c-border); font-size: 16px; font-weight: 800; color: var(--c-title); }
/* 허니팟: 화면 밖으로 빼서 숨긴다(display:none은 일부 봇이 건너뛰므로 쓰지 않음) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent-terms { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 12px; margin: 10px 0 0 30px; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-bg-soft); font-size: 13px; line-height: 1.6; color: var(--c-text-2); }
.consent-terms dt { font-weight: 700; color: var(--c-title); }
.consent-terms dd { margin: 0; }
.consent-terms strong { color: var(--c-title); }
.inquiry-message { white-space: pre-line; padding: 16px 18px; border-radius: var(--r-md); background: var(--c-bg-soft); color: var(--c-title); line-height: 1.75; overflow-wrap: anywhere; }
/* 접수 완료 */
.inquiry-done { max-width: 720px; margin: 16px auto 0; }
.inquiry-done__card { padding: 44px 40px 36px; text-align: center; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.inquiry-done__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand); color: var(--c-title); }
.inquiry-done__title { margin-top: 18px; font-size: 26px; font-weight: 800; }
.inquiry-done__number { margin-top: 10px; font-size: 16px; color: var(--c-text-2); }
.inquiry-done__number strong { margin-left: 6px; color: var(--c-title); font-size: 21px; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.inquiry-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; padding: 18px 12px; border-radius: var(--r-lg); background: var(--c-bg-soft); }
.inquiry-progress li { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--c-text-2); font-size: 13px; font-weight: 600; }
.inquiry-progress li > span:first-child { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-border-strong); color: var(--c-text-2); font-size: 13px; font-weight: 800; }
.inquiry-progress li.is-done { color: var(--c-title); }
.inquiry-progress li.is-done > span:first-child { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-title); }
.inquiry-summary { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border); text-align: left; }
.inquiry-summary__title { margin-bottom: 14px; font-size: 17px; font-weight: 800; }
.inquiry-summary .def-list { grid-template-columns: 120px minmax(0, 1fr); }
.inquiry-summary__message { margin-top: 16px; }
.inquiry-summary__message summary { display: flex; align-items: center; gap: 4px; padding: 6px 0; list-style: none; cursor: pointer; color: var(--c-brand-700); font-weight: 700; font-size: 14px; }
.inquiry-summary__message summary::-webkit-details-marker { display: none; }
.inquiry-summary__message[open] summary .icon { transform: rotate(180deg); }
.inquiry-summary__message .inquiry-message { margin-top: 8px; font-size: 14px; }
.inquiry-done__actions { justify-content: center; }
/* 슈퍼관리자 문의함 */
.inquiry-tabs { margin-bottom: 12px; }
.inquiry-table__no { display: inline-flex; align-items: center; gap: 6px; color: var(--c-title); font-weight: 700; font-variant-numeric: tabular-nums; }
.inquiry-table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--c-brand-500); }
.inquiry-table tr.is-unread .table__title { font-weight: 800; }
.unread-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand-500); }
.inquiry-detail { margin-top: 0; gap: 20px; }
.inquiry-fields { grid-template-columns: 120px minmax(0, 1fr); }
.inquiry-card-title { font-size: 16px; }
.inquiry-meta { grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.inquiry-meta dd { font-weight: 500; overflow-wrap: anywhere; }
.inquiry-assign { display: flex; gap: 8px; }
.inquiry-assign .select { flex: 1; min-width: 0; }
.inquiry-note-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.inquiry-dash__title { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.inquiry-dash .notice-list li { gap: 12px; padding: 12px 0; }
.inquiry-dash .notice-list li:first-child { padding-top: 0; }
.inquiry-filters__range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }  /* 기간은 한 덩어리로 줄바꿈 */
/* 메뉴 배지·표 안의 .sr-only(absolute)가 모바일 가로 스크롤 영역 밖으로 빠져 화면 전체가 넓어지지 않게 */
.console__nav a[data-nav-inquiries], .inquiry-table td:first-child { position: relative; }
.inquiry-reason { height: 42px; font-size: 14px; }
@media (max-width: 1199px) { .inquiry { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px 40px; } }
@media (max-width: 960px) {
  .inquiry { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "form" "more"; gap: 28px; }
  .inquiry__title { font-size: 28px; }
}
@media (max-width: 767px) {
  .inquiry__title { font-size: 24px; }
  .inquiry__lead { font-size: 15px; }
  .inquiry__form-card { padding: 26px 18px 22px; border-radius: var(--r-lg); }
  .consent-terms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .consent-terms dd + dt { margin-top: 6px; }
  .inquiry-filters__range { width: 100%; }
  .filter-bar .inquiry-filters__range .input { flex: 1 1 0; min-width: 0; }
  .inquiry-done__card { padding: 32px 18px 26px; border-radius: var(--r-lg); }
  .inquiry-done__title { font-size: 22px; }
  .inquiry-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .inquiry-summary .def-list, .inquiry-fields { grid-template-columns: minmax(0, 1fr); }
  .inquiry-done__actions .btn { flex: 1; }
}

/* 23. 날짜 선택(datepicker) -------------------------------------------------------
   에어비앤비형 달력(static/js/datepicker.js): 둥근 카드 팝오버(768px 미만은 한 달짜리 하단 시트), 원형 날짜, 선택은 진한 원(--c-title)+흰 글자,
   기간은 두 원 사이의 연한 띠(--c-fill). 원래 input은 제출용으로 남기고 1px로 잘라 숨긴다(display:none 금지 — 폼 전송·자동화 도구 입력 유지).
   대비(WCAG AA): 날짜 숫자 --c-title, 요일 --c-muted 4.6:1, 선택 원 흰 글자 15.9:1, 띠 위 숫자 14.5:1, 빈 트리거 안내 --c-muted 4.6:1.
   고를 수 없는 날은 연한 회색+보통 굵기(고를 수 있는 날은 600)로 색 외의 단서도 둔다. */
.dp-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; pointer-events: none; }
.dp-trigger { display: inline-flex; align-items: center; gap: 10px; text-align: left; vertical-align: middle; line-height: 1.25; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-trigger__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-trigger.is-empty .dp-trigger__text { color: var(--c-muted); }
.dp-trigger__icon { flex: none; margin-left: auto; color: var(--c-text-2); }
.dp-trigger[aria-expanded="true"] { border-color: var(--c-title); box-shadow: 0 0 0 1px var(--c-title); }
.dp-trigger[aria-disabled="true"] { background: var(--c-fill); border-color: var(--c-border-strong); cursor: not-allowed; }
.dp-trigger:disabled .dp-trigger__icon, .dp-trigger[aria-disabled="true"] .dp-trigger__icon { color: var(--c-muted); }

.dp { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.dp__backdrop { display: none; }
.dp__panel { position: absolute; top: 0; left: 0; width: max-content; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 20px; border-radius: 28px; background: #fff; color: var(--c-title); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04); pointer-events: auto; animation: toast-in 0.18s var(--ease); }
.dp__panel:focus { outline: none; }
.dp__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.dp__heading { flex: 1; min-width: 0; }
.dp__title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.dp__summary { margin-top: 2px; font-size: 14px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.dp__fields { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--c-fill); }
.dp__field { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 8px 20px; border: 0; border-radius: var(--r-pill); background: transparent; text-align: left; transition: background 0.15s, box-shadow 0.15s; }
.dp__field:hover:not(:disabled) { background: #e5e8eb; }
.dp__field.is-active, .dp__field.is-active:hover { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.dp__field:disabled { cursor: not-allowed; }
.dp__field-label { font-size: 12px; font-weight: 700; color: var(--c-title); }
.dp__field-value { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.dp__x { display: none; flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-title); place-items: center; }
.dp__x:hover { background: var(--c-fill); }
.dp__body { position: relative; }
.dp__nav { position: absolute; top: -4px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-title); transition: background 0.15s; }
.dp__nav:hover:not(:disabled) { background: var(--c-fill); }
.dp__nav:disabled { color: #c4cad1; cursor: not-allowed; }
.dp__nav--prev { left: -4px; }
.dp__nav--next { right: -4px; }
.dp__months { display: flex; align-items: flex-start; gap: 40px; }
.dp__month { width: 308px; }
.dp__caption { height: 24px; margin-bottom: 12px; text-align: center; font-size: 16px; font-weight: 700; line-height: 24px; }
.dp__grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.dp__grid th { height: 30px; padding: 0 0 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--c-muted); }
.dp__grid td { position: relative; height: 44px; padding: 0; text-align: center; }
.dp__day { cursor: pointer; }
.dp__day:focus { outline: none; }
.dp__num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--c-title); font-variant-numeric: tabular-nums; transition: box-shadow 0.12s; } /* 배경은 전환하지 않는다: 고를 때마다 칸을 새로 그려 흰 글자가 빈 원 위에 잠깐 사라져 보였다 */
@media (hover: hover) { .dp__day:not(.is-disabled):not(.is-selected):hover .dp__num { box-shadow: inset 0 0 0 1.5px var(--c-title); } } /* 터치 화면에서 테두리가 남지 않게 */
.dp__day:focus-visible .dp__num { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-brand-700); }
.dp__day.is-today .dp__num::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dp__day.is-disabled { cursor: not-allowed; }
.dp__day.is-disabled .dp__num { color: #b0b8c1; font-weight: 400; }
.dp__day.is-selected .dp__num { background: var(--c-title); color: #fff; }
/* 기간 띠: 칸 가운데 원 높이로 이어 붙이고 시작은 오른쪽 반, 끝은 왼쪽 반만 칠한다. 주·달의 처음과 끝에서는 둥글게 끊는다 */
.dp__day.is-in-range::before, .dp__day.is-start::before, .dp__day.is-end::before { content: ""; position: absolute; top: 1px; bottom: 1px; left: 0; right: 0; background: var(--c-fill); }
.dp__day.is-start::before { left: 50%; }
.dp__day.is-end::before { right: 50%; }
.dp__grid td:first-child.is-end::before, .dp__day.is-first.is-end::before, .dp__grid td:last-child.is-start::before, .dp__day.is-last.is-start::before { display: none; }
.dp__grid td:first-child.is-in-range::before, .dp__day.is-first.is-in-range::before { border-radius: 21px 0 0 21px; }
.dp__grid td:last-child.is-in-range::before, .dp__day.is-last.is-in-range::before { border-radius: 0 21px 21px 0; }
.dp__grid td:first-child.is-last.is-in-range::before, .dp__grid td:last-child.is-first.is-in-range::before { border-radius: 21px; }
.dp__day.is-preview.is-end:not(.is-selected) .dp__num { box-shadow: inset 0 0 0 1.5px var(--c-title); }
.dp__grid--months td { height: 60px; }
.dp__day--month .dp__num { width: 80px; height: 44px; border-radius: var(--r-pill); font-size: 15px; }
.dp__day--month.is-today .dp__num::after { bottom: 4px; }
.dp__times { display: flex; gap: 40px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.dp__time { display: flex; flex-direction: column; gap: 8px; width: 308px; }
.dp__time-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: var(--c-text-2); }
.dp__time-label strong { font-size: 14px; color: var(--c-title); }
.dp__time-inputs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.dp__select { height: 44px; font-size: 15px; font-variant-numeric: tabular-nums; }
.dp__error { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c-red-text); }
.dp__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.dp__clear { height: 40px; margin-left: -10px; padding: 0 10px; border: 0; border-radius: var(--r-md); background: none; color: var(--c-title); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dp__clear:hover:not(:disabled) { background: var(--c-fill); }
.dp__clear:disabled { color: #b0b8c1; text-decoration: none; cursor: not-allowed; }
.dp__done { height: 44px; min-width: 88px; margin-left: auto; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: var(--c-title); color: #fff; font-size: 15px; font-weight: 700; transition: background 0.15s; }
.dp__done:hover:not(:disabled) { background: #333d4b; }
.dp__done:disabled { background: var(--c-fill); color: var(--c-muted); cursor: not-allowed; }
/* 768px 미만: 한 달짜리 하단 시트(뒤 화면은 어둡게 막고 스크롤을 잠근다), 칸·버튼을 손가락 크기로 키운다 */
.dp.is-sheet { pointer-events: auto; }
.dp.is-sheet .dp__backdrop { display: block; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); animation: dp-fade 0.2s ease; }
.dp.is-sheet .dp__panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: calc(100% - 24px); padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.16); animation: dp-sheet 0.24s var(--ease); }
.dp.is-sheet .dp__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--c-border-strong); }
.dp.is-sheet .dp__head { margin-bottom: 16px; }
.dp.is-sheet .dp__x { display: grid; }
.dp.is-sheet .dp__field { padding: 8px 14px; }
.dp.is-sheet .dp__months { display: block; }
.dp.is-sheet .dp__month { width: 100%; }
.dp.is-sheet .dp__nav { top: -8px; width: 40px; height: 40px; }
.dp.is-sheet .dp__grid td { height: 48px; }
.dp.is-sheet .dp__num { width: 44px; height: 44px; font-size: 15px; }
.dp.is-sheet .dp__day::before { top: 2px; bottom: 2px; }
.dp.is-sheet .dp__day--month .dp__num { width: 88px; }
.dp.is-sheet .dp__times { flex-direction: column; gap: 14px; }
.dp.is-sheet .dp__time { width: 100%; }
.dp.is-sheet .dp__select { height: 48px; }
.dp.is-sheet .dp__clear { height: 48px; }
.dp.is-sheet .dp__done { height: 48px; padding: 0 28px; }
@keyframes dp-sheet { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (forced-colors: active) {
  .dp__day.is-selected .dp__num { outline: 2px solid CanvasText; }
  .dp__day.is-in-range::before, .dp__day.is-start::before, .dp__day.is-end::before { background: Highlight; }
}

/* 25. 현장 화면(발표 모드·실시간 순위 보드) ------------------------------------------------
   행사장 프로젝터용 세 화면(배정 담당자·슈퍼관리자 전용): 집계 보드(.board), 실시간 랭킹(.rk — 콘솔 안 일반 모드 /
   전체 화면 프로젝터 모드), 발표 모드(.pitch). 프로젝터 화면은 16:9를 스크롤 없이 채우고, 글자 크기는 너비·높이 중
   작은 쪽(--u)을 따른다. 어두운 화면이 기본이고 data-theme="light"면 밝은 화면.
   막대·달성 막대: 어두운 화면은 로고 민트 #01c8a5(카드 #0c2149 대비 7:1), 밝은 화면은 #00a084(흰 바탕 3.3:1).
   트랙은 같은 색 계열의 옅은 단계, 값·라벨은 텍스트 색. 1~3위 메달·목표 달성·상태는 숫자·✓·글자와 함께 표시한다.
   움직임은 transform/opacity만 쓰고, 모션 최소화 설정이면 JS가 이동·증가 효과를 끈다(CSS 전환·애니메이션은 2절 규칙이 줄인다). */
.venue, .rk.is-projector {
  --v-bg: #061733; --v-card: #0c2149; --v-card-2: #122a57; --v-line: rgba(255, 255, 255, 0.1);
  --v-text: #f2f4f6; --v-text-2: #b3bfd3; --v-muted: #8d9bb3; --v-bar: #01c8a5; --v-track: rgba(1, 200, 165, 0.2);
  --v-live: #3fc28f; --v-gold: #f2c14e; --v-silver: #c7ced6; --v-bronze: #d9a06e;
}
.venue[data-theme="light"], .rk, .rk.is-projector[data-theme="light"] {
  --v-bg: #f2f4f6; --v-card: #ffffff; --v-card-2: #f9fafb; --v-line: #e5e8eb;
  --v-text: var(--c-title); --v-text-2: #4e5968; --v-muted: #6b7684; --v-bar: #00a084; --v-track: #d6f5ef; --v-live: #12b886;
  --v-gold: #f2c14e; --v-silver: #c7ced6; --v-bronze: #d9a06e; /* 일반 모드(.rk)도 1~3위 메달·1위 테두리를 같은 색으로 */
}
body.venue-mode, body.rk-screen { background: #061733; overflow: hidden; }
.venue { --u: min(1vw, 1.78vh); position: relative; min-height: 100vh; background: var(--v-bg); color: var(--v-text); }
.venue-stage { height: 100vh; }
.venue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; min-width: 0; }
.venue-brand { display: flex; align-items: center; gap: calc(var(--u) * 1.3); min-width: 0; }
.venue-brand__logo, .rk-brand__logo { width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); min-width: 40px; min-height: 40px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; flex: none; }
.venue-brand__text, .rk-brand__text { min-width: 0; }
.venue-brand__org, .rk-brand__org { color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.1)); font-weight: 700; }
.venue-brand__title, .rk-brand__title { color: var(--v-text); font-size: max(22px, calc(var(--u) * 2.8)); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-clock { text-align: right; flex: none; }
.venue-clock__remain { margin-top: 6px; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.05)); white-space: nowrap; }
.venue-clock__remain strong, .rk-clock__remain strong { color: var(--v-text); font-size: max(20px, calc(var(--u) * 2.3)); font-weight: 800; font-variant-numeric: tabular-nums; }
.venue-clock.is-soon strong, .rk-clock.is-soon strong { color: var(--c-amber-text); }
.venue-clock.is-final strong, .rk-clock.is-final strong { color: var(--c-red-text); }
.venue:not([data-theme="light"]) .venue-clock.is-soon strong, .rk.is-projector:not([data-theme="light"]) .rk-clock.is-soon strong { color: var(--c-amber); }
.venue:not([data-theme="light"]) .venue-clock.is-final strong, .rk.is-projector:not([data-theme="light"]) .rk-clock.is-final strong { color: #ff6b76; }
.venue-status { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); padding: 4px 14px; font-weight: 800; font-size: max(13px, calc(var(--u, 10px) * 1.05)); letter-spacing: 0.02em; background: rgba(139, 149, 161, 0.18); color: var(--v-text); white-space: nowrap; }
.venue-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--v-muted); flex: none; }
.venue-status.is-live::before { background: var(--v-live); animation: venue-pulse 1.8s infinite; }
.venue-status.is-paused::before { background: var(--c-amber); }
@keyframes venue-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 194, 143, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(63, 194, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 194, 143, 0); } }
.venue-foot { display: flex; justify-content: space-between; gap: 16px; color: var(--v-text-2); font-size: max(12px, calc(var(--u) * 0.9)); }
.venue-conn, .rk-conn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* 축하 배너·색종이(전체 화면 요소 안에 있어야 보인다) */
.venue-banner { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; min-width: min(640px, 80vw); max-width: 88vw; padding: calc(var(--u, 10px) * 2.4) calc(var(--u, 10px) * 4); border-radius: 24px; text-align: center; background: var(--v-card); color: var(--v-text); border: 3px solid var(--v-gold); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); pointer-events: none; }
.venue-banner.is-goal, .venue-banner.is-reveal { border-color: var(--c-brand); }
.venue-banner__kicker { font-size: max(18px, calc(var(--u, 10px) * 2.2)); font-weight: 800; color: var(--v-text); }
.venue-banner__title { margin-top: 6px; font-size: max(28px, calc(var(--u, 10px) * 4.4)); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: var(--v-text); overflow-wrap: anywhere; }
.venue-banner__sub { margin-top: 8px; font-size: max(15px, calc(var(--u, 10px) * 1.6)); font-weight: 700; color: var(--v-text-2); }
.venue-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 68; }
.venue-paused { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 8px; text-align: center; background: rgba(6, 23, 51, 0.86); color: #f2f4f6; font-size: max(16px, calc(var(--u) * 1.4)); }
.venue-paused__title { font-size: max(30px, calc(var(--u) * 3.6)); font-weight: 800; }
/* 설정 패널: 화면 아래에 떠 있고 3초간 움직임이 없으면 숨는다 */
.venue-controls { position: fixed; right: 16px; bottom: 16px; z-index: 75; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; max-width: calc(100vw - 32px);
  padding: 10px 14px; border-radius: var(--r-lg); background: rgba(12, 33, 73, 0.97); border: 1px solid rgba(255, 255, 255, 0.18); color: #f2f4f6; font-size: 13px; font-weight: 700; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transition: opacity 0.3s var(--ease); }
.venue-controls label, .venue-controls .switch { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: inherit; font-weight: 700; }
.venue-controls .btn--text { color: inherit; }
.venue.is-idle { cursor: none; }
.venue.is-idle .venue-controls { opacity: 0; pointer-events: none; }

/* 집계 보드: 머리글 → KPI 카드(총액·건수·투자자·참여율·참가 QR) → 투자 소식 → 순위 목록(넓으면 두 열) → 바닥글 */
.board-stage { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: calc(var(--u) * 1.3); padding: calc(var(--u) * 2.2) calc(var(--u) * 2.6); }
.board-card { background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); min-width: 0; }
.board-label { color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.05)); font-weight: 700; }
.board-kpis { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 1.2); }
.board-kpis.has-join { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr); }
.board.is-stats-hidden .board-kpis { grid-template-columns: minmax(0, 1fr); }
.board.is-stats-hidden .board-kpis.has-join { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.board-hero, .board-kpi { padding: calc(var(--u) * 1.2) calc(var(--u) * 1.6); }
.board-hero { container-type: inline-size; } /* 총액 글자가 카드 폭(cqw)을 넘지 않게 */
.board-hero__value { --fit: 1; margin-top: 4px; color: var(--v-text); font-size: calc(min(max(34px, var(--u) * 4.4), 15.5cqw) * var(--fit)); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; }
.board-hero__value small { font-size: 0.42em; margin-left: 6px; color: var(--v-text-2); letter-spacing: 0; }
.board-hero__value--hidden { display: flex; align-items: center; gap: 10px; font-size: max(24px, calc(var(--u) * 2.8)); color: var(--v-text-2); }
.board.is-amounts-hidden [data-amount-only], .board:not(.is-amounts-hidden) [data-amount-hidden] { display: none; }
.board-kpi__value { margin-top: 4px; color: var(--v-text); font-size: max(24px, calc(var(--u) * 3)); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.board-kpi__value small { font-size: 0.45em; margin-left: 4px; color: var(--v-text-2); }
.board-join { display: flex; align-items: center; gap: calc(var(--u) * 1.1); padding: calc(var(--u) * 0.8) calc(var(--u) * 1.2); }
.board-join__qr { flex: none; width: calc(var(--u) * 7.2); min-width: 72px; aspect-ratio: 1; padding: 4px; border-radius: 10px; background: #fff; line-height: 0; }
.board-join__qr svg, .rk-join__qr svg, .pitch-qr__code svg { width: 100%; height: 100%; }
.board-join__text { flex: 1; min-width: 0; container-type: inline-size; }
.board-join__code { margin-top: 2px; display: flex; flex-direction: column; line-height: 1.15; }
.board-join__code small, .rk-join__code small { color: var(--v-text-2); font-size: max(11px, calc(var(--u) * 0.85)); font-weight: 700; }
.board-join__code strong { color: var(--v-text); font-size: clamp(13px, min(var(--u) * 2, 140cqw / (var(--chars, 8) + 1)), 48px); font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; } /* --chars: 코드 글자 수(템플릿) */
.board-join__url, .rk-join__url { margin-top: 2px; color: var(--v-muted); font-size: max(11px, calc(var(--u) * 0.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-feed { display: flex; align-items: center; gap: calc(var(--u) * 1.4); min-width: 0; height: max(36px, calc(var(--u) * 3.2)); padding: 0 calc(var(--u) * 1.4); border-radius: var(--r-pill); background: var(--v-card); border: 1px solid var(--v-line); overflow: hidden; }
.board-feed__label, .rk-ticker__label { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--v-text); font-size: max(13px, calc(var(--u) * 1.05)); font-weight: 800; }
.board-feed__list, .rk-ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: calc(var(--u, 10px) * 2.2); white-space: nowrap; }
.board-feed__track, .rk-ticker__track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.board-feed__list, .rk-ticker__list { width: max-content; }
.board-feed__item, .rk-ticker__item { flex: none; display: inline-flex; align-items: baseline; gap: 6px; color: var(--v-text-2); font-size: max(13px, calc(var(--u, 10px) * 1.1)); }
.board-feed__amount, .rk-ticker__amount { color: var(--v-text); font-weight: 800; }
.board-feed__title, .rk-ticker__title { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; color: var(--v-text); font-weight: 700; }
.board-feed__count, .board-feed__time, .rk-ticker__count, .rk-ticker__time { color: var(--v-muted); font-size: 0.86em; }
.board-feed__empty, .rk-ticker__empty { min-width: 0; color: var(--v-muted); font-size: max(13px, calc(var(--u, 10px) * 1.05)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-ranks { display: flex; flex-direction: column; min-height: 0; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.6); overflow: hidden; }
.board-ranks__head, .rk-board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.board-ranks__title { color: var(--v-text); font-size: max(16px, calc(var(--u) * 1.5)); font-weight: 800; }
.board-ranks__title span, .rk-board__title span { color: var(--v-text-2); font-size: 0.75em; font-weight: 700; }
.board-pager, .rk-pager { display: inline-flex; align-items: center; gap: 10px; color: var(--v-text-2); font-size: max(12px, calc(var(--u, 10px) * 0.95)); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-pager__dots, .rk-pager__dots { display: inline-flex; gap: 5px; }
.board-pager__dots i, .rk-pager__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--v-line); }
.board-pager__dots i.is-current, .rk-pager__dots i.is-current { background: var(--v-text); }
.board-list { --cols: 1; --rows: 5; list-style: none; flex: 1; min-height: 0; margin: calc(var(--u) * 0.6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); grid-auto-flow: column; column-gap: calc(var(--u) * 3); }
.board-empty { padding: 24px 0; color: var(--v-text-2); font-size: max(15px, calc(var(--u) * 1.4)); }
/* 값 열은 행마다 같은 폭(내용 폭을 따르면 행마다 막대 트랙 길이가 달라져 막대끼리 비교할 수 없다) */
.board-row { position: relative; display: grid; grid-template-columns: calc(var(--u) * 3.4) calc(var(--u) * 5.6) minmax(0, 1.2fr) minmax(0, 1fr) max(170px, calc(var(--u) * 14)); align-items: center; gap: calc(var(--u) * 1.1); min-height: 0; padding: 0 calc(var(--u) * 0.5); border-radius: 10px; box-shadow: inset 0 -1px 0 var(--v-line); }
.board.is-amounts-hidden .board-row { grid-template-columns: calc(var(--u) * 3.4) calc(var(--u) * 5.6) minmax(0, 1fr); }
.board.is-amounts-hidden .board-row__bar, .board.is-amounts-hidden .board-row__value { display: none; }
.board-row__rank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.05; }
.board-row__no { display: grid; place-items: center; min-width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); padding: 0 4px; border-radius: var(--r-pill); color: var(--v-text-2); font-size: max(15px, calc(var(--u) * 1.5)); font-weight: 800; font-variant-numeric: tabular-nums; }
.board-row.is-rank-1 .board-row__no { background: var(--v-gold); color: var(--c-title); }
.board-row.is-rank-2 .board-row__no { background: var(--v-silver); color: var(--c-title); }
.board-row.is-rank-3 .board-row__no { background: var(--v-bronze); color: var(--c-title); }
.board-row__move { min-height: 1em; font-size: max(10px, calc(var(--u) * 0.85)); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--v-text-2); }
.board-row__move.is-up { color: var(--v-up, #4cd69b); }
.board-row__move.is-down { color: var(--v-down, #ff8a94); }
.venue[data-theme="light"] .board-row__move.is-up { --v-up: var(--c-green-text); }
.venue[data-theme="light"] .board-row__move.is-down { --v-down: var(--c-red-text); }
.board-row__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--v-card-2); }
.board-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-row__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: max(16px, calc(var(--u) * 1.6)); }
.board-row__name { min-width: 0; }
.board-row__title { display: block; color: var(--v-text); font-size: max(15px, calc(var(--u) * 1.45)); font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row__meta { display: block; color: var(--v-text-2); font-size: max(11px, calc(var(--u) * 0.9)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row__track { height: max(8px, calc(var(--u) * 1)); max-height: 24px; border-radius: 4px; background: var(--v-track); overflow: hidden; }
.board-row__fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--v-bar); transform: translateX(-100%); transition: transform 0.9s var(--ease); }
.board-row__value { min-width: 0; text-align: right; white-space: nowrap; }
.board-row__amount { display: block; color: var(--v-text); font-size: max(15px, calc(var(--u) * 1.5)); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.board-row__sub { display: block; color: var(--v-text-2); font-size: max(11px, calc(var(--u) * 0.85)); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.board-row__done, .rk-card__done { display: inline-flex; align-items: center; gap: 4px; color: var(--v-text); font-weight: 800; }
.board-row__done-mark, .rk-card__done-mark { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--v-text); color: var(--v-bg); font-size: 0.85em; }
.board-list.is-compact .board-row__meta, .board-list.is-compact .board-row__sub, .board-list.is-compact .board-row__move:empty { display: none; }
.board-row.is-rising { z-index: 2; }
.board-row.is-bumped { animation: venue-bump 1.6s var(--ease); }
.board-row.is-crowned, .board-row.is-goal { animation: venue-glow 1.4s ease-in-out 3; }
@keyframes venue-bump { 0% { background: rgba(0, 196, 196, 0.32); } 100% { background: transparent; } }
@keyframes venue-glow { 50% { background: rgba(242, 193, 78, 0.24); } }
.board-row__plus { position: absolute; right: calc(var(--u) * 0.6); top: 0; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-title); font-size: max(12px, calc(var(--u) * 1.05)); font-weight: 800; white-space: nowrap; pointer-events: none; animation: venue-plus 2.6s var(--ease) forwards; }
@keyframes venue-plus { 0% { opacity: 0; transform: translateY(40%) scale(0.9); } 12% { opacity: 1; transform: translateY(-15%) scale(1); } 75% { opacity: 1; transform: translateY(-45%); } 100% { opacity: 0; transform: translateY(-90%); } }

/* 실시간 랭킹: 일반 모드(콘솔 안) — 공개 프로젝트 카드 모양, 콘솔 폭에 맞춰 줄바꿈 */
.rk { --u: 10px; position: relative; display: flex; flex-direction: column; gap: 14px; color: var(--v-text); }
.rk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.rk-brand { display: flex; align-items: center; gap: calc(var(--u) * 1.3); min-width: 0; }
.rk:not(.is-projector) .rk-brand { display: none; } /* 일반 모드는 콘솔 제목이 대신한다 */
.rk-clock { display: flex; align-items: center; gap: 14px; flex: none; }
.rk-clock__remain { display: flex; align-items: baseline; gap: 8px; color: var(--v-text-2); font-size: 14px; white-space: nowrap; }
.rk:not(.is-projector) .rk-clock__remain strong { font-size: 20px; }
.rk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-lg); }
.rk-field { display: inline-flex; align-items: center; gap: 8px; color: var(--v-text-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rk-field .select { width: auto; min-width: 116px; }
.rk-switch { gap: 8px; font-size: 14px; color: var(--v-text); white-space: nowrap; }
.rk-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; } /* 줄이 바뀌어도 오른쪽에 붙는다 */
.rk-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.rk-kpi { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 12px 18px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-lg); }
.rk-kpi--total { min-width: 220px; }
.rk-kpi__label { color: var(--v-text-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rk-kpi__value { color: var(--v-text); font-size: 24px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.rk-kpi--total .rk-kpi__value { font-size: 30px; letter-spacing: -0.02em; }
.rk-kpi__value small { margin-left: 3px; color: var(--v-text-2); font-size: 0.5em; }
.rk-kpi .rk-kpi__value--hidden { display: inline-flex; align-items: center; gap: 6px; color: var(--v-text-2); font-size: 20px; }
.rk.is-amounts-hidden [data-amount-only], .rk:not(.is-amounts-hidden) [data-amount-hidden] { display: none; }
.rk-ticker { flex: 1 1 320px; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 58px; padding: 0 16px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-lg); overflow: hidden; }
.rk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rk-board { min-width: 0; }
.rk-board__head { margin-bottom: 14px; }
.rk-board__title { color: var(--v-text); font-size: 18px; font-weight: 800; }
.rk-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 20px; }
.rk-empty { padding: 48px 0; text-align: center; color: var(--v-text-2); }
.rk-join { display: none; }
@media (min-width: 1500px) {
  .rk:not(.is-projector) .rk-main { grid-template-columns: minmax(0, 1fr) 232px; }
  .rk:not(.is-projector) .rk-join { display: flex; flex-direction: column; align-items: center; gap: 10px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); padding: 18px; text-align: center; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-lg); }
}
.rk-join__qr { width: 100%; max-width: 200px; aspect-ratio: 1; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--v-line); line-height: 0; }
.rk-join__text { min-width: 0; max-width: 100%; }
.rk-join__title { color: var(--v-text); font-size: 16px; font-weight: 800; }
.rk-join__lead { color: var(--v-text-2); font-size: 13px; }
.rk-join__code { margin-top: 6px; display: flex; flex-direction: column; line-height: 1.2; }
.rk-join__code strong { color: var(--v-text); font-size: min(22px, 280px / (var(--chars, 8) + 1)); font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; } /* --chars: 코드 글자 수(템플릿) */
.rk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: var(--v-text-2); font-size: 13px; }
.rk:not(.is-projector) .rk-paused { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--c-amber-tint); color: var(--c-amber-text); font-weight: 600; }
.rk-paused__title { font-weight: 800; }
/* 카드: 커버(순위 메달·변동) → 기준 값 → 제목 → 메이커 → 달성 막대 → 보조 값. 글자는 카드 너비(cqw)를 따른다 */
.rk-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 14px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); container-type: inline-size; transform-origin: 0 0; }
.rk-card__cover { position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; }
.rk-card .cover__emoji { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(36px, 20cqw, 110px); }
.rk-card__rank { position: absolute; left: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); background: rgba(5, 38, 95, 0.8); color: #fff; font-size: clamp(12px, 5.4cqw, 30px); font-weight: 800; line-height: 1.15; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.rk-card__no { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.rk-card__unit { font-size: 0.78em; }
.rk-card__crown { display: none; margin-right: 3px; }
.rk-card.is-leader .rk-card__crown { display: inline; }
.rk-card.is-rank-1 .rk-card__rank { background: var(--v-gold); color: var(--c-title); }
.rk-card.is-rank-2 .rk-card__rank { background: var(--v-silver); color: var(--c-title); }
.rk-card.is-rank-3 .rk-card__rank { background: var(--v-bronze); color: var(--c-title); }
.rk-card__move { position: absolute; right: 8px; top: 8px; z-index: 1; display: none; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(5, 38, 95, 0.82); font-size: clamp(12px, 4.8cqw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-card__move.is-up { display: inline-block; color: #4cd69b; }
.rk-card__move.is-down { display: inline-block; color: #ff8a94; }
.rk-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 4px 0; }
.rk-card__metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--v-text); line-height: 1.15; }
.rk-card__value { font-size: clamp(20px, 9.4cqw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.rk-card__metric-unit { color: var(--v-text-2); font-size: clamp(13px, 4.8cqw, 32px); font-weight: 700; }
.rk-card__done { margin-left: auto; padding: 1px 8px; border-radius: var(--r-pill); background: var(--v-track); font-size: clamp(11px, 3.8cqw, 22px); }
.rk-card__title { margin-top: 4px; color: var(--v-text); font-size: clamp(15px, 6.2cqw, 40px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-card__maker { color: var(--v-text-2); font-size: clamp(12px, 4.4cqw, 26px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-card__meter { height: clamp(4px, 1.7cqw, 12px); margin-top: 8px; border-radius: var(--r-pill); background: var(--v-track); overflow: hidden; }
.rk-card__fill { display: block; height: 100%; border-radius: inherit; background: var(--v-bar); transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease); }
.rk-card__sub { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 6px; color: var(--v-text-2); font-size: clamp(12px, 4.2cqw, 26px); font-weight: 600; }
.rk-card__lock { display: none; align-items: center; gap: 6px; margin-top: 8px; color: var(--v-text-2); font-size: clamp(12px, 4.4cqw, 26px); font-weight: 700; }
.rk.is-amounts-hidden .rk-card__metric, .rk.is-amounts-hidden .rk-card__meter, .rk.is-amounts-hidden .rk-card__sub { display: none; }
.rk.is-amounts-hidden .rk-card__lock { display: flex; }
.rk-card.is-leader { border-color: var(--v-gold); box-shadow: 0 0 0 2px var(--v-gold), 0 14px 36px rgba(242, 193, 78, 0.18); }
.rk-card.is-rising { z-index: 3; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3); }
.rk-card.is-falling { z-index: 1; }
.rk-card.is-ghost { position: absolute; margin: 0; z-index: 0; pointer-events: none; }
.rk-card.is-bumped { animation: rk-flash 1.6s var(--ease); }
.rk-card.is-crowned, .rk-card.is-goal { animation: rk-glow 1.4s ease-in-out 3; }
@keyframes rk-flash { 0% { box-shadow: 0 0 0 0 rgba(0, 196, 196, 0.9); } 30% { box-shadow: 0 0 0 6px rgba(0, 196, 196, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(0, 196, 196, 0); } }
@keyframes rk-glow { 50% { box-shadow: 0 0 0 4px var(--v-gold), 0 0 40px rgba(242, 193, 78, 0.55); } }
.rk-card__plus { position: absolute; left: 50%; top: 50%; z-index: 2; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-title); font-size: clamp(14px, 7cqw, 44px); font-weight: 800; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); animation: rk-plus 2.6s var(--ease) forwards; }
@keyframes rk-plus { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.8); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 70% { opacity: 1; transform: translate(-50%, -85%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -135%) scale(1); } }
/* 확인 창·전체 화면 안내(랭킹 영역 안에 두어 전체 화면에서도 보인다) */
.rk-dialog { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.55); }
.rk-dialog__box { width: min(520px, 100%); padding: 28px; border-radius: var(--r-xl); background: #fff; color: var(--c-text); box-shadow: var(--shadow-pop); }
.rk-dialog__title { color: var(--c-title); font-size: 20px; }
.rk-dialog__message { margin-top: 8px; color: var(--c-text-2); }
.rk-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.rk-prompt__box { display: grid; justify-items: center; gap: 12px; text-align: center; }
.rk-prompt__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--c-tint); color: var(--c-brand-700); }
html.rk-scroll-lock, html.rk-scroll-lock body { overflow: hidden; }

/* 실시간 랭킹: 프로젝터 모드(전체 화면·?screen=1) — 16:9를 스크롤 없이 채우고, 설정은 아래에 떠 있다 숨는다.
   배치: 머리글(행사·상태·남은 시간) / 왼쪽 프로젝트 카드, 오른쪽 열에 집계(총액·건수·투자자)와 참가 QR / 아래 줄에 투자 소식.
   (요약·본문 묶음은 display: contents로 풀어 같은 마크업을 일반 모드와 다르게 놓는다.)
   카드 칸(열×행·카드 폭·높이)은 ranking.js가 그리드 영역에 맞춰 정하고(--cols·--rows·--card-w·--card-h), 칸이 너무 넓거나 높으면
   카드 비율을 지키고 가운데 둔다. 커버는 16:9를 기본으로 남는 높이에 맞춰 줄고, 글자는 카드 너비·높이(cqw·cqh) 중 작은 쪽을 따른다. */
.rk.is-projector { --u: min(1vw, 1.78vh); --side: clamp(220px, calc(var(--u) * 20), 400px); --gap: calc(var(--u) * 1);
  display: grid; gap: var(--gap); padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2) calc(var(--u) * 1.2); background: var(--v-bg); overflow: hidden;
  grid-template-columns: minmax(0, 1fr) calc((var(--side) - var(--gap)) / 2) calc((var(--side) - var(--gap)) / 2);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  grid-template-areas: "head head head" "board total total" "board pledges people" "board join join" "ticker foot foot"; }
.rk.is-screen, .rk.is-fullscreen { width: 100%; height: 100vh; }
.rk.is-pseudo-fs { position: fixed; inset: 0; z-index: 90; height: 100vh; }
.rk.is-projector .rk-summary, .rk.is-projector .rk-main { display: contents; }
.rk.is-projector .rk-head { grid-area: head; align-items: flex-end; }
.rk.is-projector .rk-brand__title { font-size: max(22px, calc(var(--u) * 2.5)); }
.rk.is-projector .rk-clock { flex-direction: column; align-items: flex-end; gap: 6px; }
.rk.is-projector .rk-clock__remain { font-size: max(13px, calc(var(--u) * 1.05)); }
.rk.is-projector .rk-kpi { container-type: inline-size; justify-content: flex-start; padding: calc(var(--u) * 0.8) calc(var(--u) * 1.1); border-radius: var(--r-xl); }
.rk.is-projector .rk-kpi--total { grid-area: total; min-width: 0; padding-inline: calc(var(--u) * 1.4); }
.rk.is-projector .rk-kpi--pledges { grid-area: pledges; }
.rk.is-projector .rk-kpi--people { grid-area: people; }
.rk.is-projector .rk-kpi__label { font-size: max(12px, calc(var(--u) * 0.95)); }
.rk.is-projector .rk-kpi__value { font-size: clamp(16px, calc(min(var(--u) * 2.2, 25cqw) * var(--fit, 1)), 64px); }
.rk.is-projector .rk-kpi--total .rk-kpi__value { font-size: clamp(20px, calc(min(var(--u) * 2.8, 15.5cqw) * var(--fit, 1)), 84px); }
.rk.is-projector .rk-kpi .rk-kpi__value--hidden { font-size: max(18px, calc(var(--u) * 1.8)); }
.rk.is-projector .rk-ticker { grid-area: ticker; flex: none; min-height: 0; height: max(38px, calc(var(--u) * 2.9)); align-self: center; padding: 0 calc(var(--u) * 1.4); border-radius: var(--r-pill); }
.rk.is-projector .rk-ticker__label, .rk.is-projector .rk-ticker__item, .rk.is-projector .rk-ticker__empty { font-size: max(13px, calc(var(--u) * 1.15)); }
.rk.is-projector .rk-board { grid-area: board; min-height: 0; display: flex; flex-direction: column; }
.rk.is-projector .rk-board__head { margin-bottom: calc(var(--u) * 0.7); }
.rk.is-projector .rk-board__title { font-size: max(15px, calc(var(--u) * 1.3)); }
.rk.is-projector .rk-grid { flex: 1; min-height: 0; gap: calc(var(--u) * 1.2); justify-content: center; align-content: center;
  grid-template-columns: repeat(var(--cols, 4), var(--card-w, minmax(0, 1fr))); grid-template-rows: repeat(var(--rows, 2), var(--card-h, minmax(0, 1fr))); }
.rk.is-projector .rk-card { container-type: size; min-height: 0; padding: calc(var(--u) * 0.7); overflow: hidden; }
.rk.is-projector .rk-card__cover { flex: 0 1 auto; min-height: 34%; }
.rk.is-projector .rk-card__body { flex: 1 0 auto; justify-content: center; padding: calc(var(--u) * 0.5) 2px 0; }
.rk.is-projector .rk-card .cover__emoji { font-size: clamp(28px, min(20cqw, 24cqh), 150px); }
.rk.is-projector .rk-card__rank { font-size: clamp(12px, min(5.4cqw, 5.4cqh), 36px); }
.rk.is-projector .rk-card__move { font-size: clamp(12px, min(4.8cqw, 4.8cqh), 32px); }
.rk.is-projector .rk-card__value { font-size: clamp(18px, min(9.4cqw, 9cqh), 76px); }
.rk.is-projector .rk-card__metric-unit { font-size: clamp(12px, min(4.8cqw, 4.6cqh), 38px); }
.rk.is-projector .rk-card__done { font-size: clamp(11px, min(3.8cqw, 3.6cqh), 28px); }
.rk.is-projector .rk-card__title { font-size: clamp(14px, min(6.2cqw, 6cqh), 48px); -webkit-line-clamp: 1; }
.rk.is-projector .rk-card__maker { font-size: clamp(12px, min(4.4cqw, 4.2cqh), 32px); }
.rk.is-projector .rk-card__meter { height: clamp(4px, min(1.7cqw, 1.6cqh), 14px); margin-top: min(2.4cqw, 2.2cqh); }
.rk.is-projector .rk-card__sub { margin-top: min(1.8cqw, 1.6cqh); font-size: clamp(12px, min(4.2cqw, 4cqh), 32px); }
.rk.is-projector .rk-card__lock { font-size: clamp(12px, min(4.4cqw, 4.2cqh), 32px); }
.rk.is-projector .rk-card__plus { font-size: clamp(14px, min(7cqw, 7cqh), 52px); }
.rk.is-projector .rk-join { grid-area: join; container-type: size; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 0.9); padding: calc(var(--u) * 1.2); text-align: center; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); overflow: hidden; }
.rk.is-projector .rk-join__qr { flex: none; width: min(100%, 52cqh, calc(var(--u) * 16)); max-width: none; padding: calc(var(--u) * 0.5); border: 0; }
.rk.is-projector .rk-join__title { font-size: max(14px, calc(var(--u) * 1.4)); }
.rk.is-projector .rk-join__lead { font-size: max(12px, calc(var(--u) * 1)); }
.rk.is-projector .rk-join__code { margin-top: calc(var(--u) * 0.3); }
.rk.is-projector .rk-join__code strong { font-size: clamp(13px, min(var(--u) * 2.2, 140cqw / (var(--chars, 8) + 1)), 56px); }
.rk.is-projector .rk-foot { grid-area: foot; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-end; gap: 2px; text-align: right; font-size: max(11px, calc(var(--u) * 0.8)); line-height: 1.35; }
.rk.is-projector .rk-toolbar { position: fixed; left: 50%; bottom: calc(var(--u) * 1.6); z-index: 75; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); justify-content: center;
  background: rgba(12, 33, 73, 0.97); border-color: rgba(255, 255, 255, 0.18); color: #f2f4f6; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transition: opacity 0.3s var(--ease); }
.rk.is-projector .rk-field { color: #d1d6db; }
.rk.is-projector .rk-switch, .rk.is-projector .rk-toolbar__back { color: #f2f4f6; }
.rk.is-projector .rk-toolbar__actions { margin-left: 0; }
.rk.is-projector.is-idle { cursor: none; }
.rk.is-projector.is-idle .rk-toolbar { opacity: 0; pointer-events: none; }
.rk.is-projector .rk-paused { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 8px; text-align: center; background: rgba(6, 23, 51, 0.86); color: #f2f4f6; font-size: max(16px, calc(var(--u) * 1.4)); }
.rk.is-projector .rk-paused__title { font-size: max(30px, calc(var(--u) * 3.6)); }

/* 발표 모드: 준비 화면(순서·시간) → 16:9 슬라이드(커버 | 제목·문제·해결·리워드·투자 현황·QR) + 타이머 */
.pitch-setup { height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 28px clamp(20px, 3vw, 48px) 40px; }
.pitch-setup__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; }
.pitch-setup__tools { display: flex; align-items: center; gap: 12px; color: var(--v-text-2); font-size: 13px; }
.pitch-setup__tools .btn--text { color: var(--v-text); }
.pitch-setup__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; width: 100%; max-width: 1280px; margin: 0 auto; }
.pitch-setup__title { color: var(--v-text); font-size: 20px; font-weight: 800; }
.pitch-setup__hint { margin-top: 4px; color: var(--v-text-2); font-size: 14px; }
.pitch-order { list-style: none; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; }
.pitch-item { display: grid; grid-template-columns: 18px 20px 26px 96px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-lg); cursor: grab; }
.pitch-item.is-dragging { opacity: 0.5; }
.pitch-item.is-skipped { opacity: 0.55; }
.pitch-item__grip { color: var(--v-muted); }
.pitch-item__check { width: 20px; height: 20px; margin: 0; accent-color: var(--c-brand-600); }
.pitch-item__no { color: var(--v-text); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.pitch-item__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.pitch-item__thumb .cover__emoji { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; }
.pitch-item__text { display: flex; flex-direction: column; min-width: 0; }
.pitch-item__text strong { color: var(--v-text); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-item__text small { color: var(--v-text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-item__moves { display: inline-flex; gap: 2px; }
.pitch-item__moves .icon-btn { width: 34px; height: 34px; color: var(--v-text); }
.pitch-item__moves .icon-btn:hover { background: rgba(139, 149, 161, 0.2); color: var(--v-text); }
.pitch-setup__side { position: sticky; top: 0; display: grid; gap: 14px; }
.pitch-panel { display: grid; gap: 12px; padding: 20px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); }
.pitch-panel__title { color: var(--v-text); font-size: 15px; font-weight: 800; }
.pitch-panel__note { color: var(--v-text-2); font-size: 12px; line-height: 1.5; }
.pitch-panel__count { color: var(--v-text-2); font-size: 13px; text-align: center; }
.pitch-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pitch-preset { position: relative; }
.pitch-preset input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pitch-preset span { display: grid; place-items: center; height: 44px; border-radius: var(--r-md); border: 1px solid var(--v-line); color: var(--v-text); font-weight: 800; cursor: pointer; }
.pitch-preset input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-title); }
.pitch-preset input:focus-visible + span { outline: 3px solid var(--c-brand-700); outline-offset: 2px; }
.pitch-switch { gap: 10px; color: var(--v-text); font-size: 14px; font-weight: 700; }
.pitch-keys { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; padding: 16px 18px; color: var(--v-text-2); font-size: 13px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); }
.pitch-keys dt { color: var(--v-text); font-weight: 800; white-space: nowrap; }
.pitch-keys dd { margin: 0; }
.pitch-empty { margin: auto; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--v-text-2); }
.pitch-empty__title { color: var(--v-text); font-size: 22px; font-weight: 800; }
.pitch-stage:focus { outline: none; } /* 시작할 때 프로그램으로 옮긴 포커스(조작 요소가 아님) */
.pitch-stage { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: calc(var(--u) * 1.2); padding: calc(var(--u) * 1.6) calc(var(--u) * 2.4) calc(var(--u) * 2.2); }
.pitch-hud { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.pitch-hud__progress { display: flex; align-items: center; gap: calc(var(--u) * 1.2); min-width: 0; color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.15)); font-weight: 700; }
.pitch-hud__progress strong { flex: none; padding: 2px 12px; border-radius: var(--r-pill); background: rgba(139, 149, 161, 0.18); color: var(--v-text); font-size: max(16px, calc(var(--u) * 1.6)); font-weight: 800; font-variant-numeric: tabular-nums; }
.pitch-hud__event { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-timer { flex: none; display: flex; align-items: center; gap: calc(var(--u) * 1); padding: calc(var(--u) * 0.3) calc(var(--u) * 1.4); border-radius: var(--r-pill); background: var(--v-card); border: 1px solid var(--v-line); }
.pitch-timer__label { color: var(--v-text-2); font-size: max(12px, calc(var(--u) * 1.05)); font-weight: 800; white-space: nowrap; }
.pitch-timer__value { color: var(--v-text); font-size: max(26px, calc(var(--u) * 3.4)); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pitch-timer.is-warn { background: #ffa41b; border-color: #ffa41b; }
.pitch-timer.is-warn .pitch-timer__label, .pitch-timer.is-warn .pitch-timer__value { color: var(--c-title); }
.pitch-timer.is-danger, .pitch-timer.is-over { background: #d22030; border-color: #d22030; }
.pitch-timer.is-danger .pitch-timer__label, .pitch-timer.is-danger .pitch-timer__value, .pitch-timer.is-over .pitch-timer__label, .pitch-timer.is-over .pitch-timer__value { color: #fff; }
.pitch-timer.is-over.is-running .pitch-timer__value { animation: pitch-pulse 1.2s ease-in-out infinite; }
@keyframes pitch-pulse { 50% { opacity: 0.6; } }
.pitch-slides { position: relative; min-height: 0; }
.pitch-slide { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: calc(var(--u) * 2.4); }
/* 왼쪽 열: 대표 이미지는 권장 비율(1200×630)을 지키고(사진이 잘리지 않게), 아래에 투자 현황·QR. 화면이 낮으면 이미지가 먼저 줄어든다 */
.pitch-slide__side { display: flex; flex-direction: column; gap: calc(var(--u) * 1.2); min-width: 0; min-height: 0; }
.pitch-slide__media { position: relative; flex: 0 1 auto; aspect-ratio: 1200 / 630; min-height: 34%; border-radius: calc(var(--u) * 1.6); overflow: hidden; }
.pitch-slide__media .cover__emoji { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(var(--u) * 10); }
.pitch-slide__foot { flex: 1 1 0; min-height: 0; display: flex; align-items: stretch; gap: calc(var(--u) * 1.2); }
.pitch-slide__body { display: flex; flex-direction: column; gap: calc(var(--u) * 1.1); min-width: 0; min-height: 0; overflow: hidden; }
.pitch-slide__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px calc(var(--u) * 1); color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.3)); font-weight: 700; }
.pitch-slide__cat { padding: 2px 12px; border-radius: var(--r-pill); background: var(--v-track); color: var(--v-text); font-weight: 800; }
.pitch-slide__badge { padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--v-line); }
.pitch-slide__title { color: var(--v-text); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.pitch-slide--title-lg .pitch-slide__title { font-size: max(32px, calc(var(--u) * 5)); }
.pitch-slide--title-md .pitch-slide__title { font-size: max(28px, calc(var(--u) * 4)); }
.pitch-slide--title-sm .pitch-slide__title { font-size: max(24px, calc(var(--u) * 3.2)); }
.pitch-slide__summary { color: var(--v-text-2); font-size: max(16px, calc(var(--u) * 1.85)); font-weight: 600; line-height: 1.4; }
.pitch-slide__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 1.2); min-height: 0; }
.pitch-point { min-height: 0; padding: calc(var(--u) * 1.3) calc(var(--u) * 1.6); background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); overflow: hidden; }
.pitch-point__title { display: flex; align-items: center; gap: 8px; color: var(--v-text); font-size: max(14px, calc(var(--u) * 1.35)); font-weight: 800; }
.pitch-point__title::before { content: ""; flex: none; width: 4px; height: 1em; border-radius: 2px; background: var(--v-bar); }
.pitch-point__text { margin-top: calc(var(--u) * 0.6); color: var(--v-text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pitch-slide--text-lg .pitch-point__text { font-size: max(15px, calc(var(--u) * 1.65)); }
.pitch-slide--text-md .pitch-point__text { font-size: max(14px, calc(var(--u) * 1.4)); }
.pitch-slide--text-sm .pitch-point__text { font-size: max(13px, calc(var(--u) * 1.2)); -webkit-line-clamp: 9; }
.pitch-rewards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 0.8); margin: auto 0 0; padding: 0; }
.pitch-rewards__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: calc(var(--u) * 0.8) calc(var(--u) * 1.1); border-radius: var(--r-lg); background: var(--v-card-2); border: 1px solid var(--v-line); }
.pitch-rewards__title { color: var(--v-text-2); font-size: max(12px, calc(var(--u) * 1.05)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-rewards__price { color: var(--v-text); font-size: max(15px, calc(var(--u) * 1.5)); font-weight: 800; }
/* 투자 현황: 목표 금액 → 모인 금액(크게)·달성 막대 → 후원자·달성률. 숫자는 텍스트 색, 막대는 단일 계열(--v-bar) */
.pitch-fund { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 1.1); padding: calc(var(--u) * 1.3) calc(var(--u) * 1.8); background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); }
.pitch-fund__live { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 0.9) calc(var(--u) * 1.6); min-width: 0; border-radius: var(--r-lg); }
.pitch-fund__target, .pitch-fund__stat { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pitch-fund__stat--total, .pitch-fund__meter { grid-column: 1 / -1; }
.pitch-fund__target > span, .pitch-fund__stat > span { color: var(--v-text-2); font-size: max(12px, calc(var(--u) * 1.05)); font-weight: 700; } /* 라벨만(값 안의 숫자 span 제외) */
.pitch-fund__target strong, .pitch-fund__stat strong { color: var(--v-text); font-size: max(18px, calc(var(--u) * 2.1)); font-weight: 800; white-space: nowrap; }
.pitch-fund__stat--total strong { font-size: max(24px, calc(var(--u) * 3.1)); letter-spacing: -0.02em; }
.pitch-fund__stat small { margin-left: 2px; color: var(--v-text-2); font-size: 0.55em; }
.pitch-fund__meter { height: max(6px, calc(var(--u) * 0.7)); border-radius: var(--r-pill); background: var(--v-track); overflow: hidden; }
.pitch-fund__fill { display: block; height: 100%; border-radius: inherit; background: var(--v-bar); transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease); }
.pitch-fund__locked { display: inline-flex; align-items: center; gap: 8px; color: var(--v-text-2); font-size: max(13px, calc(var(--u) * 1.2)); font-weight: 700; }
.pitch-fund__live.is-on { animation: venue-bump 1.6s var(--ease); }
.pitch-fund__plus { position: absolute; right: 0; top: 0; padding: 4px 14px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-title); font-size: max(16px, calc(var(--u) * 1.9)); font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; }
.pitch-fund__plus.is-on { animation: pitch-plus 2.4s var(--ease) forwards; }
@keyframes pitch-plus { 0% { opacity: 0; transform: translateY(10%) scale(0.9); } 15% { opacity: 1; transform: translateY(-60%) scale(1.05); } 75% { opacity: 1; transform: translateY(-90%); } 100% { opacity: 0; transform: translateY(-140%); } }
.pitch-qr { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 0.8); padding: calc(var(--u) * 1.2); background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--r-xl); text-align: center; }
.pitch-qr__code { width: clamp(96px, calc(var(--u) * 12.5), 260px); aspect-ratio: 1; padding: 4px; border-radius: 10px; background: #fff; line-height: 0; }
.pitch-qr__text { color: var(--v-text-2); font-size: max(12px, calc(var(--u) * 1.1)); line-height: 1.4; }
.pitch-qr__text strong { color: var(--v-text); font-size: 1.2em; }
.pitch-controls { position: fixed; left: 50%; bottom: calc(var(--u) * 1.2); z-index: 75; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%);
  padding: 10px 14px; border-radius: var(--r-lg); background: rgba(12, 33, 73, 0.97); border: 1px solid rgba(255, 255, 255, 0.18); color: #f2f4f6; font-size: 13px; font-weight: 700; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transition: opacity 0.3s var(--ease); }
.pitch-controls__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.2); }
.pitch-chips { display: inline-flex; gap: 4px; }
.pitch-chip { height: 36px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, 0.24); background: transparent; color: #f2f4f6; font-weight: 800; }
.pitch-chip[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-title); }
.pitch-controls .switch, .pitch-controls .btn--text { color: inherit; font-weight: 700; }
[data-timer-toggle] .pitch-icon-pause, [data-timer-toggle].is-running .pitch-icon-play { display: none; }
[data-timer-toggle].is-running .pitch-icon-pause { display: inline-block; }
.pitch.is-idle { cursor: none; }
.pitch.is-idle .pitch-controls { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .board-row__plus, .rk-card__plus, .pitch-fund__plus.is-on { animation: none; opacity: 1; }
  .rk-card__plus { transform: translate(-50%, -50%); } /* 움직임 없이 커버 가운데에 표시(위치는 애니메이션이 잡던 값) */
}
@media (max-width: 960px) {
  .board-kpis, .board-kpis.has-join { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-hero { grid-column: 1 / -1; }
  .board-row { grid-template-columns: calc(var(--u) * 3.4) minmax(0, 1fr) auto; }
  .board-row__thumb, .board-row__bar { display: none; }
  .pitch-setup__body { grid-template-columns: minmax(0, 1fr); }
  .pitch-setup__side { position: static; }
  .pitch-item { grid-template-columns: 18px 20px 24px minmax(0, 1fr) auto; }
  .pitch-item__thumb, .pitch-item [data-open] { display: none; }
  .pitch-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .pitch-slide__media { min-height: 0; }
}

/* 27. 공유·오픈그래프·GIF ------------------------------------------------------- */
/* 링크 복사 버튼: 상세의 관심 버튼과 같은 58px 상자. 복사되면 잠깐 강조 */
.share-box { gap: 2px; font-size: 11px; }
.share-box.is-copied { color: var(--c-brand-700); border-color: var(--c-brand-500); background: var(--c-tint); }
.event-banner [data-share-url].is-copied { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.share-fallback { margin-top: 12px; padding: 12px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-fill); }
.share-fallback .input { font-size: 14px; }
/* 프로젝트 목록 무작위 순서 안내 */
.order-note { display: flex; align-items: center; gap: 6px; margin: -8px 0 16px; color: var(--c-muted); }
/* 움직이는 GIF 대표 이미지: picture로 감싸도 기존 커버와 같은 자리에 꽉 차게 */
.cover__picture { position: absolute; inset: 0; z-index: -2; display: block; }
.cover__picture img.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__main picture { display: block; width: 100%; height: 100%; }
/* 스토리 본문의 움직이는 GIF(그릴 때만 picture로 감싼다)·스튜디오 미리보기: 감싸기 전과 같은 자리·크기 */
.prose picture.story-gif { display: block; }
.preview-mini picture, .upload__preview picture { display: block; }
.studio-card__picture { display: block; width: 100%; height: 100%; }

/* 26. 카카오 로그인 (카카오 디자인 가이드: #FEE500 배경 · 검정 85% 글자 · 말풍선 심벌, 운영자 로그인은 별도 화면) --------- */
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 12px; background: #FEE500; color: rgba(0, 0, 0, 0.85); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s ease; }
.kakao-btn:hover { filter: brightness(0.96); color: rgba(0, 0, 0, 0.85); text-decoration: none; }
.kakao-btn:focus-visible { outline: 3px solid var(--c-title, #191f28); outline-offset: 2px; }
.kakao-btn__symbol { flex: none; }
.kakao-btn--inline { display: inline-flex; width: auto; min-height: 44px; font-size: 15px; }
.kakao-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #FEE500; color: rgba(0, 0, 0, 0.85); font-size: 13px; font-weight: 700; }
.kakao-chip .kakao-btn__symbol { width: 16px; height: 16px; }
.kakao-linked { display: flex; align-items: center; gap: 14px; }
.kakao-linked__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #FEE500; flex: none; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--c-muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--c-title); }
/* 로그인·회원가입: 카카오 버튼 하나만 */
.auth__box--kakao { text-align: center; }
.auth__brand { display: inline-block; margin: 0; vertical-align: top; } /* 상자 정렬(가운데·왼쪽)을 따른다 */
.auth__brand img { display: block; width: auto; height: 32px; }
/* 가입 완료: 약관 동의(전체 동의 + 항목) — fieldset 기본 여백·최소 폭 제거 */
fieldset.consent-box { margin-left: 0; margin-right: 0; min-width: 0; }
.consent-all { font-size: 16px; }
.consent-all__help { margin: 2px 0 14px 30px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
/* 관리자 로그인: 운영 콘솔과 같은 관리자 헤더 + 어두운 강조(공개 로그인과 구분) */
.admin-auth-page { background: var(--c-fill); }
.auth--admin { padding-top: 48px; }
.auth__box--admin { border-top: 4px solid var(--c-title); }
.auth__admin-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--c-title); color: #fff; font-size: 13px; font-weight: 700; }
/* 가입 이메일 인증 코드: 긴 주소 줄바꿈, 다시 보내기 안내 */
.code-email { overflow-wrap: anywhere; color: var(--c-title); }
.auth--kakao .input--code { max-width: none; }
.code-resend__hint { margin: 6px 0 0; text-align: center; }
@media (max-width: 767px) {
  .kakao-btn { min-height: 52px; }
  .kakao-linked { align-items: flex-start; }
}

/* 28. 오픈 행사 (참가 코드 없는 자유 참가 · 펀딩 확인 화면에서 참가+펀딩 · 담당자 메이커 지정) -------------------- */
.open-join { padding: 16px 18px; border: 1px solid var(--c-tint-2); border-radius: var(--r-md); background: var(--c-tint); }
.open-join__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; color: var(--c-title); }
.open-join__rules { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--c-text); }
.maker-assign--primary { border-color: var(--c-brand-500); box-shadow: inset 0 4px 0 var(--c-tint-2); }
.maker-assign__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.maker-assign__form .btn { min-height: 44px; }
@media (max-width: 640px) { .maker-assign__form { grid-template-columns: 1fr; } }
.choice-hint { margin-top: 2px; }

/* 스튜디오 리워드 행: 화면 폭이 아니라 목록 칸 폭으로 배치한다. 스튜디오는 왼쪽 단계 목록과 오른쪽 안내 사이라 1280px 화면에서도
   목록 칸이 550px 정도여서, 화면 폭 기준으로는 제목 칸이 한 글자 폭으로 줄어들었다(재고 칸을 빼고 제목에 자리를 준다). */
.reward-list { container-type: inline-size; }
@container (max-width: 720px) {
  .reward-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .reward-row.reward-row--sortable { grid-template-columns: 30px 84px minmax(0, 1fr) auto; }
  .reward-row__stockcol { display: none; }
}
@container (max-width: 480px) {
  .reward-row { grid-template-columns: 64px minmax(0, 1fr); }
  .reward-row.reward-row--sortable { grid-template-columns: 30px 64px minmax(0, 1fr); }
  .reward-row__thumb, .reward-row--sortable .reward-row__thumb { width: 64px; height: 48px; }
  .reward-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* 이용 가이드(/guide/): 역할별 단계 + 실제 화면 이미지(apps.events.guide) */
.stat-card__icon--blue { background: var(--c-blue-tint); color: var(--c-blue-text); }
.guide-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-menu__item { display: flex; flex-direction: column; gap: 14px; padding: 22px; color: inherit; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.guide-menu__item:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: var(--c-brand-500); }
.guide-menu__item:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 3px; }
.guide-menu__text { display: flex; flex-direction: column; gap: 6px; }
.guide-menu__text strong { font-size: 18px; color: var(--c-title); }
.guide-menu__text span { font-size: 14px; line-height: 1.6; color: var(--c-text-2); }
.guide-menu__go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--c-brand-700); font-weight: 700; font-size: 14px; }
.guide-intro { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; line-height: 1.7; }
.guide-intro .icon { flex: none; margin-top: 3px; }
.guide-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.guide-tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; border: 2px solid var(--c-border); border-radius: var(--r-lg); background: #fff; color: var(--c-text); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.guide-tab:hover { border-color: var(--c-border-strong); }
.guide-tab[aria-selected="true"] { border-color: var(--c-brand-500); background: var(--c-tint); }
.guide-tab:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 2px; }
.guide-tab__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); }
.guide-tab[aria-selected="true"] .guide-tab__icon { background: var(--c-brand-500); color: #fff; }
.guide-tab__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-tab__text strong { font-size: 17px; color: var(--c-title); }
.guide-tab__text span { font-size: 14px; color: var(--c-muted); }
.guide-legend { margin-top: 28px; line-height: 1.8; }
.guide-legend .icon { vertical-align: -2px; margin-right: 4px; }
.guide-legend__dot { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; border-radius: 50%; background: #f43f5e; color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.guide-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-section__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.guide-section__title { font-size: 26px; font-weight: 800; color: var(--c-title); }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-group { margin-top: 36px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--c-bg-soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-group__title { font-size: 19px; font-weight: 800; color: var(--c-title); }
.guide-group + .guide-steps > .guide-step:first-child { padding-top: 28px; }
.guide-step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--c-border); scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-step--text { grid-template-columns: minmax(0, 1fr); }
.guide-step--text .guide-step__text { max-width: 760px; }
.guide-step__title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--c-title); }
.guide-step__num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-navy-900); color: #fff; font-size: 15px; }
.guide-step__text p { margin-top: 12px; color: var(--c-text); line-height: 1.75; }
.guide-step__text strong { color: var(--c-title); }
.guide-step__tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px !important; font-size: 14px; }
.guide-step__tip .icon { flex: none; margin-top: 3px; }
.guide-step__shots { display: flex; flex-direction: column; gap: 20px; }
.guide-shot { margin: 0; }
.guide-shot a { display: block; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s; }
.guide-shot a:hover { box-shadow: var(--shadow-card); }
.guide-shot a:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: 3px; }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); text-align: center; }
.guide-shot--mobile { max-width: 300px; margin: 0 auto; }
.guide-shot--mobile a { border-radius: 24px; }
.guide-top { margin-top: 16px; text-align: right; font-size: 14px; }
.guide-top a { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); }
@media (max-width: 1023px) {
  .guide-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-step { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
}
@media (max-width: 767px) {
  .guide-section__title { font-size: 22px; }
  .guide-menu { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .guide-menu__item { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
  .guide-menu__text span { display: none; }
  .guide-menu__go { margin: 0 0 0 auto; font-size: 0; }
  .guide-menu__go .icon { width: 18px; height: 18px; }
  .guide-tabs { grid-template-columns: minmax(0, 1fr); }
  .guide-step__title { font-size: 18px; }
}

/* 사이트 팝업(모달, templates/partials/site_popups.html · static/js/popup.js): 여러 개면 한 창에서 슬라이드 */
.site-popup { z-index: 90; }
.site-popup__dialog { width: min(420px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 40px); outline: none; }
.site-popup__viewport { overflow: hidden; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.site-popup__track { display: flex; align-items: flex-start; transition: transform 0.35s var(--ease); touch-action: pan-y; }
.site-popup__slide { flex: 0 0 100%; min-width: 0; }
.site-popup__inner { display: block; color: inherit; text-decoration: none; }
.site-popup__inner--link { cursor: pointer; }
.site-popup__inner--link:hover img { filter: brightness(0.97); }
.site-popup__inner--link:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: -3px; }
.site-popup__media { position: relative; display: block; background: var(--c-fill); }
.site-popup__text { color: var(--popup-text, #191f28); padding: 18px 22px 20px; word-break: keep-all; overflow-wrap: anywhere; }
.site-popup__text--below { background: var(--popup-bg, #fff); }
/* 이미지 위 자유 배치: --popup-x·y는 텍스트 상자의 기준점(0=왼쪽·위 끝에 붙음, 50=가운데, 100=오른쪽·아래 끝에 붙음) → 상자가 이미지 밖으로 나가지 않는다 */
.site-popup__text--overlay { position: absolute; left: calc(var(--popup-x, 50) * 1%); top: calc(var(--popup-y, 85) * 1%); width: calc(var(--popup-w, 86) * 1%);
  transform: translate(calc(var(--popup-x, 50) * -1%), calc(var(--popup-y, 85) * -1%)); padding: 14px 18px; border-radius: 14px;
  background: var(--popup-scrim); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.site-popup__text--align-left { text-align: left; }
.site-popup__text--align-center { text-align: center; }
.site-popup__text--align-right { text-align: right; }
.site-popup__title { color: inherit; font-weight: 800; line-height: 1.3; font-size: 21px; }
.site-popup__body-text { margin-top: 6px; line-height: 1.65; font-size: 15px; }
.site-popup__text--size-s .site-popup__title { font-size: 17px; }
.site-popup__text--size-s .site-popup__body-text { font-size: 14px; }
.site-popup__text--size-l .site-popup__title { font-size: 27px; }
.site-popup__text--size-l .site-popup__body-text { font-size: 17px; }
.site-popup__media img { display: block; width: 100%; height: auto; max-height: min(70vh, 640px); object-fit: contain; -webkit-user-drag: none; user-select: none; }
.site-popup__pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px 4px; border-top: 1px solid var(--c-border); }
.site-popup__arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-text); cursor: pointer; }
.site-popup__arrow:hover { background: var(--c-bg-soft); }
.site-popup__dots { display: inline-flex; gap: 6px; }
.site-popup__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--c-border-strong); cursor: pointer; }
.site-popup__dot[aria-current="true"] { width: 20px; border-radius: 4px; background: var(--c-brand-500); }
.site-popup__count { min-width: 36px; text-align: center; font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.site-popup__foot { display: flex; border-top: 1px solid var(--c-border); }
.site-popup__foot button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 48px; border: 0; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.site-popup__today { color: var(--c-muted); border-right: 1px solid var(--c-border) !important; }
.site-popup__close { color: var(--c-title); }
.site-popup__foot button:hover { background: var(--c-bg-soft); }
.site-popup__foot button:focus-visible, .site-popup__arrow:focus-visible, .site-popup__dot:focus-visible { outline: 3px solid var(--c-brand-700); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .site-popup__track { transition: none; } }
@media (max-width: 767px) {
  .site-popup { padding: 16px; }
  .site-popup__dialog { width: min(360px, 100%); }
}
/* 슈퍼관리자 팝업 관리 */
.popup-thumb { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--c-fill); display: block; }
.popup-form__kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.popup-form__kind label { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; }
.popup-form__kind label:has(input:checked) { border-color: var(--c-brand-500); background: var(--c-tint); }
.popup-form__kind small { display: block; color: var(--c-muted); font-size: 13px; margin-top: 2px; }
[data-popup-text-only][hidden] { display: none !important; }
.popup-form { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.popup-form__preview { position: sticky; top: calc(var(--header-h) + 20px); }
.popup-form__preview .site-popup__dialog { width: 100%; box-shadow: var(--shadow-card); border: 1px solid var(--c-border); border-radius: var(--r-xl); animation: none; }
.popup-form__preview .site-popup__text--overlay { cursor: grab; touch-action: none; outline: 2px dashed rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.popup-form__preview .site-popup__text--overlay:focus-visible { outline: 3px solid var(--c-brand-500); }
.popup-form__preview .site-popup__text--overlay.is-dragging { cursor: grabbing; }
.popup-form__preview-empty { display: grid; place-items: center; aspect-ratio: 4 / 5; color: var(--c-muted); font-size: 14px; background: var(--c-fill); }
.color-input { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.range-input { width: 100%; accent-color: var(--c-brand-500); }
.popup-form .radio-row { gap: 14px; }
@media (max-width: 1199px) { .popup-form { grid-template-columns: minmax(0, 1fr); } .popup-form__preview { position: static; max-width: 380px; } }
[data-popup-form] fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
[data-popup-form] legend { padding: 0; }
.site-popup__viewport { transition: height 0.3s var(--ease); }
@media (max-width: 767px) { .popup-form__kind { grid-template-columns: minmax(0, 1fr); } }

/* 이용약관·개인정보 처리방침(templates/events/policy.html · policies/*) */
.policy__switch { display: inline-flex; }
.policy__body ol, .policy__body ul { padding-left: 22px; }
.policy__body li + li { margin-top: 6px; }
.policy__body li > ul { margin-top: 6px; }
.policy__body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.policy-table { margin: 12px 0; font-size: 14px; }
.policy-table th[scope="row"] { white-space: nowrap; font-weight: 700; color: var(--c-title); }
.policy-table td, .policy-table th { vertical-align: top; }
.provision-notice { display: block; line-height: 1.6; }
.provision-notice .icon { vertical-align: -2px; }
@media (max-width: 767px) { .policy-table th[scope="row"] { white-space: normal; } }
