/* 시청자 화면 공용 기준(2026-10-20 다시 잡음 — 사용자 "레이아웃을 처음부터 잘못 잡았다, 폰트도". D-072, 대시보드도 같은 계열 D-073).
   크리에이터 홈(/donate/{slug})·결제 완료(done)·내 후원(/my/)·구독하기(/my/subscribe/)·간편 로그인 돌아오기(/my/oauth/)가 맨 마지막에 불러 앞의 파일들을 덮는다.
   여기 있는 것: 색(옛 변수 이름 포함)·글자 단계·단추·입력·안내 줄·작은 표·묶음·목록 줄·결과·구독 상품·결제 수단 고르기·머리 줄·로그인 칸.
   화면별 배치(폰 아래 탭, PC 두 칸, 프로필, 카드 입력 줄, 숫자판)는 각 파일(my-app.css·my-home.css·app.css·home.css·card-form.css·pin-pad.css)에 두되 같은 단계를 쓴다.
   규칙: 글자 24(화면 제목) · 17(묶음 제목) · 15(본문·목록 제목) · 13(보조·이름표) · 12(작은 표) 다섯 단계, 굵기 700 · 600 · 400 세 단계(800 금지),
   간격 4의 배수, 모서리 12(칸·단추) · 16(묶음) · 6(작은 표), 색은 회색 단계 + 금색 하나. 그림자·그라데이션 없음.
   단추는 큰 것 52(금색 = 화면에 하나, 회색 = 보조, 잉크 = 칸 안의 실행) · 작은 것 40. 입력은 테두리 없는 회색 칸 52. CSP 가 style 속성을 막으니 모양은 전부 CSS 파일에서 */
:root {
  --ui-ink: #191f28; --ui-text: #333d4b; --ui-sub: #6b7684; --ui-faint: #8b95a1; --ui-line: #e5e8eb; --ui-fill: #f2f4f6; --ui-fill-hover: #e9ecef; --ui-bg: #f9fafb;
  --ui-gold: #f5c400; --ui-gold-hover: #ffd21a; --ui-gold-soft: #fff6d6; --ui-gold-ink: #6b5300; --ui-red: #e42939; --ui-red-soft: #fdecee; --ui-green: #0a7a4c; --ui-green-soft: #e8f6ef;
  /* 옛 이름(donate.css·home.css·app.css·my*.css 가 쓴다): 이름은 두고 값만 공용 기준으로 */
  --ink: var(--ui-ink); --body: var(--ui-text); --muted: var(--ui-sub); --faint: var(--ui-faint); --line: var(--ui-line); --line2: var(--ui-line);
  --bg: var(--ui-fill); --card: #fff; --cream: var(--ui-bg); --accent: var(--ui-gold); --accent-hover: var(--ui-gold-hover); --gold-soft: var(--ui-gold-soft); --gold-ink: var(--ui-gold-ink);
  --danger-bg: var(--ui-red-soft); --danger-ink: var(--ui-red); --ok-bg: var(--ui-green-soft); --ok-ink: var(--ui-green); --warn-bg: var(--ui-gold-soft); --warn-ink: var(--ui-gold-ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ui-text); font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
/* 내 후원은 로그인한 뒤 회색 바탕 위에 흰 묶음(시안 안 B). 나머지 화면은 흰 바탕 */
body[data-page="my"].signed-in { background: var(--ui-fill); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 2px; }

/* 글자 다섯 단계 */
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ui-ink); overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; color: var(--ui-ink); }
h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ui-ink); }
b, strong { font-weight: 600; }
.fine, .note, .hint, .sec-note, .muted { font-size: 13px; line-height: 1.5; color: var(--ui-sub); }
.fine, .hint { margin: 8px 0; }
.note { margin: 24px 0; text-align: center; }
.foot { margin-top: 32px; text-align: center; font-size: 12px; color: var(--ui-faint); }
.foot a { color: inherit; }

/* 단추: 큰 것 52(기본 금색) · 작은 것 40(기본 잉크). ghost·alt 는 회색 칸, ink 는 잉크 칸, danger 는 빨간 글자만 */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ui-gold); color: var(--ui-ink); font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; box-shadow: none; transition: background .12s; }
.btn:hover { background: var(--ui-gold-hover); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn + .btn { margin-top: 8px; }
.btn.ghost, .btn.alt { background: var(--ui-fill); color: var(--ui-ink); }
.btn.ghost:hover, .btn.alt:hover { background: var(--ui-fill-hover); }
.btn.ink, .plan-btn { background: var(--ui-ink); color: #fff; }
.btn.ink:hover, .plan-btn:hover { background: #2b3440; }
.btn.small { display: inline-flex; width: auto; min-height: 40px; padding: 0 14px; background: var(--ui-ink); color: #fff; font-size: 15px; font-weight: 600; }
.btn.small:hover { background: #2b3440; }
.btn.small.ghost { background: var(--ui-fill); color: var(--ui-ink); }
.btn.small.ghost:hover { background: var(--ui-fill-hover); }
.btn.small + .btn.small { margin-top: 0; }
.btn.danger, .btn.small.danger { background: transparent; color: var(--ui-red); padding: 0 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
/* 글자 단추(더보기 · 후원 방법 바꾸기 · 댓글 신고) */
.linkbtn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--ui-sub); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.linkbtn:hover { color: var(--ui-ink); }

/* 입력: 이름표 13/600 보조색, 테두리 없는 회색 칸 52, 포커스는 흰 바탕 + 잉크 1px */
.field { display: block; margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--ui-sub); }
.field span { display: block; margin-bottom: 8px; }
.field small { font-size: 12px; font-weight: 400; color: var(--ui-faint); }
.field input, .field textarea, .field select, .searchrow input, .use-form textarea, .use-form input, .writebox textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--ui-fill); color: var(--ui-ink); font-size: 16px; font-weight: 400; box-shadow: none; transition: background .12s, border-color .12s; }
.field textarea, .use-form textarea, .writebox textarea { min-height: 96px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.writebox textarea { min-height: 52px; }
.field input:focus, .field textarea:focus, .field select:focus, .searchrow input:focus, .use-form textarea:focus, .use-form input:focus, .writebox textarea:focus { outline: none; background: #fff; border-color: var(--ui-ink); box-shadow: none; }
.field input::placeholder, .field textarea::placeholder, .searchrow input::placeholder, .writebox textarea::placeholder { color: var(--ui-faint); }
.searchrow { display: flex; gap: 8px; }
.searchrow input { flex: 1; min-width: 0; }
.searchrow .btn.small, .writebox .btn.small { flex: none; min-height: 52px; padding: 0 18px; }
/* 동의 한 줄(체크 + 문장): 회색 칸 */
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: var(--ui-fill); font-size: 13px; line-height: 1.5; color: var(--ui-text); cursor: pointer; }
.agree input, .payopt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ui-ink); }
.agree input { margin-top: 0; }

/* 안내 줄·작은 표 */
.msg { margin: 12px 0; padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg.ok { background: var(--ui-green-soft); color: var(--ui-green); }
.msg.err { background: var(--ui-red-soft); color: var(--ui-red); }
.msg.info { background: var(--ui-gold-soft); color: var(--ui-gold-ink); }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px; background: var(--ui-fill); color: var(--ui-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.active, .pill.used, .pill.approved, .pill.paid { background: var(--ui-green-soft); color: var(--ui-green); }
.pill.past_due, .pill.suspended, .pill.declined, .pill.failed { background: var(--ui-red-soft); color: var(--ui-red); }
.pill.canceling, .pill.requested, .pill.pending, .pill.notice, .pill.sub { background: var(--ui-gold-soft); color: var(--ui-gold-ink); }
.pill .ico svg { width: 13px; height: 13px; }
.ico { display: inline-flex; align-items: center; }

/* 묶음(.card): 흰 바탕 위에서는 1px 선 + 모서리 16, 내 후원의 회색 바탕 위에서는 선 없는 흰 칸. 결과·불러오는 중은 선 없이 */
.card { margin-top: 12px; padding: 20px; border: 1px solid var(--ui-line); border-radius: 16px; background: #fff; }
.card section + section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ui-line); }
body[data-page="my"] .card { border: 0; padding: 16px; }
.card.result, .card.note { border: 0; }
.card.note { padding: 24px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sec-head h2, .form-head h2, .modal-head h2 { margin: 0; }
.sec-head .fine, .sec-head .sec-note { margin: 0; }
/* 빈 칸: 회색 바탕에 한 줄 + 설명 */
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; border-radius: 12px; background: var(--ui-fill); text-align: center; }
.empty strong { font-size: 15px; font-weight: 600; color: var(--ui-ink); }
.empty span { font-size: 13px; color: var(--ui-sub); }
.empty.small { padding: 16px; }

/* 목록 줄(.lg > .li): 왼쪽 그림 · 제목 15/600 · 아래 줄 13 · 오른쪽 값 · 꺾쇠. 56px, 줄 사이 1px. 대시보드도 같은 모양(D-073) */
.lg { border-radius: 16px; background: #fff; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; border-top: 1px solid var(--ui-line); background: none; color: var(--ui-ink); text-align: left; text-decoration: none; cursor: pointer; }
.lg > .li:first-child { border-top: 0; }
.li:hover { background: var(--ui-bg); }
.li-mid { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.li-t { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-s { margin-top: 2px; font-size: 13px; color: var(--ui-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-v { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ui-sub); }
.li.center { justify-content: center; }
.li.center .li-mid { flex: none; align-items: center; }
.li.center .li-t, .li.plain .li-t { font-weight: 400; color: var(--ui-text); }
.chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ui-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 첫 글자 동그라미(사진이 있으면 사진): 목록 38 · 글·댓글 40 · 크리에이터 카드 46 · 프로필 52 */
.li-av, .h-av, .avatar.sm, .cc-av, .pf-avatar { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ui-gold-soft); color: var(--ui-gold-ink); font-size: 15px; font-weight: 700; overflow: hidden; }
.avatar.sm { width: 40px; height: 40px; font-size: 16px; }
.cc-av { width: 46px; height: 46px; font-size: 17px; }
.pf-avatar { width: 52px; height: 52px; background: var(--ui-gold); color: var(--ui-ink); font-size: 20px; }
.li-av img, .avatar.sm img, .cc-av img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
/* 기록 목록(혜택 사용·내 카드): 왼쪽 제목 15/600 + 아래 줄 13, 오른쪽 표·단추 */
.rowlist .item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ui-line); font-size: 15px; }
.rowlist .item:first-child { border-top: 0; padding-top: 4px; }
.rowlist .item > div:first-child { min-width: 0; font-weight: 600; color: var(--ui-ink); }
.rowlist .item > div:last-child { flex: none; display: flex; align-items: center; gap: 4px; text-align: right; }
.rowlist .muted { margin-top: 2px; font-weight: 400; }
.rowlist .btn.small, .rowlist .btn.small.ghost { min-height: 36px; padding: 0 12px; background: var(--ui-fill); color: var(--ui-ink); font-size: 13px; }
.rowlist .btn.small.danger { padding: 0 8px; background: transparent; color: var(--ui-red); }

/* 결과(후원 결과·구독 결과): 가운데 동그라미 그림(donate.css) + 제목 24 + 한 줄 + 단추 */
.result { padding: 32px 16px 24px; text-align: center; }
.status { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ui-ink); }
.result .fine { margin: 0 0 24px; font-size: 15px; }
.result p:last-child { margin: 0; }

/* 월 구독 상품: 이름 · 금액 · 설명 · 혜택(금색 체크) · 단추. 크리에이터 홈은 app.css 가 옆으로 넘기는 카드로 배치한다 */
.plans { display: grid; gap: 10px; }
.plan { padding: 20px; border: 1px solid var(--ui-line); border-radius: 16px; background: #fff; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.plan-head strong { font-size: 17px; font-weight: 700; color: var(--ui-ink); }
.plan-name { margin: 0; font-size: 15px; font-weight: 700; color: var(--ui-ink); }
.plan-price { font-size: 15px; font-weight: 600; color: var(--ui-ink); }
.plan-desc { margin: 8px 0 0; font-size: 13px; color: var(--ui-sub); }
.plan-benefits { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ui-text); }
.plan-benefits li { position: relative; margin: 6px 0; padding-left: 24px; }
.plan-benefits li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ui-gold-ink); border-bottom: 2px solid var(--ui-gold-ink); transform: rotate(-45deg); }
.plan-btn { margin-top: 16px; }
.plan-btn.mine { background: var(--ui-fill); color: var(--ui-ink); font-size: 15px; }
.plan-btn.mine:hover { background: var(--ui-fill-hover); }

/* 결제 수단 고르기(내 카드·새 카드)와 후원 방법 고르기(로그인·비회원): 1px 선 칸, 고른 것은 잉크 선 */
.paylist { display: grid; gap: 8px; margin: 0 0 12px; }
.payopt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .12s; }
.payopt.on { border-color: var(--ui-ink); }
.payopt-text { display: flex; flex-direction: column; min-width: 0; }
.payopt-text strong { font-size: 15px; font-weight: 600; color: var(--ui-ink); }
.payopt-text span { font-size: 13px; color: var(--ui-sub); }
.ways { display: grid; gap: 8px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 16px; border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; color: var(--ui-text); text-align: left; cursor: pointer; transition: border-color .12s; }
.way:hover, #wayMember { border-color: var(--ui-ink); }
.way strong { font-size: 15px; font-weight: 600; color: var(--ui-ink); }
.way span { font-size: 13px; color: var(--ui-sub); }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay-head h2 { font-size: 15px; }
.pay-head .linkbtn { margin: 0; }

/* 머리 줄: 로고 · 오른쪽 로그인 표시(이름 · 내 후원 · 로그아웃) */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; height: 40px; text-decoration: none; }
.brand img { display: block; height: 16px; width: auto; }
.me { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.me-name { min-width: 0; margin-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ui-ink); }
.me-link, .me-out { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--ui-fill); color: var(--ui-ink); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.me-link:hover, .me-out:hover { background: var(--ui-fill-hover); }

/* ── 로그인(login-box.js·social-login.js): 큰 제목 · 한 줄 설명 · 간편 로그인 · 또는 · 이메일 칸 · 주 단추 · 작은 글자 줄 · 약관 안내. 칸 없이 흰 바탕에 ── */
#login.card { border: 0; padding: 16px 0 24px; background: transparent; }
.login-form { display: flex; flex-direction: column; }
.login-form .login-head { display: block; margin: 0 0 20px; }
.login-form .login-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.login-sub { margin: 4px 0 0; font-size: 15px; color: var(--ui-sub); }
.social { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.social-btn svg { flex: none; }
.social-btn.kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.social-btn.naver { background: #03C75A; color: #fff; }
.social-btn.google { background: #fff; color: #1f1f1f; border: 1px solid var(--ui-line); }
.social-terms { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--ui-faint); }
.social-terms a { color: inherit; }
.social-or { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 12px; color: var(--ui-faint); }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--ui-line); }
.login-form .btn { margin-top: 20px; }
.login-form .btn.ghost { margin-top: 8px; }
.login-links { display: flex; justify-content: center; align-items: center; margin-top: 12px; }
.textlink { position: relative; min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--ui-sub); font-size: 13px; font-weight: 600; cursor: pointer; }
.textlink:hover { color: var(--ui-ink); }
.textlink + .textlink::before { content: ""; position: absolute; left: 0; top: 14px; width: 1px; height: 12px; background: var(--ui-line); }
.login-terms { margin: 24px 0 0; font-size: 12px; line-height: 1.5; color: var(--ui-faint); text-align: center; }
.login-terms a { color: inherit; }
