/* 페이베이 화면 (소개·후원·관리·약관). 휴대폰 먼저, 바깥 글꼴·CDN 없음.
   생김새(2026-11-14 흔한 후원 도구처럼): 흰 바탕·파란 단추·둥근 카드가 기본, 어두운 화면은 남색(위 띠의 해/달 단추).
   제목·금액은 보통 글꼴 굵게, 입금 확인 순간만 인주 빨강.
   글자 14px 이상, 단추 44px 이상, 글자 대비 4.5:1 이상 (tests/gyejwachat-pages.test.mjs) */

/* 2026-11-14 다시 그림(흔한 후원 도구처럼): 흰 바탕 + 파란 주 단추 + 둥근 카드(옅은 테두리)가 기본. 어두운 화면은 남색(위 띠의 해/달 단추).
   제목·금액은 보통 글꼴 굵게(간판 글꼴 안 씀). 그라데이션·빛 번짐 없음. 인주 빨강 = 입금 확인 순간에만 */
:root {
  --paper: #f3f5f9;
  --sheet: #ffffff;
  --raise: #f7f9fc;
  --soft: #eef2f8;
  --line: #dce2ec;
  --ink: #191f28;
  --muted: #525c6b;
  --brand: #1b5fe6;
  --brand-fill: #2563eb;
  --brand-fill2: #2563eb;
  --brand-ink: #ffffff;
  --brand-soft: #e6efff;
  --seal: #d7262e;
  --seal-ink: #ffffff;
  --mark: #ffe066;
  --sky: #1d5f99;
  --ok: #0b7a4e;
  --ok-bg: #dcf3e8;
  --warn: #6e4b00;
  --warn-bg: #fbefc9;
  --danger: #c0261e;
  --danger-bg: #fde4e1;
  --glow: rgba(0, 0, 0, 0);
  --shade: rgba(25, 31, 40, .08);
  --grid: #e3e8f0;
  --check-a: #e4e8ef;
  --check-b: #f3f5f9;
  --grad: linear-gradient(var(--brand-fill), var(--brand-fill));
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --display: var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Noto Sans Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f1420;
  --sheet: #161c2a;
  --raise: #1c2333;
  --soft: #242c3e;
  --line: #323c52;
  --ink: #eef2f8;
  --muted: #a7b1c2;
  --brand: #86a9ff;
  --brand-fill: #7aa0ff;
  --brand-fill2: #7aa0ff;
  --brand-ink: #07112b;
  --brand-soft: #1d2a4d;
  --seal: #ff5a5a;
  --seal-ink: #2a0606;
  --mark: #f2dc4b;
  --sky: #7cc7ff;
  --ok: #5fe0a6;
  --ok-bg: #123527;
  --warn: #f2d36b;
  --warn-bg: #36301a;
  --danger: #ff8f87;
  --danger-bg: #3d1a1d;
  --shade: rgba(0, 0, 0, .35);
  --grid: #283247;
  --check-a: #1f2738;
  --check-b: #283147;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }
h1 { font: 800 30px/1.2 var(--display); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 800; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small, small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; } /* 화면이 옮겨 준 제목 초점은 테두리 없이 (읽기 프로그램만 알아요) */
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ── 맨 위 띠 ── */
.gc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 8px 16px; }
.gc-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.01em; }
.gc-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); position: relative; box-shadow: 0 4px 14px var(--glow); flex: none; }
.gc-mark::before { content: ""; position: absolute; left: 7px; top: 8px; width: 16px; height: 11px; border-radius: 5px; background: var(--brand-ink); }
.gc-mark::after { content: ""; position: absolute; left: 9px; top: 17px; border: 4px solid transparent; border-top-color: var(--brand-ink); border-left-color: var(--brand-ink); }
/* 이름 뒤 설명('- 계좌후원', config.mjs NAME_NOTE). 휴대폰에서는 위 띠가 좁아 숨기고(소개 첫 줄·제목에 그대로 있어요) 이름은 한 줄로 */
.gc-logo { white-space: nowrap; }
.gc-logo-note { font: 700 15px/1 var(--display); color: var(--muted); letter-spacing: 0; margin-left: -4px; white-space: nowrap; }
@media (max-width: 559px) { .gc-logo-note { display: none; } }
.gc-bar-link { white-space: nowrap; }
.gc-bar-side { display: flex; align-items: center; gap: 6px; }
.gc-bar-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 12px; }
.gc-bar-link:hover { background: var(--soft); }
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); cursor: pointer; padding: 0; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 14px; border: 1.5px solid transparent;
  font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; color: var(--ink); background: var(--soft); transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 8px 22px var(--glow); }
.btn.primary:hover { box-shadow: 0 10px 30px var(--glow); filter: saturate(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn.big { min-height: 58px; font-size: 18px; border-radius: 18px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { background: none; border: 0; padding: 0 2px; min-height: 44px; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── 카드·입력 ── */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 0 0 16px; }
.card h2:not(:first-child) { margin-top: 26px; }
.field { display: grid; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.lab { font-weight: 800; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 0; }
.lab small { font-weight: 500; color: var(--muted); }
input, select, textarea { font: 16px/1.4 var(--font); color: var(--ink); background: var(--raise); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
input[type="color"] { padding: 4px; width: 56px; flex: none; cursor: pointer; }
input[type="range"] { padding: 0; border: 0; background: none; min-height: 44px; accent-color: var(--brand-fill); }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; font-size: 15px; cursor: pointer; }
.check input, .radio input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--brand-fill); }
.form-msg { min-height: 0; margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--danger); }
.form-msg:empty { margin: 0; }
.form-msg.ok { color: var(--ok); }
.hint { font-size: 14px; color: var(--muted); margin: -10px 0 14px; }
.hint.bad { color: var(--danger); font-weight: 700; }
.hint.good { color: var(--ok); font-weight: 700; }

/* 켜고 끄기 (체크 상자를 스위치 모양으로) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.switch > span:first-child { display: grid; gap: 2px; }
.switch small { color: var(--muted); }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; min-height: 0; border-radius: 999px; background: var(--soft); border: 1.5px solid var(--line); position: relative; flex: none; cursor: pointer; padding: 0; transition: background-color .2s ease; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background-color .2s ease; }
.switch input:checked { background: var(--grad); border-color: transparent; }
.switch input:checked::after { transform: translateX(22px); background: var(--brand-ink); }

/* 고르는 칸 (여러 개 중 하나) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--raise); font-weight: 700; font-size: 15px; }
.seg input:checked + span { border-color: transparent; background: var(--grad); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ── 공통 본문 폭 ── */
.gc-donate, .gc-legal, .gc-admin { max-width: 560px; margin: 0 auto; padding: 4px 16px 36px; }
.gc-legal, .gc-admin { max-width: 760px; }

/* ── 소개 ──
   한 가지만 눈에 띄게: 오른쪽 '휴대폰 입금 알림 → 방송 화면 알림' 흐름(15초에 세 번). 나머지는 조용하게.
   단계 3개는 실제 화면을 줄인 그림(후원 페이지·은행 이체·방송 알림)으로 보여 줘요. 그림은 모두 CSS, 실제 브랜드·사람 그림 아님. */
.gc-intro { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.in-hero { display: grid; gap: 28px; padding: 18px 0 30px; align-items: center; }
.in-name { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 18px/1 var(--display); color: var(--brand); }
.in-title { font: 800 clamp(36px, 10vw, 64px)/1.08 var(--display); margin: 0 0 14px; letter-spacing: -0.02em; color: var(--ink); max-width: 9em; }
.in-lead { font-size: 18px; color: var(--muted); max-width: 30em; margin-bottom: 18px; }
/* '페이' 때문에 결제 서비스로 오해받지 않게 첫 줄 가까이에 분명히 (config.mjs NO_MONEY_LINE) */
.in-nomoney { display: inline-block; font-size: 16px; font-weight: 700; color: var(--ink); background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; max-width: 34em; }
.in-facts { display: grid; gap: 8px; margin: 0 0 22px; max-width: 34em; }
.in-facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.in-facts > div:last-child { border-bottom: 1px solid var(--line); }
.in-facts dt { font-weight: 800; font-size: 16px; }
.in-facts dd { margin: 0; color: var(--muted); font-size: 15px; }
.in-facts .fx-zero dt { font: 800 22px/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* '후원금 수수료 0원'은 글자가 커서 이름 칸(9.5em)에 안 들어가요 → 이 줄만 이름 위·설명 아래로 (2026-11-20) */
.in-facts > .fx-zero { grid-template-columns: 1fr; }
.in-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.in-trial { font-size: 14px; color: var(--muted); }
/* 방송 화면 흉내 — 유튜브 라이브 시청 화면처럼(2026-11-18): 왼쪽 영상(가운데 알림) · 아래 제목·채널 · 오른쪽 실시간 채팅.
   로고·상표 없이 배치·분위기만 비슷하게, 밝은 화면에서도 늘 어두운 틀. 휴대폰은 영상 위·채팅 아래로 쌓여요 */
.in-stage { position: relative; }
.in-yt { display: grid; gap: 12px; padding: 12px; border-radius: 22px; background: #0f0f12; color: #f1f1f4; border: 1px solid #2c2c33; box-shadow: 0 30px 60px var(--shade); }
.yt-main { min-width: 0; display: grid; gap: 10px; align-content: start; }
.in-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1d1640; }
/* 영상 속 그림: 단색 도형만 (해·언덕 둘·바닥) */
.yt-scene, .yt-scene i { position: absolute; display: block; }
.yt-scene { inset: 0; }
.yt-sun { width: 17%; aspect-ratio: 1; border-radius: 50%; background: #ff9a5c; left: 66%; top: 16%; }
.yt-hill { left: -10%; width: 70%; bottom: 22%; height: 36%; background: #33265f; clip-path: polygon(0 100%, 28% 18%, 52% 64%, 74% 30%, 100% 100%); }
.yt-hill2 { right: -8%; width: 62%; bottom: 22%; height: 28%; background: #45307a; clip-path: polygon(0 100%, 34% 30%, 58% 62%, 84% 8%, 100% 100%); }
.yt-floor { left: 0; right: 0; bottom: 0; height: 22%; background: #261a4d; border-top: 2px solid #ff7aa8; }
.yt-top { position: absolute; left: 10px; top: 10px; z-index: 3; margin: 0; display: flex; align-items: center; gap: 6px; }
.in-live { padding: 2px 8px; border-radius: 4px; background: #e5262f; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.4; }
.yt-viewers, .yt-sample { padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; }
.yt-sample { position: absolute; right: 10px; top: 10px; z-index: 3; }
/* 영상 아래 조작 줄 (모양만) */
.yt-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 30px; display: flex; align-items: center; gap: 12px; padding: 3px 12px 0; background: rgba(0, 0, 0, .45); }
.yt-bar i { display: block; flex: none; }
.yt-prog { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #e5262f; }
.yt-pause { width: 11px; height: 12px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.yt-vol { width: 0; height: 0; border: 6px solid transparent; border-right: 8px solid #fff; border-left-width: 0; }
.yt-bar em { font-style: normal; font-size: 14px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.yt-bar em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5262f; }
.yt-full { margin-left: auto; width: 14px; height: 11px; border: 2px solid #fff; border-radius: 2px; }
/* 제목·채널 줄 (가짜 예시 채널) */
.yt-info { display: grid; gap: 8px; min-width: 0; }
.yt-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.35; color: #f1f1f4; }
.yt-ch { margin: 0; display: flex; align-items: center; gap: 10px; }
.yt-av { width: 36px; height: 36px; border-radius: 50%; background: #3fae7a; color: #0f0f12; display: grid; place-items: center; font-weight: 800; flex: none; }
.yt-chn { display: grid; line-height: 1.3; min-width: 0; }
.yt-chn b { font-size: 15px; }
.yt-chn small { font-size: 14px; color: #a9a9b3; }
.yt-subs { margin-left: 6px; padding: 6px 14px; border-radius: 99px; background: #f1f1f4; color: #0f0f12; font-size: 14px; font-weight: 800; flex: none; }
/* 실시간 채팅: 채팅 줄 사이에 후원은 금액 색 띠로 (색은 금액 구간 --t1~--t5) */
.yt-chat { min-width: 0; height: 320px; display: flex; flex-direction: column; background: #18181d; border: 1px solid #2c2c33; border-radius: 12px; overflow: hidden; }
.yt-chat-h { margin: 0; padding: 9px 12px; border-bottom: 1px solid #2c2c33; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.yt-chat-h b { font-size: 15px; }
.yt-chat-h small { font-size: 14px; color: #a9a9b3; }
.yt-msgs { list-style: none; margin: 0; padding: 8px 10px; flex: 1; min-height: 0; contain: size; /* 채팅 줄 수가 영상 높이를 늘리지 않게 (넘치면 위 줄이 가려져요) */ display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; font-size: 14px; line-height: 1.4; }
.yt-msg { color: #f1f1f4; }
.yt-msg b { color: #a9a9b3; font-weight: 700; margin-right: 2px; }
.yt-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); vertical-align: -4px; margin-right: 6px; }
.yt-don { display: block; border-radius: 8px; overflow: hidden; background: var(--tc, #6b3f99); color: #fff; flex: none; }
.yd-top { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; background: rgba(0, 0, 0, .22); font-size: 14px; line-height: 1.4; }
.yd-top em { font-style: normal; font-weight: 800; }
.yd-msg { display: block; padding: 5px 10px 7px; font-size: 14px; line-height: 1.4; }
/* 새 후원 자리: 세 후원이 방송 알림과 같은 시간표(15초 한 바퀴)로 번갈아 떠요 */
.yt-slot { display: grid; flex: none; }
.yt-slot > .yt-don { grid-area: 1 / 1; opacity: 0; animation: chatCycle 15s infinite; }
.yt-slot > .yt-don:nth-child(2) { animation-delay: 5s; }
.yt-slot > .yt-don:nth-child(3) { animation-delay: 10s; }
@keyframes chatCycle {
  0%, 8% { opacity: 0; transform: translateY(10px); }
  11%, 40% { opacity: 1; transform: none; }
  43%, 100% { opacity: 0; transform: none; }
}
.yt-chat-in { margin: 0; padding: 8px 10px 10px; border-top: 1px solid #2c2c33; }
.yt-chat-in span { display: block; padding: 6px 12px; border-radius: 99px; background: #26262d; color: #a9a9b3; font-size: 14px; }
.in-alerts { position: absolute; inset: 0; z-index: 4; --demo-scale: .3; }
.in-alerts .al-fit { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) scale(var(--demo-scale)); transform-origin: center; opacity: 0; animation: demoCycle 15s infinite; }
.in-alerts .al-fit:nth-child(2), .ph-note:nth-child(2) { animation-delay: 5s; }
.in-alerts .al-fit:nth-child(3), .ph-note:nth-child(3) { animation-delay: 10s; }
/* 입금 알림이 먼저(0초), 방송 알림은 약 1초 뒤 */
@keyframes demoCycle {
  0%, 6% { opacity: 0; transform: translate(-50%, -40%) scale(calc(var(--demo-scale) * .6)); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(calc(var(--demo-scale) * 1.06)); }
  13%, 30% { opacity: 1; transform: translate(-50%, -50%) scale(var(--demo-scale)); }
  33%, 100% { opacity: 0; transform: translate(-50%, -56%) scale(var(--demo-scale)); }
}
@keyframes noteCycle {
  0% { opacity: 0; transform: translateY(-14px); }
  3%, 26% { opacity: 1; transform: none; }
  30%, 100% { opacity: 0; transform: translateY(-6px); }
}
.in-phone { position: relative; width: 210px; margin: 14px 8px 0 auto; z-index: 5; border-radius: 30px; background: var(--sheet); border: 1px solid var(--line); padding: 12px 12px 16px; box-shadow: 0 24px 50px var(--shade); }
.ph-notes { position: relative; height: 58px; margin: 0 0 10px; }
.ph-note { position: absolute; inset: 0; margin: 0; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 0 8px; padding: 6px 12px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line);
  opacity: 0; animation: noteCycle 15s infinite; }
.ph-note .ph-app { grid-column: 1 / -1; font-size: 14px; color: var(--muted); line-height: 1.3; }
.ph-note b { font-size: 16px; line-height: 1.3; }
.ph-note > span:last-child { font-size: 14px; color: var(--muted); align-self: center; }
.in-phone .ph-lab { font-size: 14px; color: var(--muted); margin: 0 0 6px; text-align: center; }
.in-phone .ph-code { font: 800 36px/1 var(--display); letter-spacing: .04em; text-align: center; padding: 12px 0 10px; border-radius: 16px; background: var(--grad); color: var(--brand-ink); margin: 0; }
.in-phone .ph-row { display: flex; justify-content: space-between; font-size: 14px; margin: 10px 0 0; color: var(--muted); }
.in-phone .ph-row b { color: var(--ink); }
.in-sec { padding: 40px 0; }
.in-sec > h2 { font: 800 clamp(28px, 6vw, 40px)/1.15 var(--display); margin: 0 0 10px; letter-spacing: -0.01em; }
.in-sec > .in-sub { color: var(--muted); max-width: 40em; margin: 0 0 22px; font-size: 17px; }
/* 단계 3개: 줄인 화면 그림 + 설명. 휴대폰은 세로로, 넓은 화면은 가로 3칸 + 화살표 */
.in-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: f; }
.in-flow > li { counter-increment: f; position: relative; display: grid; gap: 6px; align-content: start; background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 18px; }
.in-flow > li > b { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.in-flow > li > b::before { content: counter(f); width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: var(--brand-ink); display: inline-grid; place-items: center; font: 800 17px/1 var(--display); flex: none; }
.in-flow > li > span { color: var(--muted); font-size: 15px; }
.fl-pic { height: 168px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); padding: 14px; display: grid; align-content: center; gap: 8px; overflow: hidden; position: relative; }
.fl-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fl-chips i { font-style: normal; font-size: 14px; font-weight: 800; text-align: center; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); }
.fl-chips i.on { background: var(--grad); color: var(--brand-ink); border-color: transparent; }
.fl-input { font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); color: var(--muted); }
.fl-btn { font-size: 14px; font-weight: 800; text-align: center; padding: 7px 0; border-radius: 10px; background: var(--grad); color: var(--brand-ink); }
.fl-bank .fl-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.fl-bank .fl-row small { color: var(--muted); }
.fl-bank .fl-row em { font-style: normal; font-weight: 800; font-size: 15px; }
.fl-bank .fl-btn { background: var(--soft); color: var(--ink); }
.fl-screen { padding: 8px; background: #0f0f12; border-color: #2c2c33; display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 8px; align-content: stretch; }
.fl-vid { position: relative; border-radius: 8px; overflow: hidden; background: #1d1640; }
.fl-vid .al-fit { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) scale(.22); }
.fl-live { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 0 6px; border-radius: 4px; background: #e5262f; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.5; }
.fl-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 6px; border-radius: 8px; background: #18181d; overflow: hidden; }
.fl-chat i { display: block; height: 8px; border-radius: 4px; background: #34343c; flex: none; }
.fl-chat i:nth-child(2) { width: 70%; }
.fl-chat .yt-don .yd-top { padding: 3px 6px; display: block; }
.fl-chat .yt-don .yd-top b { display: none; }
.fl-chat .yt-don .yd-msg { padding: 3px 6px 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.in-looks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.in-look { scroll-snap-align: start; margin: 0; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: var(--sheet); }
.in-look .lk-stage { position: relative; height: 168px; overflow: hidden; background-color: var(--check-a);
  background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%), linear-gradient(-45deg, var(--check-b) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--check-b) 75%), linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; }
.in-look .lk-stage .al-fit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.32); }
.in-look figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; }
.in-look figcaption b { font-size: 16px; }
.in-look figcaption span { font-size: 14px; color: var(--muted); }
/* 기능: 카드 대신 아이콘 + 글 목록 (줄로 나눠요) */
.in-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
.in-feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.in-feat .ft-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.in-feat .ft-ic svg { width: 24px; height: 24px; }
.in-feat .ft-ic img { display: block; width: 40px; height: 40px; object-fit: contain; }
.in-feat b { font-size: 17px; display: block; margin: 2px 0 4px; }
.in-feat p { margin: 0; color: var(--muted); font-size: 15px; }
.in-two { display: grid; gap: 12px; }
.in-two > div { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.in-two > div:first-child { background: radial-gradient(140% 120% at 0 0, var(--brand-soft), var(--sheet) 65%); }
.in-two h2 { font-size: 19px; }
.in-two p { margin: 0; color: var(--muted); }
.in-faqs { display: grid; gap: 8px; }
.in-faq { border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); margin: 0; }
.in-faq summary { cursor: pointer; font-weight: 800; padding: 12px 16px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.in-faq summary::-webkit-details-marker { display: none; }
.in-faq summary::after { content: "+"; font: 800 22px/1 var(--display); color: var(--brand); flex: none; transition: transform .2s ease; }
.in-faq[open] summary::after { transform: rotate(45deg); }
.in-faq p { padding: 0 16px 16px; margin: 0; color: var(--muted); }
.in-end { text-align: center; padding: 44px 20px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0, var(--brand-soft), var(--sheet) 70%); border: 1px solid var(--line); margin-top: 20px; }
.in-end p { font: 800 clamp(22px, 5vw, 34px)/1.25 var(--display); margin: 0 0 18px; }
@media (max-width: 420px) {
  .in-facts > div { grid-template-columns: 1fr; }
}
@media (min-width: 560px) { .in-alerts { --demo-scale: .42; } }
/* 넓으면 채팅이 영상 오른쪽으로 */
@media (min-width: 640px) {
  .in-yt { grid-template-columns: minmax(0, 1fr) 220px; }
  .yt-chat { height: auto; }
  .in-alerts { --demo-scale: .36; }
}
@media (min-width: 720px) {
  .in-feats { grid-template-columns: repeat(2, 1fr); }
  .in-two { grid-template-columns: repeat(3, 1fr); }
  .in-two > #pc { grid-column: 1 / -1; } /* PC 도우미 안내는 한 줄 통째로 */
  .in-flow { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .in-flow > li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 84px; width: 16px; height: 16px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: rotate(45deg); }
  .in-faqs { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (min-width: 980px) {
  .in-hero { grid-template-columns: 1fr 1.25fr; padding: 44px 0 56px; gap: 40px; }
  .in-yt { grid-template-columns: minmax(0, 1fr) 200px; }
  .yt-old { display: none; } /* 채팅 칸이 낮아서 지난 후원은 빼고 채팅 줄이 보이게 */
  .in-alerts { --demo-scale: .32; }
  .in-feats { grid-template-columns: repeat(3, 1fr); }
  .in-looks { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* ── 후원 페이지 ── */
.dn-cover { position: relative; margin: 4px 0 0; }
.dn-banner { height: 150px; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 18% 120%, var(--ac-to, var(--brand-fill2)) 0 30%, transparent 31%),
  radial-gradient(circle at 92% -10%, var(--ac-from, var(--brand-fill)) 0 34%, transparent 35%), linear-gradient(135deg, var(--ac-soft, var(--brand-soft)), var(--sheet)); }
.dn-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-avatar { position: absolute; left: 18px; bottom: -44px; width: 92px; height: 92px; border-radius: 30px; border: 4px solid var(--paper); background: var(--ac-grad, var(--grad)); overflow: hidden;
  display: grid; place-items: center; font: 800 40px/1 var(--display); color: var(--ac-on, var(--brand-ink)); }
.dn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dn-head { padding: 54px 4px 6px; }
.dn-head h1 { font-size: 30px; margin: 0 0 2px; }
.dn-url { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.dn-bio { white-space: pre-line; margin: 0 0 6px; font-size: 16px; }
.dn-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; background: var(--warn-bg); color: var(--warn); border-radius: 16px; padding: 10px 14px; font-size: 14px; margin: 10px 0 16px; }
.dn-warn p { margin: 0; flex: 1 1 240px; }
.dn-warn .link { color: var(--warn); font-weight: 800; font-size: 14px; }
.dn-form h2, .dn-pay h2 { font: 800 24px/1.2 var(--display); margin: 0 0 16px; letter-spacing: -0.01em; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chip span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 16px; background: var(--raise); transition: transform .15s ease, background-color .15s ease; }
.dn-amounts .chip span { min-height: 70px; font: 800 22px/1.05 var(--display); letter-spacing: -0.01em; }
.dn-amounts .chip span small { display: block; font: 700 14px/1.2 var(--font); color: var(--muted); margin-top: 4px; }
.chip input:checked + span { border-color: transparent; background: var(--ac-grad, var(--grad)); color: var(--ac-on, var(--brand-ink)); transform: translateY(-2px); box-shadow: 0 10px 22px var(--ac-glow, var(--glow)); }
.chip input:checked + span small { color: inherit; opacity: .8; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.custom input { font-size: 20px; font-weight: 800; }
.custom .unit { font-weight: 800; font-size: 18px; }
.dn-pick { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 2px 0; }
.dn-pick b { font: 800 30px/1.1 var(--display); }
.dn-tier { font-size: 14px; color: var(--muted); }
.dn-tier.on { color: var(--ac-text, var(--brand)); font-weight: 800; }
.dn-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
/* 후원 종류 (메시지·룰렛·영상) */
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kind { position: relative; display: block; cursor: pointer; }
.kind input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.kind span { display: grid; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--raise); }
.kind b { font-size: 16px; font-weight: 800; }
.kind small { font-size: 14px; color: var(--muted); }
.kind input:checked + span { border-color: var(--ac-from, var(--brand-fill)); background: var(--ac-soft, var(--brand-soft)); box-shadow: 0 0 0 3px var(--ac-glow, var(--glow)); }
.kind input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.dn-roulette, .dn-video { display: grid; gap: 12px; margin: 0 0 18px; }
.slot-list .lab { margin: 0; }
.slot-list ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.slot-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--raise); font-size: 15px; }
.sl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 2px var(--line); }
.sl-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dn-vwarn { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.dn-kind-note { margin: 12px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--ac-soft, var(--brand-soft)); color: var(--ink); font-weight: 700; font-size: 15px; }
.dn-result { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.gc-donate .btn.primary { background: var(--ac-grad, var(--grad)); color: var(--ac-on, var(--brand-ink)); box-shadow: 0 10px 26px var(--ac-glow, var(--glow)); }
.dn-closed h2, .dn-closed h1 { font: 800 26px/1.2 var(--display); }
/* 코드 표 (잘라 쓰는 표 모양): 받는 분 통장 표시에 넣을 코드 */
.ticket { position: relative; border-radius: 22px; background: var(--ac-grad, var(--grad)); color: var(--ac-on, var(--brand-ink)); margin: 0 0 18px; box-shadow: 0 16px 36px var(--ac-glow, var(--glow)); }
.tk-lab { font-size: 15px; font-weight: 800; }
.memo-code { font: 800 clamp(60px, 19vw, 84px)/1 var(--display); letter-spacing: .14em; padding-left: .14em; }
.ticket.pop .memo-code { animation: codeIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tk-cut { position: relative; height: 0; border-top: 2px dashed currentColor; opacity: .45; margin: 0 22px; }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sheet); }
.tk-cut::before { left: -35px; }
.tk-cut::after { right: -35px; }
.tk-bottom { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 18px 16px; gap: 8px; }
.tk-bottom div { display: grid; gap: 2px; }
.tk-bottom div:last-child { text-align: right; }
.tk-bottom span { font-size: 14px; font-weight: 700; }
.tk-bottom b { font: 800 24px/1.1 var(--display); }
.pay-steps { list-style: none; counter-reset: p; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.pay-steps > li { counter-increment: p; display: grid; grid-template-columns: 32px 1fr; gap: 6px 12px; align-items: center; background: var(--raise); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.pay-steps > li::before { content: counter(p); width: 32px; height: 32px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; font: 800 18px/1 var(--display); color: var(--ink); }
.pay-steps > li > :not(.ps-t) { grid-column: 1 / -1; }
.pay-steps .ps-t { font-weight: 800; font-size: 16px; }
.pay-steps .ps-d { font-size: 14px; color: var(--muted); }
.acct { display: grid; gap: 0; margin: 6px 0 0; }
.acct > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 52px; }
.acct > div:last-child { border-bottom: 0; }
.acct dt { color: var(--muted); font-size: 14px; }
.acct dd { margin: 0 0 0 auto; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; font-size: 17px; text-align: right; }
.acct #acctNo { white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct .amt { font: 800 20px/1.2 var(--display); }
/* 보내는 이름 방식(2026-11): 계좌 표가 맨 위, 코드는 고른 경우나 '다른 이름' 접기 안에서만 */
.tk-acct { padding: 18px 18px 16px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.tk-bank { margin: 2px 0 0; font-weight: 800; font-size: 17px; }
.tk-no { margin: 0; font: 800 clamp(20px, 6.2vw, 30px)/1.2 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tk-holder { margin: 0 0 8px; font-size: 15px; }
.tk-acct .btn { background: var(--ac-on, var(--brand-ink)); color: var(--ac-from, var(--brand-fill)); box-shadow: none; min-height: 48px; }
.tk-acct .btn:hover { filter: brightness(1.15); }
.ticket.pop .tk-no { animation: codeIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.dn-pay[data-mode="name"] .only-code, .dn-pay[data-mode="code"] .only-name { display: none !important; }
.dn-pay .memo-code { font: 800 34px/1.1 var(--display); letter-spacing: .14em; color: var(--ac-text, var(--brand)); }
.dn-pay .memo-mock .btn { justify-self: start; }
.payer-out { color: var(--ac-text, var(--brand)); }
.dn-clash { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft, var(--soft)); border: 1px solid var(--line); font-size: 15px; }
.dn-alt { margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--raise); }
.dn-alt summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.dn-alt p { font-size: 14px; color: var(--muted); margin: 8px 0; }
/* 같은 이름·금액이 겹치거나 이름이 두 글자일 때: 코드로 보내기를 더 눈에 띄게 (펼쳐 두고 테두리 강조) */
.dn-alt.hot { border: 2px solid var(--ac-text, var(--brand)); background: var(--ac-soft, var(--brand-soft)); }
.dn-alt.hot summary { color: var(--ink); }
.dn-alt.hot .memo-mock b { font-size: 22px; letter-spacing: .14em; }
.dn-usecode small { display: block; color: var(--muted); font-size: 14px; }
/* 한 화면 후원 (2026-11-07): 휴대폰에서 스크롤이 거의 없게 칸 사이를 줄여요 */
.dn-form .field { margin-bottom: 12px; }
.dn-form .dn-pick { margin: 6px 2px 8px; min-height: 0; }
.dn-form .dn-pick b { font-size: 24px; }
.dn-form textarea { min-height: 64px; }
.dn-more { margin: -4px 0 12px; }
.dn-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 15px; font-weight: 800; color: var(--ac-text, var(--brand)); }
.dn-more[open] summary { margin-bottom: 6px; }
.dn-acct-line { margin: 12px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.dn-acct-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dn-direct { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--ac-soft, var(--brand-soft)); color: var(--ink); font-size: 14px; }
.dn-copied { margin: -6px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 15px; }
.dn-pay[data-mode="attached"] .ticket, .dn-pay[data-mode="attached"] .pay-steps, .dn-pay[data-mode="attached"] .dn-alt, .dn-pay[data-mode="attached"] .dn-clash { display: none !important; }
.dn-pay .pay-steps > li { padding: 10px 12px; }
/* 개편 (2026-11-07): 후원 종류는 한 줄 칸, 이체 안내는 상자 없이 번호 줄, 빈 상태·오류는 아이콘 + 할 일 */
.kind-pick { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.kind span { min-height: 56px; padding: 8px 10px; border-radius: 14px; border-width: 1.5px; align-content: center; }
.kind b { font-size: 15px; }
.kind small { font-size: 14px; line-height: 1.3; }
.dn-pay .pay-steps { gap: 0; margin: 0 0 14px; }
.dn-pay .pay-steps > li { background: none; border: 0; border-radius: 0; padding: 12px 0; border-top: 1px solid var(--line); grid-template-columns: 30px 1fr; }
.dn-pay .pay-steps > li:first-child { border-top: 0; }
.dn-pay .pay-steps > li::before { width: 30px; height: 30px; border-radius: 10px; background: var(--ac-soft, var(--brand-soft)); color: var(--ac-text, var(--brand)); font-size: 16px; }
.dn-pay .pay-steps > li > :not(.ps-t) { grid-column: 2; }
.dn-acct-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 12px; border-radius: 14px; background: var(--raise); border: 1px dashed var(--line); }
.dn-acct-line > span:first-child { font-size: 14px; }
.dn-closed { text-align: center; padding: 34px 20px 28px; display: grid; justify-items: center; gap: 4px; }
.dn-closed p { color: var(--muted); max-width: 26em; }
.dn-closed .dc-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--soft); color: var(--muted); margin-bottom: 8px; }
.dn-closed.is-off .dc-ic { background: var(--warn-bg); color: var(--warn); }
.dn-closed .dc-ic svg { width: 30px; height: 30px; }
.dc-btns { margin: 6px 0 0; }
.gc-donate.is-lost { padding-top: 40px; }
.dn-qr { display: none; }
@media (min-width: 900px) {
  .gc-donate { max-width: 1000px; }
  .dn-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
  .dn-side { position: sticky; top: 12px; }
  .dn-main > .card { margin: 4px 0 0; padding: 26px 24px; }
  .dn-qr { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line); }
  .dn-qr-img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #fff; }
  .dn-qr-img svg { width: 100%; height: 100%; display: block; }
  .dn-qr p { margin: 0; display: grid; gap: 2px; }
  .dn-qr span { font-size: 14px; color: var(--muted); }
}
@media (max-width: 480px) {
  /* 휴대폰 한 화면: 배너는 접고 프로필 + 이름을 한 줄로, 경고는 한 줄 띠 */
  .is-donate .dn-side { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; align-items: center; padding-top: 4px; }
  .is-donate .dn-cover { margin: 0; }
  .is-donate .dn-banner { display: none; }
  .is-donate .dn-avatar { position: static; width: 48px; height: 48px; border-radius: 16px; border: 0; font-size: 22px; }
  .is-donate .dn-head { padding: 0; min-width: 0; }
  .is-donate .dn-head h1 { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .is-donate .dn-url { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .is-donate .dn-bio { grid-column: 1 / -1; font-size: 14px; margin: 6px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .is-donate .dn-warn { grid-column: 1 / -1; display: block; margin: 8px 0 10px; padding: 6px 12px; font-size: 14px; line-height: 1.35; border-radius: 12px; }
  .is-donate .dn-warn p { display: inline; }
  .is-donate .dn-warn .link { font-size: 14px; min-height: 0; padding: 0; margin-left: 6px; display: inline; }
  .is-donate .kind-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .is-donate .kind small { display: none; } /* 값은 고른 뒤 아래 칸에 나와요 */
  .is-donate .kind span { min-height: 48px; }
  .is-donate .dn-amounts .chip span { min-height: 48px; font-size: 19px; border-radius: 14px; }
  .is-donate .card.dn-form, .is-donate .card.dn-pay { padding: 14px; }
  .is-donate .dn-form .field { margin-bottom: 10px; }
  .is-donate .dn-form .dn-pick b { display: none; } /* 고른 금액은 칩에 이미 보여요 */
  .is-donate .dn-form .dn-pick { margin: 4px 2px 6px; }
  .is-donate .dn-form textarea { min-height: 48px; field-sizing: content; max-height: 140px; }
  .is-donate .dn-more { margin: -6px 0 6px; }
}
/* 후원 기능 보강 (2026-11-19): 후원 종류 줄(그림 + 옆으로 넘기기) · 이름 숨기기 · '○○님에게 후원하기' 단추 · 내 후원 내역 (src/gyejwachat/donate-plus.mjs) */
.dn-kinds { min-width: 0; } /* 칸(fieldset)이 줄 길이만큼 늘어나지 않게: 넘치면 옆으로 넘겨요 */
.kind-scroll { position: relative; min-width: 0; }
.is-donate .kind-pick.kind-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; overscroll-behavior-x: contain; }
.is-donate .kind-pick.kind-row::-webkit-scrollbar { display: none; }
.is-donate .kind-row .kind { flex: 0 0 auto; width: 92px; scroll-snap-align: start; }
.is-donate .kind-row .kind span { display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 92px; padding: 10px 6px 8px; text-align: center; border-radius: 16px; }
.is-donate .kind-row .kind b { font-size: 14px; line-height: 1.25; word-break: keep-all; }
.is-donate .kind-row .kind small { display: none; }
.kind-row .k-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.kind-row .k-ic svg { width: 24px; height: 24px; }
.kind-row .kind input:checked + span .k-ic { background: var(--ac-from, var(--brand-fill)); color: var(--ac-on, #fff); }
.kind-nav { position: absolute; top: 30px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.kind-nav.prev { left: -6px; }
.kind-nav.next { right: -6px; }
.kind-nav[hidden] { display: none; }
@media (hover: none) { .kind-nav { display: none; } } /* 휴대폰은 손가락으로 넘겨요 */
.dn-hide { min-height: 0; padding: 4px 0 8px; }
.dn-hide small { display: block; font-size: 14px; color: var(--muted); }
.gc-donate.is-anon #nick { color: var(--muted); }
#goPay { flex-wrap: wrap; row-gap: 0; }
#goPay .go-t { display: grid; gap: 1px; text-align: center; }
#goPay .go-t b { font-size: inherit; font-weight: 800; }
#goPay .go-t small { font-size: 14px; font-weight: 700; opacity: .9; }
.dn-mine { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--line); }
.dn-mine h2 { font-size: 18px; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dn-mine h2 small { font-size: 14px; font-weight: 600; color: var(--muted); }
.dn-mine-sum { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.dn-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dn-mine-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.dn-mine-list li:first-child { border-top: 0; }
.dn-mine-list p { margin: 0; display: flex; align-items: center; gap: 8px; }
.dn-mine-list .mn-kind { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--muted); flex: none; }
.dn-mine-list .mn-kind svg { width: 18px; height: 18px; }
.dn-mine-list b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dn-mine-list em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); }
.dn-mine-list li[data-st="confirmed"] em, .dn-mine-list li[data-st="shown"] em, .dn-mine-list li[data-st="skipped"] em { color: var(--ok); }
.dn-mine-list small { display: block; margin: 2px 0 0 36px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dn-mine-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.dn-mine-note .link { font-size: 14px; }
@media (max-width: 480px) {
  .is-donate .kind-row .kind { width: 80px; }
  .is-donate .kind-row .kind span { min-height: 80px; padding: 8px 4px 6px; }
  .kind-row .k-ic { width: 34px; height: 34px; border-radius: 12px; }
  .kind-row .k-ic svg { width: 20px; height: 20px; }
  .dn-mine { padding: 14px; }
}
/* (2026-11-09) 위에 남아 있던 닫는 괄호 하나가 바로 아래 '.memo-mock' 규칙을 통째로 무시하게 만들어서 지웠어요 — 코드 안내 상자가 다시 점선 상자로 보여요 */
.memo-mock { display: grid; gap: 4px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--sheet); border: 1.5px dashed var(--line); }
.memo-mock span { font-size: 14px; color: var(--muted); }
.memo-mock b { font: 800 24px/1.1 var(--display); letter-spacing: .12em; color: var(--ac-text, var(--brand)); }
.pay-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; border: 1.5px solid var(--line); background: var(--raise); border-radius: 18px; padding: 14px 16px; margin: 0 0 14px; position: relative; overflow: hidden; }
.pay-status b { display: block; font-size: 17px; }
.pay-status #stSub { display: block; font-size: 14px; color: var(--muted); }
.st-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--warn); align-self: start; margin-top: 6px; }
.pay-status[data-st="pending"] .st-dot { animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(255, 200, 87, .18); }
.pay-status[data-st="shown"], .pay-status[data-st="confirmed"] { border-color: var(--ok); background: var(--ok-bg); }
.pay-status[data-st="shown"] .st-dot, .pay-status[data-st="skipped"] .st-dot, .pay-status[data-st="confirmed"] .st-dot { background: var(--ok); }
.pay-status[data-st="expired"] .st-dot, .pay-status[data-st="rejected"] .st-dot { background: var(--muted); }
.pay-status[data-st="shown"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle, #ff4f8b 0 7px, transparent 8px) 12% 30% / 200px 120px, radial-gradient(circle, #ffc857 0 6px, transparent 7px) 55% 75% / 230px 130px,
  radial-gradient(circle, #5ce1ff 0 6px, transparent 7px) 88% 20% / 210px 110px; animation: confetti 1.6s ease-out both; } /* 색종이는 크고 적게 (2026-11-18) */
@keyframes confetti { from { opacity: 1; transform: translateY(-30px); } to { opacity: 0; transform: translateY(30px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes codeIn { from { opacity: 0; transform: scale(.6) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ── 대화 상자·알림 ── */
.dlg { border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; width: min(520px, calc(100vw - 32px)); background: var(--sheet); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.dlg::backdrop { background: rgba(6, 7, 20, .66); backdrop-filter: blur(3px); }
.dlg h2 { font: 800 22px/1.25 var(--display); }
.dlg-btns, .wiz-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.wiz-btns { justify-content: flex-start; }
#gcToast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: 15px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* ── 관리 화면: 들어가기 전 ── */
.gc-studio.is-out { max-width: 560px; margin: 0 auto; padding: 4px 16px 36px; }
.st-welcome { text-align: left; overflow: hidden; position: relative; }
.st-welcome::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--grad); opacity: .22; filter: blur(8px); }
.st-welcome h1, .st-signup h1, .st-recover h1 { font-size: 30px; }
.st-choice { display: grid; gap: 10px; margin: 18px 0 8px; }
.wiz-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: w; }
.wiz-steps li { counter-increment: w; font-size: 14px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--soft); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.wiz-steps li::before { content: counter(w); width: 22px; height: 22px; border-radius: 50%; background: var(--sheet); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.wiz-steps li[aria-current="step"] { background: var(--grad); color: var(--brand-ink); font-weight: 800; }
.wiz-steps li[aria-current="step"]::before { color: var(--ink); }
.prefix-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--raise); }
.prefix-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.prefix { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; background: var(--soft); }
.prefix-input input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.codes { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes li { font-family: var(--mono); font-size: 18px; font-weight: 800; letter-spacing: .08em; background: var(--soft); border-radius: 12px; padding: 10px; text-align: center; }

/* ── 관리 화면: 들어간 뒤 (넓은 화면은 왼쪽 메뉴, 휴대폰은 위 메뉴) ── */
.gc-studio.is-in { max-width: 1320px; margin: 0 auto; padding: 0 16px 40px; }
.st-side { display: grid; gap: 10px; padding: 6px 0 4px; }
.st-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-face { width: 48px; height: 48px; border-radius: 16px; flex: none; background: var(--grad); color: var(--brand-ink); display: grid; place-items: center; font: 800 22px/1 var(--display); overflow: hidden; }
.st-face img { width: 100%; height: 100%; object-fit: cover; }
.st-who > div { min-width: 0; }
.st-who h1 { margin: 0; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-who a { font-size: 14px; display: inline-flex; min-height: 32px; align-items: center; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.st-who a:hover { color: var(--brand); }
.st-live { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; background: var(--soft); color: var(--muted); }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pill[data-on="1"] { background: var(--ok-bg); color: var(--ok); }
.pill[data-on="1"]::before { box-shadow: 0 0 0 4px rgba(75, 227, 165, .18); animation: pulse 2s ease-in-out infinite; }
.pill[data-on="2"] { background: var(--warn-bg); color: var(--warn); }
.st-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 10px; scrollbar-width: none; position: sticky; top: 0; z-index: 20; background: var(--paper); }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px;
  font: 700 15px/1 var(--font); color: var(--muted); cursor: pointer; position: relative; }
.st-tabs button svg { width: 20px; height: 20px; flex: none; }
.st-tabs button:hover { color: var(--ink); }
.st-tabs button[aria-selected="true"] { color: var(--brand-ink); background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px var(--glow); }
.st-tabs .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: var(--paper); font-size: 14px; font-weight: 800; }
.st-tabs button[aria-selected="true"] .count { background: var(--brand-ink); color: var(--brand-fill); }
.st-main { min-width: 0; }
.st-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 4px 0 14px; }
.st-top h2 { font: 800 28px/1.2 var(--display); margin: 0; }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.st-guestbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.st-guestbar p { margin: 0; flex: 1 1 260px; }
.st-guestbar .btn { min-height: 44px; font-size: 14px; padding: 6px 12px; }
.st-other { margin: 6px 0 4px; }
.st-other summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--muted); }
.st-other .st-choice { margin-top: 8px; }
/* 카카오·구글 로그인 (2026-11-09, 키가 있을 때만 보여요): 버튼 모양은 공용 모듈(social-login.mjs)의 style 그대로, 여기는 자리만 */
.st-social { margin: 18px 0 0; }
.st-social .sl-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.st-social-note { margin: 4px 0 0; }
.st-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.st-or::before, .st-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.st-or + .st-choice { margin-top: 10px; }
.st-or ~ .st-other summary::after { content: "▾"; margin-left: 6px; font-size: 14px; } /* 키가 있을 때만: 펼칠 수 있는 줄로 보이게 */
.st-or ~ .st-other[open] summary::after { content: "▴"; }
.sl-card .sl-linked { font-weight: 700; }
.sl-card .sl-linked span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sl-step { margin: 12px 0 4px; }
.st-setup { border-color: var(--brand); }
.st-setup h2 { margin-top: 0; }
.st-notice { background: var(--warn-bg); color: var(--warn); border-radius: 16px; padding: 12px 16px; margin: 0 0 14px; font-weight: 700; }
.st-panel > .card:last-child { margin-bottom: 0; }
@media (min-width: 980px) {
  .gc-studio.is-in { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 28px; padding-top: 6px; }
  .st-side { position: sticky; top: 12px; align-self: start; gap: 14px; padding: 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 24px; }
  .st-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: static; background: none; }
  .st-tabs button { width: 100%; justify-content: flex-start; background: transparent; border-color: transparent; font-size: 16px; }
  .st-tabs button:hover { background: var(--soft); }
  .st-tabs button .count { margin-left: auto; }
  .st-live { flex-direction: column; }
}

/* 개편 (2026-11-07): 휴대폰은 위쪽 군더더기를 줄이고(이름 줄에 상태, 탭은 밑줄형), 넓은 화면 메뉴는 묶음 사이에 줄 */
.st-gets { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.st-gets li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-gets svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.st-gets span { display: grid; }
.st-gets small { color: var(--muted); }
@media (max-width: 979px) {
  .st-side { gap: 8px; }
  .st-who a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 32px; min-height: 32px; }
  .st-live { gap: 6px; }
  .st-live .pill { min-height: 32px; padding: 2px 10px; }
  /* (2026-11-20) 작은 숫자 카드의 글자 크기는 아래 '홈 숫자 카드' 묶음에서 카드 너비에 맞춰요 — 여기서 화면 너비로만 정하면 큰 금액이 카드 밖으로 넘쳤어요 */
  .st-tabs { gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); }
  .st-tabs button { background: transparent; border: 0; border-radius: 0; padding: 8px 10px; border-bottom: 3px solid transparent; }
  .st-tabs button[aria-selected="true"] { background: transparent; color: var(--ink); box-shadow: none; border-bottom-color: var(--brand-fill); }
  .st-tabs button[aria-selected="true"] svg { color: var(--brand); }
  .st-top { padding: 12px 0; }
  .st-top h2 { font-size: 24px; }
  .st-acts .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
}
@media (max-width: 420px) {
  .st-live .pill { font-size: 14px; }
  .st-who h1 { font-size: 19px; }
  .st-top { display: grid; grid-template-columns: 1fr; }
  .st-acts { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .st-tabs button[aria-selected="true"] { background: var(--brand-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--brand-fill); }
  .st-tabs button[aria-selected="true"] svg { color: var(--brand); }
  .st-tabs button[aria-selected="true"] .count { background: var(--danger); color: var(--paper); }
  #t-alert, #t-set, #t-acc { margin-top: 10px; position: relative; }
  #t-alert::before, #t-set::before, #t-acc::before { content: ""; position: absolute; left: 12px; right: 12px; top: -6px; border-top: 1px solid var(--line); }
}

/* 대시보드 */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 16px; }
.kpi { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi .k-lab { font-size: 14px; color: var(--muted); font-weight: 700; }
.kpi .k-val { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.kpi .k-sub { font-size: 14px; color: var(--muted); }
.kpi.hero { grid-column: 1 / -1; background: radial-gradient(140% 120% at 100% 0, var(--brand-soft), var(--sheet) 62%); padding: 20px 18px; }
.kpi.hero .k-val { font-size: clamp(48px, 11vw, 64px); line-height: 1.05; }
.kpi.hero .k-val small { font-size: 26px; font-weight: 800; margin-left: 4px; }
.dash { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.dash > * { min-width: 0; }
.dash .card { margin: 0; }
.chart-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.chart { position: relative; }
.ch-plot { position: relative; height: 180px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 2px; border-bottom: 1px solid var(--grid);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 50%; }
.ch-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; border-radius: 6px; }
.ch-col:hover, .ch-col:focus-visible { background: var(--soft); outline-offset: 0; }
.ch-bar { width: min(22px, 70%); min-height: 0; border-radius: 4px 4px 0 0; background: var(--brand-fill); }
.ch-col.now .ch-bar { background: var(--grad); box-shadow: 0 0 0 2px var(--sheet), 0 0 16px var(--glow); }
.ch-col.zero .ch-bar { height: 2px !important; background: var(--line); }
.ch-axis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.ch-axis span { white-space: nowrap; }

.ch-yl { position: absolute; right: 0; top: -2px; font-size: 14px; color: var(--muted); background: var(--sheet); padding: 0 0 0 6px; font-variant-numeric: tabular-nums; }
.ch-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 6px 10px; font-size: 14px; white-space: nowrap; }
.ch-tip b { display: block; font-size: 16px; }
.ch-table { margin-top: 10px; }
.ch-table summary { cursor: pointer; font-size: 14px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.ch-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-table th, .ch-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ch-table td:last-child, .ch-table th:last-child { text-align: right; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--raise); }
.feed .f-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 800 18px/1 var(--display); }
.feed .f-who { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-amt { font: 800 19px/1.1 var(--display); text-align: right; }
.feed .f-msg { font-size: 14px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-when { font-size: 14px; color: var(--muted); text-align: right; }
#p-set .card { max-width: 880px; }
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi.hero { grid-column: span 2; grid-row: span 2; align-content: space-between; }
}
/* 넓은 화면: 왼쪽 = 그래프 + 방송 준비, 오른쪽 = 최근 후원(두 줄에 걸쳐 길게) */
@media (min-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .dash > .d-feed { grid-column: 2; grid-row: 1 / span 2; }
  .dash > .d-quick { grid-column: 1; grid-row: 2; }
}

/* 목록 (후원 확인) */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.row-top b { font-size: 17px; }
.row .amt { font: 800 19px/1.2 var(--display); }
.row .code { font-family: var(--mono); font-weight: 800; letter-spacing: .1em; color: var(--brand); padding: 0 6px; border-radius: 8px; background: var(--brand-soft); }
.row .when { color: var(--muted); font-size: 14px; margin-left: auto; }
.row p { margin: 0; }
.row .msg { color: var(--ink); white-space: pre-wrap; }
.row .payer { margin: 0; font-size: 14px; color: var(--muted); }
.row .payer b { color: var(--ink); }
.row .why { margin: 0; font-size: 14px; color: var(--warn); font-weight: 700; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-h h2 { margin: 0 0 4px; }
.sec-h .badge { font-size: 14px; font-weight: 800; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--soft); color: var(--muted); }
.sec-h .badge.hot { background: var(--danger-bg); color: var(--danger); }
.empty { color: var(--muted); font-size: 15px; margin: 6px 0 0; padding: 18px; border-radius: 16px; background: var(--raise); text-align: center; }

/* 방송 화면 탭 */
.copy-row { display: flex; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.copy-row input { font-family: var(--mono); font-size: 16px; }
.copy-row .btn { flex: none; white-space: nowrap; }
.preview { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 16px; background: var(--check-a); display: block; }
.steps3 { list-style: none; counter-reset: s3; margin: 4px 0 14px; padding: 0; display: grid; gap: 0; }
.steps3 li { counter-increment: s3; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.steps3 li::before { content: counter(s3); width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 800 15px/1 var(--display); }
.obs-grid { display: grid; gap: 18px; }
.obs-grid > * { min-width: 0; }
.obs-prev .preview { margin: 0 0 8px; }
.obs-item { padding: 16px 0; border-top: 1px solid var(--line); }
.obs-item:first-of-type { border-top: 0; padding-top: 0; }
.obs-item h3 { margin-bottom: 4px; }
.obs-item .copy-row { margin-bottom: 0; }
@media (min-width: 1180px) {
  .obs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
  .obs-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .obs-more > h2 { grid-column: 1 / -1; }
  .obs-more .obs-item { border-top: 0; padding-top: 0; display: grid; align-content: start; }
}
.big-code { font: 800 48px/1.1 var(--display); letter-spacing: .16em; margin: 8px 0; }
.dev { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 8em 1fr; gap: 6px 10px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.note { border-radius: 16px; padding: 12px 14px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.note b { color: var(--ink); }
.note.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.note.warn b { color: inherit; }

/* ── 알림 꾸미기 ── */
.ed { display: grid; gap: 16px; }
.ed-prev { display: grid; gap: 10px; align-content: start; }
.ed-prev .preview { aspect-ratio: 16 / 10; }
.ed-prev-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-prev-bar select { width: auto; flex: 1 1 160px; }
.tier-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 6px; }
.tier-tabs button { flex: none; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--raise); color: var(--ink); font: 700 15px/1.2 var(--font); cursor: pointer; }
.tier-tabs button[aria-pressed="true"] { background: var(--grad); color: var(--brand-ink); border-color: transparent; }
.tier-tabs button.add { border-style: dashed; color: var(--brand); background: transparent; }
.ed-sec { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.ed-sec:first-of-type { border-top: 0; padding-top: 4px; }
.ed-sec > h3 { display: flex; align-items: center; gap: 8px; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; --th-s: .2; }
.th-pick { position: relative; display: grid; gap: 0; border-radius: 16px; border: 2px solid var(--line); overflow: hidden; cursor: pointer; background: var(--raise); }
.th-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; z-index: 2; }
.th-pick .th-stage { position: relative; height: 104px; overflow: hidden; background-color: var(--check-a);
  background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%), linear-gradient(-45deg, var(--check-b) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--check-b) 75%), linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.th-pick .th-stage .al-fit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--th-s)); pointer-events: none; }
.th-pick span.th-name { padding: 8px 10px; font-weight: 800; font-size: 14px; }
.th-pick:has(input:checked) { border-color: var(--brand-fill); box-shadow: 0 0 0 3px var(--brand-soft); }
.th-pick:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pk { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--raise); cursor: pointer; text-align: center; min-height: 44px; }
.pk input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.pk img { width: 56px; height: 56px; object-fit: contain; pointer-events: none; }
.pk .pk-none { width: 56px; height: 56px; border-radius: 12px; border: 2px dashed var(--line); }
.pk span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.pk:has(input:checked) { border-color: var(--brand-fill); background: var(--brand-soft); }
.pk:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pk .pk-del { position: absolute; top: -8px; right: -8px; z-index: 3; width: 32px; height: 32px; min-height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--sheet); color: var(--danger); cursor: pointer; font-size: 16px; font-weight: 800; line-height: 1; padding: 0; }
.sndlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.snd-pick { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--raise); min-height: 52px; }
.snd-pick label { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 15px; min-width: 0; }
.snd-pick label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-pick input[type="radio"] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--brand-fill); margin: 0; }
.snd-pick:has(input:checked) { border-color: var(--brand-fill); background: var(--brand-soft); }
.snd-pick.own { grid-column: span 2; } /* 올린 소리: 이름·듣기·지우기가 다 보이게 두 칸 */
.play { width: 44px; height: 44px; min-height: 44px; flex: none; border-radius: 12px; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.play svg { width: 18px; height: 18px; }
.rangebox { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.rangebox output { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.colors label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.fontpick span { font-size: 17px; }
.fontpick [data-font="heavy"] + span, .fontpick input[value="heavy"] + span { font-family: "GC Heavy", var(--font); font-weight: 400; }
.fontpick input[value="round"] + span { font-family: "GC Round", var(--font); font-weight: 400; }
.fontpick input[value="sign"] + span { font-family: "GC Sign", var(--font); font-weight: 400; }
.fontpick input[value="hand"] + span { font-family: "GC Hand", var(--font); font-weight: 400; font-size: 19px; }
.fontpick input[value="serif"] + span { font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; }
.ed-save { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 -16px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.ed-save .form-msg { margin: 0; flex: 1 1 200px; }
.upl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.upl small { color: var(--muted); }
.prof { display: grid; gap: 14px; }
.prof-imgs { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.prof-av { width: 96px; height: 96px; border-radius: 30px; background: var(--grad); display: grid; place-items: center; overflow: hidden; font: 800 40px/1 var(--display); color: var(--brand-ink); }
.prof-av img, .prof-bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-bn { height: 110px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), var(--soft)); border: 1px solid var(--line); }
.acc-dots { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-dot { position: relative; width: 44px; height: 44px; }
.acc-dot input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.acc-dot span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--sheet); box-shadow: 0 0 0 2px var(--line); }
.acc-dot input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.acc-dot input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (min-width: 720px) {
  .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); --th-s: .145; }
}
@media (min-width: 1180px) {
  .ed { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: start; }
  .ed-prev { position: sticky; top: 12px; order: 2; }
}

/* ── 위젯 (2단계) ── */
.wd-pick { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; }
.wd-pick button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--raise); color: var(--ink); font: 700 15px/1.2 var(--font); cursor: pointer; }
.wd-pick button[aria-selected="true"] { background: var(--grad); color: var(--brand-ink); border-color: transparent; }
.wd-pick .on-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--sheet); }
.wd-pick button[aria-selected="true"] .on-dot { background: var(--brand-ink); }
.wd .preview { aspect-ratio: 16 / 10; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wd-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--raise); margin: 0 0 12px; }
.wd-now b { font: 800 24px/1.2 var(--display); }
.wd-now span { color: var(--muted); font-size: 14px; }
.slots { display: grid; gap: 8px; }
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 64px 44px; gap: 8px; align-items: center; }
.slot-row output { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.slot-row .play { color: var(--danger); font-size: 18px; font-weight: 800; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist .row-top .tag { font-size: 14px; font-weight: 800; padding: 1px 8px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.vlist .row-top .tag.hot { background: var(--warn-bg); color: var(--warn); }
.vlist .vt { font-weight: 700; color: var(--ink); }
.vlist .vt a { color: var(--sky); }
.spin-log li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spin-log li:last-child { border-bottom: 0; }
.spin-log .res { font-weight: 800; color: var(--brand); }
.spin-log .when { margin-left: auto; color: var(--muted); font-size: 14px; }
.row .kind-tag { font-size: 14px; font-weight: 800; padding: 1px 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }

/* ── 약관·운영자 ── */
.gc-legal h1 { font-size: 30px; }
.gc-legal h2 { font-size: 18px; margin: 28px 0 8px; }
.tw { overflow-x: auto; }
.tw table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--sheet); }
.tw th, .tw td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.tw th { background: var(--soft); }
@media (max-width: 600px) {
  .tw table, .tw tbody, .tw tr, .tw td { display: block; }
  .tw tr:first-child { display: none; }
  .tw tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; margin: 0 0 10px; }
  .tw td { border: 0; padding: 4px 12px; }
  .tw td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 800; color: var(--muted); }
}
.gc-legal a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
.gc-admin pre { white-space: pre-wrap; font-size: 14px; background: var(--soft); padding: 10px; border-radius: 12px; }

/* ── 푸터 ── */
.gc-foot { border-top: 1px solid var(--line); margin-top: 28px; padding: 22px 16px 30px; color: var(--muted); font-size: 14px; }
.gc-foot-in { max-width: 1160px; margin: 0 auto; }
.gc-foot a { color: var(--ink); }
.gc-foot-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 8px; }
.gc-foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.gc-biz { margin: 0; }
.is-studio .gc-foot { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in-alerts .al-fit:first-child { opacity: 1; transform: translate(-50%, -50%) scale(var(--demo-scale)); }
  .ph-note:first-child { opacity: 1; transform: none; }
  .yt-slot > .yt-don:first-child { opacity: 1; transform: none; }
}

/* ── 홈 '시작하기' 순서 (2026-11-14): 처음 온 방송인이 할 일 5가지 ── */
.st-start { margin: 0 0 16px; border-color: var(--brand); }
.st-start h2 small { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.st-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 4px 0 14px; }
.st-bar > span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .3s; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.st-steps li:first-child { border-top: 0; }
.st-steps b { font-size: 16px; line-height: 32px; }
.st-steps p { margin: 0 0 8px; }
.st-steps .row-btns { margin: 0; }
.st-no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--soft); color: var(--muted); }
.st-steps li.next .st-no { background: var(--grad); color: var(--brand-ink); }
.st-steps li.done .st-no { background: var(--ok-bg); color: var(--ok); }
.st-steps li.done b { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--line); }
.dash.fresh { display: block; }

/* '확인을 더 편하게' 도구는 접어서 (눌러서 펼쳐요) */
details.cf-tool > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; }
details.cf-tool > summary::-webkit-details-marker { display: none; }
details.cf-tool > summary h3 { margin: 0; flex: 1; }
details.cf-tool > summary::after { content: "펼치기"; font-size: 14px; color: var(--muted); font-weight: 700; }
details.cf-tool[open] > summary::after { content: "접기"; }
details.cf-tool[open] > summary { margin-bottom: 6px; }

/* ── 앱 연결: 어떤 휴대폰 고르기 + 아이폰 문자 자동 확인 (2026-11-14) ── */
.os-card .os-pick { margin-top: 10px; }
.sms-card .need { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 4px; }
.sms-card .need small { color: var(--muted); }
.sms-steps li > span { display: block; }
.sms-steps li small { display: block; color: var(--muted); margin-top: 4px; }
.sms-steps code, .sms-card code { font-family: var(--mono); background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.sms-url { margin: 10px 0 4px; display: grid; gap: 8px; }

/* ══ 흔한 후원 도구처럼 (2026-11-14 다시 그림) — 위 규칙들을 여기서 덮어요.
   흰 카드 + 옅은 테두리 + 아주 옅은 그림자, 파란 주 단추·검은 보조 단추, 둥근 모서리, 왼쪽 메뉴는 고른 칸만 옅은 파랑 ══ */
body { font-feature-settings: "tnum"; background: var(--paper); }
h1 { font: 800 30px/1.2 var(--display); letter-spacing: -0.02em; }
h2 { font: 800 20px/1.3 var(--display); letter-spacing: -0.015em; }
.num, .k-val, .amt, .tk-no, .memo-code, .acct dd { font-variant-numeric: tabular-nums; }
.card, .kpi { border-radius: var(--radius); border: 1px solid var(--line); background: var(--sheet); box-shadow: 0 1px 2px var(--shade); }
.btn { border-radius: 12px; box-shadow: none; font-weight: 700; }
.btn.primary, .btn.primary:hover { background: var(--brand-fill); color: var(--brand-ink); box-shadow: none; filter: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand-fill) 88%, #000); }
.btn.dark { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--sheet)); }
.btn.ghost { background: var(--sheet); border: 1px solid var(--line); }
.gc-bar-wrap, .gc-top { background: var(--sheet); }
.gc-mark { border-radius: 12px; background: var(--brand-fill); box-shadow: none; }
.seg input:checked + span, .wiz-steps li[aria-current="step"], .tier-tabs button[aria-pressed="true"], .wd-pick button[aria-selected="true"] { background: var(--brand-fill); color: var(--brand-ink); }
.switch input:checked { background: var(--brand-fill); }
.ch-col.now .ch-bar { box-shadow: none; }
.st-welcome::before { display: none; }
.st-face, .prof-av { background: var(--brand-fill); color: var(--brand-ink); }
.in-two > div:first-child, .in-end { background: var(--sheet); }

/* 홈 숫자 카드: 둥근 색 아이콘 + 이름 + 큰 숫자 (대시보드처럼) */
.kpi { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.kpi > :not(.k-ic) { grid-column: 2; }
.kpi .k-ic { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); align-self: start; }
.kpi .k-ic svg { width: 22px; height: 22px; }
.kpi .k-ic.c2 { background: var(--ok-bg); color: var(--ok); }
.kpi .k-ic.c3 { background: var(--warn-bg); color: var(--warn); }
.kpi .k-val { font-family: var(--display); font-weight: 800; }
.kpi.hero { background: var(--sheet); }
.kpi.hero .k-ic { width: 52px; height: 52px; background: var(--brand-fill); color: var(--brand-ink); }
/* 큰 금액이 카드 밖으로 넘치지 않게 (2026-11-20 점검: 휴대폰에서 '863,000원'이 카드 오른쪽 밖으로 나갔어요).
   작은 카드는 아이콘 옆에 이름만 두고, 숫자·설명은 그 아래 카드 너비 전체를 써요. 숫자 크기는 카드 너비에 맞춰 줄어요(억 단위까지 한 줄). */
.kpi:not(.hero) { container-type: inline-size; }
.kpi:not(.hero) .k-ic { grid-row: 1; align-self: center; }
.kpi:not(.hero) .k-val, .kpi:not(.hero) .k-sub { grid-column: 1 / -1; }
.kpi:not(.hero) .k-val { font-size: 20px; font-size: clamp(17px, 13.5cqw, 26px); white-space: nowrap; }
@media (max-width: 719px) {
  /* 휴대폰: '오늘 받은 후원' 큰 숫자도 아이콘 아래 줄 전체를 써요 (하루 백만 원을 넘어도 한 줄) */
  .kpi.hero .k-ic { grid-row: 1; align-self: center; }
  .kpi.hero .k-val, .kpi.hero .k-sub { grid-column: 1 / -1; }
}

/* 간편 설정: 주소 한 줄씩 (이름 · 주소 칸 · 복사) + 순서 */
.easy-rows { display: grid; gap: 10px; margin: 0 0 6px; }
.easy-row { display: grid; gap: 6px; }
.easy-row > b { font-size: 15px; }
.easy-row .copy-row { margin: 0; }
.easy-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: es; }
.easy-steps li { counter-increment: es; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); }
.easy-steps li::before { content: "STEP " counter(es); font-size: 14px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.copy-row input { background: var(--raise); border-radius: 10px; }

/* 입금 확인 단추: 파란 주 단추 그대로(빨간 도장 없음), 확인됨 표시는 둥근 파란 배지 */
.btn.primary.seal, .btn.primary.cf-ok, .btn.primary.cf-ok:hover { background: var(--brand-fill); color: var(--brand-ink); }
@keyframes seal-press { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.seal-stamp { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--brand-fill); color: var(--brand-ink); font: 800 18px/1.1 var(--display); text-align: center; animation: seal-press .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .seal-stamp { animation: none; } }
.pay-status { position: relative; }
.pay-status .seal-stamp { position: absolute; right: 12px; top: 50%; margin-top: -42px; }
/* 도장(84px)이 있을 때는 그 자리만큼 글을 왼쪽에 두고, 칸 높이도 도장이 잘리지 않게 (2026-11-20 점검: 좁은 휴대폰에서 안내 글 끝이 도장에 가렸어요) */
.pay-status.has-seal { padding-right: 108px; min-height: 100px; }

/* ── 후원 페이지: 둥근 흰 카드 + 금액 칩(둥근 네모) + 둥근 입력칸, 받는 계좌는 위에 강조색 띠 하나 ── */
.gc-donate .dn-form, .gc-donate .dn-pay { border: 1px solid var(--line); background: var(--sheet); border-radius: 20px; box-shadow: 0 1px 2px var(--shade); }
.gc-donate .chips { gap: 8px; }
.gc-donate .chip span { border: 1px solid var(--line); border-radius: 12px; min-height: 52px; background: var(--sheet); font: 800 18px/1 var(--display); transform: none; }
.gc-donate .chip input:checked + span { background: var(--ac-from, var(--brand-fill)); border-color: transparent; color: var(--ac-on, var(--brand-ink)); transform: none; box-shadow: none; }
.gc-donate .chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.gc-donate .kind span { border-radius: 12px; border: 1px solid var(--line); background: var(--sheet); box-shadow: none; }
.gc-donate .kind input:checked + span { background: var(--ac-soft, var(--brand-soft)); border-color: var(--ac-from, var(--brand-fill)); box-shadow: none; }
.gc-donate .dn-form input:not([type="radio"]):not([type="checkbox"]), .gc-donate .dn-form textarea { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 17px; }
.gc-donate .dn-form input:not([type="radio"]):not([type="checkbox"]):focus, .gc-donate .dn-form textarea:focus { border-color: var(--ac-from, var(--brand-fill)); box-shadow: 0 0 0 3px var(--ac-soft, var(--brand-soft)); outline: none; }
.gc-donate .dn-form .lab { font-weight: 800; }
.gc-donate .btn.primary { background: var(--ac-from, var(--brand-fill)); color: var(--ac-on, var(--brand-ink)); box-shadow: none; border-radius: 12px; font-size: 17px; }
.gc-donate .dn-acct-line { border: 1px solid var(--line); border-radius: 12px; background: var(--raise); padding: 12px 14px; font-variant-numeric: tabular-nums; }
.gc-donate .dn-acct-line b { font: 800 18px/1.3 var(--display); letter-spacing: .02em; }
.gc-donate .dn-more summary { color: var(--ac-text, var(--brand)); }
.gc-donate .ticket { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px var(--shade); border: 1px solid var(--line); border-top: 6px solid var(--ac-from, var(--brand-fill)); border-radius: 16px; }
.gc-donate .ticket .tk-no { font: 800 28px/1.15 var(--display); letter-spacing: .02em; }
.gc-donate .ticket .tk-lab, .gc-donate .ticket .tk-bottom span { color: var(--muted); }
.gc-donate .ticket .btn { background: var(--ink); color: var(--sheet); box-shadow: none; }
.gc-donate .tk-cut { display: none; }
.gc-donate .pay-status { border-radius: 12px; }
.dn-avatar, .gc-donate .dn-head img { border-radius: 50%; }

/* ── 관리 화면 메뉴: 넓은 화면은 왼쪽 흰 메뉴(고른 칸 = 옅은 파랑 + 파란 글자), 휴대폰은 위쪽 밑줄 탭 ── */
.st-guestbar[data-tab]:not([data-tab="home"]):not([data-tab="acc"]) { display: none; }
.st-tabs .count { background: var(--danger); color: var(--sheet); }
@media (min-width: 980px) {
  .gc-studio.is-in { grid-template-columns: 240px minmax(0, 1fr); }
  .st-side { border-radius: 20px; box-shadow: 0 1px 2px var(--shade); }
  .st-tabs button { border-radius: 12px; color: var(--ink); font-weight: 700; min-height: 46px; }
  .st-tabs button svg { color: var(--muted); }
  .st-tabs button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
  .st-tabs button[aria-selected="true"] svg { color: var(--brand); }
  .st-tabs button[aria-selected="true"] .count { background: var(--danger); color: var(--sheet); }
}
@media (max-width: 979px) {
  .st-tabs { gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; background: var(--sheet); }
  .st-tabs button { background: none; border: 0; border-radius: 0; min-height: 48px; padding: 8px 12px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 700; }
  .st-tabs button[aria-selected="true"] { background: none; color: var(--brand); border-bottom-color: var(--brand-fill); box-shadow: none; }
}
@media (max-width: 899px) {
  .st-side { gap: 6px; padding-top: 0; }
  .st-who { gap: 10px; }
  .st-who .st-face { width: 36px; height: 36px; border-radius: 50%; font-size: 17px; }
  .st-who h1 { font-size: 20px; margin: 0; }
  .st-who a { font-size: 14px; }
  .st-live { gap: 4px; }
  .st-live .pill { font-size: 14px; padding: 2px 10px; min-height: 0; }
  .st-top { padding: 10px 0 10px; }
  .st-top h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .st-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .st-acts .btn { min-height: 44px; font-size: 15px; padding: 6px 10px; }
}
.fmt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 6px; }
.fmt-tags .btn { font-variant-numeric: normal; }

/* ── 음성·그림·시그니처 후원 (후원 페이지, 2026-11-19 — donate-media.mjs) ── */
.dn-media { display: grid; gap: 12px; margin: 0 0 18px; }
.dn-media .lab { margin: 0; }
.dn-media .hint { margin: 0; }
.dn-media .hint.bad { color: var(--danger); font-weight: 700; }
.vr { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--raise); border: 1.5px solid var(--line); }
.vr-rec { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ac-grad, var(--grad)); color: var(--ac-on, var(--brand-ink)); font: 800 17px/1 var(--font); cursor: pointer; box-shadow: 0 8px 20px var(--ac-glow, var(--glow)); }
.vr-rec:disabled { opacity: .6; cursor: default; }
.vr-rec:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.vr-dot { width: 16px; height: 16px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.vr[data-state="rec"] .vr-dot { border-radius: 4px; animation: vrPulse 1s ease-in-out infinite; }
@keyframes vrPulse { 50% { opacity: .35; } }
.vr-side { flex: 1; min-width: 0; display: grid; gap: 8px; }
.vr-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vr-meter i { display: block; height: 100%; background: #30a46c; transform: scaleX(0); transform-origin: left; transition: transform .08s linear; }
.vr-time { font: 800 18px/1 var(--font); font-variant-numeric: tabular-nums; }
.vr-after { display: flex; gap: 8px; flex-wrap: wrap; }
.dw-tools { display: grid; gap: 10px; }
.dw-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-color { position: relative; }
.dw-color input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.dw-color span { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18); }
.dw-color input:checked + span { box-shadow: 0 0 0 3px var(--card, #fff), 0 0 0 6px var(--ac-from, var(--brand-fill)); }
.dw-color input:focus-visible + span { outline: 3px solid var(--sky, var(--brand)); outline-offset: 4px; }
.dw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dw-sizes i { display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.dw-btn { min-height: 44px; }
.dw-btn[aria-pressed="true"] { background: var(--ac-soft, var(--brand-soft)); box-shadow: inset 0 0 0 2px var(--ac-from, var(--brand-fill)); }
.dw-canvas { display: block; width: 100%; aspect-ratio: 5 / 3; height: auto; border-radius: 16px; background: #ffffff; border: 1.5px solid var(--line); touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dn-sigs { display: grid; gap: 8px; margin: 0 0 12px; }
.dn-sigs .lab { margin: 0; }
.sig-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sig-chip { display: grid; gap: 2px; place-items: center; min-height: 64px; padding: 8px 10px; border-radius: 16px; border: 1.5px dashed var(--ac-from, var(--brand-fill)); background: var(--ac-soft, var(--brand-soft)); color: var(--ink); cursor: pointer; font: inherit; }
.sig-chip b { font: 800 19px/1.1 var(--display); }
.sig-chip small { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.sig-chip[aria-pressed="true"] { border-style: solid; background: var(--ac-grad, var(--grad)); color: var(--ac-on, var(--brand-ink)); box-shadow: 0 10px 22px var(--ac-glow, var(--glow)); }
.sig-chip[aria-pressed="true"] small { color: inherit; opacity: .85; }
.sig-chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* 관리 화면: 음성·그림 후원 미리 듣기·보기 (studio-media.mjs) */
.att-box { display: grid; gap: 8px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--raise); border: 1.5px solid var(--line); }
.att-box[data-state="wait"] { border-color: var(--warn, #b7791f); }
.att-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.att-st { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--muted); }
.att-box[data-state="wait"] .att-st { color: var(--warn, #b7791f); }
.att-box[data-state="ok"] .att-st { color: var(--ok); }
.att-audio { width: 100%; height: 44px; }
.att-draw { display: block; max-width: 360px; border-radius: 12px; overflow: hidden; background: #ffffff; border: 1px solid var(--line); }
.att-draw img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
.att-box .muted { margin: 0; }
/* 알림 꾸미기: 시그니처 알림 고르기 */
.sig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0 4px; }
.sig-head .lab { margin: 0; }
.sig-head .switch { margin: 0; padding: 4px 0; border: 0; }
.tier-tabs.sig-tabs button.sig { border-style: dashed; }
.tier-tabs.sig-tabs button.sig[aria-pressed="true"] { border-style: solid; }
/* 소개: 자동 입금 확인 프로그램 받기 (안드로이드 앱·PC 도우미 시험판, 2026-11-19 — src/gyejwachat/download.mjs) */
.in-two .in-dlrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.in-two .in-dlrow small { color: var(--muted); font-size: 14px; }
.in-steps { margin: 10px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
