/* 밝은 고급 바탕(아이보리) + 작업 영역은 흰 종이, 포인트는 금색·먹색 (회장님 10-31: 어두우면 칙칙) */
:root {
  --bg: #f7f5f0;
  --bg2: #efebe2;
  --panel: #ffffff;
  --panel2: #fffdf8;
  --line: rgba(23, 25, 31, 0.08);
  --line2: rgba(23, 25, 31, 0.14);
  --text: #17191f;
  --muted: #6a6e78;
  --gold: #b08a4c;
  --gold2: #8a6a37;
  --gold-dim: #f4ecdd;
  --paper: #fbf9f4;
  --paper2: #f3efe6;
  --ink: #17191f;
  --ink-muted: #6a6e78;
  --paper-line: #e5dfd2;
  --ok: #3fbf7f;
  --warn: #e0705f;
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -160px, rgba(214, 178, 120, 0.22), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(150, 170, 220, 0.14), transparent 70%);
  background-repeat: no-repeat;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 머리말 */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.78); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #f1d8a8, #d4b07a 60%, #a8834d); color: #2a1f0c; box-shadow: 0 4px 14px rgba(176, 138, 76, 0.35); margin-right: 2px; }
.logo em { font-style: normal; font-weight: 500; color: var(--gold); }
/* PC 분류 메뉴: 분류에 마우스를 올리거나 누르면 그 분류 도구가 아래로 펼쳐짐 (menu.js가 누르기·Esc 처리) */
.cnav { display: flex; align-items: stretch; gap: 2px; margin-left: auto; height: 100%; }
.cn { position: relative; display: flex; align-items: center; }
.cn-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.cn-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cn.on .cn-btn { color: var(--text); font-weight: 600; }
.cn-pop { display: none; position: absolute; top: 100%; left: -8px; z-index: 21; min-width: 230px; padding: 8px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2); box-shadow: 0 18px 40px rgba(60, 48, 25, 0.16); }
.cn:nth-last-child(-n+2) .cn-pop { left: auto; right: -8px; }
.cn-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* 버튼과 판 사이 틈에서 마우스가 빠져도 닫히지 않게 */
.cn-pop ul { list-style: none; margin: 0; padding: 0; }
.cn-pop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.cn-pop a .ico { color: var(--gold); }
.cn-pop a:hover, .cn-pop a:focus-visible { background: var(--gold-dim); color: var(--gold2); outline: none; }
.cn-pop a[aria-current=page] { font-weight: 700; color: var(--gold2); }
.cn.open .cn-pop { display: block; }
.cn.open .cn-btn { color: var(--gold2); background: var(--gold-dim); }
.cn.open .cn-btn svg { transform: rotate(180deg); }
@media (hover: hover) {
  .cn:hover .cn-pop { display: block; }
  .cn:hover .cn-btn { color: var(--gold2); background: var(--gold-dim); }
  .cn:hover .cn-btn svg { transform: rotate(180deg); }
}

/* 모든 PDF 도구 펼침 메뉴 (menu.js) */
.mm-btn, .mm-burger { font: inherit; cursor: pointer; border: 0; background: none; color: var(--text); }
.mm-btn svg, .mm-burger svg, .mm-cat svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mm-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: .15s; }
.mm-btn:hover, .mm-btn[aria-expanded=true] { border-color: var(--gold); color: var(--gold2); }
.mm-btn svg { transition: transform .2s; }
.mm-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.mm-burger { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; border-radius: 10px; }
.mm-burger .x, .mm-burger[aria-expanded=true] .b { display: none; }
.mm-burger[aria-expanded=true] .x { display: inline; }
.mm { position: fixed; top: 64px; left: 0; right: 0; z-index: 19; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--panel2); border-bottom: 1px solid var(--line2); box-shadow: 0 30px 60px rgba(60, 48, 25, 0.16); }
.mm[hidden] { display: none; }
.mm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 28px; padding: 28px 0 32px; }
.mm h3 { margin: 0 0 8px; }
.mm-cat { display: flex; align-items: center; width: 100%; padding: 0 0 8px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--gold2); text-align: left; cursor: default; }
.mm-cat svg { display: none; }
.mm ul { list-style: none; margin: 0; padding: 0; }
.mm li a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14.5px; transition: background .12s, color .12s; }
.mm li a .ico { color: var(--gold); }
.mm li a:hover, .mm li a:focus-visible { background: var(--gold-dim); color: var(--gold2); outline: none; }
.mm li a[aria-current=page] { font-weight: 700; color: var(--gold2); }
@media (min-width: 1081px) { .mm-btn { display: none; } } /* 넓은 화면은 분류 메뉴가 전체를 대신함 */
@media (max-width: 1080px) { .cnav { display: none; } .mm-btn { margin-left: auto; } }
@media (max-width: 860px) {
  .mm-btn { display: none; }
  .mm-burger { display: grid; }
  .mm { bottom: 0; max-height: none; box-shadow: none; }
  .mm-grid { grid-template-columns: 1fr; gap: 0; padding: 4px 0 40px; }
  .mm section { border-bottom: 1px solid var(--line); }
  .mm h3 { margin: 0; }
  .mm-cat { padding: 16px 0; border: 0; font-size: 16px; color: var(--text); cursor: pointer; }
  .mm-cat svg { display: inline; margin-left: auto; transition: transform .2s; }
  .mm-cat[aria-expanded=true] svg { transform: rotate(180deg); }
  .mm h3:has(.mm-cat[aria-expanded=false]) + ul { display: none; }
  .mm ul { padding-bottom: 12px; }
  .mm li a { padding: 10px 8px; font-size: 15.5px; }
  body.mm-lock { overflow: hidden; }
}

/* 공통 머리 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.hero { padding: 48px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.2; margin: 12px 0 10px; letter-spacing: -1.2px; font-weight: 800; }
.hero h1 .g { background: linear-gradient(90deg, #c49a55, #8a6a37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 620px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ===== 밝은 작업 영역 ===== */
.paper { background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 24px 60px rgba(60, 48, 25, 0.12), 0 2px 6px rgba(60, 48, 25, 0.05), 0 0 0 1px rgba(23, 25, 31, 0.05); }
#tool { padding: 26px; max-width: 820px; margin: 0 auto; }
.drop { position: relative; border: 1.5px dashed #cfc6b3; border-radius: 16px; padding: 46px 18px; text-align: center; background: linear-gradient(180deg, #fff, var(--paper2)); transition: .18s; }
.drop.over { border-color: var(--gold); background: #fff8ea; transform: scale(1.01); }
.drop.has { padding: 24px 18px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .big { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; background: var(--ink); color: #f1d8a8; }
.drop.has .big { display: none; }
.drop .big .ico { width: 28px; height: 28px; }
.pick { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; padding: 14px 30px; border-radius: 12px; box-shadow: 0 8px 22px rgba(23, 25, 31, 0.25); }
.drop p { margin: 12px 0 0; color: var(--ink-muted); font-size: 14px; }
#count { margin: 12px 2px 0; color: var(--ink-muted); font-size: 14px; min-height: 1em; }
.files, .outs { list-style: none; margin: 8px 0 0; padding: 0; }
.files li, .outs li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--paper-line); border-radius: 12px; margin-bottom: 6px; background: #fff; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fsize { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.files button { border: 1px solid var(--paper-line); background: var(--paper); color: var(--ink); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; flex: none; }
.files button:hover { border-color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 16px 30px; margin: 18px 2px 0; }
.opts:empty { display: none; }
.opts fieldset { border: 0; padding: 0; margin: 0; }
.opts legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-size: 15px; cursor: pointer; }
.opts input[type=radio], .opts input[type=checkbox] { accent-color: var(--ink); width: 17px; height: 17px; }
.opts input[type=text], .opts input[type=number], .opts select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--paper-line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 220px; }
.opts input[type=number] { min-width: 0; width: 110px; } /* 숫자 칸이 220px로 넓어 줄 밖으로 삐져나오던 문제 (회장님 11-02) */
.opts input[type=range] { accent-color: var(--ink); width: 200px; }
.opts small { display: block; color: var(--ink-muted); font-size: 13px; }
.go, .dl-all { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 22px; padding: 17px; font: inherit; font-size: 18px; font-weight: 700; color: #2a1f0c; background: linear-gradient(135deg, #f1d8a8, #d4b07a 55%, #b88f55); border: 0; border-radius: 14px; cursor: pointer; box-shadow: 0 10px 28px rgba(184, 143, 85, 0.35); transition: transform .12s, box-shadow .12s; }
.go:hover, .dl-all:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(184, 143, 85, 0.45); }
.go:disabled { background: #e7e2d7; color: #a49c8b; box-shadow: none; cursor: not-allowed; transform: none; }
#progress { margin-top: 20px; }
#progress .bar { height: 8px; background: var(--paper-line); border-radius: 999px; overflow: hidden; }
#progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--ink)); transition: width .2s; }
#progress .ptext { color: var(--ink-muted); font-size: 14px; margin: 8px 0 0; }
#error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a2a1e; font-size: 15px; }
#result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--paper-line); }
#result h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 20px; color: #1d7a4c; }
#result .note { white-space: pre-line; color: var(--ink-muted); margin: 0 0 4px; }
.outs .dl { border: 1px solid var(--ink); color: var(--ink); background: transparent; border-radius: 9px; padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; flex: none; }
.outs .dl:hover { background: var(--ink); color: #fff; }

/* 광고 자리 (승인 후 채움). 버튼과 충분히 띄운다 */
.ad { margin: 28px auto; min-height: 0; max-width: 820px; }

/* 본문 글 (어두운 바탕) */
.content { max-width: 820px; margin: 36px auto 0; }
.content section { border-top: 1px solid var(--line); padding: 26px 0 6px; }
.content h2 { font-size: 21px; margin: 0 0 14px; letter-spacing: -0.4px; }
.content ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.content ol.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: #33363d; }
.content ol.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); font-weight: 700; font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; color: var(--text); font-size: 15px; background: var(--panel); }
.related a:hover { border-color: var(--gold); color: var(--gold2); }

/* ===== 홈 ===== */
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; margin: 14px 0 16px; letter-spacing: -1.6px; font-weight: 800; }
.home-hero h1 .g { background: linear-gradient(90deg, #c49a55, #8a6a37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .lead { color: var(--muted); font-size: 17.5px; margin: 0 0 22px; }
.home-hero .trust { justify-content: flex-start; margin: 0; }
.stats { display: flex; gap: 28px; margin-top: 26px; }
.stats b { display: block; font-size: 26px; color: var(--gold2); letter-spacing: -0.5px; }
.stats span { color: var(--muted); font-size: 13px; }
#quick { padding: 22px; }
#quick .drop { padding: 52px 18px; }
#quick h2 { margin: 0 0 4px; font-size: 18px; }
#quick .sub { margin: 0 0 14px; color: var(--ink-muted); font-size: 14px; }
#suggest { margin-top: 14px; }
#suggest .q { font-size: 14px; color: var(--ink-muted); margin: 0 0 10px; }
#suggest .acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#suggest button { display: flex; align-items: center; gap: 8px; padding: 12px 12px; border: 1px solid var(--paper-line); background: #fff; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left; transition: .12s; }
#suggest button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
#suggest button.main { background: var(--ink); color: #fff; border-color: var(--ink); }
#suggest .soon { color: var(--ink-muted); font-size: 14px; }

.cats { padding: 20px 0 10px; }
.cats-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.cats-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.8px; margin: 8px 0 0; }
.cats-head p { color: var(--muted); margin: 0; font-size: 15px; }
.cat { margin-bottom: 26px; }
.cat h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 10px; letter-spacing: 0.02em; }
.cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat h3 .kr { color: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .15s; }
a.tile:hover { border-color: rgba(176, 138, 76, 0.6); background: var(--panel2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(60, 48, 25, 0.12); }
.tile { box-shadow: 0 1px 2px rgba(60, 48, 25, 0.04); }
.tile .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--gold-dim); color: var(--gold2); flex: none; }
.tile b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.tile span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.tile.soon { background: transparent; box-shadow: none; border-style: dashed; }
.tile.soon b, .tile.soon span { color: #9a9ca4; }
.tile.soon .ic { background: #efece5; color: #a7a59f; }
.tile:has(.tag) { padding-top: 30px; }
#all { scroll-margin-top: 80px; }
.tag { position: absolute; top: 9px; right: 10px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.tag.kr { background: var(--gold); color: #fff; }
.tag.soon { background: #ece8df; color: #8e8b84; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 10px; }
.why div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.why b { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--gold2); }
.why span { color: var(--muted); font-size: 14px; }

/* 홈 아래 섹션 */
.sec { margin-top: 64px; }
.sec-head { text-align: center; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.9px; margin: 10px 0 0; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); transition: .18s; box-shadow: 0 2px 8px rgba(60, 48, 25, 0.04); }
.use:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(60, 48, 25, 0.13); border-color: rgba(176, 138, 76, 0.45); }
.illo { position: relative; aspect-ratio: 210 / 124; background: radial-gradient(120% 90% at 0% 0%, #fbf2e1, #f1e4cb 60%, #e9d8b8); }
.illo svg { width: 100%; height: 100%; display: block; }
.illo .d1 { fill: #fff; stroke: #d9c7a4; filter: drop-shadow(0 6px 10px rgba(120, 90, 40, .18)); }
.illo .d2 { fill: #fffaf0; stroke: #d9c7a4; }
.illo .d3 { fill: #f7eedd; stroke: #d9c7a4; }
.illo .ph { fill: #2a2d35; }
.illo .dot { fill: #8f939c; }
.illo .ar { fill: none; stroke: #a8834d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.illo .st { fill: none; stroke: #d0161b; stroke-width: 4; }
.illo .stt { fill: #d0161b; font: 800 24px "Nanum Myeongjo", serif; }
.illo .wm { fill: #b08a4c; opacity: .45; font: 800 20px "Pretendard Variable", sans-serif; }
.illo .badge { position: absolute; left: 16px; bottom: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #f1d8a8; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.ut { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ut b { font-size: 17px; letter-spacing: -0.3px; }
.ut p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; flex: 1; }
.go-link { font-size: 14px; font-weight: 700; color: var(--gold2); }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 40px; background: linear-gradient(135deg, #fff, #fbf6ec); }
.how h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.8px; margin: 10px 0 12px; line-height: 1.25; }
.how p { color: var(--ink-muted); margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--gold-dim); color: var(--gold2); }
.flow { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow .node { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 330px; padding: 16px 18px; background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; box-shadow: 0 6px 16px rgba(60, 48, 25, .06); }
.flow .node span { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); }
.flow .node.main { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .node.main span { background: rgba(241, 216, 168, .15); color: #f1d8a8; }
.flow .arrow { width: 2px; height: 18px; background: linear-gradient(var(--gold), transparent); }
.home-faq .faq { max-width: 820px; margin: 0 auto; }
.home-faq .faq details p { color: var(--muted); }
.cta { margin-top: 64px; text-align: center; padding: 48px 20px; border-radius: 24px; background: radial-gradient(120% 140% at 50% 0%, #2a2d35, #17191f); color: #fff; }
.cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.8px; }
.cta p { margin: 0 0 22px; color: #b9bcc4; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 14px; font-weight: 700; font-size: 17px; color: #2a1f0c; text-decoration: none; background: linear-gradient(135deg, #f1d8a8, #d4b07a 55%, #b88f55); box-shadow: 0 10px 28px rgba(184, 143, 85, .35); }
#top { scroll-margin-top: 80px; }
@media (max-width: 860px) {
  .uses { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }

/* 꼬리말 */
footer { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold2); }
.doc { max-width: 820px; margin: 36px auto 0; padding: 10px 30px 30px; }
.doc h1 { font-size: 28px; letter-spacing: -0.6px; }
.doc h2 { font-size: 19px; margin-top: 26px; }
.doc a { color: #8a6a37; }

/* 도장 만들기 */
.stamp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.stamp-prev { display: grid; place-items: center; background: repeating-conic-gradient(#efebe2 0 25%, #fff 0 50%) 0 0 / 22px 22px; border-radius: 16px; border: 1px solid var(--paper-line); aspect-ratio: 1; }
.stamp-prev canvas { width: 78%; height: auto; }
.stamp-ctl .opts { margin: 0; flex-direction: column; gap: 16px; }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .why { grid-template-columns: 1fr; }
  .stamp-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  #tool, #quick { padding: 16px; }
  .doc { padding: 4px 18px 20px; }
  .stats { gap: 18px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { flex-direction: column; gap: 8px; }
}

/* 쪽 미리보기 (회전·삭제·나누기·번호·워터마크) */
.pages { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--paper2); border: 1px solid var(--paper-line); }
.pv-wait { color: var(--ink-muted); margin: 6px 2px; font-size: 14px; }
.pv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pv-tip { margin: 0; font-size: 14px; color: var(--ink-muted); }
.pv-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-bar button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); cursor: pointer; }
.pv-bar button:hover { border-color: var(--ink); }
.pv-stat { margin: 8px 2px 12px; font-size: 13.5px; font-weight: 700; color: var(--gold2); }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; max-height: 560px; overflow-y: auto; padding: 2px; }
.pg { display: flex; flex-direction: column; gap: 6px; }
.pg-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 2px solid transparent; border-radius: 12px; cursor: pointer; overflow: hidden; box-shadow: 0 2px 8px rgba(60, 48, 25, .08); transition: border-color .15s, box-shadow .15s; }
.pg-img:hover { border-color: #d9c7a4; }
.pg-img:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pg-rot { position: absolute; inset: 6%; display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.pg-rot canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); background: #fff; }
.pg-ph { width: 70%; height: 92%; background: #f1ede4; border-radius: 4px; }
.pg-mark { position: absolute; inset: 0; display: none; place-items: center; font-style: normal; font-size: 30px; font-weight: 800; }
.pg-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.pg-foot button { width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--paper-line); background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); }
.pg-foot button:hover { border-color: var(--ink); }
.pg.turned .pg-img { border-color: var(--gold); }
.pg.del .pg-img { border-color: #d64545; }
.pg.del .pg-rot { opacity: .25; }
.pg.del .pg-mark { display: grid; color: #d64545; background: rgba(214, 69, 69, .06); }
.pg.del .pg-mark::after { content: "✕"; }
.pg.on .pg-img { border-color: var(--ink); }
.pg.on .pg-mark { display: grid; place-items: start end; padding: 6px; }
.pg.on .pg-mark::after { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--ink); color: #f1d8a8; }
.ov-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ov-page { position: relative; box-shadow: 0 8px 24px rgba(60, 48, 25, .15); background: #fff; line-height: 0; overflow: hidden; }
.ov-page canvas { display: block; max-width: 100%; }
.ov-layer { position: absolute; inset: 0; pointer-events: none; line-height: 1; }
.ov-num { position: absolute; color: #333; font-family: Helvetica, Arial, sans-serif; white-space: nowrap; }
.ov-wm { position: absolute; display: block; text-align: center; white-space: nowrap; font-weight: 700; color: #000; font-family: "Pretendard Variable", "Malgun Gothic", sans-serif; }

/* PDF 편집기 */
.editor { width: min(1400px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); padding: 0; overflow: hidden; }
.ed-start { padding: 26px; max-width: 820px; margin: 0 auto; }
.ed-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a2a1e; }
.ed-tools { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--paper-line); background: #fff; flex-wrap: wrap; }
.ed-tools button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.ed-tools button:hover { background: var(--paper2); }
.ed-tools button.on { background: var(--ink); color: #f1d8a8; }
.ed-tools .ico { width: 19px; height: 19px; }
.ed-tools .sep, .ed-nav .sep { width: 1px; height: 22px; background: var(--paper-line); margin: 0 6px; }
.ed-name { margin-left: auto; font-size: 13px; color: var(--ink-muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-tools .ed-reset { border-color: var(--paper-line); font-size: 13px; }
.ed-body { display: grid; grid-template-columns: 132px 1fr 280px; height: min(78vh, 900px); }
.ed-thumbs { overflow-y: auto; padding: 12px 14px; border-right: 1px solid var(--paper-line); background: var(--paper2); display: flex; flex-direction: column; gap: 12px; }
.ed-th { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; color: var(--ink-muted); font-size: 12px; }
.ed-th canvas, .ed-th .ph { width: 96px; height: auto; border: 2px solid transparent; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); background: #fff; }
.ed-th .ph { height: 128px; }
.ed-th.on canvas { border-color: var(--gold); }
.ed-th.on b { color: var(--ink); }
.ed-view { position: relative; overflow: auto; background: #e9e5dc; }
.ed-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 24px 90px; min-width: max-content; }
.ed-page { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .14); flex: none; touch-action: none; }
.ed-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ed-layer { position: absolute; inset: 0; }
.editor[data-mode="text"] .ed-page { cursor: text; }
.editor[data-mode="pen"] .ed-page, .editor[data-mode="whiteout"] .ed-page, .editor[data-mode="box"] .ed-page { cursor: crosshair; }
.ed-nav { position: sticky; bottom: 14px; left: 50%; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; margin-top: -60px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.ed-nav button { border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.ed-nav button:hover { background: rgba(255, 255, 255, .12); }
.ed-nav input { width: 48px; font: inherit; text-align: center; border: 0; border-radius: 6px; padding: 4px; background: rgba(255, 255, 255, .12); color: #fff; }
.ed-panel { border-left: 1px solid var(--paper-line); padding: 18px; display: flex; flex-direction: column; background: #fff; overflow-y: auto; }
.ed-panel h3 { margin: 0 0 12px; font-size: 18px; text-align: center; }
.ed-props { flex: 1; font-size: 14px; }
.ed-props h4 { margin: 0 0 10px; font-size: 15px; }
.ed-props label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ed-props input[type=range] { flex: 1; accent-color: var(--ink); }
.ed-props .sw { display: flex; gap: 8px; margin: 4px 0 12px; }
.ed-props .sw button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; }
.ed-props .sw button.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.ed-props .hint { color: var(--ink-muted); background: var(--paper2); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.ed-props .ed-del { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 9px; border: 1px solid #e3b4b4; background: #fff; color: #b33; cursor: pointer; }
.ed-count { color: var(--ink-muted); font-size: 13px; }
.ed-res { margin-top: 10px; }
.ed-res .ok { color: #1d7a4c; font-weight: 700; margin: 0; }
.ed-res .bad { color: #b33; }
.ed-res .dl-all { margin-top: 8px; padding: 12px; font-size: 16px; }
.ann { position: absolute; }
.ann-text .tx { min-width: 20px; padding: 0 2px; outline: none; white-space: pre; line-height: 1.3; font-family: "Pretendard Variable", "Malgun Gothic", sans-serif; }
.ann-text .tx:empty::before { content: attr(data-ph); color: #aaa; }
.ann-image img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.ann-box { border: 2px solid #d0161b; }
.ann-whiteout { background: #fff; }
.ann.sel { outline: 1.5px dashed var(--gold); outline-offset: 3px; }
.ann .h-move, .ann .h-size, .ann .h-del { display: none; }
.editor[data-mode="select"] .ann { cursor: move; }
.ann.sel .h-move { display: block; position: absolute; left: -14px; top: -14px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); cursor: move; }
.ann.sel .h-size { display: block; position: absolute; right: -7px; bottom: -7px; width: 13px; height: 13px; border-radius: 3px; background: #fff; border: 2px solid var(--gold); cursor: nwse-resize; }
.ann.sel .h-del { display: grid; place-items: center; position: absolute; right: -12px; top: -12px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 11px; cursor: pointer; }
@media (max-width: 860px) {
  .ed-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: auto; }
  .ed-thumbs { display: none; }
  .ed-view { height: 70vh; }
  .ed-panel { border-left: 0; border-top: 1px solid var(--paper-line); }
  .ed-tools button span { display: none; }
}
.pv-bar button.auto { background: var(--ink); color: #f1d8a8; border-color: var(--ink); }
.pv-bar button.auto:disabled { opacity: .6; }
.pv-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.pv-mid .pv-stat { margin: 0; }
.pv-view { display: inline-flex; padding: 3px; border-radius: 11px; background: #fff; border: 1px solid var(--paper-line); }
.pv-view button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.pv-view button.on { background: var(--ink); color: #f1d8a8; }
.pv-grid.view-l { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-height: 680px; }
.pv-grid.view-1 { grid-template-columns: minmax(0, 640px); justify-content: center; max-height: 78vh; gap: 20px; }
.pv-grid.view-1 .pg-rot { inset: 2%; }
.pv-grid.view-1 .pg-img { aspect-ratio: 1 / 1.15; }
.pv-move { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); margin-right: 6px; }
.pv-move input { width: 64px; font: inherit; padding: 6px 8px; border: 1px solid var(--paper-line); border-radius: 9px; background: #fff; }
.pg-pos { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--ink); color: #f1d8a8; }
.pg[draggable="true"] .pg-img { cursor: grab; }
.pg.dragging { opacity: .35; }
.pg.drop-l .pg-img { box-shadow: -4px 0 0 var(--gold); }
.pg.drop-r .pg-img { box-shadow: 4px 0 0 var(--gold); }
.pg.moved .pg-img { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 176, 122, .35); }
.pg-foot button[data-mv] { width: 26px; }
/* 파일 목록: 첫 쪽 미리보기 */
.files li { gap: 12px; padding: 8px 12px; }
.fthumb { width: 46px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--paper2); overflow: hidden; }
.fthumb img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); background: #fff; }
.fmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fmeta .fname { flex: none; }
.fpages { font-size: 12.5px; color: var(--ink-muted); }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reset-btn { font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 12px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); cursor: pointer; }
.reset-btn:hover { border-color: var(--ink); }
.reset-btn.again { display: block; margin: 14px auto 0; padding: 10px 18px; font-size: 15px; }
.ov-ctl { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; }
.ov-ctl button { border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.ov-ctl button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.ov-ctl button:disabled { opacity: .35; cursor: default; }
.ov-ctl .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
.ov-ctl span { min-width: 56px; text-align: center; }
.ov-stage { width: 100%; max-height: 72vh; overflow: auto; padding: 6px; }
.ov-stage .ov-page { width: fit-content; margin: 0 auto; }
.ov-page canvas { max-width: none; }
.count-row { flex-wrap: wrap; }
.count-row .reset-btn { margin-left: auto; }
/* 색 고르기: 추천 색 + 직접(RGB) */
.cpick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cpick .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cpick [data-c] { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); cursor: pointer; padding: 0; }
.cpick [data-c].on { outline: 2px solid var(--ink); outline-offset: 2px; }
.cpick .custom { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 13px; font-weight: 600; cursor: pointer; padding: 3px 10px 3px 4px; border: 1px solid var(--paper-line); border-radius: 999px; background: #fff; }
.cpick input[type=color] { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; min-width: 0 !important; }
.cpick .hex { font-size: 12px; color: var(--ink-muted); }
.ed-cpick { margin: 4px 0 12px; }
.ed-cpick [data-c] { width: 22px; height: 22px; }
/* 글자 층 (복사·드래그 선택) */
.textLayer { position: absolute; left: 0; top: 0; overflow: hidden; line-height: 1; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 1; }
.textLayer span, .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.textLayer ::selection { background: rgba(30, 100, 255, .28); }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: -1; cursor: default; user-select: none; }
/* 편집기: 글자 층·글자 고치기 */
.ed-layer { pointer-events: none; z-index: 2; }
.ed-layer .ann { pointer-events: auto; }
.ed-ink { z-index: 2; }
.editor:not([data-mode="select"]) .textLayer { pointer-events: none; }
.ed-tlines { position: absolute; inset: 0; display: none; z-index: 3; pointer-events: none; }
.editor[data-mode="retext"] .ed-tlines { display: block; }
.tline { position: absolute; pointer-events: auto; padding: 0; border: 1px dashed rgba(30, 100, 255, .45); background: rgba(30, 100, 255, .04); border-radius: 3px; cursor: text; }
.tline:hover { background: rgba(30, 100, 255, .12); border-style: solid; }
.ann-retext { display: flex; align-items: center; }
.ann-retext .tx { white-space: pre; }

/* impeccable 기준 정리 (11-01): 그라데이션 글자 대신 굵기·단색, 브라우저 기본 모양을 사이트 색으로 */
.home-hero h1 .em, .hero h1 .em { font-weight: 900; color: var(--gold2); }
.eyebrow { display: none; }
::selection { background: rgba(176, 138, 76, .28); color: var(--ink); }
html { scrollbar-color: #cdbf9f transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8ccb2; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
input, textarea, [contenteditable] { caret-color: var(--gold2); }
a { text-underline-offset: 3px; }
.tile.soon b, .tile.soon span { color: #82848c; }
.ico-sm { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* 추가 도구 (11-02): 서명 칸, 양식 칸, 자르기 숫자 */
.sig-box { margin: 4px 0 14px; }
.sig-pad { display: block; width: 100%; height: 180px; background: #fff; border: 1.5px dashed var(--line, #d8cfbd); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sig-bar { display: flex; gap: 8px; margin-top: 8px; }
.sig-bar label { cursor: pointer; }
.sig-preview { margin: 4px 0 14px; }
.sig-stage { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--paper-line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sig-stage canvas { display: block; max-width: 100%; height: auto; }
.sig-ghost { position: absolute; cursor: grab; touch-action: none; outline: 1.5px dashed #2f6fd6; outline-offset: 2px; }
.out-preview { margin: 12px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.out-preview figure { margin: 0; }
.out-preview img { display: block; max-width: min(100%, 420px); border: 1px solid var(--paper-line); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.out-preview figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.form-fields { display: grid; gap: 10px; }
.form-fields .ff { display: grid; gap: 4px; font-size: .92rem; }
.form-fields .ff.chk { display: flex; align-items: center; gap: 8px; }
.form-fields input[type=text], .form-fields select, .opts input[type=text], .opts select { width: 100%; padding: 8px 10px; border: 1px solid var(--line, #d8cfbd); border-radius: 8px; font: inherit; }
.opts label.wide { display: grid; gap: 4px; width: 100%; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.row4 label { display: flex; margin: 0; min-width: 0; }
.row4 input[type=number] { flex: 1; width: 100%; min-width: 0; }
@media (max-width: 520px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opts fieldset:has(input[name=mode][value=auto]:checked) .row4 { display: none; } /* 흰 여백 자동일 때는 mm 칸을 숨김 */

/* 피드백 게시판 (feedback.js, 11-03) */
.cn-fb { display: inline-flex; align-items: center; padding: 8px 10px; margin-left: 4px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.cn-fb:hover, .cn-fb[aria-current=page] { color: var(--gold2); background: var(--gold-dim); }
.fb-wrap { max-width: 860px; margin: 0 auto 60px; padding: 26px; }
.fb-adminbar { max-width: 860px; margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; }
.fb-adminbar .fb-link { color: #f1d8a8; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-tabs button { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); cursor: pointer; }
.fb-tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-write { padding: 9px 18px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.fb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.fb-list li { border-bottom: 1px solid var(--paper-line); }
.fb-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.fb-list a:hover b { color: var(--gold2); }
.fb-list b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.fb-list small { width: 100%; color: var(--muted); font-size: 13px; }
.fb-n { color: var(--gold2); font-weight: 700; font-size: 14px; }
.fb-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.fb-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.fb-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #efebe2; color: #5c5446; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fb-chip.gold { background: var(--gold-dim); color: var(--gold2); }
.fb-chip.st-plan { background: #e6eefb; color: #2556a8; }
.fb-chip.st-done { background: #e3f4ea; color: #1f7a48; }
.fb-chip.hid { background: #fbe4e1; color: #a33a2c; }
.fb-pages { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.fb-pages button, .fb-del button:not(.fb-link) { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; }
.fb-back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.fb-post h2 { margin: 10px 0 6px; font-size: 24px; overflow-wrap: anywhere; }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.fb-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 15.5px; }
.fb-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fb-link { font: inherit; font-size: 13.5px; border: 0; background: none; padding: 2px 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.fb-del { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-del input { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--paper-line); border-radius: 8px; width: 130px; }
.fb-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #f3efe6; font-size: 14px; }
.fb-admin select { font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line2); }
.fb-ch { margin: 30px 0 8px; font-size: 16px; }
.fb-comments { list-style: none; margin: 0 0 18px; padding: 0; }
.fb-comments li { padding: 14px 0; border-top: 1px solid var(--paper-line); }
.fb-comments li.admin { padding: 14px 16px; border-radius: 12px; border-top: 0; margin: 8px 0; background: var(--gold-dim); }
.fb-comments li.hid { opacity: .55; }
.fb-form { display: grid; gap: 14px; }
.fb-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fb-form input:not([type=radio]), .fb-form textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--paper-line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.fb-form textarea { resize: vertical; }
.fb-form .go { margin-top: 4px; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; padding: 0; margin: 0; }
.fb-cats legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.fb-cats label { display: inline-flex; font-weight: 400; gap: 4px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-msg { margin: 8px 0; color: var(--muted); font-size: 14px; }
.fb-msg.bad { color: #b23b2c; }
.fb-msg.bad:empty { display: none; }
@media (max-width: 600px) { .fb-wrap { padding: 18px 14px; } .fb-row { grid-template-columns: 1fr; } .fb-post h2 { font-size: 20px; } }
