/* 이벤트 만들기 — 2026-11-19 재설계.
   배치: 좁은 화면은 한 단(사진 124 + 안내 → 이름 → 종류 칩 → 날짜 → 장소 → 소개 → 기본값 → 선택 기능 → 하단 바),
        넓은 화면(≥861)은 왼쪽 사진 320 고정 + 오른쪽 520.
   플랫: 배경 위 글 + 헤어라인. 면은 입력칸·탭 타깃에만. 그라디언트는 화면마다 주 버튼 하나.
   색·글자는 tokengo.css 토큰, 이벤트 색 화면이라 면은 --ev-surface, 선은 --ev-line. */

.grid.create { max-width: 960px; grid-template-columns: 320px minmax(0, 520px); grid-template-areas: "cover main"; justify-content: center;
  gap: 24px 48px; padding: 16px 20px 0; --sticky-top: 72px; }
.grid.create > .side { grid-area: cover; position: sticky; top: var(--sticky-top); align-self: start; display: block; }
.grid.create > .main { grid-area: main; gap: 18px; }
.grid.create > .rail { display: none; }
:root.embed .grid.create { padding-top: calc(var(--app-top, 52px) + 16px); --sticky-top: calc(var(--app-top, 52px) + 16px); }
#picker { position: relative; isolation: isolate; z-index: 0; overflow: hidden; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 글자 링크 — 탭 타깃은 위아래 여백으로 44px 을 채운다 */
.create .lnk { border: 0; background: none; padding: 12px 0; margin: -8px 0; font: inherit; font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: start; }
.create .lnk:hover { color: var(--ink); }
.create .btn-s { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--ev-surface); color: var(--ink); font: inherit; font-size: var(--fs-sub); font-weight: 600; cursor: pointer; }
.create .btn-s:disabled { color: var(--disabled); cursor: default; }
.create :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.create ::selection { background: color-mix(in srgb, var(--ev-brand) 28%, transparent); }
.create input, .create textarea { caret-color: var(--ev-brand); }

/* ── 대표 사진 — 정사각 칸에 사진을 통째로(contain), 남는 자리는 같은 사진을 흐리게 ── */
.cov { display: flex; gap: 14px; align-items: stretch; }
.cov .cover.pick-poster { flex: 0 0 124px; width: 124px; border-radius: 14px; box-shadow: none; position: relative; isolation: isolate; background: var(--ev-surface); }
.cov .cover.pick-poster.empty { background: var(--ev-surface); box-shadow: none; outline: 1.500px dashed var(--line-strong); outline-offset: -1.500px; }
.cov .cover.pick-poster:not(.empty)::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: var(--cv) center / cover no-repeat; filter: blur(14px) saturate(1.1) brightness(.9); }
.cov .cover.pick-poster:not(.empty)::after { content: ""; position: absolute; inset: 0; background: var(--cv) center / contain no-repeat; }
.cov .cover.motion > video, .cov .cover.motion > img { object-fit: contain; z-index: 1; }
.cov .cover .ph { display: grid; place-items: center; gap: 4px; padding: 8px; text-align: center; color: var(--ink-2); }
.cov .cover .ph[hidden] { display: none; }
.cov .cover .ph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; }
.cov .cover .ph b { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2); }
.cvr { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; min-width: 0; }
.cv-hint { margin: 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--muted); }
.cv-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cv-state { margin: 0; font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2); }
.cv-state.bad { color: var(--danger); }

/* ── 이름 · 종류 칩 ── */
.create .compose .name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; padding: 2px 0 6px; }
.create .fld.bad .name { box-shadow: 0 2px 0 var(--danger); }
.kind { display: grid; gap: 6px; }
.kchips { display: flex; flex-wrap: wrap; gap: 6px; }
.kchips button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ev-surface); color: var(--ink-2);
  font: inherit; font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; cursor: pointer; }
.kchips button:hover { color: var(--ink); }
.kchips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.kchips button.more { background: none; padding-inline: 4px; text-decoration: underline; text-underline-offset: 3px; }
.luma-open { justify-self: start; }
.draft-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 0; font-size: var(--fs-meta); color: var(--muted); }
.draft-line > span { margin-right: auto; }

/* ── 날짜 — 한 줄(날짜 · 시작 · 종료). 「여러 날」이면 시작·종료 두 줄 ── */
.when2 { position: relative; display: flex; gap: 6px; }
.when2 .wrow { display: contents; }
.when2 .wlab, .when2:not(.multi) #p-end-d { display: none; }
.when2.allday .pill.t { display: none; }   /* 하루 종일 — 날짜만 */
.when2 .pill { flex: 1 1 0; height: 48px; padding: 0 8px; border-radius: 12px; background: var(--ev-surface); font-size: var(--fs-sub); text-align: center; }
.when2 .pill.d { flex: 1.500 1 0; }
.when2 .pill:hover, .when2 .pill[aria-expanded="true"] { background: var(--accent-wash); }
.when2.multi { display: grid; }
.when2.multi .wrow { position: relative; display: flex; align-items: center; gap: 6px; padding: 0; }
.when2.multi .wlab { display: block; flex: none; width: 2.600em; }
.fld.bad .when2 .pill { box-shadow: inset 0 0 0 1.500px var(--danger); }
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.create .tz { margin: 0; padding: 0; border: 0; min-width: 0; }
.create .tzbtn { width: auto; max-width: 100%; background: none; padding: 6px 0; color: var(--ink-2); }
.create .tzbtn:hover, .create .tzbtn[aria-expanded="true"] { background: none; color: var(--ink); }
.create .tz-pop { left: auto; right: 0; }

/* ── 장소 ── */
.create .loc-search { margin: 0; }
#loc-search > .fi, .loc-picked > .fi { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
#loc-search > .fi { position: absolute; left: 14px; top: 14px; pointer-events: none; }
#loc-search > input { min-height: 48px; padding-left: 44px; }
.loc-picked { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--ev-surface); min-width: 0; }
.loc-picked > .fi { margin-top: 3px; }
.loc-picked .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.loc-picked input { width: 100%; min-width: 0; border: 0; background: none; padding: 0; outline: none; color: var(--ink); font: inherit; font-size: var(--fs-row); font-weight: 600; }
.loc-picked input::placeholder { color: var(--placeholder); font-weight: 500; }
.lp-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; font-size: var(--fs-meta); color: var(--muted); }
.fld.bad #loc-search > input, .fld.bad .loc-picked { box-shadow: inset 0 0 0 1.500px var(--danger); }
.create .picker { height: 220px; margin-top: 8px; box-shadow: none; }
.create .picker[hidden], .loc-picked[hidden], #loc-search[hidden] { display: none; }
.create .where-seg { margin-bottom: 8px; }
#where-online .hint, #map-note { margin: 6px 2px 0; }
#online-open { justify-self: start; }

/* ── 소개 + 사진 추가 — 서식 도구는 칸을 누를 때만, 칸 아래에 붙는다(누를 때 글이 밀리지 않게) ── */
.desc-wrap { display: flex; flex-direction: column; gap: 0; }
.desc-wrap > .md-bar { order: 2; position: static; margin: 0; border-radius: 0 0 12px 12px; }
.desc-wrap:not(:focus-within) > .md-bar { display: none; }
.desc-wrap:focus-within #desc-editor, .desc-wrap:focus-within #f-desc { border-radius: 12px 12px 0 0; }
.desc-wrap > .md-link, .desc-wrap > .md-count, .desc-wrap > .md-pv { order: 3; }
.desc-wrap #desc-editor { border-radius: 12px; margin: 0; }
.desc-wrap #f-desc { width: 100%; min-height: 104px; border: 0; border-radius: 12px; background: var(--ev-surface); padding: 12px 14px; color: var(--ink);
  font: inherit; font-size: var(--fs-body); line-height: 1.6; resize: vertical; outline: none; }
.desc-wrap #f-desc::placeholder { color: var(--placeholder); }
.photos-line { order: 4; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.photos-line .thumbs { margin: 0; gap: 6px; }
.photos-line .thumbs .thumb, .photos-line .thumbs .add { width: 56px; height: 56px; }
.photos-line .thumbs .add { display: grid; place-items: center; border: 1.500px dashed var(--line-strong); }
.photos-line .thumbs .add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; }
.photos-line .hint { font-size: var(--fs-meta); }

/* ── 기본값 한 줄 · 주최자 ── */
.sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; border-top: 1px solid var(--ev-line); }
.sum-l { flex: none; font-size: var(--fs-meta); font-weight: 600; color: var(--muted); margin-right: 2px; }
.sum-c { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ev-surface);
  color: var(--ink); font: inherit; font-size: var(--fs-meta); font-weight: 600; cursor: pointer; }
.sum-c[hidden] { display: none; }
.sum-c.sel { padding: 0; }
.sum-c select { appearance: none; -webkit-appearance: none; min-height: 36px; max-width: 100%; border: 0; border-radius: 999px; background: none; padding: 0 28px 0 12px; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23808089' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; }
.host-line { display: flex; align-items: flex-start; gap: 8px; }
.host-line[hidden] { display: none; }
.host-line .sum-l { padding-top: 9px; }
.host-line .hosts { margin: 0; flex: 1; grid-template-columns: minmax(0, auto) auto 1fr; align-items: center; gap: 0 12px; }
.host-line .name-ask { grid-column: 1 / -1; }
.host-line .name-ask input { background: var(--ev-surface); }

/* ── 선택 기능 — 헤어라인으로 나눈 줄. 켜면 그 자리에서 열린다 ── */
.opts2 { display: grid; gap: 20px; padding-top: 18px; border-top: 1px solid var(--ev-line); }
.oh { display: grid; gap: 2px; }
.oh b { font-size: var(--fs-row); font-weight: 700; }
.oh span { font-size: var(--fs-meta); color: var(--muted); }
.os { display: flex; flex-direction: column; }
.os > .lb { padding: 14px 0 2px; font-size: var(--fs-meta); font-weight: 600; color: var(--muted); }
.os > .lb:first-child { padding-top: 0; }
.o { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ev-line); }
.o[hidden] { display: none; }
.o.o-pin { order: -1; }
.o > .oi { align-self: start; margin-top: 2px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.o > .tx { display: flex; flex-direction: column; min-width: 0; }
.o > .tx label { cursor: pointer; }
.o > .tx b { font-size: var(--fs-row); font-weight: 600; }
.o > .tx > span { font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }
.o > .tx > span[hidden] { display: none; }
.o .soon { font-style: normal; font-size: var(--fs-chip); font-weight: 700; color: var(--ink-2); background: var(--accent-wash); border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.o .soon[hidden] { display: none; }
.o .pts-lock { color: var(--ink-2); }
.o.locked > .sw { opacity: .45; }
.o > .ox { grid-column: 2 / 4; display: none; flex-direction: column; gap: 8px; padding: 10px 0 4px; min-width: 0; }
.o.open > .ox { display: flex; }
.ox .hint { margin: 0; font-size: var(--fs-meta); color: var(--ink-2); }
.ox .hint[hidden], .ox .wait[hidden] { display: none; }
.ox .rcard { background: none; padding: 0; }
.ox .rcard .line, .ox .line { background: var(--ox-fld, var(--ev-surface)); }
/* 다크에선 --ev-surface 가 바탕과 거의 같아 펼친 칸의 입력 면(외부 링크·1인 최대 등)이 안 보인다 → 글자색을 조금 섞어 띄운다. 라이트는 그대로(11/25 QA) */
:root[data-theme="dark"] { --ox-fld: color-mix(in srgb, var(--ink) 8%, var(--ev-surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ox-fld: color-mix(in srgb, var(--ink) 8%, var(--ev-surface)); } }
.oxr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: var(--ev-surface);
  color: var(--ink); font: inherit; font-size: var(--fs-sub); font-weight: 500; text-align: start; cursor: pointer; }
.oxr[hidden] { display: none; }
.oxr > span:first-child, .oxr > label:first-child { min-width: 0; }
.oxr small { display: block; font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }
.oxr em { font-style: normal; font-size: var(--fs-meta); color: var(--muted); white-space: nowrap; }
.oxr input[type="checkbox"]:not([role="switch"]) { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.cap-in { display: flex; align-items: center; gap: 10px; flex: none; }
.cap-in input[type="number"] { width: 5.500em; min-height: 36px; border: 0; border-radius: 9px; background: var(--ev-soft); padding: 0 8px; color: var(--ink); font: inherit; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.cap-in input[type="number"]:disabled { opacity: .4; }
.cap-in .chk { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--ink-2); cursor: pointer; }
.cap-in .chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.cap-in .u { font-size: var(--fs-meta); color: var(--muted); }
.wait { display: grid; gap: 8px; justify-items: start; }
/* 출석 확인 방법 — 고르는 카드(탭 타깃이라 면) */
.mth { display: grid; gap: 6px; }
.mth .m { position: relative; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--ev-surface); cursor: pointer; }
.mth .m[hidden] { display: none; }
.mth .m input { position: absolute; opacity: 0; pointer-events: none; }
.mth .m b { font-size: var(--fs-sub); font-weight: 600; }
.mth .m span { font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }
.mth .m:has(input:checked) { box-shadow: inset 0 0 0 1.500px var(--accent); }
.mth .m:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#att-qr, #geo-box { display: grid; gap: 8px; }
#att-qr[hidden], #geo-box[hidden] { display: none; }
#co-box { display: grid; gap: 8px; justify-items: start; }
#co-box > * { width: 100%; }
#co-box > .lnk { width: auto; }
#topic-line .chips button { min-height: 36px; padding: 0 12px; background: var(--ev-surface); }
#topic-line .chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
#topic-line .hint { margin-top: 6px; }
/* 초대장 — 경조사가 아닐 때는 「더 많은 기능」의 한 줄 */
#inv-more-slot .inv-sec { margin: 0; }
#inv-more-slot .inv-head { padding: 12px 0; border-bottom: 1px solid var(--ev-line); }
#inv-more-slot .inv-head .rule { font-size: var(--fs-row); font-weight: 600; color: var(--ink); }
#inv-more-slot .inv-head .rule::after { content: none; }
#inv-more-slot .inv-head .hint { font-size: var(--fs-meta); }
#inv-more-slot .inv-head .grow { padding-left: 32px; }

/* ── 하단 바 하나 — 내용 끝에 붙고, 스크롤 중에는 화면 아래에 머문다. 키보드가 열리면 숨는다(.kb) ── */
.bar { position: sticky; bottom: 0; z-index: 20; display: grid; gap: 8px; margin: 6px -20px 0; padding: 10px 20px calc(12px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  background: var(--ev-tint, var(--bg)); border-top: 1px solid var(--ev-line); }
.bar-in { display: flex; gap: 8px; }
.bar-in .btn-ev { min-height: 50px; height: auto; width: auto; flex: none; padding: 0 18px; }
.bar-in .btn-ev.brand { flex: 1; }
.bar-in .btn-ev.ghost { background: var(--ev-surface); color: var(--ink); }
/* 티켓 칸(통화·티어 입력·추가·삭제) — 같은 면 하나. --ev-soft 만 쓰면 어두운 주최자 색(#1a1a1a)+다크에서 면이 바탕에 묻히고,
   --ev-surface 는 다크에서 바탕과 같다 → 글자색(--ink)을 조금 섞어 어느 테마·주최자 색에서도 면이 보이게 (11/25 QA) */
#paid-fields { --tier-fld: color-mix(in srgb, var(--ink) 7%, var(--ev-soft)); }
#paid-fields .btn-ev.ghost, #paid-fields .csel-btn { background: var(--tier-fld); color: var(--ink); }
#form #ticket-tiers input { box-sizing: border-box; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--tier-fld); }
#form #ticket-tiers input:focus { box-shadow: inset 0 0 0 1.500px var(--ev-brand); }.bar-errs, .bar-ask { margin: 0; font-size: var(--fs-meta); font-weight: 600; line-height: 1.5; }
.bar-errs { color: var(--danger); }
.bar-errs button { border: 0; background: none; padding: 8px 0; margin: -8px 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bar-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.bar-errs[hidden], .bar-ask[hidden] { display: none; }
.bar .hint { margin: 0; text-align: center; }
.bar.kb { display: none; }
/* 문의 버튼은 하단 바 위로 — 바와 겹치지 않게 */
body:has(#form:not([hidden]) .bar) .ask-fab { bottom: calc(92px + var(--safe-bottom, 0px)); }

/* ── 테마 시트 — 폰은 아래 시트, 넓은 화면은 오른쪽 아래 팔레트 ── */
.grid.create > .rail.sheet { display: grid; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 78vh; overflow-y: auto; overscroll-behavior: contain;
  max-width: 640px; margin: 0 auto; padding: 14px 14px calc(20px + var(--safe-bottom, 0px)); gap: 14px; align-content: start;
  border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow); }
.scrim { position: fixed; inset: 0; z-index: 35; background: color-mix(in srgb, var(--scrim, #000) 45%, transparent); }
.panel-close { justify-self: end; border: 0; background: var(--sunken); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--fs-meta); min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; }

/* 종류 바꾸기 확인 — 폰은 아래 시트, 넓은 화면은 가운데. 뒤는 어둡게 */
.tpk-ask { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + var(--safe-bottom, 0px)); transform: translateX(-50%); width: min(520px, calc(100% - 32px)); box-sizing: border-box;
  padding: 18px 18px 14px; border-radius: 18px; background: var(--surface); border: 0; box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 0 0 100vmax rgba(0,0,0,.4); display: grid; gap: 8px; }
.tpk-ask[hidden] { display: none; }
.tpk-ask b { font-size: var(--fs-row); color: var(--ink); }
.tpk-ask ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-sub); color: var(--ink-2); }
.tpk-ask li::before { content: attr(data-sign); display: inline-block; width: 1.400em; font-weight: 800; }
.tpk-ask li.off { color: var(--muted); }
.tpk-ask .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.tpk-ask .acts .btn-ev { width: auto; padding: 0 18px; }

/* ── 완료 — 주 버튼은 공유하기 하나, 나머지는 헤어라인 줄 ── */
.done { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; max-width: 440px; padding-top: 36px; }
:root.embed .done { padding-top: calc(var(--app-top, 52px) + 36px); }
.done .done-mark { width: 56px; height: 56px; margin: 0 auto; border-radius: 999px; background: var(--success-wash); color: var(--success); display: grid; place-items: center; }
.done .done-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.done > p { margin: 0 auto; font-size: var(--fs-sub); color: var(--ink-2); }
.done > p[hidden] { display: none; }
.done > .btn-ev { min-height: 50px; height: auto; }
.done .nx { text-align: start; border-top: 1px solid var(--line); margin-top: 8px; }
.done .nx > a, .done .nx > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--ink); font: inherit; font-size: var(--fs-row); text-align: start; text-decoration: none; cursor: pointer; }
.done .nx > [hidden] { display: none; }
.done .nx b { font-weight: 600; margin-right: auto; }
.done .nx span { font-size: var(--fs-meta); color: var(--muted); }
.done .nx svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
/* 노출 올리기 — 제안은 남기되 보조 줄. 그라디언트 버튼은 쓰지 않는다 */
.done .promo-nudge { max-width: none; margin: 0; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.done .promo-nudge .pn-txt b { font-size: var(--fs-row); font-weight: 600; }
.done .promo-nudge .pn-acts { grid-template-columns: auto auto; justify-content: start; margin-top: 10px; }
.done .promo-nudge .btn-ev { height: 40px; background: var(--ev-surface, var(--sunken)); color: var(--ink); font-size: var(--fs-sub); }
.done .promo-nudge .btn-ev.action { background: none; color: var(--ink-2); }

/* ── 넓은 화면 ── */
@media (min-width: 861px) {
  .cov { flex-direction: column; gap: 12px; }
  .cov .cover.pick-poster { flex: none; width: 320px; border-radius: 18px; }
  .cov .cover .ph svg { width: 28px; height: 28px; }
  .cov .cover .ph b { font-size: var(--fs-sub); }
  .cvr { justify-content: flex-start; }
  .create .compose .name { font-size: 34px; }
  .bar { margin-inline: 0; padding-inline: 0; }
  .bar-in { justify-content: flex-end; }
  .bar-in .btn-ev.brand { flex: 0 0 220px; }
  .grid.create > .rail.sheet { left: auto; right: 24px; bottom: 24px; width: 420px; margin: 0; border-radius: 22px; padding-bottom: 20px; }
  .tpk-ask { top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); padding: 22px 22px 16px; }
  body:has(#form:not([hidden]) .bar) .ask-fab { bottom: 20px; }
}
@media (max-width: 860px) {
  .grid.create { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "main"; gap: 16px; padding: 8px 16px 0; }
  .grid.create > .side { position: static; }
  .bar { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 380px) {
  .when2:not(.multi) .pill { padding: 0 4px; font-size: var(--fs-meta); }
}
@media (prefers-reduced-motion: reduce) { .create * { scroll-behavior: auto !important; } }
/* 신청 줄 안: 예전 등록 방식 안내(현장 QR 얘기)는 출석 확인 줄이 대신한다. 신청 폼 스위치는 다른 안쪽 줄과 같은 면 */
#reg-hint { display: none; }
.ox .toggle-row { box-shadow: none; background: var(--ev-surface); padding: 8px 14px; }

/* ══ 11/19 대표 피드백 반영 — 밑줄 링크 없음(버튼·칩·아이콘 버튼) · 큰 사진 · 테마 견본 줄 · 선택 기능은 세 줄부터 ══ */

/* 누르는 것은 면으로 보인다 — 밑줄로 표시하지 않는다. 글자 버튼(.lnk · 예전 .link)은 전부 작은 칩 */
.create .lnk, .create button.link, .create .kchips button.more, .create .bar-errs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 0 12px; margin: 0; border: 0; border-radius: 999px;
  background: var(--ev-surface); color: var(--ink-2); font: inherit; font-size: var(--fs-meta); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.create .lnk:hover, .create button.link:hover { color: var(--ink); }
.create .lnk[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.create .kchips button.more::before { content: "+"; font-weight: 500; }
.create .bar-errs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.create .bar-errs button { min-height: 32px; color: var(--danger); background: var(--danger-wash); font-weight: 700; }
.create .ar-coin a, .create .hint a { text-decoration: none; font-weight: 700; color: var(--ink); }
/* 아이콘 버튼 */
.ib { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: var(--ev-surface); color: var(--ink-2); cursor: pointer; list-style: none; }
.ib::-webkit-details-marker { display: none; }
.ib:hover { color: var(--ink); }
.ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
#i-dots circle { fill: currentColor; stroke: none; }

/* 맨 위 — 저장 상태 한 줄 + ⋯ 메뉴. 폰에서는 사진 줄 오른쪽 위에 얹어 자리를 차지하지 않는다 */
.grid.create { position: relative; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 36px; }
.save-st { font-size: var(--fs-chip); color: var(--muted); }
.save-st[hidden] { display: none; }
.menu { position: relative; }
.menu-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; min-width: 11em; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.menu-pop button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: var(--fs-sub); font-weight: 600; text-align: start; white-space: nowrap; cursor: pointer; }
.menu-pop button:hover { background: var(--sunken); }

/* 대표 사진 — 비었을 땐 작게(124), 올리면 화면 폭으로 크게. 정사각 칸에 통째로 + 흐린 배경, 키는 화면의 절반을 넘지 않는다 */
.cv-wrap { position: relative; flex: none; }
.cov .cv-wrap .cover.pick-poster { display: grid; }
.cov.has { flex-direction: column; gap: 6px; }
.cov.has .cv-wrap { width: 100%; }
.cov.has .cover.pick-poster { flex: none; width: 100%; aspect-ratio: 1; max-height: min(52vh, 420px); border-radius: 18px; }
.cov.has .cvr { display: block; }
.cv-tools { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.cv-tools[hidden] { display: none; }
.cv-tools .ib { background: rgba(20, 20, 26, .62); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cv-tools .ib:hover { background: rgba(20, 20, 26, .78); color: #fff; }
.cvr .lnk[hidden] { display: none; }

/* 테마 견본 줄 — 가로로 넘긴다. 카드 = 그 테마의 실제 바탕 + 그 글꼴로 적은 이름 */
.tstrip { display: flex; gap: 8px; margin: 12px -16px 0; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.tstrip::-webkit-scrollbar { display: none; }
.tc { flex: none; width: 68px; display: grid; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; scroll-snap-align: start; }
.tc .tv { display: grid; place-items: center; width: 68px; height: 48px; border-radius: 12px; background: var(--ev-surface); outline: 2px solid transparent; outline-offset: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.tc .tv.plain { background: linear-gradient(135deg, var(--surface) 0 50%, var(--sunken) 50% 100%); }
.tc .tv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; }
.tc .tl { font-size: var(--fs-chip); font-weight: 600; line-height: 1.3; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc[aria-pressed="true"] { color: var(--ink); }
.tc[aria-pressed="true"] .tv { outline-color: var(--accent); }

/* 장소 — 고르면 바로 아래 지도 */
.loc-picked { align-items: center; }
.loc-picked > .fi { margin-top: 0; align-self: flex-start; margin-top: 3px; }
.lp-sub { gap: 0 6px; }
.lp-sub > span + span::before { content: "· "; }
.create .picker { height: 180px; }

/* 날짜 밑 줄 — 칩 둘 */
.sub-row { justify-content: flex-start; flex-wrap: wrap; gap: 6px; min-height: 0; }
.create .tzbtn { min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--ev-surface); }
.create .tzbtn:hover, .create .tzbtn[aria-expanded="true"] { background: var(--ev-surface); }
.create .tz-pop { left: 0; right: auto; }
.host-line .hosts { grid-template-columns: minmax(0, auto) auto 1fr; }

/* 선택 기능 — 처음에는 세 줄. 나머지는 「기능 더 보기」 뒤에. 켜 둔 줄·펴 둔 줄은 늘 밖 */
.opts2 { gap: 12px; }
.os > .lb { display: none; }
#opts:not(.all) .o.more:not(.open), #opts:not(.all) #inv-more-slot:not(.on) { display: none; }
.o > .tx > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o > .tx > .pts-lock { white-space: normal; }
.opts-more { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--ev-line); background: none; color: var(--ink); font: inherit; font-size: var(--fs-row); font-weight: 600; text-align: start; cursor: pointer; }
.opts-more[hidden] { display: none; }
.opts-more i { font-style: normal; font-size: var(--fs-chip); font-weight: 700; color: var(--ink-2); background: var(--accent-wash); border-radius: 999px; padding: 2px 8px; }
.opts-more i:empty { display: none; }
.opts-more svg { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.opts-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.os:last-of-type:not(:has(.o.open, #inv-more-slot.on)) { display: none; }
#opts.all .os:last-of-type { display: flex; }

@media (max-width: 860px) {
  .topbar { position: absolute; top: 8px; right: 16px; z-index: 3; }
  :root.embed .topbar { top: calc(var(--app-top, 52px) + 8px); }   /* 앱 상단바 밑으로 — .grid.create 여백과 같은 기준 */
  .cov:not(.has) .cvr { padding-top: 40px; justify-content: flex-start; }
  .cov.has { padding-top: 44px; }
}
@media (min-width: 861px) {
  .cov, .cov.has { flex-direction: column; gap: 12px; padding-top: 0; }
  .cov .cv-wrap, .cov.has .cv-wrap { width: 320px; }
  .cov .cover.pick-poster, .cov.has .cover.pick-poster { width: 320px; max-height: none; }
  .tstrip { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .opts-more svg { transition: none; } }

/* ── QA(87ec1b6) 반영 ── */
/* 스위치: 키보드 포커스가 보이게 */
.create .sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.create .sw[hidden] { display: none; }
/* 작은 칩·아이콘 버튼은 보이는 크기는 36 이지만 누르는 자리는 44 */
.create .lnk, .create button.link, .kchips button, .sum-c, .create .tzbtn, .ib, .tc { position: relative; }
.create .lnk::after, .create button.link::after, .kchips button::after, .sum-c::after, .create .tzbtn::after, .ib::after { content: ""; position: absolute; inset: -4px 0; }
/* 설명 글자 — 옅은 회색(--muted)은 이벤트 색 바탕에서 4.5:1 에 못 미친다 */
.create .hint, .cv-hint, .o > .tx > span, .oh span, .save-st, .lp-sub, .oxr small, .mth .m span, .sum-l, .photos-line .hint, .tc { color: var(--ink-2); }
/* 참가 신청 줄의 설명은 두 줄까지 — 켜면·끄면 무엇이 달라지는지 다 읽혀야 한다 */
#reg-d { white-space: normal; }
/* 달력·시각 팝업이 떠 있는 동안에는 하단 바를 치운다(좁은 화면에서 팝업 아래쪽을 덮었다) */
.create:has(.dpop, .tpop) .bar { visibility: hidden; }
/* 빠진 항목이 떠서 바가 높아지면 문의 버튼도 그만큼 올린다 */
body:has(#form:not([hidden]) .bar-errs:not([hidden])) .ask-fab, body:has(#form:not([hidden]) .bar-ask:not([hidden])) .ask-fab { bottom: calc(150px + var(--safe-bottom, 0px)); }
@media (min-width: 861px) { body:has(#form:not([hidden]) .bar-errs:not([hidden])) .ask-fab, body:has(#form:not([hidden]) .bar-ask:not([hidden])) .ask-fab { bottom: 20px; } }
.tstrip { scroll-padding-inline: 16px; }

/* ══ 11/19 stage 피드백 2차 — 줄마다 긋던 헤어라인 없음(묶음은 간격·옅은 면) · 테마 링 안 잘림 · 공개 범위 칩이 눌린다 ══ */
/* 테마 견본: 선택 링(outline 2 + offset 2 = 4px)이 스크롤 줄의 위·아래·양끝에서 잘리지 않게 안쪽 여백 6px. 첫 카드는 여전히 화면 여백(16px)에 맞는다 */
.tstrip { margin-top: 8px; padding-block: 6px; }
.tc { scroll-margin-inline: 4px; }
/* 공개 범위 칩: 칩의 탭 영역 넓히기(::after)가 안의 select 를 덮어 눌러도 아무것도 안 열렸다 — select 자체가 44px 를 받는다 */
.sum-c.sel::after { content: none; }
.sum-c select { min-height: 44px; margin: -4px 0; }
/* 구분선 대신 간격 */
.sum, .opts2 { border-top: 0; }
.sum { padding-top: 8px; }
.opts2 { padding-top: 20px; }
.o { border-bottom: 0; }
#inv-more-slot .inv-head { border-bottom: 0; }
/* 「기능 더 보기」는 누르는 줄 — 밑줄 대신 옅은 면 */
.opts-more { border-bottom: 0; margin: 8px 0; padding: 0 14px; border-radius: 14px; background: var(--ev-surface); }
/* 하단 바: 위 선 대신 옅은 그림자. 맨 아래 줄의 스위치가 문의 버튼(바 위 44px)에 가리지 않게 목록 아래 여백 */
.bar { border-top: 0; box-shadow: 0 -10px 20px -16px rgba(20, 20, 30, .28); }
@media (max-width: 860px) { .opts2 { padding-bottom: 64px; } }
/* 티켓 티어·메타버스 칸·시간대 — 줄 사이 선 없이 간격으로 */
/* create.html 안 <style> 이 이 파일보다 뒤에 온다 — #form 을 붙여 이긴다 */
#form #ticket-tiers > .line { border-bottom: 0; padding: 12px 0; }
#form .mv-sec, #form .mv-radio label, #form .mv-public, #form details.mv-fold, #form .mv-pro, #form .tz { border-top: 0; }
#form .mv-pro { border-bottom: 0; }
#form .mv-mbar:not([hidden]) { border-top: 0; box-shadow: 0 -10px 20px -16px rgba(20, 20, 30, .28); }
/* 안내·초대장 칸: 칸마다 밑줄 대신 입력칸이 옅은 면 */
#form .fan-sec .fld { border-bottom: 0; padding: 10px 0; }
#form .fan-in, #form .fan-x { box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: var(--ev-surface); }
#form .fan-x input { padding: 0; }
#form .inv-ta { padding: 10px 12px !important; border-bottom: 0 !important; }
#form .fan-in:focus-visible, #form .fan-x:focus-within { box-shadow: inset 0 0 0 1.500px var(--ev-brand); }
#form .fan-sec .fld.bad .fan-in, #form .fan-sec .fld.bad .fan-x { box-shadow: inset 0 0 0 1.500px var(--danger); }
#form .inv-ac input, #form .inv-pay-in { border-bottom: 0; border-radius: 10px; background: var(--ev-surface); padding: 9px 10px; }
#form .inv-ac input:focus-visible, #form .inv-pay-in:focus-visible { box-shadow: inset 0 0 0 1.500px var(--ev-brand); }
#form .inv-ac input.bad, #form .inv-pay-in.bad { box-shadow: inset 0 0 0 1.500px var(--danger); }
/* 완료 화면 다음 할 일 — 줄마다 선 대신 간격 */
.done .nx, .done .nx > a, .done .nx > button, .done .promo-nudge { border-top: 0; border-bottom: 0; }


/* ══ 11/19 stage 피드백 3차 — 공개 범위 목록 · 안쪽 스위치 없음 · 「기능 더 보기」·초대장 줄 정렬 · 클릭 포커스 링 없음 ══ */
/* 포커스 링은 키보드로 옮겨 왔을 때만. 누르거나 탭해서 생긴 포커스에는 테두리가 없다 */
#form :focus:not(:focus-visible) { outline: none; }
#form .sum-c:focus-visible, #form .oxr:focus-visible, #form .seg button:focus-visible, #form .opts-more:focus-visible, #form .vis-pop [role=option]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 공개 범위 — 칩 + 상단 ⋯ 메뉴(.menu-pop)와 같은 흰 둥근 카드 */
.vis-wrap { position: relative; display: inline-flex; max-width: 100%; }
.vis-btn { gap: 4px; padding-right: 8px; }
.vis-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.vis-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.vis-pop { left: 0; right: auto; min-width: 15em; z-index: 45; }
.vis-pop[hidden] { display: none; }
.vis-pop [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.vis-pop [role=option] svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.vis-pop [role=option][aria-selected="true"] svg { visibility: visible; }
.vis-pop [role=option]:focus-visible { outline-offset: -2px; }

/* 세그먼트 — 펼친 안쪽의 둘 중 하나 고르기(스위치 대신) */
.ox .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 0; padding: 3px; border-radius: 12px; background: var(--ev-surface); }
.ox .seg button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-sub); font-weight: 600; white-space: normal; line-height: 1.3; cursor: pointer; }
.ox .seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 30, .12); }
.ox .seg button:disabled { cursor: default; opacity: .55; }
.seg-wrap { display: grid; gap: 8px; }
.seg-wrap .seg-l { display: grid; gap: 2px; font-size: var(--fs-sub); font-weight: 500; color: var(--ink); }
.seg-wrap .seg-l small { font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.45; }

/* 값 줄 — 이름 · 값 · › . 누르면 그 자리에서 고친다 */
.val-row { width: 100%; }
.val-row > span { margin-right: auto; }
.val-row em { font-size: var(--fs-sub); font-weight: 600; color: var(--ink); }
.val-row svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.val-row[aria-expanded="true"] svg { transform: rotate(90deg); }
.cap-edit[hidden] { display: none; }
.cap-edit .cap-in input[type="number"] { background: var(--surface); }
#form .cap-in input[type="number"]:focus { outline: none; box-shadow: inset 0 0 0 1.500px var(--ev-brand); }
.cap-edit .lnk { background: var(--surface); }

/* 추가 버튼 줄 — 「+ 신청 질문 추가」 */
.add-row { width: 100%; justify-content: flex-start; gap: 8px; color: var(--ink); font-weight: 600; }
.add-row svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; }
#form .qb-add { height: auto; font-size: var(--fs-sub); }
#form-builder .qb { gap: 8px; }
/* 테마 위에서 .qb 전체가 반투명 면이 되면 「+ 신청 질문 추가」 면 아래로 안내 글이 여백 없이 삐져나와 보였다(11/25 대표) — 만들기 화면에선 면을 걷고 안내는 버튼 글자 줄에 맞춘다 */
html.themed #form-builder .qb { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#qb-hint { margin: 0; padding: 0 14px; font-size: var(--fs-meta); }

/* 「기능 더 보기」 — 목록 줄과 같은 열(아이콘 20 · 제목 · 오른쪽 개수·화살표), 면 없음 */
.opts-more { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 46px; gap: 2px 12px; align-items: center; margin: 0; padding: 12px 0; min-height: 0; border-radius: 0; background: none; }
.opts-more > .oi { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.opts-more > .oi circle { fill: var(--muted); stroke: none; }
.opts-more[aria-expanded="true"] > .oi { transform: none; }
.opts-more > span { font-size: var(--fs-row); font-weight: 600; }
.opts-more i { grid-column: 3; justify-self: end; }
.opts-more svg:last-child { grid-column: 4; margin: 0; justify-self: center; }   /* 화살표는 스위치 열(46px) 가운데 */

/* 초대장 정보 — 「더 많은 기능」 안에서는 다른 줄과 같은 그리드. 장소 밑(경조사)에서는 아이콘 없이 제목 */
.inv-oi { display: none; }
#inv-more-slot .inv-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
#inv-more-slot .inv-oi { display: block; align-self: start; margin-top: 2px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
#inv-more-slot .inv-head .grow { padding-left: 0; gap: 0; }
#inv-more-slot .inv-head .rule { font-size: var(--fs-row); font-weight: 600; line-height: inherit; }
#inv-more-slot .inv-head .hint { margin: 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--ink-2); }

/* ══ 11/19 stage 피드백 4차 — 폼 안에 네이티브 select·체크박스·숫자 스피너를 남기지 않는다 ══ */
/* 숫자 칸: 스피너(▲▼) 없음 — 폰은 숫자 키패드(inputmode), 정원은 − / + */
#form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
#form input[type="number"]::-webkit-inner-spin-button, #form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* 체크박스: 같은 모양의 둥근 네모 + 체크(스위치 안의 입력은 제외) */
#form :not(.sw) > input[type="checkbox"]:not([hidden]) { -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center; width: 20px; height: 20px; margin: 0;
  border-radius: 6px; background: var(--ev-soft); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--ink) 28%, transparent); cursor: pointer; }
#form :not(.sw) > input[type="checkbox"]::before { content: ""; width: 10px; height: 5px; margin-top: -2px; border: solid var(--on-accent, #fff); border-width: 0 0 2px 2px; transform: rotate(-45deg); opacity: 0; }
#form :not(.sw) > input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
#form :not(.sw) > input[type="checkbox"]:checked::before { opacity: 1; }
#form :not(.sw) > input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
#form :not(.sw) > input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* select → 버튼 + 목록(create.js enhanceSelects). 목록 카드는 .menu-pop(상단 ⋯ 메뉴)과 같다 */
.csel { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.csel-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; min-width: 0; max-width: 100%; padding: 0 10px 0 12px; border: 0; border-radius: 10px;
  background: var(--ev-soft); color: var(--ink); font: inherit; font-size: var(--fs-sub); font-weight: 600; text-align: start; cursor: pointer; }
.csel-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.csel-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.csel-btn:disabled { opacity: .45; cursor: default; }
.csel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.line .csel, .fan-bd .csel { width: 100%; }
.line .csel-btn { width: 100%; }
.csel-pop { left: 0; right: auto; min-width: max(100%, 11em); max-height: min(320px, 50vh); overflow-y: auto; z-index: 45; }
.csel-pop[hidden] { display: none; }
/* 테마 위 .line·.panel 은 backdrop-filter 로 저마다 쌓임 맥락이 된다 — 그래서 목록(z 45)이 아래 줄(티어·안내)에 가려 잘렸다(11/25 대표, 티켓 통화).
   목록이 열린 동안 그 줄·묶음을 형제들보다 위로 올린다 */
.line:has(.csel-btn[aria-expanded="true"]), .panel:has(.csel-btn[aria-expanded="true"]), .opt-card:has(.csel-btn[aria-expanded="true"]) { position: relative; z-index: 50; }
.csel-pop [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.csel-pop [role=option] svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.csel-pop [role=option][aria-selected="true"] svg { visibility: visible; }
.csel-pop [role=option]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 인원 — 한 줄: 이름 · (무제한 ›) 또는 (− 숫자 + · 제한 없음) */
.cap-row { flex-wrap: wrap; row-gap: 6px; cursor: default; }
.cap-row > span:first-child { margin-right: auto; }
.cap-val { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px -6px -6px 0; padding: 0 6px 0 16px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.cap-val[hidden] { display: none; }
.cap-val em { font-style: normal; font-size: var(--fs-sub); font-weight: 600; color: var(--ink); }
.cap-val svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.cap-row .cap-edit { display: inline-flex; align-items: center; gap: 4px; }
.cap-row .cap-edit[hidden] { display: none; }
.cap-row .stp { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; position: relative; }
.cap-row .stp::after { content: ""; position: absolute; inset: -4px; }
.cap-row #f-capacity { width: 3.2em; min-height: 36px; border: 0; border-radius: 9px; background: none; padding: 0 2px; color: var(--ink); font: inherit; font-size: var(--fs-sub); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cap-row #f-capacity:focus { outline: none; box-shadow: inset 0 -2px 0 var(--ev-brand); border-radius: 0; }
.cap-row .lnk { margin-left: 2px; padding: 0 10px; background: var(--surface); }

/* 신청 질문 편집기 — 유형은 칩, 필수·기타는 토글 칩, ↑↓✕ 는 44px */
.qb-q { gap: 10px; }
.qb-top { justify-content: space-between; min-height: 36px; }
.qb-n { font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); }
#form .qb-acts { gap: 0; margin: -4px -8px -4px 0; }
#form .qb-acts button { width: 44px; height: 44px; border-radius: 999px; color: var(--ink-2); font-size: 15px; }
#form .qb-acts button:hover { background: var(--sunken); color: var(--ink); }
.qb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-kinds button, .qb-tog { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font: inherit; font-size: var(--fs-meta); font-weight: 600; cursor: pointer; position: relative; }
.qb-kinds button::after, .qb-tog::after { content: ""; position: absolute; inset: -5px 0; }
.qb-kinds button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.qb-tog { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.qb-tog::before { content: ""; width: 8px; height: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.500px currentColor; }
.qb-tog[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.qb-tog[aria-pressed="true"]::before { background: currentColor; box-shadow: none; }
#form .qb-kinds button:focus-visible, #form .qb-tog:focus-visible, #form .qb-acts button:focus-visible, #form .stp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
