.cwrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 40px; min-height: 70dvh; }
.console h1 { font-size: 30px; font-weight: 850; letter-spacing: -0.035em; margin: 8px 0 24px; }
.console h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.console h3 { font-size: 16px; font-weight: 800; margin: 26px 0 12px; }
.sec { padding: 30px 0; border-bottom: 1px solid var(--line); }
.sec:first-child { padding-top: 8px; }
.sec h2 + * { margin-top: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row > div { min-width: 0; }
.who { margin: 0 0 18px; color: var(--sub); font-size: 14px; }
.label { margin: 0; color: var(--sub); font-weight: 600; font-size: 14px; }
.big { margin: 4px 0 0; font-size: 44px; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sub { margin: 4px 0 0; color: var(--sub); font-size: 15px; }
.free { margin: 12px 0 0; color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.hint { color: var(--faint); font-size: 13px; margin: 8px 0 0; }
.wide { width: 100%; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; color: var(--body); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: #111318; }
.check a { color: var(--sub); }
.form-err { color: var(--bad); font-size: 14px; margin: 0 0 10px; min-height: 0; }
.form-err:empty { display: none; }
/* 초대 코드(2026-11-18 밤 대표님 "디자인이 너무 이상함", "초대코드 버튼도 너무 촌스러움 좀 제대로 바꿔줘"):
   접힌 한 줄(표 그림 + '초대 코드가 있나요?' + 꺾쇠, 높이 36, 14/600 회색) → 누르면 한 상자(높이 48, r12, 1px 선) 안에 입력 칸과 [적용](높이 36, r9, 글자를 적으면 진해짐).
   가입 화면(선택일 때 접힘), 만들기 오류 아래(바로 열림), 입금 창(접힘) 셋이 같은 모양. 어두운 화면에서는 색 변수를 그대로 따라간다 */
.invite-row { margin: 0 0 14px; }
.invite-row .invite-field { margin: 0; animation: ivIn .25s ease both; }
.invite-ask { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--sub); font-size: 14px; font-weight: 600; cursor: pointer; }
.invite-ask:hover { color: var(--ink); }
.invite-ask[hidden], .invite-body[hidden], .invite-lab[hidden] { display: none; }
.iv-ic, .iv-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iv-chev { width: 14px; height: 14px; stroke-width: 2.2; }
.invite-box { margin: 10px 0 12px; }
.invite-body { animation: ivIn .25s ease both; }
.invite-lab { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.invite-in { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s; }
.invite-in:focus-within { border-color: var(--ink); }
.invite-in.bad { border-color: var(--bad); }
.invite-in input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.invite-in input::placeholder { font-weight: 500; letter-spacing: 0; color: var(--faint); }
.invite-go { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.invite-go:disabled { background: var(--fill); color: var(--faint); cursor: default; }
.invite-box .form-err { margin: 8px 0 0; }
@keyframes ivIn { from { opacity: 0; transform: translateY(-4px); } }
.ai-note { color: var(--faint); font-size: 13px; margin: 20px 0 0; }
/* 가입 화면: 휴대폰 인증 줄(칸 + 단추), 남은 시간, 아래 가운데 링크 "로그인하기 / 비밀번호 찾기" */
.field > label { display: block; font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.inline { display: flex; gap: 8px; align-items: stretch; position: relative; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { flex: 0 0 auto; min-width: 118px; min-height: 0; padding: 0 14px; font-size: 15px; }
.code-box { position: relative; flex: 1; min-width: 0; display: flex; }
.code-box input { letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.code-box input::placeholder { letter-spacing: 0; }
.code-box .timer { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums; pointer-events: none; }
#codeHint { margin: -4px 0 14px; color: var(--sub); }
#auth .ai-note { margin: 0 0 14px; }
.auth-links { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 14px 0 0; color: var(--faint); }
/* 로그인, 가입 화면은 가운데 좁은 한 줄(2026-11-12 대표님 "PC버전 UI 이렇게 뜨면 안되지": 만들기 화면의 넓은 틀을 그대로 써서 가로로 늘어났다) */
#auth { max-width: 400px; margin-left: auto; margin-right: auto; }
.auth-sub { margin: -12px 0 20px; color: var(--sub); font-size: 15px; }
/* 구글, 카카오 단추: 세로로, 사이 8, 폭 가득, 높이 48(테두리가 있으면 50), 둥글기 12, 글자 14/600, 아이콘 18 */
.socials { display: grid; gap: 8px; margin: 0 0 20px; }
.soc { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.soc svg { width: 18px; height: 18px; flex: none; }
.soc-kakao { background: #FEE500; color: #191919; }
.soc-google { height: 50px; background: #fff; color: #374151; border: 1px solid #E5E7EB; }
.soc:hover { filter: brightness(.97); }
.socials:has(+ .soc-agree:not([hidden])) { margin-bottom: 10px; }
.soc-agree { margin: 0 0 20px; color: var(--faint); font-size: 12px; line-height: 1.5; text-align: center; }
.soc-agree a { color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }
/* 가입 동의(2026-11-19): 카카오, 구글 단추 아래 '전체 약관 동의'(굵은 체크 한 줄 + 오른쪽 [상세 ⌄], 열면 테두리 상자 r12 안 두 항목) / 가입 칸의 [전체 동의하기](굵게, 아래 1px 선) */
.socials:has(+ .soc-agree[hidden] + .agree-all:not([hidden])) { margin-bottom: 12px; }
.agree-all { margin: 0 0 20px; }
.agree-all[hidden] { display: none; }
.aa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.aa-head .check { margin: 0; font-weight: 700; color: var(--ink); align-items: center; }
.aa-head .check input { margin: 0; }
.aa-more { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--sub); font-size: 13px; font-weight: 600; cursor: pointer; }
.aa-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.aa-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.aa-list { display: grid; gap: 10px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.aa-list[hidden] { display: none; }
.aa-list .check { margin: 0; font-size: 14px; }
.agree-all .form-err { margin: 8px 0 0; }
.agree-all .form-err:empty { display: none; }
.check.check-all { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.check.check-all[hidden] { display: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--faint); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field input[readonly] { color: var(--sub); background: var(--fill); }
@media (min-width: 881px) {
  #auth:not([hidden]) { padding: clamp(24px, 9vh, 88px) 0 48px; }
  body[data-page="create"] #auth:not([hidden]) { min-height: calc(100dvh - 260px); }      /* 만들기 화면은 틀 높이가 없어 맨 아래 줄이 바로 붙는다 */
  #auth h1 { text-align: center; margin: 0 0 28px; }
  #auth .auth-sub { text-align: center; }
}
.auth-links .btn-text { padding: 8px 10px; font-size: 15px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.est { color: var(--sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.warn { color: var(--accent-ink); font-weight: 700; font-size: 14px; margin: 16px 0 8px; }
.keyline { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.keyline code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.keys { list-style: none; padding: 0; margin: 14px 0 0; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.keys li span { color: var(--sub); font-size: 13px; }
.vids { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px; }
.vid { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vid video { width: 100%; background: #0b0c0f; max-height: 420px; }
.vid .vb { padding: 14px 16px; }
.vid .vt { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.vid .vp { margin: 6px 0 0; color: var(--body); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid .vm { margin: 6px 0 0; color: var(--faint); font-size: 13px; }
.vid .vnote { margin: 8px 0 0; color: var(--sub); font-size: 13px; line-height: 1.5; }      /* 넣은 사진 대신 새로 그린 사진으로 만들었다는 한 줄(2026-11-25) */
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--fill); color: var(--sub); white-space: nowrap; }
.chip.ok { background: #e7f6ef; color: var(--ok); }
.chip.bad { background: #fdecec; color: var(--bad); }
.chip.run { background: #111318; color: #fff; }
.vid .cost { font-weight: 800; font-variant-numeric: tabular-nums; }
.vid a.dl { font-size: 14px; font-weight: 700; color: var(--ink); }
/* [내려받기] 옆 [이어서 만들기](2026-11-23): 같은 글자 모양의 밑줄 단추 */
.vid button.dl-next { margin-left: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.top nav a.ref-link { padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }
.top nav a.ref-link:hover { color: var(--ink); }
.top nav a.ref-link[hidden] { display: none; }
/* 마이페이지 왼쪽 메뉴(2026-11-18 밤 대표님 "왼쪽에 메뉴 놓고 거기서 메뉴 고르면 하나씩"): API 화면의 왼쪽 메뉴(.api-side: 폭 216, 줄 높이 42 r10, 그림 20 + 15/600, 지금 메뉴 = 회색 바탕 700)와 같은 모양.
   PC = 제목 아래 두 칸(메뉴 216 + 내용), 휴대폰 = 제목 아래 가로 알약 줄(옆으로 넘김). 고른 메뉴의 구역만 보인다(.tab-off) */
.acct-side[hidden] { display: none; }
.acct-side a[hidden] { display: none; }
.acct-side a[aria-current="page"] { background: var(--fill); color: var(--ink); font-weight: 700; }
body[data-page="account"][data-acct] #dash > .tab-off { display: none; }
@media (min-width: 881px) {
  body[data-page="account"][data-acct] #dash:not([hidden]) { display: grid; grid-template-columns: 216px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  body[data-page="account"][data-acct] #dash > * { grid-column: 2; min-width: 0; }
  body[data-page="account"][data-acct] #dash > .pg-title, body[data-page="account"][data-acct] #dash > .who { grid-column: 1 / -1; }
  body[data-page="account"][data-acct] #dash > .acct-side { grid-column: 1; grid-row: 3 / span 30; margin-top: 22px; }
}
@media (max-width: 880px) {
  body[data-page="account"][data-acct] #dash > .acct-side { margin-bottom: 20px; }
  body[data-page="account"][data-acct] .acct-side a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
}
/* 추천인 페이지(2026-11-18 밤 대표님 "바이낸스나 코인 거래소들처럼 제대로"): 코드 상자 아래 숫자 칸 4 + 4(.kpi3.four: 칸 r14 p16, 이름 13/600 회색, 값 22/850, 작은 글 12 회색),
   [출금하기] + 한 줄 안내, 목록 탭(.seg) 네 가지와 표(.tbl, 휴대폰은 줄마다 '이름 값' 쌓기). 불러오기 전에도 칸 높이를 잡아 두어 아래가 밀리지 않는다 */
.ref-id { min-width: 0; }
.ref-id .ref-url-l { margin-top: 12px; }
.ref-url { display: block; font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.ref-kpis { min-height: 92px; margin-top: 12px; }
.ref-kpis .kpi b { font-size: 22px; }
.ref-kpis .kpi small { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); }
.ref-cash { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 26px; }
.ref-cash .hint { margin: 0; }
.ref-tabs { margin-top: 30px; }
#refTabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#refTable .bk-cancel { margin-left: 8px; }
.ref-empty { margin-top: 18px; }
.cash-fee { color: var(--ink); font-weight: 700; }
.cash-fee[hidden] { display: none; }
@media (max-width: 880px) {
  .ref-kpis { min-height: 190px; }
  #refTabs { display: flex; width: 100%; }
  #refTabs button { flex: 1; padding: 0 6px; font-size: 13px; }
  .ref-cash .btn { width: 100%; }
  #refTable td:last-child { justify-content: space-between; }
  #refTable td:last-child::before { content: attr(data-label); }
}
/* 친구 추천(2026-11-18 밤): 테두리 상자(r14) 안 왼쪽 큰 코드(22/850, 자간 .08em), 오른쪽 [코드 복사][링크 복사], 아래 한 줄(추천한 친구 수, 받은 페이백) */
.ref-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.ref-box b { display: block; font-size: 22px; font-weight: 850; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ref-btns { display: flex; gap: 8px; }
#refSec .invite-box { margin-top: 4px; max-width: 420px; }
@media (max-width: 560px) { .ref-btns { width: 100%; } .ref-btns .btn { flex: 1; } }
/* 무통장 입금 결제창 */
.sheet.bank h3 { margin-bottom: 18px; }
/* 왼쪽 위 뒤로가기(2026-11-18 밤 대표님 "입금확인 이 창 맨왼쪽 위에 뒤로가기버튼도"): 누르는 칸 40, 꺾쇠 22, 제목과 한 줄 */
.bk-head { display: flex; align-items: center; gap: 2px; margin: -6px 0 14px -10px; }
.sheet.bank .bk-head h3 { margin: 0; font-size: 18px; }
.sheet.bank .invite-box { margin-top: 10px; }
.bk-back { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.bk-back:hover { background: var(--fill); }
.bk-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.bk-label { display: block; font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.bk-amount { display: block; font-size: 26px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bk-item { display: block; margin-top: 2px; font-size: 14px; color: var(--sub); }
.bk-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-acc > div { min-width: 0; }
.bk-acc b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-acc .btn { flex-shrink: 0; }
.bk-holder { display: block; font-size: 14px; color: var(--sub); }
.bk-note { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.bk-soon { margin: 14px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.pays .bk-cancel { margin-left: 8px; }
/* 환불 신청(2026-11-11): 결제 내역 줄의 단추 + 창 */
.pays li > div:last-child { display: flex; align-items: center; gap: 4px; flex: none; }
.pays .rf-btn { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sheet.refund .bk-note + .bk-note { margin-top: 6px; }
.rf-why { margin: 18px 0 14px; }
.rf-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--body); font-size: 15px; font-weight: 600; cursor: pointer; }
.rf-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 520px) { .rf-reasons { flex-direction: column; } .rf-chip { width: 100%; text-align: left; } }
@media (max-width: 359px) { .bk-acc { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------ 프롬프트 입력창
   힉스필드 입력창을 재서 그대로(2026-11-10 대표님 "최대한 힉스필드 비슷하게"): 상자 678x116 r16 p16 #131517 96% + 흐림 12,
   + 단추 32 r10, 글 16/24, 칩 높이 32 r8 12/18 600 사이 6, 만들기 단추 120x80 r12 #D1FE17 글 12/700 */
.composer { --cp-go: #d1fe17; --cp-go-ink: #131517; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px;
  column-gap: 12px; row-gap: 4px; align-items: center; padding: 16px; border-radius: 16px; color: #f7f7f8;
  background-color: rgba(19, 21, 23, .96);
  background-image: linear-gradient(rgba(255,255,255,.01), rgba(255,255,255,.01)), linear-gradient(164.5deg, rgba(42,45,50,.12) 27.5%, rgba(219,219,219,.12) 85.5%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.composer[hidden] { display: none; }
.cp-top { grid-column: 1; display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.cp-plus { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(217,217,217,.04); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cp-plus svg { width: 16px; height: 16px; }
.cp-plus:hover, .cp-chip:not(.cp-static):hover { background: rgba(255,255,255,.1); }
.composer textarea { flex: 1; min-width: 0; height: 48px; min-height: 48px; max-height: 168px; resize: none; padding: 0; margin: 4px 0 0;
  background: transparent; border: 0; outline: 0; color: #fff; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -0.01em; }
.composer textarea::placeholder, .cp-video input::placeholder { color: rgba(247,247,248,.42); }
.cp-videos { grid-column: 1; display: grid; gap: 6px; margin: 4px 0; min-width: 0; }
.cp-videos[hidden] { display: none; }
.cp-video { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 40px; border-radius: 10px; min-width: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(217,217,217,.06); }
.cp-vname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 14px; }
.cp-vstate { flex: none; color: rgba(247,247,248,.6); font-size: 12px; font-variant-numeric: tabular-nums; }
.cp-video input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 14px; }
.cp-video button { flex: none; }
.cp-video input:disabled { opacity: .6; }
.cp-vnote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 4px; padding: 0 4px; color: #ff8a65; font-size: 13px; line-height: 1.45; }
.cp-vnote span { flex: 1 1 200px; min-width: 0; }
.cp-vnote button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-video button, .cp-thumb button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: rgba(247,247,248,.7); font-size: 18px; cursor: pointer; }
.cp-thumbs { grid-column: 1; display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.cp-thumbs[hidden] { display: none; }
.cp-thumb { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-thumb button { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(19,21,23,.72); color: #fff; font-size: 14px; line-height: 1; padding: 0; }
.cp-chips { grid-column: 1; display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.cp-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.05);
  border: 2px solid transparent; color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cp-chip b { font-weight: 600; }
.cp-chip svg { width: 16px; height: 16px; flex: 0 0 16px; }
.cp-static, .cp-chip.cp-static:disabled { cursor: default; color: #fff; opacity: 1; }
.cp-chip[aria-expanded="true"] { border-color: rgba(255,255,255,.18); }
.cp-chip[data-chip="sound"] .x { display: none; }
.cp-chip[data-chip="sound"][aria-pressed="false"] .w { display: none; }
.cp-chip[data-chip="sound"][aria-pressed="false"] .x { display: inline; }
.cp-chip[data-chip="sound"][aria-pressed="false"] { color: rgba(247,247,248,.6); }
.cp-go { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 120px; height: 80px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  background: var(--cp-go); color: var(--cp-go-ink); border: 1px solid rgba(217,217,217,.04); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; transition: transform .12s ease, filter .12s ease; }
.cp-go b { font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: -0.48px; text-transform: uppercase; white-space: nowrap; }
.cp-go small { font-size: 11px; line-height: 14px; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-go small:empty { display: none; }
.cp-go:hover { filter: brightness(1.05); }
.cp-go:active { transform: scale(.97); }
.cp-go:disabled { opacity: .5; cursor: default; }
.cp-menu { position: absolute; z-index: 6; min-width: 132px; max-width: calc(100vw - 16px); max-height: 260px; overflow-x: hidden; overflow-y: auto; padding: 6px; border-radius: 12px; background: #1c1e21;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 32px rgba(0,0,0,.4); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.cp-menu[hidden] { display: none; }
.cp-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: #f7f7f8; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.cp-opt:hover { background: rgba(255,255,255,.08); }
.cp-opt[aria-checked="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cp-go); }
#makeErr { margin: 10px 0 0; }

/* 간편하게 만들기 */
.tpl { margin: 16px 0 14px; }
.tpl[hidden] { display: none; }
.tpl-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--sub); }
.tpl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.tpl-chip:hover { border-color: #c9cdd2; }
.tpl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.easy { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.easy[hidden] { display: none; }
.easy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.easy-head b { font-size: 17px; font-weight: 800; }
.easy-head .btn-text { padding: 0 4px; min-height: 32px; font-size: 14px; }
.easy-grid { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.easy-drop { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  border: 1.5px dashed #c9cdd2; background: var(--fill); cursor: pointer; text-align: center; }
.easy-drop:hover { border-color: var(--ink); }
.easy-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.easy-drop span { display: grid; justify-items: center; gap: 6px; padding: 10px; color: var(--body); font-size: 14px; }
.easy-drop span[hidden] { display: none; }
.easy-drop svg { width: 22px; height: 22px; }
.easy-drop b { font-weight: 700; }
.easy-fields .field { margin-bottom: 6px; }
.easy-fields .hint { margin: 0; }

/* 카드 결제창(토스 결제위젯) */
.pay-w { min-height: 190px; border-radius: 12px; background: linear-gradient(100deg, var(--fill) 40%, #fafbfc 50%, var(--fill) 60%); background-size: 200% 100%;
  animation: payWait 1.4s linear infinite; margin: 0 -8px; }
.pay-w.pay-agree { min-height: 56px; margin-top: 6px; }
.pay-w.on { background: none; animation: none; min-height: 0; }
@keyframes payWait { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* 움직임(기기 '움직임 줄이기'면 site.css 가 전부 멈춘다) */
.sheet-bg:not([hidden]) { animation: bgIn .2s ease both; }
.sheet-bg:not([hidden]) > .sheet { animation: sheetUp .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bgIn { from { background-color: rgba(17,19,24,0); } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.vid { animation: vidIn .4s cubic-bezier(.2, .7, .2, 1) both; }
.vid.same { animation: none; }
@keyframes vidIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pb-flash { animation: pbFlash 1.8s ease both; }
@keyframes pbFlash { 0% { color: var(--accent); transform: scale(1.06); } 30% { color: var(--accent); transform: none; } 100% { color: inherit; } }
#balanceSub { display: inline-block; transform-origin: left center; min-height: 24px; vertical-align: top; }   /* 비어 있어도 한 줄 자리(페이백이 들어올 때 아래가 밀리지 않게) */
.vid .cost.pb-flash { display: inline-block; transform-origin: right center; }
.chip.run { position: relative; overflow: hidden; }
.chip.run::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: chipRun 1.6s ease-in-out infinite; }
@keyframes chipRun { to { transform: translateX(120%); } }

.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pack { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; background: #fff; cursor: pointer; min-height: 44px; }
.pack b { display: block; font-size: 22px; font-weight: 850; }
.pack span { color: var(--sub); font-size: 14px; }
.pack:hover { border-color: #c9cdd2; }
.plan-pick { display: grid; gap: 10px; margin-bottom: 14px; }
.pp { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.pp[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pp b { font-size: 16px; }
.pp span { color: var(--sub); font-size: 14px; display: block; }
.pp .p { font-weight: 800; white-space: nowrap; }
.pays { list-style: none; padding: 0; margin: 12px 0 0; }
.pays li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pays li span { color: var(--sub); font-size: 13px; }
.boot .sk { height: 18px; border-radius: 8px; background: var(--fill); margin: 14px 0; }
.boot .sk.h1 { height: 52px; width: 50%; }
@media (max-width: 880px) {
  .cwrap { padding: 20px 20px 32px; }
  .grid3 { grid-template-columns: 1fr; gap: 0; }
  .packs { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row > .btn { width: 100%; }
  .big { font-size: 38px; }
  /* 휴대폰: 입력창은 위아래로(글 → 칩 → 만들기 단추), 간편 만들기도 한 줄로 */
  .composer { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .cp-go { grid-column: 1; grid-row: auto; width: 100%; height: 52px; flex-direction: row; gap: 8px; margin-top: 4px; }
  .cp-go b { font-size: 14px; }
  .cp-chip { height: 36px; }
  .cp-opt { min-height: 44px; }
  .easy-grid { grid-template-columns: 1fr; }
  .easy-drop { aspect-ratio: 16 / 10; }
  .row > .est { width: 100%; }
}

/* ===== 콘솔 페이지 나누기(2026-11-11): 한 틀에서 주소마다 그 페이지 구역만 보인다(body data-page, 구역 data-pg) ===== */
body[data-page="create"] [data-pg]:not([data-pg~="create"]), body[data-page="library"] [data-pg]:not([data-pg~="library"]),
body[data-page="pricing"] [data-pg]:not([data-pg~="pricing"]), body[data-page="account"] [data-pg]:not([data-pg~="account"]),
body[data-page="api"] [data-pg]:not([data-pg~="api"]), body[data-page="invite"] [data-pg]:not([data-pg~="invite"]) { display: none !important; }
.console .top .wrap { gap: 16px; }
.top nav.cnav { margin-left: 12px; gap: 2px; }
.top nav.cnav[hidden] { display: none; }
.top nav.cnav a { padding: 8px 12px; border-radius: 10px; color: var(--sub); font-size: 15px; font-weight: 600; }
.top nav.cnav a:hover { background: var(--fill); color: var(--ink); }
body[data-page="create"] .cnav [data-nav="create"], body[data-page="library"] .cnav [data-nav="library"], body[data-page="pricing"] .cnav [data-nav="pricing"],
body[data-page="account"] .cnav [data-nav="account"], body[data-page="api"] .cnav [data-nav="api"] { background: var(--fill); color: var(--ink); font-weight: 700; }
.top nav.top-right { margin-left: auto; gap: 8px; }
.top nav a.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.top nav a.pill.pb { background: #fff1ea; color: var(--accent-ink); transform-origin: right center; }
.top nav a.pill[hidden] { display: none; }
.pg-title { margin: 8px 0 4px; }
.cwrap > #dash > .sec:first-of-type { padding-top: 8px; }
.pg-title + .sec, .pg-title ~ .sec { }
body[data-page="pricing"] .cwrap, body[data-page="library"] .cwrap, body[data-page="account"] .cwrap, body[data-page="invite"] .cwrap { max-width: 1120px; }   /* 마이페이지도 요금제 카드와 같은 폭(2026-11-13) */
/* 마이페이지는 왼쪽 메뉴가 들어가 1280 까지(머리줄과 맨 아래 줄도 같은 폭이라 왼쪽 끝이 맞는다). 서버가 붙인 data-page 로 걸어 불러오는 동안 폭이 바뀌지 않게 */
@media (min-width: 881px) { body[data-page="account"] { --wrap: 1280px; } body[data-page="account"] .cwrap { max-width: 1280px; } }
.sec-out { border-bottom: 0; }
#balSec .btn { margin-top: 14px; }
@media (max-width: 880px) {
  /* 휴대폰: 메뉴는 머리줄 아래 가로로 넘기는 한 줄 */
  .console .top .wrap { height: auto; min-height: 58px; flex-wrap: wrap; row-gap: 0; padding-top: 0; }
  .console .top .logo { line-height: 58px; }
  .top nav.cnav:not([hidden]) { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top nav.cnav::-webkit-scrollbar { display: none; }
  .top nav.cnav a { padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; }
  .top nav a.pill { height: 32px; padding: 0 10px; font-size: 13px; }
}

/* ---- 페이백 상자: 쌓인 금액 + [현금으로 출금] [API로 재구매] */
#walletTotal { display: inline-block; transform-origin: left center; color: var(--accent); }
.wl-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; max-width: 440px; }
.wl-btns .btn { padding: 0 10px; white-space: nowrap; }
#walletItems:empty { display: none; }
.sheet.wl .inline .btn { min-width: 76px; }
.wl-result { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sheet.wl .bk-note + .bk-note { margin-top: 6px; }
.sheet.wl .bk-note { margin-bottom: 10px; }
@media (max-width: 359px) { .wl-btns { grid-template-columns: 1fr; } }

/* ---- 결제창 주문 요약 */
.pay-sum .pay-name { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.pay-lines { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-lines:empty { display: none; }
.pay-lines dt { color: var(--sub); white-space: nowrap; }
.pay-lines dd { margin: 0; text-align: right; color: var(--body); font-weight: 600; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-total span { font-size: 14px; color: var(--sub); font-weight: 600; }

/* ---- 요금제 화면 */
.modes-sec { border-bottom: 0; padding-bottom: 6px; }
.plans-band { margin-top: 16px; padding: 20px; border-radius: 28px; }
.plans-band .plan.picked { outline: 2px solid #d1fe17; outline-offset: 2px; }
#subPick .check { margin-top: 18px; }
.table-sec { border-bottom: 0; }
@media (max-width: 880px) { .plans-band { padding: 12px; border-radius: 22px; margin-left: -8px; margin-right: -8px; } }

/* ---- 내 영상: 만들기 화면의 [영상 더보기], 보관함 격자와 상세 창 */
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lib-more { margin-top: 16px; width: 100%; }
.lib-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lib-f { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--sub); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.lib-f[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lib-note { margin: 0; font-size: 13px; color: var(--faint); }
.vids.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vid.card { border: 0; border-radius: 0; overflow: visible; }
.vc { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.vc-media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0c0f; }
.vc-media video { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; }
.vc-media.vc-empty { display: flex; align-items: center; justify-content: center; background: var(--fill); }
.vc-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; }
.vc-prompt { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-meta { margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.vc:hover .vc-media { box-shadow: 0 0 0 2px var(--ink); }
.vc:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 14px; }
@media (max-width: 1000px) { .vids.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vids.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vids.grid { grid-template-columns: minmax(0, 1fr); } }
.sheet.view { max-width: 760px; padding: 0; overflow: auto; }
.view-media { background: #0b0c0f; }
.view-media video { display: block; width: 100%; max-height: 62dvh; background: #0b0c0f; }
.view-empty { padding: 48px 20px; text-align: center; color: #fff; }
.view-empty p { margin: 12px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.view-body { padding: 20px 24px calc(18px + var(--sab)); }
.view-body h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--sub); }
.view-prompt { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 138px; overflow: auto; }
.view-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.view-meta dt { color: var(--sub); white-space: nowrap; }
.view-meta dd { margin: 0; color: var(--body); font-weight: 600; }
.view-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.view-btns .btn { padding: 0 10px; text-decoration: none; text-align: center; }
.view-btns .btn[hidden] { display: none; }
.view-btns.sub { display: flex; justify-content: space-between; margin-top: 6px; }
@media (max-width: 520px) { .view-btns { grid-template-columns: 1fr; } }

/* ---- 입력창: 보정 칩(스타일, 끔, 시드), 첫 장면 사진 표시 */
.cp-chip.off b { opacity: .6; }
.cp-menu.wide { width: min(280px, calc(100vw - 16px)); min-width: 0; }
.cp-menu.wide .cp-opt { white-space: normal; }
.cp-note { margin: 4px 10px 8px; font-size: 12px; line-height: 17px; color: rgba(255,255,255,.55); }
/* 품질 고르는 창 아래 팁(2026-11-23): 연두 '팁' 이름표 + 두세 줄 글 */
.cp-restip { display: flex; align-items: flex-start; gap: 8px; margin: 6px 2px 2px; padding: 10px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 18px; color: rgba(255,255,255,.78); word-break: keep-all; }
.cp-restip b { flex: none; height: 20px; padding: 0 7px; border-radius: 6px; background: #d1fe17; color: #131517; font-size: 11.5px; line-height: 20px; font-weight: 800; }
.cp-seed { display: flex; align-items: center; gap: 10px; margin: 8px 4px 2px; padding: 10px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.7); }
.cp-seed span { flex: none; }
.cp-seed input { flex: 1; min-width: 0; width: 0; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; padding: 0 10px; font-size: 16px; }
.cp-thumb { position: relative; }
.cp-role { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.66); color: #fff; font-size: 11px; font-weight: 700; }

/* ---- API 사이트 */
body[data-page="api"] .cwrap { max-width: 1180px; }
.api-lead { margin: -12px 0 20px; font-size: 17px; color: var(--sub); }
.api-base { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.api-base span { font-size: 13px; font-weight: 700; color: var(--sub); }
.api-base code { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.api-steps { list-style: none; margin: 20px 0 16px; padding: 0; display: grid; gap: 10px; }
.api-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--body); }
.api-steps b { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.agent-box.code { background: #131517; border-color: #131517; }
.agent-box.code pre { color: #e7e9ec; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.agent-box.code .agent-bar { background: rgba(255,255,255,.04); border-top-color: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.agent-box.code .agent-bar .btn { background: #fff; color: #131517; border-color: #fff; }
.api-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; }
.api-links a { font-weight: 700; color: var(--ink); }
.tbl-wrap { margin-top: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl[hidden] { display: none; }
.tbl th { text-align: left; padding: 10px 12px 10px 0; font-size: 13px; font-weight: 700; color: var(--sub); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl td code { font-size: 14px; }
.tbl td:last-child, .tbl th:last-child { text-align: right; padding-right: 0; }
.key-del { color: var(--bad); padding: 4px 0; min-height: 36px; }
.kpi3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpi3 .kpi { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi3 b { display: block; margin-top: 4px; font-size: 26px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi3 span { display: block; font-size: 13px; font-weight: 600; color: var(--sub); }
@media (max-width: 640px) {
  .kpi3 { grid-template-columns: 1fr; }
  /* 휴대폰: 표는 줄마다 한 장(이름표 + 값) */
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 0; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--sub); font-size: 13px; text-align: left; }
  .tbl td:last-child { justify-content: flex-end; }
  .tbl td:last-child::before { content: none; }
}

/* 머리줄 다듬기: 휴대폰에서는 로그아웃을 마이페이지 맨 아래로, API 사이트의 [콘솔로] 글자색, API 꼬리표 */
.top nav a.btn.btn-line, .top nav a.btn.btn-line:hover { color: var(--ink); }
@media (max-width: 880px) {
  .top nav .hide-m { display: none; }
  .console .top .logo { display: inline-flex; align-items: center; height: 58px; line-height: 1; }
}
/* 요금제 화면 흰 바탕의 체크 표시(동그라미 안 체크가 어두운 색이라 밝은 동그라미로) */
.console .pm svg { color: #d1fe17; }

/* 콘솔의 작은 제목 규칙(.console h3)이 요금제 카드·비교 표 제목을 덮지 않게(메인홈과 같은 크기로) */
.console .plan h3 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -1.2px; white-space: nowrap; }
.console .pm h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.console .plan-table h3, .console .plan-common h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* ===== 만들기·내 영상 = 어두운 작업 화면(2026-11-11 대표님 "영상 만들기 이 부분 … 힉스필드랑 거의 똑같이"). 실측 = scratch hf_ref/SPEC.md:
   바탕 #0F1113, PC 두 칸(왼쪽 설정 패널 320 r20 #131517 + 오른쪽 기록 패널 r20 테두리 흰 10%, 사이 8), 조작부 줄 54 r12 흰 5%(이름 12/16 흰 60%, 값 14/20),
   참조 칸 점선, 만들기 단추 48 r12 연두 그라데이션 + 안쪽 아래 그림자, 글자 16/24 600 #14151A ===== */
body[data-page="create"], body[data-page="library"] {
  --ink: #f7f7f8; --body: rgba(255,255,255,.82); --sub: rgba(255,255,255,.6); --faint: rgba(255,255,255,.42); --line: rgba(255,255,255,.1); --fill: rgba(255,255,255,.06); --bg: #0f1113;
  background: #0f1113; color: #f7f7f8; }
body[data-page="create"] .top, body[data-page="library"] .top { background: rgba(15,17,19,.92); border-bottom-color: rgba(255,255,255,.08); }
body[data-page="create"] .top nav a.pill, body[data-page="library"] .top nav a.pill { background: rgba(255,255,255,.08); color: #fff; }
/* 어두운 화면의 토스트 = 밝은 바탕에 검은 글자(2026-11-23 대표님 "맨아래에 흰색으로 나오는데 저게 뭐라고 나오는건지 모르겠고": 어두운 화면에서는 --ink 가 밝은 색이라 흰 바탕에 흰 글자였다) */
body[data-page="create"] .toast, body[data-page="library"] .toast { background: #f7f7f8; color: #131517; }
body[data-page="create"] .top nav a.pill.pb, body[data-page="library"] .top nav a.pill.pb { background: rgba(255,79,23,.2); color: #ff9b73; }
body[data-page="create"] .top nav.cnav a:hover, body[data-page="library"] .top nav.cnav a:hover,
body[data-page="create"] .cnav [data-nav="create"], body[data-page="library"] .cnav [data-nav="library"] { background: rgba(255,255,255,.08); color: #fff; }
body[data-page="create"] footer.foot, body[data-page="library"] footer.foot { border-top-color: rgba(255,255,255,.08); }
body[data-page="create"] footer.foot .links a.strong, body[data-page="library"] footer.foot .links a.strong { color: #fff; }
/* 어두운 화면에서 흰 바탕을 쓰던 것들 */
body[data-page="create"] .btn, body[data-page="library"] .btn { color: #111318; }
body[data-page="create"] .btn-line, body[data-page="library"] .btn-line, body[data-page="library"] .lib-f { background: transparent; color: #f7f7f8; border-color: rgba(255,255,255,.16); }
body[data-page="library"] .lib-f[aria-selected="true"] { background: #fff; border-color: #fff; color: #111318; }
body[data-page="create"] .field input, body[data-page="library"] .field input { background: rgba(255,255,255,.05); color: #fff; }
body[data-page="create"] .field input[readonly], body[data-page="library"] .field input[readonly] { background: rgba(255,255,255,.02); color: rgba(255,255,255,.6); }
body[data-page="create"] .soc-google, body[data-page="library"] .soc-google { border-color: #fff; }
body[data-page="create"] .check input, body[data-page="library"] .check input { accent-color: #d1fe17; }
body[data-page="create"] .tpl-chip { background: rgba(255,255,255,.05); border-color: transparent; color: #f7f7f8; }
body[data-page="create"] .tpl-chip[aria-pressed="true"] { background: #fff; color: #111318; }
body[data-page="create"] .easy-drop { border-color: rgba(255,255,255,.2); }
body[data-page="create"] .chip.run, body[data-page="library"] .chip.run { background: rgba(255,255,255,.14); }
body[data-page="create"] .boot .sk, body[data-page="library"] .boot .sk { background: rgba(255,255,255,.06); }
body[data-page="library"] .vc:hover .vc-media { box-shadow: 0 0 0 2px #d1fe17; }
/* 창(결제, 환불 등)은 밝은 바탕 그대로 */
.sheet-bg { --ink: #111318; --body: #333d4b; --sub: #6b7684; --faint: #8b95a1; --line: #e5e8eb; --fill: #f2f4f6; --bg: #ffffff; color: #111318; }
.sheet-bg .btn { color: #fff; }
.sheet-bg .btn-line { background: #fff; color: #111318; border-color: #e5e8eb; }
/* 어두운 화면(만들기, 내 영상)에서 열린 창도 밝은 창 그대로: 단추 글자, 입력 칸, 체크 색(충전 창과 인증 창이 만들기 화면에서도 열린다) */
body[data-page] .sheet-bg .btn { color: #fff; }
body[data-page] .sheet-bg .btn-line { background: #fff; color: #111318; border-color: #e5e8eb; }
body[data-page] .sheet-bg .btn-text { color: #6b7684; }
body[data-page] .sheet-bg .field input { background: #fff; color: #111318; }
body[data-page] .sheet-bg .field input[readonly] { background: #f2f4f6; color: #6b7684; }
body[data-page] .sheet-bg .check input { accent-color: #111318; }

/* 입력부 공통(휴대폰 포함): 참조 넣는 단추의 글자와 프롬프트 이름표는 PC 패널에서만 보인다 */
.cp-plus-t, .cp-label, .lib-all { display: none; }
.cp-prompt { flex: 1; min-width: 0; display: flex; }
.cp-go { background-color: var(--cp-go); background-image: radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 70%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.43); border: 0; }

@media (min-width: 1000px) {
  body[data-page="create"] .cwrap { max-width: 1920px; padding: 8px 16px 8px; min-height: 0; }
  body[data-page="create"] #dash:not([hidden]) { display: grid; grid-template-columns: var(--cp-w, 320px) minmax(0, 1fr); gap: 8px; align-items: start; }
  body[data-page="create"] #dash > .ai-note { display: none; }
  /* 왼쪽 설정 패널 */
  body[data-page="create"] #makeSec { position: sticky; top: 72px; height: calc(100dvh - 88px); min-height: 520px; display: flex; flex-direction: column; padding: 0; border: 1px solid rgba(217,217,217,.04);
    border-radius: 20px; background: #131517; overflow: hidden; }
  body[data-page="create"] #makeSec > h2 { flex: none; align-self: flex-start; margin: 12px 16px 0; height: 36px; display: flex; align-items: center; font-size: 14px; line-height: 20px; font-weight: 500;
    letter-spacing: 0; color: #fff; border-bottom: 2px solid #fff; }
  body[data-page="create"] #makeSec > h2 + * { margin-top: 0; }
  body[data-page="create"] .tpl { flex: none; margin: 8px 8px 0; }
  body[data-page="create"] .tpl-label { margin: 4px 4px 6px; font-size: 12px; line-height: 16px; font-weight: 500; }
  body[data-page="create"] .tpl-chip { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 600; }
  body[data-page="create"] #makeErr { flex: none; margin: 0 16px 10px; order: 9; }
  body[data-page="create"] #makeSec > .invite-box { flex: none; order: 10; margin: 0 16px 14px; }      /* 오류 줄 아래(오류 줄이 order 9 라 순서를 맞춘다) */
  body[data-page="create"] .composer { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
  body[data-page="create"] .cp-top { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: none; }
  /* 참조 넣는 칸: 302x168 r12 흰 5%, 안쪽 점선 r8, 제목 14/16 600 + 설명 12/16 #828282 */
  body[data-page="create"] .cp-plus { flex: none; width: 100%; height: 168px; border-radius: 12px; border: 0; background: rgba(255,255,255,.05); flex-direction: column; gap: 8px; position: relative; }
  body[data-page="create"] .cp-plus::before { content: ""; position: absolute; inset: 4px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.12); pointer-events: none; }
  body[data-page="create"] .cp-plus svg { width: 36px; height: 36px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(197,197,197,.3); box-sizing: border-box; }
  body[data-page="create"] .cp-plus-t { display: grid; gap: 4px; justify-items: center; }
  body[data-page="create"] .cp-plus-t b { font-size: 14px; line-height: 16px; font-weight: 600; color: #fff; }
  body[data-page="create"] .cp-plus-t small { font-size: 12px; line-height: 16px; color: #828282; }
  /* 프롬프트 칸: 302x116~, r12 흰 5%, 이름 14/16 500, 본문 14/20 */
  body[data-page="create"] .cp-prompt { flex-direction: column; border-radius: 12px; background: rgba(255,255,255,.05); padding: 12px; }
  body[data-page="create"] .cp-label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 16px; font-weight: 500; color: #fff; }
  body[data-page="create"] .composer textarea { flex: none; width: 100%; height: 80px; min-height: 80px; max-height: 200px; margin: 0; font-size: 14px; line-height: 20px; }
  body[data-page="create"] .cp-videos, body[data-page="create"] .cp-thumbs { flex: none; margin: 0; }
  /* 조작부 줄: 모델 302x54, 나머지 2열 147x54, r12 흰 5%, 이름 12/16 500 흰 60%, 값 14/20 500 */
  body[data-page="create"] .cp-chips { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body[data-page="create"] .cp-chip { position: relative; height: 54px; padding: 8px 32px 8px 12px; border-radius: 12px; border: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; }
  body[data-page="create"] .cp-chip::before { content: attr(data-label); font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.6); }
  body[data-page="create"] .cp-chip::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid rgba(255,255,255,.6); border-bottom: 1.5px solid rgba(255,255,255,.6);
    transform: translateY(-65%) rotate(-45deg); }
  body[data-page="create"] .cp-chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body[data-page="create"] .cp-chip svg { display: none; }
  body[data-page="create"] .cp-chip[data-chip="boost"] b { font-size: 0; }      /* 이름표가 '프롬프트 보정'이라 값은 스타일 이름만 */
  body[data-page="create"] .cp-chip[data-chip="boost"] b::after { content: attr(data-short); font-size: 14px; }
  body[data-page="create"] .cp-chip[data-chip="model"], body[data-page="create"] .cp-chip[data-chip="boost"] { grid-column: 1 / -1; }
  body[data-page="create"] .cp-chip.cp-static::after { display: none; }
  body[data-page="create"] .cp-chip[aria-expanded="true"] { background: rgba(255,255,255,.1); }
  /* 만들기 단추: 패널 맨 아래 고정, 302x48 r12, 「영상 만들기 ✦ 예상 값」 한 줄 */
  body[data-page="create"] .cp-go { position: sticky; bottom: 12px; flex: none; width: 100%; height: 48px; margin: 4px 0 12px; padding: 0 16px 2px; flex-direction: row; gap: 8px; z-index: 2; }
  body[data-page="create"] .composer::after { content: ""; flex: 1; }
  body[data-page="create"] .cp-go { order: 5; }
  body[data-page="create"] .cp-go b { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  body[data-page="create"] .cp-go small { font-size: 16px; line-height: 24px; font-weight: 600; opacity: 1; }
  body[data-page="create"] .cp-go:hover { filter: brightness(1.06); }      /* 2026-11-25 대표님 "마우스 갖다대면 투명해지는데 이거 없애주고": 비치지 않게 밝기만 */
  body[data-page="create"] .cp-menu { position: fixed; background: rgba(35,38,42,.92); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 12px 32px rgba(0,0,0,.4); padding: 8px; min-width: 160px; }
  body[data-page="create"] .cp-opt { min-height: 36px; font-size: 14px; font-weight: 500; }
  body[data-page="create"] .easy { flex: 1; min-height: 0; overflow-y: auto; margin: 8px; padding: 12px; border-color: rgba(255,255,255,.1); border-radius: 12px; }
  body[data-page="create"] .easy-grid { grid-template-columns: 1fr; }
  body[data-page="create"] .easy-drop { aspect-ratio: 16 / 10; }
  /* 오른쪽 기록 패널 */
  body[data-page="create"] #listSec { min-height: calc(100dvh - 88px); padding: 0 16px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
  body[data-page="create"] .lib-head { height: 56px; }
  body[data-page="create"] #listSec h2 { height: 32px; padding: 4px 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.05); }
  body[data-page="create"] .lib-all { display: inline-flex; align-items: center; height: 36px; padding: 4px 12px; border-radius: 10px; background: rgba(255,255,255,.02); color: #898a8b; font-size: 14px; line-height: 20px;
    font-weight: 500; text-decoration: none; }
  body[data-page="create"] .lib-all:hover { color: #fff; background: rgba(255,255,255,.06); }
  body[data-page="create"] #listEmpty { min-height: calc(100dvh - 180px); margin-top: 0; border: 0; }
  body[data-page="create"] .vids { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
  body[data-page="create"] .vid { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
  body[data-page="create"] .lib-more { width: auto; }
}
@media (max-width: 999px) {
  /* 휴대폰·태블릿: 지금 입력 상자 그대로(위아래로), 바탕만 어둡게 */
  body[data-page="create"] .sec { border-bottom-color: rgba(255,255,255,.08); }
  body[data-page="create"] .composer { background-color: rgba(255,255,255,.07); }
}

/* ---- 내 영상 상세 창: 화면 전체 덮개 + 오른쪽 정보 칸 368(휴대폰은 위 영상, 아래 정보). 단추 = 「다시 만들기」 연두 한 줄 → 「내려받기」 + 작은 단추들 */
#viewSheet { background: rgba(8,9,10,.9); padding: 0; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
#viewSheet .sheet.view { --ink: #f7f7f8; --body: rgba(255,255,255,.82); --sub: rgba(255,255,255,.6); --line: rgba(255,255,255,.1); max-width: none; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0;
  background: transparent; color: #f7f7f8; display: grid; grid-template-columns: minmax(0, 1fr) 368px; padding: 0; overflow: hidden; }
#viewSheet .view-media { background: transparent; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; }
#viewSheet .view-media video { max-height: calc(100dvh - 48px); max-width: 100%; width: auto; border-radius: 12px; background: #000; }
#viewSheet .view-body { margin: 8px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); overflow-y: auto; display: flex; flex-direction: column; }
#viewSheet .view-body h3 { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.5); }
#viewSheet .view-prompt { color: #f7f7f8; font-size: 14px; line-height: 20px; max-height: 40dvh; }
#viewSheet .view-meta { border-top-color: rgba(255,255,255,.08); font-size: 13px; }
#viewSheet .view-meta dd { text-align: right; color: #f7f7f8; font-weight: 500; }
#viewSheet .view-btns { margin-top: auto; padding-top: 18px; grid-template-columns: 1fr; gap: 8px; }
#viewSheet .view-btns .btn { height: 40px; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; }
#viewSheet #viewRemix { order: -1; background: radial-gradient(120% 140% at 50% 0%, #effe17 40%, #d1fe17 100%); color: #14151a; border: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.43); }
#viewSheet #viewDl { background: rgba(255,255,255,.08); color: #fff; border: 0; }
#viewSheet .view-btns.sub { margin-top: 8px; padding-top: 0; display: flex; }
#viewSheet .view-btns.sub .btn-text { color: rgba(255,255,255,.6); font-size: 13px; }
#viewSheet .view-btns.sub .btn-text:hover { color: #fff; }
#viewSheet .view-empty { padding: 80px 20px; }
@media (max-width: 880px) {
  #viewSheet { align-items: stretch; }
  #viewSheet .sheet.view { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  #viewSheet .view-media { padding: 0; }
  #viewSheet .view-media video { width: 100%; max-height: 46dvh; border-radius: 0; }
  #viewSheet .view-body { margin: 8px; padding-bottom: calc(16px + var(--sab)); overflow: visible; }
}

/* 2차 검토 반영: 충전 칸의 [충전하기] 표시, 충전/구독 설명 카드의 이동 단추, 페이백 단추 아래 한 줄 */
.pack { position: relative; padding-right: 96px; }
.pack em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; }
.pm-go { display: inline-flex; align-items: center; margin-top: 14px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.pm-go:hover { border-color: #c9cdd2; }
#walletHint { margin: 10px 0 0; }
@media (max-width: 520px) { .packs { grid-template-columns: 1fr; } }

/* ===== 충전 금액(2026-11-12): 묶음 6개(PC 3칸) + 직접 입력 + 자동 충전 ===== */
@media (min-width: 881px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack-custom { margin-top: 18px; max-width: 420px; }
.pack-custom > label { display: block; font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.usd-box { position: relative; flex: 1; min-width: 0; display: flex; }
.usd-box span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sub); font-weight: 700; pointer-events: none; }
.usd-box input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 28px; font-size: 16px; background: #fff; font-variant-numeric: tabular-nums; }
.usd-box input:focus { outline: none; border-color: var(--ink); }
#customHint.bad { color: var(--bad); }
#autoSec .row { align-items: flex-start; }
#autoSec .sub { max-width: 560px; }
#autoSec.on #autoText { color: var(--body); }
#autoSec.stopped #autoText { color: var(--bad); }
.sheet .field select { appearance: auto; }
#autoForm .bk-note + .bk-note { margin-top: 6px; }
#autoForm .check { margin: 16px 0 6px; }
#autoCard .btn-text { padding: 0 0 0 6px; min-height: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { #autoSec .row > .btn { width: 100%; } #autoForm .row-btns { flex-wrap: wrap; } #autoForm .row-btns .btn { flex: 1 1 auto; } }

/* ===== 가입 직후 요금제 창, 결제 전 인증 창, 잔액 알림(2026-11-12 저녁) ===== */
.sheet.wc { max-width: 520px; }
.console .sheet.wc h3 { font-size: 20px; margin: 0 0 4px; }
.wc-g { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 10px; }
.sheet.wc h3 + .wc-g { margin-top: 4px; }
.wc-g b { font-size: 16px; font-weight: 800; }
.wc-g span { color: var(--sub); font-size: 13px; }
.wc-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wc-plans { display: grid; gap: 8px; }
.wc-pack, .wc-plan { border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; min-height: 48px; }
.wc-pack { padding: 12px 14px; }
.wc-pack b { display: block; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.wc-pack span, .wc-plan span { color: var(--sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.wc-plan { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wc-plan b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.wc-plan em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #111318; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.wc-pack:hover, .wc-plan:hover { border-color: #111318; }
.sheet.wc .row-btns { justify-content: space-between; align-items: center; margin-top: 18px; }
.sheet.wc .row-btns .btn-text { color: var(--sub); }
#gateSub { margin: -6px 0 16px; }
#gateHint { margin: -4px 0 12px; color: var(--sub); }
#gateId[readonly] { color: var(--sub); background: var(--fill); }
@media (max-width: 880px) {
  /* 휴대폰: 충전 금액은 옆으로 넘기는 한 줄, 구독은 위아래로 */
  .wc-packs { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
  .wc-packs::-webkit-scrollbar { display: none; }
  .wc-pack { flex: 0 0 116px; }
  .wc-plan { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sheet.wc .row-btns { flex-direction: column; align-items: stretch; gap: 4px; }      /* 건너뛰기(나중에 할게요)는 맨 아래 */
  .sheet.wc .row-btns .btn { width: 100%; }
}

/* ===== 2026-11-12 밤: 충전 창, 크레딧 부족 알림 한 줄, 비어 있는 목록, API 사이트 여러 장 ===== */
.pg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.pg-row .pg-title { margin: 0; }
.pg-row .btn { min-height: 44px; }

/* 구매 창과 결제 화면 = 맨 아래 '2026-11-12 밤 늦게' 묶음 */

/* 크레딧 부족 알림 한 줄: 「크레딧 부족 시」 + 기준 + [이메일 알림] [카톡 알림] */
.low-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.low-t { font-size: 15px; font-weight: 800; white-space: nowrap; }
.low-th { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.low .check { margin: 0; align-items: center; font-size: 15px; font-weight: 600; white-space: nowrap; }
.low .check input { margin: 0; }
.low-note { margin: 8px 0 0; }

/* 비어 있는 목록: 가운데, 넓게(2026-11-12 밤 대표님 "만든영상 없어요도 가운데에 좀 크게 넓적하게") */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; margin-top: 16px; padding: 48px 20px;
  border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.empty[hidden] { display: none; }
.empty svg { width: 56px; height: 56px; margin-bottom: 8px; color: var(--faint); }
.empty b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.empty span { font-size: 15px; color: var(--sub); }
.empty .btn { margin-top: 14px; }
.empty.sm { min-height: 200px; padding: 32px 20px; }
.empty.sm b { font-size: 18px; }
body[data-page="library"] .empty { min-height: min(56dvh, 480px); }
body[data-page="library"] .empty .btn { background: #d1fe17; border-color: #d1fe17; color: #14151a; }

/* API 사이트: 왼쪽 메뉴(개요, 내 API 키 관리, 사용량, 문서) + 오른쪽 내용. 휴대폰은 위 가로 줄 */
.api-wrap { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 48px; align-items: start; }
.api-side { position: sticky; top: 88px; display: grid; gap: 2px; }
.api-side a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--sub); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.api-side a svg { flex: none; width: 20px; height: 20px; }
.api-side a:hover { background: var(--fill); color: var(--ink); }
body[data-sub="home"] .api-side [data-sub-nav="home"], body[data-sub="keys"] .api-side [data-sub-nav="keys"],
body[data-sub="usage"] .api-side [data-sub-nav="usage"], body[data-sub="docs"] .api-side [data-sub-nav="docs"] { background: var(--fill); color: var(--ink); font-weight: 700; }
body[data-sub="home"] .api-main [data-sub]:not([data-sub="home"]), body[data-sub="keys"] .api-main [data-sub]:not([data-sub="keys"]),
body[data-sub="usage"] .api-main [data-sub]:not([data-sub="usage"]) { display: none !important; }
.api-main { min-width: 0; }
.api-main > .sec:first-child, .api-main > .sec[data-sub="keys"], .api-main > .sec[data-sub="usage"] { padding-top: 0; }
.api-main .sec:last-of-type { border-bottom: 0; }
.api-main h1 { margin: 0 0 20px; }
.api-main #apiHome { padding-bottom: 8px; border-bottom: 0; }
.api-main #apiHome .api-lead { margin: -12px 0 0; }
.api-head { align-items: flex-start; }
.api-head .api-lead { margin: -12px 0 0; }
.api-head .btn svg { width: 16px; height: 16px; }
#keyBtn.full { opacity: .45; }
.more { font-size: 14px; font-weight: 700; color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.kpi3.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.key-count { margin: 18px 0 0; font-size: 14px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.key-warn { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
#keySec .tbl-wrap { margin-top: 10px; }
/* 날마다 쓴 금액 막대 */
.chart { margin-top: 16px; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 14px; }
.chart-top { font-size: 13px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.chart.tall .chart-bars { height: 180px; }
.chart-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.chart-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--ink); transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.chart-col:hover i { background: var(--accent); }
.chart.none .chart-bars { height: 72px; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
/* 기간 고르기(7일, 30일, 90일) */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--sub); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17,19,24,.12); }
#usageSec h3 { margin: 28px 0 0; }
#usageSec .tbl-wrap { margin-top: 10px; }
#usageRecent li div:first-child { min-width: 0; }
#usageRecent li b { font-weight: 600; overflow-wrap: anywhere; }
#usageRecent li div:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
/* API 키 만들기 창 */
.sheet.key { max-width: 440px; }
.key-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--fill); color: var(--ink); }
.key-ico svg { width: 22px; height: 22px; }
.key-ico.ok { background: #e7f6ef; color: var(--ok); }
.console .sheet.key h3 { margin: 0 0 6px; font-size: 20px; }
.sheet.key .bk-note { margin: 0 0 18px; }
.sheet.key .key-warn { margin: 0 0 16px; }
.sheet.key .keyline { margin-bottom: 14px; background: var(--fill); border-color: var(--fill); }
.sheet.key .keyline code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.sheet.key .keyline .btn { flex: none; }
#keyStep2 .row-btns .btn { width: 100%; }
/* 문서 장(docs.html)도 같은 틀 */
.api-main.doc { max-width: 760px; }
@media (max-width: 880px) {
  .tu-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .low-row { gap: 10px 14px; }
  .low-t { flex: 0 0 100%; }
  .empty { min-height: 260px; padding: 36px 16px; }
  .empty b { font-size: 19px; }
  .api-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .api-side { position: static; display: flex; gap: 6px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .api-side::-webkit-scrollbar { display: none; }
  .api-side a { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .api-side a svg { display: none; }
  .api-head .seg { width: 100%; }
  .api-head .seg button { flex: 1; }
  .kpi3.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-bars { gap: 2px; }
  .pg-row .btn { min-height: 40px; padding: 0 16px; }
}
@media (max-width: 640px) { .kpi3.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 2026-11-12 밤 늦게: 구매 창(힉스필드 구매 창처럼 어두운 창 + 탭 + 막대), 결제 화면(두 칸), 마이페이지 순서(구독 → 크레딧 → API), 구매 내역, 키 내역 ===== */
/* 구매 창: 어두운 창 r24 #131517, 탭 [구독][크레딧 충전], 금액 묶음(칸 r14 흰 5%, 고른 칸 = 연두 테두리), 직접 입력 + 막대, 받는 크레딧과 결제 금액 두 줄, 연두 주 단추 */
.sheet.tu { --ink: #f7f7f8; --body: rgba(255,255,255,.82); --sub: rgba(255,255,255,.6); --faint: rgba(255,255,255,.42); --line: rgba(255,255,255,.1); --fill: rgba(255,255,255,.06); --bad: #ff8a7a;
  color-scheme: dark; max-width: 520px; background: #131517; color: #f7f7f8; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.tu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.console .sheet.tu h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.tu-x { flex: none; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--sub); font-size: 24px; line-height: 1; cursor: pointer; }
.tu-x:hover { background: var(--fill); color: var(--ink); }
.tu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: rgba(255,255,255,.05); }
.tu-tabs[hidden] { display: none; }
.tu-tabs button { height: 40px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.6); font-size: 15px; font-weight: 700; cursor: pointer; }
.tu-tabs button[aria-selected="true"] { background: rgba(255,255,255,.12); color: #fff; }
/* [크레딧 충전] 탭을 가리키는 말풍선(2026-11-18 밤 대표님 "화살표로 크레딧 충전도 가능해요 이렇게 해주고, 애니메이션 넣어주고"):
   탭 줄 바로 아래, 오른쪽 탭 가운데에 맞춘 연두 알약(높이 30, 13/700) + 위로 향한 꼬리. 나타날 때 0.4초 톡, 그 뒤 1.5초마다 4px 위로 까딱. 누르면 그 탭으로 */
.tu-hintrow { display: grid; grid-template-columns: 1fr 1fr; margin: -4px 0 12px; }
.tu-hintrow[hidden] { display: none; }
.tu-tip { grid-column: 2; justify-self: center; position: relative; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: #d1fe17; color: #131517;
  font-size: 13px; font-weight: 700; line-height: 30px; white-space: nowrap; cursor: pointer; animation: tuTipIn .4s cubic-bezier(.2, .8, .2, 1) both, tuTipBob 1.5s ease-in-out .4s infinite; }
.tu-tip::before { content: ""; position: absolute; left: 50%; top: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.tu-tip span { position: relative; }
/* 프롬프트 칸 아래 팁 말풍선(2026-11-19 대표님 "프롬프트 칸 애니메이션 있는 팁"): 구매 창 말풍선과 같은 연두, 위로 향한 꼬리(프롬프트 칸을 가리킴),
   나타날 때 톡, 그 뒤 1.5초마다 4px 까딱. 글이 길어 여러 줄. 움직임 줄이기 설정이면 멈춤 */
.cp-tip { grid-column: 1; position: relative; justify-self: start; max-width: 100%; margin: 6px 0 2px; padding: 8px 11px; border-radius: 12px; background: #d1fe17; color: #131517;
  font-size: 12.5px; line-height: 18px; font-weight: 600; letter-spacing: -0.2px; animation: tuTipIn .4s cubic-bezier(.2, .8, .2, 1) both, tuTipBob 1.5s ease-in-out .4s infinite; }
.cp-tip::before { content: ""; position: absolute; left: 22px; top: -4px; width: 10px; height: 10px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.cp-tip span { position: relative; }
.cp-tip[hidden] { display: none; }
/* 만들기 단추 위 한 줄(대표님 글): 작은 회색 */
.cp-same { grid-column: 1; margin: 2px 2px 0; font-size: 12px; line-height: 17px; color: rgba(255,255,255,.55); }
.cp-same[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .cp-tip { animation: none; } }
@media (min-width: 1000px) {
  body[data-page="create"] .cp-tip { flex: none; align-self: stretch; margin: 2px 0 0; }
  /* 패널이 짧아 내용이 넘쳐도 단추 바로 위에 보이게 단추(바닥에서 12 + 48 + 위 4 + 12)와 같이 바닥에 붙인다. 뒤로 지나가는 칸이 비치지 않게 아래로 패널 바탕색을 깐다 */
  body[data-page="create"] .cp-same { flex: none; order: 4; position: sticky; bottom: 76px; z-index: 2; margin: 0 -8px; padding: 8px 12px 0; background: #131517; box-shadow: 0 96px 0 #131517; }
}
@keyframes tuTipIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes tuTipBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tu-need { display: grid; gap: 2px; margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,79,23,.16); }
.tu-need[hidden] { display: none; }
.tu-need b { font-size: 16px; font-weight: 800; color: #ff9b73; }
.tu-need span { font-size: 14px; color: rgba(255,255,255,.78); }
.tu-bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 12px; }
.tu-bal span { font-size: 14px; font-weight: 600; color: var(--sub); }
.tu-bal b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tu-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tu-pack { display: grid; gap: 2px; min-height: 72px; padding: 14px 14px 12px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(255,255,255,.05); color: #fff; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease; }
.tu-pack b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tu-pack span { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.tu-pack:hover { background: rgba(255,255,255,.09); }
.tu-pack[aria-checked="true"] { border-color: #d1fe17; background: rgba(209,254,23,.08); }
.tu-custom { margin-top: 14px; }
.tu-custom[hidden] { display: none; }
.tu-custom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tu-custom-head label { font-size: 14px; font-weight: 600; color: var(--sub); }
.sheet.tu .usd-box { flex: 0 0 132px; }
.sheet.tu .usd-box input { height: 44px; padding: 0 12px 0 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); color: #fff; text-align: right; }
.sheet.tu .usd-box input:focus { border-color: #d1fe17; }
.sheet.tu .usd-box input::placeholder { color: rgba(255,255,255,.35); }
/* 금액 막대: 줄 4, 손잡이 18 흰색, 지나온 쪽은 연두 */
.tu-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 8px 0 0; padding: 0; background: transparent; cursor: pointer; --p: 0%; }
.tu-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #d1fe17 var(--p), rgba(255,255,255,.14) var(--p)); }
.tu-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.tu-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.tu-range::-moz-range-progress { height: 4px; border-radius: 2px; background: #d1fe17; }
.tu-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 0; background: #fff; }
#tuHint { margin: 6px 0 0; }
#tuHint.bad { color: var(--bad); }
#tuErr { margin: 8px 0 0; }
.tu-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.tu-sum dt { font-size: 14px; color: var(--sub); }
.tu-sum dd { margin: 0; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tu-sum dd:last-of-type { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.tu-sum dt:last-of-type { align-self: center; }
.tu-card { margin: 12px 0 0; font-size: 13px; color: var(--sub); text-align: center; }
.tu-card[hidden] { display: none; }
/* 주 단추: 힉스필드의 연두 단추(위가 조금 밝은 연두 + 안쪽 아래 그림자, 진한 글자) */
body[data-page] .sheet.tu .tu-go, .sheet.tu .tu-go { min-height: 52px; margin-top: 14px; border: 0; border-radius: 12px; background-color: #d1fe17;
  background-image: radial-gradient(120% 140% at 50% 0%, #effe17 40%, #d1fe17 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.43); color: #14151a; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet.tu .tu-go:hover { opacity: .9; }
.sheet.tu .tu-go:disabled { opacity: .4; }
body[data-page] .sheet.tu .tu-other, .tu-other { display: block; margin: 4px auto 0; color: rgba(255,255,255,.6); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tu-other[hidden] { display: none; }
.tu-sub { margin: 10px 0 0; text-align: center; color: var(--faint); font-size: 13px; }
.tu-low { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.tu-low[hidden] { display: none; }
.sheet.tu .low-th { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
body[data-page] .sheet.tu .check input { accent-color: #d1fe17; }
.sheet.tu .check { color: #f7f7f8; }
/* 구독 탭: 요금제 줄(이름 + 추천, 매달 받는 것 / 값) */
.tu-plans { display: grid; gap: 8px; }
.tu-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(255,255,255,.05);
  color: #fff; text-align: left; cursor: pointer; }
.tu-plan:hover { background: rgba(255,255,255,.09); }
.tu-plan[aria-checked="true"] { border-color: #d1fe17; background: rgba(209,254,23,.08); }
.tu-plan .tp-l, .tu-plan .tp-r { display: grid; gap: 2px; min-width: 0; }
.tu-plan .tp-r { justify-items: end; flex: none; }
.tu-plan b { font-size: 16px; font-weight: 700; }
.tu-plan .tp-r b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tu-plan small { font-size: 13px; color: var(--sub); }
.tu-plan em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #d1fe17; color: #131517; font-size: 11px; font-weight: 700; vertical-align: 2px; }

/* 결제 화면: 힉스필드 결제 화면처럼 두 칸. 왼쪽 어두운 칸 360 = 주문 요약(상품, 큰 금액 40, 받는 것), 오른쪽 = 결제 수단 + [○○원 결제하기] */
.sheet.pay { max-width: 920px; padding: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); overflow: hidden; border-radius: 24px; }
.pay-left { --sub: rgba(255,255,255,.6); --body: #fff; --line: rgba(255,255,255,.1); display: flex; flex-direction: column; padding: 32px 28px 28px; background: #131517; color: #f7f7f8; min-width: 0; }
.pay-brand { margin-bottom: 26px; font-size: 18px; font-weight: 850; letter-spacing: -0.03em; }
.pay-brand em { font-style: normal; color: var(--accent); }
.pay-left .bk-label { margin: 0 0 4px; color: rgba(255,255,255,.6); }
.pay-left .pay-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; }
.pay-big { margin-top: 12px; font-size: 40px; line-height: 48px; font-weight: 850; letter-spacing: -0.03em; color: #fff; }
.pay-vat { font-size: 13px; color: rgba(255,255,255,.5); }
.pay-left .pay-lines { margin-top: 22px; padding-top: 18px; }
.pay-left .bk-note { margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }
.pay-right { display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 40px); overflow: auto; padding: 24px 24px calc(22px + var(--sab)); background: #fff; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.console .sheet.pay h3 { margin: 0; font-size: 20px; }
.pay-right .tu-x { color: #6b7684; }
.pay-right .tu-x:hover { background: #f2f4f6; color: #111318; }
.pay-bank { margin-top: 8px; }
#paySubmit { min-height: 52px; margin-top: 10px; font-size: 17px; font-variant-numeric: tabular-nums; }

/* 마이페이지: 구독(요금제 큰 카드) → 크레딧 → API → 페이백 → 구매 내역 */
.who[data-pg] { margin: 4px 0 6px; }
.sec-head { align-items: baseline; }
/* 구독이 없으면 요금제 화면과 같은 큰 카드(2026-11-13 대표님 "크게크게" → "화면크기가 안맞잖아 다른것들 가로폭 좀더 키우거나" = 본문 전체를 카드 폭으로) */
body[data-page="account"] #subPick[hidden] { display: none; }
#mktSec .check { margin-top: 10px; }
#balSec h2 + .label { margin-top: 16px; }
.low-in { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.low-in[hidden] { display: none; }
#acctApi .row { align-items: flex-start; }
#acctApi .btn { flex: none; text-decoration: none; }
/* 구매 내역: 왼쪽 상품 이름 + 날짜, 결제 수단, 상태 / 오른쪽 금액 + [영수증][환불 신청] */
.pays.buys li { align-items: center; padding: 14px 0; }
.bh-main { display: grid; gap: 3px; min-width: 0; }
.bh-main b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pays.buys .bh-side { flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.bh-side > b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bh-acts { display: flex; align-items: center; gap: 8px; }
.bh-acts:empty { display: none; }
.bh-receipt { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.bh-receipt:hover { border-color: #c9cdd2; }
#paysEmpty { margin-top: 14px; }
/* 요금제: 구독 카드 아래 세 칸(구독, 크레딧, API) */
@media (min-width: 881px) { .plan-modes[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 내 API 키 관리: 내역 */
.hist-head { margin-top: 40px; align-items: center; }
.hist-head h2 { margin: 0; }
.hist-empty { margin-top: 14px; }
@media (max-width: 880px) {
  .sheet.tu { border-radius: 24px 24px 0 0; border-bottom: 0; }
  .tu-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet.pay { grid-template-columns: minmax(0, 1fr); border-radius: 24px 24px 0 0; overflow: auto; max-height: 100dvh; }
  .pay-left { padding: 20px 20px 18px; }
  .pay-brand { display: none; }
  .pay-big { margin-top: 6px; font-size: 30px; line-height: 38px; }
  .pay-left .pay-lines { margin-top: 14px; padding-top: 12px; }
  .pay-right { max-height: none; overflow: visible; padding: 18px 16px calc(18px + var(--sab)); }
  #acctApi .row > .btn { width: 100%; }
  .hist-head .seg { width: 100%; }
  .hist-head .seg button { flex: 1; }
}

/* ===== 2026-11-19: 구매 창 약관 한 줄, 세금계산서 요청, 크레딧 내역과 쪽 번호, API 사용 분석, 계정 줄, 고객센터, 탈퇴 창 ===== */
/* 구매 창 구독 탭 맨 아래 "구독 시 환불약관에 동의하게 됩니다."(대표님 "환불약관에 하이퍼링크, 좀 트렌디하게"):
   12.5px 가운데 옅은 글 한 줄, 링크만 밝은 글 600 + 1px 밑줄(간격 3) + 작은 화살표. 경고 문단이나 상자를 두지 않는다 */
.tu-agree { margin: 12px 0 0; text-align: center; color: var(--faint); font-size: 12.5px; letter-spacing: -0.01em; }
.tu-agree a { color: var(--body); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
.tu-agree a::after { content: "\2197"; display: inline-block; margin-left: 2px; font-size: 10px; opacity: .7; transform: translateY(-1px); }
.tu-agree a:hover { color: var(--ink); }
/* 무통장 입금 창의 세금계산서 요청: 체크 한 줄(15/600) + 옅은 안내 → 체크하면 회색 판(r14) 안에 네 칸(PC 두 칸씩, 휴대폰 한 칸씩) */
.bk-tax { margin: 2px 0 12px; }
.bk-tax .check { margin: 0; font-weight: 600; color: var(--ink); }
.bk-taxhint { margin: 4px 0 0 30px; }
.bk-taxf { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-top: 12px; padding: 14px 14px 2px; border-radius: 14px; background: var(--fill); }
.bk-taxf .field { margin-bottom: 12px; }
.bk-taxf .field:last-child { grid-column: 1 / -1; }
@media (max-width: 520px) { .bk-taxf { grid-template-columns: 1fr; } }
/* 크레딧 내역: 탭(.seg) 왼쪽, [내보내기] 오른쪽(누르면 아래로 작은 메뉴 r14, 줄 높이 44) → 표 → 쪽 번호 */
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ch-exp { position: relative; }
#chExport { gap: 6px; }
#chExport svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(17,19,24,.14); display: grid; gap: 2px; }
.ch-menu button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.ch-menu button:hover { background: var(--fill); }
.ch-wrap { min-height: 96px; }
#chTable td:first-child, #chTable th:first-child { white-space: nowrap; }
.ch-empty { margin: 0; padding: 30px 0 34px; text-align: center; }
/* 쪽 번호(대표님 "1 2 3 4 5 입력"): 왼쪽 '모두 N건', 가운데 ‹ 번호 다섯 개 ›(칸 36, 지금 쪽 = 검정), 오른쪽 번호 적는 칸(56x36) + / 전체 쪽 + [이동] */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 18px; }
.pg-total { font-size: 13px; font-weight: 600; color: var(--sub); }
.pg-nav { display: flex; align-items: center; gap: 4px; }
.pg-b { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--body); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.pg-b:hover:not(:disabled):not([aria-current]) { background: var(--fill); }
.pg-b[aria-current="page"] { background: var(--ink); color: #fff; cursor: default; }
.pg-b:disabled { color: var(--faint); opacity: .5; cursor: default; }
.pg-arrow { font-size: 18px; line-height: 1; }
.pg-jump { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.pg-jump input { width: 56px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; text-align: center; }
.pg-jump input:focus { outline: none; border-color: var(--ink); }
.pg-jump .btn { min-height: 36px; }
/* API 사용 분석: 제목 + 기간(.seg) → 숫자 네 칸(값 22/850, 아래 작은 글 12) → 막대 그림 두 장(테두리 r14) → 모델과 해상도별 표 */
.an { margin-top: 28px; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an-head b { font-size: 17px; font-weight: 800; }
.an-kpis { min-height: 104px; }
.an-kpis .kpi b { font-size: 22px; }
.an-kpis .kpi small { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); }
.an-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.an-chart { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.an-ct { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.an-mt { margin-top: 28px; }
.an-empty { margin-top: 16px; }
.an-more { display: inline-block; margin-top: 18px; }
/* 계정 줄: 왼쪽 이름표(132, 14/600 회색), 오른쪽 값(15/600)과 단추, 줄 사이 1px 선. 휴대폰은 이름표 위, 값 아래 */
.rows { margin: 16px 0 0; }
.rw { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rw:last-child { border-bottom: 0; }
.rw dt { flex: 0 0 132px; font-size: 14px; font-weight: 600; color: var(--sub); }
.rw dd { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--ink); }
.rw dd span { min-width: 0; overflow-wrap: anywhere; }
.rw dd span.none { color: var(--faint); font-weight: 500; }
.rw .free { flex-basis: 100%; margin: 0; font-size: 13px; }
/* 고객센터: 탭 세 개 → 질문은 접히는 줄(높이 56, 16/700, 오른쪽 꺾쇠), 사용법은 번호 동그라미(28) 카드, 팁은 회색 판(r16) 안 번호 목록, 문의는 입력 칸 + 내 문의 카드 */
.hp-tabs { margin-top: 20px; }
#helpTabs { max-width: 100%; }
.hp-faq { margin-top: 18px; border-top: 1px solid var(--line); }
.hp-q { border-bottom: 1px solid var(--line); }
.hp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 2px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.hp-q[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hp-q p { margin: 0; padding: 0 2px 18px; color: var(--body); font-size: 15px; line-height: 1.65; }
.hp-h { margin: 30px 0 0; font-size: 17px; font-weight: 800; }
.hp-steps { list-style: none; counter-reset: hp; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.hp-steps li { counter-increment: hp; position: relative; padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: 14px; }
.hp-steps li::before { content: counter(hp); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.hp-steps b { display: block; font-size: 16px; font-weight: 700; }
.hp-steps span { display: block; margin-top: 4px; color: var(--body); font-size: 14.5px; line-height: 1.6; }
.hp-tips { display: grid; gap: 12px; margin-top: 14px; }
.hp-tip { padding: 20px; border-radius: 16px; background: var(--fill); }
.hp-tip h4 { margin: 0; font-size: 17px; font-weight: 800; }
.hp-lead { margin: 8px 0 0; color: var(--body); font-size: 15px; line-height: 1.65; }
.hp-tip ol { margin: 14px 0 0; padding: 0 0 0 20px; display: grid; gap: 10px; color: var(--body); font-size: 14.5px; line-height: 1.65; }
.hp-tip ol li::marker { font-weight: 800; color: var(--ink); }
.hp-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--sub); font-size: 13.5px; line-height: 1.6; }
.hp-form { margin-top: 18px; max-width: 560px; }
.hp-form .sub { margin: 0 0 16px; }
.hp-form textarea { min-height: 140px; }
.hp-mine { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.hp-mine li { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.hq-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hq-top time { font-size: 13px; color: var(--faint); }
.hq-st { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--sub); font-size: 12px; font-weight: 700; }
.hq-st.done { background: #e7f6ef; color: var(--ok); }
.hq-q { margin: 10px 0 0; color: var(--ink); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hq-a { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--fill); }
.hq-a b { font-size: 13px; color: var(--sub); }
.hq-a p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-none { margin-top: 14px; }
/* 회원 탈퇴 창: 사라지는 것 목록(회색 판 r14) → 보관 안내 → 확인 체크 → [닫기][탈퇴하기(빨강)] */
.lv-list { margin: 14px 0 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: var(--fill); display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lv-keep { margin: 10px 0 16px; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
@media (max-width: 880px) {
  .an-charts { grid-template-columns: 1fr; }
  .an-kpis { min-height: 0; }
  .an-head .seg, .ch-head .seg { display: flex; width: 100%; }
  .an-head .seg button, .ch-head .seg button { flex: 1; }
  .ch-exp, #chExport { width: 100%; }
  .ch-menu { left: 0; right: 0; }
  #helpTabs { display: flex; width: 100%; }
  #helpTabs button { flex: 1; padding: 0 6px; font-size: 13px; }
  .hp-form .btn { width: 100%; }
}
@media (max-width: 640px) {
  .rw { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; }
  .rw dt { flex: none; }
  .pager { justify-content: center; }
  .pg-total { width: 100%; text-align: center; }
  .pg-b { min-width: 40px; height: 40px; }
  .pg-jump input, .pg-jump .btn { height: 40px; min-height: 40px; }
  #chTable td:last-child, #anModels td:last-child { justify-content: space-between; }
  #chTable td:last-child::before, #anModels td:last-child::before { content: attr(data-label); }
}

/* ===== 2026-11-19 낮: 친구 추천 페이지(/invite), 페이백 내역, 구독 아래 라이트 안내 줄 =====
   대표님 "네모난 박스 4개 연속해서 있고 출금하기버튼도 이상하게 있고 … 친구추천은 별도페이지로 만들어서 더 제대로":
   테두리 상자는 수익 카드 하나뿐. 돈 숫자는 그 카드 안 한 줄, 사람 숫자는 상자 없이 칸막이 선만 있는 띠, [출금하기]는 출금 가능 금액 바로 옆 */
.iv { border-bottom: 0; padding-top: 12px; }
.iv-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; padding: 16px 0 44px; }
.iv-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.iv-title { margin: 0; font-size: 38px; line-height: 1.24; font-weight: 850; letter-spacing: -0.03em; word-break: keep-all; }
.iv-sub { margin: 14px 0 26px; font-size: 16px; line-height: 1.55; color: var(--sub); word-break: keep-all; }
.iv-link { display: flex; align-items: center; gap: 10px; max-width: 520px; height: 56px; padding: 0 8px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.iv-url { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-link .btn { flex: none; height: 40px; padding: 0 16px; }
.iv-code { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 0; font-size: 14px; color: var(--sub); }
.iv-code b { color: var(--ink); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.iv-code .btn-text { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.iv-card { padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 20px; }
.iv-l { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.iv-cash { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.iv-amt { font-size: 36px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.iv-cash .btn { flex: none; height: 44px; padding: 0 22px; }
.iv-cash .btn:disabled { background: #f2f4f6; border-color: #f2f4f6; color: #b0b8c1; opacity: 1; }
.iv-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); word-break: keep-all; }
.iv-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); min-height: 62px; }
.iv-money > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.iv-money dt { font-size: 12.5px; font-weight: 600; color: var(--sub); }
.iv-money dd { margin: 4px 0 0; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.iv-money small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.iv-steps { list-style: none; counter-reset: iv; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 30px 0; border-top: 1px solid var(--line); }
.iv-steps li { counter-increment: iv; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.iv-steps li::before { content: counter(iv); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; }
.iv-steps b { font-size: 15px; font-weight: 750; line-height: 28px; }
.iv-steps span { font-size: 14px; line-height: 1.5; color: var(--sub); word-break: keep-all; }
.iv-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 98px; }
.iv-strip > div { padding: 0 24px; }
.iv-strip > div:first-child { padding-left: 0; }
.iv-strip > div + div { border-left: 1px solid var(--line); }
.iv-strip dt { font-size: 13px; font-weight: 600; color: var(--sub); }
.iv-strip dd { margin: 6px 0 0; font-size: 22px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.iv-strip small { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
body[data-page="invite"] #refLink { color: var(--ink); font-weight: 700; }
@media (max-width: 880px) {
  .iv-top { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 4px 0 30px; }
  .iv-title { font-size: 27px; }
  .iv-sub { margin: 10px 0 20px; font-size: 15px; }
  .iv-link { max-width: none; }
  .iv-card { padding: 20px 18px 18px; }
  .iv-amt { font-size: 30px; }
  .iv-money > div + div { padding-left: 12px; }
  .iv-money dd { font-size: 15px; }
  .iv-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; }
  .iv-strip > div { padding: 0 12px; }
  .iv-strip dd { font-size: 19px; }
  .iv-strip small { display: block; margin: 2px 0 0; }
}
/* 페이백 내역: 구역 안 작은 제목 + 표(크레딧 내역과 같은 표, 쪽 번호). 더해진 값은 강조색, 빠진 값은 그대로 */
.wl-hist { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.wl-ht { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.wl-empty { margin: 4px 0 0; }
.tbl td.wl-plus { color: var(--accent-ink); font-weight: 700; }
.tbl td.wl-minus { font-weight: 600; }
/* 구독 큰 카드 아래 한 줄(라이트 요금제 알림): 상자 없이 글 + 테두리 단추 */
.lite-nudge { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; text-align: center; }
.lite-nudge p { margin: 0; font-size: 15px; font-weight: 600; color: var(--body); word-break: keep-all; }

/* ===== 2026-11-19 오후: 친구 추천 페이지에 그림과 어두운 위 판, 이메일 등록 안내 띠, UID, 회원 탈퇴 빨간색, 문의 사진, 완성 예상 시간 =====
   대표님 "이미지도 좀더 넣어줘. 약간 힉스필드 디자인도 섞어주고": 위 = 검은 판(둥글기 28) + 라임 강조(#d1fe17: 이름표, 숫자, 주 단추) + 오른쪽 큰 3D 그림과 뒤 라임 빛,
   수익 카드는 가로 한 장(왼쪽 출금 가능 금액과 [출금하기] | 오른쪽 돈 숫자 셋), 받는 순서는 그림 타일(검은 바탕, 왼쪽 위 라임 번호) + 아래 글. 밝은 판으로 = 서버 invite.dark false */
.iv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; padding: 16px 0 36px; }
.iv-art { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.iv-art img { display: block; width: 100%; max-width: 340px; height: auto; }
.iv-title em { font-style: normal; color: var(--accent-ink); }
.iv-dark .iv-hero { position: relative; overflow: hidden; margin: 4px 0 20px; padding: 48px 48px 48px 52px; border-radius: 28px; color: #fff; background-color: #0b0b0c;
  background-image: radial-gradient(460px 340px at 84% 46%, rgba(209,254,23,.22), transparent 70%), radial-gradient(340px 240px at 4% 112%, rgba(255,79,23,.16), transparent 72%); }
.iv-dark .iv-eyebrow { display: inline-flex; align-items: center; height: 28px; margin-bottom: 16px; padding: 0 12px; border-radius: 999px; background: #d1fe17; color: #0b0b0c; font-size: 13px; font-weight: 800; }
.iv-dark .iv-title { color: #fff; font-size: 42px; }
.iv-dark .iv-title em { color: #d1fe17; }
.iv-dark .iv-sub { color: rgba(255,255,255,.7); }
.iv-dark .iv-link { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.iv-dark .iv-url { color: #fff; }
.iv-dark .iv-link .btn { background: #d1fe17; border-color: #d1fe17; color: #0b0b0c; font-weight: 800; }
.iv-dark .iv-link .btn:hover { background: #e0ff5a; border-color: #e0ff5a; }
.iv-dark .iv-code { color: rgba(255,255,255,.62); }
.iv-dark .iv-code b { color: #fff; }
.iv-dark .iv-code .btn-text { color: #d1fe17; }
.iv-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 26px 30px; }
.iv-card .iv-money { margin: 0; padding: 0 0 0 36px; border-top: 0; border-left: 1px solid var(--line); align-items: center; }
.iv-steps { gap: 20px; padding: 36px 0 32px; border-top: 0; }
.iv-steps li.has-img { position: relative; display: block; }
.iv-steps li.has-img::before { position: absolute; top: 12px; left: 12px; z-index: 1; }
.iv-simg { display: flex; align-items: center; justify-content: center; height: 176px; border-radius: 20px; background: #f4f5f7; overflow: hidden; }
.iv-simg img { display: block; width: auto; height: 136px; }
.iv-steps li.has-img b { display: block; margin-top: 16px; font-size: 16px; line-height: 1.4; }
.iv-steps li.has-img > span:not(.iv-simg) { display: block; margin-top: 4px; }
.iv-dark .iv-simg { background-color: #0b0b0c; background-image: radial-gradient(220px 150px at 50% 58%, rgba(209,254,23,.2), transparent 72%); }
.iv-dark .iv-steps li.has-img::before { background: #d1fe17; color: #0b0b0c; }
@media (max-width: 880px) {
  .iv-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 4px 0 26px; }
  .iv-art { order: -1; min-height: 0; }
  .iv-art img { max-width: 190px; }
  .iv-dark .iv-hero { margin: 0 0 16px; padding: 22px 20px 26px; border-radius: 22px;
    background-image: radial-gradient(300px 220px at 50% 16%, rgba(209,254,23,.22), transparent 72%), radial-gradient(260px 180px at 0% 110%, rgba(255,79,23,.14), transparent 72%); }
  .iv-dark .iv-title { font-size: 28px; }
  .iv-dark .iv-eyebrow { margin-bottom: 12px; }
  .iv-card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 20px 18px 18px; }
  .iv-card .iv-money { margin: 18px 0 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .iv-steps { gap: 14px; padding: 26px 0 24px; }
  .iv-steps li.has-img { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; }
  .iv-simg { grid-row: 1 / span 2; height: 104px; border-radius: 16px; }
  .iv-simg img { height: 78px; }
  .iv-steps li.has-img::before { top: 8px; left: 8px; width: 24px; height: 24px; font-size: 12px; }
  .iv-steps li.has-img b { margin-top: 0; align-self: end; }
  .iv-steps li.has-img > span:not(.iv-simg) { align-self: start; }
}
/* 이메일 등록 안내 띠(대표님 "이메일 등록하기 이거 해놓게 해줘 웬만하면"): 연한 강조색 바탕 한 줄, 오른쪽 주 단추, 닫기 */
.nudge { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 10px 14px 18px; border: 1px solid #ffe2d3; border-radius: 16px; background: #fff7f2; }
.nudge[hidden] { display: none; }
.nudge-ic { flex: none; width: 22px; height: 22px; color: var(--accent-ink); }
.nudge-t { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; word-break: keep-all; }
.nudge-t b { font-size: 15px; font-weight: 750; color: var(--ink); }
.nudge-t span { font-size: 13.5px; line-height: 1.45; color: var(--sub); }
.nudge .btn { flex: none; }
.nudge-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; }
.nudge-x:hover { color: var(--ink); background: rgba(17,19,24,.05); }
.nudge-x svg { width: 16px; height: 16px; }
body[data-page="account"] .nudge { margin: 4px 0 8px; }
@media (max-width: 720px) {
  .nudge { position: relative; flex-wrap: wrap; gap: 12px; padding: 16px 44px 16px 16px; }
  .nudge-ic { display: none; }
  .nudge-t { flex-basis: 100%; }
  .nudge .btn { height: 44px; padding: 0 18px; }
  .nudge-x { position: absolute; top: 4px; right: 4px; }
}
/* 계정: UID(숫자 폭 고정), 회원 탈퇴는 빨간색(대표님 "회원탈퇴는 빨간색으로") */
.rw dd .uid { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rw dd .btn-text { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rw-danger dt { color: var(--bad); }
.btn.btn-line.btn-danger { border-color: #f1b8b8; color: var(--bad); background: #fff; }
.btn.btn-line.btn-danger:hover { border-color: var(--bad); background: #fdecec; }
/* 1:1 문의 사진: 84px 정사각 미리보기 줄 + 점선 [사진 추가] 칸, 올리는 중에는 흐리게 + 도는 고리. 내 문의에는 72px 미리보기 */
.hp-photo > span { display: block; }
.hp-ph { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hp-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--fill); }
.hp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-thumb.busy img { opacity: .4; }
.hp-thumb.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(17,19,24,.2); border-top-color: var(--ink); animation: hpSpin .8s linear infinite; }
.hp-thumb-x { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(17,19,24,.72); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.hp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 84px; height: 84px; padding: 0; border: 1.5px dashed #cfd4da; border-radius: 12px; background: #fff; color: var(--sub); font: inherit; cursor: pointer; }
.hp-add:hover { border-color: var(--ink); color: var(--ink); }
.hp-add b { font-size: 22px; font-weight: 500; line-height: 1; }
.hp-add span { font-size: 12px; font-weight: 600; }
.hq-ph { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hq-ph img { display: block; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
@keyframes hpSpin { to { transform: rotate(360deg); } }
/* 만드는 중인 영상: 완성 예상 시간(진하게) + '창을 닫아도 영상은 계속 제작됩니다.' */
.vid .ve { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--sub); }
.vid .ve b { font-weight: 700; color: var(--ink); }
/* 만드는 중 표시(2026-11-25 대표님 "약 12:55에 완성돼요. 왼쪽에 동글뱅이 돌아가는거 해주고"): 완성 예정 시각 글 앞에 도는 고리 */
.vid .ve b::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -1.5px; animation: veSpin .8s linear infinite; }
@keyframes veSpin { to { transform: rotate(360deg); } }
/* 친구 추천 출금 안내: 줄바꿈으로 나눈 두 줄 */
.iv-hint { white-space: pre-line; }
/* 영상 칸 오른쪽 위 단추(대표님 참고 화면, 구글 플로우식): 반투명 검은 알약 안에 ↩(프롬프트 재사용)와 ⋮, ⋮ 를 누르면 어두운 둥근 메뉴(둥글기 20, 줄 높이 48, 아이콘 22 + 굵은 글).
   메뉴는 칸 밖으로 나와도 잘리지 않게 화면에 직접 띄운다(position fixed, 위치는 스크립트가 잡는다) */
.vid { position: relative; }
.va { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(20, 21, 23, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.va-b { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.va-b:hover, .va-b[aria-expanded="true"] { background: rgba(255, 255, 255, .18); }
.va-b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.va-b svg circle { fill: currentColor; stroke: none; }
.vid.no-video .vt { padding-right: 86px; }
.vid.card .va { top: 8px; right: 8px; }
/* 묶인 카드의 [이전 영상 N](2026-11-30): 수정하기 전 영상 내려받기 메뉴를 연다. 메뉴의 줄은 글이 길면 줄을 바꾼다(좁은 화면에서 옆으로 밀리지 않게) */
.vc-olds { position: absolute; top: 8px; right: 8px; z-index: 3; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(20, 21, 23, .72); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.vc-olds:hover, .vc-olds[aria-expanded="true"] { background: rgba(60, 62, 66, .86); }
.vid:not(.card) > .vc-olds { top: 10px; right: 10px; }
.va-olds { max-width: calc(100vw - 16px); max-height: min(60vh, 420px); overflow-y: auto; overflow-x: hidden; }
.va-olds .va-mi { height: auto; min-height: 48px; padding: 8px 14px; white-space: normal; text-decoration: none; box-sizing: border-box; font-weight: 600; font-size: 14.5px; }
@media (max-width: 720px) { .vc-olds { min-height: 40px; } }
.va-menu { position: fixed; z-index: 60; min-width: 216px; padding: 8px; border-radius: 20px; background: #1f2023; box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .06); }
.va-mi { display: flex; align-items: center; gap: 14px; width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700;
  text-align: left; white-space: nowrap; cursor: pointer; }
.va-mi:hover, .va-mi:focus-visible { background: rgba(255, 255, 255, .1); outline: 0; }
.va-mi svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .va-b { width: 40px; height: 40px; } .vid.no-video .vt { padding-right: 98px; } }
/* 2026-11-19 저녁 구매 창: 두 탭 내용을 같은 칸에 겹쳐 창 높이를 늘 같게("[구독]이랑 [크레딧 충전] 왔다갔다할 때 창 크기가 바뀌는데 통일").
   안 고른 탭은 자리만 차지하고 안 보임(visibility hidden = 눌리지도, 글쇠로 가지도 않음). 창 높이 = 둘 중 긴 쪽 */
.tu-panes { display: grid; }
.tu-panes > div { grid-area: 1 / 1; min-width: 0; }
.tu-panes > div[hidden] { display: block !important; visibility: hidden; pointer-events: none; }

/* 2026-11-19 저녁 내 영상: 분류 알약 없이 전부 최신순("만드는 중인 거는 버퍼링 단계로, 실패는 실패 표시") */
.vc-media.busy, .vc-media.fail { flex-direction: column; gap: 10px; }
.vc-media.busy { background: #16181b; }
.vc-media.busy::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); transform: translateX(-100%); animation: vcSweep 1.8s ease-in-out infinite; }
.vc-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: #d1fe17; animation: vcSpin .9s linear infinite; }
.vc-media.fail { background: rgba(255,90,90,.07); box-shadow: inset 0 0 0 1px rgba(255,90,90,.24); }
.vc-fail { width: 32px; height: 32px; color: #ff6b6b; }
.vc-state { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.72); }
.vc-media.fail .vc-state { color: #ff8a8a; }
@keyframes vcSpin { to { transform: rotate(360deg); } }
@keyframes vcSweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .vc-spin, .vc-media.busy::after { animation: none; } }
/* 요금제 화면(콘솔 안)에서는 .console h3(16px)이 이겨서 막대 구역 제목이 작아졌다 → 같은 값을 다시. 구역 위아래 여백은 다른 구역과 같게 */
.console .hfc-head h3 { margin: 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; font-weight: 850; letter-spacing: -0.03em; }
.hf-sec .hfc { margin-top: 0; }
.hf-sec:not(:has(.hfc)) { display: none; }

/* 프롬프트 팁 말풍선의 [알았어요](2026-11-19 밤 대표님 "말풍선 우측하단에 [알았어요] 누르면 닫히게"): 글 아래 오른쪽 끝에 검은 알약 단추(라임 글자).
   닫았는지 스크립트가 본 뒤에 .on 을 붙여 띄운다(닫은 손님에게 떴다 사라지지 않게) */
.cp-tip { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 9px; }
.cp-tip:not(.on) { display: none; }
.cp-tip span { align-self: stretch; }
.cp-tip-ok { position: relative; flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #131517; color: #d1fe17; font: inherit; font-size: 12px; line-height: 28px; font-weight: 700;
  letter-spacing: -0.2px; cursor: pointer; }
.cp-tip-ok::after { content: ""; position: absolute; inset: -9px -8px; }
.cp-tip-ok:hover { background: #000; }
.cp-tip-ok[hidden] { display: none; }
/* 말풍선에 마우스를 올리거나 단추에 초점이 가면 둥실거림을 멈춘다([알았어요]가 움직이지 않게) */
.cp-tip:hover, .cp-tip:focus-within { animation-play-state: paused; }

/* 프롬프트 칸 높이 손잡이(2026-11-19 밤 대표님 "프롬프트 칸을 우측하단에 … 더 늘릴수있게"): 칸 오른쪽 아래 모서리의 빗금 세 줄. 아래로 끌면 늘고 위로 끌면 줄어든다(기본 높이 아래로는 안 줄어듦) */
.cp-prompt { position: relative; }
.cp-grip { position: absolute; right: 1px; bottom: 1px; width: 22px; height: 22px; border-radius: 6px; cursor: ns-resize; touch-action: none; opacity: .5;
  background: linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,.7) 46% 52%, transparent 52% 62%, rgba(255,255,255,.7) 62% 68%, transparent 68% 78%, rgba(255,255,255,.7) 78% 84%, transparent 84%); }
.cp-grip::after { content: ""; position: absolute; inset: -10px; }
.cp-grip:hover, .cp-grip:focus-visible, .cp-grip.drag { opacity: 1; outline: 0; }
/* 만들기 왼쪽 패널 너비 손잡이: 두 패널 사이 틈에 세로 알약. 올리거나 끄는 동안 라임색으로 길어진다. PC 두 칸 배치에서만 */
.cp-split { display: none; }
@media (min-width: 1000px) {
  body[data-page="create"] .cp-split:not([hidden]) { display: block; position: fixed; z-index: 4; top: 72px; left: 0; width: 12px; height: calc(100dvh - 88px); cursor: col-resize; touch-action: none; outline: 0; }
  .cp-split i { position: absolute; left: 4px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 999px; background: rgba(255,255,255,.24); transition: background .15s ease, height .15s ease, margin-top .15s ease; }
  .cp-split:hover i, .cp-split:focus-visible i, .cp-split.drag i { background: #d1fe17; height: 68px; margin-top: -34px; }
}
body.cp-dragging { -webkit-user-select: none; user-select: none; cursor: col-resize; }
body.cp-dragging-y { -webkit-user-select: none; user-select: none; cursor: ns-resize; }

/* ---------- 2026-11-19 밤 3차: 결제 수단 관리(계정 화면 목록, 추가·수정 창, 입금 창의 저장한 결제 수단) ---------- */
.pm-btns { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pm-btns:empty { display: none; }
@media (min-width: 641px) {
  .rw-pm { align-items: flex-start; }                 /* 목록이 붙어 줄이 길어져도 '결제 수단' 이름표는 첫 줄 높이에 */
  .rw-pm dt { display: flex; align-items: center; min-height: 40px; }
}
.pm-list { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.pm-list[hidden] { display: none; }
.pm-it { display: flex; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pm-main { min-width: 0; display: grid; gap: 3px; }
.pm-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-name { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.rw dd .pm-sub { font-size: 13px; font-weight: 500; color: var(--sub); }
.pm-acts { display: flex; align-items: center; gap: 4px; flex: none; margin: -6px -8px -6px 0; }
.rw dd .pm-acts .btn-text { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; white-space: nowrap; }
.rw dd .btn-text.pm-del { color: var(--bad); }
@media (max-width: 560px) {
  .pm-it { flex-direction: column; align-items: stretch; }
  .pm-acts { justify-content: flex-end; margin: -4px -8px -8px 0; }
}
.sheet.pm h3 { margin-bottom: 6px; }
.sheet.pm .pm-lead { margin: 0 0 16px; }
.pm-proofbox { margin: 2px 0 12px; }
.pm-proofbox[hidden] { display: none; }
.pm-label { display: block; font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.sheet.pm .seg { display: flex; }
.sheet.pm .seg button { flex: 1; min-height: 44px; padding: 0 8px; }
.seg button[hidden] { display: none; }
.sheet.pm .bk-taxf { margin: 0 0 12px; }
.sheet.pm .pm-taxhint { margin: -4px 0 12px; }
.sheet.pm .pm-defrow { margin: 2px 0 14px; }
.pm-defrow[hidden] { display: none; }
.bk-pm { margin: 0 0 14px; }
.bk-pm[hidden] { display: none; }
.bk-pmchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-pmchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.bk-pmchip small { font-size: 12px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.bk-pmchip[aria-pressed="true"] { border-color: #111318; box-shadow: inset 0 0 0 1px #111318; }
.bk-save { margin: 0 0 12px; font-size: 14px; }
.bk-save[hidden] { display: none; }

/* 2026-11-19 밤 대표님 "프롬프트를 맨위로 올리고, 참고할걸 좀 밑에 놔봐": PC 만들기 패널 = 프롬프트 → 팁 말풍선 → 레퍼런스 칸 → 넣은 영상과 사진 → 조작부.
   서버 show cp.ref_below 를 끄면 data-ref 가 빠져 예전 순서(레퍼런스 칸이 위). 휴대폰은 원래 프롬프트가 맨 위라 그대로 */
@media (min-width: 1000px) {
  body[data-page="create"] .composer[data-ref="below"] .cp-top { display: contents; }
  body[data-page="create"] .composer[data-ref="below"] .cp-prompt { order: -2; flex: none; }
  body[data-page="create"] .composer[data-ref="below"] .cp-tip { order: -1; }
}

/* ===== 2026-11-22 흑우봇 단톡방(/vip): 대표님 "월8만원짜리 플랜 이상 산 사람한테 … 단톡방 주소랑 비번 보여지게".
   친구 추천 페이지의 어두운 판(.iv-dark .iv-hero, 라임 #d1fe17)을 그대로 쓰고 제목 아래 상태 칸만 더한다(app.js drawClub).
   상태 칸은 처음에 비어 있고(같은 자리 min-height) 서버 답을 받은 뒤 한 번만 그린다 = 보였다 바뀌는 글 없음 */
body[data-page="club"] [data-pg]:not([data-pg~="club"]) { display: none !important; }
body[data-page="club"] .cwrap { max-width: 1120px; }      /* 친구 추천 페이지와 같은 폭(콘솔 기본 720 이면 그림이 상태 칸을 덮음) */
.cl-state { min-height: 132px; margin-top: 16px; }
.iv-dark .cl-msg { margin: 0; font-size: 16px; line-height: 1.6; word-break: keep-all; }
.cl-box { display: grid; gap: 10px; max-width: 520px; margin-top: 22px; }
.cl-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.cl-l { flex: none; width: 78px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.cl-v { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-pw { font-size: 21px; font-weight: 800; letter-spacing: .06em; color: #d1fe17; font-variant-numeric: tabular-nums; }
.cl-copy { flex: none; height: 40px; padding: 0 14px; border-color: transparent; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.cl-copy:hover { background: rgba(255,255,255,.2); opacity: 1; }
.cl-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cl-go, .cl-alt { height: 52px; padding: 0 26px; font-size: 16px; font-weight: 800; }
.cl-go { border-color: #d1fe17; background: #d1fe17; color: #0b0b0c; }
.cl-go:hover { border-color: #e0ff5a; background: #e0ff5a; opacity: 1; }
.cl-alt { border-color: rgba(255,255,255,.3); background: transparent; color: #fff; font-weight: 700; }
.cl-alt:hover { border-color: #fff; opacity: 1; }
.cl-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.55); word-break: keep-all; }
@media (max-width: 880px) {
  .iv-dark .cl-msg { font-size: 15px; }
  .cl-row { flex-wrap: wrap; row-gap: 2px; padding: 10px 8px 8px 14px; }
  .cl-l { width: 100%; }
  .cl-copy { height: 44px; }
  .cl-acts .btn { flex: 1 1 100%; }
}

/* 2026-11-22 구매 창 요금제 줄: 달러 값, 첫 달 할인이면 줄 그은 정가 + 첫 달 값 + '첫 달, 이후 월 $59' */
.tu-plan .tp-r s { margin-right: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.42); text-decoration-thickness: 1.5px; }

/* ===== 이어서 만들기 페이지(/next, 2026-11-23 대표님 "아예 이어서만들기 페이지 별도로 만들어서, 영상 가운데다 두고 대본이나 이런거 좀더 크게 입력할수 있게 … 구글 ai flow 이거 ui 참고"):
   어두운 화면, 가운데 큰 영상(고른 장면, 위 왼쪽 이름표) → 이어지는 곳 한 줄 → 장면 줄(원본 → 이어 만든 장면, 화살표로 이음, 고른 것 연두 테) → 넓은 입력 상자(글 칸 168~360, 칩 줄 + 오른쪽 만들기 단추).
   휴대폰 = 영상 높이 62vh 까지, 장면 줄은 줄바꿈(옆으로 넘기지 않음), 입력 상자 위아래 ===== */
body[data-page="next"] [data-pg]:not([data-pg~="next"]) { display: none !important; }
body[data-page="next"] { --ink: #f7f7f8; --body: rgba(255,255,255,.82); --sub: rgba(255,255,255,.6); --faint: rgba(255,255,255,.42); --line: rgba(255,255,255,.1); --fill: rgba(255,255,255,.06); --bg: #0b0c0e;
  background: #0b0c0e; color: #f7f7f8; }
body[data-page="next"] .top { background: rgba(11,12,14,.92); border-bottom-color: rgba(255,255,255,.08); }
body[data-page="next"] .top nav a.pill { background: rgba(255,255,255,.08); color: #fff; }
body[data-page="next"] .top nav a.pill.pb { background: rgba(255,79,23,.2); color: #ff9b73; }
body[data-page="next"] .top nav.cnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
body[data-page="next"] .toast { background: #f7f7f8; color: #131517; }
body[data-page="next"] footer.foot { border-top-color: rgba(255,255,255,.08); }
body[data-page="next"] footer.foot .links a.strong { color: #fff; }
body[data-page="next"] .btn { color: #111318; }
body[data-page="next"] .btn-line { background: transparent; color: #f7f7f8; border-color: rgba(255,255,255,.16); }
body[data-page="next"] .field input { background: rgba(255,255,255,.05); color: #fff; }
body[data-page="next"] .check input { accent-color: #d1fe17; }
body[data-page="next"] .boot .sk { background: rgba(255,255,255,.06); }
body[data-page="next"] .cwrap { max-width: 960px; padding-top: 12px; }
body[data-page="next"] #dash > .ai-note { display: none; }
body[data-page="next"] .sec { border-bottom: 0; }
body[data-page="next"] #makeSec > h2, body[data-page="next"] #tplBox, body[data-page="next"] #easyForm, body[data-page="next"] .cp-plus,
body[data-page="next"] #cpThumbs, body[data-page="next"] .cp-chip[data-chip="ratio"] { display: none !important; }
.nx { padding: 8px 0 0; }
.nx-top { display: flex; align-items: center; gap: 4px; margin: 0 0 14px -10px; }
.nx-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #f7f7f8; }
.nx-back:hover { background: rgba(255,255,255,.08); }
.nx-back svg { width: 22px; height: 22px; }
.nx-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.nx-player { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(300px, 56vh, 600px); border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); background: radial-gradient(70% 60% at 50% 45%, rgba(209,254,23,.05), rgba(255,255,255,0) 70%), #121416; }
.nx-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.nx-tag { position: absolute; left: 14px; top: 14px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; line-height: 28px; font-weight: 700; pointer-events: none; }
.nx-ring { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(209,254,23,.18); border-top-color: #d1fe17; animation: nxSpin .9s linear infinite; }
@keyframes nxSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nx-ring { animation-duration: 2.4s; } }
.nx-wait { display: grid; justify-items: center; gap: 10px; max-width: 320px; padding: 24px; text-align: center; }
.nx-wait b { font-size: 16px; line-height: 24px; font-weight: 700; }
.nx-wait span { font-size: 13.5px; line-height: 20px; color: rgba(255,255,255,.6); }
.nx-wait.bad b { color: #ff8a8a; }
.nx-lib { margin-top: 6px; }
.nx-from { margin: 12px 0 0; min-height: 20px; text-align: center; font-size: 13.5px; line-height: 20px; color: rgba(255,255,255,.6); }
.nx-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; margin: 12px 0 0; }
.nx-strip[hidden] { display: none; }
.nx-clip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; }
.nx-clip .th { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; background: #1b1e21; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.nx-clip .th video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.nx-clip .th .nx-ring { width: 20px; height: 20px; border-width: 2px; }
.nx-clip .th.bad { color: #ff8a8a; font-size: 18px; font-weight: 800; }
.nx-clip small { font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.nx-clip[aria-pressed="true"] .th { box-shadow: 0 0 0 2px #d1fe17; }
.nx-clip[aria-pressed="true"] small { color: #fff; }
.nx-clip:hover .th { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.nx-clip[aria-pressed="true"]:hover .th { box-shadow: 0 0 0 2px #d1fe17; }
.nx-arrow { width: 14px; height: 14px; margin-bottom: 22px; border-right: 2px solid rgba(255,255,255,.28); border-bottom: 2px solid rgba(255,255,255,.28); transform: rotate(-45deg) scale(.7); }
body[data-page="next"] #makeSec { max-width: 880px; margin: 18px auto 0; padding: 0 0 24px; }
body[data-page="next"] .composer { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 12px; padding: 18px 18px 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); }
body[data-page="next"] .cp-top { grid-column: 1 / -1; }
body[data-page="next"] .composer textarea { font-size: 16px; line-height: 26px; margin: 0; }
body[data-page="next"] .cp-tip, body[data-page="next"] .cp-videos, body[data-page="next"] .cp-same { grid-column: 1 / -1; }
body[data-page="next"] .cp-same { order: 2; margin: 0; }      /* 칩 줄과 만들기 단추를 한 줄에, 안내 한 줄은 그 아래 */
body[data-page="next"] .cp-chips { grid-column: 1; align-self: center; }
body[data-page="next"] .cp-go { grid-column: 2; grid-row: auto; align-self: center; width: auto; min-width: 168px; height: 48px; padding: 0 22px; flex-direction: row; gap: 8px; }
body[data-page="next"] .cp-go b { font-size: 15px; line-height: 24px; font-weight: 700; letter-spacing: 0; text-transform: none; }
body[data-page="next"] #makeErr { margin: 10px 4px 0; }
@media (max-width: 640px) {
  body[data-page="next"] .cwrap { padding: 8px 16px 28px; }
  .nx-top { margin-left: -8px; }
  .nx-player { height: min(62vh, 520px); border-radius: 18px; }
  body[data-page="next"] #makeSec { margin-top: 14px; }
  body[data-page="next"] .composer { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 18px; }
  body[data-page="next"] .cp-go { grid-column: 1; width: 100%; height: 52px; }
}
/* 이어서 만들기 페이지의 머리줄 단추와 휴대폰 메뉴도 만들기 화면과 같은 어두운 모양(offer.css, mnav.css 의 만들기 화면 규칙과 같은 값) */
body[data-page="next"] .on-price { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; }
body[data-page="next"] .on-offer { border-color: rgba(209,254,23,.55); background: rgba(209,254,23,.1); color: #d1fe17; box-shadow: 0 0 14px rgba(209,254,23,.18); }
@media (max-width: 880px) {
  body[data-page="next"] .m-menu-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
  body[data-page="next"] .m-menu-btn.on { border-color: #d1fe17; }
  body[data-page="next"] .m-menu { border-color: rgba(255,255,255,.1); background: #17191c; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
  body[data-page="next"] .mm-i { color: rgba(255,255,255,.82); }
  body[data-page="next"] .mm-i:hover, body[data-page="next"] .mm-i[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  body[data-page="next"] .mm-sep { background: rgba(255,255,255,.1); }
  body[data-page="next"] .mm-out { color: rgba(255,255,255,.55); }
}

/* ============ 휴대폰 만들기 입력부 = 힉스필드 휴대폰 만들기 화면처럼(2026-11-24 대표님 "모바일에서 영상만들때 넘불편함. 힉스필드처럼 드라마든 그냥 만들기든 모바일 제작 ui 고쳐 …
   위에는 [+] < 이거 누르면 레퍼런스 넣는거 [모델] [설정버튼] [생성하기]"). 999 이하의 만들기 화면에서만(PC 왼쪽 패널, 이어서 만들기 화면은 그대로).
   입력 상자 = 둥근 카드(r24, #1b1e21) 안에 글 칸 + 아랫줄 [+ 44 원][모델 알약][설정 44 원] … [생성하기 알약 44]. 드라마 화면의 입력 상자(drama.css)와 같은 치수.
   길이, 종횡비, 품질, 사운드, 프롬프트 보정 = [설정]을 누르면 아래에서 올라오는 창(칸 모양은 PC 왼쪽 패널의 조작부와 같게: 이름 작게 + 값). 간편하게 만들기 줄은 입력 상자 아래.
   예전 모양(칩 두 줄 + 큰 단추) = 서버 show cp.m_bar false */
.cp-set { display: contents; }
.cp-set-h, .cp-setbtn, .cp-set-bg, .cp-go b.m { display: none; }
@media (max-width: 999px) {
  body[data-page="create"] #makeSec[data-mbar]:not([hidden]) { display: flex; flex-direction: column; }
  body[data-page="create"] #makeSec[data-mbar] > h2 { margin-bottom: 24px; }      /* 제목과 입력 상자 사이를 더 띄운다(2026-11-24 밤 대표님 "여기 좀더 여백 띄워놔") */
  body[data-page="create"] #makeSec[data-mbar][data-nosame] .cp-same { display: none; }      /* 휴대폰 입력 상자의 '영상 모델, 예상 완성시간은 …' 줄을 뺀다(같은 날 "이거 지워놔", show cp.same_note_m) */
  body[data-page="create"] #makeSec[data-mbar] > .composer, body[data-page="create"] #makeSec[data-mbar] > .easy { order: 1; }
  body[data-page="create"] #makeSec[data-mbar] > #makeErr, body[data-page="create"] #makeSec[data-mbar] > .invite-box { order: 2; }
  body[data-page="create"] #makeSec[data-mbar] > .tpl { order: 3; margin: 18px 0 0; }
  body[data-page="create"] .composer[data-mbar]:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px;
    background: #1b1e21; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-page="create"] .composer[data-mbar] .cp-top, body[data-page="create"] .composer[data-mbar] .cp-chips { display: contents; }
  body[data-page="create"] .composer[data-mbar] .cp-prompt { order: 0; flex: 1 1 100%; }
  body[data-page="create"] .composer[data-mbar] textarea { min-height: 76px; margin: 0; padding: 10px 10px 2px; }
  body[data-page="create"] .composer[data-mbar] .cp-grip { right: 4px; bottom: 2px; }
  body[data-page="create"] .composer[data-mbar] .cp-tip { order: 1; flex: 1 1 100%; margin: 4px 2px 2px; }
  body[data-page="create"] .composer[data-mbar] .cp-videos, body[data-page="create"] .composer[data-mbar] .cp-thumbs { order: 2; flex: 1 1 100%; margin: 2px; }
  body[data-page="create"] .composer[data-mbar] .cp-plus, body[data-page="create"] .composer[data-mbar] .cp-setbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
  body[data-page="create"] .composer[data-mbar] .cp-plus { order: 3; }
  body[data-page="create"] .composer[data-mbar] .cp-setbtn { order: 5; }
  body[data-page="create"] .composer[data-mbar] .cp-plus svg, body[data-page="create"] .composer[data-mbar] .cp-setbtn svg { width: 20px; height: 20px; }
  body[data-page="create"] .composer[data-mbar] .cp-plus[aria-expanded="true"], body[data-page="create"] .composer[data-mbar] .cp-setbtn[aria-expanded="true"],
  body[data-page="create"] .composer[data-mbar] .cp-plus:active, body[data-page="create"] .composer[data-mbar] .cp-setbtn:active { background: rgba(255,255,255,.16); }
  body[data-page="create"] .composer[data-mbar] .cp-setbtn:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
  body[data-page="create"] .composer[data-mbar] .cp-chip[data-chip="model"] { order: 4; flex: 0 1 auto; min-width: 0; height: 44px; gap: 6px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08);
    font-size: 14px; line-height: 20px; }
  body[data-page="create"] .composer[data-mbar] .cp-chip[data-chip="model"][aria-expanded="true"] { background: rgba(255,255,255,.16); }
  body[data-page="create"] .composer[data-mbar] .cp-chip[data-chip="model"] b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body[data-page="create"] .composer[data-mbar] .cp-go { order: 6; flex: none; width: auto; height: 44px; margin: 0 0 0 auto; padding: 0 17px 2px; border-radius: 999px; flex-direction: row; gap: 6px; }
  body[data-page="create"] .composer[data-mbar] .cp-go b { display: none; }
  body[data-page="create"] .composer[data-mbar] .cp-go b.m { display: inline; font-size: 15px; line-height: 20px; font-weight: 800; letter-spacing: -.01em; text-transform: none; }
  body[data-page="create"] .composer[data-mbar] .cp-same { order: 7; flex: 1 1 100%; margin: 2px 8px 4px; }
  body[data-page="create"] .composer[data-mbar] .cp-menu { position: fixed; z-index: 62; min-width: 184px; }
  body[data-page="create"] .composer[data-mbar] .cp-opt { min-height: 44px; font-size: 15px; }
  /* [설정] 창 */
  body[data-page="create"] .composer[data-mbar] .cp-set { display: none; }
  body[data-page="create"] .composer[data-mbar] .cp-set-bg:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); animation: bgIn .2s ease both; }
  body[data-page="create"] .composer[data-mbar].set-open .cp-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86dvh;
    overflow-y: auto; padding: 16px 16px calc(20px + var(--sab)); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 24px 24px 0 0; background: #131517; box-shadow: 0 -12px 48px rgba(0,0,0,.5);
    animation: sheetUp .32s cubic-bezier(.2, .8, .2, 1) both; }
  body[data-page="create"] .composer[data-mbar] .cp-set-h { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; margin: 0 0 6px; }
  body[data-page="create"] .composer[data-mbar] .cp-set-h b { font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; color: #fff; }
  body[data-page="create"] .composer[data-mbar] .cp-set-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 12px; background: none;
    color: rgba(255,255,255,.56); cursor: pointer; }
  body[data-page="create"] .composer[data-mbar] .cp-set-x svg { width: 22px; height: 22px; }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; height: 60px; padding: 8px 32px 8px 14px;
    border: 0; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 15px; line-height: 20px; font-weight: 600; text-align: left; }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip::before { content: attr(data-label); font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.6); }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid rgba(255,255,255,.6);
    border-bottom: 1.5px solid rgba(255,255,255,.6); transform: translateY(-65%) rotate(-45deg); }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip[data-chip="sound"]::after { display: none; }      /* 누르면 바로 켜고 끈다 */
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip svg { display: none; }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip[aria-expanded="true"] { background: rgba(255,255,255,.12); }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip[data-chip="boost"] { grid-column: 1 / -1; }
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip[data-chip="boost"] b { font-size: 0; }      /* 이름표가 '프롬프트 보정'이라 값은 스타일 이름만(PC 패널과 같게) */
  body[data-page="create"] .composer[data-mbar] .cp-set .cp-chip[data-chip="boost"] b::after { content: attr(data-short); font-size: 15px; }
}
@media (max-width: 359px) {
  body[data-page="create"] .composer[data-mbar]:not([hidden]) { gap: 4px; }
  body[data-page="create"] .composer[data-mbar] .cp-chip[data-chip="model"] { padding: 0 10px; }
  body[data-page="create"] .composer[data-mbar] .cp-chip[data-chip="model"] svg { display: none; }
  body[data-page="create"] .composer[data-mbar] .cp-go { padding: 0 13px 2px; }
}

/* ===== 2026-11-24 실패 안내, 참조 사진 안내, 종횡비 확인 창, 어두운 화면의 오류 글 =====
   직원 피드백(대표님 전달) "흰색 글자가 배경에 묻혀 내용을 읽기 어렵습니다", "실패 사유와 해결 방법, 크레딧 차감 여부를 함께 안내해 주세요".
   - 실패 안내 상자(.vf): 설정 줄 아래에 따로 둔다. 예전에는 설정 줄 뒤에 옅은 회색 글로 이어 붙어 잘 안 보였다. 까닭 = 진한 글, 고치는 법 = 본문 글, 크레딧 = 옅은 글
   - 참조 사진 안내 줄(.cp-refnote): 참고영상 주소 안내 줄(.cp-vnote)과 같은 주황 글 + 바로 누를 단추(휴대폰 44)
   - 종횡비 확인 창(.sheet.ra): 드라마 화면의 가입 안내 창과 같은 어두운 창(#131517 r24, 흰 8% 테, 바깥 검정 62%, 아이콘 52, 큰 한 줄 20/800, 단추 52). 휴대폰은 아래에 붙고 단추는 위아래
   - 어두운 화면(만들기, 내 영상, 이어서 만들기)의 오류 글(.form-err): 짙은 빨강 #c92a2a 는 어두운 바탕에서 대비 3.4 라 주황 #ff8a65(대비 8)로. 밝은 창 안의 오류 글은 그대로 */
.vf p span, .cp-refnote p span { display: inline-block; }      /* 문장마다 한 덩어리: 좁은 칸에서 줄이 문장 가운데가 아니라 문장 사이에서 바뀐다 */
.vid .vf { display: grid; gap: 3px; margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(255,107,107,.24); border-radius: 12px; background: rgba(255,107,107,.07); }
.vid .vf p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.vid .vf .vf-why { color: var(--ink); font-weight: 700; }
.vid .vf .vf-credit { margin-top: 3px; font-size: 13px; color: var(--sub); }
.view-empty .vf { display: grid; gap: 4px; max-width: 460px; margin: 14px auto 0; }
.view-empty .vf p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); overflow-wrap: anywhere; }
.view-empty .vf .vf-why { color: #fff; font-weight: 700; }
.view-empty .vf .vf-credit { font-size: 13px; color: rgba(255,255,255,.6); }
.cp-refnote { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; margin: 0 0 4px; padding: 0 4px; color: #ff8a65; font-size: 13px; line-height: 1.5; }
.cp-refnote[hidden] { display: none; }
.cp-refnote p { margin: 0; overflow-wrap: anywhere; }
.cp-refnote b { display: block; max-width: 100%; font-weight: 700; color: rgba(247,247,248,.86); overflow-wrap: anywhere; }      /* 여러 장을 같이 넣었을 때 어느 사진인지(파일 이름) */
.cp-refnote button { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
body[data-page="next"] .cp-refnote { grid-column: 1 / -1; }
body[data-page="create"] .form-err, body[data-page="library"] .form-err, body[data-page="next"] .form-err { color: #ff8a65; }
body[data-page] .sheet-bg .form-err { color: var(--bad); }
.ra-bg { background: rgba(0,0,0,.62); }
.sheet.ra { position: relative; max-width: 420px; padding: 30px 24px calc(24px + var(--sab)); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: #131517; color: #f7f7f8;
  box-shadow: 0 24px 80px rgba(0,0,0,.55); text-align: center; }
.ra-x { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none;
  color: rgba(255,255,255,.56); cursor: pointer; }
.ra-x:hover { background: rgba(255,255,255,.06); color: #fff; }
.ra-x svg { width: 22px; height: 22px; }
.ra-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(209,254,23,.12); color: #d1fe17; }
.ra-ic svg { width: 26px; height: 26px; }
.console .sheet.ra .ra-title { margin: 16px 0 0; font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.ra-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.7); text-wrap: balance; }
.ra-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.ra-btn { min-height: 52px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: transparent; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.ra-btn:hover { background: rgba(255,255,255,.06); }
.ra-btn.fill { border-color: #d1fe17; background: #d1fe17; color: #131517; }
.ra-btn.fill:hover { background: #dcff4a; }
.ra-btn:focus-visible, .ra-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 1000px) {
  body[data-page="create"] .cp-refnote { flex: none; margin: 0; }
}
@media (max-width: 999px) {
  .cp-refnote button { min-height: 44px; padding: 0 16px; font-size: 14px; }
  body[data-page="create"] .composer[data-mbar] .cp-refnote { order: 2; flex: 1 1 100%; margin: 2px 6px 4px; }
}
@media (max-width: 880px) {
  .sheet.ra { max-width: none; padding-top: 34px; border-bottom: 0; border-radius: 24px 24px 0 0; }
  .sheet.ra::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.2); }
  .ra-acts { grid-template-columns: 1fr; }
}

/* 마이페이지 프로필 + 내 작품(2026-11-25 새벽 대표님, 힉스필드 프로필 캡처 "마이페이지도 이런식으로 내 프로필 나오고, 좀 간지나게 … 프로필 사진 + 그 밑에 @uid", "내 작품 먼저 나오게"):
   어두운 둥근 카드(r24, 위쪽에 연두 빛) 가운데 정렬: 프사 88(연두 고리 4) → 이름 22/800 → @UID 15 흰 60% → 숫자 셋(값 20/800, 이름 13) → 단추 둘(46, r14, 주 단추 연두).
   내 작품 = 세로 9:16 칸, 휴대폰 세 칸(사이 6) / PC 네 칸(사이 10), r12. PC 와 휴대폰이 같은 카드(폭만 다름) */
.pf { position: relative; display: grid; justify-items: center; margin: 8px 0 22px; padding: 30px 20px 22px; border-radius: 24px; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 80% at 50% -12%, rgba(209,254,23,.18), rgba(209,254,23,0) 62%), linear-gradient(160deg, #1b1d21 0%, #0b0c0e 72%); }
.pf[hidden] { display: none; }
.pf-av { display: grid; place-items: center; width: 88px; height: 88px; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, #d1fe17, #8cf7a6, #d1fe17); }
.pf-av > * { display: grid; place-items: center; width: 100%; height: 100%; border: 3px solid #0f1113; border-radius: 50%; background: #23262b; object-fit: cover; }
.pf-av > span { font-size: 32px; line-height: 1; font-weight: 800; color: #d1fe17; }
.pf-name { max-width: 100%; margin-top: 14px; overflow: hidden; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.pf-name[hidden] { display: none; }
.pf-uid { margin-top: 2px; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.pf-name[hidden] + .pf-uid { margin-top: 14px; font-size: 20px; font-weight: 800; color: #fff; }
.pf-stats { display: flex; justify-content: center; width: 100%; max-width: 420px; margin: 18px 0 0; }
.pf-stats > div { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.pf-stats dd { margin: 0; overflow: hidden; font-size: 20px; line-height: 1.3; font-weight: 800; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.pf-stats dt { margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.6); }
.pf-acts { display: flex; gap: 8px; width: 100%; max-width: 420px; margin-top: 18px; }
.pf-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1);
  color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pf-btn:hover { background: rgba(255,255,255,.16); }
.pf-btn.fill { background: #d1fe17; color: #111318; }
.pf-btn.fill:hover { background: #dcff4d; }
.pf-btn:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
body.has-pf[data-page="account"] #dash > .pg-title[data-pg="account"] { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.has-pf[data-page="account"] #who { display: none; }
@media (min-width: 881px) {
  body[data-page="account"][data-acct] #dash > .pf { grid-column: 1 / -1; padding: 36px 24px 26px; }
  /* 프로필 카드가 있으면 제목 줄과 이름 줄이 없어 구역이 둘째 줄부터 놓인다 → 왼쪽 메뉴도 둘째 줄부터
     (2026-11-25 대표님 PC 캡처 "왼쪽 메뉴가 좀더 위에있어야 되는거아님": 셋째 줄에 두면 첫 구역 아래로 밀린다) */
  body.has-pf[data-page="account"][data-acct] #dash > .pf { grid-row: 1; }
  body.has-pf[data-page="account"][data-acct] #dash > .acct-side { grid-row: 2 / span 30; }
}
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.pf-grid:empty { display: none; }
.pf-grid a { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #111318; }
.pf-grid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-grid a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 881px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } .pf-grid a { border-radius: 14px; } }
.pf-empty { display: grid; justify-items: center; gap: 14px; margin-top: 16px; padding: 36px 16px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.pf-empty[hidden] { display: none; }
.pf-empty p { margin: 0; color: var(--sub); font-size: 15px; }

/* ===== 전용 결제 페이지(/checkout)와 결제 완료 페이지(/checkout/done), 2026-11-25
   대표님 "구독버튼 누르면 거기서 바로 [진행중...] … 별도 구독전용 결제페이지로 이동된다고 우리도 똑같이 이렇게 결제페이지 구독이나 API나 크레딧 다 별도로 만들어 …
   자세한 설명이랑 토스페이먼츠 진행하기 … 카드입력되면 바로 그걸로 결제하고 완료됐어요! … 블덱스비즈 앱 마지막에 세팅 다하면 나오는 v 표시".
   배치 = 힉스필드 결제 페이지 실측(Aside, 1440 과 412 폭): 바탕 #0f1113, PC 가운데 768 = 왼쪽 결제 수단 364 + 사이 44 + 오른쪽 주문 요약 360(판 흰 5% r12 안쪽 16,
   이름 24/700 + 알약 12/600, 줄 14/500, 할인 값 연두, 강조 띠 h40 r10 연두 15%, 주 단추 360x48 r12 연두 #d1fe17 글 #131517 16, 아래 안내 12 회색 #898a8b).
   휴대폰 = 머리 48(뒤로 14 흰 40% + 가운데 제목 14/600) → 요약 판(#131517 r20 안쪽 4, 안 #1c1e20) → 결제 금액 판(r16) → 결제 수단 판(#1c1e20 r16 안쪽 16) → 단추.
   완료 체크 = design-guide patterns/app-onboarding 의 토스식 완료 체크(원 96 톡 0.5초 → 체크 그려짐 0.42초 → 테두리 한 번 퍼짐). ===== */
body[data-page="checkout"] [data-pg]:not([data-pg~="checkout"]) { display: none !important; }
body[data-page="checkout"] { --ink: #f7f7f8; --body: rgba(255,255,255,.82); --sub: rgba(255,255,255,.6); --faint: rgba(255,255,255,.42); --line: rgba(255,255,255,.1); --fill: rgba(255,255,255,.06); --bg: #0f1113;
  background: #0f1113; color: #f7f7f8; }
/* 결제 페이지와 결제 완료 페이지에는 사이트 머리줄(메뉴)을 두지 않는다: 맨 위는 [뒤로]와 제목뿐(힉스필드 결제 페이지와 같게, 결제에 필요한 것만).
   가입 전 손님이 이 주소에서 가입하거나 로그인하는 동안(body.co-auth, app.js show)에만 머리줄이 보인다 */
body[data-page="checkout"]:not(.co-auth) .top { display: none; }
body[data-page="checkout"] .top { background: rgba(15,17,19,.92); border-bottom-color: rgba(255,255,255,.08); }
body[data-page="checkout"] .m-menu-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
body[data-page="checkout"] .top nav a.pill { background: rgba(255,255,255,.08); color: #fff; }
body[data-page="checkout"] .top nav a.pill.pb { background: rgba(255,79,23,.2); color: #ff9b73; }
body[data-page="checkout"] .on-price { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; }
body[data-page="checkout"] .top nav.cnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
body[data-page="checkout"] .toast { background: #f7f7f8; color: #131517; }
body[data-page="checkout"] footer.foot { border-top-color: rgba(255,255,255,.08); }
body[data-page="checkout"] footer.foot .links a.strong { color: #fff; }
body[data-page="checkout"] .btn { color: #111318; }
body[data-page="checkout"] .btn-line { background: transparent; color: #f7f7f8; border-color: rgba(255,255,255,.16); }
body[data-page="checkout"] .field input { background: rgba(255,255,255,.05); color: #fff; }
body[data-page="checkout"] .field input[readonly] { background: rgba(255,255,255,.02); color: rgba(255,255,255,.6); }
body[data-page="checkout"] .soc-google { border-color: #fff; }
body[data-page="checkout"] .check input { accent-color: #d1fe17; }
body[data-page="checkout"] .boot .sk { background: rgba(255,255,255,.06); }
body[data-page="checkout"] .cwrap { max-width: 816px; padding-top: 12px; }
body[data-page="checkout"].co-auth .cwrap { padding-top: 20px; }
body[data-page="checkout"] #auth { max-width: 400px; margin: 0 auto; }
/* 결제 페이지에는 맨 위 오퍼 띠와 큰 오퍼 칸을 두지 않는다(결제에 필요한 것만) */
body[data-page="checkout"] .offer-bar, body[data-page="checkout"] .offer-hero, body[data-page="checkout"] .offer-pop { display: none !important; }

.co { padding: 4px 0 48px; }
.co[hidden], .co-grid[hidden], .co-wait[hidden], .co-msg[hidden], .co-done[hidden], .co-amt[hidden], .co-box[hidden] { display: none; }
.co-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 0 0 28px; }
.co-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -8px; padding: 0 10px 0 4px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.co-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.co-back:hover { background: rgba(255,255,255,.06); }
.console .co-title { margin: 0; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.co-grid { display: grid; grid-template-columns: minmax(0, 364px) 360px; grid-template-areas: "left right" "left act"; grid-template-rows: auto 1fr; column-gap: 44px; row-gap: 12px; align-items: start; }
.co-left { grid-area: left; display: grid; gap: 12px; min-width: 0; }
.co-right { grid-area: right; min-width: 0; }
.co-act { grid-area: act; min-width: 0; }
.co-box { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); }
.console .co-box h2 { margin: 0 0 12px; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
/* 결제 수단 */
.co-ways { display: grid; gap: 8px; }
.co-way { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.1); border-radius: 12px; background: transparent;
  color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.co-way[aria-checked="true"] { border-color: #d1fe17; background: rgba(209,254,23,.06); }
.co-way.solo { cursor: default; background: rgba(255,255,255,.03); }
.co-way .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.co-way[aria-checked="true"] .dot { border-color: #d1fe17; background: radial-gradient(circle, #d1fe17 0 5px, transparent 6px); }
.co-way .ic { flex: none; width: 24px; height: 24px; fill: none; stroke: rgba(255,255,255,.82); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.co-way .tx { min-width: 0; }
.co-way b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.co-way small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 18px; color: rgba(255,255,255,.5); }
.co-way .pg { margin-left: auto; padding-left: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); white-space: nowrap; }
/* 충전 금액 */
.co-amt .co-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-custom { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.co-custom label { flex: none; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72); }
.co-custom .usd-box input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
.co-custom .usd-box input:focus { border-color: #d1fe17; }
.co-amt .hint.bad { color: #ff8a65; }
/* 설명 */
.co-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.co-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.82); word-break: keep-all; }
.co-checks svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #d1fe17; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* 주문 요약 */
.co-sum { padding: 16px 16px 0; border-radius: 12px 12px 0 0; background: rgba(255,255,255,.05); }
.co-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; }
.co-name b { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.co-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.co-badge[hidden] { display: none; }
.co-desc { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: rgba(255,255,255,.5); word-break: keep-all; }
.co-desc:empty { display: none; }
.co-rows { display: grid; gap: 20px; margin: 22px 0 0; }
.co-rows > div, .co-receipt > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #fff; }
.co-rows dt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.co-rows dt small { flex-basis: 100%; font-size: 12px; line-height: 16px; font-weight: 500; color: #898a8b; }
.co-rows dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-rows .off dd { color: #d1fe17; }
.co-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 6px; background: #d1fe17; color: #131517; font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }
.co-total-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 16px 16px; border-radius: 0 0 12px 12px; background: rgba(255,255,255,.05); }
.co-total-l b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.co-total-l small { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #898a8b; }
.co-total-l small:empty { display: none; }
.co-total-v { font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-save { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(209,254,23,.15);
  color: #d1fe17; font-size: 14px; line-height: 18px; font-weight: 500; text-align: center; word-break: keep-all; }
.co-save[hidden] { display: none; }
/* 단추와 안내 */
.co-act .form-err { margin: 0 0 10px; color: #ff8a65; }
body[data-page="checkout"] .co-go { width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: #d1fe17; color: #131517; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
body[data-page="checkout"] .co-go:hover { opacity: .92; }
body[data-page="checkout"] .co-go:disabled, body[data-page="checkout"] .co-go.is-busy { opacity: .5; cursor: default; }
.co-alt { display: block; width: 100%; margin-top: 4px; text-align: center; color: rgba(255,255,255,.6); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.co-alt[hidden] { display: none; }
/* 동의 글 = 결제 수단 줄 바로 아래(2026-11-25 대표님 "결제시 환불약관에 동의하게 됩니다를 신용카드 체크카드 밑에 놔줘") */
.co-legal { margin: 12px 0 0; font-size: 12px; line-height: 18px; color: #898a8b; word-break: keep-all; }
.co-legal + .co-legal { margin-top: 4px; }
.co-legal:empty { display: none; }
.co-legal a { color: rgba(255,255,255,.82); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* 구매 창의 단추도 누르면 그 자리에서 '진행 중…'(요금제 카드 단추의 같은 모양은 site.css: 첫 화면에서도 쓴다) */
.btn.is-busy { opacity: .5; pointer-events: none; }
/* 결제 처리 중, 안내 */
.co-wait, .co-msg { display: grid; justify-items: center; gap: 10px; padding: 96px 16px 120px; text-align: center; }
.co-ring { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); border-top-color: #d1fe17; animation: coSpin .8s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.co-wait b, .co-msg b { font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.co-wait p { margin: 0; font-size: 14.5px; line-height: 22px; color: rgba(255,255,255,.6); }
body[data-page="checkout"] .co-msg .co-go { width: auto; min-width: 200px; margin-top: 14px; padding: 0 24px; }
/* 결제 완료 */
.co-done { display: grid; justify-items: center; max-width: 420px; margin: 0 auto; padding: 56px 0 72px; text-align: center; }
.co-ok { position: relative; display: block; width: 96px; height: 96px; margin: 0 auto 24px; }
.co-ok svg { position: relative; z-index: 1; display: block; width: 96px; height: 96px; }
.co-ok .c { fill: #d1fe17; }
.co-ok .k { stroke: #131517; }
.co-ok::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #d1fe17; opacity: 0; }
.co-done.go .co-ok svg { animation: coOkPop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.co-done.go .co-ok .k { stroke-dasharray: 62; stroke-dashoffset: 62; animation: coOkDraw .42s cubic-bezier(.65, 0, .35, 1) .38s forwards; }
.co-done.go .co-ok::before { animation: coOkRing .9s ease-out .3s both; }
.co-done.go > h1, .co-done.go > .co-done-sub, .co-done.go > .co-receipt, .co-done.go > .co-go, .co-done.go > .co-done-link { animation: coUp .45s cubic-bezier(.2, .7, .2, 1) both; }
.co-done.go > h1 { animation-delay: .5s; }
.co-done.go > .co-done-sub { animation-delay: .57s; }
.co-done.go > .co-receipt { animation-delay: .64s; }
.co-done.go > .co-go { animation-delay: .71s; }
.co-done.go > .co-done-link { animation-delay: .78s; }
@keyframes coOkPop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes coOkDraw { to { stroke-dashoffset: 0; } }
@keyframes coOkRing { 0% { opacity: .28; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes coUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.console .co-done h1 { margin: 0; font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.co-done-sub { margin: 10px 0 0; font-size: 15px; line-height: 23px; color: rgba(255,255,255,.68); word-break: keep-all; text-wrap: balance; }
.co-receipt { width: 100%; margin: 28px 0 0; padding: 4px 16px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: left; }
.co-receipt > div { padding: 12px 0; }
.co-receipt > div + div { border-top: 1px solid rgba(255,255,255,.06); }
.co-receipt dt { color: rgba(255,255,255,.6); font-weight: 500; }
.co-receipt dd { margin: 0; font-weight: 600; color: #fff; text-align: right; overflow-wrap: anywhere; }
body[data-page="checkout"] .co-done .co-go { min-height: 52px; margin-top: 24px; }
.co-done-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: rgba(255,255,255,.6); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .co-done.go .co-ok svg, .co-done.go .co-ok::before, .co-done.go > h1, .co-done.go > .co-done-sub, .co-done.go > .co-receipt, .co-done.go > .co-go, .co-done.go > .co-done-link { animation: none; }
  .co-done.go .co-ok .k { animation: none; stroke-dashoffset: 0; }
  .co-ring { animation-duration: 2.4s; }
}
/* 휴대폰: (충전 금액) → 요약 → 결제 금액 → 결제 수단 → 단추와 안내 → 설명 한 줄로. 단추는 결제 수단 바로 아래(힉스필드와 같은 자리, 첫 화면 안에 보이게) */
@media (max-width: 899px) {
  body[data-page="checkout"] .cwrap { padding: 0 16px calc(32px + var(--sab, env(safe-area-inset-bottom, 0px))); }
  .co { padding: 0 0 8px; }
  .co-top { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 0; min-height: 48px; margin: 0 0 16px; }
  .co-back { position: absolute; left: -8px; top: 2px; color: rgba(255,255,255,.4); font-weight: 400; }
  .console .co-title { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
  .co-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .co-left { display: contents; }
  .co-amt { order: 1; }
  .co-right { order: 2; display: grid; gap: 12px; }
  .co-method { order: 3; }
  .co-detail { order: 5; }
  .co-sum { padding: 4px; border-radius: 20px; background: #131517; }
  .co-sum-in { padding: 16px 16px 4px; border-radius: 16px; background: #1c1e20; }
  .co-name b { font-size: 18px; line-height: 24px; }
  .co-rows { gap: 0; margin: 14px -16px 0; }
  .co-rows > div { align-items: center; min-height: 52px; padding: 8px 16px; border-top: 1px solid rgba(255,255,255,.06); }
  .co-tot { padding: 4px; border-radius: 16px; background: #131517; }
  .co-total-row { align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: #1c1e20; }
  .co-total-l small { margin-top: 2px; }
  .co-save { min-height: 36px; margin: 4px 0 0; padding: 8px 10px; border-radius: 12px; font-size: 13px; }
  .co-box { border-radius: 16px; background: #1c1e20; }
  .co-act { order: 4; margin: 4px 0 12px; }
  .co-wait, .co-msg { padding: 72px 8px 96px; }
  .co-done { padding: 40px 0 48px; }
}
@media (max-width: 359px) {
  .co-amt .co-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-way .pg { display: none; }
}

/* 마이페이지: 구역 사이 선은 보이는 구역과 구역 사이에만 긋는다. 마지막 구역 아래 선, 목록 마지막 줄 선, 맨 아래 사업자 정보 위 선이 나란히 세 줄로 보이던 것을 없앤다
   (2026-11-25 새벽 대표님 구매 내역 캡처 "이상하게 - 일자로 된 줄이 3개연속있어. 이거 고쳐놔") */
body[data-page="account"][data-acct] #dash > .sec[data-tab] { border-bottom: 0; }
body[data-page="account"][data-acct] #dash > .sec[data-tab]:not(.tab-off):not([hidden]) ~ .sec[data-tab]:not(.tab-off):not([hidden]) { border-top: 1px solid var(--line); }
#pays li:last-child { border-bottom: 0; }
/* ===== 2026-11-25 낮 39차 =====
   PC 머리줄: 마이페이지를 오른쪽([요금제][오퍼] 옆, 친구 초대가 있던 자리)으로. 지금 화면이 마이페이지면 왼쪽 메뉴의 켜진 칸과 같은 모양 */
.top nav a.acct-link[hidden] { display: none; }
body[data-page="account"] .top nav a.acct-link { border-radius: 10px; background: var(--fill); color: var(--ink); font-weight: 700; }
/* 마이페이지 '내 현재 구독' 카드(대표님 "내 현재 구독 이렇게 하고, 이거 구독페이지 이쁘게해줘"): 프로필 카드, 요금제 띠와 같은 어두운 결 + 연두 강조.
   위 = 상태 알약, 요금제 이름, 매달 받는 크레딧 / 오른쪽 값. 가운데 = 이번 결제 기간 막대. 아래 = 줄 셋(다음 결제일, 결제 금액, 결제 수단. PC 는 옆으로, 휴대폰은 이름표 왼쪽 값 오른쪽) + 알림 한 줄과 단추 */
.sc { position: relative; margin-top: 16px; padding: 28px 28px 24px; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(209,254,23,.17), rgba(209,254,23,0) 52%), linear-gradient(180deg, #181a1d, #0f1113); }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
.sc-id { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.sc-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(209,254,23,.14); color: #d1fe17; font-size: 12.5px; line-height: 1; font-weight: 700; }
.sc-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sc-name { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sc-credit { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.66); }
.sc-price { display: grid; justify-items: end; gap: 4px; flex: none; text-align: right; }
.sc-price b { font-size: 30px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-price b small { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); }
.sc-price span { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.sc-bar { height: 6px; margin-top: 24px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 3px; background: #d1fe17; }
.sc-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.sc-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.sc-rows[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-rows[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.sc-rows > div { min-width: 0; }
.sc-rows dt { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.55); }
.sc-rows dd { margin: 6px 0 0; font-size: 17px; line-height: 1.35; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-rows dd small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.55); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.sc-foot:empty { display: none; }
.sc-note { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.75); word-break: keep-all; }
.sc-foot .btn { min-height: 40px; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.82); font-weight: 600; }
.sc-foot .btn:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; }
.sc-foot .btn:disabled { opacity: .5; }
.sc-foot .btn + .btn { margin-left: 0; }      /* 단추가 여럿이면(요금제 변경, 예약 취소, 구독 해지하기) 오른쪽에 붙여 나란히(2026-11-26) */
.sc-foot a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sc-foot .btn.sc-main, .sc-foot .btn.sc-main:hover { background: #d1fe17; border-color: #d1fe17; color: #131517; font-weight: 700; }
.sc-canceled .sc-pill, .sc-manual .sc-pill { background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); }
.sc-past_due .sc-pill { background: rgba(255,184,107,.16); color: #ffb86b; }
.sc-canceled .sc-bar i, .sc-manual .sc-bar i { background: rgba(255,255,255,.5); }
@media (max-width: 880px) {
  .sc { padding: 22px 18px 18px; border-radius: 20px; }
  .sc-name { font-size: 26px; }
  .sc-price b { font-size: 24px; }
  .sc-rows, .sc-rows[data-n="2"] { grid-template-columns: minmax(0, 1fr); margin-top: 18px; padding-top: 6px; }
  .sc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .sc-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .sc-rows dt { flex: none; font-size: 13.5px; }
  .sc-rows dd { margin: 0; font-size: 15px; text-align: right; }
  .sc-foot { margin-top: 16px; padding-top: 16px; }
  .sc-foot .btn { width: 100%; min-height: 44px; margin-left: 0; }
}
/* 만들기 단추 위 안내 줄을 끈 곳(서버 show cp.same_note false, 대표님 "pc에도 영상모델 어쩌구 힉스필드랑 100%동일 < 이거 빼줘"): 글은 없애고,
   그 줄이 하던 일(패널이 짧을 때 바닥에 붙은 단추 뒤로 지나가는 칸을 가리기)만 남긴다. 높이 0 인 띠 + 아래로 깔리는 바탕(위쪽 12px 는 흐리게 시작) */
@media (min-width: 1000px) {
  body[data-page="create"] .cp-same[hidden] { display: block !important; height: 0; margin: -8px -8px 0; padding: 0; background: none; box-shadow: none; font-size: 0; line-height: 0; pointer-events: none; }
  body[data-page="create"] .cp-same[hidden]::after { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 100px; background: linear-gradient(rgba(19,21,23,0), #131517 12px); }
}

/* 42차(2026-11-25 저녁) 잔액 알림 기준 = 숫자를 직접 적는 칸(대표님 "저렇게 고르는게 아니라 아예 숫자 입력을 누르게 해줘"): 테두리 상자 안에 숫자 칸과 단위 글자 */
.low-num { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.low-num:focus-within { border-color: var(--ink); }
.low-num .low-th { width: 68px; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; outline: 0; }
.low-num i { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.sheet.tu .low-num { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.sheet.tu .low-num .low-th { color: #fff; }
.sheet.tu .low-num i { color: rgba(255,255,255,.6); }
@media (max-width: 880px) {
  .low-num { height: 44px; }
  .low-num .low-th { font-size: 16px; }      /* 16px 아래면 아이폰이 화면을 키운다 */
}
/* 프롬프트 보정 목록의 [프리미엄] 칸(대표님 "프리미엄 < 이거는 보석모양 해놓고, 70% 더 비싸다는 표시 직관적으로"): 이름 앞 보석 그림 + 오른쪽 끝 '크레딧 +70%' 표시(고른 표시 점 앞) */
.cp-opt-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
.cp-gem { flex: none; width: 17px; height: 17px; fill: rgba(196,181,253,.2); stroke: #c4b5fd; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cp-opt-tag { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255,184,107,.15); color: #ffb86b; font-size: 11.5px; line-height: 1.3; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
