/* ══════════════════════════════════════════════════════
   이벤트 표면 — 공개 페이지 · 만들기 · 관리
   2026-09-10 fnny 컬러 시스템 (출처: 피그마 「⑨ 컬러 시스템 (확정)」).
   토큰(색·타이포)은 tokengo.css를 그대로 쓴다. 여기 있는 것은
   "이벤트라는 물건"을 그리는 규칙이다.

   카드는 스트록이 없다 — 면은 --shadow로만 띄운다.
   선이 남는 곳은 입력 필드와 상태(선택·오류·강조)뿐이다.

   핵심 규칙 하나: **이벤트 페이지는 그 이벤트의 색을 입는다.**
   `--ev-brand`(주최자 색)에서 바탕 틴트와 강조색을 만든다. 앱 파랑은
   Token Go의 색이지 이벤트의 색이 아니다 — 공유되는 화면에서는
   주최자가 주인공이어야 한다 (`docs/PRD.md` 6절: 브랜드 색은 상세에서).
   ══════════════════════════════════════════════════════ */

:root {
  --ev-brand: var(--accent);          /* 면(버튼·배지)에 쓰는 원색 */
  --ev-ink: var(--accent);            /* 글자에 쓰는 색. paintBrand가 읽히게 낮춘다 */
  --ev-on-brand: #fff;                /* 강조색 위 글자. JS가 밝기 보고 정한다 */
  --ev-tint: color-mix(in srgb, var(--ev-brand) 7%, var(--bg));
  --ev-surface: color-mix(in srgb, var(--ev-brand) 3%, var(--surface));
  --ev-line: color-mix(in srgb, var(--ev-brand) 14%, transparent);
  --ev-soft: color-mix(in srgb, var(--ev-brand) 10%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ev-tint: color-mix(in srgb, var(--ev-brand) 12%, var(--bg));
    --ev-surface: color-mix(in srgb, var(--ev-brand) 6%, var(--surface));
    --ev-line: color-mix(in srgb, var(--ev-brand) 22%, transparent);
  }
}
:root[data-theme="dark"] {
  --ev-tint: color-mix(in srgb, var(--ev-brand) 12%, var(--bg));
  --ev-surface: color-mix(in srgb, var(--ev-brand) 6%, var(--surface));
  --ev-line: color-mix(in srgb, var(--ev-brand) 22%, transparent);
}

/* 네이티브 select — 다크(웹뷰 포함)에서 옵션 목록이 흰 바탕에 흰 글자로 사라지던 것.
   팝업은 select 의 color-scheme·option 색을 따른다. 배경 none 인 필드 안 select 도 포함. */
select { color-scheme: light; }
select option { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] select { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select { color-scheme: dark; } }

/* 카드 안 글자 토큰 — 커스텀 배경에서 카드 밖 글자(--ev-page-*)를 바꿔도 카드는 제 톤을 지킨다 */
:root { --ev-card-ink: #202129; --ev-card-ink-2: #696A75; --ev-card-muted: #93949E; }
:root[data-theme="dark"] { --ev-card-ink: #F4F4F6; --ev-card-ink-2: #A5A6AF; --ev-card-muted: #7D7E88; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ev-card-ink: #F4F4F6; --ev-card-ink-2: #A5A6AF; --ev-card-muted: #7D7E88; } }

/* 히어로 바퀴가 화면 밖까지 넘친다. 가로 스크롤은 어느 화면에서도 필요 없다.
   hidden이 아니라 clip을 쓴다 — hidden은 스크롤 컨테이너를 만들어
   상단바의 position:sticky를 깨뜨린다. */
html { overflow-x: clip; }
body.ev { background: var(--ev-tint); min-height: 100vh; margin: 0; overflow-x: clip; }
/* 앱 안(iframe)에서는 상단 로고 줄을 지운다. 바깥 화면에 뒤로가기가 있다. */
:root.embed .nav { display: none; }
/* 앱의 유리 상단바가 위에 떠 있다 — 그 높이(--app-top, 셸이 알려줌) + 숨 쉴 틈만큼 내린다 */
:root.embed .grid, :root.embed .page,
:root.embed .noti, :root.embed .mypage, :root.embed .points { padding-top: calc(var(--app-top, 52px) + 24px); }
/* 유리 상단바가 이미 제목을 보여준다 — 안쪽 페이지의 제목 줄은 숨겨 겹침을 없앤다 */
:root.embed .noti > .head, :root.embed .mypage > .head, :root.embed .points > .head { display: none; }
/* 앱 셸이 이미 뒤로가기를 그린다. 페이지가 하나 더 그리면 두 개가 겹친다. */
:root.embed #back { display: none; }
/* 앱 상단바가 제목을 단다 — 페이지 제목 줄·뒤로 링크는 앱에서 숨긴다 (2026-09-11) */
:root.embed .page > .head:not(.keep), :root.embed .backlink { display: none; }

/* ── 상단바 ───────────────────────────────────────────── */
/* 상단바는 따라다닌다. 모바일 웹에서 이벤트 상세로 들어가면 돌아갈 길이
   브라우저 뒤로가기밖에 없었다 — 앱에서 온 사람은 그 버튼이 없다.
   반투명 유리로 덮어 아래 내용이 비치되 글자는 읽히게 한다. */
/* 유리는 화면 끝까지 한 장이다. 예전에는 가운데 1040px에만 blur를 걸고
   ::before로 바깥을 늘렸는데, blur가 걸린 부모 안쪽의 가짜 배경은 흐려지지
   않아 좌우에 선명한 띠가 남았다. 이제 상단바가 전폭이고, 안쪽 여백으로
   내용을 가운데 맞춘다. */
.nav { position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 12px max(20px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--ev-tint) 55%, transparent);
  backdrop-filter: saturate(190%) blur(20px);
  -webkit-backdrop-filter: saturate(190%) blur(20px); }
.nav.scrolled { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--ev-tint); } }
/* 로고. 그라데이션 SVG라 색을 입히지 않는다 — 높이만 정한다. */
.nav .brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { display: block; width: auto; }
.nav .brand .logo { height: 22px; }
.nav .sp { flex: 1; }
.nav a, .nav button.link {
  background: none; border: 0; font-weight: 600; font-size: 13.5px; color: var(--muted);
  text-decoration: none; padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.nav a:hover, .nav button.link:hover { background: var(--ev-soft); color: var(--ink); }
@media (max-width: 560px) {
  .nav .wide { display: none; }
  .nav { padding: 10px 16px; }
}
/* 알림 종. 배지는 안 읽은 것이 있을 때만 뜬다. */
.nav .bell { position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; color: var(--muted); }
.nav .bell i { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal; line-height: 15px;
  text-align: center; box-shadow: 0 0 0 2px var(--ev-tint); }
.nav .bell i[hidden] { display: none; }

.nav .who { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ev-brand); color: var(--ev-on-brand); font-weight: 700; font-size: 13px;
  text-decoration: none; flex: none; padding: 0; }
.nav .who:hover { filter: brightness(1.08); background: var(--ev-brand); }

/* ── 2단 골격 ─────────────────────────────────────────── */
/* 데스크톱은 커버가 왼쪽에 붙어 따라오고, 모바일은 커버가 맨 위 한 장이다. */
/* 데스크톱은 왼쪽에 표지·주최자가 붙어 따라오고, 모바일은
   표지 → 제목 → 내용 → 주최자 순으로 한 줄이 된다. Luma와 같은 순서다 —
   모바일에서 주최자가 제목보다 먼저 나오면 누구의 무슨 행사인지 헷갈린다. */
.grid {
  max-width: 1040px; margin: 0 auto; padding: 8px 20px 120px;
  display: grid; gap: 26px 44px; align-content: start;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-areas: "cover main" "host main" ". main";
}
.grid > .side { grid-area: cover; position: sticky; top: 20px; }
.grid > .who  { grid-area: host; position: sticky; top: 400px; }
.grid > .main { grid-area: main; display: grid; gap: 26px; min-width: 0; align-content: start; }
@media (max-width: 860px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "cover" "main" "host";
    gap: 24px; padding-bottom: 140px;
  }
  .grid > .side, .grid > .who { position: static; }
}

/* ── 커버 ─────────────────────────────────────────────── */
.cover {
  aspect-ratio: 1; width: 100%; border-radius: 18px; overflow: hidden;
  background: var(--sunken) center/cover no-repeat;
  box-shadow: 0 1px 2px rgba(32,33,41,.06), 0 24px 48px -20px rgba(32,33,41,.28);
}
/* 커버가 없으면 이벤트 색으로 만든 무늬를 깐다. 회색 빈 상자보다 낫다. */
.cover.empty {
  background:
    radial-gradient(120% 90% at 20% 15%, color-mix(in srgb, var(--ev-brand) 55%, transparent), transparent 60%),
    radial-gradient(100% 80% at 85% 80%, color-mix(in srgb, var(--ev-brand) 30%, transparent), transparent 55%),
    var(--surface);
  display: grid; place-items: center;
}
.cover.empty span { font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -.03em;
  color: color-mix(in srgb, var(--ev-brand) 80%, var(--ink)); padding: 0 20px; text-align: center; }

/* ── 라벨 + 실선 (섹션 머리) ──────────────────────────── */
.rule { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; color: var(--muted); }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--ev-line); }

/* ── 주최자 ───────────────────────────────────────────── */
.host { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14.5px; }
.host .ava { width: 26px; height: 26px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: var(--ev-brand); color: var(--ev-on-brand); font-weight: 700; font-size: 12px; }

/* ── 제목 ─────────────────────────────────────────────── */
.ev-title { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.025em;
  font-weight: 800; margin: 0; text-wrap: balance; }

/* ── 정보 행 (날짜·장소) ──────────────────────────────── */
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 12px; align-items: center; text-align: left;
  background: none; border: 0; padding: 0; color: inherit; width: 100%; }
.fact.tap { cursor: pointer; }
.fact .ico { background: var(--sunken); box-shadow: none; }   /* 플랫: 옅은 타일, 그림자 없음 */
.fact.tap:hover .ico { background: var(--ev-soft); }
.fact > div:not(.ico) b { display: block; font-size: 15.5px; font-weight: 700; }
.fact > div:not(.ico) span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* 날짜는 작은 달력 조각으로. 숫자가 먼저 읽힌다. */
/* 아이콘 상자의 기본은 "가운데 하나". 15px 머리 행은 날짜 조각(.m/.d)만 쓴다 —
   기본값으로 두면 알림·오류 화면 아이콘이 첫 행에 갇혀 위로 붙는다. */
.ico { width: 46px; height: 46px; border-radius: 12px; flex: none; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center;
  transition: box-shadow var(--t-press) var(--ease); }
.ico:has(.m) { grid-template-rows: 15px 1fr; }
.ico .m { font-weight: 600; font-size: 9px; line-height: 15px; width: 100%; text-align: center; color: var(--muted); background: var(--ev-soft); }
.ico .d { font-weight: 700; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.ico.glyph { color: var(--ink-2); }
.ico.glyph svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
/* 아이콘을 담는 상자 안의 SVG는 전부 블록이어야 한다 (baseline 여백 제거) */
.ico svg, .nav .bell svg, .mi svg, .n-item .ico svg { display: block; }

/* ── 참여 카드 (Luma의 등록 카드에 해당) ──────────────── */
.join { border-radius: 14px; overflow: hidden; background: var(--ev-surface); box-shadow: var(--shadow); }
.join > h2 { margin: 0; padding: 11px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  background: var(--ev-soft); border-bottom: 1px solid var(--ev-line); }
.join .body { padding: 16px; display: grid; gap: 14px; }
.join .lead { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* 미션 줄 — QR·AR을 나란히 */
.mission { display: flex; gap: 11px; align-items: center; }
.mission .mi { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--ev-soft); color: var(--ev-ink); }
.mission .mi svg { width: 19px; height: 19px; fill: currentColor; }
.mission b { display: block; font-size: 14.5px; }
.mission span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mission .pt { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ev-ink); font-variant-numeric: tabular-nums; }

/* 정원 게이지 */
.gauge { display: grid; gap: 7px; }
.gauge .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.gauge .track { height: 6px; border-radius: 999px; background: var(--ev-soft); overflow: hidden; }
.gauge .track i { display: block; height: 100%; background: var(--ev-brand); border-radius: 999px;
  transition: width var(--t-enter) var(--ease); }

/* 이벤트 색을 입은 큰 버튼 */
.btn-ev {
  width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ev-brand); color: var(--ev-on-brand); font-weight: 700; font-size: 15.5px;
  transition: transform var(--t-press) var(--ease), filter var(--t-press) var(--ease);
}
.btn-ev:hover { filter: brightness(1.06); }
.btn-ev:active { transform: scale(.985); }
.btn-ev:disabled { background: var(--sunken); color: var(--disabled); cursor: default; filter: none; }
.btn-ev.ghost { background: var(--ev-soft); color: var(--ev-ink); }
.btn-ev.action { background: var(--action); color: var(--on-action); }
a.btn-ev { display: inline-grid; place-items: center; text-decoration: none; }

/* ── 소개 ─────────────────────────────────────────────── */
/* 마크다운 서브셋 렌더 (ev-render.js aboutHtml): p·h3·h4·blockquote·ul·ol·hr·a·strong·em·img 만 나온다 */
.about { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 10px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.about p { margin: 0 0 10px; }
.about h3, .about h4 { margin: 18px 0 6px; color: var(--ink); font-weight: 800; line-height: 1.35; }
.about h3 { font-size: 19px; }
.about h4 { font-size: 16px; margin-top: 14px; }
.about strong { color: var(--ink); font-weight: 700; }
.about blockquote { margin: 8px 0 12px; padding: 8px 14px; border-left: 3px solid var(--line-strong); background: var(--sunken); border-radius: 0 10px 10px 0; }
.about ul, .about ol { margin: 4px 0 10px; padding-left: 22px; }
.about li { margin: 2px 0; }
.about hr { border: 0; border-top: 1px solid var(--line-strong); margin: 16px 0; }
.about a { color: var(--ev-ink, var(--ink)); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.about > :first-child { margin-top: 0; }
.about > :last-child { margin-bottom: 0; }
.about-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0; cursor: zoom-in; }
/* 유튜브 라이트 임베드 — 썸네일 + ▶, 탭하면 같은 자리에 iframe */
.about-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 10px 0; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.about-yt img, .about-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.about-yt .yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(0, 0, 0, .55); transition: background .15s; }
.about-yt .yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.about-yt:hover .yt-play, .about-yt:focus-visible .yt-play { background: #f00; }
.about-yt.on { cursor: default; }

/* 소개 서식 툴바 · 링크 입력 · 미리보기 (create.html) — 칩 톤 */
.md-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.md-bar button { border: 0; border-radius: 8px; min-width: 30px; padding: 5px 9px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: var(--sunken); color: var(--ink-2); }
.md-bar button:hover { color: var(--ink); }
.md-bar button:disabled { opacity: .6; cursor: default; }
.md-bar button i { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; }
.md-bar button.pv { margin-left: auto; }
.md-bar button.pv[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.md-link { display: flex; gap: 6px; margin-bottom: 6px; }
.md-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); }
.md-link input:focus { outline: none; border-color: var(--ink-2); }
.md-link button { border: 0; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--sunken); color: var(--ink-2); }
.md-link button:first-of-type { background: var(--action); color: var(--on-action); }
.md-pv { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); }
.md-pv > small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.md-pv .about { margin: 0; font-size: 14px; }
.md-pv .about blockquote { background: var(--surface); }

/* ── 모바일 하단 고정 CTA ─────────────────────────────── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 20px calc(14px + var(--safe-bottom, 0px));
  background: color-mix(in srgb, var(--ev-tint) 35%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  display: none; }
.dock .note { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 860px) { .dock { display: block; } .join .btn-ev { display: none; } }

/* ══════════════════════════════════════════════════════
   만들기 — 폼이 아니라 초대장이다
   라벨 붙은 입력 더미가 아니라, 완성될 페이지 위에 바로 쓴다 (Luma 방식).
   ══════════════════════════════════════════════════════ */

.compose { display: grid; gap: 16px; }
.compose .name {
  width: 100%; border: 0; background: none; padding: 0; color: var(--ink);
  font-weight: 800; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; outline: none;
}
.compose .name::placeholder { color: color-mix(in srgb, var(--ink) 20%, transparent); }

/* 입력을 감싼 줄. 아이콘 + 내용 + (선택) 우측 값 */
.line { display: flex; gap: 12px; align-items: center; border: 1px solid var(--ev-line); border-radius: 12px;
  background: var(--ev-surface); padding: 10px 14px; transition: border-color var(--t-press) var(--ease); }
.line:focus-within { border-color: color-mix(in srgb, var(--ev-brand) 55%, transparent); }
.line > .ico { border: 0; background: var(--ev-soft); width: 38px; height: 38px; border-radius: 10px;
  color: var(--ev-ink); box-shadow: none; }
.line > .ico svg { width: 19px; height: 19px; }
.line .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.line label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.line input, .line select, .line textarea {
  width: 100%; border: 0; background: none; padding: 0; outline: none; color: var(--ink);
  font-weight: 600; font-size: 15px;
}
.line textarea { resize: vertical; min-height: 66px; font-weight: 500; line-height: 1.55; }
.line input::placeholder, .line textarea::placeholder { color: var(--disabled); font-weight: 500; }
.line.top { align-items: flex-start; }
.line.two { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.line.two > .ico { grid-row: span 2; align-self: start; }
/* 나란히 놓을 자리가 확실할 때만 2열로. 좁으면 달력 버튼이 잘린다. */
@media (min-width: 780px) {
  .line.two { grid-template-columns: 38px minmax(170px, 1fr) minmax(170px, 1fr); }
  .line.two > .ico { grid-row: auto; align-self: center; }
}
.line input[type="datetime-local"] { min-width: 0; }

/* 되돌릴 수 없는 동작. 저장과 같은 색이면 안 된다. */
.danger-zone h2 { color: var(--danger); }
.btn-ev.danger { background: var(--danger-wash); color: var(--danger); }
.btn-ev.danger:hover { filter: brightness(0.98); }

/* 파일 선택 줄 — 기본 file 입력은 브라우저마다 모양이 달라 숨기고 버튼을 만든다 */
.filerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filerow .pick { flex: none; border: 1px solid var(--ev-line); background: var(--surface);
  color: var(--ink); border-radius: 8px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.filerow .pick:hover { border-color: color-mix(in srgb, var(--ev-brand) 45%, transparent); }
.filerow .pick.del { color: var(--danger); border-color: transparent; padding: 6px 8px; }
.filerow .fname { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow .fname.on { color: var(--ink); font-weight: 600; }

/* 선택형 카드 (참여 유형) */
.opts { display: grid; gap: 9px; }
.opt-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px;
  background: var(--ev-surface); box-shadow: var(--shadow); cursor: pointer; }
.opt-card.on { box-shadow: var(--shadow), 0 0 0 1.5px var(--ev-brand); background: var(--ev-soft); }
.opt-card.off { opacity: .45; cursor: not-allowed; }
.opt-card input { margin: 3px 0 0; accent-color: var(--ev-brand); }
.opt-card b { display: block; font-size: 14.5px; }
.opt-card span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* 켜고 끄는 줄 */
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--ev-surface); box-shadow: var(--shadow); }
.toggle-row .grow { flex: 1; min-width: 0; }
.toggle-row .grow b { display: block; font-size: 14.5px; }
.toggle-row .grow span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sw { position: relative; width: 46px; height: 28px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--sunken);
  transition: background var(--t-press) var(--ease); }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 3px rgba(32,33,41,.25); transition: transform var(--t-press) var(--ease); }
.sw input:checked + i { background: var(--ev-brand); }
.sw input:checked + i::after { transform: translateX(18px); }

/* 지도 픽커 */
.picker { height: 240px; border-radius: 12px; overflow: hidden; background: var(--sunken); box-shadow: var(--shadow); }

.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.err { background: var(--danger-wash); color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.ok-box { background: var(--success-wash); color: var(--success); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 56px 0; line-height: 1.7; }
.empty a { color: var(--ev-ink); font-weight: 600; }

/* 복사 줄 */
.copy { display: flex; gap: 8px; align-items: center; }
.copy input { flex: 1; min-width: 0; border: 1px solid var(--ev-line); border-radius: 10px; padding: 11px 13px;
  background: var(--ev-surface); color: var(--muted); font-weight: 500; font-size: 13px; outline: none; }
.copy button { flex: none; height: 41px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ev-soft); color: var(--ev-ink); font-weight: 700; font-size: 13.5px; }

/* ══════════════════════════════════════════════════════
   관리
   ══════════════════════════════════════════════════════ */

.page { max-width: 1040px; margin: 0 auto; padding: 8px 20px 100px; }
.page.narrow { max-width: 720px; }
.head { margin: 12px 0 26px; }
.head h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 6px; letter-spacing: -.02em; }
.head p { color: var(--muted); font-size: 14px; margin: 0; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* <a>로도 <button>으로도 쓴다 — 버튼 기본 테두리·폰트가 새어 나오지 않게 여기서 지운다 (내 이벤트 카드에 검은 스트록이 생겼었다) */
.ev-card { display: grid; gap: 10px; text-align: left; padding: 16px; border: 0; border-radius: 14px; cursor: pointer;
  width: 100%; font: inherit; background: var(--ev-surface); color: var(--ink); box-shadow: var(--shadow);
  transition: transform var(--t-press) var(--ease), box-shadow var(--t-press) var(--ease); }
.ev-card:hover { box-shadow: var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--ev-brand) 45%, transparent); }
.ev-card:active { transform: scale(.99); }
.ev-card b { font-size: 15.5px; font-weight: 700; }
.ev-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
/* 이벤트 제목 아래 카테고리·참여 방식 */
.main .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }

.tag { font-weight: 600; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--ev-soft); color: var(--ev-ink); }
.tag.ok { background: var(--success-wash); color: var(--success); }
.tag.mute { background: var(--sunken); color: var(--muted); }
.tag.off { background: var(--sunken); color: var(--disabled); }

.section { margin-top: 34px; }
.section > h2 { font-size: 17px; margin: 0 0 14px; letter-spacing: -.01em; }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px 12px; }
table.list td { padding: 12px; border-top: 1px solid var(--ev-line); }
table.list td.num { font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; border-radius: 12px; background: var(--ev-surface); box-shadow: var(--shadow); }

/* QR 포스터 — 인쇄물이라 화면 테마를 따르지 않는다. 흰 종이에 검은 코드다. */
.poster { text-align: center; padding: 34px 20px 30px; background: #fff; color: #191f28;
  border-radius: 14px; box-shadow: var(--shadow); }
.poster canvas { width: 240px; height: 240px; image-rendering: pixelated; }
.poster h3 { font-size: 19px; margin: 20px 0 4px; letter-spacing: -.01em; }
.poster p { font-size: 13px; color: #4e5968; margin: 0; }
@media print {
  .nav, .dock, .no-print { display: none !important; }
  body.ev { background: #fff; }
  .page { max-width: none; padding: 0; }
  .poster { box-shadow: none; border-radius: 0; }
}

/* ── 로그인 벽 ────────────────────────────────────────── */
.gate { max-width: 360px; margin: 14vh auto; text-align: center; padding: 0 20px; }
.gate .wordmark { display: block; width: 112px; height: auto; margin: 0 auto 20px; }
.gate .mark { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--ev-soft); color: var(--ev-ink); font-weight: 800; font-size: 20px; }
.gate h1 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.01em; }
.gate p { color: var(--muted); font-size: 14px; margin: 0 0 26px; line-height: 1.6; }
.gate .btns { display: grid; gap: 9px; }
.gate button { height: 48px; border-radius: 12px; border: 1px solid var(--ev-line); background: var(--ev-surface);
  color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.gate button:hover { border-color: color-mix(in srgb, var(--ev-brand) 45%, transparent); }
.gate button.primary { background: var(--ev-brand); color: var(--ev-on-brand); border-color: transparent; }
.gate button svg { width: 18px; height: 18px; }

[hidden] { display: none !important; }

/* ── 로딩 스켈레톤 ────────────────────────────────────── */
body.loading .grid, body.loading .dock { display: none; }
body:not(.loading) #skeleton { display: none; }
.sk { border-radius: 14px; background: linear-gradient(100deg, var(--ev-soft) 40%, var(--ev-surface) 50%, var(--ev-soft) 60%);
  background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk-cover { aspect-ratio: 16/9; margin-bottom: 18px; }
.sk-line { height: 22px; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ══════════════════════════════════════════════════════
   리디자인 2026-09 — 상세 (B1~B16) · 공용 조각
   컬러 규칙: --brand-grad 는 참여 행동(참여하기·다시 등록·QR 찍기)에만.
   기능 버튼은 --action. 카드는 스트록 없음, --shadow 만. 완료는 라벨 + 무채색.
   ══════════════════════════════════════════════════════ */
.ev, .ev2, .rg-card { word-break: keep-all; }

/* 이미지 테마 — html 전체에 깔린다. 바디는 투명해져 그 위에 앉는다. 상단 유리는 --ev-tint. */
html.themed { background: var(--ev-tint, var(--bg)) var(--ev-bg-layers) var(--ev-bg-pos, center top) / var(--ev-bg-size, cover) no-repeat fixed; }
/* 유튜브 배경 — 16:9 를 화면에 cover, 다크 톤이면 35% 막 */
#bg-video { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#bg-video iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(100vh, 56.25vw); transform: translate(-50%, -50%); border: 0; }
#bg-video.dark::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
html.themed body.ev { background: transparent; }
@media (prefers-reduced-motion: reduce) { html.themed { background-attachment: scroll; } }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx-canvas[hidden] { display: none !important; }
/* 내용은 캔버스(z 0) 위에. 고정 요소(nav·dock·mtabs·pv-bar)는 제 z-index 를 가진다. */
body.ev > .grid, body.ev > .page, body.ev > #gate { position: relative; z-index: 1; }
/* 테마 위에 앉는 면 — 반투명 + 블러. 테마가 없을 땐 평소 카드. */
html.themed .stcard, html.themed .rel, html.themed .fact .ico,
html.themed .compose .line, html.themed .opt-card, html.themed .toggle-row, html.themed .rail, html.themed .panel, html.themed .qb {
  background: color-mix(in srgb, var(--surface) calc(var(--ev-surface-alpha, .86) * 100%), transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
/* 커스텀 배경(사진·유튜브) 글자 색 — 카드 밖 본문(제목·정보·소개·라벨)은 themes.js 가 준 --ev-page-* 를 입고,
   카드 안은 톤 토큰(--ev-card-*)으로 돌아간다. 톤(카드)과 글자를 따로 고를 수 있다. */
html[data-ink] .ev2 > .head, html[data-ink] .ev2 > .rest, html[data-ink] .ev2 .card-slot, html[data-ink] .compose, html[data-ink] .side-acts, html[data-ink] .page {
  color: var(--ev-page-ink); --ink: var(--ev-page-ink); --ink-2: var(--ev-page-ink); --muted: var(--ev-page-muted);
  --ev-line: color-mix(in srgb, currentColor 18%, transparent); }
html[data-ink] .stcard, html[data-ink] .rel, html[data-ink] .fact .ico,
html[data-ink] .compose .line, html[data-ink] .opt-card, html[data-ink] .toggle-row, html[data-ink] .chips, html[data-ink] .copy input, html[data-ink] .done-mark {
  color: var(--ev-card-ink); --ink: var(--ev-card-ink); --ink-2: var(--ev-card-ink-2); --muted: var(--ev-card-muted); --ev-ink: var(--ev-card-ink); }

/* 버튼 색 — 참여 행동만 그라디언트 */
.btn-ev.brand { background: var(--brand-grad); color: #fff; }
.btn-ev.brand:hover { filter: brightness(1.04); }
.btn-ev.brand:disabled { background: var(--sunken); color: var(--disabled); }
.btn-ev.action { background: var(--action); color: var(--on-action); }
button.link { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); }

/* ── 상세 골격 (.grid.ev2): .left(side · card-slot) · head · rest ──
   왼쪽 열은 래퍼 하나가 sticky. 오른쪽은 head 바로 아래 rest — 예전엔 head 가 커버+카드 높이만큼
   두 줄에 걸쳐 늘어나서 장소와 소개 사이에 빈 공간이 생겼다. */
.grid.ev2 { grid-template-areas: "left head" "left rest"; grid-template-rows: auto 1fr; }
.grid.ev2 > .left { grid-area: left; position: sticky; top: 20px; align-self: start; display: grid; gap: 16px; }
.grid.ev2 > .head { grid-area: head; display: grid; gap: 16px; min-width: 0; align-content: start; }
.grid.ev2 > .rest { grid-area: rest; display: grid; gap: 22px; min-width: 0; align-content: start; }
.grid.ev2 > .rest > :empty { display: none; }   /* 빈 guests-slot·related-slot 이 gap 만큼 여백을 남기지 않게 */
/* 플랫 (2026-09-11, 피그마 565/566): 섹션은 카드가 아니라 배경 위 콘텐츠. 사이는 1px 헤어라인 + 여백. */
.grid.ev2 > .rest > section, .grid.ev2 > .rest > div > section { border-top: 1px solid var(--ev-line); padding-top: 18px; }
.grid.ev2 .rule::after { display: none; }
@media (min-width: 861px) { .grid.ev2 { row-gap: 26px; } }
@media (max-width: 860px) {
  .grid.ev2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "head" "card" "rest"; grid-template-rows: auto; gap: 22px; padding-bottom: 140px; }
  .grid.ev2 > .left { display: contents; }
  .grid.ev2 .side { grid-area: cover; } .grid.ev2 .card-slot { grid-area: card; }
}
/* 신청 폼 미리보기 (A15) — register.css 의 .rg-q 를 입고, fieldset disabled 로 입력만 막는다 */
.form-pv { display: grid; gap: 10px; }
.form-pv .hint { margin: 0; font-size: 13px; color: var(--muted); }
.form-pv fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-pv fieldset[disabled] { opacity: .85; }
:root.embed .grid.ev2 { padding-top: calc(var(--app-top, 52px) + 12px); }

.cover.ended { filter: saturate(.25) contrast(.92); }
.cover.gen { display: block; }
.cover.gen canvas { display: block; width: 100%; height: 100%; }

/* 상태 카드 */
.tags .tag { font-style: normal; }
.tags .tag.pt { background: var(--brand-grad); color: #fff; }
/* 리워드 카드 (R7) */
.rewards { display: grid; gap: 14px; }
.rw { display: flex; gap: 12px; align-items: flex-start; }
.rw-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.rw-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rw-ic.pt { background: none; } .rw-ic.pt svg { width: 30px; height: 30px; stroke: none; }
.rw > div { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.rw b { font-size: 14.5px; } .rw span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rw .tag { margin-top: 4px; font-style: normal; }
.wallet-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .wallet-note { text-align: left; } }
.stcard { border-radius: 16px; padding: 18px; display: grid; gap: 14px; background: color-mix(in srgb, var(--ev-surface) 50%, transparent); }
.stcard h2 { margin: 0; font-size: 15px; font-weight: 800; }
.stcard .lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.stcard .badge { justify-self: start; font-size: 12.5px; font-weight: 800; padding: 6px 11px; border-radius: 999px;
  background: var(--sunken); color: var(--ink); }
.stcard.off .badge, .stcard.off .lead { color: var(--muted); }
.stcard .missions { display: grid; gap: 12px; }
.stcard .links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: -4px; }
.stcard .btn-ev { height: 50px; }
@media (max-width: 860px) { .stcard .btn-ev { display: none; } .stcard .links { justify-content: flex-start; } }

/* 써머리 이미지 스트립 */
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 20px 6px; margin: 0 -20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 128px; height: 128px; border: 0; padding: 0; border-radius: 14px; cursor: pointer;
  background: var(--sunken) center/cover no-repeat; scroll-snap-align: start; }
@media (min-width: 861px) { .strip { margin: 0; padding-left: 0; padding-right: 0; } .strip button { width: 148px; height: 148px; } }

/* 게스트 */
.guests { display: grid; gap: 12px; }
.guest-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 0; background: none; color: var(--ink); font: inherit; }
.guest-row .stack { display: flex; align-items: center; }
.guest-row .stack > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); border-radius: 999px; }
.guest-row .stack > *:first-child { margin-left: 0; }
.guest-row .more { width: 34px; height: 34px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--sunken); color: var(--ink-2); }
.guest-row .txt { flex: 1; min-width: 0; font-size: 14px; } .guest-row .txt b { font-weight: 700; } .guest-row .txt span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.guest-row .caret { color: var(--muted); font-size: 20px; }
.sheet-title { margin: 4px 0 14px; font-size: 18px; font-weight: 800; } .sheet-title span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.guest-list { display: grid; gap: 4px; }
.guest-list .g { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: 14.5px; }

/* 주최자 카드 */
.host-card { display: grid; gap: 14px; }
.host-row { display: flex; align-items: center; gap: 12px; }
.host-row b { display: block; font-size: 15px; } .host-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 관련 이벤트 */
.related { display: grid; gap: 12px; }
.rel-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rel { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--ev-surface);
  color: var(--ink); text-decoration: none; }
.rel:hover { background: var(--sunken); }
.rel .thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--sunken) center/cover no-repeat; }
.rel .txt { min-width: 0; } .rel b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 뷰어 (B11) */
dialog.viewer { align-items: stretch; background: #000; }
dialog.viewer::backdrop { background: #000; }
.v-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.v-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-close { position: absolute; top: calc(12px + var(--safe-top, 0px)); right: 14px; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.v-count { position: absolute; bottom: calc(18px + var(--safe-bottom, 0px)); left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 700; opacity: .8; }

/* 하단 dock — 버튼 하나 */
.dock .btn-ev { height: 52px; }

/* 스켈레톤 (B15) */
.sk-grid { pointer-events: none; }
.sk-cover { aspect-ratio: 1; margin: 0; }
.sk-card { height: 150px; }
body:not(.loading) #skeleton { display: none; }

/* ══════════════════════════════════════════════════════
   리워드 2026-09-10 — 포인트 카드 · 내역 · 예산 · 지갑 명단 · 충전 시트 · 지갑 동의
   --brand-grad 는 포인트 카드에만. 나머지는 크롬(--action). 카드는 --shadow 만.
   ══════════════════════════════════════════════════════ */
.pt-card { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border-radius: 16px;
  background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); text-decoration: none; word-break: keep-all; }
.pt-card .lbl { font-size: 13px; font-weight: 700; opacity: .9; }
.pt-card .bal { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pt-card .bal.big { font-size: 38px; }
.pt-card .sub { font-size: 13px; font-weight: 600; opacity: .9; }
.pt-card .link { position: absolute; top: 14px; right: 14px; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.pt-card .link:hover { background: rgba(255,255,255,.28); }
.pt-card .tagline { justify-self: end; margin-top: 8px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); }
.pt-card .stats { display: flex; gap: 18px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.pt-card .stats b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-card .stats span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }

/* 교환 준비 중 · 예산 · 지갑 명단 — 일반 카드 */
.rw-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px;
  display: grid; gap: 10px; word-break: keep-all; }
.rw-card.off { color: var(--muted); }
.rw-card .rw-head { display: flex; align-items: center; gap: 10px; }
.rw-card .rw-head b { flex: 1; font-size: 15px; font-weight: 800; color: var(--ink); }
.rw-card.off .rw-head b { color: var(--muted); }
.rw-card .rw-head .tag { flex: none; font-style: normal; }
.rw-card .rw-head button.link, .rw-card .rw-head a.link { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.rw-card .rw-sub { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.rw-card .rw-line { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rw-card .rw-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.rw-card .rw-nums b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rw-card .rw-nums b.warn { color: var(--warning); }
.rw-card .rw-nums span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rw-card .gauge .row { padding: 0; }   /* tokengo.css .row(행 컴포넌트) 패딩을 지운다 */
.rw-card .gauge .track { background: var(--sunken); }
.rw-card .gauge .track i { background: var(--action); }
.rw-card .btn-ev { height: 44px; font-size: 14px; }
.rw-card .btn-ev.action:disabled { background: var(--sunken); color: var(--disabled); }

/* 포인트 내역 목록 */
.pt-list { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-row .txt { flex: 1; min-width: 0; }
.pt-row .txt b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-row .txt span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pt-row .delta { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.pt-row .delta.minus { color: var(--muted); }
.pt-foot { margin: 18px 4px 0; font-size: 12px; line-height: 1.6; color: var(--muted); word-break: keep-all; }

/* ── 플랫 (2026-09-11) — 웹 마이·포인트 페이지. 상세(.grid.ev2)와 같은 언어:
   카드 fill·그림자 없이 배경 위 콘텐츠 + 헤어라인(--line). 브랜드 그라디언트는 포인트 숫자에만. ── */
.mypage .pt-card, .points .pt-card { background: none; box-shadow: none; border-radius: 0; color: var(--ink);
  padding: 18px 0; border-top: 1px solid var(--line); }
.points .pt-card { border-top: 0; padding: 4px 0 20px; }
.mypage .pt-card .lbl, .points .pt-card .lbl, .mypage .pt-card .sub { color: var(--muted); opacity: 1; font-weight: 600; }
.mypage .pt-card .bal, .points .pt-card .bal { justify-self: start;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.points .pt-card .bal.big { font-size: 46px; }
.mypage .pt-card .link { top: 16px; right: 0; color: var(--ink); background: var(--sunken); }
.mypage .pt-card .link:hover { background: var(--accent-wash); }
.mypage .pt-card .tagline { background: var(--sunken); color: var(--muted); }
.points .pt-card .stats { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.points .pt-card .stats span { opacity: 1; color: var(--muted); }
/* 교환 준비 중 — 카드가 아니라 헤어라인 섹션 */
.points .rw-card { background: none; box-shadow: none; border-radius: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
/* 내역 — 목록 카드 없이 행 + 헤어라인 */
.points .rule { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.points .rule::after { display: none; }
.points .pt-list { background: none; box-shadow: none; border-radius: 0; }
.points .pt-row { padding: 14px 0; }
.points .empty { text-align: left; padding: 22px 0; }

/* 충전 시트 (R4) — dialog.rg 껍데기 위에 패키지 3개 */
.tp-pack { display: grid; gap: 8px; margin: 14px 0; }
.tp-pack label { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px;
  background: var(--sunken); cursor: pointer; box-shadow: 0 0 0 1.5px transparent; }
.tp-pack label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1.5px var(--action); }
.tp-pack input { accent-color: var(--action); }
.tp-pack b { flex: 1; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-pack span { font-size: 12.5px; color: var(--muted); }
.tp-bank { padding: 13px 14px; border-radius: 12px; background: var(--sunken); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.tp-bank b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tp-bank code { font-family: inherit; font-weight: 700; color: var(--ink); }
.tp-now { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.tp-now b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-pending { padding: 12px 14px; border-radius: 12px; background: var(--warning-wash); color: var(--warning); font-size: 13px; font-weight: 600; }

/* 지갑 동의 시트 (wallet.js) */
.wl-consent .rg-body { text-align: left; padding: 24px 22px 8px; }
.wl-consent h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.wl-consent .wl-addr { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wl-consent .wl-consentText { margin: 0; padding: 13px 14px; border-radius: 12px; background: var(--sunken);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; }
.wl-consent .wl-check { margin-top: 10px; padding: 8px 4px; font-size: 14px; }
.wl-consent .rg-btn { height: 50px; }

/* ══════════════════════════════════════════════════════
   리디자인 2026-09 — 만들기 (A1~A17)
   데스크톱(≥1100): 포스터 340 · 폼 · 레일 300. 그 아래: 한 줄 + 하단 탭, 패널은 시트.
   ══════════════════════════════════════════════════════ */
.grid.create { max-width: 1280px; grid-template-columns: 340px minmax(0, 1fr) 300px;
  grid-template-areas: "cover main rail"; gap: 26px 36px; padding-bottom: 120px; }
.grid.create > .side { grid-area: cover; position: sticky; top: 20px; display: grid; gap: 8px; align-self: start; }
.grid.create > .main { grid-area: main; }
/* 위치 지도 — 네이버 로고·축척이 z-index를 들고 있어 시트 위로 뚫고 올라온다. 지도 안에 가둔다. */
#picker { position: relative; isolation: isolate; z-index: 0; overflow: hidden; }
.grid.create > .rail { grid-area: rail; position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 1099px) {
  .grid.create { max-width: 1040px; grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "cover main"; }
  /* 레일은 시트로만 뜬다 */
  .grid.create > .rail { display: none; }
  .grid.create > .rail.sheet { display: grid; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 78vh; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0; padding-bottom: calc(80px + var(--safe-bottom, 0px)); max-width: 640px; margin: 0 auto; }
  .rail.sheet .rail-tabs { display: none; }
  .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: 13px;
    padding: 7px 14px; border-radius: 999px; cursor: pointer; }
  .mtabs:not([hidden]) { display: flex; }
}
@media (max-width: 860px) {
  .grid.create { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "main"; gap: 22px; padding-bottom: 160px; }
  .grid.create > .side { position: static; }
}

/* 포스터 자리 — 비었을 때 점선 (A1) */
.cover.pick-poster { display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.cover.pick-poster.empty { background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 2px transparent;
  outline: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); outline-offset: -10px; }
.cover.pick-poster .ph { display: grid; place-items: center; gap: 6px; text-align: center; padding: 20px; }
.cover.pick-poster .ph i { width: 44px; height: 44px; border-radius: 12px; background: var(--sunken); margin-bottom: 6px;
  display: grid; place-items: center; }
.cover.pick-poster .ph i::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); }
.cover.pick-poster .ph b { font-size: 16px; font-weight: 800; color: var(--ink); }
.cover.pick-poster .ph small { font-size: 12.5px; color: var(--muted); }
.side-acts { display: flex; gap: 10px; justify-content: center; }

/* 인라인 유효성 (A16) */
.fld { display: grid; gap: 6px; }
.fld.bad .line, .fld.bad .picker { box-shadow: 0 0 0 1.5px var(--danger); }
.fld.bad .name { color: var(--ink); }
.ferr { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.line label small { font-weight: 500; color: var(--disabled); margin-left: 4px; }
.line.two.tight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.line.two.tight > .grow { grid-column: auto; }
.submit-row { display: grid; gap: 8px; margin-top: 6px; }
.submit-row .hint { text-align: center; }

/* 써머리 썸네일 */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.thumbs .thumb, .thumbs .add { width: 68px; height: 68px; border-radius: 10px; flex: none; position: relative;
  background: var(--sunken) center/cover no-repeat; }
.thumbs .thumb.busy { animation: sk 1.2s linear infinite; background-image: linear-gradient(100deg, var(--sunken) 40%, var(--surface) 50%, var(--sunken) 60%); background-size: 200% 100%; }
.thumbs .thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 999px;
  background: var(--action); color: var(--on-action); font-size: 11px; cursor: pointer; }
.thumbs .add { border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); background: none; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 레일 탭 · 패널 */
.rail-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunken); }
.rail-tabs button, .mtabs button { flex: 1; display: grid; place-items: center; gap: 3px; border: 0; background: none; padding: 8px 4px;
  border-radius: 9px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.rail-tabs button svg, .mtabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.panel { display: grid; gap: 12px; }
.panel h3 { margin: 0; font-size: 14px; font-weight: 800; }
.panel .line { padding: 9px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 0; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--sunken); color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-swatch.none { background: var(--sunken); }
/* fx.css 가 뒤에 실려 --ev-ink 를 준다 — 이미지 위 라벨은 흑/백으로 고정 */
.swatches .fx-swatch .fx-name { color: #1b1c22; background: linear-gradient(180deg, transparent, rgba(255,255,255,.85)); }
.swatches .fx-swatch .fx-name.dk { color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
.swatches .fx-swatch.none .fx-name, .swatches .fxt .fx-name { color: var(--ink); background: none; }
.fxt { display: grid; place-items: center; background: var(--sunken); }
.fxt img { width: 62%; height: 62%; object-fit: contain; margin-bottom: 14px; }
.fxt i { width: 30px; height: 30px; border-radius: 999px; margin-bottom: 14px; box-shadow: 0 0 22px 4px currentColor; opacity: .9; }

/* 모바일 하단 탭 (A2) */
.mtabs { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; gap: 2px; padding: 6px 8px calc(8px + var(--safe-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--line) 70%, transparent); }
.mtabs button.on { color: var(--ink); }
.mtabs button.draft { flex: .9; font-size: 12px; color: var(--ink); background: var(--sunken); border-radius: 12px; }

/* 미리보기 바 (A15) */
.pv-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px max(20px, calc((100% - 1040px) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent); font-size: 14px; }
.pv-bar .sp { flex: 1; }
.pv-bar .btn-ev { width: auto; height: 38px; padding: 0 16px; font-size: 13.5px; }

/* 신청 폼 빌더 (A13·A14) */
.qb { display: grid; gap: 10px; }
.qb-list { display: grid; gap: 10px; }
.qb-q { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.qb-top { display: flex; align-items: center; gap: 8px; }
.qb-top select { flex: 1; min-width: 0; border: 0; background: var(--sunken); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.qb-acts { display: flex; gap: 2px; }
.qb-acts button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.qb-acts button:hover { background: var(--sunken); color: var(--ink); }
.qb-acts button:disabled { opacity: .3; cursor: default; }
.qb-q input[type="text"], .qb-q textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); outline: none; resize: vertical; }
.qb-q input[type="text"]:focus, .qb-q textarea:focus { border-color: var(--ink-2); }
.qb-req { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.qb-req input { accent-color: var(--action); }
.qb-add { height: 42px; font-size: 14px; }

/* 포스터 모달 (A4~A7) */
.poster-card { max-width: 640px; }
.ptabs { display: flex; gap: 4px; margin: 14px 20px 0; padding: 4px; border-radius: 12px; background: var(--sunken); }
.ptabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ptabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.p-drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 34px 16px; border-radius: 14px;
  outline: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); outline-offset: -8px; }
.p-drop b { font-size: 15px; } .p-drop span { font-size: 12.5px; color: var(--muted); }
.p-drop .btn-ev { width: auto; height: 42px; padding: 0 18px; font-size: 14px; margin-top: 8px; }
.p-crop { display: grid; gap: 10px; justify-items: center; }
.crop-box { width: min(100%, 360px); aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #000; touch-action: none; cursor: grab; position: relative; }
.crop-box img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.crop-zoom { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); width: min(100%, 360px); }
.crop-zoom input { flex: 1; accent-color: var(--action); }
.p-state { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
.p-state.bad { color: var(--danger); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.p-grid button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; cursor: pointer; background: var(--sunken) center/cover no-repeat; box-shadow: var(--shadow); }
.p-grid button[aria-pressed="true"] { outline: 2.5px solid var(--action); outline-offset: 2px; }

/* 완료 (A17) — 라벨 + 무채색 체크 */
.done-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 999px; display: grid; place-items: center;
  background: var(--sunken); color: var(--ink); font-size: 28px; font-weight: 800; }
.done-acts { display: grid; gap: 10px; justify-items: center; }
.done-acts .btn-ev { width: 100%; max-width: 420px; text-align: center; text-decoration: none; box-sizing: border-box; }

/* ── 앱 셸 (app.html) — 완료 표현 · 등록 배지 (F1·F2·F5) ──
   tokengo.css 의 초록 완료를 덮는다. 완료는 「✓ 완료」 라벨 + 무채색 눌림.
   초록은 시스템 피드백(저장 성공 토스트)에만. */
.chip.done, .pin.done u, #sheet .btn.done { background: var(--sunken); color: var(--ink-2); }
#sheet .btn.done { font-weight: 800; }
.pin.dot.done { background: var(--disabled); }
.chip.reg { background: var(--sunken); color: var(--ink-2); margin-left: 4px; }
.ec-body .chip + .chip.reg { margin-left: 0; margin-top: 4px; }

/* ── 리워드 패널 (R1~R6) ─────────────────────────────── */
.rcard { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--sunken); }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper-row label { font-size: 13px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.stepper input { width: 64px; text-align: center; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); outline: none; }
.stepper input::-webkit-inner-spin-button { display: none; }
.stepper span { font-size: 13px; font-weight: 700; color: var(--muted); }
.budget { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.budget .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.budget .row b { color: var(--ink); font-weight: 800; }
.budget .track { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.budget .track i { display: block; height: 100%; background: var(--brand-grad); border-radius: 999px; }
.budget .link { justify-self: end; }
.warn { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--danger-wash); }
.warn b { font-size: 13.5px; color: var(--danger); } .warn span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.warn .btn-ev { height: 40px; font-size: 13.5px; margin-top: 4px; }
.steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: var(--ink-2); display: grid; gap: 4px; }
.r-terms-row { padding: 4px 0; }
.rcard .line { background: var(--surface); }
.rcard .hint { margin: 0; }

/* 충전 시트 (topup.js) */
.tp-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tp-row b { color: var(--ink); font-weight: 800; font-size: 16px; }
.tp-pending { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--sunken); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.tp-pending span { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.tp-packs { display: grid; gap: 8px; }
.tp-packs label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); cursor: pointer; }
.tp-packs label:has(input:checked) { box-shadow: 0 0 0 1.5px var(--ink); background: var(--surface); }
.tp-packs input { accent-color: var(--action); }
.tp-packs b { flex: 1; font-size: 15px; } .tp-packs span { font-size: 12px; color: var(--muted); }
.tp-bank { display: grid; gap: 4px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); font-size: 13px; }
.tp-bank span { color: var(--muted); font-size: 12px; font-weight: 600; } .tp-bank b { font-size: 14px; } .tp-bank small { color: var(--muted); }

/* ── 배경 직접 넣기 (T1~T8) ─────────────────────────── */
.custom-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
.custom-row .lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.ctile { display: grid; place-items: center; gap: 4px; padding: 10px 6px; border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 12px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.ctile i { font-style: normal; font-size: 16px; line-height: 1; color: var(--muted); }
.ctile b { font-size: 11.5px; font-weight: 700; }
.fx-swatch.custom { outline: 2px solid var(--action); outline-offset: 2px; }
.progress { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--brand-grad); animation: prog 1.1s ease-in-out infinite; }
@keyframes prog { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .progress i { animation: none; width: 100%; } }
.focal { position: relative; width: min(100%, 300px); aspect-ratio: 9/16; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; cursor: crosshair; }
.focal img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.focal .dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: rgba(241,46,130,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.pv-row { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.pv { display: grid; gap: 4px; justify-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.pv .bg { border-radius: 8px; background: var(--sunken) center/cover no-repeat; box-shadow: var(--shadow); }
.pv.phone .bg { width: 54px; height: 96px; }
.pv.pc .bg { width: 170px; height: 96px; }
.tone-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.tone-row small { font-weight: 500; color: var(--muted); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunken); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.yt-in { display: flex; gap: 8px; }
.yt-in input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); outline: none; }
.yt-in input:focus { border-color: var(--ink-2); }
.yt-in .btn-ev { width: auto; height: 44px; padding: 0 14px; font-size: 13.5px; flex: none; }
.yt-head { display: flex; gap: 12px; align-items: center; margin: 14px 0 10px; }
.yt-head img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--sunken); flex: none; }
.yt-head b { font-size: 14px; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── 만들기: 루마 링크 채우기 · 제목 글꼴 칩 · 소개칸 ─── */
.luma { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--ev-soft); min-width: 0; }
/* 좁은 폭(앱 웹뷰)에서 「가져오기」가 오른쪽으로 잘렸다 — 입력칸이 더는 못 줄면 버튼이 아랫줄로 */
.luma .yt-in { flex-wrap: wrap; }
.luma .yt-in input { flex: 1 1 200px; }
.luma > label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.luma > label small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.luma .p-state { margin: 0; text-align: left; }
.luma-cover { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.luma-cover img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sunken); }
.luma-cover > span { flex: 1; min-width: 0; }
.luma-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.luma-acts .btn-ev { width: auto; height: 38px; padding: 0 14px; font-size: 13px; }
.chips.fonts { margin-top: 6px; }
.chips.fonts button { font-size: 14px; font-weight: 700; padding: 5px 12px; }
/* 소개칸 — 내용만큼 자란다 (create.js growDesc). 600px 뒤로는 스크롤 */
#f-desc { min-height: 180px; max-height: 600px; overflow-y: auto; }

/* 주최자(내 프로필) · 공동주최자 — 계정 카드 줄. 자유 입력 없음 */
.hosts { display: grid; gap: 6px; margin-top: 4px; }
.host-me { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14.5px; }
.host-me b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-me > span:not(.ava) { font-size: 12px; font-weight: 600; color: var(--muted); }
.host-me .x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.host-me .x:hover { background: var(--sunken); color: var(--ink); }
.hosts .link { justify-self: start; padding-left: 0; }
.cohost-add { display: grid; gap: 8px; padding: 10px 0 4px; }
.cohost-add .p-state { margin: 0; text-align: left; }
.cohost-found { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--sunken); font-size: 14px; }
.cohost-found b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cohost-found .btn-ev { width: auto; height: 36px; padding: 0 14px; font-size: 13px; flex: none; }

/* 「설정 › 리워드」 안내 — 힌트가 묻혀서 포인트가 어디 있는지 몰랐다. 눌러서 바로 간다 */
.goto-rewards { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; background: var(--ev-soft); color: var(--ink); font: inherit; }
.goto-rewards .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.goto-rewards b { font-size: 14px; font-weight: 700; }
.goto-rewards .grow span { font-size: 12.5px; color: var(--muted); }
.goto-rewards .val { flex: none; font-size: 13px; font-weight: 700; color: var(--ev-ink); white-space: nowrap; }
.goto-rewards:hover { filter: brightness(.97); }
