/* VPARTY. Tokens from the customer's V8 design revision (p10), on top of the V7.0 guide:
   deep black #141311, champagne gold #D4BB90, ivory #F7F5F0, white, text gold #80652F.
   Pretendard 400/500/600/700; wordmark Cormorant Garamond. 8px grid, 20px side padding on mobile.
   Direction: an evening venue. Black hero and bars like a lounge at night, ivory pages like a printed
   invitation, photos large and warm, information set quietly under them without boxes. Gold only on the
   wordmark, the primary CTA and active states. */
:root {
  --black: #141311;
  --char: #24221F;
  --gold: #D4BB90;        /* wordmark, active tab, the one primary CTA */
  --gold-ink: #80652F;    /* gold for text and links on light surfaces */
  --ivory: #F7F5F0;       /* page */
  --white: #FFFFFF;       /* cards, inputs */
  --tint: #EFE9DD;        /* selected rows, notes */
  --line: #E6E0D4;
  --line-2: #CFC6B5;
  --text: #171614;
  --muted: #5E584F;
  --gray: #8F897F;
  --ok: #2F6544;
  --warn: #8A5A12;
  --bad: #963A2E;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;

  --side: 20px;
  --r: 10px;
  --r-sm: 6px;
  --r-btn: 8px;
  --hd: 56px;
  --tab: 60px;
  --safe: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font: 400 15px/1.6 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--tab) + var(--safe));
  overflow-x: hidden;
}
body.has-cta { padding-bottom: calc(var(--tab) + 80px + var(--safe)); }
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side); }
.narrow { max-width: 600px; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: var(--black); color: #fff; }
.hd-in { height: var(--hd); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 0 4px; }
.hd-l, .hd-r { height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; background: none; border: 0; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.hd-l { justify-self: start; }
.hd-r { justify-self: end; color: #E9E4DA; }
.hd-r[aria-current] { color: var(--gold); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1; color: var(--gold); letter-spacing: 0.22em; padding-left: 0.22em; white-space: nowrap; justify-self: center; }
.hd-nav { display: none; }
.menu { position: fixed; inset: var(--hd) 0 0 0; z-index: 39; background: var(--black); color: #fff; padding: 16px var(--side) 40px; overflow-y: auto; }
.menu nav { display: grid; max-width: 560px; margin: 0 auto; }
.menu a { padding: 14px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.1); }
.menu a[aria-current] { color: var(--gold); }
.menu .menu-h { font-size: 12px; color: #9C968C; margin: 22px 0 2px; letter-spacing: 0.04em; }
.menu a.sub { font-size: 16px; color: #D9D4CA; padding: 11px 0; }
@media (min-width: 960px) {
  body, body.has-cta { padding-bottom: 0; }
  .hd-in { grid-template-columns: auto 1fr; height: 68px; padding: 0 var(--side); }
  .hd .hd-l, .hd .hd-r { display: none; }
  .wordmark { justify-self: start; font-size: 28px; padding-left: 0; }
  .hd-nav { display: flex; justify-self: end; align-items: center; gap: 28px; font-size: 15px; }
  .hd-nav a { color: #D8D3C9; padding: 6px 0; border-bottom: 1px solid transparent; }
  .hd-nav a:hover { color: #fff; }
  .hd-nav a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
  .menu { display: none; }
}

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--black); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab) + var(--safe)); padding-bottom: var(--safe); border-top: 1px solid #2E2C28; }
.tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 12px; color: #B3AEA4; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--gold); font-weight: 600; }
@media (min-width: 960px) { .tabbar { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { height: 53px; font-size: 16px; }
.btn-sm { height: 44px; font-size: 15px; padding: 0 16px; }
.btn-block { display: flex; width: 100%; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--char); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #DDC8A2; }
.btn-line { border-color: var(--line-2); color: var(--text); background: var(--white); }
.btn-line:hover { border-color: var(--text); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { background: #DCD6CA; color: #77716A; border-color: transparent; cursor: not-allowed; }
.link { color: var(--gold-ink); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- labels and status text ---------- */
.st { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.st-soon { color: var(--warn); }
.st-closed { color: var(--gray); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; background: var(--tint); color: var(--gold-ink); white-space: nowrap; }
.as { font-weight: 600; }
.as-접수 { color: var(--muted); } .as-검토 { color: var(--gold-ink); } .as-승인 { color: var(--ok); }
.as-대기 { color: var(--warn); } .as-미승인 { color: var(--bad); } .as-취소 { color: var(--gray); }
.tag.as-승인 { background: #DFEADF; } .tag.as-대기 { background: #F2E2CA; } .tag.as-미승인 { background: #F1DCD7; }
.tag.as-취소, .tag.as-접수 { background: #E8E4DD; color: var(--muted); }

/* ---------- page heads and sections ---------- */
.page-head { padding-top: 24px; padding-bottom: 16px; }
.page-head h1 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; }
.page-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.page-head .step { font-size: 13px; font-weight: 600; color: var(--gold-ink); margin-bottom: 6px; display: block; }
.sec { padding-top: 48px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }
@media (min-width: 960px) {
  .page-head { padding-top: 48px; padding-bottom: 24px; }
  .page-head h1 { font-size: 30px; }
  .sec { padding-top: 72px; }
  .sec-head h2 { font-size: 24px; }
}

/* ---------- cards ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.box > h2, .box > h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.box > p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 8px; }

.plist { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .plist { grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; } .plist .pcard:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.pcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: stretch; border-bottom: 1px solid var(--line); padding: 16px 0; }
.pcard:hover h3 { color: var(--gold-ink); }
.pcard .thumb { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; min-width: 0; }
.kicker { font-size: 12px; font-weight: 600; color: var(--gold-ink); letter-spacing: 0; }
.kicker .st { font-size: 12px; }
.pcard h3 { font-size: 17px; font-weight: 600; line-height: 1.38; letter-spacing: -0.02em; margin-top: 2px; }
.pcard .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pcard .go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }

/* photo card (03 default, home): photo, type and status, name, date and area, 상세 보기. No box. */
.plist-photo { display: grid; gap: 32px; }
@media (min-width: 760px) { .plist-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1080px) { .plist-photo { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plist-photo.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phcard { display: block; }
.phcard .ph { display: block; aspect-ratio: 16 / 9; background: var(--char); overflow: hidden; border-radius: var(--r-btn); }
.phcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.phcard:hover .ph img { opacity: .9; }
.phcard-body { padding-top: 12px; display: grid; gap: 1px; }
.phcard h3 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; margin-top: 2px; }
.phcard .meta { font-size: 14px; color: var(--muted); }
.phcard .go { font-size: 13px; font-weight: 600; color: var(--gold-ink); margin-top: 6px; }
.phcard.is-closed .ph img, 
/* program summary row (apply, done, my, attend) */
.pmini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.pmini .thumb { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.pmini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pmini strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pmini span { display: block; font-size: 14px; color: var(--muted); }
.pmini .no { color: var(--gold-ink); font-weight: 600; }
.pmini .no .as { display: inline; }
.box .pmini { border: 0; padding: 0; background: none; }

/* ---------- home (01, 02) ---------- */
.hero { background: var(--black); color: #fff; }
.hero-photo { margin: 0 calc(var(--side) * -1); height: clamp(180px, 50vw, 200px); overflow: hidden; background: var(--char); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-copy { padding: 24px 0 28px; }
.hero h1 { font-size: 29px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }
.hero .sub { margin-top: 8px; color: var(--gold); font-size: 14px; font-weight: 500; }
.hero .benefit { margin-top: 14px; font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -0.025em; }
.hero .btn { margin-top: 20px; }
.cats-sec { padding-top: 32px; }
.cats-sec h2 { font-size: 21px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.025em; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-btn); overflow: hidden; background: var(--char); }
.cat .ph { position: absolute; inset: 0; }
.cat .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.cat:hover .ph img { opacity: .88; }
.cat .lab { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 8px 12px; background: rgba(20,19,17,.74); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.cat .lab::after { content: "›"; color: var(--gold); font-weight: 500; font-size: 17px; line-height: 1; }
.cat-party img { object-position: center 30%; } .cat-solo img { object-position: center 45%; }
.cat-rotation img { object-position: center 35%; } .cat-bar img { object-position: center 50%; }
@media (min-width: 960px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
  .hero-photo { order: 2; margin: 0; height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-btn); }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 48px; line-height: 1.22; }
  .hero .sub { font-size: 19px; margin-top: 14px; }
  .hero .benefit { font-size: 26px; margin-top: 22px; }
  .hero .btn { margin-top: 32px; width: auto; min-width: 240px; }
  .cats-sec { padding-top: 64px; }
  .cats-sec h2 { font-size: 24px; margin-bottom: 18px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cat .lab { font-size: 16px; padding: 12px 16px; }
}

.steps { list-style: none; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.steps .n { font-size: 15px; font-weight: 700; color: var(--gold-ink); line-height: 1.5; font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.45; }
.steps .d { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 14px; } .steps li { grid-template-columns: 1fr; align-content: start; padding: 20px; } }

.ask { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.ask h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }
.ask p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ask .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 760px) { .ask { grid-template-columns: 1fr auto; align-items: center; } .ask .row { grid-template-columns: auto auto; } }

.faq { display: grid; gap: 8px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.qa summary { list-style: none; cursor: pointer; min-height: 56px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 16px; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { transition: transform .15s; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { padding: 0 16px 16px; color: var(--muted); font-size: 15px; }

/* ---------- controls ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.field > label, .field > .lab { font-size: 14px; font-weight: 600; }
.req { color: var(--gold-ink); margin-left: 2px; }
.hint { font-size: 13px; color: var(--muted); }
.input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--white); font-size: 16px; appearance: none; -webkit-appearance: none; }
textarea.input { height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E584F' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input::placeholder { color: var(--gray); }
.input:focus { outline: 2px solid var(--gold-ink); outline-offset: -1px; border-color: var(--gold-ink); }
.field.has-err .input, .field.has-err .seg, .field.has-err .tiles { border-color: var(--bad); }
.err { font-size: 13px; color: var(--bad); display: none; }
.field.has-err .err { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r-btn); overflow: hidden; background: var(--white); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: grid; place-items: center; height: 50px; font-size: 16px; cursor: pointer; }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { background: var(--black); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: -3px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--black); margin: 0; flex: none; }

/* filter buttons (03) and chips (08) */
.fbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fbtn { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--white); font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbtn.on { border-color: var(--black); background: var(--black); color: #fff; }
.fbtn::after { content: ""; width: 8px; height: 5px; flex: none; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .7; }
.fbtn.plain::after { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn:disabled { color: var(--gray); border-color: var(--line); cursor: not-allowed; }
.chipbtn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--white); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chipbtn[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; font-weight: 600; }
.chipbtn small { font-size: 12px; color: var(--gray); }
.chipbtn[aria-pressed="true"] small { color: var(--gold); }
.cat-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 calc(var(--side) * -1); padding: 0 var(--side); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cat-tabs a:first-child { padding-left: 0; }
.cat-tabs a[aria-current] { color: var(--text); font-weight: 600; border-bottom-color: var(--black); }
.cat-tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
@media (min-width: 960px) { .cat-tabs { margin: 0; padding: 0; } }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 10px; font-size: 14px; color: var(--muted); }
.viewtoggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-btn); overflow: hidden; }
.viewtoggle a { min-height: 36px; min-width: 52px; display: grid; place-items: center; font-size: 13px; padding: 0 10px; background: var(--white); }
.viewtoggle a[aria-current] { background: var(--black); color: #fff; font-weight: 600; }
.empty { text-align: center; padding: 36px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.empty strong { display: block; font-size: 17px; font-weight: 600; }
.empty p { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }

/* sheet (filter popovers on 03) */
.sheet-bg { position: fixed; inset: 0; background: rgba(23,22,20,.5); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--ivory); border-radius: 14px 14px 0 0; padding: 20px var(--side) calc(20px + var(--safe)); max-height: 80svh; overflow-y: auto; }
.sheet-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sheet-hd span { font-size: 13px; color: var(--muted); }
.sheet h2 { font-size: 18px; font-weight: 600; }
.sheet .actions { margin-top: 20px; grid-template-columns: 1fr 2fr; display: grid; gap: 8px; }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 480px; border-radius: 14px; } }

/* sticky bottom actions (08, 10, 11, 12, 30): above the tab bar, safe area aware; static while the keyboard is up */
.cta-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + var(--safe)); z-index: 25; background: rgba(247,245,240,.97); border-top: 1px solid var(--line); padding: 12px var(--side); }
.cta-bar .in { max-width: 600px; margin: 0 auto; display: grid; gap: 8px; }
.cta-bar .in.two { grid-template-columns: 1fr 2fr; }
body.kb .tabbar { display: none; }
body.kb .cta-bar { position: static; border: 0; background: none; padding: 20px 0 0; }
body.kb .cta-bar .in { max-width: none; }
body.kb.has-cta { padding-bottom: 24px; }
@media (min-width: 960px) {
  .cta-bar { position: static; background: none; border: 0; padding: 24px 0 0; }
  .cta-bar .in { max-width: none; }
}

/* ---------- schedule (09) ---------- */
.cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 14px; }
.cal-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-hd strong { font-size: 17px; font-weight: 700; }
.cal-hd button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--text); }
.cal-hd button:disabled { color: var(--line-2); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-grid .dw { font-size: 12px; color: var(--muted); padding: 4px 0 6px; }
.cal-grid .dw.sun { color: var(--bad); } .cal-grid .dw.sat { color: #3C5A87; }
.cal-grid button { height: 46px; border: 0; background: none; border-radius: var(--r-sm); font-size: 15px; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 0; padding: 0; color: var(--gray); font-variant-numeric: tabular-nums; }
.cal-grid button.has { color: var(--text); font-weight: 700; }
.cal-grid button.has small { display: block; font-size: 10px; font-weight: 600; color: var(--gold-ink); line-height: 1.2; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-grid button[aria-pressed="true"] { background: var(--black); color: #fff; }
.cal-grid button[aria-pressed="true"] small { color: var(--gold); }
.cal-grid button:disabled { cursor: default; }
.slist { display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.srow time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.srow strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.srow .m { display: block; font-size: 13px; color: var(--muted); }
.srow .go { font-size: 14px; color: var(--gold-ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) { .sched { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; } }

/* ---------- detail (10, 10A) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); }
.gal { position: relative; margin: 0 calc(var(--side) * -1); background: var(--char); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track > button { flex: none; width: 100%; aspect-ratio: 16 / 10; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gal-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(23,22,20,.72); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--tint); }
.thumbs button[aria-current] { border-color: var(--black); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-main { min-width: 0; padding-top: 20px; }
.d-main .kicker { font-size: 13px; }
.d-main h1 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; margin-top: 4px; }
.d-when { font-size: 15px; color: var(--muted); margin-top: 4px; }
.d-block { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.d-block > h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.d-block > p, .d-block li { font-size: 15px; color: var(--muted); }
.d-block ul { padding-left: 18px; display: grid; gap: 2px; }
.d-block .gold { color: var(--gold-ink); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.space { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.space button { aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; background: var(--tint); }
.space img { width: 100%; height: 100%; object-fit: cover; }
.vbar { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 10px; border: 0; border-radius: var(--r-btn); background: var(--black); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.vbar svg { color: var(--gold); }
.d-sec { margin-top: 12px; }
.d-label { font-size: 15px; font-weight: 700; margin: 26px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.d-label span { font-size: 13px; font-weight: 500; color: var(--muted); }
.sessions { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.sessions::-webkit-scrollbar { display: none; }
.sbtn { flex: none; min-width: 96px; height: 60px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--white); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 1px; padding: 0 12px; }
.sbtn b { font-size: 15px; font-weight: 600; }
.sbtn small { font-size: 12px; color: var(--gold-ink); }
.sbtn small.st-soon { color: var(--warn); }
.sbtn[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.sbtn[aria-pressed="true"] small { color: var(--gold); }
.sbtn:disabled { cursor: not-allowed; color: var(--gray); }
.sbtn:disabled small { color: var(--gray); }
.info h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.info p, .info li { font-size: 15px; color: var(--muted); }
.info ul { padding-left: 18px; display: grid; gap: 2px; }
.info.benefit { border-color: var(--gold); }
.info.benefit p { color: var(--text); font-weight: 500; }
.video-box { position: relative; aspect-ratio: 9 / 16; max-height: 560px; width: 100%; background: var(--black); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.video-box img, .video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box button { position: absolute; inset: 0; border: 0; background: rgba(23,22,20,.28); cursor: pointer; display: grid; place-items: center; color: #fff; }
.video-box button span { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; background: rgba(23,22,20,.4); }
.video-wrap { max-width: 360px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,11,10,.96); display: grid; grid-template-rows: 56px 1fr; }
.lightbox .lb-hd { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 0 20px; color: #fff; font-size: 14px; }
.lightbox .lb-hd button { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.lightbox .lb-track > div { flex: none; width: 100%; scroll-snap-align: start; display: grid; place-items: center; padding: 12px; }
.lightbox img { max-height: calc(100svh - 80px); object-fit: contain; }
@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-top: 40px; align-items: start; }
  .d-media { position: sticky; top: 100px; }
  .gal { margin: 0; border-radius: var(--r); overflow: hidden; }
  .d-main { padding-top: 0; }
  .d-main h1 { font-size: 30px; }
}

/* ---------- apply (11, 12) ---------- */
.stepper { display: flex; gap: 6px; margin-top: 12px; }
.stepper i { flex: 1; height: 2px; background: var(--line); }
.stepper i.on { background: var(--gold-ink); }
.form-sec { margin-top: 24px; }
.form-sec > h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid transparent; border-radius: var(--r); }
.tile { position: relative; aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; cursor: pointer; overflow: hidden; }
.tile .plus { color: var(--gold-ink); font-size: 26px; font-weight: 300; line-height: 1; }
.tile strong { font-size: 15px; font-weight: 600; }
.tile small { font-size: 12px; color: var(--muted); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.filled { border-style: solid; }
.tile .redo { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(23,22,20,.78); color: #fff; font-size: 13px; border-radius: var(--r-sm); padding: 6px 0; z-index: 1; }
.tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.tile:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.consent { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; }
.consent-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.consent-row + .consent-row { border-top: 1px solid var(--line); }
.consent-row a { color: var(--gold-ink); font-size: 14px; font-weight: 600; padding: 12px 2px; flex: none; }
.consent-row.all { font-weight: 600; justify-content: flex-start; }
.note { display: block; background: var(--tint); border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; color: var(--text); }
.note b { display: block; font-weight: 600; margin-bottom: 2px; }
.form-err { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--bad); border-radius: var(--r-btn); color: var(--bad); font-size: 14px; background: #FBF2F0; }
.form-err a { text-decoration: underline; font-weight: 600; }
.actions { margin-top: 24px; display: grid; gap: 8px; }

/* ---------- done, my, result, attend ---------- */
.mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 8px 0 18px; }
.mark.ok { background: #E3ECE3; color: var(--ok); }
.mark.gold { background: var(--tint); color: var(--gold-ink); }
.big-title { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }
.big-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.kv { display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.track { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.track li { border-top: 3px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--gray); }
.track li.on { border-color: var(--black); color: var(--text); font-weight: 600; }
.track li.cur { border-color: var(--gold); }
.flow { list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.flow li { display: flex; gap: 8px; }
.flow li::before { content: ""; width: 6px; height: 6px; background: var(--gold-ink); border-radius: 50%; margin-top: 9px; flex: none; }
.timer { font-variant-numeric: tabular-nums; color: var(--gold-ink); font-weight: 600; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-input { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 20px; text-align: center; }
.otp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.otp-row button { background: none; border: 0; color: var(--gold-ink); font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 4px; font-size: 14px; }
.otp-row button:disabled { color: var(--gray); cursor: default; }
.ok-check { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; margin: 12px auto 20px; }
.center { text-align: center; }
.banner { border-radius: var(--r); padding: 16px; font-size: 15px; }
.banner.ok { background: #E3ECE3; color: #20472F; }
.banner.warn { background: #F4E7D2; color: #5E3D0B; }
.banner.bad { background: #F3E0DC; color: #6B2419; }
.banner.mute { background: #ECE8E1; color: var(--muted); }
.banner b { display: block; font-size: 16px; margin-bottom: 2px; }

/* ---------- SMS / LMS preview (14A, 14B, 14C): the phone's own messages app, not a messenger card ---------- */
.phone { max-width: 380px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.phone-hd { display: grid; justify-items: center; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid #ECEAE6; background: #FAFAF9; }
.phone-hd .av { width: 40px; height: 40px; border-radius: 50%; background: #D9D6D0; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 600; }
.phone-hd strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-hd span { font-size: 12px; color: #8E8A84; }
.phone-body { padding: 14px 14px 18px; display: grid; gap: 6px; background: #fff; }
.phone-body .when { text-align: center; font-size: 12px; color: #8E8A84; margin-bottom: 4px; }
.bubble { justify-self: start; max-width: 88%; background: #E9E9EB; color: #111; border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.bubble a { color: #1C5FD4; text-decoration: underline; text-underline-offset: 2px; }
.phone-body .kind { font-size: 11px; color: #8E8A84; padding-left: 6px; }

/* ---------- sample-only controls ---------- */
.demo { border: 1px dashed #B9AE97; border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--muted); background: transparent; }
.demo > b { display: block; font-size: 12px; color: var(--gold-ink); font-weight: 600; margin-bottom: 4px; }
.demo .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.demo button, .demo a.btn-mini { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; }
.demo code { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .12em; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 92px + var(--safe)); transform: translateX(-50%); z-index: 90; background: var(--black); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: var(--r-btn); max-width: calc(100% - 40px); width: max-content; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ---------- footer ---------- */
.ft { background: var(--black); color: #BDB7AD; padding: 36px 0 32px; margin-top: 56px; font-size: 14px; }
.ft .wordmark { display: inline-block; font-size: 24px; padding-left: 0; margin-bottom: 12px; }
.ft p { max-width: 40em; }
.ft nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0; }
.ft nav a { color: #E6E1D8; min-height: 32px; display: inline-flex; align-items: center; }
.ft nav a:hover { color: var(--gold); }
.ft .fine { color: #8C867D; font-size: 13px; }
.no-ft .ft { display: none; }

/* prose (19 privacy, 18) */
.prose { font-size: 15px; }
.prose h2 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; background: var(--white); }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose th { background: var(--tint); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
