/* Latuis Blog — 읽기 중심 라이트 테마. 흰 캔버스 + 종이 톤 카드 + 잉크 + 골드 포인트. 명조는 글(제목·본문 소제목·인용)에만, UI 는 산세리프 */

:root {
    --bg: #ffffff;
    --surface: #fcfbf8;
    --ink: #1d1b17;
    --soft: #56524a;
    --muted: #757063;
    --faint: #8a8478;
    --line: #ebe7de;
    --line-soft: #f3f0e9;
    --accent: #96723a;
    --accent-strong: #7d5c2a;
    --accent-soft: #f4ecdd;
    --danger: #b42318;
    --ai: #2f4f8f;          /* AI 관련 지표 — 브랜드 골드와 구분되는 의미색 */
    --ai-soft: #e9eef7;
    --serif: "Noto Serif KR", Georgia, "Times New Roman", serif;
    --sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;

    /* latuis-note editor.css 토큰 브리지 */
    --ln-canvas: var(--bg);
    --ln-paper: var(--surface);
    --ln-surface: var(--surface);
    --ln-ink: var(--ink);
    --ln-ink-deep: var(--ink);
    --ln-charcoal: #2b2822;
    --ln-slate: var(--soft);
    --ln-steel: var(--muted);
    --ln-stone: var(--faint);
    --ln-muted: var(--faint);
    --ln-hairline: var(--line);
    --ln-hairline-soft: var(--line-soft);
    --ln-hairline-strong: #ddd7ca;
    --ln-primary: var(--accent);
    --ln-error: var(--danger);
    --ln-success: #2e7d4f;
    --ln-font-sans: var(--sans);
    --ln-font-serif: var(--serif);
    --ln-font-hand: var(--serif);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -.01em;
    word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 728px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1024px; }

/* ---------- 헤더 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--serif); font-size: 21px; letter-spacing: .01em; color: var(--ink); }
.brand b { font-weight: 600; }
.brand small { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-family: var(--sans); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-size: 14px; font-weight: 400; color: var(--soft); cursor: pointer; }
.hbtn:hover { background: #f1eee6; color: var(--ink); }
.hbtn.primary { background: var(--ink); color: #fff; }
.hbtn.primary:hover { background: #000; color: #fff; }
.hbtn.ghost { border-color: var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; border: 1px solid #e7dcc4; }
.hmenu { position: relative; }
.hmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(29, 27, 23, .1); padding: 6px; display: none; }
.hmenu.open .hmenu-panel { display: block; }
.hmenu-panel a, .hmenu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.hmenu-panel a:hover, .hmenu-panel button:hover { background: #f5f2ea; }
.hmenu-name { padding: 9px 12px 4px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.hmenu-handle { font-weight: 600; color: var(--ink); font-size: 15px; }

/* ---------- 피드 ---------- */
.feed-head { padding: 34px 0 6px; }
.feed-title { font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.feed-sub { color: var(--muted); font-size: 14.5px; margin: 0; }
.tag-row { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.tag-row::-webkit-scrollbar { display: none; }
/* 스크롤바를 숨겼으니 오른쪽 끝을 흐리게 — 칩이 더 있다는 단서. 끝까지 밀면 마스크도 사라져야 하므로 mask 로 처리 */
@media (max-width: 640px) {
    .tag-row { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }
}
.tag-chip { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--soft); }
.tag-chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.tag-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-card:last-of-type { border-bottom: 0; }
.pc-body { flex: 1 1 auto; min-width: 0; }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; min-width: 0; }
.pc-meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.pc-meta a { color: var(--soft); font-weight: 400; }
.pc-meta a:hover { color: var(--accent-strong); }
.pc-title { font-family: var(--serif); font-weight: 600; font-size: 19.5px; line-height: 1.45; margin: 0 0 6px; }
.post-card:hover .pc-title { color: var(--accent-strong); }
.pc-excerpt { font-size: 14.5px; color: var(--soft); line-height: 1.7; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pc-tags { display: flex; gap: 6px; }
.pc-tags span { background: #f1ede3; color: #665f4f; border-radius: 4px; padding: 2px 8px; font-size: 11.5px; }
.pc-thumb { flex: 0 0 118px; width: 118px; height: 118px; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.empty-feed { text-align: center; padding: 56px 20px; min-height: 38vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.empty-feed b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.empty-feed p { margin: 0 0 6px; max-width: 34em; line-height: 1.7; }
.empty-feed .btn { margin-top: 12px; }

/* ---------- 통계 ---------- */
/* 대표 수치 하나를 크게, 나머지는 헤어라인으로 나눈 보조 — 균등 4칸은 위계가 없다 */
.stat-lead { display: grid; grid-template-columns: minmax(160px, 230px) 1fr; gap: 0 32px; align-items: center;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 24px 0 8px; }
.stat-lead .big b { display: block; font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lead .big span { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.stat-rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-rest > div { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.stat-rest b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-rest span { display: block; margin-top: 5px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.stat-rest .ai b { color: var(--ai); }
.stat-sec { margin-top: 34px; }
.stat-sec h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.stat-chart { display: block; width: 100%; height: 150px; }
.stat-chart .axis { stroke: var(--line); stroke-width: 1; }
.stat-chart .bar { fill: var(--accent); opacity: .85; }
.stat-chart .bar:hover { opacity: 1; }
.stat-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-sources { list-style: none; margin: 0; padding: 0; }
.stat-sources li { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.stat-sources .lbl { color: var(--soft); }
.stat-sources .bar { display: block; height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.stat-sources .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.stat-sources .num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-sources .num small { color: var(--faint); margin-left: 3px; }
.src-ai { background: var(--ai) !important; }
.src-search { background: #2e7d4f !important; }
.src-social { background: #b5651d !important; }
.src-direct { background: var(--ink) !important; }
.src-internal, .src-other { background: var(--faint) !important; }
.src-search_crawl { background: #2e7d4f !important; }
.src-ai_crawl, .src-ai_fetch { background: var(--ai) !important; }
.stat-note { font-size: 13.5px; color: var(--soft); margin: 12px 0 0; }

.stat-sec h2 small { font-size: 12.5px; font-weight: 400; color: var(--faint); margin-left: 8px; }
.ai-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: 280px 1fr; gap: 4px 28px; align-items: center; }
.ai-head { grid-column: 1; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.ai-head b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ai); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ai-head span { font-size: 14px; font-weight: 600; }
.ai-head em { grid-column: 1 / -1; justify-self: start; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .16em; margin-top: 6px; padding-left: 20px; position: relative; }
.ai-head em::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 1px; background: currentColor; opacity: .6; }
.ai-head em.sure { color: #2e6b48; }
.ai-head em.likely { color: var(--ai); }
.ai-head em.prep { color: var(--muted); }
.ai-desc { grid-column: 1; font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.ai-list { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; align-self: center; }
.ai-list li { display: grid; grid-template-columns: 120px 1fr 36px; gap: 10px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.ai-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-list li i { display: block; height: 8px; background: var(--ai); opacity: .75; border-radius: 999px; min-width: 4px; }
.ai-list li b { text-align: right; font-variant-numeric: tabular-nums; }
.ai-none { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; color: var(--faint); margin: 0; }
.ai-num { color: var(--ai); font-weight: 700; }
.brag-btn { margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--soft);
    text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.brag-btn:hover { color: var(--ink); text-decoration-color: var(--accent); }
.stat-sec h2 { display: flex; align-items: center; gap: 4px; }
.noti-ai { background: var(--ai-soft); color: var(--ai); border-color: #d6dce9; font-size: 10px; letter-spacing: .06em; font-weight: 700; }
/* AI 인용 표시 — 채운 배지 대신 규칙선 + 소문자 라벨(워드마크와 같은 문법) */
.ai-cite { display: inline-flex; align-items: baseline; gap: 7px; font-size: 11px; letter-spacing: .14em; color: var(--ai); white-space: nowrap; cursor: help; }
.ai-cite::before { content: ""; align-self: center; width: 14px; height: 1px; background: currentColor; opacity: .55; }
.ai-cite b { font-size: 13px; letter-spacing: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.post-byline .ai-cite { margin-left: 10px; }
.blog-hero .ai-cite { margin-left: 2px; }
@media (max-width: 640px) {
    .ai-card { grid-template-columns: 1fr; gap: 8px; }
    .ai-list, .ai-none { grid-column: 1; grid-row: auto; }
    .ai-list li { grid-template-columns: 104px 1fr 32px; }
}
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th, .stat-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.stat-table th { font-size: 12px; color: var(--faint); font-weight: 600; }
.stat-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-table .nw { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-table td a { font-family: var(--serif); font-weight: 600; }
.stat-table td a:hover { color: var(--accent-strong); }
.src-chip { display: inline-block; font-size: 11.5px; color: #fff; padding: 2px 8px; border-radius: 999px; background: var(--faint); white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.tablewrap .stat-table { min-width: 520px; }
.stat-table tr.dim { opacity: .5; }
.stat-claim b { color: var(--accent-strong); }
.stat-more { margin-top: 10px; }
.stat-more summary { cursor: pointer; font-size: 13.5px; color: var(--soft); user-select: none; }
.stat-more summary:hover { color: var(--ink); }
.stat-more[open] summary { margin-bottom: 6px; }
.faint { color: var(--faint); }
@media (max-width: 640px) {
    .stat-lead { grid-template-columns: 1fr; gap: 20px 0; padding: 20px 0; }
    .stat-lead .big b { font-size: 38px; }
    .stat-rest { gap: 12px; }
    .stat-rest > div { padding-left: 12px; }
    .stat-rest b { font-size: 18px; }
    .stat-rest span { font-size: 11px; letter-spacing: .06em; }
    .stat-sources li { grid-template-columns: 92px 1fr 76px; font-size: 13px; }
}

/* ---------- 페이지네이션 ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 34px 0 60px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; color: var(--soft); }
.pager a:hover { background: #f1eee6; }
.pager .cur { background: var(--ink); color: #fff; }
.pager .off { color: #cfc8bb; pointer-events: none; }

/* ---------- 블로그 홈 ---------- */
.blog-hero { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.blog-hero .avatar { width: 62px; height: 62px; font-size: 24px; margin-bottom: 14px; }
.blog-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 0 0 4px; }
.blog-hero .handle { color: var(--accent-strong); font-size: 14.5px; }
.blog-hero .bio { color: var(--soft); margin: 12px 0 0; max-width: 34em; line-height: 1.75; }
.blog-hero .stats { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.blog-hero .profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.blog-hero .profile-links a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 글 페이지 ---------- */
.post-head { padding: 48px 0 0; }
.post-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4.6vw, 34px); line-height: 1.42; margin: 0 0 18px; }
.post-byline { display: flex; align-items: center; gap: 11px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-byline .who { font-size: 14.5px; font-weight: 600; }
.post-byline .who a:hover { color: var(--accent-strong); }
.post-byline .when { font-size: 13px; color: var(--muted); }

.prose { font-size: 17.5px; line-height: 1.9; color: #26231e; padding: 34px 0 8px; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45em; line-height: 1.5; margin: 2em 0 .7em; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18em; margin: 1.7em 0 .6em; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d8c49a; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.8em 0; padding: .2em 0 .2em 1.3em; color: var(--soft); font-family: var(--serif); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em auto; width: 120px; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose pre { background: #2a2724; color: #ece8df; border-radius: 10px; padding: 1.1em 1.3em; overflow-x: auto; font-size: .85em; line-height: 1.7; }
.prose code { background: #f3f0e8; border-radius: 4px; padding: .12em .4em; font-size: .88em; }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 2em 0; }
.prose img { max-width: 100%; height: auto; }
.prose figure img { border-radius: 10px; display: block; width: 100%; height: auto; }
.prose figure.image-style-align-left { float: left; max-width: 46%; margin: .4em 1.6em 1em 0; }
.prose figure.image-style-align-right { float: right; max-width: 46%; margin: .4em 0 1em 1.6em; }
.prose figure.image-style-align-center { margin-left: auto; margin-right: auto; }
.prose figcaption { font-size: .78em; color: var(--muted); text-align: center; margin-top: .6em; }
.prose::after { content: ""; display: block; clear: both; }

.post-tail { border-top: 1px solid var(--line); margin-top: 30px; padding: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.post-tail .views { font-size: 12.5px; color: var(--faint); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 26px 0 70px; }
.author-box .avatar { width: 52px; height: 52px; font-size: 20px; flex: 0 0 auto; }
.author-box b { font-family: var(--serif); font-size: 16.5px; font-weight: 600; display: block; }
.author-box .handle { color: var(--accent-strong); font-size: 13px; }
.author-box p { margin: 6px 0 0; font-size: 13.5px; color: var(--soft); line-height: 1.65; }

/* ---------- 글쓰기 ---------- */
.write-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.write-top .header-row { height: 56px; }
.write-wrap { width: 100%; max-width: 728px; margin: 0 auto; padding: 30px 20px 120px; } /* width:100% — body 가 flex column 이라 auto 마진만 있으면 shrink-to-fit 되어 긴 코드 줄에 페이지가 가로로 늘어난다 */
.write-title { width: 100%; border: 0; background: transparent; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4.4vw, 31px); line-height: 1.45; color: var(--ink); outline: none; resize: none; padding: 6px 0 14px; }
.write-title::placeholder { color: #cbc4b5; }
.write-row { display: flex; gap: 10px; margin-bottom: 8px; }
.write-row input { flex: 1; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 14px; padding: 8px 2px; color: var(--soft); outline: none; }
.write-row input:focus { border-color: var(--accent); }
.write-row input::placeholder { color: #c3bcac; }
.write-status { font-size: 12.5px; color: var(--muted); }

/* ---------- 온보딩 / 설정 폼 ---------- */
.card-page { max-width: 480px; margin: 0 auto; padding: 60px 20px 100px; }
.card-page h1 { font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin: 0 0 6px; }
.card-page .lead { color: var(--muted); font-size: 14.5px; margin: 0 0 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 11px 13px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.handle-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.handle-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.handle-input span { padding: 11px 0 11px 13px; color: var(--faint); font-size: 14px; white-space: nowrap; }
.handle-input input { flex: 1; border: 0; padding: 11px 13px 11px 2px; font-size: 15px; outline: none; background: transparent; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.line { background: var(--surface); border-color: var(--line); color: var(--soft); }
.btn.line:hover { border-color: var(--ink); color: var(--ink); }
.form-error { background: #fbeeec; border: 1px solid #efcdc7; color: var(--danger); border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 20px; }

/* ---------- 내 글 관리 ---------- */
.me-list { list-style: none; margin: 20px 0 60px; padding: 0; }
.me-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.me-list .t { flex: 1 1 auto; min-width: 0; }
.me-list .t a { font-family: var(--serif); font-weight: 600; font-size: 16.5px; }
.me-list .t a:hover { color: var(--accent-strong); }
.me-list .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.badge-draft { font-size: 11.5px; font-weight: 600; color: #8a5a0b; background: #fbf1dc; border: 1px solid #f1dfb4; border-radius: 4px; padding: 2px 8px; }
.badge-pub { font-size: 11.5px; font-weight: 600; color: #2e7d4f; background: #e7f2ea; border: 1px solid #cfe5d6; border-radius: 4px; padding: 2px 8px; }
.me-actions { display: flex; gap: 4px; }
.me-actions a, .me-actions button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.me-actions a:hover, .me-actions button:hover { background: #f1eee6; color: var(--ink); }
.me-actions .danger:hover { color: var(--danger); background: #fbeeec; }

/* ---------- 토스트 / 에러 페이지 ---------- */
.toast-area { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 20px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); text-align: center; line-height: 1.5; overflow-wrap: break-word; }
.toast.err { background: var(--danger); }
.err-page { text-align: center; padding: 110px 20px 140px; }
.err-page .code { font-family: var(--serif); font-size: 70px; font-weight: 400; line-height: 1; color: var(--ink); }
.err-page h1 { font-weight: 600; font-size: 20px; margin: 18px 0 8px; }
.err-page p { color: var(--muted); margin: 0 0 28px; }

/* ---------- 푸터 ---------- */
body > main { flex: 1 0 auto; padding-bottom: 48px; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; font-size: 12.5px; color: var(--faint); }
.site-footer a:hover { color: var(--accent-strong); }

/* ---------- 모바일 ---------- */
@media (max-width: 640px) {
    .header-row { height: 56px; gap: 8px; }
    .brand { font-size: 19px; }
    .hbtn { height: 40px; padding: 0 12px; }
    .hbtn .lbl { display: none; }
    .nav-lnk:not(.keep-m) { display: none; }
    .home-hero { padding: 30px 0 28px; }
    .hero-sub { font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
    .hero-meta { gap: 6px 18px; font-size: 12px; margin-bottom: 20px; }
    .hero-actions { gap: 16px; }
    .post-tail { justify-content: flex-start; gap: 8px 14px; }
    .avatar { width: 38px; height: 38px; }
    .feed-head { padding: 22px 0 2px; }
    .feed-title { font-size: 22px; }
    .post-card { gap: 14px; padding: 20px 0; }
    .pc-thumb { flex-basis: 86px; width: 86px; height: 86px; }
    .pc-title { font-size: 17px; }
    .pc-excerpt { font-size: 13.5px; -webkit-line-clamp: 2; }
    .prose { font-size: 16.5px; }
    .prose figure.image-style-align-left, .prose figure.image-style-align-right { float: none; max-width: 100%; margin: 1.6em 0; }
    .post-head { padding-top: 30px; }
    .author-box { flex-direction: column; align-items: flex-start; gap: 10px; }
    .write-wrap { padding-top: 18px; }
    .write-top .header-row { height: 52px; gap: 6px; }
    .write-top .hbtn { padding: 0 10px; font-size: 13.5px; }
    .write-status { font-size: 11.5px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cmt-reply-form { flex-direction: column; align-items: stretch; }
    .cmt-actions button { padding: 8px 10px; }
    .pc-meta a { max-width: 45%; }
}

/* ---------- 검색 / 블로그 디렉터리 ---------- */
.search-bar { display: flex; gap: 10px; margin-top: 18px; }
.search-bar input { flex: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; font-size: 16px; outline: none; }
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 60px; }
.blog-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; align-items: flex-start; transition: border-color .12s; }
.blog-card:hover { border-color: var(--accent); }
.blog-card .avatar { flex: 0 0 auto; width: 44px; height: 44px; font-size: 18px; }
.bc-body { min-width: 0; }
.bc-body b { font-family: var(--serif); font-size: 16px; display: block; }
.bc-handle { color: var(--accent-strong); font-size: 12.5px; }
.bc-body p { margin: 6px 0 8px; font-size: 13px; color: var(--soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-count { font-size: 12px; color: var(--faint); }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- 헤더 검색 아이콘 / 신고 ---------- */
.report-link { font-size: 12px; color: var(--faint); background: none; border: 0; cursor: pointer; padding: 4px 6px; }
.report-link:hover { color: var(--danger); }

/* ---------- 플랫폼 관리자 ---------- */
.admin-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.admin-sec h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.admin-row:last-child { border-bottom: 0; }
.admin-row .grow { flex: 1; min-width: 0; }
.funnel { list-style: none; margin: 0; padding: 0; }
.funnel li { display: grid; grid-template-columns: 180px 1fr 84px 44px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.funnel .lbl { color: var(--soft); }
.funnel .bar { display: block; height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--ai); border-radius: 999px; }
.funnel .num { text-align: right; font-variant-numeric: tabular-nums; }
.funnel .num small { color: var(--faint); margin-left: 3px; }
.funnel .drop { text-align: right; font-size: 12.5px; color: var(--danger); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .funnel li { grid-template-columns: 110px 1fr 66px 36px; gap: 8px; font-size: 13px; } }
.admin-row .sub { font-size: 12.5px; color: var(--muted); }
.admin-row form { margin: 0; }
.abtn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--soft); }
.abtn:hover { border-color: var(--ink); color: var(--ink); }
.abtn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- 비로그인 히어로 / 좋아요 ---------- */
/* 히어로: 아이브로우 → 헤드라인 → 한 문장 → 실제 숫자 → 행동. 문단을 쌓지 않는다 */
.home-hero { border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.hero-eyebrow { font-size: 11.5px; letter-spacing: .2em; color: var(--accent); margin: 0 0 14px; }
.home-hero h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4.4vw, 32px); line-height: 1.38; margin: 0 0 14px; max-width: 18em; }
.hero-sub { color: var(--soft); line-height: 1.8; margin: 0 0 22px; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 26px; padding: 14px 0 0;
    border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.hero-meta b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-meta .ai, .hero-meta .ai b { color: var(--ai); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.home-hero .btn { height: 46px; }
.hero-link { font-size: 13.5px; color: var(--soft); padding-bottom: 3px; border-bottom: 1px solid var(--accent); }
.hero-link:hover { color: var(--accent-strong); }
.post-like { display: flex; justify-content: center; padding: 28px 0 4px; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 20px; font-size: 15px; color: var(--soft); cursor: pointer; transition: border-color .12s, color .12s; }
.like-btn:hover { border-color: var(--danger); color: var(--danger); }
.like-btn.on { border-color: var(--danger); color: var(--danger); }
.like-btn.on svg { fill: var(--danger); stroke: var(--danger); }

/* ---------- 댓글 ---------- */
.cmt-sec { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
.cmt-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin: 0 0 18px; }
.cmt-title span { color: var(--accent); }
.cmt-list, .cmt-replies { list-style: none; margin: 0; padding: 0; }
.cmt-list > li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cmt-list > li:last-child { border-bottom: 0; }
.cmt-replies { margin-top: 12px; padding-left: 22px; border-left: 2px solid var(--line); }
.cmt-replies > li { padding: 10px 0; }
.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.cmt-who { font-weight: 600; }
.cmt-who:hover { color: var(--accent-strong); }
.cmt-head b { font-weight: 600; }
.cmt-when { font-size: 12px; color: var(--muted); }
.cmt-body { margin: 0 0 6px 34px; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: break-word; }
.cmt-body .mention { color: var(--accent-strong); font-weight: 600; }
.cmt-body .mention:hover { text-decoration: underline; }
.cmt-deleted { color: var(--faint); font-style: normal; }
.cmt-actions { display: flex; gap: 4px; margin-left: 34px; }
.cmt-actions button { border: 0; background: none; font-size: 13px; color: var(--soft); cursor: pointer; padding: 2px 6px; border-radius: 6px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cmt-actions button:hover { background: #f1eee6; color: var(--ink); }
.cmt-actions form { margin: 0; }
.cmt-reply-form { margin: 10px 0 0 34px; display: flex; gap: 8px; align-items: flex-end; }
.d-none { display: none !important; }
.cmt-form { margin-top: 18px; }
.cmt-form textarea, .cmt-reply-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 11px 13px; font-size: 14.5px; font-family: inherit; resize: vertical; outline: none; }
.cmt-form textarea:focus, .cmt-reply-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.cmt-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cmt-hint { font-size: 12px; color: var(--faint); }
.cmt-form .btn, .cmt-reply-form .btn { height: 38px; padding: 0 16px; font-size: 14px; flex: 0 0 auto; }
.cmt-login { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cmt-login a { color: var(--accent-strong); font-weight: 600; }
.mention-panel { position: absolute; z-index: 95; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(29, 27, 23, .12); padding: 4px; min-width: 160px; }
.mention-panel button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; cursor: pointer; color: var(--ink); }
.mention-panel button:hover { background: #f5f2ea; }

/* ---------- 알림 ---------- */
.noti-btn { position: relative; }
.noti-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0 4px; }
.noti-list { list-style: none; margin: 16px 0 60px; padding: 0; }
.noti-list li { border-bottom: 1px solid var(--line-soft); }
.noti-list li a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 8px; border-radius: 10px; }
.noti-list li a:hover { background: #f5f2ea; }
.noti-list li.unread a { background: #faf5ea; }
.noti-body { font-size: 14px; color: var(--soft); line-height: 1.55; }
.noti-post { display: block; color: var(--ink); font-family: var(--serif); }
.noti-when { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 구독 ---------- */
.blog-hero-actions { margin-top: 16px; }
.blog-hero-actions .btn { height: 40px; padding: 0 22px; }
.author-follow { margin-left: auto; flex: 0 0 auto; height: 38px; padding: 0 18px; font-size: 14px; }
@media (max-width: 640px) { .author-follow { margin-left: 0; } }

/* ---------- 글쓰기 상세 설정 / 슬래시 메뉴 ---------- */
.write-extra { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 14px 0 4px; }
.write-extra summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--soft); list-style: none; }
.write-extra summary::-webkit-details-marker { display: none; }
.write-extra summary span { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.write-extra[open] summary { border-bottom: 1px solid var(--line-soft); }
.write-extra .field { padding: 14px 16px 4px; margin-bottom: 6px; }
.cover-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cover-pick img { width: 132px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cover-btns { display: flex; gap: 8px; }
.cover-btns .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
.cover-pick .hint { font-size: 12.5px; color: var(--muted); }
.slash-menu { position: absolute; z-index: 96; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(29, 27, 23, .14); padding: 5px; min-width: 220px; max-height: 320px; overflow-y: auto; }
.slash-item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.slash-item b { font-size: 14px; color: var(--ink); font-weight: 600; }
.slash-item span { font-size: 12px; color: var(--muted); }
.slash-item:hover, .slash-item.active { background: #f5f2ea; }

/* ---------- 발행 시트 / 에디터 인라인 입력 ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(29, 27, 23, .38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 26px 24px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -14px 50px rgba(0, 0, 0, .2); max-height: 88vh; overflow-y: auto; }
.sheet h2 { font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 0 0 18px; }
.sheet .field { margin-bottom: 18px; }
.sheet-tags { margin: 0; font-size: 14px; color: var(--soft); background: #f6f3ec; border-radius: 10px; padding: 10px 13px; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.sheet-foot .btn { min-width: 110px; }
@media (min-width: 641px) {
    .sheet-backdrop { align-items: center; padding: 20px; }
    .sheet { border-radius: 18px; padding-bottom: 24px; }
}
.ln-tt-input { position: absolute; z-index: 97; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(29, 27, 23, .16); padding: 12px 14px; width: 300px; }
.ln-tt-input label { display: block; font-size: 12px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.ln-tt-input input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; outline: none; font-family: inherit; }
.ln-tt-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.ln-tt-input-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.ln-tt-input-row button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--soft); }
.ln-tt-input-row button.ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.ln-tt-input-row button:hover { border-color: var(--ink); color: var(--ink); }
.ln-tt-input-row button.ok:hover { background: #000; color: #fff; }

/* ---------- 아바타: 이미지 + 이니셜 톤 변주 ---------- */
img.avatar { object-fit: cover; padding: 0; }
.avatar-link { display: inline-flex; flex: 0 0 auto; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.avatar.xl { width: 76px; height: 76px; font-size: 28px; }
.avatar.tone-0 { background: #f4ecdd; color: #7d5c2a; border-color: #e7dcc4; }
.avatar.tone-1 { background: #e8eee6; color: #43603f; border-color: #d5e0d2; }
.avatar.tone-2 { background: #e9ecf3; color: #40506e; border-color: #d6dce9; }
.avatar.tone-3 { background: #f3e8e6; color: #7a453c; border-color: #e7d5d2; }
.avatar.tone-4 { background: #efe9f2; color: #5d4a6e; border-color: #e0d6e6; }
.avatar.tone-5 { background: #ece9e2; color: #565045; border-color: #ddd8cc; }
.avatar-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-pick .hint { font-size: 12.5px; color: var(--muted); flex-basis: 100%; }

/* ---------- 신규 UI 모바일 터치 타깃 ---------- */
@media (max-width: 640px) {
    .slash-item { padding: 12px 14px; }
    .slash-item b { font-size: 15px; }
    .ln-tt-input { width: min(320px, calc(100vw - 24px)); }
    .ln-tt-input input { padding: 11px 12px; font-size: 15px; }
    .ln-tt-input-row button { padding: 10px 18px; font-size: 14px; }
    .mention-panel button { padding: 12px 14px; }
    .sheet-foot .btn { flex: 1; }
}

/* ---------- 확인 다이얼로그 (form[data-confirm]) ---------- */
.cfm-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(29, 27, 23, .38); display: flex; align-items: center; justify-content: center; padding: 24px; }
.cfm { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 24px 22px 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .22); }
.cfm p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.cfm-input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 13px; font-size: 14.5px; font-family: inherit; line-height: 1.6; resize: vertical; outline: none; margin-bottom: 16px; }
.cfm-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.cfm-btns { display: flex; gap: 8px; justify-content: flex-end; }
.cfm-btns .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.cfm .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- API 토큰 / 문서 ---------- */
.token-field { margin-top: 34px; border-top: 1px solid var(--line-soft); padding-top: 28px; }
.token-field .lead { margin-bottom: 14px; }
.token-field .lead a { color: var(--accent-strong); font-weight: 600; }
.token-issued { background: #f4ecdd; border: 1px solid #e7dcc4; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.token-issued b { display: block; font-size: 13px; color: #7d5c2a; margin-bottom: 8px; }
.token-issued code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; overflow-wrap: break-word; user-select: all; }
.token-list { list-style: none; margin: 0 0 14px; padding: 0; }
.token-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.token-list .grow { flex: 1; min-width: 0; }
.token-list b { font-size: 14.5px; display: block; overflow-wrap: anywhere; }
.token-list .sub { font-size: 12.5px; color: var(--muted); }
.token-list .btn, .token-new .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.token-new { display: flex; gap: 8px; }
.token-new input { flex: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 9px 13px; font-size: 14.5px; outline: none; }
.token-new input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 114, 58, .13); }
.docs { padding-bottom: 70px; }
.docs h2 { font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 36px 0 10px; }
.docs p { color: var(--soft); line-height: 1.8; }
.docs pre { background: #2a2724; color: #ece8df; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.docs code { font-family: ui-monospace, Consolas, monospace; }
.docs p code, .docs li code { background: #f3f0e8; border-radius: 4px; padding: 1px 6px; font-size: .9em; }
.docs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs th, .docs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.docs th { font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
    .token-list .btn, .token-new .btn { height: 44px; }
    .token-new input { height: 44px; }
    .cfm-btns .btn { height: 44px; flex: 1; }
}

/* ---------- OAuth 동의 화면 ---------- */
.consent-scope { margin: 0 0 18px; padding: 0 0 0 4px; list-style: none; }
.consent-scope li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; position: relative; }
.consent-scope li::before { content: "✓"; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-strong); }
.consent-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 24px; }
.consent-note a { color: var(--accent-strong); font-weight: 600; }
.consent-btns { display: flex; gap: 8px; }
.consent-btns .btn { flex: 1; }

/* ---------- 마케팅: 히어로 보강 · 공유 · 독자 CTA ---------- */
.share-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.reader-cta { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; margin-top: 26px; background: var(--surface); }
.reader-cta b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.reader-cta p { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.7; }

/* ---------- 쓰기 화면: 태그 칩 · 수정본 배너 · 저장 상태 · 시트 카드 미리보기 ----------
   (메인·블로그 홈의 인기 태그 내비가 .tag-row/.tag-chip 을 쓰므로 여기는 wtag- 접두사) */
.wtag-row { flex-direction: column; gap: 4px; position: relative; }
.wtag-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); padding: 6px 2px; }
.wtag-chips:focus-within { border-color: var(--accent); }
.wtag-chip { display: inline-flex; align-items: center; gap: 4px; background: #f1ede3; color: #665f4f; border-radius: 4px; padding: 3px 8px; font-size: 12.5px; }
.wtag-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.wtag-chip button:hover { color: var(--danger); }
.wtag-chips input { flex: 1 1 140px; min-width: 120px; border: 0; background: transparent; font-size: 14px; padding: 4px 2px; color: var(--soft); outline: none; }
.wtag-chips input::placeholder { color: #c3bcac; }
.wtag-suggest { position: absolute; left: 0; top: 100%; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(29, 27, 23, .12); padding: 4px; min-width: 200px; }
.wtag-suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; cursor: pointer; color: var(--ink); }
.wtag-suggest button:hover, .wtag-suggest button.active { background: #f5f2ea; }
.draft-banner { background: var(--accent-soft); border: 1px solid #e9dcc0; color: #5f4a25; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.draft-banner .linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-strong); text-decoration: underline; margin-left: 8px; white-space: nowrap; cursor: pointer; }
.write-status[data-state="saving"] { color: var(--muted); }
.write-status[data-state="saved"] { color: #2e7d4f; }
.write-status[data-state="error"] { color: var(--danger); cursor: pointer; text-decoration: underline; }
.sheet-preview { margin: -6px 0 18px; }
.sheet-preview .hint { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sheet-preview .post-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sheet-preview .pc-title { font-size: 17px; }
.sheet-preview .pc-thumb { flex-basis: 78px; width: 78px; height: 78px; }
/* 유튜브 임베드 — 저장은 링크가 든 figure, 보기 화면 스크립트가 iframe 으로 바꾼다 */
.prose figure.embed { margin: 2em 0; }
.prose figure.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.prose figure.embed a { word-break: break-all; }

/* ---------- 저작권 고지 ---------- */
.post-copyright { margin: 26px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--line-soft); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.post-copyright a { color: var(--soft); text-decoration: underline; margin-left: 6px; }
.site-footer .foot-note { flex-basis: 100%; }

/* ---------- 글 상단 커버 (작성자가 지정한 경우에만) ---------- */
.post-cover { margin: 28px 0 0; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--line-soft); }
@media (max-width: 640px) { .post-cover { margin-top: 20px; } .post-cover img { border-radius: 8px; } }

/* 커버 크기 안내 */
.cover-hint { display: block; flex-basis: 100%; margin-top: 4px; }
.cover-hint.ok { color: #2e7d4f; }
.cover-hint.warn { color: var(--accent-strong); }

/* ---------- FAQ ---------- */
.faq-list { margin: 26px 0 0; }
.faq-item { position: relative; padding: 26px 0 26px 48px; border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-item::before { content: "Q"; position: absolute; left: 0; top: 25px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--serif); font-size: 14.5px; font-weight: 700; line-height: 32px; text-align: center; }
.faq-item dt { font-family: var(--serif); font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 9px; padding-top: 4px; }
.faq-item dd { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.85; }
.faq-item dd a { color: var(--accent-strong); font-weight: 600; }
.faq-cta { margin-top: 38px; }
.faq-cta p { margin-bottom: 0; }
.faq-cta a { color: var(--accent-strong); font-weight: 600; }

@media (max-width: 640px) {
    .faq-item { padding: 22px 0 22px 42px; }
    .faq-item::before { width: 28px; height: 28px; line-height: 28px; font-size: 13px; top: 22px; }
    .faq-item dt { font-size: 16.5px; }
}

/* 글 하단 이전/다음 글 */
.post-nav { display: flex; gap: 12px; margin: 30px 0 6px; }
.post-nav .pn-item { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .12s; }
.post-nav .pn-item:hover { border-color: var(--accent-strong); }
.post-nav .pn-next { text-align: right; margin-left: auto; }
.post-nav .pn-dir { display: block; font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.post-nav .pn-title { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
    .post-nav { flex-direction: column; }
    .post-nav .pn-next { text-align: left; margin-left: 0; }
}

/* 통계 — AI 3단계 카드 시각 구분 + 차트 축 안내 */
.ai-card.sure { border-left: 3px solid #2e6b48; }
.ai-card.likely { border-left: 3px solid var(--ai); }
.ai-card.prep { border-left: 3px solid var(--line); }
.stat-axis .mid { color: var(--soft); }
.stat-action { color: var(--soft); background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin-top: 14px; }

/* 임시글 미리보기 — 댓글 자리 안내 */
.cmt-preview-note { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; color: var(--faint); font-size: 13.5px; }

/* ---------- 코드 하이라이트 (highlight.js GitHub Dark 테마) — 별도 파일이던 것을 합쳐 차단 요청 하나를 줄였다 ---------- */
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}
