/* 웹 안내 공용 스타일. 굽기(bake.mts)가 해시를 붙여 academy.uplika.com/assets/ (버킷 academy/assets/) 로 낸다.
   기준 화면은 인스타그램 DM 인앱 브라우저의 390px 이다. 색은 DESIGN.md 실측값(따뜻한 흰 바탕 · 빨강은 행동 하나).
   글자 하한 12px · 누를 자리 하한 24px (모바일 전수 정비 기준). */
:root {
  --bg: #f8f7f6;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #5f5f66;
  --line: #e5e5e5;
  --soft: #f1efed;
  --red: #e7000b;
  --red-deep: #c10007;
  --red-soft: #fef2f2;
  --red-line: #fecaca;
  --dark: #09090b;
  --dark-2: #18181b;
  --done: #047857;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --col: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--red-deep); text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
strong { font-weight: 650; }
.hl { color: var(--red-deep); font-weight: 650; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 맨 위: 진행 막대 + 머리 띠 */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff5a5f, #fb2c36 45%, #c10007); transition: width 0.1s linear; }
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1160px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 15px; min-height: 44px; }
.brand .mk { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ff5a5f, #fb2c36 45%, #c10007); display: grid; place-items: center; flex: none; }
.brand .mk svg { width: 72%; height: 72%; fill: #fff; }
.brand small { color: var(--muted); font-weight: 500; font-size: 13px; }
.bar .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #d4d4d8; }
.btn svg { width: 16px; height: 16px; flex: none; }
/* 글자가 올라가는 단추는 납작한 #e7000b (DESIGN.md 의 채운 알약). 그라디언트 밝은 끝 #ff5a5f 위 흰 글씨는 2.92:1 로 실측 미달이다 */
.btn.primary { background: #e7000b; color: #fafafa; border: 0; }
.btn.primary:hover { background: #c10007; }
.btn.dark { background: var(--dark-2); color: #fafafa; border-color: var(--dark-2); }

/* 틀: 넓은 화면은 왼쪽 목차 + 본문, 좁은 화면은 본문 하나 */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1080px) { .wrap { grid-template-columns: 240px minmax(0, var(--col)); justify-content: center; } }
main { min-width: 0; padding-bottom: 64px; }

/* 표지 */
.hero { padding: 36px 0 12px; }
.tiles { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--paper); }
.tile svg { width: 60%; height: 60%; }
.tile.claude { background: #d97757; border-color: #d97757; } .tile.claude svg { fill: #fff; }
.tile.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border: 0; } .tile.instagram svg { fill: #fff; }
.tile.linkedin { background: #0a66c2; border: 0; } .tile.linkedin svg { fill: #fff; }
.tile.facebook { background: #0866ff; border: 0; } .tile.facebook svg { fill: #fff; }
.tile.threads, .tile.x, .tile.tiktok { background: var(--dark); border: 0; } .tile.threads svg, .tile.x svg, .tile.tiktok svg { fill: #fff; }
.tile.uplika { background: linear-gradient(135deg, #ff5a5f, #fb2c36 45%, #c10007); border: 0; } .tile.uplika svg { fill: #fff; }
.tile.terminal { background: var(--dark); border: 0; color: #fafafa; font: 700 15px var(--mono); }
.tile.handlus img { width: 70%; height: 70%; object-fit: contain; }
.tile.cash { background: #c6ff3a; border: 0; color: #0b0b0c; font: 800 20px var(--sans); }
/* 타일 옆 이름표(Claude Code): = 업리카 대신 오는 편. PDF 표지의 「타일 + 굵은 이름」 */
.tiles .tlabel { font-weight: 650; font-size: 15px; color: var(--ink); }
.tiles .op { color: var(--muted); font-weight: 600; }
.kicker { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); background: var(--red-soft); border-radius: 11px; padding: 4px 10px; margin-bottom: 14px; }
h1 { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 14px; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 9999px; padding: 5px 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* 목차 */
.toc { font-size: 14px; }
.toc-in { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding: 24px 0; }
.toc h2 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 650; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 8px; align-items: baseline; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 10px; min-height: 32px; line-height: 1.35; }
.toc a:hover { background: var(--soft); color: var(--ink); }
.toc a.on { background: var(--red-soft); color: var(--red-deep); font-weight: 600; }
.toc a .ck { width: 14px; flex: none; color: var(--done); font-weight: 700; }
.toc .count { margin: 12px 10px 0; font-size: 13px; color: var(--muted); }
.toc-m { display: block; margin: 8px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-m summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; min-height: 44px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.toc-m[open] summary::after { content: "−"; }
.toc-m ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.toc-m a { display: block; padding: 8px; color: var(--ink-2); text-decoration: none; border-radius: 8px; font-size: 15px; }
.toc-side { display: none; }
@media (min-width: 1080px) { .toc-side { display: block; } .toc-m { display: none; } }

/* 절 */
section.s { padding-top: 40px; }
section.s + section.s { border-top: 1px solid var(--line); margin-top: 40px; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 9999px; padding: 4px 12px; background: var(--red); color: #fafafa; margin-bottom: 12px; }
.label.alt { background: var(--dark-2); }
/* 머리표 옆 꼬리표 (STEP 10 · AFTER YOUR REELS ARE OUT): PDF 의 점선 회색 칸 */
.label.tag { background: var(--soft); color: var(--ink-2); border: 1px dashed #a1a1aa; margin-left: 8px; }
.label.job { background: var(--paper); color: var(--ink); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 13px; }
.label.job i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.label.job b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.k1, .j1 { background: #e5484d; } .k2, .j2 { background: #8e4ec6; } .k3, .j3 { background: #f76b15; } .k4, .j4 { background: #3e63dd; } .j5 { background: #30a46c; }
.sh { display: flex; align-items: flex-start; gap: 12px; }
h2 { font-size: clamp(23px, 5.4vw, 28px); line-height: 1.22; letter-spacing: -0.015em; font-weight: 720; margin: 0 0 14px; text-wrap: balance; flex: 1; }
.done-btn { flex: none; margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.done-btn .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #a1a1aa; display: grid; place-items: center; }
.done-btn[aria-pressed="true"] { color: var(--done); border-color: #a7f3d0; background: #ecfdf5; }
.done-btn[aria-pressed="true"] .box { border-color: var(--done); background: var(--done); }
.done-btn[aria-pressed="true"] .box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
p { margin: 0 0 16px; text-wrap: pretty; }
.note { color: var(--muted); font-size: 15px; line-height: 1.6; }
.meta { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.repo { display: inline-block; font: 500 13px var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; margin-bottom: 14px; }

/* 번호 목록 */
ol.steps { list-style: none; margin: 4px 0 20px; padding: 0; display: grid; gap: 14px; }
ol.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
ol.steps .n { width: 32px; height: 32px; border-radius: 10px; background: var(--dark-2); color: #fff; font-weight: 750; font-size: 15px; display: grid; place-items: center; }
ol.steps .n.red { background: var(--red); }
ol.steps .n.c1 { background: #e5484d; } ol.steps .n.c2 { background: #8e4ec6; } ol.steps .n.c3 { background: #f76b15; } ol.steps .n.c4 { background: #3e63dd; } ol.steps .n.c5 { background: #30a46c; }
ol.steps .b { padding-top: 3px; }
ol.steps small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
ol.steps.tight { gap: 10px; }

/* 콜아웃 */
.callout { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
.callout .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--muted); }
.callout.red { background: #fff5f5; border-color: var(--red-line); }
.callout.red .ic { color: var(--red-deep); }
.callout p:last-child { margin-bottom: 0; }

/* 그림: 틀이 그림과 같은 비율이라 강조 고리(%)가 제자리에 선다 */
.shots { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 18px; align-items: flex-start; }
.shots.col { flex-direction: column; }
.shot { position: relative; display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #d4d4d8; box-shadow: 0 1px 2px rgba(9, 9, 11, 0.06), 0 8px 24px rgba(9, 9, 11, 0.08); background: var(--dark-2); cursor: zoom-in; padding: 0; line-height: 0; }
.shot img { display: block; width: 100%; height: auto; }
.ring { position: absolute; border: 3px solid #ff2d38; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); pointer-events: none; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(9, 9, 11, 0.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.zoom .shot { cursor: zoom-out; box-shadow: none; max-height: calc(100vh - 32px); }
.zoom .shot img { max-height: calc(100vh - 32px); width: auto; max-width: calc(100vw - 32px); }
.zoom .x { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 9999px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 22px; cursor: pointer; }

/* 복사 칸 · 프롬프트 · 터미널 */
.copy { display: flex; align-items: center; gap: 10px; background: var(--dark-2); color: #fafafa; border-radius: 12px; padding: 10px 10px 10px 16px; margin: 0 0 12px; }
.copy .t { flex: 1; min-width: 0; }
.copy .lb { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: #a1a1aa; }
.copy code { background: none; padding: 0; color: #fafafa; font-size: 15px; display: block; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.copy.wrap code { white-space: pre-wrap; word-break: break-all; }
/* 줄마다 명령 하나인 칸: 머리 말 아래 줄마다 복사 단추 */
.copy.multi { display: block; padding: 10px 10px 6px 16px; }
.copy.multi .row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.copy.multi .row code { flex: 1; min-width: 0; }
.copy .pf { color: #a1a1aa; user-select: none; -webkit-user-select: none; margin-right: 8px; }
.cbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 9999px; border: 1px solid #3f3f46; background: #27272a; color: #fafafa; font-size: 13px; font-weight: 650; cursor: pointer; }
.cbtn svg { width: 15px; height: 15px; }
.cbtn.ok { background: var(--done); border-color: var(--done); }
/* overflow:hidden 을 걸지 않는다: 걸면 .prompt 가 스크롤 상자가 되어 머리(sticky top:56px)가 상자 안에서 56px 내려와 첫 줄을 덮는다 */
.prompt { position: relative; background: var(--dark); color: #f4f4f5; border-radius: 16px; margin: 4px 0 18px; border: 1px solid #27272a; }
.prompt-h { position: sticky; top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; background: #111113; border-bottom: 1px solid #27272a; z-index: 1; border-radius: 15px 15px 0 0; }
.prompt-h span { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: #a1a1aa; }
.prompt pre { margin: 0; padding: 16px; font: 13.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.prompt-f { padding: 12px 16px 16px; border-top: 1px solid #27272a; display: flex; justify-content: flex-end; }
.prompt-f .cbtn { background: #e7000b; color: #fafafa; border: 0; min-height: 44px; padding: 0 18px; font-size: 14px; }
.prompt-f .cbtn.ok { background: var(--done); }
.term { background: var(--dark); color: #e4e4e7; border-radius: 12px; padding: 14px 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0 0 18px; }
.manual { display: none; font-size: 13px; color: #fecaca; padding: 0 16px 12px; }
.manual.on { display: block; }

/* 표 · 카드 · 숫자 · 인용 · 토글 */
.tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tbl td, .tbl th { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tr:first-child td, .tbl tr:first-child th { border-top: 0; }
.tbl th { background: #f5f5f5; font-size: 12.5px; font-weight: 600; }
.tbl td:first-child { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
/* 표 칸의 부제 (^^…^^): PDF 에서 이름 아래 작은 회색 줄 */
.tbl small.sub { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); white-space: normal; margin-top: 2px; }
.cards { display: grid; gap: 10px; margin: 0 0 18px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card.hl { border-color: var(--red-line); background: #fff5f5; }
.card b { display: block; margin-bottom: 4px; line-height: 1.4; }
.card span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.card span + span { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
blockquote { margin: 0 0 18px; padding: 4px 0 4px 16px; border-left: 3px solid var(--red); font-size: 17px; line-height: 1.55; }
blockquote small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
details.tg { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; }
details.tg summary { cursor: pointer; list-style: none; padding: 12px 14px 12px 40px; position: relative; font-weight: 600; min-height: 44px; line-height: 1.45; }
details.tg summary::-webkit-details-marker { display: none; }
details.tg summary::before { content: ""; position: absolute; left: 16px; top: 19px; border: 6px solid transparent; border-left: 8px solid var(--muted); transition: transform 0.15s; transform-origin: 4px 6px; }
details.tg[open] summary::before { transform: rotate(90deg); }
details.tg .a { padding: 0 16px 14px 40px; color: var(--ink-2); font-size: 15px; }
/* 접는 절 (원고 {fold}): 묶음 절 안의 채널 한 칸. 머리는 h3 + 작은 채널 타일, 펼친 안은 본문 크기 · 폭 그대로 (세모 자리만큼 들이지 않는다) */
details.tg.fold { margin: 0 0 10px; }
details.tg.fold summary { padding: 10px 14px 10px 40px; }
details.tg.fold summary::before { top: 50%; margin-top: -6px; }
details.tg.fold summary h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; }
details.tg.fold .fi { width: 28px; height: 28px; border-radius: 8px; }
details.tg.fold .a { padding: 6px 14px 16px; color: var(--ink); font-size: 16px; }
details.tg.fold .a > :last-child { margin-bottom: 0; }
.chipline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chipline li { font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 9999px; padding: 5px 12px; }
/* 메뉴 경로 (Content › … › CSV). 칸 사이의 › 는 원고에 없는 장식이라 굽기가 그린다 (읽는 기계에는 숨긴다) */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.path li { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.path li.sep { background: none; border: 0; padding: 0 2px; color: var(--muted); }
.path li .hl { color: var(--red-deep); }
.path li:has(.hl) { border-color: var(--red-line); background: var(--red-soft); }

/* 끝 절 · 판매 CTA · 바닥 */
/* 페이지의 유일한 큰 채움. 13px 글씨가 왼쪽 위(그라디언트 밝은 끝)에 앉아서 어두운 두 스톱만 쓴다: 흰 글씨 4.77:1 이상 */
.end { margin-top: 48px; border-radius: 20px; padding: 28px 22px; color: #fff; background: linear-gradient(135deg, #e7000b, #c10007); }
.end h2 { color: #fff; margin-bottom: 14px; }
.end p { color: #fff; }
.end ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-weight: 500; }
.end code { background: rgba(9, 9, 11, 0.22); color: #fff; }
.end a { color: #fff; }
.end .foot { font-size: 13px; margin: 6px 0 0; }
.cta { margin-top: 20px; background: var(--dark); color: #f4f4f5; border-radius: 20px; padding: 26px 22px; }
.cta .ey { font-size: 13px; font-weight: 600; color: #fca5a5; margin-bottom: 10px; }
.cta h2 { color: #fafafa; font-size: 24px; margin-bottom: 10px; }
.cta p { color: #d4d4d8; }
.cta ul { margin: 0 0 18px; padding: 0 0 0 18px; color: #e4e4e7; display: grid; gap: 6px; font-size: 15px; }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cta .price { font-size: 22px; font-weight: 750; color: #fafafa; }
.cta .once { font-size: 13px; color: #d4d4d8; }
.cta .small { font-size: 13px; color: #a1a1aa; margin: 14px 0 0; }
.cta .btn.primary { min-height: 48px; padding: 0 22px; font-size: 15px; }
footer.f { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 16px 40px; text-align: center; font-size: 13px; color: var(--muted); }
footer.f a { color: var(--muted); }
footer.f nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer.f nav a { display: inline-flex; align-items: center; min-height: 32px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--dark-2); color: #fafafa; padding: 10px 16px; border-radius: 9999px; font-size: 14px; font-weight: 600; transition: 0.2s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .bar, .progress, .toc, .done-btn, .cbtn, .cta, .hero-actions { display: none !important; } .prompt-h { position: static; } }

/* 우하단 문의 상자 (widget.ts). 판매 사이트는 layout 이 불러오고 웹 안내는 scripts/guides/contact-asset.mts 가 guide.css 뒤에 붙인다.
   색은 두 곳이 같은 :root 토큰이다. 빨강은 보내기 하나에만 쓴다. 머리 띠 20 · 진행 막대 30 위, 확대 50 · 알림 60 아래 */
.ct, .ct * { box-sizing: border-box; }
.ct [hidden] { display: none !important; }
.ct button { font-family: inherit; cursor: pointer; }
.ct-pill { position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 16px; border: 1px solid #d4d4d8; border-radius: 9999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(9, 9, 11, 0.06), 0 8px 20px -6px rgba(9, 9, 11, 0.2); transition: border-color 0.15s, transform 0.15s; }
.ct-pill:hover { border-color: #a1a1aa; }
.ct-pill:active { transform: translateY(1px); }
.ct-pill svg { width: 17px; height: 17px; flex: none; color: var(--red-deep); }

/* 낮은 화면에서는 상자 안이 구른다. 오류 뒤 초점이 간 칸과 이름표가 붙박이 머리 줄에 가리지 않게 자리를 남긴다 */
.ct-panel { position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--ct-kb, 0px)); width: min(380px, calc(100vw - 32px)); max-height: calc(var(--ct-vh, 100vh) - 32px); overflow: auto; overscroll-behavior: contain; scroll-padding: 92px 0 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(9, 9, 11, 0.05), 0 24px 48px -12px rgba(9, 9, 11, 0.28); animation: ct-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(10px); } }
.ct-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 2px 20px; background: var(--paper); border-radius: 16px 16px 0 0; }
.ct-title { margin: 0; padding: 0; border: 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.ct-x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--muted); }
.ct-x:hover { background: var(--soft); color: var(--ink); }
.ct-x svg { width: 18px; height: 18px; }

.ct-form, .ct-done { padding: 0 20px 20px; }
.ct-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.ct-label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink); }
/* 16px 아래면 아이폰이 칸을 누를 때 화면을 확대한다. 테두리는 칸의 유일한 경계라 흰 바탕에 3:1 을 넘긴다 (#85858f 3.7) */
.ct-input { display: block; width: 100%; margin: 0 0 14px; padding: 10px 12px; min-height: 44px; border: 1px solid #85858f; border-radius: 10px; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-appearance: none; appearance: none; }
textarea.ct-input { min-height: 120px; resize: vertical; }
.ct-input::placeholder { color: #71717a; opacity: 1; }
.ct-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.ct-input[aria-invalid="true"] { border-color: var(--red-deep); margin-bottom: 6px; }
.ct-err { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--red-deep); }
.ct-fail a { display: inline-block; min-height: 24px; color: var(--red-deep); font-weight: 600; text-decoration: underline; }
.ct-note { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ct-note a { display: inline-block; min-height: 24px; color: var(--ink-2); text-decoration: underline; }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-send { display: block; width: 100%; min-height: 48px; padding: 0 20px; border: 0; border-radius: 9999px; background: #e7000b; color: #fafafa; font-size: 16px; font-weight: 600; transition: background-color 0.15s; }
.ct-send:hover { background: #c10007; }
.ct-send[aria-disabled="true"] { background: #52525b; cursor: progress; }
.ct-done-t { margin: 4px 0 6px; font-size: 16px; font-weight: 650; color: var(--done); }
.ct-done-t:focus { outline: none; }
.ct-again { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; }
.ct-again:hover { border-color: #a1a1aa; }

/* 쪽 맨 아래 글이 알약에 가리지 않게 자리를 비운다 (두 집의 바닥 이름이 다르다) */
.foot-in { padding-bottom: 92px; }
footer.f { padding-bottom: 92px; }
@media (max-width: 480px) {
  .ct-panel { right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--ct-kb, 0px)); width: auto; max-height: calc(var(--ct-vh, 100vh) - 24px); }
  /* 안내의 알림 한 줄은 가운데 아래다. 좁은 화면에서는 알약 위로 올린다 */
  .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .ct-panel { animation: none; } .ct-pill, .ct-send { transition: none; } }
@media print { .ct { display: none !important; } }
